function LA(t,a){for(var r=0;r<a.length;r++){const s=a[r];if(typeof s!="string"&&!Array.isArray(s)){for(const l in s)if(l!=="default"&&!(l in t)){const u=Object.getOwnPropertyDescriptor(s,l);u&&Object.defineProperty(t,l,u.get?u:{enumerable:!0,get:()=>s[l]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const u of l)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&s(f)}).observe(document,{childList:!0,subtree:!0});function r(l){const u={};return l.integrity&&(u.integrity=l.integrity),l.referrerPolicy&&(u.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?u.credentials="include":l.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(l){if(l.ep)return;l.ep=!0;const u=r(l);fetch(l.href,u)}})();function yx(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xf={exports:{}},Bs={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var uv;function VA(){if(uv)return Bs;uv=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(s,l,u){var f=null;if(u!==void 0&&(f=""+u),l.key!==void 0&&(f=""+l.key),"key"in l){u={};for(var h in l)h!=="key"&&(u[h]=l[h])}else u=l;return l=u.ref,{$$typeof:t,type:s,key:f,ref:l!==void 0?l:null,props:u}}return Bs.Fragment=a,Bs.jsx=r,Bs.jsxs=r,Bs}var fv;function zA(){return fv||(fv=1,Xf.exports=VA()),Xf.exports}var g=zA(),Kf={exports:{}},xe={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var dv;function kA(){if(dv)return xe;dv=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.iterator;function b(D){return D===null||typeof D!="object"?null:(D=v&&D[v]||D["@@iterator"],typeof D=="function"?D:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,w={};function C(D,X,W){this.props=D,this.context=X,this.refs=w,this.updater=W||A}C.prototype.isReactComponent={},C.prototype.setState=function(D,X){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,X,"setState")},C.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function R(){}R.prototype=C.prototype;function N(D,X,W){this.props=D,this.context=X,this.refs=w,this.updater=W||A}var j=N.prototype=new R;j.constructor=N,E(j,C.prototype),j.isPureReactComponent=!0;var k=Array.isArray,_={H:null,A:null,T:null,S:null,V:null},$=Object.prototype.hasOwnProperty;function Y(D,X,W,Z,ee,ye){return W=ye.ref,{$$typeof:t,type:D,key:X,ref:W!==void 0?W:null,props:ye}}function U(D,X){return Y(D.type,X,void 0,void 0,void 0,D.props)}function Q(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function te(D){var X={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(W){return X[W]})}var ce=/\/+/g;function ue(D,X){return typeof D=="object"&&D!==null&&D.key!=null?te(""+D.key):X.toString(36)}function ve(){}function ge(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(ve,ve):(D.status="pending",D.then(function(X){D.status==="pending"&&(D.status="fulfilled",D.value=X)},function(X){D.status==="pending"&&(D.status="rejected",D.reason=X)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function de(D,X,W,Z,ee){var ye=typeof D;(ye==="undefined"||ye==="boolean")&&(D=null);var oe=!1;if(D===null)oe=!0;else switch(ye){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(D.$$typeof){case t:case a:oe=!0;break;case y:return oe=D._init,de(oe(D._payload),X,W,Z,ee)}}if(oe)return ee=ee(D),oe=Z===""?"."+ue(D,0):Z,k(ee)?(W="",oe!=null&&(W=oe.replace(ce,"$&/")+"/"),de(ee,X,W,"",function(_e){return _e})):ee!=null&&(Q(ee)&&(ee=U(ee,W+(ee.key==null||D&&D.key===ee.key?"":(""+ee.key).replace(ce,"$&/")+"/")+oe)),X.push(ee)),1;oe=0;var J=Z===""?".":Z+":";if(k(D))for(var le=0;le<D.length;le++)Z=D[le],ye=J+ue(Z,le),oe+=de(Z,X,W,ye,ee);else if(le=b(D),typeof le=="function")for(D=le.call(D),le=0;!(Z=D.next()).done;)Z=Z.value,ye=J+ue(Z,le++),oe+=de(Z,X,W,ye,ee);else if(ye==="object"){if(typeof D.then=="function")return de(ge(D),X,W,Z,ee);throw X=String(D),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return oe}function V(D,X,W){if(D==null)return D;var Z=[],ee=0;return de(D,Z,"","",function(ye){return X.call(W,ye,ee++)}),Z}function q(D){if(D._status===-1){var X=D._result;X=X(),X.then(function(W){(D._status===0||D._status===-1)&&(D._status=1,D._result=W)},function(W){(D._status===0||D._status===-1)&&(D._status=2,D._result=W)}),D._status===-1&&(D._status=0,D._result=X)}if(D._status===1)return D._result.default;throw D._result}var P=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)};function re(){}return xe.Children={map:V,forEach:function(D,X,W){V(D,function(){X.apply(this,arguments)},W)},count:function(D){var X=0;return V(D,function(){X++}),X},toArray:function(D){return V(D,function(X){return X})||[]},only:function(D){if(!Q(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},xe.Component=C,xe.Fragment=r,xe.Profiler=l,xe.PureComponent=N,xe.StrictMode=s,xe.Suspense=p,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_,xe.__COMPILER_RUNTIME={__proto__:null,c:function(D){return _.H.useMemoCache(D)}},xe.cache=function(D){return function(){return D.apply(null,arguments)}},xe.cloneElement=function(D,X,W){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var Z=E({},D.props),ee=D.key,ye=void 0;if(X!=null)for(oe in X.ref!==void 0&&(ye=void 0),X.key!==void 0&&(ee=""+X.key),X)!$.call(X,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&X.ref===void 0||(Z[oe]=X[oe]);var oe=arguments.length-2;if(oe===1)Z.children=W;else if(1<oe){for(var J=Array(oe),le=0;le<oe;le++)J[le]=arguments[le+2];Z.children=J}return Y(D.type,ee,void 0,void 0,ye,Z)},xe.createContext=function(D){return D={$$typeof:f,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:u,_context:D},D},xe.createElement=function(D,X,W){var Z,ee={},ye=null;if(X!=null)for(Z in X.key!==void 0&&(ye=""+X.key),X)$.call(X,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(ee[Z]=X[Z]);var oe=arguments.length-2;if(oe===1)ee.children=W;else if(1<oe){for(var J=Array(oe),le=0;le<oe;le++)J[le]=arguments[le+2];ee.children=J}if(D&&D.defaultProps)for(Z in oe=D.defaultProps,oe)ee[Z]===void 0&&(ee[Z]=oe[Z]);return Y(D,ye,void 0,void 0,null,ee)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(D){return{$$typeof:h,render:D}},xe.isValidElement=Q,xe.lazy=function(D){return{$$typeof:y,_payload:{_status:-1,_result:D},_init:q}},xe.memo=function(D,X){return{$$typeof:m,type:D,compare:X===void 0?null:X}},xe.startTransition=function(D){var X=_.T,W={};_.T=W;try{var Z=D(),ee=_.S;ee!==null&&ee(W,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(re,P)}catch(ye){P(ye)}finally{_.T=X}},xe.unstable_useCacheRefresh=function(){return _.H.useCacheRefresh()},xe.use=function(D){return _.H.use(D)},xe.useActionState=function(D,X,W){return _.H.useActionState(D,X,W)},xe.useCallback=function(D,X){return _.H.useCallback(D,X)},xe.useContext=function(D){return _.H.useContext(D)},xe.useDebugValue=function(){},xe.useDeferredValue=function(D,X){return _.H.useDeferredValue(D,X)},xe.useEffect=function(D,X,W){var Z=_.H;if(typeof W=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Z.useEffect(D,X)},xe.useId=function(){return _.H.useId()},xe.useImperativeHandle=function(D,X,W){return _.H.useImperativeHandle(D,X,W)},xe.useInsertionEffect=function(D,X){return _.H.useInsertionEffect(D,X)},xe.useLayoutEffect=function(D,X){return _.H.useLayoutEffect(D,X)},xe.useMemo=function(D,X){return _.H.useMemo(D,X)},xe.useOptimistic=function(D,X){return _.H.useOptimistic(D,X)},xe.useReducer=function(D,X,W){return _.H.useReducer(D,X,W)},xe.useRef=function(D){return _.H.useRef(D)},xe.useState=function(D){return _.H.useState(D)},xe.useSyncExternalStore=function(D,X,W){return _.H.useSyncExternalStore(D,X,W)},xe.useTransition=function(){return _.H.useTransition()},xe.version="19.1.0",xe}var hv;function ch(){return hv||(hv=1,Kf.exports=kA()),Kf.exports}var S=ch();const na=yx(S),vx=LA({__proto__:null,default:na},[S]);var $f={exports:{}},Us={},Zf={exports:{}},Qf={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var mv;function BA(){return mv||(mv=1,function(t){function a(V,q){var P=V.length;V.push(q);e:for(;0<P;){var re=P-1>>>1,D=V[re];if(0<l(D,q))V[re]=q,V[P]=D,P=re;else break e}}function r(V){return V.length===0?null:V[0]}function s(V){if(V.length===0)return null;var q=V[0],P=V.pop();if(P!==q){V[0]=P;e:for(var re=0,D=V.length,X=D>>>1;re<X;){var W=2*(re+1)-1,Z=V[W],ee=W+1,ye=V[ee];if(0>l(Z,P))ee<D&&0>l(ye,Z)?(V[re]=ye,V[ee]=P,re=ee):(V[re]=Z,V[W]=P,re=W);else if(ee<D&&0>l(ye,P))V[re]=ye,V[ee]=P,re=ee;else break e}}return q}function l(V,q){var P=V.sortIndex-q.sortIndex;return P!==0?P:V.id-q.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var f=Date,h=f.now();t.unstable_now=function(){return f.now()-h}}var p=[],m=[],y=1,v=null,b=3,A=!1,E=!1,w=!1,C=!1,R=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function k(V){for(var q=r(m);q!==null;){if(q.callback===null)s(m);else if(q.startTime<=V)s(m),q.sortIndex=q.expirationTime,a(p,q);else break;q=r(m)}}function _(V){if(w=!1,k(V),!E)if(r(p)!==null)E=!0,$||($=!0,ue());else{var q=r(m);q!==null&&de(_,q.startTime-V)}}var $=!1,Y=-1,U=5,Q=-1;function te(){return C?!0:!(t.unstable_now()-Q<U)}function ce(){if(C=!1,$){var V=t.unstable_now();Q=V;var q=!0;try{e:{E=!1,w&&(w=!1,N(Y),Y=-1),A=!0;var P=b;try{t:{for(k(V),v=r(p);v!==null&&!(v.expirationTime>V&&te());){var re=v.callback;if(typeof re=="function"){v.callback=null,b=v.priorityLevel;var D=re(v.expirationTime<=V);if(V=t.unstable_now(),typeof D=="function"){v.callback=D,k(V),q=!0;break t}v===r(p)&&s(p),k(V)}else s(p);v=r(p)}if(v!==null)q=!0;else{var X=r(m);X!==null&&de(_,X.startTime-V),q=!1}}break e}finally{v=null,b=P,A=!1}q=void 0}}finally{q?ue():$=!1}}}var ue;if(typeof j=="function")ue=function(){j(ce)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,ge=ve.port2;ve.port1.onmessage=ce,ue=function(){ge.postMessage(null)}}else ue=function(){R(ce,0)};function de(V,q){Y=R(function(){V(t.unstable_now())},q)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(V){V.callback=null},t.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<V?Math.floor(1e3/V):5},t.unstable_getCurrentPriorityLevel=function(){return b},t.unstable_next=function(V){switch(b){case 1:case 2:case 3:var q=3;break;default:q=b}var P=b;b=q;try{return V()}finally{b=P}},t.unstable_requestPaint=function(){C=!0},t.unstable_runWithPriority=function(V,q){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var P=b;b=V;try{return q()}finally{b=P}},t.unstable_scheduleCallback=function(V,q,P){var re=t.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?re+P:re):P=re,V){case 1:var D=-1;break;case 2:D=250;break;case 5:D=1073741823;break;case 4:D=1e4;break;default:D=5e3}return D=P+D,V={id:y++,callback:q,priorityLevel:V,startTime:P,expirationTime:D,sortIndex:-1},P>re?(V.sortIndex=P,a(m,V),r(p)===null&&V===r(m)&&(w?(N(Y),Y=-1):w=!0,de(_,P-re))):(V.sortIndex=D,a(p,V),E||A||(E=!0,$||($=!0,ue()))),V},t.unstable_shouldYield=te,t.unstable_wrapCallback=function(V){var q=b;return function(){var P=b;b=q;try{return V.apply(this,arguments)}finally{b=P}}}}(Qf)),Qf}var pv;function UA(){return pv||(pv=1,Zf.exports=BA()),Zf.exports}var Wf={exports:{}},xt={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var gv;function PA(){if(gv)return xt;gv=1;var t=ch();function a(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},l=Symbol.for("react.portal");function u(p,m,y){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:v==null?null:""+v,children:p,containerInfo:m,implementation:y}}var f=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return xt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,xt.createPortal=function(p,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return u(p,m,null,y)},xt.flushSync=function(p){var m=f.T,y=s.p;try{if(f.T=null,s.p=2,p)return p()}finally{f.T=m,s.p=y,s.d.f()}},xt.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(p,m))},xt.prefetchDNS=function(p){typeof p=="string"&&s.d.D(p)},xt.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var y=m.as,v=h(y,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,A=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?s.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:b,fetchPriority:A}):y==="script"&&s.d.X(p,{crossOrigin:v,integrity:b,fetchPriority:A,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},xt.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=h(m.as,m.crossOrigin);s.d.M(p,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(p)},xt.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,v=h(y,m.crossOrigin);s.d.L(p,y,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},xt.preloadModule=function(p,m){if(typeof p=="string")if(m){var y=h(m.as,m.crossOrigin);s.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(p)},xt.requestFormReset=function(p){s.d.r(p)},xt.unstable_batchedUpdates=function(p,m){return p(m)},xt.useFormState=function(p,m,y){return f.H.useFormState(p,m,y)},xt.useFormStatus=function(){return f.H.useHostTransitionStatus()},xt.version="19.1.0",xt}var yv;function xx(){if(yv)return Wf.exports;yv=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),Wf.exports=PA(),Wf.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var vv;function HA(){if(vv)return Us;vv=1;var t=UA(),a=ch(),r=xx();function s(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var n=e,i=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(i=n.return),e=n.return;while(e)}return n.tag===3?i:null}function f(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function h(e){if(u(e)!==e)throw Error(s(188))}function p(e){var n=e.alternate;if(!n){if(n=u(e),n===null)throw Error(s(188));return n!==e?null:e}for(var i=e,o=n;;){var c=i.return;if(c===null)break;var d=c.alternate;if(d===null){if(o=c.return,o!==null){i=o;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===i)return h(c),e;if(d===o)return h(c),n;d=d.sibling}throw Error(s(188))}if(i.return!==o.return)i=c,o=d;else{for(var x=!1,T=c.child;T;){if(T===i){x=!0,i=c,o=d;break}if(T===o){x=!0,o=c,i=d;break}T=T.sibling}if(!x){for(T=d.child;T;){if(T===i){x=!0,i=d,o=c;break}if(T===o){x=!0,o=d,i=c;break}T=T.sibling}if(!x)throw Error(s(189))}}if(i.alternate!==o)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?e:n}function m(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=m(e),n!==null)return n;e=e.sibling}return null}var y=Object.assign,v=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),N=Symbol.for("react.consumer"),j=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),te=Symbol.for("react.memo_cache_sentinel"),ce=Symbol.iterator;function ue(e){return e===null||typeof e!="object"?null:(e=ce&&e[ce]||e["@@iterator"],typeof e=="function"?e:null)}var ve=Symbol.for("react.client.reference");function ge(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ve?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case C:return"Profiler";case w:return"StrictMode";case _:return"Suspense";case $:return"SuspenseList";case Q:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case j:return(e.displayName||"Context")+".Provider";case N:return(e._context.displayName||"Context")+".Consumer";case k:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return n=e.displayName||null,n!==null?n:ge(e.type)||"Memo";case U:n=e._payload,e=e._init;try{return ge(e(n))}catch{}}return null}var de=Array.isArray,V=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},re=[],D=-1;function X(e){return{current:e}}function W(e){0>D||(e.current=re[D],re[D]=null,D--)}function Z(e,n){D++,re[D]=e.current,e.current=n}var ee=X(null),ye=X(null),oe=X(null),J=X(null);function le(e,n){switch(Z(oe,n),Z(ye,e),Z(ee,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?By(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=By(n),e=Uy(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}W(ee),Z(ee,e)}function _e(){W(ee),W(ye),W(oe)}function Re(e){e.memoizedState!==null&&Z(J,e);var n=ee.current,i=Uy(n,e.type);n!==i&&(Z(ye,e),Z(ee,i))}function Te(e){ye.current===e&&(W(ee),W(ye)),J.current===e&&(W(J),_s._currentValue=P)}var Ae=Object.prototype.hasOwnProperty,ft=t.unstable_scheduleCallback,Ct=t.unstable_cancelCallback,Ka=t.unstable_shouldYield,$a=t.unstable_requestPaint,gt=t.unstable_now,Lc=t.unstable_getCurrentPriorityLevel,Za=t.unstable_ImmediatePriority,xm=t.unstable_UserBlockingPriority,wo=t.unstable_NormalPriority,pw=t.unstable_LowPriority,bm=t.unstable_IdlePriority,gw=t.log,yw=t.unstable_setDisableYieldValue,Hr=null,Lt=null;function da(e){if(typeof gw=="function"&&yw(e),Lt&&typeof Lt.setStrictMode=="function")try{Lt.setStrictMode(Hr,e)}catch{}}var Vt=Math.clz32?Math.clz32:bw,vw=Math.log,xw=Math.LN2;function bw(e){return e>>>=0,e===0?32:31-(vw(e)/xw|0)|0}var To=256,Ao=4194304;function Qa(e){var n=e&42;if(n!==0)return n;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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;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 Eo(e,n,i){var o=e.pendingLanes;if(o===0)return 0;var c=0,d=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var T=o&134217727;return T!==0?(o=T&~d,o!==0?c=Qa(o):(x&=T,x!==0?c=Qa(x):i||(i=T&~e,i!==0&&(c=Qa(i))))):(T=o&~d,T!==0?c=Qa(T):x!==0?c=Qa(x):i||(i=o&~e,i!==0&&(c=Qa(i)))),c===0?0:n!==0&&n!==c&&(n&d)===0&&(d=c&-c,i=n&-n,d>=i||d===32&&(i&4194048)!==0)?n:c}function Gr(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Sw(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 Sm(){var e=To;return To<<=1,(To&4194048)===0&&(To=256),e}function wm(){var e=Ao;return Ao<<=1,(Ao&62914560)===0&&(Ao=4194304),e}function Vc(e){for(var n=[],i=0;31>i;i++)n.push(e);return n}function qr(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ww(e,n,i,o,c,d){var x=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var T=e.entanglements,M=e.expirationTimes,B=e.hiddenUpdates;for(i=x&~i;0<i;){var I=31-Vt(i),K=1<<I;T[I]=0,M[I]=-1;var H=B[I];if(H!==null)for(B[I]=null,I=0;I<H.length;I++){var G=H[I];G!==null&&(G.lane&=-536870913)}i&=~K}o!==0&&Tm(e,o,0),d!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=d&~(x&~n))}function Tm(e,n,i){e.pendingLanes|=n,e.suspendedLanes&=~n;var o=31-Vt(n);e.entangledLanes|=n,e.entanglements[o]=e.entanglements[o]|1073741824|i&4194090}function Am(e,n){var i=e.entangledLanes|=n;for(e=e.entanglements;i;){var o=31-Vt(i),c=1<<o;c&n|e[o]&n&&(e[o]|=n),i&=~c}}function zc(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 kc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Em(){var e=q.p;return e!==0?e:(e=window.event,e===void 0?32:iv(e.type))}function Tw(e,n){var i=q.p;try{return q.p=e,n()}finally{q.p=i}}var ha=Math.random().toString(36).slice(2),yt="__reactFiber$"+ha,Rt="__reactProps$"+ha,Ni="__reactContainer$"+ha,Bc="__reactEvents$"+ha,Aw="__reactListeners$"+ha,Ew="__reactHandles$"+ha,Cm="__reactResources$"+ha,Yr="__reactMarker$"+ha;function Uc(e){delete e[yt],delete e[Rt],delete e[Bc],delete e[Aw],delete e[Ew]}function ji(e){var n=e[yt];if(n)return n;for(var i=e.parentNode;i;){if(n=i[Ni]||i[yt]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(e=qy(e);e!==null;){if(i=e[yt])return i;e=qy(e)}return n}e=i,i=e.parentNode}return null}function Mi(e){if(e=e[yt]||e[Ni]){var n=e.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return e}return null}function Ir(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(s(33))}function Di(e){var n=e[Cm];return n||(n=e[Cm]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function ot(e){e[Yr]=!0}var Rm=new Set,Nm={};function Wa(e,n){Oi(e,n),Oi(e+"Capture",n)}function Oi(e,n){for(Nm[e]=n,e=0;e<n.length;e++)Rm.add(n[e])}var Cw=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]*$"),jm={},Mm={};function Rw(e){return Ae.call(Mm,e)?!0:Ae.call(jm,e)?!1:Cw.test(e)?Mm[e]=!0:(jm[e]=!0,!1)}function Co(e,n,i){if(Rw(n))if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var o=n.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+i)}}function Ro(e,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.setAttribute(n,""+i)}}function Pn(e,n,i,o){if(o===null)e.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(n,i,""+o)}}var Pc,Dm;function _i(e){if(Pc===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);Pc=n&&n[1]||"",Dm=-1<i.stack.indexOf(`
    at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Pc+e+Dm}var Hc=!1;function Gc(e,n){if(!e||Hc)return"";Hc=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(n){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(G){var H=G}Reflect.construct(e,[],K)}else{try{K.call()}catch(G){H=G}e.call(K.prototype)}}else{try{throw Error()}catch(G){H=G}(K=e())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(G){if(G&&H&&typeof G.stack=="string")return[G.stack,H.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=o.DetermineComponentFrameRoot(),x=d[0],T=d[1];if(x&&T){var M=x.split(`
`),B=T.split(`
`);for(c=o=0;o<M.length&&!M[o].includes("DetermineComponentFrameRoot");)o++;for(;c<B.length&&!B[c].includes("DetermineComponentFrameRoot");)c++;if(o===M.length||c===B.length)for(o=M.length-1,c=B.length-1;1<=o&&0<=c&&M[o]!==B[c];)c--;for(;1<=o&&0<=c;o--,c--)if(M[o]!==B[c]){if(o!==1||c!==1)do if(o--,c--,0>c||M[o]!==B[c]){var I=`
`+M[o].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),I}while(1<=o&&0<=c);break}}}finally{Hc=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?_i(i):""}function Nw(e){switch(e.tag){case 26:case 27:case 5:return _i(e.type);case 16:return _i("Lazy");case 13:return _i("Suspense");case 19:return _i("SuspenseList");case 0:case 15:return Gc(e.type,!1);case 11:return Gc(e.type.render,!1);case 1:return Gc(e.type,!0);case 31:return _i("Activity");default:return""}}function Om(e){try{var n="";do n+=Nw(e),e=e.return;while(e);return n}catch(i){return`
Error generating stack: `+i.message+`
`+i.stack}}function Ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _m(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function jw(e){var n=_m(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),o=""+e[n];if(!e.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var c=i.get,d=i.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return c.call(this)},set:function(x){o=""+x,d.call(this,x)}}),Object.defineProperty(e,n,{enumerable:i.enumerable}),{getValue:function(){return o},setValue:function(x){o=""+x},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function No(e){e._valueTracker||(e._valueTracker=jw(e))}function Lm(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var i=n.getValue(),o="";return e&&(o=_m(e)?e.checked?"true":"false":e.value),e=o,e!==i?(n.setValue(e),!0):!1}function jo(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 Mw=/[\n"\\]/g;function Xt(e){return e.replace(Mw,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function qc(e,n,i,o,c,d,x,T){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),n!=null?x==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Ft(n)):e.value!==""+Ft(n)&&(e.value=""+Ft(n)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),n!=null?Yc(e,x,Ft(n)):i!=null?Yc(e,x,Ft(i)):o!=null&&e.removeAttribute("value"),c==null&&d!=null&&(e.defaultChecked=!!d),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?e.name=""+Ft(T):e.removeAttribute("name")}function Vm(e,n,i,o,c,d,x,T){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),n!=null||i!=null){if(!(d!=="submit"&&d!=="reset"||n!=null))return;i=i!=null?""+Ft(i):"",n=n!=null?""+Ft(n):i,T||n===e.value||(e.value=n),e.defaultValue=n}o=o??c,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=T?e.checked:!!o,e.defaultChecked=!!o,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x)}function Yc(e,n,i){n==="number"&&jo(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function Li(e,n,i,o){if(e=e.options,n){n={};for(var c=0;c<i.length;c++)n["$"+i[c]]=!0;for(i=0;i<e.length;i++)c=n.hasOwnProperty("$"+e[i].value),e[i].selected!==c&&(e[i].selected=c),c&&o&&(e[i].defaultSelected=!0)}else{for(i=""+Ft(i),n=null,c=0;c<e.length;c++){if(e[c].value===i){e[c].selected=!0,o&&(e[c].defaultSelected=!0);return}n!==null||e[c].disabled||(n=e[c])}n!==null&&(n.selected=!0)}}function zm(e,n,i){if(n!=null&&(n=""+Ft(n),n!==e.value&&(e.value=n),i==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=i!=null?""+Ft(i):""}function km(e,n,i,o){if(n==null){if(o!=null){if(i!=null)throw Error(s(92));if(de(o)){if(1<o.length)throw Error(s(93));o=o[0]}i=o}i==null&&(i=""),n=i}i=Ft(n),e.defaultValue=i,o=e.textContent,o===i&&o!==""&&o!==null&&(e.value=o)}function Vi(e,n){if(n){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=n;return}}e.textContent=n}var Dw=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 Bm(e,n,i){var o=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?o?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":o?e.setProperty(n,i):typeof i!="number"||i===0||Dw.has(n)?n==="float"?e.cssFloat=i:e[n]=(""+i).trim():e[n]=i+"px"}function Um(e,n,i){if(n!=null&&typeof n!="object")throw Error(s(62));if(e=e.style,i!=null){for(var o in i)!i.hasOwnProperty(o)||n!=null&&n.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var c in n)o=n[c],n.hasOwnProperty(c)&&i[c]!==o&&Bm(e,c,o)}else for(var d in n)n.hasOwnProperty(d)&&Bm(e,d,n[d])}function Ic(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 Ow=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"]]),_w=/^[\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 Mo(e){return _w.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Fc=null;function Xc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zi=null,ki=null;function Pm(e){var n=Mi(e);if(n&&(e=n.stateNode)){var i=e[Rt]||null;e:switch(e=n.stateNode,n.type){case"input":if(qc(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Xt(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var o=i[n];if(o!==e&&o.form===e.form){var c=o[Rt]||null;if(!c)throw Error(s(90));qc(o,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(n=0;n<i.length;n++)o=i[n],o.form===e.form&&Lm(o)}break e;case"textarea":zm(e,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&Li(e,!!i.multiple,n,!1)}}}var Kc=!1;function Hm(e,n,i){if(Kc)return e(n,i);Kc=!0;try{var o=e(n);return o}finally{if(Kc=!1,(zi!==null||ki!==null)&&(pl(),zi&&(n=zi,e=ki,ki=zi=null,Pm(n),e)))for(n=0;n<e.length;n++)Pm(e[n])}}function Fr(e,n){var i=e.stateNode;if(i===null)return null;var o=i[Rt]||null;if(o===null)return null;i=o[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(s(231,n,typeof i));return i}var Hn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$c=!1;if(Hn)try{var Xr={};Object.defineProperty(Xr,"passive",{get:function(){$c=!0}}),window.addEventListener("test",Xr,Xr),window.removeEventListener("test",Xr,Xr)}catch{$c=!1}var ma=null,Zc=null,Do=null;function Gm(){if(Do)return Do;var e,n=Zc,i=n.length,o,c="value"in ma?ma.value:ma.textContent,d=c.length;for(e=0;e<i&&n[e]===c[e];e++);var x=i-e;for(o=1;o<=x&&n[i-o]===c[d-o];o++);return Do=c.slice(e,1<o?1-o:void 0)}function Oo(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function _o(){return!0}function qm(){return!1}function Nt(e){function n(i,o,c,d,x){this._reactName=i,this._targetInst=c,this.type=o,this.nativeEvent=d,this.target=x,this.currentTarget=null;for(var T in e)e.hasOwnProperty(T)&&(i=e[T],this[T]=i?i(d):d[T]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?_o:qm,this.isPropagationStopped=qm,this}return y(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=_o)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=_o)},persist:function(){},isPersistent:_o}),n}var Ja={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Lo=Nt(Ja),Kr=y({},Ja,{view:0,detail:0}),Lw=Nt(Kr),Qc,Wc,$r,Vo=y({},Kr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:eu,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!==$r&&($r&&e.type==="mousemove"?(Qc=e.screenX-$r.screenX,Wc=e.screenY-$r.screenY):Wc=Qc=0,$r=e),Qc)},movementY:function(e){return"movementY"in e?e.movementY:Wc}}),Ym=Nt(Vo),Vw=y({},Vo,{dataTransfer:0}),zw=Nt(Vw),kw=y({},Kr,{relatedTarget:0}),Jc=Nt(kw),Bw=y({},Ja,{animationName:0,elapsedTime:0,pseudoElement:0}),Uw=Nt(Bw),Pw=y({},Ja,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Hw=Nt(Pw),Gw=y({},Ja,{data:0}),Im=Nt(Gw),qw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Yw={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"},Iw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fw(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Iw[e])?!!n[e]:!1}function eu(){return Fw}var Xw=y({},Kr,{key:function(e){if(e.key){var n=qw[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Oo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Yw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:eu,charCode:function(e){return e.type==="keypress"?Oo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Oo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Kw=Nt(Xw),$w=y({},Vo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fm=Nt($w),Zw=y({},Kr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:eu}),Qw=Nt(Zw),Ww=y({},Ja,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jw=Nt(Ww),eT=y({},Vo,{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}),tT=Nt(eT),nT=y({},Ja,{newState:0,oldState:0}),aT=Nt(nT),iT=[9,13,27,32],tu=Hn&&"CompositionEvent"in window,Zr=null;Hn&&"documentMode"in document&&(Zr=document.documentMode);var rT=Hn&&"TextEvent"in window&&!Zr,Xm=Hn&&(!tu||Zr&&8<Zr&&11>=Zr),Km=" ",$m=!1;function Zm(e,n){switch(e){case"keyup":return iT.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bi=!1;function sT(e,n){switch(e){case"compositionend":return Qm(n);case"keypress":return n.which!==32?null:($m=!0,Km);case"textInput":return e=n.data,e===Km&&$m?null:e;default:return null}}function oT(e,n){if(Bi)return e==="compositionend"||!tu&&Zm(e,n)?(e=Gm(),Do=Zc=ma=null,Bi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Xm&&n.locale!=="ko"?null:n.data;default:return null}}var lT={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 Wm(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!lT[e.type]:n==="textarea"}function Jm(e,n,i,o){zi?ki?ki.push(o):ki=[o]:zi=o,n=Sl(n,"onChange"),0<n.length&&(i=new Lo("onChange","change",null,i,o),e.push({event:i,listeners:n}))}var Qr=null,Wr=null;function cT(e){_y(e,0)}function zo(e){var n=Ir(e);if(Lm(n))return e}function ep(e,n){if(e==="change")return n}var tp=!1;if(Hn){var nu;if(Hn){var au="oninput"in document;if(!au){var np=document.createElement("div");np.setAttribute("oninput","return;"),au=typeof np.oninput=="function"}nu=au}else nu=!1;tp=nu&&(!document.documentMode||9<document.documentMode)}function ap(){Qr&&(Qr.detachEvent("onpropertychange",ip),Wr=Qr=null)}function ip(e){if(e.propertyName==="value"&&zo(Wr)){var n=[];Jm(n,Wr,e,Xc(e)),Hm(cT,n)}}function uT(e,n,i){e==="focusin"?(ap(),Qr=n,Wr=i,Qr.attachEvent("onpropertychange",ip)):e==="focusout"&&ap()}function fT(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zo(Wr)}function dT(e,n){if(e==="click")return zo(n)}function hT(e,n){if(e==="input"||e==="change")return zo(n)}function mT(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var zt=typeof Object.is=="function"?Object.is:mT;function Jr(e,n){if(zt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var i=Object.keys(e),o=Object.keys(n);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var c=i[o];if(!Ae.call(n,c)||!zt(e[c],n[c]))return!1}return!0}function rp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sp(e,n){var i=rp(e);e=0;for(var o;i;){if(i.nodeType===3){if(o=e+i.textContent.length,e<=n&&o>=n)return{node:i,offset:n-e};e=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=rp(i)}}function op(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?op(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function lp(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=jo(e.document);n instanceof e.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)e=n.contentWindow;else break;n=jo(e.document)}return n}function iu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var pT=Hn&&"documentMode"in document&&11>=document.documentMode,Ui=null,ru=null,es=null,su=!1;function cp(e,n,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;su||Ui==null||Ui!==jo(o)||(o=Ui,"selectionStart"in o&&iu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),es&&Jr(es,o)||(es=o,o=Sl(ru,"onSelect"),0<o.length&&(n=new Lo("onSelect","select",null,n,i),e.push({event:n,listeners:o}),n.target=Ui)))}function ei(e,n){var i={};return i[e.toLowerCase()]=n.toLowerCase(),i["Webkit"+e]="webkit"+n,i["Moz"+e]="moz"+n,i}var Pi={animationend:ei("Animation","AnimationEnd"),animationiteration:ei("Animation","AnimationIteration"),animationstart:ei("Animation","AnimationStart"),transitionrun:ei("Transition","TransitionRun"),transitionstart:ei("Transition","TransitionStart"),transitioncancel:ei("Transition","TransitionCancel"),transitionend:ei("Transition","TransitionEnd")},ou={},up={};Hn&&(up=document.createElement("div").style,"AnimationEvent"in window||(delete Pi.animationend.animation,delete Pi.animationiteration.animation,delete Pi.animationstart.animation),"TransitionEvent"in window||delete Pi.transitionend.transition);function ti(e){if(ou[e])return ou[e];if(!Pi[e])return e;var n=Pi[e],i;for(i in n)if(n.hasOwnProperty(i)&&i in up)return ou[e]=n[i];return e}var fp=ti("animationend"),dp=ti("animationiteration"),hp=ti("animationstart"),gT=ti("transitionrun"),yT=ti("transitionstart"),vT=ti("transitioncancel"),mp=ti("transitionend"),pp=new Map,lu="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(" ");lu.push("scrollEnd");function un(e,n){pp.set(e,n),Wa(n,[e])}var gp=new WeakMap;function Kt(e,n){if(typeof e=="object"&&e!==null){var i=gp.get(e);return i!==void 0?i:(n={value:e,source:n,stack:Om(n)},gp.set(e,n),n)}return{value:e,source:n,stack:Om(n)}}var $t=[],Hi=0,cu=0;function ko(){for(var e=Hi,n=cu=Hi=0;n<e;){var i=$t[n];$t[n++]=null;var o=$t[n];$t[n++]=null;var c=$t[n];$t[n++]=null;var d=$t[n];if($t[n++]=null,o!==null&&c!==null){var x=o.pending;x===null?c.next=c:(c.next=x.next,x.next=c),o.pending=c}d!==0&&yp(i,c,d)}}function Bo(e,n,i,o){$t[Hi++]=e,$t[Hi++]=n,$t[Hi++]=i,$t[Hi++]=o,cu|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function uu(e,n,i,o){return Bo(e,n,i,o),Uo(e)}function Gi(e,n){return Bo(e,null,null,n),Uo(e)}function yp(e,n,i){e.lanes|=i;var o=e.alternate;o!==null&&(o.lanes|=i);for(var c=!1,d=e.return;d!==null;)d.childLanes|=i,o=d.alternate,o!==null&&(o.childLanes|=i),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(c=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,c&&n!==null&&(c=31-Vt(i),e=d.hiddenUpdates,o=e[c],o===null?e[c]=[n]:o.push(n),n.lane=i|536870912),d):null}function Uo(e){if(50<Es)throw Es=0,yf=null,Error(s(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var qi={};function xT(e,n,i,o){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kt(e,n,i,o){return new xT(e,n,i,o)}function fu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gn(e,n){var i=e.alternate;return i===null?(i=kt(e.tag,n,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=n,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,n=e.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function vp(e,n){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,n=i.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Po(e,n,i,o,c,d){var x=0;if(o=e,typeof e=="function")fu(e)&&(x=1);else if(typeof e=="string")x=SA(e,i,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Q:return e=kt(31,i,n,c),e.elementType=Q,e.lanes=d,e;case E:return ni(i.children,c,d,n);case w:x=8,c|=24;break;case C:return e=kt(12,i,n,c|2),e.elementType=C,e.lanes=d,e;case _:return e=kt(13,i,n,c),e.elementType=_,e.lanes=d,e;case $:return e=kt(19,i,n,c),e.elementType=$,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case R:case j:x=10;break e;case N:x=9;break e;case k:x=11;break e;case Y:x=14;break e;case U:x=16,o=null;break e}x=29,i=Error(s(130,e===null?"null":typeof e,"")),o=null}return n=kt(x,i,n,c),n.elementType=e,n.type=o,n.lanes=d,n}function ni(e,n,i,o){return e=kt(7,e,o,n),e.lanes=i,e}function du(e,n,i){return e=kt(6,e,null,n),e.lanes=i,e}function hu(e,n,i){return n=kt(4,e.children!==null?e.children:[],e.key,n),n.lanes=i,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var Yi=[],Ii=0,Ho=null,Go=0,Zt=[],Qt=0,ai=null,qn=1,Yn="";function ii(e,n){Yi[Ii++]=Go,Yi[Ii++]=Ho,Ho=e,Go=n}function xp(e,n,i){Zt[Qt++]=qn,Zt[Qt++]=Yn,Zt[Qt++]=ai,ai=e;var o=qn;e=Yn;var c=32-Vt(o)-1;o&=~(1<<c),i+=1;var d=32-Vt(n)+c;if(30<d){var x=c-c%5;d=(o&(1<<x)-1).toString(32),o>>=x,c-=x,qn=1<<32-Vt(n)+c|i<<c|o,Yn=d+e}else qn=1<<d|i<<c|o,Yn=e}function mu(e){e.return!==null&&(ii(e,1),xp(e,1,0))}function pu(e){for(;e===Ho;)Ho=Yi[--Ii],Yi[Ii]=null,Go=Yi[--Ii],Yi[Ii]=null;for(;e===ai;)ai=Zt[--Qt],Zt[Qt]=null,Yn=Zt[--Qt],Zt[Qt]=null,qn=Zt[--Qt],Zt[Qt]=null}var Tt=null,$e=null,Oe=!1,ri=null,Sn=!1,gu=Error(s(519));function si(e){var n=Error(s(418,""));throw as(Kt(n,e)),gu}function bp(e){var n=e.stateNode,i=e.type,o=e.memoizedProps;switch(n[yt]=e,n[Rt]=o,i){case"dialog":Ce("cancel",n),Ce("close",n);break;case"iframe":case"object":case"embed":Ce("load",n);break;case"video":case"audio":for(i=0;i<Rs.length;i++)Ce(Rs[i],n);break;case"source":Ce("error",n);break;case"img":case"image":case"link":Ce("error",n),Ce("load",n);break;case"details":Ce("toggle",n);break;case"input":Ce("invalid",n),Vm(n,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),No(n);break;case"select":Ce("invalid",n);break;case"textarea":Ce("invalid",n),km(n,o.value,o.defaultValue,o.children),No(n)}i=o.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||o.suppressHydrationWarning===!0||ky(n.textContent,i)?(o.popover!=null&&(Ce("beforetoggle",n),Ce("toggle",n)),o.onScroll!=null&&Ce("scroll",n),o.onScrollEnd!=null&&Ce("scrollend",n),o.onClick!=null&&(n.onclick=wl),n=!0):n=!1,n||si(e)}function Sp(e){for(Tt=e.return;Tt;)switch(Tt.tag){case 5:case 13:Sn=!1;return;case 27:case 3:Sn=!0;return;default:Tt=Tt.return}}function ts(e){if(e!==Tt)return!1;if(!Oe)return Sp(e),Oe=!0,!1;var n=e.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||_f(e.type,e.memoizedProps)),i=!i),i&&$e&&si(e),Sp(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8)if(i=e.data,i==="/$"){if(n===0){$e=dn(e.nextSibling);break e}n--}else i!=="$"&&i!=="$!"&&i!=="$?"||n++;e=e.nextSibling}$e=null}}else n===27?(n=$e,Ma(e.type)?(e=kf,kf=null,$e=e):$e=n):$e=Tt?dn(e.stateNode.nextSibling):null;return!0}function ns(){$e=Tt=null,Oe=!1}function wp(){var e=ri;return e!==null&&(Dt===null?Dt=e:Dt.push.apply(Dt,e),ri=null),e}function as(e){ri===null?ri=[e]:ri.push(e)}var yu=X(null),oi=null,In=null;function pa(e,n,i){Z(yu,n._currentValue),n._currentValue=i}function Fn(e){e._currentValue=yu.current,W(yu)}function vu(e,n,i){for(;e!==null;){var o=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,o!==null&&(o.childLanes|=n)):o!==null&&(o.childLanes&n)!==n&&(o.childLanes|=n),e===i)break;e=e.return}}function xu(e,n,i,o){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var d=c.dependencies;if(d!==null){var x=c.child;d=d.firstContext;e:for(;d!==null;){var T=d;d=c;for(var M=0;M<n.length;M++)if(T.context===n[M]){d.lanes|=i,T=d.alternate,T!==null&&(T.lanes|=i),vu(d.return,i,e),o||(x=null);break e}d=T.next}}else if(c.tag===18){if(x=c.return,x===null)throw Error(s(341));x.lanes|=i,d=x.alternate,d!==null&&(d.lanes|=i),vu(x,i,e),x=null}else x=c.child;if(x!==null)x.return=c;else for(x=c;x!==null;){if(x===e){x=null;break}if(c=x.sibling,c!==null){c.return=x.return,x=c;break}x=x.return}c=x}}function is(e,n,i,o){e=null;for(var c=n,d=!1;c!==null;){if(!d){if((c.flags&524288)!==0)d=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var x=c.alternate;if(x===null)throw Error(s(387));if(x=x.memoizedProps,x!==null){var T=c.type;zt(c.pendingProps.value,x.value)||(e!==null?e.push(T):e=[T])}}else if(c===J.current){if(x=c.alternate,x===null)throw Error(s(387));x.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(_s):e=[_s])}c=c.return}e!==null&&xu(n,e,i,o),n.flags|=262144}function qo(e){for(e=e.firstContext;e!==null;){if(!zt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function li(e){oi=e,In=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return Tp(oi,e)}function Yo(e,n){return oi===null&&li(e),Tp(e,n)}function Tp(e,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},In===null){if(e===null)throw Error(s(308));In=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else In=In.next=n;return i}var bT=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(i,o){e.push(o)}};this.abort=function(){n.aborted=!0,e.forEach(function(i){return i()})}},ST=t.unstable_scheduleCallback,wT=t.unstable_NormalPriority,it={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function bu(){return{controller:new bT,data:new Map,refCount:0}}function rs(e){e.refCount--,e.refCount===0&&ST(wT,function(){e.controller.abort()})}var ss=null,Su=0,Fi=0,Xi=null;function TT(e,n){if(ss===null){var i=ss=[];Su=0,Fi=Af(),Xi={status:"pending",value:void 0,then:function(o){i.push(o)}}}return Su++,n.then(Ap,Ap),n}function Ap(){if(--Su===0&&ss!==null){Xi!==null&&(Xi.status="fulfilled");var e=ss;ss=null,Fi=0,Xi=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function AT(e,n){var i=[],o={status:"pending",value:null,reason:null,then:function(c){i.push(c)}};return e.then(function(){o.status="fulfilled",o.value=n;for(var c=0;c<i.length;c++)(0,i[c])(n)},function(c){for(o.status="rejected",o.reason=c,c=0;c<i.length;c++)(0,i[c])(void 0)}),o}var Ep=V.S;V.S=function(e,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&TT(e,n),Ep!==null&&Ep(e,n)};var ci=X(null);function wu(){var e=ci.current;return e!==null?e:He.pooledCache}function Io(e,n){n===null?Z(ci,ci.current):Z(ci,n.pool)}function Cp(){var e=wu();return e===null?null:{parent:it._currentValue,pool:e}}var os=Error(s(460)),Rp=Error(s(474)),Fo=Error(s(542)),Tu={then:function(){}};function Np(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Xo(){}function jp(e,n,i){switch(i=e[i],i===void 0?e.push(n):i!==n&&(n.then(Xo,Xo),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Dp(e),e;default:if(typeof n.status=="string")n.then(Xo,Xo);else{if(e=He,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=n,e.status="pending",e.then(function(o){if(n.status==="pending"){var c=n;c.status="fulfilled",c.value=o}},function(o){if(n.status==="pending"){var c=n;c.status="rejected",c.reason=o}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Dp(e),e}throw ls=n,os}}var ls=null;function Mp(){if(ls===null)throw Error(s(459));var e=ls;return ls=null,e}function Dp(e){if(e===os||e===Fo)throw Error(s(483))}var ga=!1;function Au(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Eu(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ya(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function va(e,n,i){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Le&2)!==0){var c=o.pending;return c===null?n.next=n:(n.next=c.next,c.next=n),o.pending=n,n=Uo(e),yp(e,null,i),n}return Bo(e,o,n,i),Uo(e)}function cs(e,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var o=n.lanes;o&=e.pendingLanes,i|=o,n.lanes=i,Am(e,i)}}function Cu(e,n){var i=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var c=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var x={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};d===null?c=d=x:d=d.next=x,i=i.next}while(i!==null);d===null?c=d=n:d=d.next=n}else c=d=n;i={baseState:o.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:o.shared,callbacks:o.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=n:e.next=n,i.lastBaseUpdate=n}var Ru=!1;function us(){if(Ru){var e=Xi;if(e!==null)throw e}}function fs(e,n,i,o){Ru=!1;var c=e.updateQueue;ga=!1;var d=c.firstBaseUpdate,x=c.lastBaseUpdate,T=c.shared.pending;if(T!==null){c.shared.pending=null;var M=T,B=M.next;M.next=null,x===null?d=B:x.next=B,x=M;var I=e.alternate;I!==null&&(I=I.updateQueue,T=I.lastBaseUpdate,T!==x&&(T===null?I.firstBaseUpdate=B:T.next=B,I.lastBaseUpdate=M))}if(d!==null){var K=c.baseState;x=0,I=B=M=null,T=d;do{var H=T.lane&-536870913,G=H!==T.lane;if(G?(Ne&H)===H:(o&H)===H){H!==0&&H===Fi&&(Ru=!0),I!==null&&(I=I.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var me=e,fe=T;H=n;var Be=i;switch(fe.tag){case 1:if(me=fe.payload,typeof me=="function"){K=me.call(Be,K,H);break e}K=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=fe.payload,H=typeof me=="function"?me.call(Be,K,H):me,H==null)break e;K=y({},K,H);break e;case 2:ga=!0}}H=T.callback,H!==null&&(e.flags|=64,G&&(e.flags|=8192),G=c.callbacks,G===null?c.callbacks=[H]:G.push(H))}else G={lane:H,tag:T.tag,payload:T.payload,callback:T.callback,next:null},I===null?(B=I=G,M=K):I=I.next=G,x|=H;if(T=T.next,T===null){if(T=c.shared.pending,T===null)break;G=T,T=G.next,G.next=null,c.lastBaseUpdate=G,c.shared.pending=null}}while(!0);I===null&&(M=K),c.baseState=M,c.firstBaseUpdate=B,c.lastBaseUpdate=I,d===null&&(c.shared.lanes=0),Ca|=x,e.lanes=x,e.memoizedState=K}}function Op(e,n){if(typeof e!="function")throw Error(s(191,e));e.call(n)}function _p(e,n){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)Op(i[e],n)}var Ki=X(null),Ko=X(0);function Lp(e,n){e=Jn,Z(Ko,e),Z(Ki,n),Jn=e|n.baseLanes}function Nu(){Z(Ko,Jn),Z(Ki,Ki.current)}function ju(){Jn=Ko.current,W(Ki),W(Ko)}var xa=0,be=null,ze=null,nt=null,$o=!1,$i=!1,ui=!1,Zo=0,ds=0,Zi=null,ET=0;function Je(){throw Error(s(321))}function Mu(e,n){if(n===null)return!1;for(var i=0;i<n.length&&i<e.length;i++)if(!zt(e[i],n[i]))return!1;return!0}function Du(e,n,i,o,c,d){return xa=d,be=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,V.H=e===null||e.memoizedState===null?yg:vg,ui=!1,d=i(o,c),ui=!1,$i&&(d=zp(n,i,o,c)),Vp(e),d}function Vp(e){V.H=nl;var n=ze!==null&&ze.next!==null;if(xa=0,nt=ze=be=null,$o=!1,ds=0,Zi=null,n)throw Error(s(300));e===null||lt||(e=e.dependencies,e!==null&&qo(e)&&(lt=!0))}function zp(e,n,i,o){be=e;var c=0;do{if($i&&(Zi=null),ds=0,$i=!1,25<=c)throw Error(s(301));if(c+=1,nt=ze=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}V.H=OT,d=n(i,o)}while($i);return d}function CT(){var e=V.H,n=e.useState()[0];return n=typeof n.then=="function"?hs(n):n,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(be.flags|=1024),n}function Ou(){var e=Zo!==0;return Zo=0,e}function _u(e,n,i){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~i}function Lu(e){if($o){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}$o=!1}xa=0,nt=ze=be=null,$i=!1,ds=Zo=0,Zi=null}function jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?be.memoizedState=nt=e:nt=nt.next=e,nt}function at(){if(ze===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var n=nt===null?be.memoizedState:nt.next;if(n!==null)nt=n,ze=e;else{if(e===null)throw be.alternate===null?Error(s(467)):Error(s(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},nt===null?be.memoizedState=nt=e:nt=nt.next=e}return nt}function Vu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function hs(e){var n=ds;return ds+=1,Zi===null&&(Zi=[]),e=jp(Zi,e,n),n=be,(nt===null?n.memoizedState:nt.next)===null&&(n=n.alternate,V.H=n===null||n.memoizedState===null?yg:vg),e}function Qo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return hs(e);if(e.$$typeof===j)return vt(e)}throw Error(s(438,String(e)))}function zu(e){var n=null,i=be.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var o=be.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(n={data:o.data.map(function(c){return c.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=Vu(),be.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(e),o=0;o<e;o++)i[o]=te;return n.index++,i}function Xn(e,n){return typeof n=="function"?n(e):n}function Wo(e){var n=at();return ku(n,ze,e)}function ku(e,n,i){var o=e.queue;if(o===null)throw Error(s(311));o.lastRenderedReducer=i;var c=e.baseQueue,d=o.pending;if(d!==null){if(c!==null){var x=c.next;c.next=d.next,d.next=x}n.baseQueue=c=d,o.pending=null}if(d=e.baseState,c===null)e.memoizedState=d;else{n=c.next;var T=x=null,M=null,B=n,I=!1;do{var K=B.lane&-536870913;if(K!==B.lane?(Ne&K)===K:(xa&K)===K){var H=B.revertLane;if(H===0)M!==null&&(M=M.next={lane:0,revertLane:0,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),K===Fi&&(I=!0);else if((xa&H)===H){B=B.next,H===Fi&&(I=!0);continue}else K={lane:0,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},M===null?(T=M=K,x=d):M=M.next=K,be.lanes|=H,Ca|=H;K=B.action,ui&&i(d,K),d=B.hasEagerState?B.eagerState:i(d,K)}else H={lane:K,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},M===null?(T=M=H,x=d):M=M.next=H,be.lanes|=K,Ca|=K;B=B.next}while(B!==null&&B!==n);if(M===null?x=d:M.next=T,!zt(d,e.memoizedState)&&(lt=!0,I&&(i=Xi,i!==null)))throw i;e.memoizedState=d,e.baseState=x,e.baseQueue=M,o.lastRenderedState=d}return c===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Bu(e){var n=at(),i=n.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=e;var o=i.dispatch,c=i.pending,d=n.memoizedState;if(c!==null){i.pending=null;var x=c=c.next;do d=e(d,x.action),x=x.next;while(x!==c);zt(d,n.memoizedState)||(lt=!0),n.memoizedState=d,n.baseQueue===null&&(n.baseState=d),i.lastRenderedState=d}return[d,o]}function kp(e,n,i){var o=be,c=at(),d=Oe;if(d){if(i===void 0)throw Error(s(407));i=i()}else i=n();var x=!zt((ze||c).memoizedState,i);x&&(c.memoizedState=i,lt=!0),c=c.queue;var T=Pp.bind(null,o,c,e);if(ms(2048,8,T,[e]),c.getSnapshot!==n||x||nt!==null&&nt.memoizedState.tag&1){if(o.flags|=2048,Qi(9,Jo(),Up.bind(null,o,c,i,n),null),He===null)throw Error(s(349));d||(xa&124)!==0||Bp(o,n,i)}return i}function Bp(e,n,i){e.flags|=16384,e={getSnapshot:n,value:i},n=be.updateQueue,n===null?(n=Vu(),be.updateQueue=n,n.stores=[e]):(i=n.stores,i===null?n.stores=[e]:i.push(e))}function Up(e,n,i,o){n.value=i,n.getSnapshot=o,Hp(n)&&Gp(e)}function Pp(e,n,i){return i(function(){Hp(n)&&Gp(e)})}function Hp(e){var n=e.getSnapshot;e=e.value;try{var i=n();return!zt(e,i)}catch{return!0}}function Gp(e){var n=Gi(e,2);n!==null&&Gt(n,e,2)}function Uu(e){var n=jt();if(typeof e=="function"){var i=e;if(e=i(),ui){da(!0);try{i()}finally{da(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:e},n}function qp(e,n,i,o){return e.baseState=i,ku(e,ze,typeof o=="function"?o:Xn)}function RT(e,n,i,o,c){if(tl(e))throw Error(s(485));if(e=n.action,e!==null){var d={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){d.listeners.push(x)}};V.T!==null?i(!0):d.isTransition=!1,o(d),i=n.pending,i===null?(d.next=n.pending=d,Yp(n,d)):(d.next=i.next,n.pending=i.next=d)}}function Yp(e,n){var i=n.action,o=n.payload,c=e.state;if(n.isTransition){var d=V.T,x={};V.T=x;try{var T=i(c,o),M=V.S;M!==null&&M(x,T),Ip(e,n,T)}catch(B){Pu(e,n,B)}finally{V.T=d}}else try{d=i(c,o),Ip(e,n,d)}catch(B){Pu(e,n,B)}}function Ip(e,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(o){Fp(e,n,o)},function(o){return Pu(e,n,o)}):Fp(e,n,i)}function Fp(e,n,i){n.status="fulfilled",n.value=i,Xp(n),e.state=i,n=e.pending,n!==null&&(i=n.next,i===n?e.pending=null:(i=i.next,n.next=i,Yp(e,i)))}function Pu(e,n,i){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do n.status="rejected",n.reason=i,Xp(n),n=n.next;while(n!==o)}e.action=null}function Xp(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Kp(e,n){return n}function $p(e,n){if(Oe){var i=He.formState;if(i!==null){e:{var o=be;if(Oe){if($e){t:{for(var c=$e,d=Sn;c.nodeType!==8;){if(!d){c=null;break t}if(c=dn(c.nextSibling),c===null){c=null;break t}}d=c.data,c=d==="F!"||d==="F"?c:null}if(c){$e=dn(c.nextSibling),o=c.data==="F!";break e}}si(o)}o=!1}o&&(n=i[0])}}return i=jt(),i.memoizedState=i.baseState=n,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kp,lastRenderedState:n},i.queue=o,i=mg.bind(null,be,o),o.dispatch=i,o=Uu(!1),d=Iu.bind(null,be,!1,o.queue),o=jt(),c={state:n,dispatch:null,action:e,pending:null},o.queue=c,i=RT.bind(null,be,c,d,i),c.dispatch=i,o.memoizedState=e,[n,i,!1]}function Zp(e){var n=at();return Qp(n,ze,e)}function Qp(e,n,i){if(n=ku(e,n,Kp)[0],e=Wo(Xn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var o=hs(n)}catch(x){throw x===os?Fo:x}else o=n;n=at();var c=n.queue,d=c.dispatch;return i!==n.memoizedState&&(be.flags|=2048,Qi(9,Jo(),NT.bind(null,c,i),null)),[o,d,e]}function NT(e,n){e.action=n}function Wp(e){var n=at(),i=ze;if(i!==null)return Qp(n,i,e);at(),n=n.memoizedState,i=at();var o=i.queue.dispatch;return i.memoizedState=e,[n,o,!1]}function Qi(e,n,i,o){return e={tag:e,create:i,deps:o,inst:n,next:null},n=be.updateQueue,n===null&&(n=Vu(),be.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=e.next=e:(o=i.next,i.next=e,e.next=o,n.lastEffect=e),e}function Jo(){return{destroy:void 0,resource:void 0}}function Jp(){return at().memoizedState}function el(e,n,i,o){var c=jt();o=o===void 0?null:o,be.flags|=e,c.memoizedState=Qi(1|n,Jo(),i,o)}function ms(e,n,i,o){var c=at();o=o===void 0?null:o;var d=c.memoizedState.inst;ze!==null&&o!==null&&Mu(o,ze.memoizedState.deps)?c.memoizedState=Qi(n,d,i,o):(be.flags|=e,c.memoizedState=Qi(1|n,d,i,o))}function eg(e,n){el(8390656,8,e,n)}function tg(e,n){ms(2048,8,e,n)}function ng(e,n){return ms(4,2,e,n)}function ag(e,n){return ms(4,4,e,n)}function ig(e,n){if(typeof n=="function"){e=e();var i=n(e);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function rg(e,n,i){i=i!=null?i.concat([e]):null,ms(4,4,ig.bind(null,n,e),i)}function Hu(){}function sg(e,n){var i=at();n=n===void 0?null:n;var o=i.memoizedState;return n!==null&&Mu(n,o[1])?o[0]:(i.memoizedState=[e,n],e)}function og(e,n){var i=at();n=n===void 0?null:n;var o=i.memoizedState;if(n!==null&&Mu(n,o[1]))return o[0];if(o=e(),ui){da(!0);try{e()}finally{da(!1)}}return i.memoizedState=[o,n],o}function Gu(e,n,i){return i===void 0||(xa&1073741824)!==0?e.memoizedState=n:(e.memoizedState=i,e=uy(),be.lanes|=e,Ca|=e,i)}function lg(e,n,i,o){return zt(i,n)?i:Ki.current!==null?(e=Gu(e,i,o),zt(e,n)||(lt=!0),e):(xa&42)===0?(lt=!0,e.memoizedState=i):(e=uy(),be.lanes|=e,Ca|=e,n)}function cg(e,n,i,o,c){var d=q.p;q.p=d!==0&&8>d?d:8;var x=V.T,T={};V.T=T,Iu(e,!1,n,i);try{var M=c(),B=V.S;if(B!==null&&B(T,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var I=AT(M,o);ps(e,n,I,Ht(e))}else ps(e,n,o,Ht(e))}catch(K){ps(e,n,{then:function(){},status:"rejected",reason:K},Ht())}finally{q.p=d,V.T=x}}function jT(){}function qu(e,n,i,o){if(e.tag!==5)throw Error(s(476));var c=ug(e).queue;cg(e,c,n,P,i===null?jT:function(){return fg(e),i(o)})}function ug(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:P},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:i},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function fg(e){var n=ug(e).next.queue;ps(e,n,{},Ht())}function Yu(){return vt(_s)}function dg(){return at().memoizedState}function hg(){return at().memoizedState}function MT(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var i=Ht();e=ya(i);var o=va(n,e,i);o!==null&&(Gt(o,n,i),cs(o,n,i)),n={cache:bu()},e.payload=n;return}n=n.return}}function DT(e,n,i){var o=Ht();i={lane:o,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},tl(e)?pg(n,i):(i=uu(e,n,i,o),i!==null&&(Gt(i,e,o),gg(i,n,o)))}function mg(e,n,i){var o=Ht();ps(e,n,i,o)}function ps(e,n,i,o){var c={lane:o,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(tl(e))pg(n,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=n.lastRenderedReducer,d!==null))try{var x=n.lastRenderedState,T=d(x,i);if(c.hasEagerState=!0,c.eagerState=T,zt(T,x))return Bo(e,n,c,0),He===null&&ko(),!1}catch{}finally{}if(i=uu(e,n,c,o),i!==null)return Gt(i,e,o),gg(i,n,o),!0}return!1}function Iu(e,n,i,o){if(o={lane:2,revertLane:Af(),action:o,hasEagerState:!1,eagerState:null,next:null},tl(e)){if(n)throw Error(s(479))}else n=uu(e,i,o,2),n!==null&&Gt(n,e,2)}function tl(e){var n=e.alternate;return e===be||n!==null&&n===be}function pg(e,n){$i=$o=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function gg(e,n,i){if((i&4194048)!==0){var o=n.lanes;o&=e.pendingLanes,i|=o,n.lanes=i,Am(e,i)}}var nl={readContext:vt,use:Qo,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useLayoutEffect:Je,useInsertionEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useSyncExternalStore:Je,useId:Je,useHostTransitionStatus:Je,useFormState:Je,useActionState:Je,useOptimistic:Je,useMemoCache:Je,useCacheRefresh:Je},yg={readContext:vt,use:Qo,useCallback:function(e,n){return jt().memoizedState=[e,n===void 0?null:n],e},useContext:vt,useEffect:eg,useImperativeHandle:function(e,n,i){i=i!=null?i.concat([e]):null,el(4194308,4,ig.bind(null,n,e),i)},useLayoutEffect:function(e,n){return el(4194308,4,e,n)},useInsertionEffect:function(e,n){el(4,2,e,n)},useMemo:function(e,n){var i=jt();n=n===void 0?null:n;var o=e();if(ui){da(!0);try{e()}finally{da(!1)}}return i.memoizedState=[o,n],o},useReducer:function(e,n,i){var o=jt();if(i!==void 0){var c=i(n);if(ui){da(!0);try{i(n)}finally{da(!1)}}}else c=n;return o.memoizedState=o.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},o.queue=e,e=e.dispatch=DT.bind(null,be,e),[o.memoizedState,e]},useRef:function(e){var n=jt();return e={current:e},n.memoizedState=e},useState:function(e){e=Uu(e);var n=e.queue,i=mg.bind(null,be,n);return n.dispatch=i,[e.memoizedState,i]},useDebugValue:Hu,useDeferredValue:function(e,n){var i=jt();return Gu(i,e,n)},useTransition:function(){var e=Uu(!1);return e=cg.bind(null,be,e.queue,!0,!1),jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,i){var o=be,c=jt();if(Oe){if(i===void 0)throw Error(s(407));i=i()}else{if(i=n(),He===null)throw Error(s(349));(Ne&124)!==0||Bp(o,n,i)}c.memoizedState=i;var d={value:i,getSnapshot:n};return c.queue=d,eg(Pp.bind(null,o,d,e),[e]),o.flags|=2048,Qi(9,Jo(),Up.bind(null,o,d,i,n),null),i},useId:function(){var e=jt(),n=He.identifierPrefix;if(Oe){var i=Yn,o=qn;i=(o&~(1<<32-Vt(o)-1)).toString(32)+i,n="«"+n+"R"+i,i=Zo++,0<i&&(n+="H"+i.toString(32)),n+="»"}else i=ET++,n="«"+n+"r"+i.toString(32)+"»";return e.memoizedState=n},useHostTransitionStatus:Yu,useFormState:$p,useActionState:$p,useOptimistic:function(e){var n=jt();n.memoizedState=n.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=Iu.bind(null,be,!0,i),i.dispatch=n,[e,n]},useMemoCache:zu,useCacheRefresh:function(){return jt().memoizedState=MT.bind(null,be)}},vg={readContext:vt,use:Qo,useCallback:sg,useContext:vt,useEffect:tg,useImperativeHandle:rg,useInsertionEffect:ng,useLayoutEffect:ag,useMemo:og,useReducer:Wo,useRef:Jp,useState:function(){return Wo(Xn)},useDebugValue:Hu,useDeferredValue:function(e,n){var i=at();return lg(i,ze.memoizedState,e,n)},useTransition:function(){var e=Wo(Xn)[0],n=at().memoizedState;return[typeof e=="boolean"?e:hs(e),n]},useSyncExternalStore:kp,useId:dg,useHostTransitionStatus:Yu,useFormState:Zp,useActionState:Zp,useOptimistic:function(e,n){var i=at();return qp(i,ze,e,n)},useMemoCache:zu,useCacheRefresh:hg},OT={readContext:vt,use:Qo,useCallback:sg,useContext:vt,useEffect:tg,useImperativeHandle:rg,useInsertionEffect:ng,useLayoutEffect:ag,useMemo:og,useReducer:Bu,useRef:Jp,useState:function(){return Bu(Xn)},useDebugValue:Hu,useDeferredValue:function(e,n){var i=at();return ze===null?Gu(i,e,n):lg(i,ze.memoizedState,e,n)},useTransition:function(){var e=Bu(Xn)[0],n=at().memoizedState;return[typeof e=="boolean"?e:hs(e),n]},useSyncExternalStore:kp,useId:dg,useHostTransitionStatus:Yu,useFormState:Wp,useActionState:Wp,useOptimistic:function(e,n){var i=at();return ze!==null?qp(i,ze,e,n):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:zu,useCacheRefresh:hg},Wi=null,gs=0;function al(e){var n=gs;return gs+=1,Wi===null&&(Wi=[]),jp(Wi,e,n)}function ys(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function il(e,n){throw n.$$typeof===v?Error(s(525)):(e=Object.prototype.toString.call(n),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function xg(e){var n=e._init;return n(e._payload)}function bg(e){function n(L,O){if(e){var z=L.deletions;z===null?(L.deletions=[O],L.flags|=16):z.push(O)}}function i(L,O){if(!e)return null;for(;O!==null;)n(L,O),O=O.sibling;return null}function o(L){for(var O=new Map;L!==null;)L.key!==null?O.set(L.key,L):O.set(L.index,L),L=L.sibling;return O}function c(L,O){return L=Gn(L,O),L.index=0,L.sibling=null,L}function d(L,O,z){return L.index=z,e?(z=L.alternate,z!==null?(z=z.index,z<O?(L.flags|=67108866,O):z):(L.flags|=67108866,O)):(L.flags|=1048576,O)}function x(L){return e&&L.alternate===null&&(L.flags|=67108866),L}function T(L,O,z,F){return O===null||O.tag!==6?(O=du(z,L.mode,F),O.return=L,O):(O=c(O,z),O.return=L,O)}function M(L,O,z,F){var ne=z.type;return ne===E?I(L,O,z.props.children,F,z.key):O!==null&&(O.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===U&&xg(ne)===O.type)?(O=c(O,z.props),ys(O,z),O.return=L,O):(O=Po(z.type,z.key,z.props,null,L.mode,F),ys(O,z),O.return=L,O)}function B(L,O,z,F){return O===null||O.tag!==4||O.stateNode.containerInfo!==z.containerInfo||O.stateNode.implementation!==z.implementation?(O=hu(z,L.mode,F),O.return=L,O):(O=c(O,z.children||[]),O.return=L,O)}function I(L,O,z,F,ne){return O===null||O.tag!==7?(O=ni(z,L.mode,F,ne),O.return=L,O):(O=c(O,z),O.return=L,O)}function K(L,O,z){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=du(""+O,L.mode,z),O.return=L,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case b:return z=Po(O.type,O.key,O.props,null,L.mode,z),ys(z,O),z.return=L,z;case A:return O=hu(O,L.mode,z),O.return=L,O;case U:var F=O._init;return O=F(O._payload),K(L,O,z)}if(de(O)||ue(O))return O=ni(O,L.mode,z,null),O.return=L,O;if(typeof O.then=="function")return K(L,al(O),z);if(O.$$typeof===j)return K(L,Yo(L,O),z);il(L,O)}return null}function H(L,O,z,F){var ne=O!==null?O.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return ne!==null?null:T(L,O,""+z,F);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case b:return z.key===ne?M(L,O,z,F):null;case A:return z.key===ne?B(L,O,z,F):null;case U:return ne=z._init,z=ne(z._payload),H(L,O,z,F)}if(de(z)||ue(z))return ne!==null?null:I(L,O,z,F,null);if(typeof z.then=="function")return H(L,O,al(z),F);if(z.$$typeof===j)return H(L,O,Yo(L,z),F);il(L,z)}return null}function G(L,O,z,F,ne){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return L=L.get(z)||null,T(O,L,""+F,ne);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case b:return L=L.get(F.key===null?z:F.key)||null,M(O,L,F,ne);case A:return L=L.get(F.key===null?z:F.key)||null,B(O,L,F,ne);case U:var we=F._init;return F=we(F._payload),G(L,O,z,F,ne)}if(de(F)||ue(F))return L=L.get(z)||null,I(O,L,F,ne,null);if(typeof F.then=="function")return G(L,O,z,al(F),ne);if(F.$$typeof===j)return G(L,O,z,Yo(O,F),ne);il(O,F)}return null}function me(L,O,z,F){for(var ne=null,we=null,se=O,he=O=0,ut=null;se!==null&&he<z.length;he++){se.index>he?(ut=se,se=null):ut=se.sibling;var De=H(L,se,z[he],F);if(De===null){se===null&&(se=ut);break}e&&se&&De.alternate===null&&n(L,se),O=d(De,O,he),we===null?ne=De:we.sibling=De,we=De,se=ut}if(he===z.length)return i(L,se),Oe&&ii(L,he),ne;if(se===null){for(;he<z.length;he++)se=K(L,z[he],F),se!==null&&(O=d(se,O,he),we===null?ne=se:we.sibling=se,we=se);return Oe&&ii(L,he),ne}for(se=o(se);he<z.length;he++)ut=G(se,L,he,z[he],F),ut!==null&&(e&&ut.alternate!==null&&se.delete(ut.key===null?he:ut.key),O=d(ut,O,he),we===null?ne=ut:we.sibling=ut,we=ut);return e&&se.forEach(function(Va){return n(L,Va)}),Oe&&ii(L,he),ne}function fe(L,O,z,F){if(z==null)throw Error(s(151));for(var ne=null,we=null,se=O,he=O=0,ut=null,De=z.next();se!==null&&!De.done;he++,De=z.next()){se.index>he?(ut=se,se=null):ut=se.sibling;var Va=H(L,se,De.value,F);if(Va===null){se===null&&(se=ut);break}e&&se&&Va.alternate===null&&n(L,se),O=d(Va,O,he),we===null?ne=Va:we.sibling=Va,we=Va,se=ut}if(De.done)return i(L,se),Oe&&ii(L,he),ne;if(se===null){for(;!De.done;he++,De=z.next())De=K(L,De.value,F),De!==null&&(O=d(De,O,he),we===null?ne=De:we.sibling=De,we=De);return Oe&&ii(L,he),ne}for(se=o(se);!De.done;he++,De=z.next())De=G(se,L,he,De.value,F),De!==null&&(e&&De.alternate!==null&&se.delete(De.key===null?he:De.key),O=d(De,O,he),we===null?ne=De:we.sibling=De,we=De);return e&&se.forEach(function(_A){return n(L,_A)}),Oe&&ii(L,he),ne}function Be(L,O,z,F){if(typeof z=="object"&&z!==null&&z.type===E&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case b:e:{for(var ne=z.key;O!==null;){if(O.key===ne){if(ne=z.type,ne===E){if(O.tag===7){i(L,O.sibling),F=c(O,z.props.children),F.return=L,L=F;break e}}else if(O.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===U&&xg(ne)===O.type){i(L,O.sibling),F=c(O,z.props),ys(F,z),F.return=L,L=F;break e}i(L,O);break}else n(L,O);O=O.sibling}z.type===E?(F=ni(z.props.children,L.mode,F,z.key),F.return=L,L=F):(F=Po(z.type,z.key,z.props,null,L.mode,F),ys(F,z),F.return=L,L=F)}return x(L);case A:e:{for(ne=z.key;O!==null;){if(O.key===ne)if(O.tag===4&&O.stateNode.containerInfo===z.containerInfo&&O.stateNode.implementation===z.implementation){i(L,O.sibling),F=c(O,z.children||[]),F.return=L,L=F;break e}else{i(L,O);break}else n(L,O);O=O.sibling}F=hu(z,L.mode,F),F.return=L,L=F}return x(L);case U:return ne=z._init,z=ne(z._payload),Be(L,O,z,F)}if(de(z))return me(L,O,z,F);if(ue(z)){if(ne=ue(z),typeof ne!="function")throw Error(s(150));return z=ne.call(z),fe(L,O,z,F)}if(typeof z.then=="function")return Be(L,O,al(z),F);if(z.$$typeof===j)return Be(L,O,Yo(L,z),F);il(L,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,O!==null&&O.tag===6?(i(L,O.sibling),F=c(O,z),F.return=L,L=F):(i(L,O),F=du(z,L.mode,F),F.return=L,L=F),x(L)):i(L,O)}return function(L,O,z,F){try{gs=0;var ne=Be(L,O,z,F);return Wi=null,ne}catch(se){if(se===os||se===Fo)throw se;var we=kt(29,se,null,L.mode);return we.lanes=F,we.return=L,we}finally{}}}var Ji=bg(!0),Sg=bg(!1),Wt=X(null),wn=null;function ba(e){var n=e.alternate;Z(rt,rt.current&1),Z(Wt,e),wn===null&&(n===null||Ki.current!==null||n.memoizedState!==null)&&(wn=e)}function wg(e){if(e.tag===22){if(Z(rt,rt.current),Z(Wt,e),wn===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(wn=e)}}else Sa()}function Sa(){Z(rt,rt.current),Z(Wt,Wt.current)}function Kn(e){W(Wt),wn===e&&(wn=null),W(rt)}var rt=X(0);function rl(e){for(var n=e;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||zf(i)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Fu(e,n,i,o){n=e.memoizedState,i=i(o,n),i=i==null?n:y({},n,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Xu={enqueueSetState:function(e,n,i){e=e._reactInternals;var o=Ht(),c=ya(o);c.payload=n,i!=null&&(c.callback=i),n=va(e,c,o),n!==null&&(Gt(n,e,o),cs(n,e,o))},enqueueReplaceState:function(e,n,i){e=e._reactInternals;var o=Ht(),c=ya(o);c.tag=1,c.payload=n,i!=null&&(c.callback=i),n=va(e,c,o),n!==null&&(Gt(n,e,o),cs(n,e,o))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var i=Ht(),o=ya(i);o.tag=2,n!=null&&(o.callback=n),n=va(e,o,i),n!==null&&(Gt(n,e,i),cs(n,e,i))}};function Tg(e,n,i,o,c,d,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,d,x):n.prototype&&n.prototype.isPureReactComponent?!Jr(i,o)||!Jr(c,d):!0}function Ag(e,n,i,o){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,o),n.state!==e&&Xu.enqueueReplaceState(n,n.state,null)}function fi(e,n){var i=n;if("ref"in n){i={};for(var o in n)o!=="ref"&&(i[o]=n[o])}if(e=e.defaultProps){i===n&&(i=y({},i));for(var c in e)i[c]===void 0&&(i[c]=e[c])}return i}var sl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=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(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Eg(e){sl(e)}function Cg(e){console.error(e)}function Rg(e){sl(e)}function ol(e,n){try{var i=e.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function Ng(e,n,i){try{var o=e.onCaughtError;o(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Ku(e,n,i){return i=ya(i),i.tag=3,i.payload={element:null},i.callback=function(){ol(e,n)},i}function jg(e){return e=ya(e),e.tag=3,e}function Mg(e,n,i,o){var c=i.type.getDerivedStateFromError;if(typeof c=="function"){var d=o.value;e.payload=function(){return c(d)},e.callback=function(){Ng(n,i,o)}}var x=i.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){Ng(n,i,o),typeof c!="function"&&(Ra===null?Ra=new Set([this]):Ra.add(this));var T=o.stack;this.componentDidCatch(o.value,{componentStack:T!==null?T:""})})}function _T(e,n,i,o,c){if(i.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=i.alternate,n!==null&&is(n,i,c,!0),i=Wt.current,i!==null){switch(i.tag){case 13:return wn===null?xf():i.alternate===null&&Ze===0&&(Ze=3),i.flags&=-257,i.flags|=65536,i.lanes=c,o===Tu?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([o]):n.add(o),Sf(e,o,c)),!1;case 22:return i.flags|=65536,o===Tu?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([o]):i.add(o)),Sf(e,o,c)),!1}throw Error(s(435,i.tag))}return Sf(e,o,c),xf(),!1}if(Oe)return n=Wt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=c,o!==gu&&(e=Error(s(422),{cause:o}),as(Kt(e,i)))):(o!==gu&&(n=Error(s(423),{cause:o}),as(Kt(n,i))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,o=Kt(o,i),c=Ku(e.stateNode,o,c),Cu(e,c),Ze!==4&&(Ze=2)),!1;var d=Error(s(520),{cause:o});if(d=Kt(d,i),As===null?As=[d]:As.push(d),Ze!==4&&(Ze=2),n===null)return!0;o=Kt(o,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,e=c&-c,i.lanes|=e,e=Ku(i.stateNode,o,e),Cu(i,e),!1;case 1:if(n=i.type,d=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Ra===null||!Ra.has(d))))return i.flags|=65536,c&=-c,i.lanes|=c,c=jg(c),Mg(c,e,i,o),Cu(i,c),!1}i=i.return}while(i!==null);return!1}var Dg=Error(s(461)),lt=!1;function dt(e,n,i,o){n.child=e===null?Sg(n,null,i,o):Ji(n,e.child,i,o)}function Og(e,n,i,o,c){i=i.render;var d=n.ref;if("ref"in o){var x={};for(var T in o)T!=="ref"&&(x[T]=o[T])}else x=o;return li(n),o=Du(e,n,i,x,d,c),T=Ou(),e!==null&&!lt?(_u(e,n,c),$n(e,n,c)):(Oe&&T&&mu(n),n.flags|=1,dt(e,n,o,c),n.child)}function _g(e,n,i,o,c){if(e===null){var d=i.type;return typeof d=="function"&&!fu(d)&&d.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=d,Lg(e,n,d,o,c)):(e=Po(i.type,null,o,n,n.mode,c),e.ref=n.ref,e.return=n,n.child=e)}if(d=e.child,!nf(e,c)){var x=d.memoizedProps;if(i=i.compare,i=i!==null?i:Jr,i(x,o)&&e.ref===n.ref)return $n(e,n,c)}return n.flags|=1,e=Gn(d,o),e.ref=n.ref,e.return=n,n.child=e}function Lg(e,n,i,o,c){if(e!==null){var d=e.memoizedProps;if(Jr(d,o)&&e.ref===n.ref)if(lt=!1,n.pendingProps=o=d,nf(e,c))(e.flags&131072)!==0&&(lt=!0);else return n.lanes=e.lanes,$n(e,n,c)}return $u(e,n,i,o,c)}function Vg(e,n,i){var o=n.pendingProps,c=o.children,d=e!==null?e.memoizedState:null;if(o.mode==="hidden"){if((n.flags&128)!==0){if(o=d!==null?d.baseLanes|i:i,e!==null){for(c=n.child=e.child,d=0;c!==null;)d=d|c.lanes|c.childLanes,c=c.sibling;n.childLanes=d&~o}else n.childLanes=0,n.child=null;return zg(e,n,o,i)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Io(n,d!==null?d.cachePool:null),d!==null?Lp(n,d):Nu(),wg(n);else return n.lanes=n.childLanes=536870912,zg(e,n,d!==null?d.baseLanes|i:i,i)}else d!==null?(Io(n,d.cachePool),Lp(n,d),Sa(),n.memoizedState=null):(e!==null&&Io(n,null),Nu(),Sa());return dt(e,n,c,i),n.child}function zg(e,n,i,o){var c=wu();return c=c===null?null:{parent:it._currentValue,pool:c},n.memoizedState={baseLanes:i,cachePool:c},e!==null&&Io(n,null),Nu(),wg(n),e!==null&&is(e,n,o,!0),null}function ll(e,n){var i=n.ref;if(i===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(s(284));(e===null||e.ref!==i)&&(n.flags|=4194816)}}function $u(e,n,i,o,c){return li(n),i=Du(e,n,i,o,void 0,c),o=Ou(),e!==null&&!lt?(_u(e,n,c),$n(e,n,c)):(Oe&&o&&mu(n),n.flags|=1,dt(e,n,i,c),n.child)}function kg(e,n,i,o,c,d){return li(n),n.updateQueue=null,i=zp(n,o,i,c),Vp(e),o=Ou(),e!==null&&!lt?(_u(e,n,d),$n(e,n,d)):(Oe&&o&&mu(n),n.flags|=1,dt(e,n,i,d),n.child)}function Bg(e,n,i,o,c){if(li(n),n.stateNode===null){var d=qi,x=i.contextType;typeof x=="object"&&x!==null&&(d=vt(x)),d=new i(o,d),n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Xu,n.stateNode=d,d._reactInternals=n,d=n.stateNode,d.props=o,d.state=n.memoizedState,d.refs={},Au(n),x=i.contextType,d.context=typeof x=="object"&&x!==null?vt(x):qi,d.state=n.memoizedState,x=i.getDerivedStateFromProps,typeof x=="function"&&(Fu(n,i,x,o),d.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(x=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),x!==d.state&&Xu.enqueueReplaceState(d,d.state,null),fs(n,o,d,c),us(),d.state=n.memoizedState),typeof d.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(e===null){d=n.stateNode;var T=n.memoizedProps,M=fi(i,T);d.props=M;var B=d.context,I=i.contextType;x=qi,typeof I=="object"&&I!==null&&(x=vt(I));var K=i.getDerivedStateFromProps;I=typeof K=="function"||typeof d.getSnapshotBeforeUpdate=="function",T=n.pendingProps!==T,I||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(T||B!==x)&&Ag(n,d,o,x),ga=!1;var H=n.memoizedState;d.state=H,fs(n,o,d,c),us(),B=n.memoizedState,T||H!==B||ga?(typeof K=="function"&&(Fu(n,i,K,o),B=n.memoizedState),(M=ga||Tg(n,i,M,o,H,B,x))?(I||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(n.flags|=4194308)):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=B),d.props=o,d.state=B,d.context=x,o=M):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{d=n.stateNode,Eu(e,n),x=n.memoizedProps,I=fi(i,x),d.props=I,K=n.pendingProps,H=d.context,B=i.contextType,M=qi,typeof B=="object"&&B!==null&&(M=vt(B)),T=i.getDerivedStateFromProps,(B=typeof T=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(x!==K||H!==M)&&Ag(n,d,o,M),ga=!1,H=n.memoizedState,d.state=H,fs(n,o,d,c),us();var G=n.memoizedState;x!==K||H!==G||ga||e!==null&&e.dependencies!==null&&qo(e.dependencies)?(typeof T=="function"&&(Fu(n,i,T,o),G=n.memoizedState),(I=ga||Tg(n,i,I,o,H,G,M)||e!==null&&e.dependencies!==null&&qo(e.dependencies))?(B||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,G,M),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,G,M)),typeof d.componentDidUpdate=="function"&&(n.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&H===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&H===e.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=G),d.props=o,d.state=G,d.context=M,o=I):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&H===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&H===e.memoizedState||(n.flags|=1024),o=!1)}return d=o,ll(e,n),o=(n.flags&128)!==0,d||o?(d=n.stateNode,i=o&&typeof i.getDerivedStateFromError!="function"?null:d.render(),n.flags|=1,e!==null&&o?(n.child=Ji(n,e.child,null,c),n.child=Ji(n,null,i,c)):dt(e,n,i,c),n.memoizedState=d.state,e=n.child):e=$n(e,n,c),e}function Ug(e,n,i,o){return ns(),n.flags|=256,dt(e,n,i,o),n.child}var Zu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qu(e){return{baseLanes:e,cachePool:Cp()}}function Wu(e,n,i){return e=e!==null?e.childLanes&~i:0,n&&(e|=Jt),e}function Pg(e,n,i){var o=n.pendingProps,c=!1,d=(n.flags&128)!==0,x;if((x=d)||(x=e!==null&&e.memoizedState===null?!1:(rt.current&2)!==0),x&&(c=!0,n.flags&=-129),x=(n.flags&32)!==0,n.flags&=-33,e===null){if(Oe){if(c?ba(n):Sa(),Oe){var T=$e,M;if(M=T){e:{for(M=T,T=Sn;M.nodeType!==8;){if(!T){T=null;break e}if(M=dn(M.nextSibling),M===null){T=null;break e}}T=M}T!==null?(n.memoizedState={dehydrated:T,treeContext:ai!==null?{id:qn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},M=kt(18,null,null,0),M.stateNode=T,M.return=n,n.child=M,Tt=n,$e=null,M=!0):M=!1}M||si(n)}if(T=n.memoizedState,T!==null&&(T=T.dehydrated,T!==null))return zf(T)?n.lanes=32:n.lanes=536870912,null;Kn(n)}return T=o.children,o=o.fallback,c?(Sa(),c=n.mode,T=cl({mode:"hidden",children:T},c),o=ni(o,c,i,null),T.return=n,o.return=n,T.sibling=o,n.child=T,c=n.child,c.memoizedState=Qu(i),c.childLanes=Wu(e,x,i),n.memoizedState=Zu,o):(ba(n),Ju(n,T))}if(M=e.memoizedState,M!==null&&(T=M.dehydrated,T!==null)){if(d)n.flags&256?(ba(n),n.flags&=-257,n=ef(e,n,i)):n.memoizedState!==null?(Sa(),n.child=e.child,n.flags|=128,n=null):(Sa(),c=o.fallback,T=n.mode,o=cl({mode:"visible",children:o.children},T),c=ni(c,T,i,null),c.flags|=2,o.return=n,c.return=n,o.sibling=c,n.child=o,Ji(n,e.child,null,i),o=n.child,o.memoizedState=Qu(i),o.childLanes=Wu(e,x,i),n.memoizedState=Zu,n=c);else if(ba(n),zf(T)){if(x=T.nextSibling&&T.nextSibling.dataset,x)var B=x.dgst;x=B,o=Error(s(419)),o.stack="",o.digest=x,as({value:o,source:null,stack:null}),n=ef(e,n,i)}else if(lt||is(e,n,i,!1),x=(i&e.childLanes)!==0,lt||x){if(x=He,x!==null&&(o=i&-i,o=(o&42)!==0?1:zc(o),o=(o&(x.suspendedLanes|i))!==0?0:o,o!==0&&o!==M.retryLane))throw M.retryLane=o,Gi(e,o),Gt(x,e,o),Dg;T.data==="$?"||xf(),n=ef(e,n,i)}else T.data==="$?"?(n.flags|=192,n.child=e.child,n=null):(e=M.treeContext,$e=dn(T.nextSibling),Tt=n,Oe=!0,ri=null,Sn=!1,e!==null&&(Zt[Qt++]=qn,Zt[Qt++]=Yn,Zt[Qt++]=ai,qn=e.id,Yn=e.overflow,ai=n),n=Ju(n,o.children),n.flags|=4096);return n}return c?(Sa(),c=o.fallback,T=n.mode,M=e.child,B=M.sibling,o=Gn(M,{mode:"hidden",children:o.children}),o.subtreeFlags=M.subtreeFlags&65011712,B!==null?c=Gn(B,c):(c=ni(c,T,i,null),c.flags|=2),c.return=n,o.return=n,o.sibling=c,n.child=o,o=c,c=n.child,T=e.child.memoizedState,T===null?T=Qu(i):(M=T.cachePool,M!==null?(B=it._currentValue,M=M.parent!==B?{parent:B,pool:B}:M):M=Cp(),T={baseLanes:T.baseLanes|i,cachePool:M}),c.memoizedState=T,c.childLanes=Wu(e,x,i),n.memoizedState=Zu,o):(ba(n),i=e.child,e=i.sibling,i=Gn(i,{mode:"visible",children:o.children}),i.return=n,i.sibling=null,e!==null&&(x=n.deletions,x===null?(n.deletions=[e],n.flags|=16):x.push(e)),n.child=i,n.memoizedState=null,i)}function Ju(e,n){return n=cl({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function cl(e,n){return e=kt(22,e,null,n),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function ef(e,n,i){return Ji(n,e.child,null,i),e=Ju(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Hg(e,n,i){e.lanes|=n;var o=e.alternate;o!==null&&(o.lanes|=n),vu(e.return,n,i)}function tf(e,n,i,o,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:c}:(d.isBackwards=n,d.rendering=null,d.renderingStartTime=0,d.last=o,d.tail=i,d.tailMode=c)}function Gg(e,n,i){var o=n.pendingProps,c=o.revealOrder,d=o.tail;if(dt(e,n,o.children,i),o=rt.current,(o&2)!==0)o=o&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Hg(e,i,n);else if(e.tag===19)Hg(e,i,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}switch(Z(rt,o),c){case"forwards":for(i=n.child,c=null;i!==null;)e=i.alternate,e!==null&&rl(e)===null&&(c=i),i=i.sibling;i=c,i===null?(c=n.child,n.child=null):(c=i.sibling,i.sibling=null),tf(n,!1,c,i,d);break;case"backwards":for(i=null,c=n.child,n.child=null;c!==null;){if(e=c.alternate,e!==null&&rl(e)===null){n.child=c;break}e=c.sibling,c.sibling=i,i=c,c=e}tf(n,!0,i,null,d);break;case"together":tf(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function $n(e,n,i){if(e!==null&&(n.dependencies=e.dependencies),Ca|=n.lanes,(i&n.childLanes)===0)if(e!==null){if(is(e,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(s(153));if(n.child!==null){for(e=n.child,i=Gn(e,e.pendingProps),n.child=i,i.return=n;e.sibling!==null;)e=e.sibling,i=i.sibling=Gn(e,e.pendingProps),i.return=n;i.sibling=null}return n.child}function nf(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&qo(e)))}function LT(e,n,i){switch(n.tag){case 3:le(n,n.stateNode.containerInfo),pa(n,it,e.memoizedState.cache),ns();break;case 27:case 5:Re(n);break;case 4:le(n,n.stateNode.containerInfo);break;case 10:pa(n,n.type,n.memoizedProps.value);break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(ba(n),n.flags|=128,null):(i&n.child.childLanes)!==0?Pg(e,n,i):(ba(n),e=$n(e,n,i),e!==null?e.sibling:null);ba(n);break;case 19:var c=(e.flags&128)!==0;if(o=(i&n.childLanes)!==0,o||(is(e,n,i,!1),o=(i&n.childLanes)!==0),c){if(o)return Gg(e,n,i);n.flags|=128}if(c=n.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Z(rt,rt.current),o)break;return null;case 22:case 23:return n.lanes=0,Vg(e,n,i);case 24:pa(n,it,e.memoizedState.cache)}return $n(e,n,i)}function qg(e,n,i){if(e!==null)if(e.memoizedProps!==n.pendingProps)lt=!0;else{if(!nf(e,i)&&(n.flags&128)===0)return lt=!1,LT(e,n,i);lt=(e.flags&131072)!==0}else lt=!1,Oe&&(n.flags&1048576)!==0&&xp(n,Go,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var o=n.elementType,c=o._init;if(o=c(o._payload),n.type=o,typeof o=="function")fu(o)?(e=fi(o,e),n.tag=1,n=Bg(null,n,o,e,i)):(n.tag=0,n=$u(null,n,o,e,i));else{if(o!=null){if(c=o.$$typeof,c===k){n.tag=11,n=Og(null,n,o,e,i);break e}else if(c===Y){n.tag=14,n=_g(null,n,o,e,i);break e}}throw n=ge(o)||o,Error(s(306,n,""))}}return n;case 0:return $u(e,n,n.type,n.pendingProps,i);case 1:return o=n.type,c=fi(o,n.pendingProps),Bg(e,n,o,c,i);case 3:e:{if(le(n,n.stateNode.containerInfo),e===null)throw Error(s(387));o=n.pendingProps;var d=n.memoizedState;c=d.element,Eu(e,n),fs(n,o,null,i);var x=n.memoizedState;if(o=x.cache,pa(n,it,o),o!==d.cache&&xu(n,[it],i,!0),us(),o=x.element,d.isDehydrated)if(d={element:o,isDehydrated:!1,cache:x.cache},n.updateQueue.baseState=d,n.memoizedState=d,n.flags&256){n=Ug(e,n,o,i);break e}else if(o!==c){c=Kt(Error(s(424)),n),as(c),n=Ug(e,n,o,i);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for($e=dn(e.firstChild),Tt=n,Oe=!0,ri=null,Sn=!0,i=Sg(n,null,o,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(ns(),o===c){n=$n(e,n,i);break e}dt(e,n,o,i)}n=n.child}return n;case 26:return ll(e,n),e===null?(i=Xy(n.type,null,n.pendingProps,null))?n.memoizedState=i:Oe||(i=n.type,e=n.pendingProps,o=Tl(oe.current).createElement(i),o[yt]=n,o[Rt]=e,mt(o,i,e),ot(o),n.stateNode=o):n.memoizedState=Xy(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Re(n),e===null&&Oe&&(o=n.stateNode=Yy(n.type,n.pendingProps,oe.current),Tt=n,Sn=!0,c=$e,Ma(n.type)?(kf=c,$e=dn(o.firstChild)):$e=c),dt(e,n,n.pendingProps.children,i),ll(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Oe&&((c=o=$e)&&(o=lA(o,n.type,n.pendingProps,Sn),o!==null?(n.stateNode=o,Tt=n,$e=dn(o.firstChild),Sn=!1,c=!0):c=!1),c||si(n)),Re(n),c=n.type,d=n.pendingProps,x=e!==null?e.memoizedProps:null,o=d.children,_f(c,d)?o=null:x!==null&&_f(c,x)&&(n.flags|=32),n.memoizedState!==null&&(c=Du(e,n,CT,null,null,i),_s._currentValue=c),ll(e,n),dt(e,n,o,i),n.child;case 6:return e===null&&Oe&&((e=i=$e)&&(i=cA(i,n.pendingProps,Sn),i!==null?(n.stateNode=i,Tt=n,$e=null,e=!0):e=!1),e||si(n)),null;case 13:return Pg(e,n,i);case 4:return le(n,n.stateNode.containerInfo),o=n.pendingProps,e===null?n.child=Ji(n,null,o,i):dt(e,n,o,i),n.child;case 11:return Og(e,n,n.type,n.pendingProps,i);case 7:return dt(e,n,n.pendingProps,i),n.child;case 8:return dt(e,n,n.pendingProps.children,i),n.child;case 12:return dt(e,n,n.pendingProps.children,i),n.child;case 10:return o=n.pendingProps,pa(n,n.type,o.value),dt(e,n,o.children,i),n.child;case 9:return c=n.type._context,o=n.pendingProps.children,li(n),c=vt(c),o=o(c),n.flags|=1,dt(e,n,o,i),n.child;case 14:return _g(e,n,n.type,n.pendingProps,i);case 15:return Lg(e,n,n.type,n.pendingProps,i);case 19:return Gg(e,n,i);case 31:return o=n.pendingProps,i=n.mode,o={mode:o.mode,children:o.children},e===null?(i=cl(o,i),i.ref=n.ref,n.child=i,i.return=n,n=i):(i=Gn(e.child,o),i.ref=n.ref,n.child=i,i.return=n,n=i),n;case 22:return Vg(e,n,i);case 24:return li(n),o=vt(it),e===null?(c=wu(),c===null&&(c=He,d=bu(),c.pooledCache=d,d.refCount++,d!==null&&(c.pooledCacheLanes|=i),c=d),n.memoizedState={parent:o,cache:c},Au(n),pa(n,it,c)):((e.lanes&i)!==0&&(Eu(e,n),fs(n,null,null,i),us()),c=e.memoizedState,d=n.memoizedState,c.parent!==o?(c={parent:o,cache:o},n.memoizedState=c,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=c),pa(n,it,o)):(o=d.cache,pa(n,it,o),o!==c.cache&&xu(n,[it],i,!0))),dt(e,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(s(156,n.tag))}function Zn(e){e.flags|=4}function Yg(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Wy(n)){if(n=Wt.current,n!==null&&((Ne&4194048)===Ne?wn!==null:(Ne&62914560)!==Ne&&(Ne&536870912)===0||n!==wn))throw ls=Tu,Rp;e.flags|=8192}}function ul(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?wm():536870912,e.lanes|=n,ar|=n)}function vs(e,n){if(!Oe)switch(e.tailMode){case"hidden":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Fe(e){var n=e.alternate!==null&&e.alternate.child===e.child,i=0,o=0;if(n)for(var c=e.child;c!==null;)i|=c.lanes|c.childLanes,o|=c.subtreeFlags&65011712,o|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)i|=c.lanes|c.childLanes,o|=c.subtreeFlags,o|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=o,e.childLanes=i,n}function VT(e,n,i){var o=n.pendingProps;switch(pu(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(n),null;case 1:return Fe(n),null;case 3:return i=n.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),Fn(it),_e(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(ts(n)?Zn(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,wp())),Fe(n),null;case 26:return i=n.memoizedState,e===null?(Zn(n),i!==null?(Fe(n),Yg(n,i)):(Fe(n),n.flags&=-16777217)):i?i!==e.memoizedState?(Zn(n),Fe(n),Yg(n,i)):(Fe(n),n.flags&=-16777217):(e.memoizedProps!==o&&Zn(n),Fe(n),n.flags&=-16777217),null;case 27:Te(n),i=oe.current;var c=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==o&&Zn(n);else{if(!o){if(n.stateNode===null)throw Error(s(166));return Fe(n),null}e=ee.current,ts(n)?bp(n):(e=Yy(c,o,i),n.stateNode=e,Zn(n))}return Fe(n),null;case 5:if(Te(n),i=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&Zn(n);else{if(!o){if(n.stateNode===null)throw Error(s(166));return Fe(n),null}if(e=ee.current,ts(n))bp(n);else{switch(c=Tl(oe.current),e){case 1:e=c.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:e=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":e=c.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":e=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":e=c.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof o.is=="string"?c.createElement("select",{is:o.is}):c.createElement("select"),o.multiple?e.multiple=!0:o.size&&(e.size=o.size);break;default:e=typeof o.is=="string"?c.createElement(i,{is:o.is}):c.createElement(i)}}e[yt]=n,e[Rt]=o;e:for(c=n.child;c!==null;){if(c.tag===5||c.tag===6)e.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===n)break e;for(;c.sibling===null;){if(c.return===null||c.return===n)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}n.stateNode=e;e:switch(mt(e,i,o),i){case"button":case"input":case"select":case"textarea":e=!!o.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Zn(n)}}return Fe(n),n.flags&=-16777217,null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==o&&Zn(n);else{if(typeof o!="string"&&n.stateNode===null)throw Error(s(166));if(e=oe.current,ts(n)){if(e=n.stateNode,i=n.memoizedProps,o=null,c=Tt,c!==null)switch(c.tag){case 27:case 5:o=c.memoizedProps}e[yt]=n,e=!!(e.nodeValue===i||o!==null&&o.suppressHydrationWarning===!0||ky(e.nodeValue,i)),e||si(n)}else e=Tl(e).createTextNode(o),e[yt]=n,n.stateNode=e}return Fe(n),null;case 13:if(o=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=ts(n),o!==null&&o.dehydrated!==null){if(e===null){if(!c)throw Error(s(318));if(c=n.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(s(317));c[yt]=n}else ns(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Fe(n),c=!1}else c=wp(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return n.flags&256?(Kn(n),n):(Kn(n),null)}if(Kn(n),(n.flags&128)!==0)return n.lanes=i,n;if(i=o!==null,e=e!==null&&e.memoizedState!==null,i){o=n.child,c=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(c=o.alternate.memoizedState.cachePool.pool);var d=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),d!==c&&(o.flags|=2048)}return i!==e&&i&&(n.child.flags|=8192),ul(n,n.updateQueue),Fe(n),null;case 4:return _e(),e===null&&Nf(n.stateNode.containerInfo),Fe(n),null;case 10:return Fn(n.type),Fe(n),null;case 19:if(W(rt),c=n.memoizedState,c===null)return Fe(n),null;if(o=(n.flags&128)!==0,d=c.rendering,d===null)if(o)vs(c,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(d=rl(e),d!==null){for(n.flags|=128,vs(c,!1),e=d.updateQueue,n.updateQueue=e,ul(n,e),n.subtreeFlags=0,e=i,i=n.child;i!==null;)vp(i,e),i=i.sibling;return Z(rt,rt.current&1|2),n.child}e=e.sibling}c.tail!==null&&gt()>hl&&(n.flags|=128,o=!0,vs(c,!1),n.lanes=4194304)}else{if(!o)if(e=rl(d),e!==null){if(n.flags|=128,o=!0,e=e.updateQueue,n.updateQueue=e,ul(n,e),vs(c,!0),c.tail===null&&c.tailMode==="hidden"&&!d.alternate&&!Oe)return Fe(n),null}else 2*gt()-c.renderingStartTime>hl&&i!==536870912&&(n.flags|=128,o=!0,vs(c,!1),n.lanes=4194304);c.isBackwards?(d.sibling=n.child,n.child=d):(e=c.last,e!==null?e.sibling=d:n.child=d,c.last=d)}return c.tail!==null?(n=c.tail,c.rendering=n,c.tail=n.sibling,c.renderingStartTime=gt(),n.sibling=null,e=rt.current,Z(rt,o?e&1|2:e&1),n):(Fe(n),null);case 22:case 23:return Kn(n),ju(),o=n.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(n.flags|=8192):o&&(n.flags|=8192),o?(i&536870912)!==0&&(n.flags&128)===0&&(Fe(n),n.subtreeFlags&6&&(n.flags|=8192)):Fe(n),i=n.updateQueue,i!==null&&ul(n,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==i&&(n.flags|=2048),e!==null&&W(ci),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),Fn(it),Fe(n),null;case 25:return null;case 30:return null}throw Error(s(156,n.tag))}function zT(e,n){switch(pu(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Fn(it),_e(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Te(n),null;case 13:if(Kn(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(s(340));ns()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return W(rt),null;case 4:return _e(),null;case 10:return Fn(n.type),null;case 22:case 23:return Kn(n),ju(),e!==null&&W(ci),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return Fn(it),null;case 25:return null;default:return null}}function Ig(e,n){switch(pu(n),n.tag){case 3:Fn(it),_e();break;case 26:case 27:case 5:Te(n);break;case 4:_e();break;case 13:Kn(n);break;case 19:W(rt);break;case 10:Fn(n.type);break;case 22:case 23:Kn(n),ju(),e!==null&&W(ci);break;case 24:Fn(it)}}function xs(e,n){try{var i=n.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&e)===e){o=void 0;var d=i.create,x=i.inst;o=d(),x.destroy=o}i=i.next}while(i!==c)}}catch(T){Ue(n,n.return,T)}}function wa(e,n,i){try{var o=n.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var d=c.next;o=d;do{if((o.tag&e)===e){var x=o.inst,T=x.destroy;if(T!==void 0){x.destroy=void 0,c=n;var M=i,B=T;try{B()}catch(I){Ue(c,M,I)}}}o=o.next}while(o!==d)}}catch(I){Ue(n,n.return,I)}}function Fg(e){var n=e.updateQueue;if(n!==null){var i=e.stateNode;try{_p(n,i)}catch(o){Ue(e,e.return,o)}}}function Xg(e,n,i){i.props=fi(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(o){Ue(e,n,o)}}function bs(e,n){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof i=="function"?e.refCleanup=i(o):i.current=o}}catch(c){Ue(e,n,c)}}function Tn(e,n){var i=e.ref,o=e.refCleanup;if(i!==null)if(typeof o=="function")try{o()}catch(c){Ue(e,n,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(c){Ue(e,n,c)}else i.current=null}function Kg(e){var n=e.type,i=e.memoizedProps,o=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&o.focus();break e;case"img":i.src?o.src=i.src:i.srcSet&&(o.srcset=i.srcSet)}}catch(c){Ue(e,e.return,c)}}function af(e,n,i){try{var o=e.stateNode;aA(o,e.type,i,n),o[Rt]=n}catch(c){Ue(e,e.return,c)}}function $g(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ma(e.type)||e.tag===4}function rf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$g(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&&Ma(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 sf(e,n,i){var o=e.tag;if(o===5||o===6)e=e.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(e),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=wl));else if(o!==4&&(o===27&&Ma(e.type)&&(i=e.stateNode,n=null),e=e.child,e!==null))for(sf(e,n,i),e=e.sibling;e!==null;)sf(e,n,i),e=e.sibling}function fl(e,n,i){var o=e.tag;if(o===5||o===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(o!==4&&(o===27&&Ma(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(fl(e,n,i),e=e.sibling;e!==null;)fl(e,n,i),e=e.sibling}function Zg(e){var n=e.stateNode,i=e.memoizedProps;try{for(var o=e.type,c=n.attributes;c.length;)n.removeAttributeNode(c[0]);mt(n,o,i),n[yt]=e,n[Rt]=i}catch(d){Ue(e,e.return,d)}}var Qn=!1,et=!1,of=!1,Qg=typeof WeakSet=="function"?WeakSet:Set,ct=null;function kT(e,n){if(e=e.containerInfo,Df=jl,e=lp(e),iu(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var c=o.anchorOffset,d=o.focusNode;o=o.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break e}var x=0,T=-1,M=-1,B=0,I=0,K=e,H=null;t:for(;;){for(var G;K!==i||c!==0&&K.nodeType!==3||(T=x+c),K!==d||o!==0&&K.nodeType!==3||(M=x+o),K.nodeType===3&&(x+=K.nodeValue.length),(G=K.firstChild)!==null;)H=K,K=G;for(;;){if(K===e)break t;if(H===i&&++B===c&&(T=x),H===d&&++I===o&&(M=x),(G=K.nextSibling)!==null)break;K=H,H=K.parentNode}K=G}i=T===-1||M===-1?null:{start:T,end:M}}else i=null}i=i||{start:0,end:0}}else i=null;for(Of={focusedElem:e,selectionRange:i},jl=!1,ct=n;ct!==null;)if(n=ct,e=n.child,(n.subtreeFlags&1024)!==0&&e!==null)e.return=n,ct=e;else for(;ct!==null;){switch(n=ct,d=n.alternate,e=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,i=n,c=d.memoizedProps,d=d.memoizedState,o=i.stateNode;try{var me=fi(i.type,c,i.elementType===i.type);e=o.getSnapshotBeforeUpdate(me,d),o.__reactInternalSnapshotBeforeUpdate=e}catch(fe){Ue(i,i.return,fe)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,i=e.nodeType,i===9)Vf(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Vf(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(s(163))}if(e=n.sibling,e!==null){e.return=n.return,ct=e;break}ct=n.return}}function Wg(e,n,i){var o=i.flags;switch(i.tag){case 0:case 11:case 15:Ta(e,i),o&4&&xs(5,i);break;case 1:if(Ta(e,i),o&4)if(e=i.stateNode,n===null)try{e.componentDidMount()}catch(x){Ue(i,i.return,x)}else{var c=fi(i.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(c,n,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Ue(i,i.return,x)}}o&64&&Fg(i),o&512&&bs(i,i.return);break;case 3:if(Ta(e,i),o&64&&(e=i.updateQueue,e!==null)){if(n=null,i.child!==null)switch(i.child.tag){case 27:case 5:n=i.child.stateNode;break;case 1:n=i.child.stateNode}try{_p(e,n)}catch(x){Ue(i,i.return,x)}}break;case 27:n===null&&o&4&&Zg(i);case 26:case 5:Ta(e,i),n===null&&o&4&&Kg(i),o&512&&bs(i,i.return);break;case 12:Ta(e,i);break;case 13:Ta(e,i),o&4&&ty(e,i),o&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=FT.bind(null,i),uA(e,i))));break;case 22:if(o=i.memoizedState!==null||Qn,!o){n=n!==null&&n.memoizedState!==null||et,c=Qn;var d=et;Qn=o,(et=n)&&!d?Aa(e,i,(i.subtreeFlags&8772)!==0):Ta(e,i),Qn=c,et=d}break;case 30:break;default:Ta(e,i)}}function Jg(e){var n=e.alternate;n!==null&&(e.alternate=null,Jg(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&Uc(n)),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 qe=null,Mt=!1;function Wn(e,n,i){for(i=i.child;i!==null;)ey(e,n,i),i=i.sibling}function ey(e,n,i){if(Lt&&typeof Lt.onCommitFiberUnmount=="function")try{Lt.onCommitFiberUnmount(Hr,i)}catch{}switch(i.tag){case 26:et||Tn(i,n),Wn(e,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:et||Tn(i,n);var o=qe,c=Mt;Ma(i.type)&&(qe=i.stateNode,Mt=!1),Wn(e,n,i),js(i.stateNode),qe=o,Mt=c;break;case 5:et||Tn(i,n);case 6:if(o=qe,c=Mt,qe=null,Wn(e,n,i),qe=o,Mt=c,qe!==null)if(Mt)try{(qe.nodeType===9?qe.body:qe.nodeName==="HTML"?qe.ownerDocument.body:qe).removeChild(i.stateNode)}catch(d){Ue(i,n,d)}else try{qe.removeChild(i.stateNode)}catch(d){Ue(i,n,d)}break;case 18:qe!==null&&(Mt?(e=qe,Gy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),ks(e)):Gy(qe,i.stateNode));break;case 4:o=qe,c=Mt,qe=i.stateNode.containerInfo,Mt=!0,Wn(e,n,i),qe=o,Mt=c;break;case 0:case 11:case 14:case 15:et||wa(2,i,n),et||wa(4,i,n),Wn(e,n,i);break;case 1:et||(Tn(i,n),o=i.stateNode,typeof o.componentWillUnmount=="function"&&Xg(i,n,o)),Wn(e,n,i);break;case 21:Wn(e,n,i);break;case 22:et=(o=et)||i.memoizedState!==null,Wn(e,n,i),et=o;break;default:Wn(e,n,i)}}function ty(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ks(e)}catch(i){Ue(n,n.return,i)}}function BT(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Qg),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Qg),n;default:throw Error(s(435,e.tag))}}function lf(e,n){var i=BT(e);n.forEach(function(o){var c=XT.bind(null,e,o);i.has(o)||(i.add(o),o.then(c,c))})}function Bt(e,n){var i=n.deletions;if(i!==null)for(var o=0;o<i.length;o++){var c=i[o],d=e,x=n,T=x;e:for(;T!==null;){switch(T.tag){case 27:if(Ma(T.type)){qe=T.stateNode,Mt=!1;break e}break;case 5:qe=T.stateNode,Mt=!1;break e;case 3:case 4:qe=T.stateNode.containerInfo,Mt=!0;break e}T=T.return}if(qe===null)throw Error(s(160));ey(d,x,c),qe=null,Mt=!1,d=c.alternate,d!==null&&(d.return=null),c.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)ny(n,e),n=n.sibling}var fn=null;function ny(e,n){var i=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Bt(n,e),Ut(e),o&4&&(wa(3,e,e.return),xs(3,e),wa(5,e,e.return));break;case 1:Bt(n,e),Ut(e),o&512&&(et||i===null||Tn(i,i.return)),o&64&&Qn&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?o:i.concat(o))));break;case 26:var c=fn;if(Bt(n,e),Ut(e),o&512&&(et||i===null||Tn(i,i.return)),o&4){var d=i!==null?i.memoizedState:null;if(o=e.memoizedState,i===null)if(o===null)if(e.stateNode===null){e:{o=e.type,i=e.memoizedProps,c=c.ownerDocument||c;t:switch(o){case"title":d=c.getElementsByTagName("title")[0],(!d||d[Yr]||d[yt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=c.createElement(o),c.head.insertBefore(d,c.querySelector("head > title"))),mt(d,o,i),d[yt]=e,ot(d),o=d;break e;case"link":var x=Zy("link","href",c).get(o+(i.href||""));if(x){for(var T=0;T<x.length;T++)if(d=x[T],d.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&d.getAttribute("rel")===(i.rel==null?null:i.rel)&&d.getAttribute("title")===(i.title==null?null:i.title)&&d.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){x.splice(T,1);break t}}d=c.createElement(o),mt(d,o,i),c.head.appendChild(d);break;case"meta":if(x=Zy("meta","content",c).get(o+(i.content||""))){for(T=0;T<x.length;T++)if(d=x[T],d.getAttribute("content")===(i.content==null?null:""+i.content)&&d.getAttribute("name")===(i.name==null?null:i.name)&&d.getAttribute("property")===(i.property==null?null:i.property)&&d.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&d.getAttribute("charset")===(i.charSet==null?null:i.charSet)){x.splice(T,1);break t}}d=c.createElement(o),mt(d,o,i),c.head.appendChild(d);break;default:throw Error(s(468,o))}d[yt]=e,ot(d),o=d}e.stateNode=o}else Qy(c,e.type,e.stateNode);else e.stateNode=$y(c,o,e.memoizedProps);else d!==o?(d===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):d.count--,o===null?Qy(c,e.type,e.stateNode):$y(c,o,e.memoizedProps)):o===null&&e.stateNode!==null&&af(e,e.memoizedProps,i.memoizedProps)}break;case 27:Bt(n,e),Ut(e),o&512&&(et||i===null||Tn(i,i.return)),i!==null&&o&4&&af(e,e.memoizedProps,i.memoizedProps);break;case 5:if(Bt(n,e),Ut(e),o&512&&(et||i===null||Tn(i,i.return)),e.flags&32){c=e.stateNode;try{Vi(c,"")}catch(G){Ue(e,e.return,G)}}o&4&&e.stateNode!=null&&(c=e.memoizedProps,af(e,c,i!==null?i.memoizedProps:c)),o&1024&&(of=!0);break;case 6:if(Bt(n,e),Ut(e),o&4){if(e.stateNode===null)throw Error(s(162));o=e.memoizedProps,i=e.stateNode;try{i.nodeValue=o}catch(G){Ue(e,e.return,G)}}break;case 3:if(Cl=null,c=fn,fn=Al(n.containerInfo),Bt(n,e),fn=c,Ut(e),o&4&&i!==null&&i.memoizedState.isDehydrated)try{ks(n.containerInfo)}catch(G){Ue(e,e.return,G)}of&&(of=!1,ay(e));break;case 4:o=fn,fn=Al(e.stateNode.containerInfo),Bt(n,e),Ut(e),fn=o;break;case 12:Bt(n,e),Ut(e);break;case 13:Bt(n,e),Ut(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(mf=gt()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,lf(e,o)));break;case 22:c=e.memoizedState!==null;var M=i!==null&&i.memoizedState!==null,B=Qn,I=et;if(Qn=B||c,et=I||M,Bt(n,e),et=I,Qn=B,Ut(e),o&8192)e:for(n=e.stateNode,n._visibility=c?n._visibility&-2:n._visibility|1,c&&(i===null||M||Qn||et||di(e)),i=null,n=e;;){if(n.tag===5||n.tag===26){if(i===null){M=i=n;try{if(d=M.stateNode,c)x=d.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{T=M.stateNode;var K=M.memoizedProps.style,H=K!=null&&K.hasOwnProperty("display")?K.display:null;T.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(G){Ue(M,M.return,G)}}}else if(n.tag===6){if(i===null){M=n;try{M.stateNode.nodeValue=c?"":M.memoizedProps}catch(G){Ue(M,M.return,G)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}o&4&&(o=e.updateQueue,o!==null&&(i=o.retryQueue,i!==null&&(o.retryQueue=null,lf(e,i))));break;case 19:Bt(n,e),Ut(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,lf(e,o)));break;case 30:break;case 21:break;default:Bt(n,e),Ut(e)}}function Ut(e){var n=e.flags;if(n&2){try{for(var i,o=e.return;o!==null;){if($g(o)){i=o;break}o=o.return}if(i==null)throw Error(s(160));switch(i.tag){case 27:var c=i.stateNode,d=rf(e);fl(e,d,c);break;case 5:var x=i.stateNode;i.flags&32&&(Vi(x,""),i.flags&=-33);var T=rf(e);fl(e,T,x);break;case 3:case 4:var M=i.stateNode.containerInfo,B=rf(e);sf(e,B,M);break;default:throw Error(s(161))}}catch(I){Ue(e,e.return,I)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function ay(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;ay(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Ta(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Wg(e,n.alternate,n),n=n.sibling}function di(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:wa(4,n,n.return),di(n);break;case 1:Tn(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&Xg(n,n.return,i),di(n);break;case 27:js(n.stateNode);case 26:case 5:Tn(n,n.return),di(n);break;case 22:n.memoizedState===null&&di(n);break;case 30:di(n);break;default:di(n)}e=e.sibling}}function Aa(e,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var o=n.alternate,c=e,d=n,x=d.flags;switch(d.tag){case 0:case 11:case 15:Aa(c,d,i),xs(4,d);break;case 1:if(Aa(c,d,i),o=d,c=o.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(B){Ue(o,o.return,B)}if(o=d,c=o.updateQueue,c!==null){var T=o.stateNode;try{var M=c.shared.hiddenCallbacks;if(M!==null)for(c.shared.hiddenCallbacks=null,c=0;c<M.length;c++)Op(M[c],T)}catch(B){Ue(o,o.return,B)}}i&&x&64&&Fg(d),bs(d,d.return);break;case 27:Zg(d);case 26:case 5:Aa(c,d,i),i&&o===null&&x&4&&Kg(d),bs(d,d.return);break;case 12:Aa(c,d,i);break;case 13:Aa(c,d,i),i&&x&4&&ty(c,d);break;case 22:d.memoizedState===null&&Aa(c,d,i),bs(d,d.return);break;case 30:break;default:Aa(c,d,i)}n=n.sibling}}function cf(e,n){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&rs(i))}function uf(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&rs(e))}function An(e,n,i,o){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)iy(e,n,i,o),n=n.sibling}function iy(e,n,i,o){var c=n.flags;switch(n.tag){case 0:case 11:case 15:An(e,n,i,o),c&2048&&xs(9,n);break;case 1:An(e,n,i,o);break;case 3:An(e,n,i,o),c&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&rs(e)));break;case 12:if(c&2048){An(e,n,i,o),e=n.stateNode;try{var d=n.memoizedProps,x=d.id,T=d.onPostCommit;typeof T=="function"&&T(x,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(M){Ue(n,n.return,M)}}else An(e,n,i,o);break;case 13:An(e,n,i,o);break;case 23:break;case 22:d=n.stateNode,x=n.alternate,n.memoizedState!==null?d._visibility&2?An(e,n,i,o):Ss(e,n):d._visibility&2?An(e,n,i,o):(d._visibility|=2,er(e,n,i,o,(n.subtreeFlags&10256)!==0)),c&2048&&cf(x,n);break;case 24:An(e,n,i,o),c&2048&&uf(n.alternate,n);break;default:An(e,n,i,o)}}function er(e,n,i,o,c){for(c=c&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;){var d=e,x=n,T=i,M=o,B=x.flags;switch(x.tag){case 0:case 11:case 15:er(d,x,T,M,c),xs(8,x);break;case 23:break;case 22:var I=x.stateNode;x.memoizedState!==null?I._visibility&2?er(d,x,T,M,c):Ss(d,x):(I._visibility|=2,er(d,x,T,M,c)),c&&B&2048&&cf(x.alternate,x);break;case 24:er(d,x,T,M,c),c&&B&2048&&uf(x.alternate,x);break;default:er(d,x,T,M,c)}n=n.sibling}}function Ss(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=e,o=n,c=o.flags;switch(o.tag){case 22:Ss(i,o),c&2048&&cf(o.alternate,o);break;case 24:Ss(i,o),c&2048&&uf(o.alternate,o);break;default:Ss(i,o)}n=n.sibling}}var ws=8192;function tr(e){if(e.subtreeFlags&ws)for(e=e.child;e!==null;)ry(e),e=e.sibling}function ry(e){switch(e.tag){case 26:tr(e),e.flags&ws&&e.memoizedState!==null&&TA(fn,e.memoizedState,e.memoizedProps);break;case 5:tr(e);break;case 3:case 4:var n=fn;fn=Al(e.stateNode.containerInfo),tr(e),fn=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=ws,ws=16777216,tr(e),ws=n):tr(e));break;default:tr(e)}}function sy(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Ts(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];ct=o,ly(o,e)}sy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)oy(e),e=e.sibling}function oy(e){switch(e.tag){case 0:case 11:case 15:Ts(e),e.flags&2048&&wa(9,e,e.return);break;case 3:Ts(e);break;case 12:Ts(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,dl(e)):Ts(e);break;default:Ts(e)}}function dl(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];ct=o,ly(o,e)}sy(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:wa(8,n,n.return),dl(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,dl(n));break;default:dl(n)}e=e.sibling}}function ly(e,n){for(;ct!==null;){var i=ct;switch(i.tag){case 0:case 11:case 15:wa(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var o=i.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:rs(i.memoizedState.cache)}if(o=i.child,o!==null)o.return=i,ct=o;else e:for(i=e;ct!==null;){o=ct;var c=o.sibling,d=o.return;if(Jg(o),o===i){ct=null;break e}if(c!==null){c.return=d,ct=c;break e}ct=d}}}var UT={getCacheForType:function(e){var n=vt(it),i=n.data.get(e);return i===void 0&&(i=e(),n.data.set(e,i)),i}},PT=typeof WeakMap=="function"?WeakMap:Map,Le=0,He=null,Ee=null,Ne=0,Ve=0,Pt=null,Ea=!1,nr=!1,ff=!1,Jn=0,Ze=0,Ca=0,hi=0,df=0,Jt=0,ar=0,As=null,Dt=null,hf=!1,mf=0,hl=1/0,ml=null,Ra=null,ht=0,Na=null,ir=null,rr=0,pf=0,gf=null,cy=null,Es=0,yf=null;function Ht(){if((Le&2)!==0&&Ne!==0)return Ne&-Ne;if(V.T!==null){var e=Fi;return e!==0?e:Af()}return Em()}function uy(){Jt===0&&(Jt=(Ne&536870912)===0||Oe?Sm():536870912);var e=Wt.current;return e!==null&&(e.flags|=32),Jt}function Gt(e,n,i){(e===He&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)&&(sr(e,0),ja(e,Ne,Jt,!1)),qr(e,i),((Le&2)===0||e!==He)&&(e===He&&((Le&2)===0&&(hi|=i),Ze===4&&ja(e,Ne,Jt,!1)),En(e))}function fy(e,n,i){if((Le&6)!==0)throw Error(s(327));var o=!i&&(n&124)===0&&(n&e.expiredLanes)===0||Gr(e,n),c=o?qT(e,n):bf(e,n,!0),d=o;do{if(c===0){nr&&!o&&ja(e,n,0,!1);break}else{if(i=e.current.alternate,d&&!HT(i)){c=bf(e,n,!1),d=!1;continue}if(c===2){if(d=n,e.errorRecoveryDisabledLanes&d)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){n=x;e:{var T=e;c=As;var M=T.current.memoizedState.isDehydrated;if(M&&(sr(T,x).flags|=256),x=bf(T,x,!1),x!==2){if(ff&&!M){T.errorRecoveryDisabledLanes|=d,hi|=d,c=4;break e}d=Dt,Dt=c,d!==null&&(Dt===null?Dt=d:Dt.push.apply(Dt,d))}c=x}if(d=!1,c!==2)continue}}if(c===1){sr(e,0),ja(e,n,0,!0);break}e:{switch(o=e,d=c,d){case 0:case 1:throw Error(s(345));case 4:if((n&4194048)!==n)break;case 6:ja(o,n,Jt,!Ea);break e;case 2:Dt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((n&62914560)===n&&(c=mf+300-gt(),10<c)){if(ja(o,n,Jt,!Ea),Eo(o,0,!0)!==0)break e;o.timeoutHandle=Py(dy.bind(null,o,i,Dt,ml,hf,n,Jt,hi,ar,Ea,d,2,-0,0),c);break e}dy(o,i,Dt,ml,hf,n,Jt,hi,ar,Ea,d,0,-0,0)}}break}while(!0);En(e)}function dy(e,n,i,o,c,d,x,T,M,B,I,K,H,G){if(e.timeoutHandle=-1,K=n.subtreeFlags,(K&8192||(K&16785408)===16785408)&&(Os={stylesheets:null,count:0,unsuspend:wA},ry(n),K=AA(),K!==null)){e.cancelPendingCommit=K(xy.bind(null,e,n,d,i,o,c,x,T,M,I,1,H,G)),ja(e,d,x,!B);return}xy(e,n,d,i,o,c,x,T,M)}function HT(e){for(var n=e;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var o=0;o<i.length;o++){var c=i[o],d=c.getSnapshot;c=c.value;try{if(!zt(d(),c))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function ja(e,n,i,o){n&=~df,n&=~hi,e.suspendedLanes|=n,e.pingedLanes&=~n,o&&(e.warmLanes|=n),o=e.expirationTimes;for(var c=n;0<c;){var d=31-Vt(c),x=1<<d;o[d]=-1,c&=~x}i!==0&&Tm(e,i,n)}function pl(){return(Le&6)===0?(Cs(0),!1):!0}function vf(){if(Ee!==null){if(Ve===0)var e=Ee.return;else e=Ee,In=oi=null,Lu(e),Wi=null,gs=0,e=Ee;for(;e!==null;)Ig(e.alternate,e),e=e.return;Ee=null}}function sr(e,n){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,rA(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),vf(),He=e,Ee=i=Gn(e.current,null),Ne=n,Ve=0,Pt=null,Ea=!1,nr=Gr(e,n),ff=!1,ar=Jt=df=hi=Ca=Ze=0,Dt=As=null,hf=!1,(n&8)!==0&&(n|=n&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=n;0<o;){var c=31-Vt(o),d=1<<c;n|=e[c],o&=~d}return Jn=n,ko(),i}function hy(e,n){be=null,V.H=nl,n===os||n===Fo?(n=Mp(),Ve=3):n===Rp?(n=Mp(),Ve=4):Ve=n===Dg?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Pt=n,Ee===null&&(Ze=1,ol(e,Kt(n,e.current)))}function my(){var e=V.H;return V.H=nl,e===null?nl:e}function py(){var e=V.A;return V.A=UT,e}function xf(){Ze=4,Ea||(Ne&4194048)!==Ne&&Wt.current!==null||(nr=!0),(Ca&134217727)===0&&(hi&134217727)===0||He===null||ja(He,Ne,Jt,!1)}function bf(e,n,i){var o=Le;Le|=2;var c=my(),d=py();(He!==e||Ne!==n)&&(ml=null,sr(e,n)),n=!1;var x=Ze;e:do try{if(Ve!==0&&Ee!==null){var T=Ee,M=Pt;switch(Ve){case 8:vf(),x=6;break e;case 3:case 2:case 9:case 6:Wt.current===null&&(n=!0);var B=Ve;if(Ve=0,Pt=null,or(e,T,M,B),i&&nr){x=0;break e}break;default:B=Ve,Ve=0,Pt=null,or(e,T,M,B)}}GT(),x=Ze;break}catch(I){hy(e,I)}while(!0);return n&&e.shellSuspendCounter++,In=oi=null,Le=o,V.H=c,V.A=d,Ee===null&&(He=null,Ne=0,ko()),x}function GT(){for(;Ee!==null;)gy(Ee)}function qT(e,n){var i=Le;Le|=2;var o=my(),c=py();He!==e||Ne!==n?(ml=null,hl=gt()+500,sr(e,n)):nr=Gr(e,n);e:do try{if(Ve!==0&&Ee!==null){n=Ee;var d=Pt;t:switch(Ve){case 1:Ve=0,Pt=null,or(e,n,d,1);break;case 2:case 9:if(Np(d)){Ve=0,Pt=null,yy(n);break}n=function(){Ve!==2&&Ve!==9||He!==e||(Ve=7),En(e)},d.then(n,n);break e;case 3:Ve=7;break e;case 4:Ve=5;break e;case 7:Np(d)?(Ve=0,Pt=null,yy(n)):(Ve=0,Pt=null,or(e,n,d,7));break;case 5:var x=null;switch(Ee.tag){case 26:x=Ee.memoizedState;case 5:case 27:var T=Ee;if(!x||Wy(x)){Ve=0,Pt=null;var M=T.sibling;if(M!==null)Ee=M;else{var B=T.return;B!==null?(Ee=B,gl(B)):Ee=null}break t}}Ve=0,Pt=null,or(e,n,d,5);break;case 6:Ve=0,Pt=null,or(e,n,d,6);break;case 8:vf(),Ze=6;break e;default:throw Error(s(462))}}YT();break}catch(I){hy(e,I)}while(!0);return In=oi=null,V.H=o,V.A=c,Le=i,Ee!==null?0:(He=null,Ne=0,ko(),Ze)}function YT(){for(;Ee!==null&&!Ka();)gy(Ee)}function gy(e){var n=qg(e.alternate,e,Jn);e.memoizedProps=e.pendingProps,n===null?gl(e):Ee=n}function yy(e){var n=e,i=n.alternate;switch(n.tag){case 15:case 0:n=kg(i,n,n.pendingProps,n.type,void 0,Ne);break;case 11:n=kg(i,n,n.pendingProps,n.type.render,n.ref,Ne);break;case 5:Lu(n);default:Ig(i,n),n=Ee=vp(n,Jn),n=qg(i,n,Jn)}e.memoizedProps=e.pendingProps,n===null?gl(e):Ee=n}function or(e,n,i,o){In=oi=null,Lu(n),Wi=null,gs=0;var c=n.return;try{if(_T(e,c,n,i,Ne)){Ze=1,ol(e,Kt(i,e.current)),Ee=null;return}}catch(d){if(c!==null)throw Ee=c,d;Ze=1,ol(e,Kt(i,e.current)),Ee=null;return}n.flags&32768?(Oe||o===1?e=!0:nr||(Ne&536870912)!==0?e=!1:(Ea=e=!0,(o===2||o===9||o===3||o===6)&&(o=Wt.current,o!==null&&o.tag===13&&(o.flags|=16384))),vy(n,e)):gl(n)}function gl(e){var n=e;do{if((n.flags&32768)!==0){vy(n,Ea);return}e=n.return;var i=VT(n.alternate,n,Jn);if(i!==null){Ee=i;return}if(n=n.sibling,n!==null){Ee=n;return}Ee=n=e}while(n!==null);Ze===0&&(Ze=5)}function vy(e,n){do{var i=zT(e.alternate,e);if(i!==null){i.flags&=32767,Ee=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(e=e.sibling,e!==null)){Ee=e;return}Ee=e=i}while(e!==null);Ze=6,Ee=null}function xy(e,n,i,o,c,d,x,T,M){e.cancelPendingCommit=null;do yl();while(ht!==0);if((Le&6)!==0)throw Error(s(327));if(n!==null){if(n===e.current)throw Error(s(177));if(d=n.lanes|n.childLanes,d|=cu,ww(e,i,d,x,T,M),e===He&&(Ee=He=null,Ne=0),ir=n,Na=e,rr=i,pf=d,gf=c,cy=o,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,KT(wo,function(){return Ay(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||o){o=V.T,V.T=null,c=q.p,q.p=2,x=Le,Le|=4;try{kT(e,n,i)}finally{Le=x,q.p=c,V.T=o}}ht=1,by(),Sy(),wy()}}function by(){if(ht===1){ht=0;var e=Na,n=ir,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=V.T,V.T=null;var o=q.p;q.p=2;var c=Le;Le|=4;try{ny(n,e);var d=Of,x=lp(e.containerInfo),T=d.focusedElem,M=d.selectionRange;if(x!==T&&T&&T.ownerDocument&&op(T.ownerDocument.documentElement,T)){if(M!==null&&iu(T)){var B=M.start,I=M.end;if(I===void 0&&(I=B),"selectionStart"in T)T.selectionStart=B,T.selectionEnd=Math.min(I,T.value.length);else{var K=T.ownerDocument||document,H=K&&K.defaultView||window;if(H.getSelection){var G=H.getSelection(),me=T.textContent.length,fe=Math.min(M.start,me),Be=M.end===void 0?fe:Math.min(M.end,me);!G.extend&&fe>Be&&(x=Be,Be=fe,fe=x);var L=sp(T,fe),O=sp(T,Be);if(L&&O&&(G.rangeCount!==1||G.anchorNode!==L.node||G.anchorOffset!==L.offset||G.focusNode!==O.node||G.focusOffset!==O.offset)){var z=K.createRange();z.setStart(L.node,L.offset),G.removeAllRanges(),fe>Be?(G.addRange(z),G.extend(O.node,O.offset)):(z.setEnd(O.node,O.offset),G.addRange(z))}}}}for(K=[],G=T;G=G.parentNode;)G.nodeType===1&&K.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<K.length;T++){var F=K[T];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}jl=!!Df,Of=Df=null}finally{Le=c,q.p=o,V.T=i}}e.current=n,ht=2}}function Sy(){if(ht===2){ht=0;var e=Na,n=ir,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=V.T,V.T=null;var o=q.p;q.p=2;var c=Le;Le|=4;try{Wg(e,n.alternate,n)}finally{Le=c,q.p=o,V.T=i}}ht=3}}function wy(){if(ht===4||ht===3){ht=0,$a();var e=Na,n=ir,i=rr,o=cy;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?ht=5:(ht=0,ir=Na=null,Ty(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(Ra=null),kc(i),n=n.stateNode,Lt&&typeof Lt.onCommitFiberRoot=="function")try{Lt.onCommitFiberRoot(Hr,n,void 0,(n.current.flags&128)===128)}catch{}if(o!==null){n=V.T,c=q.p,q.p=2,V.T=null;try{for(var d=e.onRecoverableError,x=0;x<o.length;x++){var T=o[x];d(T.value,{componentStack:T.stack})}}finally{V.T=n,q.p=c}}(rr&3)!==0&&yl(),En(e),c=e.pendingLanes,(i&4194090)!==0&&(c&42)!==0?e===yf?Es++:(Es=0,yf=e):Es=0,Cs(0)}}function Ty(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,rs(n)))}function yl(e){return by(),Sy(),wy(),Ay()}function Ay(){if(ht!==5)return!1;var e=Na,n=pf;pf=0;var i=kc(rr),o=V.T,c=q.p;try{q.p=32>i?32:i,V.T=null,i=gf,gf=null;var d=Na,x=rr;if(ht=0,ir=Na=null,rr=0,(Le&6)!==0)throw Error(s(331));var T=Le;if(Le|=4,oy(d.current),iy(d,d.current,x,i),Le=T,Cs(0,!1),Lt&&typeof Lt.onPostCommitFiberRoot=="function")try{Lt.onPostCommitFiberRoot(Hr,d)}catch{}return!0}finally{q.p=c,V.T=o,Ty(e,n)}}function Ey(e,n,i){n=Kt(i,n),n=Ku(e.stateNode,n,2),e=va(e,n,2),e!==null&&(qr(e,2),En(e))}function Ue(e,n,i){if(e.tag===3)Ey(e,e,i);else for(;n!==null;){if(n.tag===3){Ey(n,e,i);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Ra===null||!Ra.has(o))){e=Kt(i,e),i=jg(2),o=va(n,i,2),o!==null&&(Mg(i,o,n,e),qr(o,2),En(o));break}}n=n.return}}function Sf(e,n,i){var o=e.pingCache;if(o===null){o=e.pingCache=new PT;var c=new Set;o.set(n,c)}else c=o.get(n),c===void 0&&(c=new Set,o.set(n,c));c.has(i)||(ff=!0,c.add(i),e=IT.bind(null,e,n,i),n.then(e,e))}function IT(e,n,i){var o=e.pingCache;o!==null&&o.delete(n),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,He===e&&(Ne&i)===i&&(Ze===4||Ze===3&&(Ne&62914560)===Ne&&300>gt()-mf?(Le&2)===0&&sr(e,0):df|=i,ar===Ne&&(ar=0)),En(e)}function Cy(e,n){n===0&&(n=wm()),e=Gi(e,n),e!==null&&(qr(e,n),En(e))}function FT(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),Cy(e,i)}function XT(e,n){var i=0;switch(e.tag){case 13:var o=e.stateNode,c=e.memoizedState;c!==null&&(i=c.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(s(314))}o!==null&&o.delete(n),Cy(e,i)}function KT(e,n){return ft(e,n)}var vl=null,lr=null,wf=!1,xl=!1,Tf=!1,mi=0;function En(e){e!==lr&&e.next===null&&(lr===null?vl=lr=e:lr=lr.next=e),xl=!0,wf||(wf=!0,ZT())}function Cs(e,n){if(!Tf&&xl){Tf=!0;do for(var i=!1,o=vl;o!==null;){if(e!==0){var c=o.pendingLanes;if(c===0)var d=0;else{var x=o.suspendedLanes,T=o.pingedLanes;d=(1<<31-Vt(42|e)+1)-1,d&=c&~(x&~T),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(i=!0,My(o,d))}else d=Ne,d=Eo(o,o===He?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(d&3)===0||Gr(o,d)||(i=!0,My(o,d));o=o.next}while(i);Tf=!1}}function $T(){Ry()}function Ry(){xl=wf=!1;var e=0;mi!==0&&(iA()&&(e=mi),mi=0);for(var n=gt(),i=null,o=vl;o!==null;){var c=o.next,d=Ny(o,n);d===0?(o.next=null,i===null?vl=c:i.next=c,c===null&&(lr=i)):(i=o,(e!==0||(d&3)!==0)&&(xl=!0)),o=c}Cs(e)}function Ny(e,n){for(var i=e.suspendedLanes,o=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var x=31-Vt(d),T=1<<x,M=c[x];M===-1?((T&i)===0||(T&o)!==0)&&(c[x]=Sw(T,n)):M<=n&&(e.expiredLanes|=T),d&=~T}if(n=He,i=Ne,i=Eo(e,e===n?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,i===0||e===n&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&Ct(o),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||Gr(e,i)){if(n=i&-i,n===e.callbackPriority)return n;switch(o!==null&&Ct(o),kc(i)){case 2:case 8:i=xm;break;case 32:i=wo;break;case 268435456:i=bm;break;default:i=wo}return o=jy.bind(null,e),i=ft(i,o),e.callbackPriority=n,e.callbackNode=i,n}return o!==null&&o!==null&&Ct(o),e.callbackPriority=2,e.callbackNode=null,2}function jy(e,n){if(ht!==0&&ht!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(yl()&&e.callbackNode!==i)return null;var o=Ne;return o=Eo(e,e===He?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(fy(e,o,n),Ny(e,gt()),e.callbackNode!=null&&e.callbackNode===i?jy.bind(null,e):null)}function My(e,n){if(yl())return null;fy(e,n,!0)}function ZT(){sA(function(){(Le&6)!==0?ft(Za,$T):Ry()})}function Af(){return mi===0&&(mi=Sm()),mi}function Dy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Mo(""+e)}function Oy(e,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,e.id&&i.setAttribute("form",e.id),n.parentNode.insertBefore(i,n),e=new FormData(e),i.parentNode.removeChild(i),e}function QT(e,n,i,o,c){if(n==="submit"&&i&&i.stateNode===c){var d=Dy((c[Rt]||null).action),x=o.submitter;x&&(n=(n=x[Rt]||null)?Dy(n.formAction):x.getAttribute("formAction"),n!==null&&(d=n,x=null));var T=new Lo("action","action",null,o,c);e.push({event:T,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(mi!==0){var M=x?Oy(c,x):new FormData(c);qu(i,{pending:!0,data:M,method:c.method,action:d},null,M)}}else typeof d=="function"&&(T.preventDefault(),M=x?Oy(c,x):new FormData(c),qu(i,{pending:!0,data:M,method:c.method,action:d},d,M))},currentTarget:c}]})}}for(var Ef=0;Ef<lu.length;Ef++){var Cf=lu[Ef],WT=Cf.toLowerCase(),JT=Cf[0].toUpperCase()+Cf.slice(1);un(WT,"on"+JT)}un(fp,"onAnimationEnd"),un(dp,"onAnimationIteration"),un(hp,"onAnimationStart"),un("dblclick","onDoubleClick"),un("focusin","onFocus"),un("focusout","onBlur"),un(gT,"onTransitionRun"),un(yT,"onTransitionStart"),un(vT,"onTransitionCancel"),un(mp,"onTransitionEnd"),Oi("onMouseEnter",["mouseout","mouseover"]),Oi("onMouseLeave",["mouseout","mouseover"]),Oi("onPointerEnter",["pointerout","pointerover"]),Oi("onPointerLeave",["pointerout","pointerover"]),Wa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Wa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rs="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(" "),eA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Rs));function _y(e,n){n=(n&4)!==0;for(var i=0;i<e.length;i++){var o=e[i],c=o.event;o=o.listeners;e:{var d=void 0;if(n)for(var x=o.length-1;0<=x;x--){var T=o[x],M=T.instance,B=T.currentTarget;if(T=T.listener,M!==d&&c.isPropagationStopped())break e;d=T,c.currentTarget=B;try{d(c)}catch(I){sl(I)}c.currentTarget=null,d=M}else for(x=0;x<o.length;x++){if(T=o[x],M=T.instance,B=T.currentTarget,T=T.listener,M!==d&&c.isPropagationStopped())break e;d=T,c.currentTarget=B;try{d(c)}catch(I){sl(I)}c.currentTarget=null,d=M}}}}function Ce(e,n){var i=n[Bc];i===void 0&&(i=n[Bc]=new Set);var o=e+"__bubble";i.has(o)||(Ly(n,e,2,!1),i.add(o))}function Rf(e,n,i){var o=0;n&&(o|=4),Ly(i,e,o,n)}var bl="_reactListening"+Math.random().toString(36).slice(2);function Nf(e){if(!e[bl]){e[bl]=!0,Rm.forEach(function(i){i!=="selectionchange"&&(eA.has(i)||Rf(i,!1,e),Rf(i,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[bl]||(n[bl]=!0,Rf("selectionchange",!1,n))}}function Ly(e,n,i,o){switch(iv(n)){case 2:var c=RA;break;case 8:c=NA;break;default:c=Gf}i=c.bind(null,n,i,e),c=void 0,!$c||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(c=!0),o?c!==void 0?e.addEventListener(n,i,{capture:!0,passive:c}):e.addEventListener(n,i,!0):c!==void 0?e.addEventListener(n,i,{passive:c}):e.addEventListener(n,i,!1)}function jf(e,n,i,o,c){var d=o;if((n&1)===0&&(n&2)===0&&o!==null)e:for(;;){if(o===null)return;var x=o.tag;if(x===3||x===4){var T=o.stateNode.containerInfo;if(T===c)break;if(x===4)for(x=o.return;x!==null;){var M=x.tag;if((M===3||M===4)&&x.stateNode.containerInfo===c)return;x=x.return}for(;T!==null;){if(x=ji(T),x===null)return;if(M=x.tag,M===5||M===6||M===26||M===27){o=d=x;continue e}T=T.parentNode}}o=o.return}Hm(function(){var B=d,I=Xc(i),K=[];e:{var H=pp.get(e);if(H!==void 0){var G=Lo,me=e;switch(e){case"keypress":if(Oo(i)===0)break e;case"keydown":case"keyup":G=Kw;break;case"focusin":me="focus",G=Jc;break;case"focusout":me="blur",G=Jc;break;case"beforeblur":case"afterblur":G=Jc;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=Ym;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=zw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=Qw;break;case fp:case dp:case hp:G=Uw;break;case mp:G=Jw;break;case"scroll":case"scrollend":G=Lw;break;case"wheel":G=tT;break;case"copy":case"cut":case"paste":G=Hw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=Fm;break;case"toggle":case"beforetoggle":G=aT}var fe=(n&4)!==0,Be=!fe&&(e==="scroll"||e==="scrollend"),L=fe?H!==null?H+"Capture":null:H;fe=[];for(var O=B,z;O!==null;){var F=O;if(z=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||z===null||L===null||(F=Fr(O,L),F!=null&&fe.push(Ns(O,F,z))),Be)break;O=O.return}0<fe.length&&(H=new G(H,me,null,i,I),K.push({event:H,listeners:fe}))}}if((n&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",H&&i!==Fc&&(me=i.relatedTarget||i.fromElement)&&(ji(me)||me[Ni]))break e;if((G||H)&&(H=I.window===I?I:(H=I.ownerDocument)?H.defaultView||H.parentWindow:window,G?(me=i.relatedTarget||i.toElement,G=B,me=me?ji(me):null,me!==null&&(Be=u(me),fe=me.tag,me!==Be||fe!==5&&fe!==27&&fe!==6)&&(me=null)):(G=null,me=B),G!==me)){if(fe=Ym,F="onMouseLeave",L="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(fe=Fm,F="onPointerLeave",L="onPointerEnter",O="pointer"),Be=G==null?H:Ir(G),z=me==null?H:Ir(me),H=new fe(F,O+"leave",G,i,I),H.target=Be,H.relatedTarget=z,F=null,ji(I)===B&&(fe=new fe(L,O+"enter",me,i,I),fe.target=z,fe.relatedTarget=Be,F=fe),Be=F,G&&me)t:{for(fe=G,L=me,O=0,z=fe;z;z=cr(z))O++;for(z=0,F=L;F;F=cr(F))z++;for(;0<O-z;)fe=cr(fe),O--;for(;0<z-O;)L=cr(L),z--;for(;O--;){if(fe===L||L!==null&&fe===L.alternate)break t;fe=cr(fe),L=cr(L)}fe=null}else fe=null;G!==null&&Vy(K,H,G,fe,!1),me!==null&&Be!==null&&Vy(K,Be,me,fe,!0)}}e:{if(H=B?Ir(B):window,G=H.nodeName&&H.nodeName.toLowerCase(),G==="select"||G==="input"&&H.type==="file")var ne=ep;else if(Wm(H))if(tp)ne=hT;else{ne=fT;var we=uT}else G=H.nodeName,!G||G.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?B&&Ic(B.elementType)&&(ne=ep):ne=dT;if(ne&&(ne=ne(e,B))){Jm(K,ne,i,I);break e}we&&we(e,H,B),e==="focusout"&&B&&H.type==="number"&&B.memoizedProps.value!=null&&Yc(H,"number",H.value)}switch(we=B?Ir(B):window,e){case"focusin":(Wm(we)||we.contentEditable==="true")&&(Ui=we,ru=B,es=null);break;case"focusout":es=ru=Ui=null;break;case"mousedown":su=!0;break;case"contextmenu":case"mouseup":case"dragend":su=!1,cp(K,i,I);break;case"selectionchange":if(pT)break;case"keydown":case"keyup":cp(K,i,I)}var se;if(tu)e:{switch(e){case"compositionstart":var he="onCompositionStart";break e;case"compositionend":he="onCompositionEnd";break e;case"compositionupdate":he="onCompositionUpdate";break e}he=void 0}else Bi?Zm(e,i)&&(he="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(he="onCompositionStart");he&&(Xm&&i.locale!=="ko"&&(Bi||he!=="onCompositionStart"?he==="onCompositionEnd"&&Bi&&(se=Gm()):(ma=I,Zc="value"in ma?ma.value:ma.textContent,Bi=!0)),we=Sl(B,he),0<we.length&&(he=new Im(he,e,null,i,I),K.push({event:he,listeners:we}),se?he.data=se:(se=Qm(i),se!==null&&(he.data=se)))),(se=rT?sT(e,i):oT(e,i))&&(he=Sl(B,"onBeforeInput"),0<he.length&&(we=new Im("onBeforeInput","beforeinput",null,i,I),K.push({event:we,listeners:he}),we.data=se)),QT(K,e,B,i,I)}_y(K,n)})}function Ns(e,n,i){return{instance:e,listener:n,currentTarget:i}}function Sl(e,n){for(var i=n+"Capture",o=[];e!==null;){var c=e,d=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||d===null||(c=Fr(e,i),c!=null&&o.unshift(Ns(e,c,d)),c=Fr(e,n),c!=null&&o.push(Ns(e,c,d))),e.tag===3)return o;e=e.return}return[]}function cr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Vy(e,n,i,o,c){for(var d=n._reactName,x=[];i!==null&&i!==o;){var T=i,M=T.alternate,B=T.stateNode;if(T=T.tag,M!==null&&M===o)break;T!==5&&T!==26&&T!==27||B===null||(M=B,c?(B=Fr(i,d),B!=null&&x.unshift(Ns(i,B,M))):c||(B=Fr(i,d),B!=null&&x.push(Ns(i,B,M)))),i=i.return}x.length!==0&&e.push({event:n,listeners:x})}var tA=/\r\n?/g,nA=/\u0000|\uFFFD/g;function zy(e){return(typeof e=="string"?e:""+e).replace(tA,`
`).replace(nA,"")}function ky(e,n){return n=zy(n),zy(e)===n}function wl(){}function ke(e,n,i,o,c,d){switch(i){case"children":typeof o=="string"?n==="body"||n==="textarea"&&o===""||Vi(e,o):(typeof o=="number"||typeof o=="bigint")&&n!=="body"&&Vi(e,""+o);break;case"className":Ro(e,"class",o);break;case"tabIndex":Ro(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Ro(e,i,o);break;case"style":Um(e,o,d);break;case"data":if(n!=="object"){Ro(e,"data",o);break}case"src":case"href":if(o===""&&(n!=="a"||i!=="href")){e.removeAttribute(i);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(i);break}o=Mo(""+o),e.setAttribute(i,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(i,"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 d=="function"&&(i==="formAction"?(n!=="input"&&ke(e,n,"name",c.name,c,null),ke(e,n,"formEncType",c.formEncType,c,null),ke(e,n,"formMethod",c.formMethod,c,null),ke(e,n,"formTarget",c.formTarget,c,null)):(ke(e,n,"encType",c.encType,c,null),ke(e,n,"method",c.method,c,null),ke(e,n,"target",c.target,c,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(i);break}o=Mo(""+o),e.setAttribute(i,o);break;case"onClick":o!=null&&(e.onclick=wl);break;case"onScroll":o!=null&&Ce("scroll",e);break;case"onScrollEnd":o!=null&&Ce("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(s(61));if(i=o.__html,i!=null){if(c.children!=null)throw Error(s(60));e.innerHTML=i}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}i=Mo(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(i,""+o):e.removeAttribute(i);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":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":o===!0?e.setAttribute(i,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(i,o):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(i,o):e.removeAttribute(i);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(i):e.setAttribute(i,o);break;case"popover":Ce("beforetoggle",e),Ce("toggle",e),Co(e,"popover",o);break;case"xlinkActuate":Pn(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Pn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Pn(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Pn(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Pn(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Pn(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Pn(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Pn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Pn(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Co(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=Ow.get(i)||i,Co(e,i,o))}}function Mf(e,n,i,o,c,d){switch(i){case"style":Um(e,o,d);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(s(61));if(i=o.__html,i!=null){if(c.children!=null)throw Error(s(60));e.innerHTML=i}}break;case"children":typeof o=="string"?Vi(e,o):(typeof o=="number"||typeof o=="bigint")&&Vi(e,""+o);break;case"onScroll":o!=null&&Ce("scroll",e);break;case"onScrollEnd":o!=null&&Ce("scrollend",e);break;case"onClick":o!=null&&(e.onclick=wl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Nm.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(c=i.endsWith("Capture"),n=i.slice(2,c?i.length-7:void 0),d=e[Rt]||null,d=d!=null?d[i]:null,typeof d=="function"&&e.removeEventListener(n,d,c),typeof o=="function")){typeof d!="function"&&d!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(n,o,c);break e}i in e?e[i]=o:o===!0?e.setAttribute(i,""):Co(e,i,o)}}}function mt(e,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ce("error",e),Ce("load",e);var o=!1,c=!1,d;for(d in i)if(i.hasOwnProperty(d)){var x=i[d];if(x!=null)switch(d){case"src":o=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,n));default:ke(e,n,d,x,i,null)}}c&&ke(e,n,"srcSet",i.srcSet,i,null),o&&ke(e,n,"src",i.src,i,null);return;case"input":Ce("invalid",e);var T=d=x=c=null,M=null,B=null;for(o in i)if(i.hasOwnProperty(o)){var I=i[o];if(I!=null)switch(o){case"name":c=I;break;case"type":x=I;break;case"checked":M=I;break;case"defaultChecked":B=I;break;case"value":d=I;break;case"defaultValue":T=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(s(137,n));break;default:ke(e,n,o,I,i,null)}}Vm(e,d,T,M,B,x,c,!1),No(e);return;case"select":Ce("invalid",e),o=x=d=null;for(c in i)if(i.hasOwnProperty(c)&&(T=i[c],T!=null))switch(c){case"value":d=T;break;case"defaultValue":x=T;break;case"multiple":o=T;default:ke(e,n,c,T,i,null)}n=d,i=x,e.multiple=!!o,n!=null?Li(e,!!o,n,!1):i!=null&&Li(e,!!o,i,!0);return;case"textarea":Ce("invalid",e),d=c=o=null;for(x in i)if(i.hasOwnProperty(x)&&(T=i[x],T!=null))switch(x){case"value":o=T;break;case"defaultValue":c=T;break;case"children":d=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(s(91));break;default:ke(e,n,x,T,i,null)}km(e,o,c,d),No(e);return;case"option":for(M in i)if(i.hasOwnProperty(M)&&(o=i[M],o!=null))switch(M){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:ke(e,n,M,o,i,null)}return;case"dialog":Ce("beforetoggle",e),Ce("toggle",e),Ce("cancel",e),Ce("close",e);break;case"iframe":case"object":Ce("load",e);break;case"video":case"audio":for(o=0;o<Rs.length;o++)Ce(Rs[o],e);break;case"image":Ce("error",e),Ce("load",e);break;case"details":Ce("toggle",e);break;case"embed":case"source":case"link":Ce("error",e),Ce("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(B in i)if(i.hasOwnProperty(B)&&(o=i[B],o!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,n));default:ke(e,n,B,o,i,null)}return;default:if(Ic(n)){for(I in i)i.hasOwnProperty(I)&&(o=i[I],o!==void 0&&Mf(e,n,I,o,i,void 0));return}}for(T in i)i.hasOwnProperty(T)&&(o=i[T],o!=null&&ke(e,n,T,o,i,null))}function aA(e,n,i,o){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,d=null,x=null,T=null,M=null,B=null,I=null;for(G in i){var K=i[G];if(i.hasOwnProperty(G)&&K!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":M=K;default:o.hasOwnProperty(G)||ke(e,n,G,null,o,K)}}for(var H in o){var G=o[H];if(K=i[H],o.hasOwnProperty(H)&&(G!=null||K!=null))switch(H){case"type":d=G;break;case"name":c=G;break;case"checked":B=G;break;case"defaultChecked":I=G;break;case"value":x=G;break;case"defaultValue":T=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(s(137,n));break;default:G!==K&&ke(e,n,H,G,o,K)}}qc(e,x,T,M,B,I,d,c);return;case"select":G=x=T=H=null;for(d in i)if(M=i[d],i.hasOwnProperty(d)&&M!=null)switch(d){case"value":break;case"multiple":G=M;default:o.hasOwnProperty(d)||ke(e,n,d,null,o,M)}for(c in o)if(d=o[c],M=i[c],o.hasOwnProperty(c)&&(d!=null||M!=null))switch(c){case"value":H=d;break;case"defaultValue":T=d;break;case"multiple":x=d;default:d!==M&&ke(e,n,c,d,o,M)}n=T,i=x,o=G,H!=null?Li(e,!!i,H,!1):!!o!=!!i&&(n!=null?Li(e,!!i,n,!0):Li(e,!!i,i?[]:"",!1));return;case"textarea":G=H=null;for(T in i)if(c=i[T],i.hasOwnProperty(T)&&c!=null&&!o.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:ke(e,n,T,null,o,c)}for(x in o)if(c=o[x],d=i[x],o.hasOwnProperty(x)&&(c!=null||d!=null))switch(x){case"value":H=c;break;case"defaultValue":G=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(s(91));break;default:c!==d&&ke(e,n,x,c,o,d)}zm(e,H,G);return;case"option":for(var me in i)if(H=i[me],i.hasOwnProperty(me)&&H!=null&&!o.hasOwnProperty(me))switch(me){case"selected":e.selected=!1;break;default:ke(e,n,me,null,o,H)}for(M in o)if(H=o[M],G=i[M],o.hasOwnProperty(M)&&H!==G&&(H!=null||G!=null))switch(M){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:ke(e,n,M,H,o,G)}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 fe in i)H=i[fe],i.hasOwnProperty(fe)&&H!=null&&!o.hasOwnProperty(fe)&&ke(e,n,fe,null,o,H);for(B in o)if(H=o[B],G=i[B],o.hasOwnProperty(B)&&H!==G&&(H!=null||G!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,n));break;default:ke(e,n,B,H,o,G)}return;default:if(Ic(n)){for(var Be in i)H=i[Be],i.hasOwnProperty(Be)&&H!==void 0&&!o.hasOwnProperty(Be)&&Mf(e,n,Be,void 0,o,H);for(I in o)H=o[I],G=i[I],!o.hasOwnProperty(I)||H===G||H===void 0&&G===void 0||Mf(e,n,I,H,o,G);return}}for(var L in i)H=i[L],i.hasOwnProperty(L)&&H!=null&&!o.hasOwnProperty(L)&&ke(e,n,L,null,o,H);for(K in o)H=o[K],G=i[K],!o.hasOwnProperty(K)||H===G||H==null&&G==null||ke(e,n,K,H,o,G)}var Df=null,Of=null;function Tl(e){return e.nodeType===9?e:e.ownerDocument}function By(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 Uy(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function _f(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Lf=null;function iA(){var e=window.event;return e&&e.type==="popstate"?e===Lf?!1:(Lf=e,!0):(Lf=null,!1)}var Py=typeof setTimeout=="function"?setTimeout:void 0,rA=typeof clearTimeout=="function"?clearTimeout:void 0,Hy=typeof Promise=="function"?Promise:void 0,sA=typeof queueMicrotask=="function"?queueMicrotask:typeof Hy<"u"?function(e){return Hy.resolve(null).then(e).catch(oA)}:Py;function oA(e){setTimeout(function(){throw e})}function Ma(e){return e==="head"}function Gy(e,n){var i=n,o=0,c=0;do{var d=i.nextSibling;if(e.removeChild(i),d&&d.nodeType===8)if(i=d.data,i==="/$"){if(0<o&&8>o){i=o;var x=e.ownerDocument;if(i&1&&js(x.documentElement),i&2&&js(x.body),i&4)for(i=x.head,js(i),x=i.firstChild;x;){var T=x.nextSibling,M=x.nodeName;x[Yr]||M==="SCRIPT"||M==="STYLE"||M==="LINK"&&x.rel.toLowerCase()==="stylesheet"||i.removeChild(x),x=T}}if(c===0){e.removeChild(d),ks(n);return}c--}else i==="$"||i==="$?"||i==="$!"?c++:o=i.charCodeAt(0)-48;else o=0;i=d}while(i);ks(n)}function Vf(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Vf(i),Uc(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function lA(e,n,i,o){for(;e.nodeType===1;){var c=i;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Yr])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var d=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=dn(e.nextSibling),e===null)break}return null}function cA(e,n,i){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=dn(e.nextSibling),e===null))return null;return e}function zf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function uA(e,n){var i=e.ownerDocument;if(e.data!=="$?"||i.readyState==="complete")n();else{var o=function(){n(),i.removeEventListener("DOMContentLoaded",o)};i.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function dn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="F!"||n==="F")break;if(n==="/$")return null}}return e}var kf=null;function qy(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(n===0)return e;n--}else i==="/$"&&n++}e=e.previousSibling}return null}function Yy(e,n,i){switch(n=Tl(i),e){case"html":if(e=n.documentElement,!e)throw Error(s(452));return e;case"head":if(e=n.head,!e)throw Error(s(453));return e;case"body":if(e=n.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function js(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Uc(e)}var en=new Map,Iy=new Set;function Al(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ea=q.d;q.d={f:fA,r:dA,D:hA,C:mA,L:pA,m:gA,X:vA,S:yA,M:xA};function fA(){var e=ea.f(),n=pl();return e||n}function dA(e){var n=Mi(e);n!==null&&n.tag===5&&n.type==="form"?fg(n):ea.r(e)}var ur=typeof document>"u"?null:document;function Fy(e,n,i){var o=ur;if(o&&typeof n=="string"&&n){var c=Xt(n);c='link[rel="'+e+'"][href="'+c+'"]',typeof i=="string"&&(c+='[crossorigin="'+i+'"]'),Iy.has(c)||(Iy.add(c),e={rel:e,crossOrigin:i,href:n},o.querySelector(c)===null&&(n=o.createElement("link"),mt(n,"link",e),ot(n),o.head.appendChild(n)))}}function hA(e){ea.D(e),Fy("dns-prefetch",e,null)}function mA(e,n){ea.C(e,n),Fy("preconnect",e,n)}function pA(e,n,i){ea.L(e,n,i);var o=ur;if(o&&e&&n){var c='link[rel="preload"][as="'+Xt(n)+'"]';n==="image"&&i&&i.imageSrcSet?(c+='[imagesrcset="'+Xt(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(c+='[imagesizes="'+Xt(i.imageSizes)+'"]')):c+='[href="'+Xt(e)+'"]';var d=c;switch(n){case"style":d=fr(e);break;case"script":d=dr(e)}en.has(d)||(e=y({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:e,as:n},i),en.set(d,e),o.querySelector(c)!==null||n==="style"&&o.querySelector(Ms(d))||n==="script"&&o.querySelector(Ds(d))||(n=o.createElement("link"),mt(n,"link",e),ot(n),o.head.appendChild(n)))}}function gA(e,n){ea.m(e,n);var i=ur;if(i&&e){var o=n&&typeof n.as=="string"?n.as:"script",c='link[rel="modulepreload"][as="'+Xt(o)+'"][href="'+Xt(e)+'"]',d=c;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=dr(e)}if(!en.has(d)&&(e=y({rel:"modulepreload",href:e},n),en.set(d,e),i.querySelector(c)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Ds(d)))return}o=i.createElement("link"),mt(o,"link",e),ot(o),i.head.appendChild(o)}}}function yA(e,n,i){ea.S(e,n,i);var o=ur;if(o&&e){var c=Di(o).hoistableStyles,d=fr(e);n=n||"default";var x=c.get(d);if(!x){var T={loading:0,preload:null};if(x=o.querySelector(Ms(d)))T.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":n},i),(i=en.get(d))&&Bf(e,i);var M=x=o.createElement("link");ot(M),mt(M,"link",e),M._p=new Promise(function(B,I){M.onload=B,M.onerror=I}),M.addEventListener("load",function(){T.loading|=1}),M.addEventListener("error",function(){T.loading|=2}),T.loading|=4,El(x,n,o)}x={type:"stylesheet",instance:x,count:1,state:T},c.set(d,x)}}}function vA(e,n){ea.X(e,n);var i=ur;if(i&&e){var o=Di(i).hoistableScripts,c=dr(e),d=o.get(c);d||(d=i.querySelector(Ds(c)),d||(e=y({src:e,async:!0},n),(n=en.get(c))&&Uf(e,n),d=i.createElement("script"),ot(d),mt(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(c,d))}}function xA(e,n){ea.M(e,n);var i=ur;if(i&&e){var o=Di(i).hoistableScripts,c=dr(e),d=o.get(c);d||(d=i.querySelector(Ds(c)),d||(e=y({src:e,async:!0,type:"module"},n),(n=en.get(c))&&Uf(e,n),d=i.createElement("script"),ot(d),mt(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(c,d))}}function Xy(e,n,i,o){var c=(c=oe.current)?Al(c):null;if(!c)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=fr(i.href),i=Di(c).hoistableStyles,o=i.get(n),o||(o={type:"style",instance:null,count:0,state:null},i.set(n,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=fr(i.href);var d=Di(c).hoistableStyles,x=d.get(e);if(x||(c=c.ownerDocument||c,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,x),(d=c.querySelector(Ms(e)))&&!d._p&&(x.instance=d,x.state.loading=5),en.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},en.set(e,i),d||bA(c,e,i,x.state))),n&&o===null)throw Error(s(528,""));return x}if(n&&o!==null)throw Error(s(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=dr(i),i=Di(c).hoistableScripts,o=i.get(n),o||(o={type:"script",instance:null,count:0,state:null},i.set(n,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function fr(e){return'href="'+Xt(e)+'"'}function Ms(e){return'link[rel="stylesheet"]['+e+"]"}function Ky(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function bA(e,n,i,o){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?o.loading=1:(n=e.createElement("link"),o.preload=n,n.addEventListener("load",function(){return o.loading|=1}),n.addEventListener("error",function(){return o.loading|=2}),mt(n,"link",i),ot(n),e.head.appendChild(n))}function dr(e){return'[src="'+Xt(e)+'"]'}function Ds(e){return"script[async]"+e}function $y(e,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var o=e.querySelector('style[data-href~="'+Xt(i.href)+'"]');if(o)return n.instance=o,ot(o),o;var c=y({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),ot(o),mt(o,"style",c),El(o,i.precedence,e),n.instance=o;case"stylesheet":c=fr(i.href);var d=e.querySelector(Ms(c));if(d)return n.state.loading|=4,n.instance=d,ot(d),d;o=Ky(i),(c=en.get(c))&&Bf(o,c),d=(e.ownerDocument||e).createElement("link"),ot(d);var x=d;return x._p=new Promise(function(T,M){x.onload=T,x.onerror=M}),mt(d,"link",o),n.state.loading|=4,El(d,i.precedence,e),n.instance=d;case"script":return d=dr(i.src),(c=e.querySelector(Ds(d)))?(n.instance=c,ot(c),c):(o=i,(c=en.get(d))&&(o=y({},i),Uf(o,c)),e=e.ownerDocument||e,c=e.createElement("script"),ot(c),mt(c,"link",o),e.head.appendChild(c),n.instance=c);case"void":return null;default:throw Error(s(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(o=n.instance,n.state.loading|=4,El(o,i.precedence,e));return n.instance}function El(e,n,i){for(var o=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=o.length?o[o.length-1]:null,d=c,x=0;x<o.length;x++){var T=o[x];if(T.dataset.precedence===n)d=T;else if(d!==c)break}d?d.parentNode.insertBefore(e,d.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(e,n.firstChild))}function Bf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Uf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Cl=null;function Zy(e,n,i){if(Cl===null){var o=new Map,c=Cl=new Map;c.set(i,o)}else c=Cl,o=c.get(i),o||(o=new Map,c.set(i,o));if(o.has(e))return o;for(o.set(e,null),i=i.getElementsByTagName(e),c=0;c<i.length;c++){var d=i[c];if(!(d[Yr]||d[yt]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var x=d.getAttribute(n)||"";x=e+x;var T=o.get(x);T?T.push(d):o.set(x,[d])}}return o}function Qy(e,n,i){e=e.ownerDocument||e,e.head.insertBefore(i,n==="title"?e.querySelector("head > title"):null)}function SA(e,n,i){if(i===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Wy(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Os=null;function wA(){}function TA(e,n,i){if(Os===null)throw Error(s(475));var o=Os;if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var c=fr(i.href),d=e.querySelector(Ms(c));if(d){e=d._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(o.count++,o=Rl.bind(o),e.then(o,o)),n.state.loading|=4,n.instance=d,ot(d);return}d=e.ownerDocument||e,i=Ky(i),(c=en.get(c))&&Bf(i,c),d=d.createElement("link"),ot(d);var x=d;x._p=new Promise(function(T,M){x.onload=T,x.onerror=M}),mt(d,"link",i),n.instance=d}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(o.count++,n=Rl.bind(o),e.addEventListener("load",n),e.addEventListener("error",n))}}function AA(){if(Os===null)throw Error(s(475));var e=Os;return e.stylesheets&&e.count===0&&Pf(e,e.stylesheets),0<e.count?function(n){var i=setTimeout(function(){if(e.stylesheets&&Pf(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i)}}:null}function Rl(){if(this.count--,this.count===0){if(this.stylesheets)Pf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Nl=null;function Pf(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Nl=new Map,n.forEach(EA,e),Nl=null,Rl.call(e))}function EA(e,n){if(!(n.state.loading&4)){var i=Nl.get(e);if(i)var o=i.get(null);else{i=new Map,Nl.set(e,i);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<c.length;d++){var x=c[d];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(i.set(x.dataset.precedence,x),o=x)}o&&i.set(null,o)}c=n.instance,x=c.getAttribute("data-precedence"),d=i.get(x)||o,d===o&&i.set(null,c),i.set(x,c),this.count++,o=Rl.bind(this),c.addEventListener("load",o),c.addEventListener("error",o),d?d.parentNode.insertBefore(c,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),n.state.loading|=4}}var _s={$$typeof:j,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function CA(e,n,i,o,c,d,x,T){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=Vc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vc(0),this.hiddenUpdates=Vc(null),this.identifierPrefix=o,this.onUncaughtError=c,this.onCaughtError=d,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Jy(e,n,i,o,c,d,x,T,M,B,I,K){return e=new CA(e,n,i,x,T,M,B,K),n=1,d===!0&&(n|=24),d=kt(3,null,null,n),e.current=d,d.stateNode=e,n=bu(),n.refCount++,e.pooledCache=n,n.refCount++,d.memoizedState={element:o,isDehydrated:i,cache:n},Au(d),e}function ev(e){return e?(e=qi,e):qi}function tv(e,n,i,o,c,d){c=ev(c),o.context===null?o.context=c:o.pendingContext=c,o=ya(n),o.payload={element:i},d=d===void 0?null:d,d!==null&&(o.callback=d),i=va(e,o,n),i!==null&&(Gt(i,e,n),cs(i,e,n))}function nv(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<n?i:n}}function Hf(e,n){nv(e,n),(e=e.alternate)&&nv(e,n)}function av(e){if(e.tag===13){var n=Gi(e,67108864);n!==null&&Gt(n,e,67108864),Hf(e,67108864)}}var jl=!0;function RA(e,n,i,o){var c=V.T;V.T=null;var d=q.p;try{q.p=2,Gf(e,n,i,o)}finally{q.p=d,V.T=c}}function NA(e,n,i,o){var c=V.T;V.T=null;var d=q.p;try{q.p=8,Gf(e,n,i,o)}finally{q.p=d,V.T=c}}function Gf(e,n,i,o){if(jl){var c=qf(o);if(c===null)jf(e,n,o,Ml,i),rv(e,o);else if(MA(c,e,n,i,o))o.stopPropagation();else if(rv(e,o),n&4&&-1<jA.indexOf(e)){for(;c!==null;){var d=Mi(c);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var x=Qa(d.pendingLanes);if(x!==0){var T=d;for(T.pendingLanes|=2,T.entangledLanes|=2;x;){var M=1<<31-Vt(x);T.entanglements[1]|=M,x&=~M}En(d),(Le&6)===0&&(hl=gt()+500,Cs(0))}}break;case 13:T=Gi(d,2),T!==null&&Gt(T,d,2),pl(),Hf(d,2)}if(d=qf(o),d===null&&jf(e,n,o,Ml,i),d===c)break;c=d}c!==null&&o.stopPropagation()}else jf(e,n,o,null,i)}}function qf(e){return e=Xc(e),Yf(e)}var Ml=null;function Yf(e){if(Ml=null,e=ji(e),e!==null){var n=u(e);if(n===null)e=null;else{var i=n.tag;if(i===13){if(e=f(n),e!==null)return e;e=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Ml=e,null}function iv(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(Lc()){case Za:return 2;case xm:return 8;case wo:case pw:return 32;case bm:return 268435456;default:return 32}default:return 32}}var If=!1,Da=null,Oa=null,_a=null,Ls=new Map,Vs=new Map,La=[],jA="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 rv(e,n){switch(e){case"focusin":case"focusout":Da=null;break;case"dragenter":case"dragleave":Oa=null;break;case"mouseover":case"mouseout":_a=null;break;case"pointerover":case"pointerout":Ls.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vs.delete(n.pointerId)}}function zs(e,n,i,o,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:n,domEventName:i,eventSystemFlags:o,nativeEvent:d,targetContainers:[c]},n!==null&&(n=Mi(n),n!==null&&av(n)),e):(e.eventSystemFlags|=o,n=e.targetContainers,c!==null&&n.indexOf(c)===-1&&n.push(c),e)}function MA(e,n,i,o,c){switch(n){case"focusin":return Da=zs(Da,e,n,i,o,c),!0;case"dragenter":return Oa=zs(Oa,e,n,i,o,c),!0;case"mouseover":return _a=zs(_a,e,n,i,o,c),!0;case"pointerover":var d=c.pointerId;return Ls.set(d,zs(Ls.get(d)||null,e,n,i,o,c)),!0;case"gotpointercapture":return d=c.pointerId,Vs.set(d,zs(Vs.get(d)||null,e,n,i,o,c)),!0}return!1}function sv(e){var n=ji(e.target);if(n!==null){var i=u(n);if(i!==null){if(n=i.tag,n===13){if(n=f(i),n!==null){e.blockedOn=n,Tw(e.priority,function(){if(i.tag===13){var o=Ht();o=zc(o);var c=Gi(i,o);c!==null&&Gt(c,i,o),Hf(i,o)}});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dl(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var i=qf(e.nativeEvent);if(i===null){i=e.nativeEvent;var o=new i.constructor(i.type,i);Fc=o,i.target.dispatchEvent(o),Fc=null}else return n=Mi(i),n!==null&&av(n),e.blockedOn=i,!1;n.shift()}return!0}function ov(e,n,i){Dl(e)&&i.delete(n)}function DA(){If=!1,Da!==null&&Dl(Da)&&(Da=null),Oa!==null&&Dl(Oa)&&(Oa=null),_a!==null&&Dl(_a)&&(_a=null),Ls.forEach(ov),Vs.forEach(ov)}function Ol(e,n){e.blockedOn===n&&(e.blockedOn=null,If||(If=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,DA)))}var _l=null;function lv(e){_l!==e&&(_l=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){_l===e&&(_l=null);for(var n=0;n<e.length;n+=3){var i=e[n],o=e[n+1],c=e[n+2];if(typeof o!="function"){if(Yf(o||i)===null)continue;break}var d=Mi(i);d!==null&&(e.splice(n,3),n-=3,qu(d,{pending:!0,data:c,method:i.method,action:o},o,c))}}))}function ks(e){function n(M){return Ol(M,e)}Da!==null&&Ol(Da,e),Oa!==null&&Ol(Oa,e),_a!==null&&Ol(_a,e),Ls.forEach(n),Vs.forEach(n);for(var i=0;i<La.length;i++){var o=La[i];o.blockedOn===e&&(o.blockedOn=null)}for(;0<La.length&&(i=La[0],i.blockedOn===null);)sv(i),i.blockedOn===null&&La.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(o=0;o<i.length;o+=3){var c=i[o],d=i[o+1],x=c[Rt]||null;if(typeof d=="function")x||lv(i);else if(x){var T=null;if(d&&d.hasAttribute("formAction")){if(c=d,x=d[Rt]||null)T=x.formAction;else if(Yf(c)!==null)continue}else T=x.action;typeof T=="function"?i[o+1]=T:(i.splice(o,3),o-=3),lv(i)}}}function Ff(e){this._internalRoot=e}Ll.prototype.render=Ff.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(s(409));var i=n.current,o=Ht();tv(i,o,e,n,null,null)},Ll.prototype.unmount=Ff.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;tv(e.current,2,null,e,null,null),pl(),n[Ni]=null}};function Ll(e){this._internalRoot=e}Ll.prototype.unstable_scheduleHydration=function(e){if(e){var n=Em();e={blockedOn:null,target:e,priority:n};for(var i=0;i<La.length&&n!==0&&n<La[i].priority;i++);La.splice(i,0,e),i===0&&sv(e)}};var cv=a.version;if(cv!=="19.1.0")throw Error(s(527,cv,"19.1.0"));q.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=p(n),e=e!==null?m(e):null,e=e===null?null:e.stateNode,e};var OA={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vl.isDisabled&&Vl.supportsFiber)try{Hr=Vl.inject(OA),Lt=Vl}catch{}}return Us.createRoot=function(e,n){if(!l(e))throw Error(s(299));var i=!1,o="",c=Eg,d=Cg,x=Rg,T=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(T=n.unstable_transitionCallbacks)),n=Jy(e,1,!1,null,null,i,o,c,d,x,T,null),e[Ni]=n.current,Nf(e),new Ff(n)},Us.hydrateRoot=function(e,n,i){if(!l(e))throw Error(s(299));var o=!1,c="",d=Eg,x=Cg,T=Rg,M=null,B=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(x=i.onCaughtError),i.onRecoverableError!==void 0&&(T=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(M=i.unstable_transitionCallbacks),i.formState!==void 0&&(B=i.formState)),n=Jy(e,1,!0,n,i??null,o,c,d,x,T,M,B),n.context=ev(null),i=n.current,o=Ht(),o=zc(o),c=ya(o),c.callback=null,va(i,c,o),i=o,n.current.lanes=i,qr(n,i),En(n),e[Ni]=n.current,Nf(e),new Ll(n)},Us.version="19.1.0",Us}var xv;function GA(){if(xv)return $f.exports;xv=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),$f.exports=HA(),$f.exports}var qA=GA(),Ps={},bv;function YA(){if(bv)return Ps;bv=1,Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.parse=f,Ps.serialize=m;const t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,a=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,s=/^[\u0020-\u003A\u003D-\u007E]*$/,l=Object.prototype.toString,u=(()=>{const b=function(){};return b.prototype=Object.create(null),b})();function f(b,A){const E=new u,w=b.length;if(w<2)return E;const C=(A==null?void 0:A.decode)||y;let R=0;do{const N=b.indexOf("=",R);if(N===-1)break;const j=b.indexOf(";",R),k=j===-1?w:j;if(N>k){R=b.lastIndexOf(";",N-1)+1;continue}const _=h(b,R,N),$=p(b,N,_),Y=b.slice(_,$);if(E[Y]===void 0){let U=h(b,N+1,k),Q=p(b,k,U);const te=C(b.slice(U,Q));E[Y]=te}R=k+1}while(R<w);return E}function h(b,A,E){do{const w=b.charCodeAt(A);if(w!==32&&w!==9)return A}while(++A<E);return E}function p(b,A,E){for(;A>E;){const w=b.charCodeAt(--A);if(w!==32&&w!==9)return A+1}return E}function m(b,A,E){const w=(E==null?void 0:E.encode)||encodeURIComponent;if(!t.test(b))throw new TypeError(`argument name is invalid: ${b}`);const C=w(A);if(!a.test(C))throw new TypeError(`argument val is invalid: ${A}`);let R=b+"="+C;if(!E)return R;if(E.maxAge!==void 0){if(!Number.isInteger(E.maxAge))throw new TypeError(`option maxAge is invalid: ${E.maxAge}`);R+="; Max-Age="+E.maxAge}if(E.domain){if(!r.test(E.domain))throw new TypeError(`option domain is invalid: ${E.domain}`);R+="; Domain="+E.domain}if(E.path){if(!s.test(E.path))throw new TypeError(`option path is invalid: ${E.path}`);R+="; Path="+E.path}if(E.expires){if(!v(E.expires)||!Number.isFinite(E.expires.valueOf()))throw new TypeError(`option expires is invalid: ${E.expires}`);R+="; Expires="+E.expires.toUTCString()}if(E.httpOnly&&(R+="; HttpOnly"),E.secure&&(R+="; Secure"),E.partitioned&&(R+="; Partitioned"),E.priority)switch(typeof E.priority=="string"?E.priority.toLowerCase():void 0){case"low":R+="; Priority=Low";break;case"medium":R+="; Priority=Medium";break;case"high":R+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${E.priority}`)}if(E.sameSite)switch(typeof E.sameSite=="string"?E.sameSite.toLowerCase():E.sameSite){case!0:case"strict":R+="; SameSite=Strict";break;case"lax":R+="; SameSite=Lax";break;case"none":R+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${E.sameSite}`)}return R}function y(b){if(b.indexOf("%")===-1)return b;try{return decodeURIComponent(b)}catch{return b}}function v(b){return l.call(b)==="[object Date]"}return Ps}YA();var Sv="popstate";function IA(t={}){function a(s,l){let{pathname:u,search:f,hash:h}=s.location;return Rd("",{pathname:u,search:f,hash:h},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function r(s,l){return typeof l=="string"?l:Js(l)}return XA(a,r,null,t)}function Ie(t,a){if(t===!1||t===null||typeof t>"u")throw new Error(a)}function gn(t,a){if(!t){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function FA(){return Math.random().toString(36).substring(2,10)}function wv(t,a){return{usr:t.state,key:t.key,idx:a}}function Rd(t,a,r=null,s){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof a=="string"?jr(a):a,state:r,key:a&&a.key||s||FA()}}function Js({pathname:t="/",search:a="",hash:r=""}){return a&&a!=="?"&&(t+=a.charAt(0)==="?"?a:"?"+a),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function jr(t){let a={};if(t){let r=t.indexOf("#");r>=0&&(a.hash=t.substring(r),t=t.substring(0,r));let s=t.indexOf("?");s>=0&&(a.search=t.substring(s),t=t.substring(0,s)),t&&(a.pathname=t)}return a}function XA(t,a,r,s={}){let{window:l=document.defaultView,v5Compat:u=!1}=s,f=l.history,h="POP",p=null,m=y();m==null&&(m=0,f.replaceState({...f.state,idx:m},""));function y(){return(f.state||{idx:null}).idx}function v(){h="POP";let C=y(),R=C==null?null:C-m;m=C,p&&p({action:h,location:w.location,delta:R})}function b(C,R){h="PUSH";let N=Rd(w.location,C,R);m=y()+1;let j=wv(N,m),k=w.createHref(N);try{f.pushState(j,"",k)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;l.location.assign(k)}u&&p&&p({action:h,location:w.location,delta:1})}function A(C,R){h="REPLACE";let N=Rd(w.location,C,R);m=y();let j=wv(N,m),k=w.createHref(N);f.replaceState(j,"",k),u&&p&&p({action:h,location:w.location,delta:0})}function E(C){return KA(C)}let w={get action(){return h},get location(){return t(l,f)},listen(C){if(p)throw new Error("A history only accepts one active listener");return l.addEventListener(Sv,v),p=C,()=>{l.removeEventListener(Sv,v),p=null}},createHref(C){return a(l,C)},createURL:E,encodeLocation(C){let R=E(C);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:b,replace:A,go(C){return f.go(C)}};return w}function KA(t,a=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Ie(r,"No window.location.(origin|href) available to create URL");let s=typeof t=="string"?t:Js(t);return s=s.replace(/ $/,"%20"),!a&&s.startsWith("//")&&(s=r+s),new URL(s,r)}function bx(t,a,r="/"){return $A(t,a,r,!1)}function $A(t,a,r,s){let l=typeof a=="string"?jr(a):a,u=sa(l.pathname||"/",r);if(u==null)return null;let f=Sx(t);ZA(f);let h=null;for(let p=0;h==null&&p<f.length;++p){let m=oE(u);h=rE(f[p],m,s)}return h}function Sx(t,a=[],r=[],s=""){let l=(u,f,h)=>{let p={relativePath:h===void 0?u.path||"":h,caseSensitive:u.caseSensitive===!0,childrenIndex:f,route:u};p.relativePath.startsWith("/")&&(Ie(p.relativePath.startsWith(s),`Absolute route path "${p.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(s.length));let m=ia([s,p.relativePath]),y=r.concat(p);u.children&&u.children.length>0&&(Ie(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),Sx(u.children,a,y,m)),!(u.path==null&&!u.index)&&a.push({path:m,score:aE(m,u.index),routesMeta:y})};return t.forEach((u,f)=>{var h;if(u.path===""||!((h=u.path)!=null&&h.includes("?")))l(u,f);else for(let p of wx(u.path))l(u,f,p)}),a}function wx(t){let a=t.split("/");if(a.length===0)return[];let[r,...s]=a,l=r.endsWith("?"),u=r.replace(/\?$/,"");if(s.length===0)return l?[u,""]:[u];let f=wx(s.join("/")),h=[];return h.push(...f.map(p=>p===""?u:[u,p].join("/"))),l&&h.push(...f),h.map(p=>t.startsWith("/")&&p===""?"/":p)}function ZA(t){t.sort((a,r)=>a.score!==r.score?r.score-a.score:iE(a.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var QA=/^:[\w-]+$/,WA=3,JA=2,eE=1,tE=10,nE=-2,Tv=t=>t==="*";function aE(t,a){let r=t.split("/"),s=r.length;return r.some(Tv)&&(s+=nE),a&&(s+=JA),r.filter(l=>!Tv(l)).reduce((l,u)=>l+(QA.test(u)?WA:u===""?eE:tE),s)}function iE(t,a){return t.length===a.length&&t.slice(0,-1).every((s,l)=>s===a[l])?t[t.length-1]-a[a.length-1]:0}function rE(t,a,r=!1){let{routesMeta:s}=t,l={},u="/",f=[];for(let h=0;h<s.length;++h){let p=s[h],m=h===s.length-1,y=u==="/"?a:a.slice(u.length)||"/",v=sc({path:p.relativePath,caseSensitive:p.caseSensitive,end:m},y),b=p.route;if(!v&&m&&r&&!s[s.length-1].route.index&&(v=sc({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!v)return null;Object.assign(l,v.params),f.push({params:l,pathname:ia([u,v.pathname]),pathnameBase:fE(ia([u,v.pathnameBase])),route:b}),v.pathnameBase!=="/"&&(u=ia([u,v.pathnameBase]))}return f}function sc(t,a){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,s]=sE(t.path,t.caseSensitive,t.end),l=a.match(r);if(!l)return null;let u=l[0],f=u.replace(/(.)\/+$/,"$1"),h=l.slice(1);return{params:s.reduce((m,{paramName:y,isOptional:v},b)=>{if(y==="*"){let E=h[b]||"";f=u.slice(0,u.length-E.length).replace(/(.)\/+$/,"$1")}const A=h[b];return v&&!A?m[y]=void 0:m[y]=(A||"").replace(/%2F/g,"/"),m},{}),pathname:u,pathnameBase:f,pattern:t}}function sE(t,a=!1,r=!0){gn(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let s=[],l="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,h,p)=>(s.push({paramName:h,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(s.push({paramName:"*"}),l+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?l+="\\/*$":t!==""&&t!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,a?void 0:"i"),s]}function oE(t){try{return t.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return gn(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),t}}function sa(t,a){if(a==="/")return t;if(!t.toLowerCase().startsWith(a.toLowerCase()))return null;let r=a.endsWith("/")?a.length-1:a.length,s=t.charAt(r);return s&&s!=="/"?null:t.slice(r)||"/"}function lE(t,a="/"){let{pathname:r,search:s="",hash:l=""}=typeof t=="string"?jr(t):t;return{pathname:r?r.startsWith("/")?r:cE(r,a):a,search:dE(s),hash:hE(l)}}function cE(t,a){let r=a.replace(/\/+$/,"").split("/");return t.split("/").forEach(l=>{l===".."?r.length>1&&r.pop():l!=="."&&r.push(l)}),r.length>1?r.join("/"):"/"}function Jf(t,a,r,s){return`Cannot include a '${t}' character in a manually specified \`to.${a}\` field [${JSON.stringify(s)}].  Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function uE(t){return t.filter((a,r)=>r===0||a.route.path&&a.route.path.length>0)}function uh(t){let a=uE(t);return a.map((r,s)=>s===a.length-1?r.pathname:r.pathnameBase)}function fh(t,a,r,s=!1){let l;typeof t=="string"?l=jr(t):(l={...t},Ie(!l.pathname||!l.pathname.includes("?"),Jf("?","pathname","search",l)),Ie(!l.pathname||!l.pathname.includes("#"),Jf("#","pathname","hash",l)),Ie(!l.search||!l.search.includes("#"),Jf("#","search","hash",l)));let u=t===""||l.pathname==="",f=u?"/":l.pathname,h;if(f==null)h=r;else{let v=a.length-1;if(!s&&f.startsWith("..")){let b=f.split("/");for(;b[0]==="..";)b.shift(),v-=1;l.pathname=b.join("/")}h=v>=0?a[v]:"/"}let p=lE(l,h),m=f&&f!=="/"&&f.endsWith("/"),y=(u||f===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(m||y)&&(p.pathname+="/"),p}var ia=t=>t.join("/").replace(/\/\/+/g,"/"),fE=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),dE=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,hE=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function mE(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}var Tx=["POST","PUT","PATCH","DELETE"];new Set(Tx);var pE=["GET",...Tx];new Set(pE);var Mr=S.createContext(null);Mr.displayName="DataRouter";var vc=S.createContext(null);vc.displayName="DataRouterState";var Ax=S.createContext({isTransitioning:!1});Ax.displayName="ViewTransition";var gE=S.createContext(new Map);gE.displayName="Fetchers";var yE=S.createContext(null);yE.displayName="Await";var xn=S.createContext(null);xn.displayName="Navigation";var fo=S.createContext(null);fo.displayName="Location";var Bn=S.createContext({outlet:null,matches:[],isDataRoute:!1});Bn.displayName="Route";var dh=S.createContext(null);dh.displayName="RouteError";function vE(t,{relative:a}={}){Ie(Dr(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=S.useContext(xn),{hash:l,pathname:u,search:f}=ho(t,{relative:a}),h=u;return r!=="/"&&(h=u==="/"?r:ia([r,u])),s.createHref({pathname:h,search:f,hash:l})}function Dr(){return S.useContext(fo)!=null}function fa(){return Ie(Dr(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(fo).location}var Ex="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Cx(t){S.useContext(xn).static||S.useLayoutEffect(t)}function Rx(){let{isDataRoute:t}=S.useContext(Bn);return t?DE():xE()}function xE(){Ie(Dr(),"useNavigate() may be used only in the context of a <Router> component.");let t=S.useContext(Mr),{basename:a,navigator:r}=S.useContext(xn),{matches:s}=S.useContext(Bn),{pathname:l}=fa(),u=JSON.stringify(uh(s)),f=S.useRef(!1);return Cx(()=>{f.current=!0}),S.useCallback((p,m={})=>{if(gn(f.current,Ex),!f.current)return;if(typeof p=="number"){r.go(p);return}let y=fh(p,JSON.parse(u),l,m.relative==="path");t==null&&a!=="/"&&(y.pathname=y.pathname==="/"?a:ia([a,y.pathname])),(m.replace?r.replace:r.push)(y,m.state,m)},[a,r,u,l,t])}S.createContext(null);function ho(t,{relative:a}={}){let{matches:r}=S.useContext(Bn),{pathname:s}=fa(),l=JSON.stringify(uh(r));return S.useMemo(()=>fh(t,JSON.parse(l),s,a==="path"),[t,l,s,a])}function bE(t,a){return Nx(t,a)}function Nx(t,a,r,s){var R;Ie(Dr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=S.useContext(xn),{matches:u}=S.useContext(Bn),f=u[u.length-1],h=f?f.params:{},p=f?f.pathname:"/",m=f?f.pathnameBase:"/",y=f&&f.route;{let N=y&&y.path||"";jx(p,!y||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${N}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let v=fa(),b;if(a){let N=typeof a=="string"?jr(a):a;Ie(m==="/"||((R=N.pathname)==null?void 0:R.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${N.pathname}" was given in the \`location\` prop.`),b=N}else b=v;let A=b.pathname||"/",E=A;if(m!=="/"){let N=m.replace(/^\//,"").split("/");E="/"+A.replace(/^\//,"").split("/").slice(N.length).join("/")}let w=bx(t,{pathname:E});gn(y||w!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),gn(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=EE(w&&w.map(N=>Object.assign({},N,{params:Object.assign({},h,N.params),pathname:ia([m,l.encodeLocation?l.encodeLocation(N.pathname).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?m:ia([m,l.encodeLocation?l.encodeLocation(N.pathnameBase).pathname:N.pathnameBase])})),u,r,s);return a&&C?S.createElement(fo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},C):C}function SE(){let t=ME(),a=mE(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,s="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:s},u={padding:"2px 4px",backgroundColor:s},f=null;return console.error("Error handled by React Router default ErrorBoundary:",t),f=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:u},"ErrorBoundary")," or"," ",S.createElement("code",{style:u},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},a),r?S.createElement("pre",{style:l},r):null,f)}var wE=S.createElement(SE,null),TE=class extends S.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,a){return a.location!==t.location||a.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:a.error,location:a.location,revalidation:t.revalidation||a.revalidation}}componentDidCatch(t,a){console.error("React Router caught the following error during render",t,a)}render(){return this.state.error!==void 0?S.createElement(Bn.Provider,{value:this.props.routeContext},S.createElement(dh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function AE({routeContext:t,match:a,children:r}){let s=S.useContext(Mr);return s&&s.static&&s.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=a.route.id),S.createElement(Bn.Provider,{value:t},r)}function EE(t,a=[],r=null,s=null){if(t==null){if(!r)return null;if(r.errors)t=r.matches;else if(a.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let l=t,u=r==null?void 0:r.errors;if(u!=null){let p=l.findIndex(m=>m.route.id&&(u==null?void 0:u[m.route.id])!==void 0);Ie(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),l=l.slice(0,Math.min(l.length,p+1))}let f=!1,h=-1;if(r)for(let p=0;p<l.length;p++){let m=l[p];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(h=p),m.route.id){let{loaderData:y,errors:v}=r,b=m.route.loader&&!y.hasOwnProperty(m.route.id)&&(!v||v[m.route.id]===void 0);if(m.route.lazy||b){f=!0,h>=0?l=l.slice(0,h+1):l=[l[0]];break}}}return l.reduceRight((p,m,y)=>{let v,b=!1,A=null,E=null;r&&(v=u&&m.route.id?u[m.route.id]:void 0,A=m.route.errorElement||wE,f&&(h<0&&y===0?(jx("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,E=null):h===y&&(b=!0,E=m.route.hydrateFallbackElement||null)));let w=a.concat(l.slice(0,y+1)),C=()=>{let R;return v?R=A:b?R=E:m.route.Component?R=S.createElement(m.route.Component,null):m.route.element?R=m.route.element:R=p,S.createElement(AE,{match:m,routeContext:{outlet:p,matches:w,isDataRoute:r!=null},children:R})};return r&&(m.route.ErrorBoundary||m.route.errorElement||y===0)?S.createElement(TE,{location:r.location,revalidation:r.revalidation,component:A,error:v,children:C(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):C()},null)}function hh(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function CE(t){let a=S.useContext(Mr);return Ie(a,hh(t)),a}function RE(t){let a=S.useContext(vc);return Ie(a,hh(t)),a}function NE(t){let a=S.useContext(Bn);return Ie(a,hh(t)),a}function mh(t){let a=NE(t),r=a.matches[a.matches.length-1];return Ie(r.route.id,`${t} can only be used on routes that contain a unique "id"`),r.route.id}function jE(){return mh("useRouteId")}function ME(){var s;let t=S.useContext(dh),a=RE("useRouteError"),r=mh("useRouteError");return t!==void 0?t:(s=a.errors)==null?void 0:s[r]}function DE(){let{router:t}=CE("useNavigate"),a=mh("useNavigate"),r=S.useRef(!1);return Cx(()=>{r.current=!0}),S.useCallback(async(l,u={})=>{gn(r.current,Ex),r.current&&(typeof l=="number"?t.navigate(l):await t.navigate(l,{fromRouteId:a,...u}))},[t,a])}var Av={};function jx(t,a,r){!a&&!Av[t]&&(Av[t]=!0,gn(!1,r))}S.memo(OE);function OE({routes:t,future:a,state:r}){return Nx(t,void 0,r,a)}function _E({to:t,replace:a,state:r,relative:s}){Ie(Dr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:l}=S.useContext(xn);gn(!l,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:u}=S.useContext(Bn),{pathname:f}=fa(),h=Rx(),p=fh(t,uh(u),f,s==="path"),m=JSON.stringify(p);return S.useEffect(()=>{h(JSON.parse(m),{replace:a,state:r,relative:s})},[h,m,s,a,r]),null}function yi(t){Ie(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function LE({basename:t="/",children:a=null,location:r,navigationType:s="POP",navigator:l,static:u=!1}){Ie(!Dr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=t.replace(/^\/*/,"/"),h=S.useMemo(()=>({basename:f,navigator:l,static:u,future:{}}),[f,l,u]);typeof r=="string"&&(r=jr(r));let{pathname:p="/",search:m="",hash:y="",state:v=null,key:b="default"}=r,A=S.useMemo(()=>{let E=sa(p,f);return E==null?null:{location:{pathname:E,search:m,hash:y,state:v,key:b},navigationType:s}},[f,p,m,y,v,b,s]);return gn(A!=null,`<Router basename="${f}"> is not able to match the URL "${p}${m}${y}" because it does not start with the basename, so the <Router> won't render anything.`),A==null?null:S.createElement(xn.Provider,{value:h},S.createElement(fo.Provider,{children:a,value:A}))}function VE({children:t,location:a}){return bE(Nd(t),a)}function Nd(t,a=[]){let r=[];return S.Children.forEach(t,(s,l)=>{if(!S.isValidElement(s))return;let u=[...a,l];if(s.type===S.Fragment){r.push.apply(r,Nd(s.props.children,u));return}Ie(s.type===yi,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ie(!s.props.index||!s.props.children,"An index route cannot have child routes.");let f={id:s.props.id||u.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(f.children=Nd(s.props.children,u)),r.push(f)}),r}var Zl="get",Ql="application/x-www-form-urlencoded";function xc(t){return t!=null&&typeof t.tagName=="string"}function zE(t){return xc(t)&&t.tagName.toLowerCase()==="button"}function kE(t){return xc(t)&&t.tagName.toLowerCase()==="form"}function BE(t){return xc(t)&&t.tagName.toLowerCase()==="input"}function UE(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function PE(t,a){return t.button===0&&(!a||a==="_self")&&!UE(t)}var zl=null;function HE(){if(zl===null)try{new FormData(document.createElement("form"),0),zl=!1}catch{zl=!0}return zl}var GE=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ed(t){return t!=null&&!GE.has(t)?(gn(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ql}"`),null):t}function qE(t,a){let r,s,l,u,f;if(kE(t)){let h=t.getAttribute("action");s=h?sa(h,a):null,r=t.getAttribute("method")||Zl,l=ed(t.getAttribute("enctype"))||Ql,u=new FormData(t)}else if(zE(t)||BE(t)&&(t.type==="submit"||t.type==="image")){let h=t.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=t.getAttribute("formaction")||h.getAttribute("action");if(s=p?sa(p,a):null,r=t.getAttribute("formmethod")||h.getAttribute("method")||Zl,l=ed(t.getAttribute("formenctype"))||ed(h.getAttribute("enctype"))||Ql,u=new FormData(h,t),!HE()){let{name:m,type:y,value:v}=t;if(y==="image"){let b=m?`${m}.`:"";u.append(`${b}x`,"0"),u.append(`${b}y`,"0")}else m&&u.append(m,v)}}else{if(xc(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Zl,s=null,l=Ql,f=t}return u&&l==="text/plain"&&(f=u,u=void 0),{action:s,method:r.toLowerCase(),encType:l,formData:u,body:f}}function ph(t,a){if(t===!1||t===null||typeof t>"u")throw new Error(a)}async function YE(t,a){if(t.id in a)return a[t.id];try{let r=await import(t.module);return a[t.id]=r,r}catch(r){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function IE(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function FE(t,a,r){let s=await Promise.all(t.map(async l=>{let u=a.routes[l.route.id];if(u){let f=await YE(u,r);return f.links?f.links():[]}return[]}));return ZE(s.flat(1).filter(IE).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function Ev(t,a,r,s,l,u){let f=(p,m)=>r[m]?p.route.id!==r[m].route.id:!0,h=(p,m)=>{var y;return r[m].pathname!==p.pathname||((y=r[m].route.path)==null?void 0:y.endsWith("*"))&&r[m].params["*"]!==p.params["*"]};return u==="assets"?a.filter((p,m)=>f(p,m)||h(p,m)):u==="data"?a.filter((p,m)=>{var v;let y=s.routes[p.route.id];if(!y||!y.hasLoader)return!1;if(f(p,m)||h(p,m))return!0;if(p.route.shouldRevalidate){let b=p.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:((v=r[0])==null?void 0:v.params)||{},nextUrl:new URL(t,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function XE(t,a,{includeHydrateFallback:r}={}){return KE(t.map(s=>{let l=a.routes[s.route.id];if(!l)return[];let u=[l.module];return l.clientActionModule&&(u=u.concat(l.clientActionModule)),l.clientLoaderModule&&(u=u.concat(l.clientLoaderModule)),r&&l.hydrateFallbackModule&&(u=u.concat(l.hydrateFallbackModule)),l.imports&&(u=u.concat(l.imports)),u}).flat(1))}function KE(t){return[...new Set(t)]}function $E(t){let a={},r=Object.keys(t).sort();for(let s of r)a[s]=t[s];return a}function ZE(t,a){let r=new Set;return new Set(a),t.reduce((s,l)=>{let u=JSON.stringify($E(l));return r.has(u)||(r.add(u),s.push({key:u,link:l})),s},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var QE=new Set([100,101,204,205]);function WE(t,a){let r=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return r.pathname==="/"?r.pathname="_root.data":a&&sa(r.pathname,a)==="/"?r.pathname=`${a.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Mx(){let t=S.useContext(Mr);return ph(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function JE(){let t=S.useContext(vc);return ph(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var gh=S.createContext(void 0);gh.displayName="FrameworkContext";function Dx(){let t=S.useContext(gh);return ph(t,"You must render this element inside a <HydratedRouter> element"),t}function eC(t,a){let r=S.useContext(gh),[s,l]=S.useState(!1),[u,f]=S.useState(!1),{onFocus:h,onBlur:p,onMouseEnter:m,onMouseLeave:y,onTouchStart:v}=a,b=S.useRef(null);S.useEffect(()=>{if(t==="render"&&f(!0),t==="viewport"){let w=R=>{R.forEach(N=>{f(N.isIntersecting)})},C=new IntersectionObserver(w,{threshold:.5});return b.current&&C.observe(b.current),()=>{C.disconnect()}}},[t]),S.useEffect(()=>{if(s){let w=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(w)}}},[s]);let A=()=>{l(!0)},E=()=>{l(!1),f(!1)};return r?t!=="intent"?[u,b,{}]:[u,b,{onFocus:Hs(h,A),onBlur:Hs(p,E),onMouseEnter:Hs(m,A),onMouseLeave:Hs(y,E),onTouchStart:Hs(v,A)}]:[!1,b,{}]}function Hs(t,a){return r=>{t&&t(r),r.defaultPrevented||a(r)}}function tC({page:t,...a}){let{router:r}=Mx(),s=S.useMemo(()=>bx(r.routes,t,r.basename),[r.routes,t,r.basename]);return s?S.createElement(aC,{page:t,matches:s,...a}):null}function nC(t){let{manifest:a,routeModules:r}=Dx(),[s,l]=S.useState([]);return S.useEffect(()=>{let u=!1;return FE(t,a,r).then(f=>{u||l(f)}),()=>{u=!0}},[t,a,r]),s}function aC({page:t,matches:a,...r}){let s=fa(),{manifest:l,routeModules:u}=Dx(),{basename:f}=Mx(),{loaderData:h,matches:p}=JE(),m=S.useMemo(()=>Ev(t,a,p,l,s,"data"),[t,a,p,l,s]),y=S.useMemo(()=>Ev(t,a,p,l,s,"assets"),[t,a,p,l,s]),v=S.useMemo(()=>{if(t===s.pathname+s.search+s.hash)return[];let E=new Set,w=!1;if(a.forEach(R=>{var j;let N=l.routes[R.route.id];!N||!N.hasLoader||(!m.some(k=>k.route.id===R.route.id)&&R.route.id in h&&((j=u[R.route.id])!=null&&j.shouldRevalidate)||N.hasClientLoader?w=!0:E.add(R.route.id))}),E.size===0)return[];let C=WE(t,f);return w&&E.size>0&&C.searchParams.set("_routes",a.filter(R=>E.has(R.route.id)).map(R=>R.route.id).join(",")),[C.pathname+C.search]},[f,h,s,l,m,a,t,u]),b=S.useMemo(()=>XE(y,l),[y,l]),A=nC(y);return S.createElement(S.Fragment,null,v.map(E=>S.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),b.map(E=>S.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),A.map(({key:E,link:w})=>S.createElement("link",{key:E,...w})))}function iC(...t){return a=>{t.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a)})}}var Ox=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Ox&&(window.__reactRouterVersion="7.6.2")}catch{}function rC({basename:t,children:a,window:r}){let s=S.useRef();s.current==null&&(s.current=IA({window:r,v5Compat:!0}));let l=s.current,[u,f]=S.useState({action:l.action,location:l.location}),h=S.useCallback(p=>{S.startTransition(()=>f(p))},[f]);return S.useLayoutEffect(()=>l.listen(h),[l,h]),S.createElement(LE,{basename:t,children:a,location:u.location,navigationType:u.action,navigator:l})}var _x=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,an=S.forwardRef(function({onClick:a,discover:r="render",prefetch:s="none",relative:l,reloadDocument:u,replace:f,state:h,target:p,to:m,preventScrollReset:y,viewTransition:v,...b},A){let{basename:E}=S.useContext(xn),w=typeof m=="string"&&_x.test(m),C,R=!1;if(typeof m=="string"&&w&&(C=m,Ox))try{let Q=new URL(window.location.href),te=m.startsWith("//")?new URL(Q.protocol+m):new URL(m),ce=sa(te.pathname,E);te.origin===Q.origin&&ce!=null?m=ce+te.search+te.hash:R=!0}catch{gn(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let N=vE(m,{relative:l}),[j,k,_]=eC(s,b),$=cC(m,{replace:f,state:h,target:p,preventScrollReset:y,relative:l,viewTransition:v});function Y(Q){a&&a(Q),Q.defaultPrevented||$(Q)}let U=S.createElement("a",{...b,..._,href:C||N,onClick:R||u?a:Y,ref:iC(A,k),target:p,"data-discover":!w&&r==="render"?"true":void 0});return j&&!w?S.createElement(S.Fragment,null,U,S.createElement(tC,{page:N})):U});an.displayName="Link";var sC=S.forwardRef(function({"aria-current":a="page",caseSensitive:r=!1,className:s="",end:l=!1,style:u,to:f,viewTransition:h,children:p,...m},y){let v=ho(f,{relative:m.relative}),b=fa(),A=S.useContext(vc),{navigator:E,basename:w}=S.useContext(xn),C=A!=null&&mC(v)&&h===!0,R=E.encodeLocation?E.encodeLocation(v).pathname:v.pathname,N=b.pathname,j=A&&A.navigation&&A.navigation.location?A.navigation.location.pathname:null;r||(N=N.toLowerCase(),j=j?j.toLowerCase():null,R=R.toLowerCase()),j&&w&&(j=sa(j,w)||j);const k=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let _=N===R||!l&&N.startsWith(R)&&N.charAt(k)==="/",$=j!=null&&(j===R||!l&&j.startsWith(R)&&j.charAt(R.length)==="/"),Y={isActive:_,isPending:$,isTransitioning:C},U=_?a:void 0,Q;typeof s=="function"?Q=s(Y):Q=[s,_?"active":null,$?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let te=typeof u=="function"?u(Y):u;return S.createElement(an,{...m,"aria-current":U,className:Q,ref:y,style:te,to:f,viewTransition:h},typeof p=="function"?p(Y):p)});sC.displayName="NavLink";var oC=S.forwardRef(({discover:t="render",fetcherKey:a,navigate:r,reloadDocument:s,replace:l,state:u,method:f=Zl,action:h,onSubmit:p,relative:m,preventScrollReset:y,viewTransition:v,...b},A)=>{let E=dC(),w=hC(h,{relative:m}),C=f.toLowerCase()==="get"?"get":"post",R=typeof h=="string"&&_x.test(h),N=j=>{if(p&&p(j),j.defaultPrevented)return;j.preventDefault();let k=j.nativeEvent.submitter,_=(k==null?void 0:k.getAttribute("formmethod"))||f;E(k||j.currentTarget,{fetcherKey:a,method:_,navigate:r,replace:l,state:u,relative:m,preventScrollReset:y,viewTransition:v})};return S.createElement("form",{ref:A,method:C,action:w,onSubmit:s?p:N,...b,"data-discover":!R&&t==="render"?"true":void 0})});oC.displayName="Form";function lC(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Lx(t){let a=S.useContext(Mr);return Ie(a,lC(t)),a}function cC(t,{target:a,replace:r,state:s,preventScrollReset:l,relative:u,viewTransition:f}={}){let h=Rx(),p=fa(),m=ho(t,{relative:u});return S.useCallback(y=>{if(PE(y,a)){y.preventDefault();let v=r!==void 0?r:Js(p)===Js(m);h(t,{replace:v,state:s,preventScrollReset:l,relative:u,viewTransition:f})}},[p,h,m,r,s,a,t,l,u,f])}var uC=0,fC=()=>`__${String(++uC)}__`;function dC(){let{router:t}=Lx("useSubmit"),{basename:a}=S.useContext(xn),r=jE();return S.useCallback(async(s,l={})=>{let{action:u,method:f,encType:h,formData:p,body:m}=qE(s,a);if(l.navigate===!1){let y=l.fetcherKey||fC();await t.fetch(y,r,l.action||u,{preventScrollReset:l.preventScrollReset,formData:p,body:m,formMethod:l.method||f,formEncType:l.encType||h,flushSync:l.flushSync})}else await t.navigate(l.action||u,{preventScrollReset:l.preventScrollReset,formData:p,body:m,formMethod:l.method||f,formEncType:l.encType||h,replace:l.replace,state:l.state,fromRouteId:r,flushSync:l.flushSync,viewTransition:l.viewTransition})},[t,a,r])}function hC(t,{relative:a}={}){let{basename:r}=S.useContext(xn),s=S.useContext(Bn);Ie(s,"useFormAction must be used inside a RouteContext");let[l]=s.matches.slice(-1),u={...ho(t||".",{relative:a})},f=fa();if(t==null){u.search=f.search;let h=new URLSearchParams(u.search),p=h.getAll("index");if(p.some(y=>y==="")){h.delete("index"),p.filter(v=>v).forEach(v=>h.append("index",v));let y=h.toString();u.search=y?`?${y}`:""}}return(!t||t===".")&&l.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(u.pathname=u.pathname==="/"?r:ia([r,u.pathname])),Js(u)}function mC(t,a={}){let r=S.useContext(Ax);Ie(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Lx("useViewTransitionState"),l=ho(t,{relative:a.relative});if(!r.isTransitioning)return!1;let u=sa(r.currentLocation.pathname,s)||r.currentLocation.pathname,f=sa(r.nextLocation.pathname,s)||r.nextLocation.pathname;return sc(l.pathname,f)!=null||sc(l.pathname,u)!=null}[...QE];var mo=xx();const pC=yx(mo),Vx=S.createContext({});function gC(t){const a=S.useRef(null);return a.current===null&&(a.current=t()),a.current}const yh=typeof window<"u",yC=yh?S.useLayoutEffect:S.useEffect,vh=S.createContext(null);function xh(t,a){t.indexOf(a)===-1&&t.push(a)}function bh(t,a){const r=t.indexOf(a);r>-1&&t.splice(r,1)}const oa=(t,a,r)=>r>a?a:r<t?t:r;let Sh=()=>{};const la={},zx=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function kx(t){return typeof t=="object"&&t!==null}const Bx=t=>/^0[^.\s]+$/u.test(t);function wh(t){let a;return()=>(a===void 0&&(a=t()),a)}const rn=t=>t,vC=(t,a)=>r=>a(t(r)),po=(...t)=>t.reduce(vC),eo=(t,a,r)=>{const s=a-t;return s===0?1:(r-t)/s};class Th{constructor(){this.subscriptions=[]}add(a){return xh(this.subscriptions,a),()=>bh(this.subscriptions,a)}notify(a,r,s){const l=this.subscriptions.length;if(l)if(l===1)this.subscriptions[0](a,r,s);else for(let u=0;u<l;u++){const f=this.subscriptions[u];f&&f(a,r,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const On=t=>t*1e3,_n=t=>t/1e3;function Ux(t,a){return a?t*(1e3/a):0}const Px=(t,a,r)=>(((1-3*r+3*a)*t+(3*r-6*a))*t+3*a)*t,xC=1e-7,bC=12;function SC(t,a,r,s,l){let u,f,h=0;do f=a+(r-a)/2,u=Px(f,s,l)-t,u>0?r=f:a=f;while(Math.abs(u)>xC&&++h<bC);return f}function go(t,a,r,s){if(t===a&&r===s)return rn;const l=u=>SC(u,0,1,t,r);return u=>u===0||u===1?u:Px(l(u),a,s)}const Hx=t=>a=>a<=.5?t(2*a)/2:(2-t(2*(1-a)))/2,Gx=t=>a=>1-t(1-a),qx=go(.33,1.53,.69,.99),Ah=Gx(qx),Yx=Hx(Ah),Ix=t=>(t*=2)<1?.5*Ah(t):.5*(2-Math.pow(2,-10*(t-1))),Eh=t=>1-Math.sin(Math.acos(t)),Fx=Gx(Eh),Xx=Hx(Eh),wC=go(.42,0,1,1),TC=go(0,0,.58,1),Kx=go(.42,0,.58,1),AC=t=>Array.isArray(t)&&typeof t[0]!="number",$x=t=>Array.isArray(t)&&typeof t[0]=="number",EC={linear:rn,easeIn:wC,easeInOut:Kx,easeOut:TC,circIn:Eh,circInOut:Xx,circOut:Fx,backIn:Ah,backInOut:Yx,backOut:qx,anticipate:Ix},CC=t=>typeof t=="string",Cv=t=>{if($x(t)){Sh(t.length===4);const[a,r,s,l]=t;return go(a,r,s,l)}else if(CC(t))return EC[t];return t},kl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Rv={value:null};function RC(t,a){let r=new Set,s=new Set,l=!1,u=!1;const f=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1},p=0;function m(v){f.has(v)&&(y.schedule(v),t()),p++,v(h)}const y={schedule:(v,b=!1,A=!1)=>{const w=A&&l?r:s;return b&&f.add(v),w.has(v)||w.add(v),v},cancel:v=>{s.delete(v),f.delete(v)},process:v=>{if(h=v,l){u=!0;return}l=!0,[r,s]=[s,r],r.forEach(m),a&&Rv.value&&Rv.value.frameloop[a].push(p),p=0,r.clear(),l=!1,u&&(u=!1,y.process(v))}};return y}const NC=40;function Zx(t,a){let r=!1,s=!0;const l={delta:0,timestamp:0,isProcessing:!1},u=()=>r=!0,f=kl.reduce((j,k)=>(j[k]=RC(u,a?k:void 0),j),{}),{setup:h,read:p,resolveKeyframes:m,preUpdate:y,update:v,preRender:b,render:A,postRender:E}=f,w=()=>{const j=la.useManualTiming?l.timestamp:performance.now();r=!1,la.useManualTiming||(l.delta=s?1e3/60:Math.max(Math.min(j-l.timestamp,NC),1)),l.timestamp=j,l.isProcessing=!0,h.process(l),p.process(l),m.process(l),y.process(l),v.process(l),b.process(l),A.process(l),E.process(l),l.isProcessing=!1,r&&a&&(s=!1,t(w))},C=()=>{r=!0,s=!0,l.isProcessing||t(w)};return{schedule:kl.reduce((j,k)=>{const _=f[k];return j[k]=($,Y=!1,U=!1)=>(r||C(),_.schedule($,Y,U)),j},{}),cancel:j=>{for(let k=0;k<kl.length;k++)f[kl[k]].cancel(j)},state:l,steps:f}}const{schedule:Ke,cancel:Pa,state:pt,steps:td}=Zx(typeof requestAnimationFrame<"u"?requestAnimationFrame:rn,!0);let Wl;function jC(){Wl=void 0}const _t={now:()=>(Wl===void 0&&_t.set(pt.isProcessing||la.useManualTiming?pt.timestamp:performance.now()),Wl),set:t=>{Wl=t,queueMicrotask(jC)}},Qx=t=>a=>typeof a=="string"&&a.startsWith(t),Ch=Qx("--"),MC=Qx("var(--"),Rh=t=>MC(t)?DC.test(t.split("/*")[0].trim()):!1,DC=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Or={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},to={...Or,transform:t=>oa(0,1,t)},Bl={...Or,default:1},Fs=t=>Math.round(t*1e5)/1e5,Nh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function OC(t){return t==null}const _C=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,jh=(t,a)=>r=>!!(typeof r=="string"&&_C.test(r)&&r.startsWith(t)||a&&!OC(r)&&Object.prototype.hasOwnProperty.call(r,a)),Wx=(t,a,r)=>s=>{if(typeof s!="string")return s;const[l,u,f,h]=s.match(Nh);return{[t]:parseFloat(l),[a]:parseFloat(u),[r]:parseFloat(f),alpha:h!==void 0?parseFloat(h):1}},LC=t=>oa(0,255,t),nd={...Or,transform:t=>Math.round(LC(t))},xi={test:jh("rgb","red"),parse:Wx("red","green","blue"),transform:({red:t,green:a,blue:r,alpha:s=1})=>"rgba("+nd.transform(t)+", "+nd.transform(a)+", "+nd.transform(r)+", "+Fs(to.transform(s))+")"};function VC(t){let a="",r="",s="",l="";return t.length>5?(a=t.substring(1,3),r=t.substring(3,5),s=t.substring(5,7),l=t.substring(7,9)):(a=t.substring(1,2),r=t.substring(2,3),s=t.substring(3,4),l=t.substring(4,5),a+=a,r+=r,s+=s,l+=l),{red:parseInt(a,16),green:parseInt(r,16),blue:parseInt(s,16),alpha:l?parseInt(l,16)/255:1}}const jd={test:jh("#"),parse:VC,transform:xi.transform},yo=t=>({test:a=>typeof a=="string"&&a.endsWith(t)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${t}`}),ka=yo("deg"),Ln=yo("%"),pe=yo("px"),zC=yo("vh"),kC=yo("vw"),Nv={...Ln,parse:t=>Ln.parse(t)/100,transform:t=>Ln.transform(t*100)},yr={test:jh("hsl","hue"),parse:Wx("hue","saturation","lightness"),transform:({hue:t,saturation:a,lightness:r,alpha:s=1})=>"hsla("+Math.round(t)+", "+Ln.transform(Fs(a))+", "+Ln.transform(Fs(r))+", "+Fs(to.transform(s))+")"},bt={test:t=>xi.test(t)||jd.test(t)||yr.test(t),parse:t=>xi.test(t)?xi.parse(t):yr.test(t)?yr.parse(t):jd.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?xi.transform(t):yr.transform(t)},BC=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function UC(t){var a,r;return isNaN(t)&&typeof t=="string"&&(((a=t.match(Nh))==null?void 0:a.length)||0)+(((r=t.match(BC))==null?void 0:r.length)||0)>0}const Jx="number",eb="color",PC="var",HC="var(",jv="${}",GC=/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 no(t){const a=t.toString(),r=[],s={color:[],number:[],var:[]},l=[];let u=0;const h=a.replace(GC,p=>(bt.test(p)?(s.color.push(u),l.push(eb),r.push(bt.parse(p))):p.startsWith(HC)?(s.var.push(u),l.push(PC),r.push(p)):(s.number.push(u),l.push(Jx),r.push(parseFloat(p))),++u,jv)).split(jv);return{values:r,split:h,indexes:s,types:l}}function tb(t){return no(t).values}function nb(t){const{split:a,types:r}=no(t),s=a.length;return l=>{let u="";for(let f=0;f<s;f++)if(u+=a[f],l[f]!==void 0){const h=r[f];h===Jx?u+=Fs(l[f]):h===eb?u+=bt.transform(l[f]):u+=l[f]}return u}}const qC=t=>typeof t=="number"?0:t;function YC(t){const a=tb(t);return nb(t)(a.map(qC))}const Ha={test:UC,parse:tb,createTransformer:nb,getAnimatableNone:YC};function ad(t,a,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(a-t)*6*r:r<1/2?a:r<2/3?t+(a-t)*(2/3-r)*6:t}function IC({hue:t,saturation:a,lightness:r,alpha:s}){t/=360,a/=100,r/=100;let l=0,u=0,f=0;if(!a)l=u=f=r;else{const h=r<.5?r*(1+a):r+a-r*a,p=2*r-h;l=ad(p,h,t+1/3),u=ad(p,h,t),f=ad(p,h,t-1/3)}return{red:Math.round(l*255),green:Math.round(u*255),blue:Math.round(f*255),alpha:s}}function oc(t,a){return r=>r>0?a:t}const Xe=(t,a,r)=>t+(a-t)*r,id=(t,a,r)=>{const s=t*t,l=r*(a*a-s)+s;return l<0?0:Math.sqrt(l)},FC=[jd,xi,yr],XC=t=>FC.find(a=>a.test(t));function Mv(t){const a=XC(t);if(!a)return!1;let r=a.parse(t);return a===yr&&(r=IC(r)),r}const Dv=(t,a)=>{const r=Mv(t),s=Mv(a);if(!r||!s)return oc(t,a);const l={...r};return u=>(l.red=id(r.red,s.red,u),l.green=id(r.green,s.green,u),l.blue=id(r.blue,s.blue,u),l.alpha=Xe(r.alpha,s.alpha,u),xi.transform(l))},Md=new Set(["none","hidden"]);function KC(t,a){return Md.has(t)?r=>r<=0?t:a:r=>r>=1?a:t}function $C(t,a){return r=>Xe(t,a,r)}function Mh(t){return typeof t=="number"?$C:typeof t=="string"?Rh(t)?oc:bt.test(t)?Dv:WC:Array.isArray(t)?ab:typeof t=="object"?bt.test(t)?Dv:ZC:oc}function ab(t,a){const r=[...t],s=r.length,l=t.map((u,f)=>Mh(u)(u,a[f]));return u=>{for(let f=0;f<s;f++)r[f]=l[f](u);return r}}function ZC(t,a){const r={...t,...a},s={};for(const l in r)t[l]!==void 0&&a[l]!==void 0&&(s[l]=Mh(t[l])(t[l],a[l]));return l=>{for(const u in s)r[u]=s[u](l);return r}}function QC(t,a){const r=[],s={color:0,var:0,number:0};for(let l=0;l<a.values.length;l++){const u=a.types[l],f=t.indexes[u][s[u]],h=t.values[f]??0;r[l]=h,s[u]++}return r}const WC=(t,a)=>{const r=Ha.createTransformer(a),s=no(t),l=no(a);return s.indexes.var.length===l.indexes.var.length&&s.indexes.color.length===l.indexes.color.length&&s.indexes.number.length>=l.indexes.number.length?Md.has(t)&&!l.values.length||Md.has(a)&&!s.values.length?KC(t,a):po(ab(QC(s,l),l.values),r):oc(t,a)};function ib(t,a,r){return typeof t=="number"&&typeof a=="number"&&typeof r=="number"?Xe(t,a,r):Mh(t)(t,a)}const JC=t=>{const a=({timestamp:r})=>t(r);return{start:(r=!0)=>Ke.update(a,r),stop:()=>Pa(a),now:()=>pt.isProcessing?pt.timestamp:_t.now()}},rb=(t,a,r=10)=>{let s="";const l=Math.max(Math.round(a/r),2);for(let u=0;u<l;u++)s+=Math.round(t(u/(l-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},lc=2e4;function Dh(t){let a=0;const r=50;let s=t.next(a);for(;!s.done&&a<lc;)a+=r,s=t.next(a);return a>=lc?1/0:a}function e2(t,a=100,r){const s=r({...t,keyframes:[0,a]}),l=Math.min(Dh(s),lc);return{type:"keyframes",ease:u=>s.next(l*u).value/a,duration:_n(l)}}const t2=5;function sb(t,a,r){const s=Math.max(a-t2,0);return Ux(r-t(s),a-s)}const Qe={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},rd=.001;function n2({duration:t=Qe.duration,bounce:a=Qe.bounce,velocity:r=Qe.velocity,mass:s=Qe.mass}){let l,u,f=1-a;f=oa(Qe.minDamping,Qe.maxDamping,f),t=oa(Qe.minDuration,Qe.maxDuration,_n(t)),f<1?(l=m=>{const y=m*f,v=y*t,b=y-r,A=Dd(m,f),E=Math.exp(-v);return rd-b/A*E},u=m=>{const v=m*f*t,b=v*r+r,A=Math.pow(f,2)*Math.pow(m,2)*t,E=Math.exp(-v),w=Dd(Math.pow(m,2),f);return(-l(m)+rd>0?-1:1)*((b-A)*E)/w}):(l=m=>{const y=Math.exp(-m*t),v=(m-r)*t+1;return-rd+y*v},u=m=>{const y=Math.exp(-m*t),v=(r-m)*(t*t);return y*v});const h=5/t,p=i2(l,u,h);if(t=On(t),isNaN(p))return{stiffness:Qe.stiffness,damping:Qe.damping,duration:t};{const m=Math.pow(p,2)*s;return{stiffness:m,damping:f*2*Math.sqrt(s*m),duration:t}}}const a2=12;function i2(t,a,r){let s=r;for(let l=1;l<a2;l++)s=s-t(s)/a(s);return s}function Dd(t,a){return t*Math.sqrt(1-a*a)}const r2=["duration","bounce"],s2=["stiffness","damping","mass"];function Ov(t,a){return a.some(r=>t[r]!==void 0)}function o2(t){let a={velocity:Qe.velocity,stiffness:Qe.stiffness,damping:Qe.damping,mass:Qe.mass,isResolvedFromDuration:!1,...t};if(!Ov(t,s2)&&Ov(t,r2))if(t.visualDuration){const r=t.visualDuration,s=2*Math.PI/(r*1.2),l=s*s,u=2*oa(.05,1,1-(t.bounce||0))*Math.sqrt(l);a={...a,mass:Qe.mass,stiffness:l,damping:u}}else{const r=n2(t);a={...a,...r,mass:Qe.mass},a.isResolvedFromDuration=!0}return a}function cc(t=Qe.visualDuration,a=Qe.bounce){const r=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:a}:t;let{restSpeed:s,restDelta:l}=r;const u=r.keyframes[0],f=r.keyframes[r.keyframes.length-1],h={done:!1,value:u},{stiffness:p,damping:m,mass:y,duration:v,velocity:b,isResolvedFromDuration:A}=o2({...r,velocity:-_n(r.velocity||0)}),E=b||0,w=m/(2*Math.sqrt(p*y)),C=f-u,R=_n(Math.sqrt(p/y)),N=Math.abs(C)<5;s||(s=N?Qe.restSpeed.granular:Qe.restSpeed.default),l||(l=N?Qe.restDelta.granular:Qe.restDelta.default);let j;if(w<1){const _=Dd(R,w);j=$=>{const Y=Math.exp(-w*R*$);return f-Y*((E+w*R*C)/_*Math.sin(_*$)+C*Math.cos(_*$))}}else if(w===1)j=_=>f-Math.exp(-R*_)*(C+(E+R*C)*_);else{const _=R*Math.sqrt(w*w-1);j=$=>{const Y=Math.exp(-w*R*$),U=Math.min(_*$,300);return f-Y*((E+w*R*C)*Math.sinh(U)+_*C*Math.cosh(U))/_}}const k={calculatedDuration:A&&v||null,next:_=>{const $=j(_);if(A)h.done=_>=v;else{let Y=_===0?E:0;w<1&&(Y=_===0?On(E):sb(j,_,$));const U=Math.abs(Y)<=s,Q=Math.abs(f-$)<=l;h.done=U&&Q}return h.value=h.done?f:$,h},toString:()=>{const _=Math.min(Dh(k),lc),$=rb(Y=>k.next(_*Y).value,_,30);return _+"ms "+$},toTransition:()=>{}};return k}cc.applyToOptions=t=>{const a=e2(t,100,cc);return t.ease=a.ease,t.duration=On(a.duration),t.type="keyframes",t};function Od({keyframes:t,velocity:a=0,power:r=.8,timeConstant:s=325,bounceDamping:l=10,bounceStiffness:u=500,modifyTarget:f,min:h,max:p,restDelta:m=.5,restSpeed:y}){const v=t[0],b={done:!1,value:v},A=U=>h!==void 0&&U<h||p!==void 0&&U>p,E=U=>h===void 0?p:p===void 0||Math.abs(h-U)<Math.abs(p-U)?h:p;let w=r*a;const C=v+w,R=f===void 0?C:f(C);R!==C&&(w=R-v);const N=U=>-w*Math.exp(-U/s),j=U=>R+N(U),k=U=>{const Q=N(U),te=j(U);b.done=Math.abs(Q)<=m,b.value=b.done?R:te};let _,$;const Y=U=>{A(b.value)&&(_=U,$=cc({keyframes:[b.value,E(b.value)],velocity:sb(j,U,b.value),damping:l,stiffness:u,restDelta:m,restSpeed:y}))};return Y(0),{calculatedDuration:null,next:U=>{let Q=!1;return!$&&_===void 0&&(Q=!0,k(U),Y(U)),_!==void 0&&U>=_?$.next(U-_):(!Q&&k(U),b)}}}function l2(t,a,r){const s=[],l=r||la.mix||ib,u=t.length-1;for(let f=0;f<u;f++){let h=l(t[f],t[f+1]);if(a){const p=Array.isArray(a)?a[f]||rn:a;h=po(p,h)}s.push(h)}return s}function c2(t,a,{clamp:r=!0,ease:s,mixer:l}={}){const u=t.length;if(Sh(u===a.length),u===1)return()=>a[0];if(u===2&&a[0]===a[1])return()=>a[1];const f=t[0]===t[1];t[0]>t[u-1]&&(t=[...t].reverse(),a=[...a].reverse());const h=l2(a,s,l),p=h.length,m=y=>{if(f&&y<t[0])return a[0];let v=0;if(p>1)for(;v<t.length-2&&!(y<t[v+1]);v++);const b=eo(t[v],t[v+1],y);return h[v](b)};return r?y=>m(oa(t[0],t[u-1],y)):m}function u2(t,a){const r=t[t.length-1];for(let s=1;s<=a;s++){const l=eo(0,a,s);t.push(Xe(r,1,l))}}function f2(t){const a=[0];return u2(a,t.length-1),a}function d2(t,a){return t.map(r=>r*a)}function h2(t,a){return t.map(()=>a||Kx).splice(0,t.length-1)}function Xs({duration:t=300,keyframes:a,times:r,ease:s="easeInOut"}){const l=AC(s)?s.map(Cv):Cv(s),u={done:!1,value:a[0]},f=d2(r&&r.length===a.length?r:f2(a),t),h=c2(f,a,{ease:Array.isArray(l)?l:h2(a,l)});return{calculatedDuration:t,next:p=>(u.value=h(p),u.done=p>=t,u)}}const m2=t=>t!==null;function Oh(t,{repeat:a,repeatType:r="loop"},s,l=1){const u=t.filter(m2),h=l<0||a&&r!=="loop"&&a%2===1?0:u.length-1;return!h||s===void 0?u[h]:s}const p2={decay:Od,inertia:Od,tween:Xs,keyframes:Xs,spring:cc};function ob(t){typeof t.type=="string"&&(t.type=p2[t.type])}class _h{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(a=>{this.resolve=a})}notifyFinished(){this.resolve()}then(a,r){return this.finished.then(a,r)}}const g2=t=>t/100;class Lh extends _h{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var s,l;const{motionValue:r}=this.options;r&&r.updatedAt!==_t.now()&&this.tick(_t.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(l=(s=this.options).onStop)==null||l.call(s))},this.options=a,this.initAnimation(),this.play(),a.autoplay===!1&&this.pause()}initAnimation(){const{options:a}=this;ob(a);const{type:r=Xs,repeat:s=0,repeatDelay:l=0,repeatType:u,velocity:f=0}=a;let{keyframes:h}=a;const p=r||Xs;p!==Xs&&typeof h[0]!="number"&&(this.mixKeyframes=po(g2,ib(h[0],h[1])),h=[0,100]);const m=p({...a,keyframes:h});u==="mirror"&&(this.mirroredGenerator=p({...a,keyframes:[...h].reverse(),velocity:-f})),m.calculatedDuration===null&&(m.calculatedDuration=Dh(m));const{calculatedDuration:y}=m;this.calculatedDuration=y,this.resolvedDuration=y+l,this.totalDuration=this.resolvedDuration*(s+1)-l,this.generator=m}updateTime(a){const r=Math.round(a-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(a,r=!1){const{generator:s,totalDuration:l,mixKeyframes:u,mirroredGenerator:f,resolvedDuration:h,calculatedDuration:p}=this;if(this.startTime===null)return s.next(0);const{delay:m=0,keyframes:y,repeat:v,repeatType:b,repeatDelay:A,type:E,onUpdate:w,finalKeyframe:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-l/this.speed,this.startTime)),r?this.currentTime=a:this.updateTime(a);const R=this.currentTime-m*(this.playbackSpeed>=0?1:-1),N=this.playbackSpeed>=0?R<0:R>l;this.currentTime=Math.max(R,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=l);let j=this.currentTime,k=s;if(v){const U=Math.min(this.currentTime,l)/h;let Q=Math.floor(U),te=U%1;!te&&U>=1&&(te=1),te===1&&Q--,Q=Math.min(Q,v+1),!!(Q%2)&&(b==="reverse"?(te=1-te,A&&(te-=A/h)):b==="mirror"&&(k=f)),j=oa(0,1,te)*h}const _=N?{done:!1,value:y[0]}:k.next(j);u&&(_.value=u(_.value));let{done:$}=_;!N&&p!==null&&($=this.playbackSpeed>=0?this.currentTime>=l:this.currentTime<=0);const Y=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&$);return Y&&E!==Od&&(_.value=Oh(y,this.options,C,this.speed)),w&&w(_.value),Y&&this.finish(),_}then(a,r){return this.finished.then(a,r)}get duration(){return _n(this.calculatedDuration)}get time(){return _n(this.currentTime)}set time(a){var r;a=On(a),this.currentTime=a,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),(r=this.driver)==null||r.start(!1)}get speed(){return this.playbackSpeed}set speed(a){this.updateTime(_t.now());const r=this.playbackSpeed!==a;this.playbackSpeed=a,r&&(this.time=_n(this.currentTime))}play(){var l,u;if(this.isStopped)return;const{driver:a=JC,startTime:r}=this.options;this.driver||(this.driver=a(f=>this.tick(f))),(u=(l=this.options).onPlay)==null||u.call(l);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=r??s),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(){var a,r;this.notifyFinished(),this.teardown(),this.state="finished",(r=(a=this.options).onComplete)==null||r.call(a)}cancel(){var a,r;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(r=(a=this.options).onCancel)==null||r.call(a)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){var r;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(r=this.driver)==null||r.stop(),a.observe(this)}}function y2(t){for(let a=1;a<t.length;a++)t[a]??(t[a]=t[a-1])}const bi=t=>t*180/Math.PI,_d=t=>{const a=bi(Math.atan2(t[1],t[0]));return Ld(a)},v2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:_d,rotateZ:_d,skewX:t=>bi(Math.atan(t[1])),skewY:t=>bi(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ld=t=>(t=t%360,t<0&&(t+=360),t),_v=_d,Lv=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Vv=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),x2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Lv,scaleY:Vv,scale:t=>(Lv(t)+Vv(t))/2,rotateX:t=>Ld(bi(Math.atan2(t[6],t[5]))),rotateY:t=>Ld(bi(Math.atan2(-t[2],t[0]))),rotateZ:_v,rotate:_v,skewX:t=>bi(Math.atan(t[4])),skewY:t=>bi(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Vd(t){return t.includes("scale")?1:0}function zd(t,a){if(!t||t==="none")return Vd(a);const r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,l;if(r)s=x2,l=r;else{const h=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=v2,l=h}if(!l)return Vd(a);const u=s[a],f=l[1].split(",").map(S2);return typeof u=="function"?u(f):f[u]}const b2=(t,a)=>{const{transform:r="none"}=getComputedStyle(t);return zd(r,a)};function S2(t){return parseFloat(t.trim())}const _r=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Lr=new Set(_r),zv=t=>t===Or||t===pe,w2=new Set(["x","y","z"]),T2=_r.filter(t=>!w2.has(t));function A2(t){const a=[];return T2.forEach(r=>{const s=t.getValue(r);s!==void 0&&(a.push([r,s.get()]),s.set(r.startsWith("scale")?1:0))}),a}const wi={width:({x:t},{paddingLeft:a="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(a)-parseFloat(r),height:({y:t},{paddingTop:a="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(a)-parseFloat(r),top:(t,{top:a})=>parseFloat(a),left:(t,{left:a})=>parseFloat(a),bottom:({y:t},{top:a})=>parseFloat(a)+(t.max-t.min),right:({x:t},{left:a})=>parseFloat(a)+(t.max-t.min),x:(t,{transform:a})=>zd(a,"x"),y:(t,{transform:a})=>zd(a,"y")};wi.translateX=wi.x;wi.translateY=wi.y;const Ti=new Set;let kd=!1,Bd=!1,Ud=!1;function lb(){if(Bd){const t=Array.from(Ti).filter(s=>s.needsMeasurement),a=new Set(t.map(s=>s.element)),r=new Map;a.forEach(s=>{const l=A2(s);l.length&&(r.set(s,l),s.render())}),t.forEach(s=>s.measureInitialState()),a.forEach(s=>{s.render();const l=r.get(s);l&&l.forEach(([u,f])=>{var h;(h=s.getValue(u))==null||h.set(f)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Bd=!1,kd=!1,Ti.forEach(t=>t.complete(Ud)),Ti.clear()}function cb(){Ti.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Bd=!0)})}function E2(){Ud=!0,cb(),lb(),Ud=!1}class Vh{constructor(a,r,s,l,u,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=r,this.name=s,this.motionValue=l,this.element=u,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(Ti.add(this),kd||(kd=!0,Ke.read(cb),Ke.resolveKeyframes(lb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:r,element:s,motionValue:l}=this;if(a[0]===null){const u=l==null?void 0:l.get(),f=a[a.length-1];if(u!==void 0)a[0]=u;else if(s&&r){const h=s.readValue(r,f);h!=null&&(a[0]=h)}a[0]===void 0&&(a[0]=f),l&&u===void 0&&l.set(a[0])}y2(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),Ti.delete(this)}cancel(){this.state==="scheduled"&&(Ti.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const C2=t=>t.startsWith("--");function R2(t,a,r){C2(a)?t.style.setProperty(a,r):t.style[a]=r}const N2=wh(()=>window.ScrollTimeline!==void 0),j2={};function M2(t,a){const r=wh(t);return()=>j2[a]??r()}const ub=M2(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ys=([t,a,r,s])=>`cubic-bezier(${t}, ${a}, ${r}, ${s})`,kv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ys([0,.65,.55,1]),circOut:Ys([.55,0,1,.45]),backIn:Ys([.31,.01,.66,-.59]),backOut:Ys([.33,1.53,.69,.99])};function fb(t,a){if(t)return typeof t=="function"?ub()?rb(t,a):"ease-out":$x(t)?Ys(t):Array.isArray(t)?t.map(r=>fb(r,a)||kv.easeOut):kv[t]}function D2(t,a,r,{delay:s=0,duration:l=300,repeat:u=0,repeatType:f="loop",ease:h="easeOut",times:p}={},m=void 0){const y={[a]:r};p&&(y.offset=p);const v=fb(h,l);Array.isArray(v)&&(y.easing=v);const b={delay:s,duration:l,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:u+1,direction:f==="reverse"?"alternate":"normal"};return m&&(b.pseudoElement=m),t.animate(y,b)}function db(t){return typeof t=="function"&&"applyToOptions"in t}function O2({type:t,...a}){return db(t)&&ub()?t.applyToOptions(a):(a.duration??(a.duration=300),a.ease??(a.ease="easeOut"),a)}class _2 extends _h{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,!a)return;const{element:r,name:s,keyframes:l,pseudoElement:u,allowFlatten:f=!1,finalKeyframe:h,onComplete:p}=a;this.isPseudoElement=!!u,this.allowFlatten=f,this.options=a,Sh(typeof a.type!="string");const m=O2(a);this.animation=D2(r,s,l,m,u),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!u){const y=Oh(l,this.options,h,this.speed);this.updateMotionValue?this.updateMotionValue(y):R2(r,s,y),this.animation.cancel()}p==null||p(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var a,r;(r=(a=this.animation).finish)==null||r.call(a)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:a}=this;a==="idle"||a==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var a,r;this.isPseudoElement||(r=(a=this.animation).commitStyles)==null||r.call(a)}get duration(){var r,s;const a=((s=(r=this.animation.effect)==null?void 0:r.getComputedTiming)==null?void 0:s.call(r).duration)||0;return _n(Number(a))}get time(){return _n(Number(this.animation.currentTime)||0)}set time(a){this.finishedTime=null,this.animation.currentTime=On(a)}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(a){this.animation.startTime=a}attachTimeline({timeline:a,observe:r}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,a&&N2()?(this.animation.timeline=a,rn):r(this)}}const hb={anticipate:Ix,backInOut:Yx,circInOut:Xx};function L2(t){return t in hb}function V2(t){typeof t.ease=="string"&&L2(t.ease)&&(t.ease=hb[t.ease])}const Bv=10;class z2 extends _2{constructor(a){V2(a),ob(a),super(a),a.startTime&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){const{motionValue:r,onUpdate:s,onComplete:l,element:u,...f}=this.options;if(!r)return;if(a!==void 0){r.set(a);return}const h=new Lh({...f,autoplay:!1}),p=On(this.finishedTime??this.time);r.setWithVelocity(h.sample(p-Bv).value,h.sample(p).value,Bv),h.stop()}}const Uv=(t,a)=>a==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ha.test(t)||t==="0")&&!t.startsWith("url("));function k2(t){const a=t[0];if(t.length===1)return!0;for(let r=0;r<t.length;r++)if(t[r]!==a)return!0}function B2(t,a,r,s){const l=t[0];if(l===null)return!1;if(a==="display"||a==="visibility")return!0;const u=t[t.length-1],f=Uv(l,a),h=Uv(u,a);return!f||!h?!1:k2(t)||(r==="spring"||db(r))&&s}function mb(t){return kx(t)&&"offsetHeight"in t}const U2=new Set(["opacity","clipPath","filter","transform"]),P2=wh(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function H2(t){var m;const{motionValue:a,name:r,repeatDelay:s,repeatType:l,damping:u,type:f}=t;if(!mb((m=a==null?void 0:a.owner)==null?void 0:m.current))return!1;const{onUpdate:h,transformTemplate:p}=a.owner.getProps();return P2()&&r&&U2.has(r)&&(r!=="transform"||!p)&&!h&&!s&&l!=="mirror"&&u!==0&&f!=="inertia"}const G2=40;class q2 extends _h{constructor({autoplay:a=!0,delay:r=0,type:s="keyframes",repeat:l=0,repeatDelay:u=0,repeatType:f="loop",keyframes:h,name:p,motionValue:m,element:y,...v}){var E;super(),this.stop=()=>{var w,C;this._animation&&(this._animation.stop(),(w=this.stopTimeline)==null||w.call(this)),(C=this.keyframeResolver)==null||C.cancel()},this.createdAt=_t.now();const b={autoplay:a,delay:r,type:s,repeat:l,repeatDelay:u,repeatType:f,name:p,motionValue:m,element:y,...v},A=(y==null?void 0:y.KeyframeResolver)||Vh;this.keyframeResolver=new A(h,(w,C,R)=>this.onKeyframesResolved(w,C,b,!R),p,m,y),(E=this.keyframeResolver)==null||E.scheduleResolve()}onKeyframesResolved(a,r,s,l){this.keyframeResolver=void 0;const{name:u,type:f,velocity:h,delay:p,isHandoff:m,onUpdate:y}=s;this.resolvedAt=_t.now(),B2(a,u,f,h)||((la.instantAnimations||!p)&&(y==null||y(Oh(a,s,r))),a[0]=a[a.length-1],s.duration=0,s.repeat=0);const b={startTime:l?this.resolvedAt?this.resolvedAt-this.createdAt>G2?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...s,keyframes:a},A=!m&&H2(b)?new z2({...b,element:b.motionValue.owner.current}):new Lh(b);A.finished.then(()=>this.notifyFinished()).catch(rn),this.pendingTimeline&&(this.stopTimeline=A.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=A}get finished(){return this._animation?this.animation.finished:this._finished}then(a,r){return this.finished.finally(a).then(()=>{})}get animation(){var a;return this._animation||((a=this.keyframeResolver)==null||a.resume(),E2()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var a;this._animation&&this.animation.cancel(),(a=this.keyframeResolver)==null||a.cancel()}}const Y2=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function I2(t){const a=Y2.exec(t);if(!a)return[,];const[,r,s,l]=a;return[`--${r??s}`,l]}function pb(t,a,r=1){const[s,l]=I2(t);if(!s)return;const u=window.getComputedStyle(a).getPropertyValue(s);if(u){const f=u.trim();return zx(f)?parseFloat(f):f}return Rh(l)?pb(l,a,r+1):l}function zh(t,a){return(t==null?void 0:t[a])??(t==null?void 0:t.default)??t}const gb=new Set(["width","height","top","left","right","bottom",..._r]),F2={test:t=>t==="auto",parse:t=>t},yb=t=>a=>a.test(t),vb=[Or,pe,Ln,ka,kC,zC,F2],Pv=t=>vb.find(yb(t));function X2(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Bx(t):!0}const K2=new Set(["brightness","contrast","saturate","opacity"]);function $2(t){const[a,r]=t.slice(0,-1).split("(");if(a==="drop-shadow")return t;const[s]=r.match(Nh)||[];if(!s)return t;const l=r.replace(s,"");let u=K2.has(a)?1:0;return s!==r&&(u*=100),a+"("+u+l+")"}const Z2=/\b([a-z-]*)\(.*?\)/gu,Pd={...Ha,getAnimatableNone:t=>{const a=t.match(Z2);return a?a.map($2).join(" "):t}},Hv={...Or,transform:Math.round},Q2={rotate:ka,rotateX:ka,rotateY:ka,rotateZ:ka,scale:Bl,scaleX:Bl,scaleY:Bl,scaleZ:Bl,skew:ka,skewX:ka,skewY:ka,distance:pe,translateX:pe,translateY:pe,translateZ:pe,x:pe,y:pe,z:pe,perspective:pe,transformPerspective:pe,opacity:to,originX:Nv,originY:Nv,originZ:pe},kh={borderWidth:pe,borderTopWidth:pe,borderRightWidth:pe,borderBottomWidth:pe,borderLeftWidth:pe,borderRadius:pe,radius:pe,borderTopLeftRadius:pe,borderTopRightRadius:pe,borderBottomRightRadius:pe,borderBottomLeftRadius:pe,width:pe,maxWidth:pe,height:pe,maxHeight:pe,top:pe,right:pe,bottom:pe,left:pe,padding:pe,paddingTop:pe,paddingRight:pe,paddingBottom:pe,paddingLeft:pe,margin:pe,marginTop:pe,marginRight:pe,marginBottom:pe,marginLeft:pe,backgroundPositionX:pe,backgroundPositionY:pe,...Q2,zIndex:Hv,fillOpacity:to,strokeOpacity:to,numOctaves:Hv},W2={...kh,color:bt,backgroundColor:bt,outlineColor:bt,fill:bt,stroke:bt,borderColor:bt,borderTopColor:bt,borderRightColor:bt,borderBottomColor:bt,borderLeftColor:bt,filter:Pd,WebkitFilter:Pd},xb=t=>W2[t];function bb(t,a){let r=xb(t);return r!==Pd&&(r=Ha),r.getAnimatableNone?r.getAnimatableNone(a):void 0}const J2=new Set(["auto","none","0"]);function eR(t,a,r){let s=0,l;for(;s<t.length&&!l;){const u=t[s];typeof u=="string"&&!J2.has(u)&&no(u).values.length&&(l=t[s]),s++}if(l&&r)for(const u of a)t[u]=bb(r,l)}class tR extends Vh{constructor(a,r,s,l,u){super(a,r,s,l,u,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:r,name:s}=this;if(!r||!r.current)return;super.readKeyframes();for(let p=0;p<a.length;p++){let m=a[p];if(typeof m=="string"&&(m=m.trim(),Rh(m))){const y=pb(m,r.current);y!==void 0&&(a[p]=y),p===a.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!gb.has(s)||a.length!==2)return;const[l,u]=a,f=Pv(l),h=Pv(u);if(f!==h)if(zv(f)&&zv(h))for(let p=0;p<a.length;p++){const m=a[p];typeof m=="string"&&(a[p]=parseFloat(m))}else wi[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:r}=this,s=[];for(let l=0;l<a.length;l++)(a[l]===null||X2(a[l]))&&s.push(l);s.length&&eR(a,s,r)}measureInitialState(){const{element:a,unresolvedKeyframes:r,name:s}=this;if(!a||!a.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=wi[s](a.measureViewportBox(),window.getComputedStyle(a.current)),r[0]=this.measuredOrigin;const l=r[r.length-1];l!==void 0&&a.getValue(s,l).jump(l,!1)}measureEndState(){var h;const{element:a,name:r,unresolvedKeyframes:s}=this;if(!a||!a.current)return;const l=a.getValue(r);l&&l.jump(this.measuredOrigin,!1);const u=s.length-1,f=s[u];s[u]=wi[r](a.measureViewportBox(),window.getComputedStyle(a.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),(h=this.removedTransforms)!=null&&h.length&&this.removedTransforms.forEach(([p,m])=>{a.getValue(p).set(m)}),this.resolveNoneKeyframes()}}function nR(t,a,r){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const l=(r==null?void 0:r[t])??s.querySelectorAll(t);return l?Array.from(l):[]}return Array.from(t)}const Sb=(t,a)=>a&&typeof t=="number"?a.transform(t):t,Gv=30,aR=t=>!isNaN(parseFloat(t));class iR{constructor(a,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,l=!0)=>{var f,h;const u=_t.now();if(this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((f=this.events.change)==null||f.notify(this.current),this.dependents))for(const p of this.dependents)p.dirty();l&&((h=this.events.renderRequest)==null||h.notify(this.current))},this.hasAnimated=!1,this.setCurrent(a),this.owner=r.owner}setCurrent(a){this.current=a,this.updatedAt=_t.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=aR(this.current))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,r){this.events[a]||(this.events[a]=new Th);const s=this.events[a].add(r);return a==="change"?()=>{s(),Ke.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const a in this.events)this.events[a].clear()}attach(a,r){this.passiveEffect=a,this.stopPassiveEffect=r}set(a,r=!0){!r||!this.passiveEffect?this.updateAndNotify(a,r):this.passiveEffect(a,this.updateAndNotify)}setWithVelocity(a,r,s){this.set(r),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-s}jump(a,r=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var a;(a=this.events.change)==null||a.notify(this.current)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const a=_t.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>Gv)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,Gv);return Ux(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(a){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=a(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var a,r;(a=this.dependents)==null||a.clear(),(r=this.events.destroy)==null||r.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ar(t,a){return new iR(t,a)}const{schedule:Bh}=Zx(queueMicrotask,!1),hn={x:!1,y:!1};function wb(){return hn.x||hn.y}function rR(t){return t==="x"||t==="y"?hn[t]?null:(hn[t]=!0,()=>{hn[t]=!1}):hn.x||hn.y?null:(hn.x=hn.y=!0,()=>{hn.x=hn.y=!1})}function Tb(t,a){const r=nR(t),s=new AbortController,l={passive:!0,...a,signal:s.signal};return[r,l,()=>s.abort()]}function qv(t){return!(t.pointerType==="touch"||wb())}function sR(t,a,r={}){const[s,l,u]=Tb(t,r),f=h=>{if(!qv(h))return;const{target:p}=h,m=a(p,h);if(typeof m!="function"||!p)return;const y=v=>{qv(v)&&(m(v),p.removeEventListener("pointerleave",y))};p.addEventListener("pointerleave",y,l)};return s.forEach(h=>{h.addEventListener("pointerenter",f,l)}),u}const Ab=(t,a)=>a?t===a?!0:Ab(t,a.parentElement):!1,Uh=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,oR=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function lR(t){return oR.has(t.tagName)||t.tabIndex!==-1}const Jl=new WeakSet;function Yv(t){return a=>{a.key==="Enter"&&t(a)}}function sd(t,a){t.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const cR=(t,a)=>{const r=t.currentTarget;if(!r)return;const s=Yv(()=>{if(Jl.has(r))return;sd(r,"down");const l=Yv(()=>{sd(r,"up")}),u=()=>sd(r,"cancel");r.addEventListener("keyup",l,a),r.addEventListener("blur",u,a)});r.addEventListener("keydown",s,a),r.addEventListener("blur",()=>r.removeEventListener("keydown",s),a)};function Iv(t){return Uh(t)&&!wb()}function uR(t,a,r={}){const[s,l,u]=Tb(t,r),f=h=>{const p=h.currentTarget;if(!Iv(h))return;Jl.add(p);const m=a(p,h),y=(A,E)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",b),Jl.has(p)&&Jl.delete(p),Iv(A)&&typeof m=="function"&&m(A,{success:E})},v=A=>{y(A,p===window||p===document||r.useGlobalTarget||Ab(p,A.target))},b=A=>{y(A,!1)};window.addEventListener("pointerup",v,l),window.addEventListener("pointercancel",b,l)};return s.forEach(h=>{(r.useGlobalTarget?window:h).addEventListener("pointerdown",f,l),mb(h)&&(h.addEventListener("focus",m=>cR(m,l)),!lR(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),u}function Eb(t){return kx(t)&&"ownerSVGElement"in t}function fR(t){return Eb(t)&&t.tagName==="svg"}const St=t=>!!(t&&t.getVelocity),dR=[...vb,bt,Ha],hR=t=>dR.find(yb(t)),Cb=S.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function mR(t=!0){const a=S.useContext(vh);if(a===null)return[!0,null];const{isPresent:r,onExitComplete:s,register:l}=a,u=S.useId();S.useEffect(()=>{if(t)return l(u)},[t]);const f=S.useCallback(()=>t&&s&&s(u),[u,s,t]);return!r&&s?[!1,f]:[!0]}const Rb=S.createContext({strict:!1}),Fv={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"]},Er={};for(const t in Fv)Er[t]={isEnabled:a=>Fv[t].some(r=>!!a[r])};function pR(t){for(const a in t)Er[a]={...Er[a],...t[a]}}const gR=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 uc(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||gR.has(t)}let Nb=t=>!uc(t);function yR(t){t&&(Nb=a=>a.startsWith("on")?!uc(a):t(a))}try{yR(require("@emotion/is-prop-valid").default)}catch{}function vR(t,a,r){const s={};for(const l in t)l==="values"&&typeof t.values=="object"||(Nb(l)||r===!0&&uc(l)||!a&&!uc(l)||t.draggable&&l.startsWith("onDrag"))&&(s[l]=t[l]);return s}function xR(t){if(typeof Proxy>"u")return t;const a=new Map,r=(...s)=>t(...s);return new Proxy(r,{get:(s,l)=>l==="create"?t:(a.has(l)||a.set(l,t(l)),a.get(l))})}const bc=S.createContext({});function Sc(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function ao(t){return typeof t=="string"||Array.isArray(t)}const Ph=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Hh=["initial",...Ph];function wc(t){return Sc(t.animate)||Hh.some(a=>ao(t[a]))}function jb(t){return!!(wc(t)||t.variants)}function bR(t,a){if(wc(t)){const{initial:r,animate:s}=t;return{initial:r===!1||ao(r)?r:void 0,animate:ao(s)?s:void 0}}return t.inherit!==!1?a:{}}function SR(t){const{initial:a,animate:r}=bR(t,S.useContext(bc));return S.useMemo(()=>({initial:a,animate:r}),[Xv(a),Xv(r)])}function Xv(t){return Array.isArray(t)?t.join(" "):t}const wR=Symbol.for("motionComponentSymbol");function vr(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function TR(t,a,r){return S.useCallback(s=>{s&&t.onMount&&t.onMount(s),a&&(s?a.mount(s):a.unmount()),r&&(typeof r=="function"?r(s):vr(r)&&(r.current=s))},[a])}const Gh=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),AR="framerAppearId",Mb="data-"+Gh(AR),Db=S.createContext({});function ER(t,a,r,s,l){var w,C;const{visualElement:u}=S.useContext(bc),f=S.useContext(Rb),h=S.useContext(vh),p=S.useContext(Cb).reducedMotion,m=S.useRef(null);s=s||f.renderer,!m.current&&s&&(m.current=s(t,{visualState:a,parent:u,props:r,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:p}));const y=m.current,v=S.useContext(Db);y&&!y.projection&&l&&(y.type==="html"||y.type==="svg")&&CR(m.current,r,l,v);const b=S.useRef(!1);S.useInsertionEffect(()=>{y&&b.current&&y.update(r,h)});const A=r[Mb],E=S.useRef(!!A&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,A))&&((C=window.MotionHasOptimisedAnimation)==null?void 0:C.call(window,A)));return yC(()=>{y&&(b.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),Bh.render(y.render),E.current&&y.animationState&&y.animationState.animateChanges())}),S.useEffect(()=>{y&&(!E.current&&y.animationState&&y.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var R;(R=window.MotionHandoffMarkAsComplete)==null||R.call(window,A)}),E.current=!1))}),y}function CR(t,a,r,s){const{layoutId:l,layout:u,drag:f,dragConstraints:h,layoutScroll:p,layoutRoot:m,layoutCrossfade:y}=a;t.projection=new r(t.latestValues,a["data-framer-portal-id"]?void 0:Ob(t.parent)),t.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:!!f||h&&vr(h),visualElement:t,animationType:typeof u=="string"?u:"both",initialPromotionConfig:s,crossfade:y,layoutScroll:p,layoutRoot:m})}function Ob(t){if(t)return t.options.allowProjection!==!1?t.projection:Ob(t.parent)}function RR({preloadedFeatures:t,createVisualElement:a,useRender:r,useVisualState:s,Component:l}){t&&pR(t);function u(h,p){let m;const y={...S.useContext(Cb),...h,layoutId:NR(h)},{isStatic:v}=y,b=SR(h),A=s(h,v);if(!v&&yh){jR();const E=MR(y);m=E.MeasureLayout,b.visualElement=ER(l,A,y,a,E.ProjectionNode)}return g.jsxs(bc.Provider,{value:b,children:[m&&b.visualElement?g.jsx(m,{visualElement:b.visualElement,...y}):null,r(l,h,TR(A,b.visualElement,p),A,v,b.visualElement)]})}u.displayName=`motion.${typeof l=="string"?l:`create(${l.displayName??l.name??""})`}`;const f=S.forwardRef(u);return f[wR]=l,f}function NR({layoutId:t}){const a=S.useContext(Vx).id;return a&&t!==void 0?a+"-"+t:t}function jR(t,a){S.useContext(Rb).strict}function MR(t){const{drag:a,layout:r}=Er;if(!a&&!r)return{};const s={...a,...r};return{MeasureLayout:a!=null&&a.isEnabled(t)||r!=null&&r.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const io={};function DR(t){for(const a in t)io[a]=t[a],Ch(a)&&(io[a].isCSSVariable=!0)}function _b(t,{layout:a,layoutId:r}){return Lr.has(t)||t.startsWith("origin")||(a||r!==void 0)&&(!!io[t]||t==="opacity")}const OR={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_R=_r.length;function LR(t,a,r){let s="",l=!0;for(let u=0;u<_R;u++){const f=_r[u],h=t[f];if(h===void 0)continue;let p=!0;if(typeof h=="number"?p=h===(f.startsWith("scale")?1:0):p=parseFloat(h)===0,!p||r){const m=Sb(h,kh[f]);if(!p){l=!1;const y=OR[f]||f;s+=`${y}(${m}) `}r&&(a[f]=m)}}return s=s.trim(),r?s=r(a,l?"":s):l&&(s="none"),s}function qh(t,a,r){const{style:s,vars:l,transformOrigin:u}=t;let f=!1,h=!1;for(const p in a){const m=a[p];if(Lr.has(p)){f=!0;continue}else if(Ch(p)){l[p]=m;continue}else{const y=Sb(m,kh[p]);p.startsWith("origin")?(h=!0,u[p]=y):s[p]=y}}if(a.transform||(f||r?s.transform=LR(a,t.transform,r):s.transform&&(s.transform="none")),h){const{originX:p="50%",originY:m="50%",originZ:y=0}=u;s.transformOrigin=`${p} ${m} ${y}`}}const Yh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Lb(t,a,r){for(const s in a)!St(a[s])&&!_b(s,r)&&(t[s]=a[s])}function VR({transformTemplate:t},a){return S.useMemo(()=>{const r=Yh();return qh(r,a,t),Object.assign({},r.vars,r.style)},[a])}function zR(t,a){const r=t.style||{},s={};return Lb(s,r,t),Object.assign(s,VR(t,a)),s}function kR(t,a){const r={},s=zR(t,a);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=s,r}const BR={offset:"stroke-dashoffset",array:"stroke-dasharray"},UR={offset:"strokeDashoffset",array:"strokeDasharray"};function PR(t,a,r=1,s=0,l=!0){t.pathLength=1;const u=l?BR:UR;t[u.offset]=pe.transform(-s);const f=pe.transform(a),h=pe.transform(r);t[u.array]=`${f} ${h}`}function Vb(t,{attrX:a,attrY:r,attrScale:s,pathLength:l,pathSpacing:u=1,pathOffset:f=0,...h},p,m,y){if(qh(t,h,m),p){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:v,style:b}=t;v.transform&&(b.transform=v.transform,delete v.transform),(b.transform||v.transformOrigin)&&(b.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),b.transform&&(b.transformBox=(y==null?void 0:y.transformBox)??"fill-box",delete v.transformBox),a!==void 0&&(v.x=a),r!==void 0&&(v.y=r),s!==void 0&&(v.scale=s),l!==void 0&&PR(v,l,u,f,!1)}const zb=()=>({...Yh(),attrs:{}}),kb=t=>typeof t=="string"&&t.toLowerCase()==="svg";function HR(t,a,r,s){const l=S.useMemo(()=>{const u=zb();return Vb(u,a,kb(s),t.transformTemplate,t.style),{...u.attrs,style:{...u.style}}},[a]);if(t.style){const u={};Lb(u,t.style,t),l.style={...u,...l.style}}return l}const GR=["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 Ih(t){return typeof t!="string"||t.includes("-")?!1:!!(GR.indexOf(t)>-1||/[A-Z]/u.test(t))}function qR(t=!1){return(r,s,l,{latestValues:u},f)=>{const p=(Ih(r)?HR:kR)(s,u,f,r),m=vR(s,typeof r=="string",t),y=r!==S.Fragment?{...m,...p,ref:l}:{},{children:v}=s,b=S.useMemo(()=>St(v)?v.get():v,[v]);return S.createElement(r,{...y,children:b})}}function Kv(t){const a=[{},{}];return t==null||t.values.forEach((r,s)=>{a[0][s]=r.get(),a[1][s]=r.getVelocity()}),a}function Fh(t,a,r,s){if(typeof a=="function"){const[l,u]=Kv(s);a=a(r!==void 0?r:t.custom,l,u)}if(typeof a=="string"&&(a=t.variants&&t.variants[a]),typeof a=="function"){const[l,u]=Kv(s);a=a(r!==void 0?r:t.custom,l,u)}return a}function ec(t){return St(t)?t.get():t}function YR({scrapeMotionValuesFromProps:t,createRenderState:a},r,s,l){return{latestValues:IR(r,s,l,t),renderState:a()}}const Bb=t=>(a,r)=>{const s=S.useContext(bc),l=S.useContext(vh),u=()=>YR(t,a,s,l);return r?u():gC(u)};function IR(t,a,r,s){const l={},u=s(t,{});for(const b in u)l[b]=ec(u[b]);let{initial:f,animate:h}=t;const p=wc(t),m=jb(t);a&&m&&!p&&t.inherit!==!1&&(f===void 0&&(f=a.initial),h===void 0&&(h=a.animate));let y=r?r.initial===!1:!1;y=y||f===!1;const v=y?h:f;if(v&&typeof v!="boolean"&&!Sc(v)){const b=Array.isArray(v)?v:[v];for(let A=0;A<b.length;A++){const E=Fh(t,b[A]);if(E){const{transitionEnd:w,transition:C,...R}=E;for(const N in R){let j=R[N];if(Array.isArray(j)){const k=y?j.length-1:0;j=j[k]}j!==null&&(l[N]=j)}for(const N in w)l[N]=w[N]}}}return l}function Xh(t,a,r){var u;const{style:s}=t,l={};for(const f in s)(St(s[f])||a.style&&St(a.style[f])||_b(f,t)||((u=r==null?void 0:r.getValue(f))==null?void 0:u.liveStyle)!==void 0)&&(l[f]=s[f]);return l}const FR={useVisualState:Bb({scrapeMotionValuesFromProps:Xh,createRenderState:Yh})};function Ub(t,a,r){const s=Xh(t,a,r);for(const l in t)if(St(t[l])||St(a[l])){const u=_r.indexOf(l)!==-1?"attr"+l.charAt(0).toUpperCase()+l.substring(1):l;s[u]=t[l]}return s}const XR={useVisualState:Bb({scrapeMotionValuesFromProps:Ub,createRenderState:zb})};function KR(t,a){return function(s,{forwardMotionProps:l}={forwardMotionProps:!1}){const f={...Ih(s)?XR:FR,preloadedFeatures:t,useRender:qR(l),createVisualElement:a,Component:s};return RR(f)}}function ro(t,a,r){const s=t.getProps();return Fh(s,a,r!==void 0?r:s.custom,t)}const Hd=t=>Array.isArray(t);function $R(t,a,r){t.hasValue(a)?t.getValue(a).set(r):t.addValue(a,Ar(r))}function ZR(t){return Hd(t)?t[t.length-1]||0:t}function QR(t,a){const r=ro(t,a);let{transitionEnd:s={},transition:l={},...u}=r||{};u={...u,...s};for(const f in u){const h=ZR(u[f]);$R(t,f,h)}}function WR(t){return!!(St(t)&&t.add)}function Gd(t,a){const r=t.getValue("willChange");if(WR(r))return r.add(a);if(!r&&la.WillChange){const s=new la.WillChange("auto");t.addValue("willChange",s),s.add(a)}}function Pb(t){return t.props[Mb]}const JR=t=>t!==null;function eN(t,{repeat:a,repeatType:r="loop"},s){const l=t.filter(JR),u=a&&r!=="loop"&&a%2===1?0:l.length-1;return l[u]}const tN={type:"spring",stiffness:500,damping:25,restSpeed:10},nN=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),aN={type:"keyframes",duration:.8},iN={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rN=(t,{keyframes:a})=>a.length>2?aN:Lr.has(t)?t.startsWith("scale")?nN(a[1]):tN:iN;function sN({when:t,delay:a,delayChildren:r,staggerChildren:s,staggerDirection:l,repeat:u,repeatType:f,repeatDelay:h,from:p,elapsed:m,...y}){return!!Object.keys(y).length}const Kh=(t,a,r,s={},l,u)=>f=>{const h=zh(s,t)||{},p=h.delay||s.delay||0;let{elapsed:m=0}=s;m=m-On(p);const y={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:a.getVelocity(),...h,delay:-m,onUpdate:b=>{a.set(b),h.onUpdate&&h.onUpdate(b)},onComplete:()=>{f(),h.onComplete&&h.onComplete()},name:t,motionValue:a,element:u?void 0:l};sN(h)||Object.assign(y,rN(t,y)),y.duration&&(y.duration=On(y.duration)),y.repeatDelay&&(y.repeatDelay=On(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let v=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(y.duration=0,y.delay===0&&(v=!0)),(la.instantAnimations||la.skipAnimations)&&(v=!0,y.duration=0,y.delay=0),y.allowFlatten=!h.type&&!h.ease,v&&!u&&a.get()!==void 0){const b=eN(y.keyframes,h);if(b!==void 0){Ke.update(()=>{y.onUpdate(b),y.onComplete()});return}}return h.isSync?new Lh(y):new q2(y)};function oN({protectedKeys:t,needsAnimating:a},r){const s=t.hasOwnProperty(r)&&a[r]!==!0;return a[r]=!1,s}function Hb(t,a,{delay:r=0,transitionOverride:s,type:l}={}){let{transition:u=t.getDefaultTransition(),transitionEnd:f,...h}=a;s&&(u=s);const p=[],m=l&&t.animationState&&t.animationState.getState()[l];for(const y in h){const v=t.getValue(y,t.latestValues[y]??null),b=h[y];if(b===void 0||m&&oN(m,y))continue;const A={delay:r,...zh(u||{},y)},E=v.get();if(E!==void 0&&!v.isAnimating&&!Array.isArray(b)&&b===E&&!A.velocity)continue;let w=!1;if(window.MotionHandoffAnimation){const R=Pb(t);if(R){const N=window.MotionHandoffAnimation(R,y,Ke);N!==null&&(A.startTime=N,w=!0)}}Gd(t,y),v.start(Kh(y,v,b,t.shouldReduceMotion&&gb.has(y)?{type:!1}:A,t,w));const C=v.animation;C&&p.push(C)}return f&&Promise.all(p).then(()=>{Ke.update(()=>{f&&QR(t,f)})}),p}function qd(t,a,r={}){var p;const s=ro(t,a,r.type==="exit"?(p=t.presenceContext)==null?void 0:p.custom:void 0);let{transition:l=t.getDefaultTransition()||{}}=s||{};r.transitionOverride&&(l=r.transitionOverride);const u=s?()=>Promise.all(Hb(t,s,r)):()=>Promise.resolve(),f=t.variantChildren&&t.variantChildren.size?(m=0)=>{const{delayChildren:y=0,staggerChildren:v,staggerDirection:b}=l;return lN(t,a,y+m,v,b,r)}:()=>Promise.resolve(),{when:h}=l;if(h){const[m,y]=h==="beforeChildren"?[u,f]:[f,u];return m().then(()=>y())}else return Promise.all([u(),f(r.delay)])}function lN(t,a,r=0,s=0,l=1,u){const f=[],h=(t.variantChildren.size-1)*s,p=l===1?(m=0)=>m*s:(m=0)=>h-m*s;return Array.from(t.variantChildren).sort(cN).forEach((m,y)=>{m.notify("AnimationStart",a),f.push(qd(m,a,{...u,delay:r+p(y)}).then(()=>m.notify("AnimationComplete",a)))}),Promise.all(f)}function cN(t,a){return t.sortNodePosition(a)}function uN(t,a,r={}){t.notify("AnimationStart",a);let s;if(Array.isArray(a)){const l=a.map(u=>qd(t,u,r));s=Promise.all(l)}else if(typeof a=="string")s=qd(t,a,r);else{const l=typeof a=="function"?ro(t,a,r.custom):a;s=Promise.all(Hb(t,l,r))}return s.then(()=>{t.notify("AnimationComplete",a)})}function Gb(t,a){if(!Array.isArray(a))return!1;const r=a.length;if(r!==t.length)return!1;for(let s=0;s<r;s++)if(a[s]!==t[s])return!1;return!0}const fN=Hh.length;function qb(t){if(!t)return;if(!t.isControllingVariants){const r=t.parent?qb(t.parent)||{}:{};return t.props.initial!==void 0&&(r.initial=t.props.initial),r}const a={};for(let r=0;r<fN;r++){const s=Hh[r],l=t.props[s];(ao(l)||l===!1)&&(a[s]=l)}return a}const dN=[...Ph].reverse(),hN=Ph.length;function mN(t){return a=>Promise.all(a.map(({animation:r,options:s})=>uN(t,r,s)))}function pN(t){let a=mN(t),r=$v(),s=!0;const l=p=>(m,y)=>{var b;const v=ro(t,y,p==="exit"?(b=t.presenceContext)==null?void 0:b.custom:void 0);if(v){const{transition:A,transitionEnd:E,...w}=v;m={...m,...w,...E}}return m};function u(p){a=p(t)}function f(p){const{props:m}=t,y=qb(t.parent)||{},v=[],b=new Set;let A={},E=1/0;for(let C=0;C<hN;C++){const R=dN[C],N=r[R],j=m[R]!==void 0?m[R]:y[R],k=ao(j),_=R===p?N.isActive:null;_===!1&&(E=C);let $=j===y[R]&&j!==m[R]&&k;if($&&s&&t.manuallyAnimateOnMount&&($=!1),N.protectedKeys={...A},!N.isActive&&_===null||!j&&!N.prevProp||Sc(j)||typeof j=="boolean")continue;const Y=gN(N.prevProp,j);let U=Y||R===p&&N.isActive&&!$&&k||C>E&&k,Q=!1;const te=Array.isArray(j)?j:[j];let ce=te.reduce(l(R),{});_===!1&&(ce={});const{prevResolvedValues:ue={}}=N,ve={...ue,...ce},ge=q=>{U=!0,b.has(q)&&(Q=!0,b.delete(q)),N.needsAnimating[q]=!0;const P=t.getValue(q);P&&(P.liveStyle=!1)};for(const q in ve){const P=ce[q],re=ue[q];if(A.hasOwnProperty(q))continue;let D=!1;Hd(P)&&Hd(re)?D=!Gb(P,re):D=P!==re,D?P!=null?ge(q):b.add(q):P!==void 0&&b.has(q)?ge(q):N.protectedKeys[q]=!0}N.prevProp=j,N.prevResolvedValues=ce,N.isActive&&(A={...A,...ce}),s&&t.blockInitialAnimation&&(U=!1),U&&(!($&&Y)||Q)&&v.push(...te.map(q=>({animation:q,options:{type:R}})))}if(b.size){const C={};if(typeof m.initial!="boolean"){const R=ro(t,Array.isArray(m.initial)?m.initial[0]:m.initial);R&&R.transition&&(C.transition=R.transition)}b.forEach(R=>{const N=t.getBaseTarget(R),j=t.getValue(R);j&&(j.liveStyle=!0),C[R]=N??null}),v.push({animation:C})}let w=!!v.length;return s&&(m.initial===!1||m.initial===m.animate)&&!t.manuallyAnimateOnMount&&(w=!1),s=!1,w?a(v):Promise.resolve()}function h(p,m){var v;if(r[p].isActive===m)return Promise.resolve();(v=t.variantChildren)==null||v.forEach(b=>{var A;return(A=b.animationState)==null?void 0:A.setActive(p,m)}),r[p].isActive=m;const y=f(p);for(const b in r)r[b].protectedKeys={};return y}return{animateChanges:f,setActive:h,setAnimateFunction:u,getState:()=>r,reset:()=>{r=$v(),s=!0}}}function gN(t,a){return typeof a=="string"?a!==t:Array.isArray(a)?!Gb(a,t):!1}function pi(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $v(){return{animate:pi(!0),whileInView:pi(),whileHover:pi(),whileTap:pi(),whileDrag:pi(),whileFocus:pi(),exit:pi()}}class Ia{constructor(a){this.isMounted=!1,this.node=a}update(){}}class yN extends Ia{constructor(a){super(a),a.animationState||(a.animationState=pN(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();Sc(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:a}=this.node.getProps(),{animate:r}=this.node.prevProps||{};a!==r&&this.updateAnimationControlsSubscription()}unmount(){var a;this.node.animationState.reset(),(a=this.unmountControls)==null||a.call(this)}}let vN=0;class xN extends Ia{constructor(){super(...arguments),this.id=vN++}update(){if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:r}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===s)return;const l=this.node.animationState.setActive("exit",!a);r&&!a&&l.then(()=>{r(this.id)})}mount(){const{register:a,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),a&&(this.unmount=a(this.id))}unmount(){}}const bN={animation:{Feature:yN},exit:{Feature:xN}};function so(t,a,r,s={passive:!0}){return t.addEventListener(a,r,s),()=>t.removeEventListener(a,r)}function vo(t){return{point:{x:t.pageX,y:t.pageY}}}const SN=t=>a=>Uh(a)&&t(a,vo(a));function Ks(t,a,r,s){return so(t,a,SN(r),s)}function Yb({top:t,left:a,right:r,bottom:s}){return{x:{min:a,max:r},y:{min:t,max:s}}}function wN({x:t,y:a}){return{top:a.min,right:t.max,bottom:a.max,left:t.min}}function TN(t,a){if(!a)return t;const r=a({x:t.left,y:t.top}),s=a({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:s.y,right:s.x}}const Ib=1e-4,AN=1-Ib,EN=1+Ib,Fb=.01,CN=0-Fb,RN=0+Fb;function Et(t){return t.max-t.min}function NN(t,a,r){return Math.abs(t-a)<=r}function Zv(t,a,r,s=.5){t.origin=s,t.originPoint=Xe(a.min,a.max,t.origin),t.scale=Et(r)/Et(a),t.translate=Xe(r.min,r.max,t.origin)-t.originPoint,(t.scale>=AN&&t.scale<=EN||isNaN(t.scale))&&(t.scale=1),(t.translate>=CN&&t.translate<=RN||isNaN(t.translate))&&(t.translate=0)}function $s(t,a,r,s){Zv(t.x,a.x,r.x,s?s.originX:void 0),Zv(t.y,a.y,r.y,s?s.originY:void 0)}function Qv(t,a,r){t.min=r.min+a.min,t.max=t.min+Et(a)}function jN(t,a,r){Qv(t.x,a.x,r.x),Qv(t.y,a.y,r.y)}function Wv(t,a,r){t.min=a.min-r.min,t.max=t.min+Et(a)}function Zs(t,a,r){Wv(t.x,a.x,r.x),Wv(t.y,a.y,r.y)}const Jv=()=>({translate:0,scale:1,origin:0,originPoint:0}),xr=()=>({x:Jv(),y:Jv()}),e0=()=>({min:0,max:0}),tt=()=>({x:e0(),y:e0()});function nn(t){return[t("x"),t("y")]}function od(t){return t===void 0||t===1}function Yd({scale:t,scaleX:a,scaleY:r}){return!od(t)||!od(a)||!od(r)}function vi(t){return Yd(t)||Xb(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Xb(t){return t0(t.x)||t0(t.y)}function t0(t){return t&&t!=="0%"}function fc(t,a,r){const s=t-r,l=a*s;return r+l}function n0(t,a,r,s,l){return l!==void 0&&(t=fc(t,l,s)),fc(t,r,s)+a}function Id(t,a=0,r=1,s,l){t.min=n0(t.min,a,r,s,l),t.max=n0(t.max,a,r,s,l)}function Kb(t,{x:a,y:r}){Id(t.x,a.translate,a.scale,a.originPoint),Id(t.y,r.translate,r.scale,r.originPoint)}const a0=.999999999999,i0=1.0000000000001;function MN(t,a,r,s=!1){const l=r.length;if(!l)return;a.x=a.y=1;let u,f;for(let h=0;h<l;h++){u=r[h],f=u.projectionDelta;const{visualElement:p}=u.options;p&&p.props.style&&p.props.style.display==="contents"||(s&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Sr(t,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),f&&(a.x*=f.x.scale,a.y*=f.y.scale,Kb(t,f)),s&&vi(u.latestValues)&&Sr(t,u.latestValues))}a.x<i0&&a.x>a0&&(a.x=1),a.y<i0&&a.y>a0&&(a.y=1)}function br(t,a){t.min=t.min+a,t.max=t.max+a}function r0(t,a,r,s,l=.5){const u=Xe(t.min,t.max,l);Id(t,a,r,u,s)}function Sr(t,a){r0(t.x,a.x,a.scaleX,a.scale,a.originX),r0(t.y,a.y,a.scaleY,a.scale,a.originY)}function $b(t,a){return Yb(TN(t.getBoundingClientRect(),a))}function DN(t,a,r){const s=$b(t,r),{scroll:l}=a;return l&&(br(s.x,l.offset.x),br(s.y,l.offset.y)),s}const Zb=({current:t})=>t?t.ownerDocument.defaultView:null,s0=(t,a)=>Math.abs(t-a);function ON(t,a){const r=s0(t.x,a.x),s=s0(t.y,a.y);return Math.sqrt(r**2+s**2)}class Qb{constructor(a,r,{transformPagePoint:s,contextWindow:l,dragSnapToOrigin:u=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=cd(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,A=ON(v.offset,{x:0,y:0})>=3;if(!b&&!A)return;const{point:E}=v,{timestamp:w}=pt;this.history.push({...E,timestamp:w});const{onStart:C,onMove:R}=this.handlers;b||(C&&C(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,v)},this.handlePointerMove=(v,b)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=ld(b,this.transformPagePoint),Ke.update(this.updatePoint,!0)},this.handlePointerUp=(v,b)=>{this.end();const{onEnd:A,onSessionEnd:E,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=cd(v.type==="pointercancel"?this.lastMoveEventInfo:ld(b,this.transformPagePoint),this.history);this.startEvent&&A&&A(v,C),E&&E(v,C)},!Uh(a))return;this.dragSnapToOrigin=u,this.handlers=r,this.transformPagePoint=s,this.contextWindow=l||window;const f=vo(a),h=ld(f,this.transformPagePoint),{point:p}=h,{timestamp:m}=pt;this.history=[{...p,timestamp:m}];const{onSessionStart:y}=r;y&&y(a,cd(h,this.history)),this.removeListeners=po(Ks(this.contextWindow,"pointermove",this.handlePointerMove),Ks(this.contextWindow,"pointerup",this.handlePointerUp),Ks(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),Pa(this.updatePoint)}}function ld(t,a){return a?{point:a(t.point)}:t}function o0(t,a){return{x:t.x-a.x,y:t.y-a.y}}function cd({point:t},a){return{point:t,delta:o0(t,Wb(a)),offset:o0(t,_N(a)),velocity:LN(a,.1)}}function _N(t){return t[0]}function Wb(t){return t[t.length-1]}function LN(t,a){if(t.length<2)return{x:0,y:0};let r=t.length-1,s=null;const l=Wb(t);for(;r>=0&&(s=t[r],!(l.timestamp-s.timestamp>On(a)));)r--;if(!s)return{x:0,y:0};const u=_n(l.timestamp-s.timestamp);if(u===0)return{x:0,y:0};const f={x:(l.x-s.x)/u,y:(l.y-s.y)/u};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function VN(t,{min:a,max:r},s){return a!==void 0&&t<a?t=s?Xe(a,t,s.min):Math.max(t,a):r!==void 0&&t>r&&(t=s?Xe(r,t,s.max):Math.min(t,r)),t}function l0(t,a,r){return{min:a!==void 0?t.min+a:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function zN(t,{top:a,left:r,bottom:s,right:l}){return{x:l0(t.x,r,l),y:l0(t.y,a,s)}}function c0(t,a){let r=a.min-t.min,s=a.max-t.max;return a.max-a.min<t.max-t.min&&([r,s]=[s,r]),{min:r,max:s}}function kN(t,a){return{x:c0(t.x,a.x),y:c0(t.y,a.y)}}function BN(t,a){let r=.5;const s=Et(t),l=Et(a);return l>s?r=eo(a.min,a.max-s,t.min):s>l&&(r=eo(t.min,t.max-l,a.min)),oa(0,1,r)}function UN(t,a){const r={};return a.min!==void 0&&(r.min=a.min-t.min),a.max!==void 0&&(r.max=a.max-t.min),r}const Fd=.35;function PN(t=Fd){return t===!1?t=0:t===!0&&(t=Fd),{x:u0(t,"left","right"),y:u0(t,"top","bottom")}}function u0(t,a,r){return{min:f0(t,a),max:f0(t,r)}}function f0(t,a){return typeof t=="number"?t:t[a]||0}const HN=new WeakMap;class GN{constructor(a){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=tt(),this.visualElement=a}start(a,{snapToCursor:r=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const l=y=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(vo(y).point)},u=(y,v)=>{const{drag:b,dragPropagation:A,onDragStart:E}=this.getProps();if(b&&!A&&(this.openDragLock&&this.openDragLock(),this.openDragLock=rR(b),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nn(C=>{let R=this.getAxisMotionValue(C).get()||0;if(Ln.test(R)){const{projection:N}=this.visualElement;if(N&&N.layout){const j=N.layout.layoutBox[C];j&&(R=Et(j)*(parseFloat(R)/100))}}this.originPoint[C]=R}),E&&Ke.postRender(()=>E(y,v)),Gd(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},f=(y,v)=>{const{dragPropagation:b,dragDirectionLock:A,onDirectionLock:E,onDrag:w}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:C}=v;if(A&&this.currentDirection===null){this.currentDirection=qN(C),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",v.point,C),this.updateAxis("y",v.point,C),this.visualElement.render(),w&&w(y,v)},h=(y,v)=>this.stop(y,v),p=()=>nn(y=>{var v;return this.getAnimationState(y)==="paused"&&((v=this.getAxisMotionValue(y).animation)==null?void 0:v.play())}),{dragSnapToOrigin:m}=this.getProps();this.panSession=new Qb(a,{onSessionStart:l,onStart:u,onMove:f,onSessionEnd:h,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,contextWindow:Zb(this.visualElement)})}stop(a,r){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:l}=r;this.startAnimation(l);const{onDragEnd:u}=this.getProps();u&&Ke.postRender(()=>u(a,r))}cancel(){this.isDragging=!1;const{projection:a,animationState:r}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(a,r,s){const{drag:l}=this.getProps();if(!s||!Ul(a,l,this.currentDirection))return;const u=this.getAxisMotionValue(a);let f=this.originPoint[a]+s[a];this.constraints&&this.constraints[a]&&(f=VN(f,this.constraints[a],this.elastic[a])),u.set(f)}resolveConstraints(){var u;const{dragConstraints:a,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(u=this.visualElement.projection)==null?void 0:u.layout,l=this.constraints;a&&vr(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&s?this.constraints=zN(s.layoutBox,a):this.constraints=!1,this.elastic=PN(r),l!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&nn(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=UN(s.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:r}=this.getProps();if(!a||!vr(a))return!1;const s=a.current,{projection:l}=this.visualElement;if(!l||!l.layout)return!1;const u=DN(s,l.root,this.visualElement.getTransformPagePoint());let f=kN(l.layout.layoutBox,u);if(r){const h=r(wN(f));this.hasMutatedConstraints=!!h,h&&(f=Yb(h))}return f}startAnimation(a){const{drag:r,dragMomentum:s,dragElastic:l,dragTransition:u,dragSnapToOrigin:f,onDragTransitionEnd:h}=this.getProps(),p=this.constraints||{},m=nn(y=>{if(!Ul(y,r,this.currentDirection))return;let v=p&&p[y]||{};f&&(v={min:0,max:0});const b=l?200:1e6,A=l?40:1e7,E={type:"inertia",velocity:s?a[y]:0,bounceStiffness:b,bounceDamping:A,timeConstant:750,restDelta:1,restSpeed:10,...u,...v};return this.startAxisValueAnimation(y,E)});return Promise.all(m).then(h)}startAxisValueAnimation(a,r){const s=this.getAxisMotionValue(a);return Gd(this.visualElement,a),s.start(Kh(a,s,0,r,this.visualElement,!1))}stopAnimation(){nn(a=>this.getAxisMotionValue(a).stop())}pauseAnimation(){nn(a=>{var r;return(r=this.getAxisMotionValue(a).animation)==null?void 0:r.pause()})}getAnimationState(a){var r;return(r=this.getAxisMotionValue(a).animation)==null?void 0:r.state}getAxisMotionValue(a){const r=`_drag${a.toUpperCase()}`,s=this.visualElement.getProps(),l=s[r];return l||this.visualElement.getValue(a,(s.initial?s.initial[a]:void 0)||0)}snapToCursor(a){nn(r=>{const{drag:s}=this.getProps();if(!Ul(r,s,this.currentDirection))return;const{projection:l}=this.visualElement,u=this.getAxisMotionValue(r);if(l&&l.layout){const{min:f,max:h}=l.layout.layoutBox[r];u.set(a[r]-Xe(f,h,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:r}=this.getProps(),{projection:s}=this.visualElement;if(!vr(r)||!s||!this.constraints)return;this.stopAnimation();const l={x:0,y:0};nn(f=>{const h=this.getAxisMotionValue(f);if(h&&this.constraints!==!1){const p=h.get();l[f]=BN({min:p,max:p},this.constraints[f])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),nn(f=>{if(!Ul(f,a,null))return;const h=this.getAxisMotionValue(f),{min:p,max:m}=this.constraints[f];h.set(Xe(p,m,l[f]))})}addListeners(){if(!this.visualElement.current)return;HN.set(this.visualElement,this);const a=this.visualElement.current,r=Ks(a,"pointerdown",p=>{const{drag:m,dragListener:y=!0}=this.getProps();m&&y&&this.start(p)}),s=()=>{const{dragConstraints:p}=this.getProps();vr(p)&&p.current&&(this.constraints=this.resolveRefConstraints())},{projection:l}=this.visualElement,u=l.addEventListener("measure",s);l&&!l.layout&&(l.root&&l.root.updateScroll(),l.updateLayout()),Ke.read(s);const f=so(window,"resize",()=>this.scalePositionWithinConstraints()),h=l.addEventListener("didUpdate",({delta:p,hasLayoutChanged:m})=>{this.isDragging&&m&&(nn(y=>{const v=this.getAxisMotionValue(y);v&&(this.originPoint[y]+=p[y].translate,v.set(v.get()+p[y].translate))}),this.visualElement.render())});return()=>{f(),r(),u(),h&&h()}}getProps(){const a=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:s=!1,dragPropagation:l=!1,dragConstraints:u=!1,dragElastic:f=Fd,dragMomentum:h=!0}=a;return{...a,drag:r,dragDirectionLock:s,dragPropagation:l,dragConstraints:u,dragElastic:f,dragMomentum:h}}}function Ul(t,a,r){return(a===!0||a===t)&&(r===null||r===t)}function qN(t,a=10){let r=null;return Math.abs(t.y)>a?r="y":Math.abs(t.x)>a&&(r="x"),r}class YN extends Ia{constructor(a){super(a),this.removeGroupControls=rn,this.removeListeners=rn,this.controls=new GN(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||rn}unmount(){this.removeGroupControls(),this.removeListeners()}}const d0=t=>(a,r)=>{t&&Ke.postRender(()=>t(a,r))};class IN extends Ia{constructor(){super(...arguments),this.removePointerDownListener=rn}onPointerDown(a){this.session=new Qb(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Zb(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:r,onPan:s,onPanEnd:l}=this.node.getProps();return{onSessionStart:d0(a),onStart:d0(r),onMove:s,onEnd:(u,f)=>{delete this.session,l&&Ke.postRender(()=>l(u,f))}}}mount(){this.removePointerDownListener=Ks(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const tc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function h0(t,a){return a.max===a.min?0:t/(a.max-a.min)*100}const Gs={correct:(t,a)=>{if(!a.target)return t;if(typeof t=="string")if(pe.test(t))t=parseFloat(t);else return t;const r=h0(t,a.target.x),s=h0(t,a.target.y);return`${r}% ${s}%`}},FN={correct:(t,{treeScale:a,projectionDelta:r})=>{const s=t,l=Ha.parse(t);if(l.length>5)return s;const u=Ha.createTransformer(t),f=typeof l[0]!="number"?1:0,h=r.x.scale*a.x,p=r.y.scale*a.y;l[0+f]/=h,l[1+f]/=p;const m=Xe(h,p,.5);return typeof l[2+f]=="number"&&(l[2+f]/=m),typeof l[3+f]=="number"&&(l[3+f]/=m),u(l)}};class XN extends S.Component{componentDidMount(){const{visualElement:a,layoutGroup:r,switchLayoutGroup:s,layoutId:l}=this.props,{projection:u}=a;DR(KN),u&&(r.group&&r.group.add(u),s&&s.register&&l&&s.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,onExitComplete:()=>this.safeToRemove()})),tc.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:r,visualElement:s,drag:l,isPresent:u}=this.props,{projection:f}=s;return f&&(f.isPresent=u,l||a.layoutDependency!==r||r===void 0||a.isPresent!==u?f.willUpdate():this.safeToRemove(),a.isPresent!==u&&(u?f.promote():f.relegate()||Ke.postRender(()=>{const h=f.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),Bh.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:r,switchLayoutGroup:s}=this.props,{projection:l}=a;l&&(l.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(l),s&&s.deregister&&s.deregister(l))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function Jb(t){const[a,r]=mR(),s=S.useContext(Vx);return g.jsx(XN,{...t,layoutGroup:s,switchLayoutGroup:S.useContext(Db),isPresent:a,safeToRemove:r})}const KN={borderRadius:{...Gs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Gs,borderTopRightRadius:Gs,borderBottomLeftRadius:Gs,borderBottomRightRadius:Gs,boxShadow:FN};function $N(t,a,r){const s=St(t)?t:Ar(t);return s.start(Kh("",s,a,r)),s.animation}const ZN=(t,a)=>t.depth-a.depth;class QN{constructor(){this.children=[],this.isDirty=!1}add(a){xh(this.children,a),this.isDirty=!0}remove(a){bh(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(ZN),this.isDirty=!1,this.children.forEach(a)}}function WN(t,a){const r=_t.now(),s=({timestamp:l})=>{const u=l-r;u>=a&&(Pa(s),t(u-a))};return Ke.setup(s,!0),()=>Pa(s)}const eS=["TopLeft","TopRight","BottomLeft","BottomRight"],JN=eS.length,m0=t=>typeof t=="string"?parseFloat(t):t,p0=t=>typeof t=="number"||pe.test(t);function ej(t,a,r,s,l,u){l?(t.opacity=Xe(0,r.opacity??1,tj(s)),t.opacityExit=Xe(a.opacity??1,0,nj(s))):u&&(t.opacity=Xe(a.opacity??1,r.opacity??1,s));for(let f=0;f<JN;f++){const h=`border${eS[f]}Radius`;let p=g0(a,h),m=g0(r,h);if(p===void 0&&m===void 0)continue;p||(p=0),m||(m=0),p===0||m===0||p0(p)===p0(m)?(t[h]=Math.max(Xe(m0(p),m0(m),s),0),(Ln.test(m)||Ln.test(p))&&(t[h]+="%")):t[h]=m}(a.rotate||r.rotate)&&(t.rotate=Xe(a.rotate||0,r.rotate||0,s))}function g0(t,a){return t[a]!==void 0?t[a]:t.borderRadius}const tj=tS(0,.5,Fx),nj=tS(.5,.95,rn);function tS(t,a,r){return s=>s<t?0:s>a?1:r(eo(t,a,s))}function y0(t,a){t.min=a.min,t.max=a.max}function tn(t,a){y0(t.x,a.x),y0(t.y,a.y)}function v0(t,a){t.translate=a.translate,t.scale=a.scale,t.originPoint=a.originPoint,t.origin=a.origin}function x0(t,a,r,s,l){return t-=a,t=fc(t,1/r,s),l!==void 0&&(t=fc(t,1/l,s)),t}function aj(t,a=0,r=1,s=.5,l,u=t,f=t){if(Ln.test(a)&&(a=parseFloat(a),a=Xe(f.min,f.max,a/100)-f.min),typeof a!="number")return;let h=Xe(u.min,u.max,s);t===u&&(h-=a),t.min=x0(t.min,a,r,h,l),t.max=x0(t.max,a,r,h,l)}function b0(t,a,[r,s,l],u,f){aj(t,a[r],a[s],a[l],a.scale,u,f)}const ij=["x","scaleX","originX"],rj=["y","scaleY","originY"];function S0(t,a,r,s){b0(t.x,a,ij,r?r.x:void 0,s?s.x:void 0),b0(t.y,a,rj,r?r.y:void 0,s?s.y:void 0)}function w0(t){return t.translate===0&&t.scale===1}function nS(t){return w0(t.x)&&w0(t.y)}function T0(t,a){return t.min===a.min&&t.max===a.max}function sj(t,a){return T0(t.x,a.x)&&T0(t.y,a.y)}function A0(t,a){return Math.round(t.min)===Math.round(a.min)&&Math.round(t.max)===Math.round(a.max)}function aS(t,a){return A0(t.x,a.x)&&A0(t.y,a.y)}function E0(t){return Et(t.x)/Et(t.y)}function C0(t,a){return t.translate===a.translate&&t.scale===a.scale&&t.originPoint===a.originPoint}class oj{constructor(){this.members=[]}add(a){xh(this.members,a),a.scheduleRender()}remove(a){if(bh(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(a){const r=this.members.findIndex(l=>a===l);if(r===0)return!1;let s;for(let l=r;l>=0;l--){const u=this.members[l];if(u.isPresent!==!1){s=u;break}}return s?(this.promote(s),!0):!1}promote(a,r){const s=this.lead;if(a!==s&&(this.prevLead=s,this.lead=a,a.show(),s)){s.instance&&s.scheduleRender(),a.scheduleRender(),a.resumeFrom=s,r&&(a.resumeFrom.preserveOpacity=!0),s.snapshot&&(a.snapshot=s.snapshot,a.snapshot.latestValues=s.animationValues||s.latestValues),a.root&&a.root.isUpdating&&(a.isLayoutDirty=!0);const{crossfade:l}=a.options;l===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(a=>{const{options:r,resumingFrom:s}=a;r.onExitComplete&&r.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(a=>{a.instance&&a.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function lj(t,a,r){let s="";const l=t.x.translate/a.x,u=t.y.translate/a.y,f=(r==null?void 0:r.z)||0;if((l||u||f)&&(s=`translate3d(${l}px, ${u}px, ${f}px) `),(a.x!==1||a.y!==1)&&(s+=`scale(${1/a.x}, ${1/a.y}) `),r){const{transformPerspective:m,rotate:y,rotateX:v,rotateY:b,skewX:A,skewY:E}=r;m&&(s=`perspective(${m}px) ${s}`),y&&(s+=`rotate(${y}deg) `),v&&(s+=`rotateX(${v}deg) `),b&&(s+=`rotateY(${b}deg) `),A&&(s+=`skewX(${A}deg) `),E&&(s+=`skewY(${E}deg) `)}const h=t.x.scale*a.x,p=t.y.scale*a.y;return(h!==1||p!==1)&&(s+=`scale(${h}, ${p})`),s||"none"}const ud=["","X","Y","Z"],cj={visibility:"hidden"},uj=1e3;let fj=0;function fd(t,a,r,s){const{latestValues:l}=a;l[t]&&(r[t]=l[t],a.setStaticValue(t,0),s&&(s[t]=0))}function iS(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:a}=t.options;if(!a)return;const r=Pb(a);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:l,layoutId:u}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",Ke,!(l||u))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&iS(s)}function rS({attachResizeListener:t,defaultParent:a,measureScroll:r,checkIsScrollRoot:s,resetTransform:l}){return class{constructor(f={},h=a==null?void 0:a()){this.id=fj++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(mj),this.nodes.forEach(xj),this.nodes.forEach(bj),this.nodes.forEach(pj)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new QN)}addEventListener(f,h){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new Th),this.eventHandlers.get(f).add(h)}notifyListeners(f,...h){const p=this.eventHandlers.get(f);p&&p.notify(...h)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=Eb(f)&&!fR(f),this.instance=f;const{layoutId:h,layout:p,visualElement:m}=this.options;if(m&&!m.current&&m.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(p||h)&&(this.isLayoutDirty=!0),t){let y;const v=()=>this.root.updateBlockedByResize=!1;t(f,()=>{this.root.updateBlockedByResize=!0,y&&y(),y=WN(v,250),tc.hasAnimatedSinceResize&&(tc.hasAnimatedSinceResize=!1,this.nodes.forEach(N0))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&m&&(h||p)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:v,hasRelativeLayoutChanged:b,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||m.getDefaultTransition()||Ej,{onLayoutAnimationStart:w,onLayoutAnimationComplete:C}=m.getProps(),R=!this.targetLayout||!aS(this.targetLayout,A),N=!v&&b;if(this.options.layoutRoot||this.resumeFrom||N||v&&(R||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const j={...zh(E,"layout"),onPlay:w,onComplete:C};(m.shouldReduceMotion||this.options.layoutRoot)&&(j.delay=0,j.type=!1),this.startAnimation(j),this.setAnimationOrigin(y,N)}else v||N0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=A})}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(),Pa(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(Sj),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&&iS(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const v=this.path[y];v.shouldResetTransform=!0,v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:h,layout:p}=this.options;if(h===void 0&&!p)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(R0);return}this.isUpdating||this.nodes.forEach(yj),this.isUpdating=!1,this.nodes.forEach(vj),this.nodes.forEach(dj),this.nodes.forEach(hj),this.clearAllSnapshots();const h=_t.now();pt.delta=oa(0,1e3/60,h-pt.timestamp),pt.timestamp=h,pt.isProcessing=!0,td.update.process(pt),td.preRender.process(pt),td.render.process(pt),pt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Bh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(gj),this.sharedNodes.forEach(wj)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ke.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ke.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Et(this.snapshot.measuredBox.x)&&!Et(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 p=0;p<this.path.length;p++)this.path[p].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutCorrected=tt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(h=!1),h&&this.instance){const p=s(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:p,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:p}}}resetTransform(){if(!l)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!nS(this.projectionDelta),p=this.getTransformTemplate(),m=p?p(this.latestValues,""):void 0,y=m!==this.prevTransformTemplateValue;f&&this.instance&&(h||vi(this.latestValues)||y)&&(l(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const h=this.measurePageBox();let p=this.removeElementScroll(h);return f&&(p=this.removeTransform(p)),Cj(p),{animationId:this.root.animationId,measuredBox:h,layoutBox:p,latestValues:{},source:this.id}}measurePageBox(){var m;const{visualElement:f}=this.options;if(!f)return tt();const h=f.measureViewportBox();if(!(((m=this.scroll)==null?void 0:m.wasRoot)||this.path.some(Rj))){const{scroll:y}=this.root;y&&(br(h.x,y.offset.x),br(h.y,y.offset.y))}return h}removeElementScroll(f){var p;const h=tt();if(tn(h,f),(p=this.scroll)!=null&&p.wasRoot)return h;for(let m=0;m<this.path.length;m++){const y=this.path[m],{scroll:v,options:b}=y;y!==this.root&&v&&b.layoutScroll&&(v.wasRoot&&tn(h,f),br(h.x,v.offset.x),br(h.y,v.offset.y))}return h}applyTransform(f,h=!1){const p=tt();tn(p,f);for(let m=0;m<this.path.length;m++){const y=this.path[m];!h&&y.options.layoutScroll&&y.scroll&&y!==y.root&&Sr(p,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),vi(y.latestValues)&&Sr(p,y.latestValues)}return vi(this.latestValues)&&Sr(p,this.latestValues),p}removeTransform(f){const h=tt();tn(h,f);for(let p=0;p<this.path.length;p++){const m=this.path[p];if(!m.instance||!vi(m.latestValues))continue;Yd(m.latestValues)&&m.updateSnapshot();const y=tt(),v=m.measurePageBox();tn(y,v),S0(h,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,y)}return vi(this.latestValues)&&S0(h,this.latestValues),h}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!==pt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){var b;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==h;if(!(f||p&&this.isSharedProjectionDirty||this.isProjectionDirty||(b=this.parent)!=null&&b.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:v}=this.options;if(!(!this.layout||!(y||v))){if(this.resolvedRelativeTargetAt=pt.timestamp,!this.targetDelta&&!this.relativeTarget){const A=this.getClosestProjectingParent();A&&A.layout&&this.animationProgress!==1?(this.relativeParent=A,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tt(),this.relativeTargetOrigin=tt(),Zs(this.relativeTargetOrigin,this.layout.layoutBox,A.layout.layoutBox),tn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=tt(),this.targetWithTransforms=tt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),jN(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):tn(this.target,this.layout.layoutBox),Kb(this.target,this.targetDelta)):tn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const A=this.getClosestProjectingParent();A&&!!A.resumingFrom==!!this.resumingFrom&&!A.options.layoutScroll&&A.target&&this.animationProgress!==1?(this.relativeParent=A,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tt(),this.relativeTargetOrigin=tt(),Zs(this.relativeTargetOrigin,this.target,A.target),tn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Yd(this.parent.latestValues)||Xb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var E;const f=this.getLead(),h=!!this.resumingFrom||this!==f;let p=!0;if((this.isProjectionDirty||(E=this.parent)!=null&&E.isProjectionDirty)&&(p=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===pt.timestamp&&(p=!1),p)return;const{layout:m,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||y))return;tn(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,b=this.treeScale.y;MN(this.layoutCorrected,this.treeScale,this.path,h),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=tt());const{target:A}=f;if(!A){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(v0(this.prevProjectionDelta.x,this.projectionDelta.x),v0(this.prevProjectionDelta.y,this.projectionDelta.y)),$s(this.projectionDelta,this.layoutCorrected,A,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==b||!C0(this.projectionDelta.x,this.prevProjectionDelta.x)||!C0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){var h;if((h=this.options.visualElement)==null||h.scheduleRender(),f){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=xr(),this.projectionDelta=xr(),this.projectionDeltaWithTransform=xr()}setAnimationOrigin(f,h=!1){const p=this.snapshot,m=p?p.latestValues:{},y={...this.latestValues},v=xr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const b=tt(),A=p?p.source:void 0,E=this.layout?this.layout.source:void 0,w=A!==E,C=this.getStack(),R=!C||C.members.length<=1,N=!!(w&&!R&&this.options.crossfade===!0&&!this.path.some(Aj));this.animationProgress=0;let j;this.mixTargetDelta=k=>{const _=k/1e3;j0(v.x,f.x,_),j0(v.y,f.y,_),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Zs(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Tj(this.relativeTarget,this.relativeTargetOrigin,b,_),j&&sj(this.relativeTarget,j)&&(this.isProjectionDirty=!1),j||(j=tt()),tn(j,this.relativeTarget)),w&&(this.animationValues=y,ej(y,m,this.latestValues,_,N,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){var h,p,m;this.notifyListeners("animationStart"),(h=this.currentAnimation)==null||h.stop(),(m=(p=this.resumingFrom)==null?void 0:p.currentAnimation)==null||m.stop(),this.pendingAnimation&&(Pa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ke.update(()=>{tc.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ar(0)),this.currentAnimation=$N(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),f.onUpdate&&f.onUpdate(y)},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(uj),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:h,target:p,layout:m,latestValues:y}=f;if(!(!h||!p||!m)){if(this!==f&&this.layout&&m&&sS(this.options.animationType,this.layout.layoutBox,m.layoutBox)){p=this.target||tt();const v=Et(this.layout.layoutBox.x);p.x.min=f.target.x.min,p.x.max=p.x.min+v;const b=Et(this.layout.layoutBox.y);p.y.min=f.target.y.min,p.y.max=p.y.min+b}tn(h,p),Sr(h,y),$s(this.projectionDeltaWithTransform,this.layoutCorrected,h,y)}}registerSharedNode(f,h){this.sharedNodes.has(f)||this.sharedNodes.set(f,new oj),this.sharedNodes.get(f).add(h);const m=h.options.initialPromotionConfig;h.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(h):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){var h;const{layoutId:f}=this.options;return f?((h=this.getStack())==null?void 0:h.lead)||this:this}getPrevLead(){var h;const{layoutId:f}=this.options;return f?(h=this.getStack())==null?void 0:h.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:h,preserveFollowOpacity:p}={}){const m=this.getStack();m&&m.promote(this,p),f&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let h=!1;const{latestValues:p}=f;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(h=!0),!h)return;const m={};p.z&&fd("z",f,m,this.animationValues);for(let y=0;y<ud.length;y++)fd(`rotate${ud[y]}`,f,m,this.animationValues),fd(`skew${ud[y]}`,f,m,this.animationValues);f.render();for(const y in m)f.setStaticValue(y,m[y]),this.animationValues&&(this.animationValues[y]=m[y]);f.scheduleRender()}getProjectionStyles(f){if(!this.instance||this.isSVG)return;if(!this.isVisible)return cj;const h={visibility:""},p=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,h.opacity="",h.pointerEvents=ec(f==null?void 0:f.pointerEvents)||"",h.transform=p?p(this.latestValues,""):"none",h;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const A={};return this.options.layoutId&&(A.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,A.pointerEvents=ec(f==null?void 0:f.pointerEvents)||""),this.hasProjected&&!vi(this.latestValues)&&(A.transform=p?p({},""):"none",this.hasProjected=!1),A}const y=m.animationValues||m.latestValues;this.applyTransformsToTarget(),h.transform=lj(this.projectionDeltaWithTransform,this.treeScale,y),p&&(h.transform=p(y,h.transform));const{x:v,y:b}=this.projectionDelta;h.transformOrigin=`${v.origin*100}% ${b.origin*100}% 0`,m.animationValues?h.opacity=m===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:h.opacity=m===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const A in io){if(y[A]===void 0)continue;const{correct:E,applyTo:w,isCSSVariable:C}=io[A],R=h.transform==="none"?y[A]:E(y[A],m);if(w){const N=w.length;for(let j=0;j<N;j++)h[w[j]]=R}else C?this.options.visualElement.renderState.vars[A]=R:h[A]=R}return this.options.layoutId&&(h.pointerEvents=m===this?ec(f==null?void 0:f.pointerEvents)||"":"none"),h}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>{var h;return(h=f.currentAnimation)==null?void 0:h.stop()}),this.root.nodes.forEach(R0),this.root.sharedNodes.clear()}}}function dj(t){t.updateLayout()}function hj(t){var r;const a=((r=t.resumeFrom)==null?void 0:r.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&a&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:l}=t.layout,{animationType:u}=t.options,f=a.source!==t.layout.source;u==="size"?nn(v=>{const b=f?a.measuredBox[v]:a.layoutBox[v],A=Et(b);b.min=s[v].min,b.max=b.min+A}):sS(u,a.layoutBox,s)&&nn(v=>{const b=f?a.measuredBox[v]:a.layoutBox[v],A=Et(s[v]);b.max=b.min+A,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[v].max=t.relativeTarget[v].min+A)});const h=xr();$s(h,s,a.layoutBox);const p=xr();f?$s(p,t.applyTransform(l,!0),a.measuredBox):$s(p,s,a.layoutBox);const m=!nS(h);let y=!1;if(!t.resumeFrom){const v=t.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:b,layout:A}=v;if(b&&A){const E=tt();Zs(E,a.layoutBox,b.layoutBox);const w=tt();Zs(w,s,A.layoutBox),aS(E,w)||(y=!0),v.options.layoutRoot&&(t.relativeTarget=w,t.relativeTargetOrigin=E,t.relativeParent=v)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:p,layoutDelta:h,hasLayoutChanged:m,hasRelativeLayoutChanged:y})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function mj(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function pj(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function gj(t){t.clearSnapshot()}function R0(t){t.clearMeasurements()}function yj(t){t.isLayoutDirty=!1}function vj(t){const{visualElement:a}=t.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),t.resetTransform()}function N0(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function xj(t){t.resolveTargetDelta()}function bj(t){t.calcProjection()}function Sj(t){t.resetSkewAndRotation()}function wj(t){t.removeLeadSnapshot()}function j0(t,a,r){t.translate=Xe(a.translate,0,r),t.scale=Xe(a.scale,1,r),t.origin=a.origin,t.originPoint=a.originPoint}function M0(t,a,r,s){t.min=Xe(a.min,r.min,s),t.max=Xe(a.max,r.max,s)}function Tj(t,a,r,s){M0(t.x,a.x,r.x,s),M0(t.y,a.y,r.y,s)}function Aj(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Ej={duration:.45,ease:[.4,0,.1,1]},D0=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),O0=D0("applewebkit/")&&!D0("chrome/")?Math.round:rn;function _0(t){t.min=O0(t.min),t.max=O0(t.max)}function Cj(t){_0(t.x),_0(t.y)}function sS(t,a,r){return t==="position"||t==="preserve-aspect"&&!NN(E0(a),E0(r),.2)}function Rj(t){var a;return t!==t.root&&((a=t.scroll)==null?void 0:a.wasRoot)}const Nj=rS({attachResizeListener:(t,a)=>so(t,"resize",a),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),dd={current:void 0},oS=rS({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!dd.current){const t=new Nj({});t.mount(window),t.setOptions({layoutScroll:!0}),dd.current=t}return dd.current},resetTransform:(t,a)=>{t.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),jj={pan:{Feature:IN},drag:{Feature:YN,ProjectionNode:oS,MeasureLayout:Jb}};function L0(t,a,r){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",r==="Start");const l="onHover"+r,u=s[l];u&&Ke.postRender(()=>u(a,vo(a)))}class Mj extends Ia{mount(){const{current:a}=this.node;a&&(this.unmount=sR(a,(r,s)=>(L0(this.node,s,"Start"),l=>L0(this.node,l,"End"))))}unmount(){}}class Dj extends Ia{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch{a=!0}!a||!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=po(so(this.node.current,"focus",()=>this.onFocus()),so(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function V0(t,a,r){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",r==="Start");const l="onTap"+(r==="End"?"":r),u=s[l];u&&Ke.postRender(()=>u(a,vo(a)))}class Oj extends Ia{mount(){const{current:a}=this.node;a&&(this.unmount=uR(a,(r,s)=>(V0(this.node,s,"Start"),(l,{success:u})=>V0(this.node,l,u?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Xd=new WeakMap,hd=new WeakMap,_j=t=>{const a=Xd.get(t.target);a&&a(t)},Lj=t=>{t.forEach(_j)};function Vj({root:t,...a}){const r=t||document;hd.has(r)||hd.set(r,{});const s=hd.get(r),l=JSON.stringify(a);return s[l]||(s[l]=new IntersectionObserver(Lj,{root:t,...a})),s[l]}function zj(t,a,r){const s=Vj(a);return Xd.set(t,r),s.observe(t),()=>{Xd.delete(t),s.unobserve(t)}}const kj={some:0,all:1};class Bj extends Ia{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:a={}}=this.node.getProps(),{root:r,margin:s,amount:l="some",once:u}=a,f={root:r?r.current:void 0,rootMargin:s,threshold:typeof l=="number"?l:kj[l]},h=p=>{const{isIntersecting:m}=p;if(this.isInView===m||(this.isInView=m,u&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:y,onViewportLeave:v}=this.node.getProps(),b=m?y:v;b&&b(p)};return zj(this.node.current,f,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:a,prevProps:r}=this.node;["amount","margin","root"].some(Uj(a,r))&&this.startObserver()}unmount(){}}function Uj({viewport:t={}},{viewport:a={}}={}){return r=>t[r]!==a[r]}const Pj={inView:{Feature:Bj},tap:{Feature:Oj},focus:{Feature:Dj},hover:{Feature:Mj}},Hj={layout:{ProjectionNode:oS,MeasureLayout:Jb}},Kd={current:null},lS={current:!1};function Gj(){if(lS.current=!0,!!yh)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),a=()=>Kd.current=t.matches;t.addListener(a),a()}else Kd.current=!1}const qj=new WeakMap;function Yj(t,a,r){for(const s in a){const l=a[s],u=r[s];if(St(l))t.addValue(s,l);else if(St(u))t.addValue(s,Ar(l,{owner:t}));else if(u!==l)if(t.hasValue(s)){const f=t.getValue(s);f.liveStyle===!0?f.jump(l):f.hasAnimated||f.set(l)}else{const f=t.getStaticValue(s);t.addValue(s,Ar(f!==void 0?f:l,{owner:t}))}}for(const s in r)a[s]===void 0&&t.removeValue(s);return a}const z0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ij{scrapeMotionValuesFromProps(a,r,s){return{}}constructor({parent:a,props:r,presenceContext:s,reducedMotionConfig:l,blockInitialAnimation:u,visualState:f},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Vh,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 b=_t.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,Ke.render(this.render,!1,!0))};const{latestValues:p,renderState:m}=f;this.latestValues=p,this.baseTarget={...p},this.initialValues=r.initial?{...p}:{},this.renderState=m,this.parent=a,this.props=r,this.presenceContext=s,this.depth=a?a.depth+1:0,this.reducedMotionConfig=l,this.options=h,this.blockInitialAnimation=!!u,this.isControllingVariants=wc(r),this.isVariantNode=jb(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:y,...v}=this.scrapeMotionValuesFromProps(r,{},this);for(const b in v){const A=v[b];p[b]!==void 0&&St(A)&&A.set(p[b],!1)}}mount(a){this.current=a,qj.set(a,this),this.projection&&!this.projection.instance&&this.projection.mount(a),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,s)=>this.bindToMotionValue(s,r)),lS.current||Gj(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Kd.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Pa(this.notifyUpdate),Pa(this.render),this.valueSubscriptions.forEach(a=>a()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const a in this.events)this.events[a].clear();for(const a in this.features){const r=this.features[a];r&&(r.unmount(),r.isMounted=!1)}this.current=null}bindToMotionValue(a,r){this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)();const s=Lr.has(a);s&&this.onBindTransform&&this.onBindTransform();const l=r.on("change",h=>{this.latestValues[a]=h,this.props.onUpdate&&Ke.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),u=r.on("renderRequest",this.scheduleRender);let f;window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,a,r)),this.valueSubscriptions.set(a,()=>{l(),u(),f&&f(),r.owner&&r.stop()})}sortNodePosition(a){return!this.current||!this.sortInstanceNodePosition||this.type!==a.type?0:this.sortInstanceNodePosition(this.current,a.current)}updateFeatures(){let a="animation";for(a in Er){const r=Er[a];if(!r)continue;const{isEnabled:s,Feature:l}=r;if(!this.features[a]&&l&&s(this.props)&&(this.features[a]=new l(this)),this.features[a]){const u=this.features[a];u.isMounted?u.update():(u.mount(),u.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):tt()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,r){this.latestValues[a]=r}update(a,r){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let s=0;s<z0.length;s++){const l=z0[s];this.propEventSubscriptions[l]&&(this.propEventSubscriptions[l](),delete this.propEventSubscriptions[l]);const u="on"+l,f=a[u];f&&(this.propEventSubscriptions[l]=this.on(l,f))}this.prevMotionValues=Yj(this,this.scrapeMotionValuesFromProps(a,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(a){return this.props.variants?this.props.variants[a]: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(a){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(a),()=>r.variantChildren.delete(a)}addValue(a,r){const s=this.values.get(a);r!==s&&(s&&this.removeValue(a),this.bindToMotionValue(a,r),this.values.set(a,r),this.latestValues[a]=r.get())}removeValue(a){this.values.delete(a);const r=this.valueSubscriptions.get(a);r&&(r(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,r){if(this.props.values&&this.props.values[a])return this.props.values[a];let s=this.values.get(a);return s===void 0&&r!==void 0&&(s=Ar(r===null?void 0:r,{owner:this}),this.addValue(a,s)),s}readValue(a,r){let s=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options);return s!=null&&(typeof s=="string"&&(zx(s)||Bx(s))?s=parseFloat(s):!hR(s)&&Ha.test(r)&&(s=bb(a,r)),this.setBaseTarget(a,St(s)?s.get():s)),St(s)?s.get():s}setBaseTarget(a,r){this.baseTarget[a]=r}getBaseTarget(a){var u;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const f=Fh(this.props,r,(u=this.presenceContext)==null?void 0:u.custom);f&&(s=f[a])}if(r&&s!==void 0)return s;const l=this.getBaseTargetFromProps(this.props,a);return l!==void 0&&!St(l)?l:this.initialValues[a]!==void 0&&s===void 0?void 0:this.baseTarget[a]}on(a,r){return this.events[a]||(this.events[a]=new Th),this.events[a].add(r)}notify(a,...r){this.events[a]&&this.events[a].notify(...r)}}class cS extends Ij{constructor(){super(...arguments),this.KeyframeResolver=tR}sortInstanceNodePosition(a,r){return a.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(a,r){return a.style?a.style[r]:void 0}removeValueFromRenderState(a,{vars:r,style:s}){delete r[a],delete s[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;St(a)&&(this.childSubscription=a.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function uS(t,{style:a,vars:r},s,l){Object.assign(t.style,a,l&&l.getProjectionStyles(s));for(const u in r)t.style.setProperty(u,r[u])}function Fj(t){return window.getComputedStyle(t)}class Xj extends cS{constructor(){super(...arguments),this.type="html",this.renderInstance=uS}readValueFromInstance(a,r){var s;if(Lr.has(r))return(s=this.projection)!=null&&s.isProjecting?Vd(r):b2(a,r);{const l=Fj(a),u=(Ch(r)?l.getPropertyValue(r):l[r])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(a,{transformPagePoint:r}){return $b(a,r)}build(a,r,s){qh(a,r,s.transformTemplate)}scrapeMotionValuesFromProps(a,r,s){return Xh(a,r,s)}}const fS=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 Kj(t,a,r,s){uS(t,a,void 0,s);for(const l in a.attrs)t.setAttribute(fS.has(l)?l:Gh(l),a.attrs[l])}class $j extends cS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tt}getBaseTargetFromProps(a,r){return a[r]}readValueFromInstance(a,r){if(Lr.has(r)){const s=xb(r);return s&&s.default||0}return r=fS.has(r)?r:Gh(r),a.getAttribute(r)}scrapeMotionValuesFromProps(a,r,s){return Ub(a,r,s)}build(a,r,s){Vb(a,r,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(a,r,s,l){Kj(a,r,s,l)}mount(a){this.isSVGTag=kb(a.tagName),super.mount(a)}}const Zj=(t,a)=>Ih(t)?new $j(a):new Xj(a,{allowProjection:t!==S.Fragment}),Qj=KR({...bN,...Pj,...jj,...Hj},Zj),pn=xR(Qj);/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wj=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Jj=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,s)=>s?s.toUpperCase():r.toLowerCase()),k0=t=>{const a=Jj(t);return a.charAt(0).toUpperCase()+a.slice(1)},dS=(...t)=>t.filter((a,r,s)=>!!a&&a.trim()!==""&&s.indexOf(a)===r).join(" ").trim(),eM=t=>{for(const a in t)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var tM={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nM=S.forwardRef(({color:t="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:l="",children:u,iconNode:f,...h},p)=>S.createElement("svg",{ref:p,...tM,width:a,height:a,stroke:t,strokeWidth:s?Number(r)*24/Number(a):r,className:dS("lucide",l),...!u&&!eM(h)&&{"aria-hidden":"true"},...h},[...f.map(([m,y])=>S.createElement(m,y)),...Array.isArray(u)?u:[u]]));/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ge=(t,a)=>{const r=S.forwardRef(({className:s,...l},u)=>S.createElement(nM,{ref:u,iconNode:a,className:dS(`lucide-${Wj(k0(t))}`,`lucide-${t}`,s),...l}));return r.displayName=k0(t),r};/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const aM=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Tc=Ge("arrow-left",aM);/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const iM=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],$h=Ge("book-open",iM);/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rM=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],sM=Ge("check",rM);/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oM=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],hS=Ge("chevron-down",oM);/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lM=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],cM=Ge("chevron-up",lM);/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uM=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Zh=Ge("circle-check-big",uM);/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fM=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],dM=Ge("circle-x",fM);/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hM=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],md=Ge("clock",hM);/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mM=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],pM=Ge("copy",mM);/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gM=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],Ac=Ge("download",gM);/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yM=[["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"}]],vM=Ge("eye",yM);/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xM=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],oo=Ge("file-text",xM);/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bM=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]],Qs=Ge("pen-line",bM);/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const SM=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Qh=Ge("plus",SM);/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wM=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],TM=Ge("refresh-cw",wM);/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const AM=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],mS=Ge("save",AM);/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const EM=[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]],ra=Ge("scale",EM);/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const CM=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],aa=Ge("search",CM);/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const RM=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],NM=Ge("settings",RM);/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jM=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],B0=Ge("shield",jM);/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const MM=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],Cr=Ge("sparkles",MM);/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const DM=[["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"}]],Ws=Ge("triangle-alert",DM);/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const OM=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],_M=Ge("upload",OM);/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const LM=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],U0=Ge("users",LM);/**
 * @license lucide-react v0.510.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const VM=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],zM=Ge("x",VM);function P0(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function pS(...t){return a=>{let r=!1;const s=t.map(l=>{const u=P0(l,a);return!r&&typeof u=="function"&&(r=!0),u});if(r)return()=>{for(let l=0;l<s.length;l++){const u=s[l];typeof u=="function"?u():P0(t[l],null)}}}}function We(...t){return S.useCallback(pS(...t),t)}function Rr(t){const a=kM(t),r=S.forwardRef((s,l)=>{const{children:u,...f}=s,h=S.Children.toArray(u),p=h.find(UM);if(p){const m=p.props.children,y=h.map(v=>v===p?S.Children.count(m)>1?S.Children.only(null):S.isValidElement(m)?m.props.children:null:v);return g.jsx(a,{...f,ref:l,children:S.isValidElement(m)?S.cloneElement(m,void 0,y):null})}return g.jsx(a,{...f,ref:l,children:u})});return r.displayName=`${t}.Slot`,r}var gS=Rr("Slot");function kM(t){const a=S.forwardRef((r,s)=>{const{children:l,...u}=r;if(S.isValidElement(l)){const f=HM(l),h=PM(u,l.props);return l.type!==S.Fragment&&(h.ref=s?pS(s,f):f),S.cloneElement(l,h)}return S.Children.count(l)>1?S.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var BM=Symbol("radix.slottable");function UM(t){return S.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===BM}function PM(t,a){const r={...a};for(const s in a){const l=t[s],u=a[s];/^on[A-Z]/.test(s)?l&&u?r[s]=(...h)=>{const p=u(...h);return l(...h),p}:l&&(r[s]=l):s==="style"?r[s]={...l,...u}:s==="className"&&(r[s]=[l,u].filter(Boolean).join(" "))}return{...t,...r}}function HM(t){var s,l;let a=(s=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(l=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:l.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}function yS(t){var a,r,s="";if(typeof t=="string"||typeof t=="number")s+=t;else if(typeof t=="object")if(Array.isArray(t)){var l=t.length;for(a=0;a<l;a++)t[a]&&(r=yS(t[a]))&&(s&&(s+=" "),s+=r)}else for(r in t)t[r]&&(s&&(s+=" "),s+=r);return s}function vS(){for(var t,a,r=0,s="",l=arguments.length;r<l;r++)(t=arguments[r])&&(a=yS(t))&&(s&&(s+=" "),s+=a);return s}const H0=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,G0=vS,Wh=(t,a)=>r=>{var s;if((a==null?void 0:a.variants)==null)return G0(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:l,defaultVariants:u}=a,f=Object.keys(l).map(m=>{const y=r==null?void 0:r[m],v=u==null?void 0:u[m];if(y===null)return null;const b=H0(y)||H0(v);return l[m][b]}),h=r&&Object.entries(r).reduce((m,y)=>{let[v,b]=y;return b===void 0||(m[v]=b),m},{}),p=a==null||(s=a.compoundVariants)===null||s===void 0?void 0:s.reduce((m,y)=>{let{class:v,className:b,...A}=y;return Object.entries(A).every(E=>{let[w,C]=E;return Array.isArray(C)?C.includes({...u,...h}[w]):{...u,...h}[w]===C})?[...m,v,b]:m},[]);return G0(t,f,p,r==null?void 0:r.class,r==null?void 0:r.className)},Jh="-",GM=t=>{const a=YM(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=t;return{getClassGroupId:f=>{const h=f.split(Jh);return h[0]===""&&h.length!==1&&h.shift(),xS(h,a)||qM(f)},getConflictingClassGroupIds:(f,h)=>{const p=r[f]||[];return h&&s[f]?[...p,...s[f]]:p}}},xS=(t,a)=>{var f;if(t.length===0)return a.classGroupId;const r=t[0],s=a.nextPart.get(r),l=s?xS(t.slice(1),s):void 0;if(l)return l;if(a.validators.length===0)return;const u=t.join(Jh);return(f=a.validators.find(({validator:h})=>h(u)))==null?void 0:f.classGroupId},q0=/^\[(.+)\]$/,qM=t=>{if(q0.test(t)){const a=q0.exec(t)[1],r=a==null?void 0:a.substring(0,a.indexOf(":"));if(r)return"arbitrary.."+r}},YM=t=>{const{theme:a,classGroups:r}=t,s={nextPart:new Map,validators:[]};for(const l in r)$d(r[l],s,l,a);return s},$d=(t,a,r,s)=>{t.forEach(l=>{if(typeof l=="string"){const u=l===""?a:Y0(a,l);u.classGroupId=r;return}if(typeof l=="function"){if(IM(l)){$d(l(s),a,r,s);return}a.validators.push({validator:l,classGroupId:r});return}Object.entries(l).forEach(([u,f])=>{$d(f,Y0(a,u),r,s)})})},Y0=(t,a)=>{let r=t;return a.split(Jh).forEach(s=>{r.nextPart.has(s)||r.nextPart.set(s,{nextPart:new Map,validators:[]}),r=r.nextPart.get(s)}),r},IM=t=>t.isThemeGetter,FM=t=>{if(t<1)return{get:()=>{},set:()=>{}};let a=0,r=new Map,s=new Map;const l=(u,f)=>{r.set(u,f),a++,a>t&&(a=0,s=r,r=new Map)};return{get(u){let f=r.get(u);if(f!==void 0)return f;if((f=s.get(u))!==void 0)return l(u,f),f},set(u,f){r.has(u)?r.set(u,f):l(u,f)}}},Zd="!",Qd=":",XM=Qd.length,KM=t=>{const{prefix:a,experimentalParseClassName:r}=t;let s=l=>{const u=[];let f=0,h=0,p=0,m;for(let E=0;E<l.length;E++){let w=l[E];if(f===0&&h===0){if(w===Qd){u.push(l.slice(p,E)),p=E+XM;continue}if(w==="/"){m=E;continue}}w==="["?f++:w==="]"?f--:w==="("?h++:w===")"&&h--}const y=u.length===0?l:l.substring(p),v=$M(y),b=v!==y,A=m&&m>p?m-p:void 0;return{modifiers:u,hasImportantModifier:b,baseClassName:v,maybePostfixModifierPosition:A}};if(a){const l=a+Qd,u=s;s=f=>f.startsWith(l)?u(f.substring(l.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:f,maybePostfixModifierPosition:void 0}}if(r){const l=s;s=u=>r({className:u,parseClassName:l})}return s},$M=t=>t.endsWith(Zd)?t.substring(0,t.length-1):t.startsWith(Zd)?t.substring(1):t,ZM=t=>{const a=Object.fromEntries(t.orderSensitiveModifiers.map(s=>[s,!0]));return s=>{if(s.length<=1)return s;const l=[];let u=[];return s.forEach(f=>{f[0]==="["||a[f]?(l.push(...u.sort(),f),u=[]):u.push(f)}),l.push(...u.sort()),l}},QM=t=>({cache:FM(t.cacheSize),parseClassName:KM(t),sortModifiers:ZM(t),...GM(t)}),WM=/\s+/,JM=(t,a)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:l,sortModifiers:u}=a,f=[],h=t.trim().split(WM);let p="";for(let m=h.length-1;m>=0;m-=1){const y=h[m],{isExternal:v,modifiers:b,hasImportantModifier:A,baseClassName:E,maybePostfixModifierPosition:w}=r(y);if(v){p=y+(p.length>0?" "+p:p);continue}let C=!!w,R=s(C?E.substring(0,w):E);if(!R){if(!C){p=y+(p.length>0?" "+p:p);continue}if(R=s(E),!R){p=y+(p.length>0?" "+p:p);continue}C=!1}const N=u(b).join(":"),j=A?N+Zd:N,k=j+R;if(f.includes(k))continue;f.push(k);const _=l(R,C);for(let $=0;$<_.length;++$){const Y=_[$];f.push(j+Y)}p=y+(p.length>0?" "+p:p)}return p};function eD(){let t=0,a,r,s="";for(;t<arguments.length;)(a=arguments[t++])&&(r=bS(a))&&(s&&(s+=" "),s+=r);return s}const bS=t=>{if(typeof t=="string")return t;let a,r="";for(let s=0;s<t.length;s++)t[s]&&(a=bS(t[s]))&&(r&&(r+=" "),r+=a);return r};function tD(t,...a){let r,s,l,u=f;function f(p){const m=a.reduce((y,v)=>v(y),t());return r=QM(m),s=r.cache.get,l=r.cache.set,u=h,h(p)}function h(p){const m=s(p);if(m)return m;const y=JM(p,r);return l(p,y),y}return function(){return u(eD.apply(null,arguments))}}const st=t=>{const a=r=>r[t]||[];return a.isThemeGetter=!0,a},SS=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,wS=/^\((?:(\w[\w-]*):)?(.+)\)$/i,nD=/^\d+\/\d+$/,aD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,iD=/\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$/,rD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,sD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,oD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,hr=t=>nD.test(t),Se=t=>!!t&&!Number.isNaN(Number(t)),za=t=>!!t&&Number.isInteger(Number(t)),pd=t=>t.endsWith("%")&&Se(t.slice(0,-1)),ta=t=>aD.test(t),lD=()=>!0,cD=t=>iD.test(t)&&!rD.test(t),TS=()=>!1,uD=t=>sD.test(t),fD=t=>oD.test(t),dD=t=>!ae(t)&&!ie(t),hD=t=>Vr(t,CS,TS),ae=t=>SS.test(t),gi=t=>Vr(t,RS,cD),gd=t=>Vr(t,vD,Se),I0=t=>Vr(t,AS,TS),mD=t=>Vr(t,ES,fD),Pl=t=>Vr(t,NS,uD),ie=t=>wS.test(t),qs=t=>zr(t,RS),pD=t=>zr(t,xD),F0=t=>zr(t,AS),gD=t=>zr(t,CS),yD=t=>zr(t,ES),Hl=t=>zr(t,NS,!0),Vr=(t,a,r)=>{const s=SS.exec(t);return s?s[1]?a(s[1]):r(s[2]):!1},zr=(t,a,r=!1)=>{const s=wS.exec(t);return s?s[1]?a(s[1]):r:!1},AS=t=>t==="position"||t==="percentage",ES=t=>t==="image"||t==="url",CS=t=>t==="length"||t==="size"||t==="bg-size",RS=t=>t==="length",vD=t=>t==="number",xD=t=>t==="family-name",NS=t=>t==="shadow",bD=()=>{const t=st("color"),a=st("font"),r=st("text"),s=st("font-weight"),l=st("tracking"),u=st("leading"),f=st("breakpoint"),h=st("container"),p=st("spacing"),m=st("radius"),y=st("shadow"),v=st("inset-shadow"),b=st("text-shadow"),A=st("drop-shadow"),E=st("blur"),w=st("perspective"),C=st("aspect"),R=st("ease"),N=st("animate"),j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...k(),ie,ae],$=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto","contain","none"],U=()=>[ie,ae,p],Q=()=>[hr,"full","auto",...U()],te=()=>[za,"none","subgrid",ie,ae],ce=()=>["auto",{span:["full",za,ie,ae]},za,ie,ae],ue=()=>[za,"auto",ie,ae],ve=()=>["auto","min","max","fr",ie,ae],ge=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],de=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...U()],q=()=>[hr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],P=()=>[t,ie,ae],re=()=>[...k(),F0,I0,{position:[ie,ae]}],D=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",gD,hD,{size:[ie,ae]}],W=()=>[pd,qs,gi],Z=()=>["","none","full",m,ie,ae],ee=()=>["",Se,qs,gi],ye=()=>["solid","dashed","dotted","double"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[Se,pd,F0,I0],le=()=>["","none",E,ie,ae],_e=()=>["none",Se,ie,ae],Re=()=>["none",Se,ie,ae],Te=()=>[Se,ie,ae],Ae=()=>[hr,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ta],breakpoint:[ta],color:[lD],container:[ta],"drop-shadow":[ta],ease:["in","out","in-out"],font:[dD],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ta],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ta],shadow:[ta],spacing:["px",Se],text:[ta],"text-shadow":[ta],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",hr,ae,ie,C]}],container:["container"],columns:[{columns:[Se,ae,ie,h]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"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:_()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Q()}],"inset-x":[{"inset-x":Q()}],"inset-y":[{"inset-y":Q()}],start:[{start:Q()}],end:[{end:Q()}],top:[{top:Q()}],right:[{right:Q()}],bottom:[{bottom:Q()}],left:[{left:Q()}],visibility:["visible","invisible","collapse"],z:[{z:[za,"auto",ie,ae]}],basis:[{basis:[hr,"full","auto",h,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Se,hr,"auto","initial","none",ae]}],grow:[{grow:["",Se,ie,ae]}],shrink:[{shrink:["",Se,ie,ae]}],order:[{order:[za,"first","last","none",ie,ae]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:ce()}],"col-start":[{"col-start":ue()}],"col-end":[{"col-end":ue()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:ce()}],"row-start":[{"row-start":ue()}],"row-end":[{"row-end":ue()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ve()}],"auto-rows":[{"auto-rows":ve()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...ge(),"normal"]}],"justify-items":[{"justify-items":[...de(),"normal"]}],"justify-self":[{"justify-self":["auto",...de()]}],"align-content":[{content:["normal",...ge()]}],"align-items":[{items:[...de(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...de(),{baseline:["","last"]}]}],"place-content":[{"place-content":ge()}],"place-items":[{"place-items":[...de(),"baseline"]}],"place-self":[{"place-self":["auto",...de()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],w:[{w:[h,"screen",...q()]}],"min-w":[{"min-w":[h,"screen","none",...q()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[f]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",r,qs,gi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,ie,gd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",pd,ae]}],"font-family":[{font:[pD,ae,a]}],"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:[l,ie,ae]}],"line-clamp":[{"line-clamp":[Se,"none",ie,gd]}],leading:[{leading:[u,...U()]}],"list-image":[{"list-image":["none",ie,ae]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ie,ae]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ye(),"wavy"]}],"text-decoration-thickness":[{decoration:[Se,"from-font","auto",ie,gi]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[Se,"auto",ie,ae]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie,ae]}],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",ie,ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:D()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},za,ie,ae],radial:["",ie,ae],conic:[za,ie,ae]},yD,mD]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:Z()}],"rounded-s":[{"rounded-s":Z()}],"rounded-e":[{"rounded-e":Z()}],"rounded-t":[{"rounded-t":Z()}],"rounded-r":[{"rounded-r":Z()}],"rounded-b":[{"rounded-b":Z()}],"rounded-l":[{"rounded-l":Z()}],"rounded-ss":[{"rounded-ss":Z()}],"rounded-se":[{"rounded-se":Z()}],"rounded-ee":[{"rounded-ee":Z()}],"rounded-es":[{"rounded-es":Z()}],"rounded-tl":[{"rounded-tl":Z()}],"rounded-tr":[{"rounded-tr":Z()}],"rounded-br":[{"rounded-br":Z()}],"rounded-bl":[{"rounded-bl":Z()}],"border-w":[{border:ee()}],"border-w-x":[{"border-x":ee()}],"border-w-y":[{"border-y":ee()}],"border-w-s":[{"border-s":ee()}],"border-w-e":[{"border-e":ee()}],"border-w-t":[{"border-t":ee()}],"border-w-r":[{"border-r":ee()}],"border-w-b":[{"border-b":ee()}],"border-w-l":[{"border-l":ee()}],"divide-x":[{"divide-x":ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ye(),"hidden","none"]}],"divide-style":[{divide:[...ye(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...ye(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Se,ie,ae]}],"outline-w":[{outline:["",Se,qs,gi]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",y,Hl,Pl]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",v,Hl,Pl]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[Se,gi]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":ee()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",b,Hl,Pl]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[Se,ie,ae]}],"mix-blend":[{"mix-blend":[...oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":oe()}],"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":[Se]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[ie,ae]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"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":k()}],"mask-image-conic-pos":[{"mask-conic":[Se]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:D()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ie,ae]}],filter:[{filter:["","none",ie,ae]}],blur:[{blur:le()}],brightness:[{brightness:[Se,ie,ae]}],contrast:[{contrast:[Se,ie,ae]}],"drop-shadow":[{"drop-shadow":["","none",A,Hl,Pl]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",Se,ie,ae]}],"hue-rotate":[{"hue-rotate":[Se,ie,ae]}],invert:[{invert:["",Se,ie,ae]}],saturate:[{saturate:[Se,ie,ae]}],sepia:[{sepia:["",Se,ie,ae]}],"backdrop-filter":[{"backdrop-filter":["","none",ie,ae]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[Se,ie,ae]}],"backdrop-contrast":[{"backdrop-contrast":[Se,ie,ae]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Se,ie,ae]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Se,ie,ae]}],"backdrop-invert":[{"backdrop-invert":["",Se,ie,ae]}],"backdrop-opacity":[{"backdrop-opacity":[Se,ie,ae]}],"backdrop-saturate":[{"backdrop-saturate":[Se,ie,ae]}],"backdrop-sepia":[{"backdrop-sepia":["",Se,ie,ae]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ie,ae]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Se,"initial",ie,ae]}],ease:[{ease:["linear","initial",R,ie,ae]}],delay:[{delay:[Se,ie,ae]}],animate:[{animate:["none",N,ie,ae]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,ie,ae]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:_e()}],"rotate-x":[{"rotate-x":_e()}],"rotate-y":[{"rotate-y":_e()}],"rotate-z":[{"rotate-z":_e()}],scale:[{scale:Re()}],"scale-x":[{"scale-x":Re()}],"scale-y":[{"scale-y":Re()}],"scale-z":[{"scale-z":Re()}],"scale-3d":["scale-3d"],skew:[{skew:Te()}],"skew-x":[{"skew-x":Te()}],"skew-y":[{"skew-y":Te()}],transform:[{transform:[ie,ae,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ae()}],"translate-x":[{"translate-x":Ae()}],"translate-y":[{"translate-y":Ae()}],"translate-z":[{"translate-z":Ae()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"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",ie,ae]}],"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":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"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",ie,ae]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[Se,qs,gi,gd]}],stroke:[{stroke:["none",...P()]}],"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"]}},SD=tD(bD);function Pe(...t){return SD(vS(t))}const wD=Wh("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Ye({className:t,variant:a,size:r,asChild:s=!1,...l}){const u=s?gS:"button";return g.jsx(u,{"data-slot":"button",className:Pe(wD({variant:a,size:r,className:t})),...l})}function sn({className:t,...a}){return g.jsx("div",{"data-slot":"card",className:Pe("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...a})}function on({className:t,...a}){return g.jsx("div",{"data-slot":"card-header",className:Pe("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...a})}function ln({className:t,...a}){return g.jsx("div",{"data-slot":"card-title",className:Pe("leading-none font-semibold",t),...a})}function Vn({className:t,...a}){return g.jsx("div",{"data-slot":"card-description",className:Pe("text-muted-foreground text-sm",t),...a})}function cn({className:t,...a}){return g.jsx("div",{"data-slot":"card-content",className:Pe("px-6",t),...a})}const TD=Wh("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Yt({className:t,variant:a,asChild:r=!1,...s}){const l=r?gS:"span";return g.jsx(l,{"data-slot":"badge",className:Pe(TD({variant:a}),t),...s})}const Gl={totalContracts:24,pendingReviews:3,completedToday:5,riskAlerts:2},AD=[{id:1,title:"Employment Agreement - Software Developer",type:"Employment",jurisdiction:"SA",status:"completed",createdAt:"2025-06-09T10:30:00Z"},{id:2,title:"Commercial Lease Agreement",type:"Real Estate",jurisdiction:"JO",status:"review",createdAt:"2025-06-09T09:15:00Z"},{id:3,title:"Service Provider Agreement",type:"Service",jurisdiction:"SA",status:"draft",createdAt:"2025-06-09T08:45:00Z"}];function ED(){const t=fa(),a=[{path:"/",icon:ra,label:"Dashboard"},{path:"/generate",icon:Qh,label:"Generate Contract"},{path:"/review",icon:aa,label:"Review Contract"},{path:"/clauses",icon:Qs,label:"Draft Clauses"},{path:"/templates",icon:$h,label:"Template Library"}];return g.jsxs("div",{className:"w-64 bg-white shadow-lg h-screen fixed left-0 top-0 z-10",children:[g.jsx("div",{className:"p-6 border-b",children:g.jsxs("div",{className:"flex items-center space-x-2",children:[g.jsx(ra,{className:"h-8 w-8 text-blue-600"}),g.jsx("span",{className:"text-2xl font-bold text-gray-900",children:"LAWAI"})]})}),g.jsx("nav",{className:"mt-6",children:a.map(r=>{const s=t.pathname===r.path;return g.jsxs(an,{to:r.path,className:`flex items-center space-x-3 px-6 py-3 text-gray-700 hover:bg-blue-50 hover:text-blue-600 transition-colors ${s?"bg-blue-50 text-blue-600 border-r-2 border-blue-600":""}`,children:[g.jsx(r.icon,{className:"h-5 w-5"}),g.jsx("span",{children:r.label})]},r.path)})})]})}function ql({icon:t,title:a,value:r,description:s,color:l="text-blue-600"}){return g.jsxs(sn,{children:[g.jsxs(on,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[g.jsx(ln,{className:"text-sm font-medium",children:a}),g.jsx(t,{className:`h-4 w-4 ${l}`})]}),g.jsxs(cn,{children:[g.jsx("div",{className:"text-2xl font-bold",children:r}),g.jsx("p",{className:"text-xs text-muted-foreground",children:s})]})]})}function CD({contract:t}){const a=l=>{switch(l){case"completed":return"bg-green-100 text-green-800";case"review":return"bg-yellow-100 text-yellow-800";case"draft":return"bg-gray-100 text-gray-800";default:return"bg-gray-100 text-gray-800"}},s=(l=>{switch(l){case"completed":return Zh;case"review":return Ws;case"draft":return md;default:return md}})(t.status);return g.jsxs(sn,{className:"hover:shadow-md transition-shadow",children:[g.jsx(on,{children:g.jsxs("div",{className:"flex items-start justify-between",children:[g.jsxs("div",{children:[g.jsx(ln,{className:"text-lg",children:t.title}),g.jsxs(Vn,{className:"mt-1",children:[t.type," • ",t.jurisdiction==="SA"?"Saudi Arabia":"Jordan"]})]}),g.jsxs(Yt,{className:a(t.status),children:[g.jsx(s,{className:"h-3 w-3 mr-1"}),t.status]})]})}),g.jsx(cn,{children:g.jsxs("div",{className:"flex items-center text-sm text-gray-500",children:[g.jsx(md,{className:"h-4 w-4 mr-1"}),new Date(t.createdAt).toLocaleDateString()]})})]})}function RD(){return g.jsxs("div",{className:"flex",children:[g.jsx(ED,{}),g.jsx("div",{className:"flex-1 ml-64 p-8",children:g.jsxs(pn.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[g.jsxs("div",{className:"mb-8",children:[g.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Dashboard"}),g.jsx("p",{className:"text-gray-600",children:"Welcome back! Here's an overview of your legal work."})]}),g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8",children:[g.jsx(ql,{icon:oo,title:"Total Contracts",value:Gl.totalContracts,description:"All time contracts created",color:"text-blue-600"}),g.jsx(ql,{icon:aa,title:"Pending Reviews",value:Gl.pendingReviews,description:"Contracts awaiting review",color:"text-yellow-600"}),g.jsx(ql,{icon:Zh,title:"Completed Today",value:Gl.completedToday,description:"Contracts finalized today",color:"text-green-600"}),g.jsx(ql,{icon:Ws,title:"Risk Alerts",value:Gl.riskAlerts,description:"High-risk contracts identified",color:"text-red-600"})]}),g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-8",children:[g.jsx(an,{to:"/generate",children:g.jsxs(Ye,{className:"w-full h-20 bg-blue-600 hover:bg-blue-700 flex flex-col items-center justify-center space-y-2",children:[g.jsx(Qh,{className:"h-6 w-6"}),g.jsx("span",{children:"Generate Contract"})]})}),g.jsx(an,{to:"/review",children:g.jsxs(Ye,{variant:"outline",className:"w-full h-20 flex flex-col items-center justify-center space-y-2",children:[g.jsx(aa,{className:"h-6 w-6"}),g.jsx("span",{children:"Review Contract"})]})}),g.jsx(an,{to:"/clauses",children:g.jsxs(Ye,{variant:"outline",className:"w-full h-20 flex flex-col items-center justify-center space-y-2",children:[g.jsx(Qs,{className:"h-6 w-6"}),g.jsx("span",{children:"Draft Clauses"})]})}),g.jsx(an,{to:"/templates",children:g.jsxs(Ye,{variant:"outline",className:"w-full h-20 flex flex-col items-center justify-center space-y-2",children:[g.jsx($h,{className:"h-6 w-6"}),g.jsx("span",{children:"Browse Templates"})]})})]}),g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center justify-between mb-6",children:[g.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Recent Contracts"}),g.jsx(Ye,{variant:"outline",size:"sm",children:"View All"})]}),g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:AD.map(t=>g.jsx(CD,{contract:t},t.id))})]})]})})]})}function nc({className:t,type:a,...r}){return g.jsx("input",{type:a,"data-slot":"input",className:Pe("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...r})}var ND=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Me=ND.reduce((t,a)=>{const r=Rr(`Primitive.${a}`),s=S.forwardRef((l,u)=>{const{asChild:f,...h}=l,p=f?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(p,{...h,ref:u})});return s.displayName=`Primitive.${a}`,{...t,[a]:s}},{});function jD(t,a){t&&mo.flushSync(()=>t.dispatchEvent(a))}var MD="Label",jS=S.forwardRef((t,a)=>g.jsx(Me.label,{...t,ref:a,onMouseDown:r=>{var l;r.target.closest("button, input, select, textarea")||((l=t.onMouseDown)==null||l.call(t,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));jS.displayName=MD;var DD=jS;function At({className:t,...a}){return g.jsx(DD,{"data-slot":"label",className:Pe("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...a})}function Si({className:t,...a}){return g.jsx("textarea",{"data-slot":"textarea",className:Pe("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),...a})}function X0(t,[a,r]){return Math.min(r,Math.max(a,t))}function je(t,a,{checkForDefaultPrevented:r=!0}={}){return function(l){if(t==null||t(l),r===!1||!l.defaultPrevented)return a==null?void 0:a(l)}}function OD(t,a){const r=S.createContext(a),s=u=>{const{children:f,...h}=u,p=S.useMemo(()=>h,Object.values(h));return g.jsx(r.Provider,{value:p,children:f})};s.displayName=t+"Provider";function l(u){const f=S.useContext(r);if(f)return f;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${t}\``)}return[s,l]}function kr(t,a=[]){let r=[];function s(u,f){const h=S.createContext(f),p=r.length;r=[...r,f];const m=v=>{var R;const{scope:b,children:A,...E}=v,w=((R=b==null?void 0:b[t])==null?void 0:R[p])||h,C=S.useMemo(()=>E,Object.values(E));return g.jsx(w.Provider,{value:C,children:A})};m.displayName=u+"Provider";function y(v,b){var w;const A=((w=b==null?void 0:b[t])==null?void 0:w[p])||h,E=S.useContext(A);if(E)return E;if(f!==void 0)return f;throw new Error(`\`${v}\` must be used within \`${u}\``)}return[m,y]}const l=()=>{const u=r.map(f=>S.createContext(f));return function(h){const p=(h==null?void 0:h[t])||u;return S.useMemo(()=>({[`__scope${t}`]:{...h,[t]:p}}),[h,p])}};return l.scopeName=t,[s,_D(l,...a)]}function _D(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const s=t.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(u){const f=s.reduce((h,{useScope:p,scopeName:m})=>{const v=p(u)[`__scope${m}`];return{...h,...v}},{});return S.useMemo(()=>({[`__scope${a.scopeName}`]:f}),[f])}};return r.scopeName=a.scopeName,r}function MS(t){const a=t+"CollectionProvider",[r,s]=kr(a),[l,u]=r(a,{collectionRef:{current:null},itemMap:new Map}),f=w=>{const{scope:C,children:R}=w,N=na.useRef(null),j=na.useRef(new Map).current;return g.jsx(l,{scope:C,itemMap:j,collectionRef:N,children:R})};f.displayName=a;const h=t+"CollectionSlot",p=Rr(h),m=na.forwardRef((w,C)=>{const{scope:R,children:N}=w,j=u(h,R),k=We(C,j.collectionRef);return g.jsx(p,{ref:k,children:N})});m.displayName=h;const y=t+"CollectionItemSlot",v="data-radix-collection-item",b=Rr(y),A=na.forwardRef((w,C)=>{const{scope:R,children:N,...j}=w,k=na.useRef(null),_=We(C,k),$=u(y,R);return na.useEffect(()=>($.itemMap.set(k,{ref:k,...j}),()=>void $.itemMap.delete(k))),g.jsx(b,{[v]:"",ref:_,children:N})});A.displayName=y;function E(w){const C=u(t+"CollectionConsumer",w);return na.useCallback(()=>{const N=C.collectionRef.current;if(!N)return[];const j=Array.from(N.querySelectorAll(`[${v}]`));return Array.from(C.itemMap.values()).sort(($,Y)=>j.indexOf($.ref.current)-j.indexOf(Y.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:f,Slot:m,ItemSlot:A},E,s]}var LD=S.createContext(void 0);function em(t){const a=S.useContext(LD);return t||a||"ltr"}function Ga(t){const a=S.useRef(t);return S.useEffect(()=>{a.current=t}),S.useMemo(()=>(...r)=>{var s;return(s=a.current)==null?void 0:s.call(a,...r)},[])}function VD(t,a=globalThis==null?void 0:globalThis.document){const r=Ga(t);S.useEffect(()=>{const s=l=>{l.key==="Escape"&&r(l)};return a.addEventListener("keydown",s,{capture:!0}),()=>a.removeEventListener("keydown",s,{capture:!0})},[r,a])}var zD="DismissableLayer",Wd="dismissableLayer.update",kD="dismissableLayer.pointerDownOutside",BD="dismissableLayer.focusOutside",K0,DS=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),tm=S.forwardRef((t,a)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:f,onDismiss:h,...p}=t,m=S.useContext(DS),[y,v]=S.useState(null),b=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,A]=S.useState({}),E=We(a,Y=>v(Y)),w=Array.from(m.layers),[C]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),R=w.indexOf(C),N=y?w.indexOf(y):-1,j=m.layersWithOutsidePointerEventsDisabled.size>0,k=N>=R,_=HD(Y=>{const U=Y.target,Q=[...m.branches].some(te=>te.contains(U));!k||Q||(l==null||l(Y),f==null||f(Y),Y.defaultPrevented||h==null||h())},b),$=GD(Y=>{const U=Y.target;[...m.branches].some(te=>te.contains(U))||(u==null||u(Y),f==null||f(Y),Y.defaultPrevented||h==null||h())},b);return VD(Y=>{N===m.layers.size-1&&(s==null||s(Y),!Y.defaultPrevented&&h&&(Y.preventDefault(),h()))},b),S.useEffect(()=>{if(y)return r&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(K0=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(y)),m.layers.add(y),$0(),()=>{r&&m.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=K0)}},[y,b,r,m]),S.useEffect(()=>()=>{y&&(m.layers.delete(y),m.layersWithOutsidePointerEventsDisabled.delete(y),$0())},[y,m]),S.useEffect(()=>{const Y=()=>A({});return document.addEventListener(Wd,Y),()=>document.removeEventListener(Wd,Y)},[]),g.jsx(Me.div,{...p,ref:E,style:{pointerEvents:j?k?"auto":"none":void 0,...t.style},onFocusCapture:je(t.onFocusCapture,$.onFocusCapture),onBlurCapture:je(t.onBlurCapture,$.onBlurCapture),onPointerDownCapture:je(t.onPointerDownCapture,_.onPointerDownCapture)})});tm.displayName=zD;var UD="DismissableLayerBranch",PD=S.forwardRef((t,a)=>{const r=S.useContext(DS),s=S.useRef(null),l=We(a,s);return S.useEffect(()=>{const u=s.current;if(u)return r.branches.add(u),()=>{r.branches.delete(u)}},[r.branches]),g.jsx(Me.div,{...t,ref:l})});PD.displayName=UD;function HD(t,a=globalThis==null?void 0:globalThis.document){const r=Ga(t),s=S.useRef(!1),l=S.useRef(()=>{});return S.useEffect(()=>{const u=h=>{if(h.target&&!s.current){let p=function(){OS(kD,r,m,{discrete:!0})};const m={originalEvent:h};h.pointerType==="touch"?(a.removeEventListener("click",l.current),l.current=p,a.addEventListener("click",l.current,{once:!0})):p()}else a.removeEventListener("click",l.current);s.current=!1},f=window.setTimeout(()=>{a.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(f),a.removeEventListener("pointerdown",u),a.removeEventListener("click",l.current)}},[a,r]),{onPointerDownCapture:()=>s.current=!0}}function GD(t,a=globalThis==null?void 0:globalThis.document){const r=Ga(t),s=S.useRef(!1);return S.useEffect(()=>{const l=u=>{u.target&&!s.current&&OS(BD,r,{originalEvent:u},{discrete:!1})};return a.addEventListener("focusin",l),()=>a.removeEventListener("focusin",l)},[a,r]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function $0(){const t=new CustomEvent(Wd);document.dispatchEvent(t)}function OS(t,a,r,{discrete:s}){const l=r.originalEvent.target,u=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});a&&l.addEventListener(t,a,{once:!0}),s?jD(l,u):l.dispatchEvent(u)}var yd=0;function _S(){S.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Z0()),document.body.insertAdjacentElement("beforeend",t[1]??Z0()),yd++,()=>{yd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),yd--}},[])}function Z0(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var vd="focusScope.autoFocusOnMount",xd="focusScope.autoFocusOnUnmount",Q0={bubbles:!1,cancelable:!0},qD="FocusScope",nm=S.forwardRef((t,a)=>{const{loop:r=!1,trapped:s=!1,onMountAutoFocus:l,onUnmountAutoFocus:u,...f}=t,[h,p]=S.useState(null),m=Ga(l),y=Ga(u),v=S.useRef(null),b=We(a,w=>p(w)),A=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(s){let w=function(j){if(A.paused||!h)return;const k=j.target;h.contains(k)?v.current=k:Ba(v.current,{select:!0})},C=function(j){if(A.paused||!h)return;const k=j.relatedTarget;k!==null&&(h.contains(k)||Ba(v.current,{select:!0}))},R=function(j){if(document.activeElement===document.body)for(const _ of j)_.removedNodes.length>0&&Ba(h)};document.addEventListener("focusin",w),document.addEventListener("focusout",C);const N=new MutationObserver(R);return h&&N.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",C),N.disconnect()}}},[s,h,A.paused]),S.useEffect(()=>{if(h){J0.add(A);const w=document.activeElement;if(!h.contains(w)){const R=new CustomEvent(vd,Q0);h.addEventListener(vd,m),h.dispatchEvent(R),R.defaultPrevented||(YD($D(LS(h)),{select:!0}),document.activeElement===w&&Ba(h))}return()=>{h.removeEventListener(vd,m),setTimeout(()=>{const R=new CustomEvent(xd,Q0);h.addEventListener(xd,y),h.dispatchEvent(R),R.defaultPrevented||Ba(w??document.body,{select:!0}),h.removeEventListener(xd,y),J0.remove(A)},0)}}},[h,m,y,A]);const E=S.useCallback(w=>{if(!r&&!s||A.paused)return;const C=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,R=document.activeElement;if(C&&R){const N=w.currentTarget,[j,k]=ID(N);j&&k?!w.shiftKey&&R===k?(w.preventDefault(),r&&Ba(j,{select:!0})):w.shiftKey&&R===j&&(w.preventDefault(),r&&Ba(k,{select:!0})):R===N&&w.preventDefault()}},[r,s,A.paused]);return g.jsx(Me.div,{tabIndex:-1,...f,ref:b,onKeyDown:E})});nm.displayName=qD;function YD(t,{select:a=!1}={}){const r=document.activeElement;for(const s of t)if(Ba(s,{select:a}),document.activeElement!==r)return}function ID(t){const a=LS(t),r=W0(a,t),s=W0(a.reverse(),t);return[r,s]}function LS(t){const a=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const l=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||l?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)a.push(r.currentNode);return a}function W0(t,a){for(const r of t)if(!FD(r,{upTo:a}))return r}function FD(t,{upTo:a}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(a!==void 0&&t===a)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function XD(t){return t instanceof HTMLInputElement&&"select"in t}function Ba(t,{select:a=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&XD(t)&&a&&t.select()}}var J0=KD();function KD(){let t=[];return{add(a){const r=t[0];a!==r&&(r==null||r.pause()),t=ex(t,a),t.unshift(a)},remove(a){var r;t=ex(t,a),(r=t[0])==null||r.resume()}}}function ex(t,a){const r=[...t],s=r.indexOf(a);return s!==-1&&r.splice(s,1),r}function $D(t){return t.filter(a=>a.tagName!=="A")}var wt=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},ZD=vx[" useId ".trim().toString()]||(()=>{}),QD=0;function Ua(t){const[a,r]=S.useState(ZD());return wt(()=>{r(s=>s??String(QD++))},[t]),t||(a?`radix-${a}`:"")}const WD=["top","right","bottom","left"],qa=Math.min,qt=Math.max,dc=Math.round,Yl=Math.floor,zn=t=>({x:t,y:t}),JD={left:"right",right:"left",bottom:"top",top:"bottom"},eO={start:"end",end:"start"};function Jd(t,a,r){return qt(t,qa(a,r))}function ca(t,a){return typeof t=="function"?t(a):t}function ua(t){return t.split("-")[0]}function Br(t){return t.split("-")[1]}function am(t){return t==="x"?"y":"x"}function im(t){return t==="y"?"height":"width"}function Rn(t){return["top","bottom"].includes(ua(t))?"y":"x"}function rm(t){return am(Rn(t))}function tO(t,a,r){r===void 0&&(r=!1);const s=Br(t),l=rm(t),u=im(l);let f=l==="x"?s===(r?"end":"start")?"right":"left":s==="start"?"bottom":"top";return a.reference[u]>a.floating[u]&&(f=hc(f)),[f,hc(f)]}function nO(t){const a=hc(t);return[eh(t),a,eh(a)]}function eh(t){return t.replace(/start|end/g,a=>eO[a])}function aO(t,a,r){const s=["left","right"],l=["right","left"],u=["top","bottom"],f=["bottom","top"];switch(t){case"top":case"bottom":return r?a?l:s:a?s:l;case"left":case"right":return a?u:f;default:return[]}}function iO(t,a,r,s){const l=Br(t);let u=aO(ua(t),r==="start",s);return l&&(u=u.map(f=>f+"-"+l),a&&(u=u.concat(u.map(eh)))),u}function hc(t){return t.replace(/left|right|bottom|top/g,a=>JD[a])}function rO(t){return{top:0,right:0,bottom:0,left:0,...t}}function VS(t){return typeof t!="number"?rO(t):{top:t,right:t,bottom:t,left:t}}function mc(t){const{x:a,y:r,width:s,height:l}=t;return{width:s,height:l,top:r,left:a,right:a+s,bottom:r+l,x:a,y:r}}function tx(t,a,r){let{reference:s,floating:l}=t;const u=Rn(a),f=rm(a),h=im(f),p=ua(a),m=u==="y",y=s.x+s.width/2-l.width/2,v=s.y+s.height/2-l.height/2,b=s[h]/2-l[h]/2;let A;switch(p){case"top":A={x:y,y:s.y-l.height};break;case"bottom":A={x:y,y:s.y+s.height};break;case"right":A={x:s.x+s.width,y:v};break;case"left":A={x:s.x-l.width,y:v};break;default:A={x:s.x,y:s.y}}switch(Br(a)){case"start":A[f]-=b*(r&&m?-1:1);break;case"end":A[f]+=b*(r&&m?-1:1);break}return A}const sO=async(t,a,r)=>{const{placement:s="bottom",strategy:l="absolute",middleware:u=[],platform:f}=r,h=u.filter(Boolean),p=await(f.isRTL==null?void 0:f.isRTL(a));let m=await f.getElementRects({reference:t,floating:a,strategy:l}),{x:y,y:v}=tx(m,s,p),b=s,A={},E=0;for(let w=0;w<h.length;w++){const{name:C,fn:R}=h[w],{x:N,y:j,data:k,reset:_}=await R({x:y,y:v,initialPlacement:s,placement:b,strategy:l,middlewareData:A,rects:m,platform:f,elements:{reference:t,floating:a}});y=N??y,v=j??v,A={...A,[C]:{...A[C],...k}},_&&E<=50&&(E++,typeof _=="object"&&(_.placement&&(b=_.placement),_.rects&&(m=_.rects===!0?await f.getElementRects({reference:t,floating:a,strategy:l}):_.rects),{x:y,y:v}=tx(m,b,p)),w=-1)}return{x:y,y:v,placement:b,strategy:l,middlewareData:A}};async function lo(t,a){var r;a===void 0&&(a={});const{x:s,y:l,platform:u,rects:f,elements:h,strategy:p}=t,{boundary:m="clippingAncestors",rootBoundary:y="viewport",elementContext:v="floating",altBoundary:b=!1,padding:A=0}=ca(a,t),E=VS(A),C=h[b?v==="floating"?"reference":"floating":v],R=mc(await u.getClippingRect({element:(r=await(u.isElement==null?void 0:u.isElement(C)))==null||r?C:C.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(h.floating)),boundary:m,rootBoundary:y,strategy:p})),N=v==="floating"?{x:s,y:l,width:f.floating.width,height:f.floating.height}:f.reference,j=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h.floating)),k=await(u.isElement==null?void 0:u.isElement(j))?await(u.getScale==null?void 0:u.getScale(j))||{x:1,y:1}:{x:1,y:1},_=mc(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:N,offsetParent:j,strategy:p}):N);return{top:(R.top-_.top+E.top)/k.y,bottom:(_.bottom-R.bottom+E.bottom)/k.y,left:(R.left-_.left+E.left)/k.x,right:(_.right-R.right+E.right)/k.x}}const oO=t=>({name:"arrow",options:t,async fn(a){const{x:r,y:s,placement:l,rects:u,platform:f,elements:h,middlewareData:p}=a,{element:m,padding:y=0}=ca(t,a)||{};if(m==null)return{};const v=VS(y),b={x:r,y:s},A=rm(l),E=im(A),w=await f.getDimensions(m),C=A==="y",R=C?"top":"left",N=C?"bottom":"right",j=C?"clientHeight":"clientWidth",k=u.reference[E]+u.reference[A]-b[A]-u.floating[E],_=b[A]-u.reference[A],$=await(f.getOffsetParent==null?void 0:f.getOffsetParent(m));let Y=$?$[j]:0;(!Y||!await(f.isElement==null?void 0:f.isElement($)))&&(Y=h.floating[j]||u.floating[E]);const U=k/2-_/2,Q=Y/2-w[E]/2-1,te=qa(v[R],Q),ce=qa(v[N],Q),ue=te,ve=Y-w[E]-ce,ge=Y/2-w[E]/2+U,de=Jd(ue,ge,ve),V=!p.arrow&&Br(l)!=null&&ge!==de&&u.reference[E]/2-(ge<ue?te:ce)-w[E]/2<0,q=V?ge<ue?ge-ue:ge-ve:0;return{[A]:b[A]+q,data:{[A]:de,centerOffset:ge-de-q,...V&&{alignmentOffset:q}},reset:V}}}),lO=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(a){var r,s;const{placement:l,middlewareData:u,rects:f,initialPlacement:h,platform:p,elements:m}=a,{mainAxis:y=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:A="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:w=!0,...C}=ca(t,a);if((r=u.arrow)!=null&&r.alignmentOffset)return{};const R=ua(l),N=Rn(h),j=ua(h)===h,k=await(p.isRTL==null?void 0:p.isRTL(m.floating)),_=b||(j||!w?[hc(h)]:nO(h)),$=E!=="none";!b&&$&&_.push(...iO(h,w,E,k));const Y=[h,..._],U=await lo(a,C),Q=[];let te=((s=u.flip)==null?void 0:s.overflows)||[];if(y&&Q.push(U[R]),v){const ge=tO(l,f,k);Q.push(U[ge[0]],U[ge[1]])}if(te=[...te,{placement:l,overflows:Q}],!Q.every(ge=>ge<=0)){var ce,ue;const ge=(((ce=u.flip)==null?void 0:ce.index)||0)+1,de=Y[ge];if(de&&(!(v==="alignment"?N!==Rn(de):!1)||te.every(P=>P.overflows[0]>0&&Rn(P.placement)===N)))return{data:{index:ge,overflows:te},reset:{placement:de}};let V=(ue=te.filter(q=>q.overflows[0]<=0).sort((q,P)=>q.overflows[1]-P.overflows[1])[0])==null?void 0:ue.placement;if(!V)switch(A){case"bestFit":{var ve;const q=(ve=te.filter(P=>{if($){const re=Rn(P.placement);return re===N||re==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(re=>re>0).reduce((re,D)=>re+D,0)]).sort((P,re)=>P[1]-re[1])[0])==null?void 0:ve[0];q&&(V=q);break}case"initialPlacement":V=h;break}if(l!==V)return{reset:{placement:V}}}return{}}}};function nx(t,a){return{top:t.top-a.height,right:t.right-a.width,bottom:t.bottom-a.height,left:t.left-a.width}}function ax(t){return WD.some(a=>t[a]>=0)}const cO=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(a){const{rects:r}=a,{strategy:s="referenceHidden",...l}=ca(t,a);switch(s){case"referenceHidden":{const u=await lo(a,{...l,elementContext:"reference"}),f=nx(u,r.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:ax(f)}}}case"escaped":{const u=await lo(a,{...l,altBoundary:!0}),f=nx(u,r.floating);return{data:{escapedOffsets:f,escaped:ax(f)}}}default:return{}}}}};async function uO(t,a){const{placement:r,platform:s,elements:l}=t,u=await(s.isRTL==null?void 0:s.isRTL(l.floating)),f=ua(r),h=Br(r),p=Rn(r)==="y",m=["left","top"].includes(f)?-1:1,y=u&&p?-1:1,v=ca(a,t);let{mainAxis:b,crossAxis:A,alignmentAxis:E}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return h&&typeof E=="number"&&(A=h==="end"?E*-1:E),p?{x:A*y,y:b*m}:{x:b*m,y:A*y}}const fO=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(a){var r,s;const{x:l,y:u,placement:f,middlewareData:h}=a,p=await uO(a,t);return f===((r=h.offset)==null?void 0:r.placement)&&(s=h.arrow)!=null&&s.alignmentOffset?{}:{x:l+p.x,y:u+p.y,data:{...p,placement:f}}}}},dO=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(a){const{x:r,y:s,placement:l}=a,{mainAxis:u=!0,crossAxis:f=!1,limiter:h={fn:C=>{let{x:R,y:N}=C;return{x:R,y:N}}},...p}=ca(t,a),m={x:r,y:s},y=await lo(a,p),v=Rn(ua(l)),b=am(v);let A=m[b],E=m[v];if(u){const C=b==="y"?"top":"left",R=b==="y"?"bottom":"right",N=A+y[C],j=A-y[R];A=Jd(N,A,j)}if(f){const C=v==="y"?"top":"left",R=v==="y"?"bottom":"right",N=E+y[C],j=E-y[R];E=Jd(N,E,j)}const w=h.fn({...a,[b]:A,[v]:E});return{...w,data:{x:w.x-r,y:w.y-s,enabled:{[b]:u,[v]:f}}}}}},hO=function(t){return t===void 0&&(t={}),{options:t,fn(a){const{x:r,y:s,placement:l,rects:u,middlewareData:f}=a,{offset:h=0,mainAxis:p=!0,crossAxis:m=!0}=ca(t,a),y={x:r,y:s},v=Rn(l),b=am(v);let A=y[b],E=y[v];const w=ca(h,a),C=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(p){const j=b==="y"?"height":"width",k=u.reference[b]-u.floating[j]+C.mainAxis,_=u.reference[b]+u.reference[j]-C.mainAxis;A<k?A=k:A>_&&(A=_)}if(m){var R,N;const j=b==="y"?"width":"height",k=["top","left"].includes(ua(l)),_=u.reference[v]-u.floating[j]+(k&&((R=f.offset)==null?void 0:R[v])||0)+(k?0:C.crossAxis),$=u.reference[v]+u.reference[j]+(k?0:((N=f.offset)==null?void 0:N[v])||0)-(k?C.crossAxis:0);E<_?E=_:E>$&&(E=$)}return{[b]:A,[v]:E}}}},mO=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(a){var r,s;const{placement:l,rects:u,platform:f,elements:h}=a,{apply:p=()=>{},...m}=ca(t,a),y=await lo(a,m),v=ua(l),b=Br(l),A=Rn(l)==="y",{width:E,height:w}=u.floating;let C,R;v==="top"||v==="bottom"?(C=v,R=b===(await(f.isRTL==null?void 0:f.isRTL(h.floating))?"start":"end")?"left":"right"):(R=v,C=b==="end"?"top":"bottom");const N=w-y.top-y.bottom,j=E-y.left-y.right,k=qa(w-y[C],N),_=qa(E-y[R],j),$=!a.middlewareData.shift;let Y=k,U=_;if((r=a.middlewareData.shift)!=null&&r.enabled.x&&(U=j),(s=a.middlewareData.shift)!=null&&s.enabled.y&&(Y=N),$&&!b){const te=qt(y.left,0),ce=qt(y.right,0),ue=qt(y.top,0),ve=qt(y.bottom,0);A?U=E-2*(te!==0||ce!==0?te+ce:qt(y.left,y.right)):Y=w-2*(ue!==0||ve!==0?ue+ve:qt(y.top,y.bottom))}await p({...a,availableWidth:U,availableHeight:Y});const Q=await f.getDimensions(h.floating);return E!==Q.width||w!==Q.height?{reset:{rects:!0}}:{}}}};function Ec(){return typeof window<"u"}function Ur(t){return zS(t)?(t.nodeName||"").toLowerCase():"#document"}function It(t){var a;return(t==null||(a=t.ownerDocument)==null?void 0:a.defaultView)||window}function Un(t){var a;return(a=(zS(t)?t.ownerDocument:t.document)||window.document)==null?void 0:a.documentElement}function zS(t){return Ec()?t instanceof Node||t instanceof It(t).Node:!1}function yn(t){return Ec()?t instanceof Element||t instanceof It(t).Element:!1}function kn(t){return Ec()?t instanceof HTMLElement||t instanceof It(t).HTMLElement:!1}function ix(t){return!Ec()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof It(t).ShadowRoot}function xo(t){const{overflow:a,overflowX:r,overflowY:s,display:l}=vn(t);return/auto|scroll|overlay|hidden|clip/.test(a+s+r)&&!["inline","contents"].includes(l)}function pO(t){return["table","td","th"].includes(Ur(t))}function Cc(t){return[":popover-open",":modal"].some(a=>{try{return t.matches(a)}catch{return!1}})}function sm(t){const a=om(),r=yn(t)?vn(t):t;return["transform","translate","scale","rotate","perspective"].some(s=>r[s]?r[s]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!a&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!a&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(s=>(r.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(r.contain||"").includes(s))}function gO(t){let a=Ya(t);for(;kn(a)&&!Nr(a);){if(sm(a))return a;if(Cc(a))return null;a=Ya(a)}return null}function om(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Nr(t){return["html","body","#document"].includes(Ur(t))}function vn(t){return It(t).getComputedStyle(t)}function Rc(t){return yn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ya(t){if(Ur(t)==="html")return t;const a=t.assignedSlot||t.parentNode||ix(t)&&t.host||Un(t);return ix(a)?a.host:a}function kS(t){const a=Ya(t);return Nr(a)?t.ownerDocument?t.ownerDocument.body:t.body:kn(a)&&xo(a)?a:kS(a)}function co(t,a,r){var s;a===void 0&&(a=[]),r===void 0&&(r=!0);const l=kS(t),u=l===((s=t.ownerDocument)==null?void 0:s.body),f=It(l);if(u){const h=th(f);return a.concat(f,f.visualViewport||[],xo(l)?l:[],h&&r?co(h):[])}return a.concat(l,co(l,[],r))}function th(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function BS(t){const a=vn(t);let r=parseFloat(a.width)||0,s=parseFloat(a.height)||0;const l=kn(t),u=l?t.offsetWidth:r,f=l?t.offsetHeight:s,h=dc(r)!==u||dc(s)!==f;return h&&(r=u,s=f),{width:r,height:s,$:h}}function lm(t){return yn(t)?t:t.contextElement}function wr(t){const a=lm(t);if(!kn(a))return zn(1);const r=a.getBoundingClientRect(),{width:s,height:l,$:u}=BS(a);let f=(u?dc(r.width):r.width)/s,h=(u?dc(r.height):r.height)/l;return(!f||!Number.isFinite(f))&&(f=1),(!h||!Number.isFinite(h))&&(h=1),{x:f,y:h}}const yO=zn(0);function US(t){const a=It(t);return!om()||!a.visualViewport?yO:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function vO(t,a,r){return a===void 0&&(a=!1),!r||a&&r!==It(t)?!1:a}function Ai(t,a,r,s){a===void 0&&(a=!1),r===void 0&&(r=!1);const l=t.getBoundingClientRect(),u=lm(t);let f=zn(1);a&&(s?yn(s)&&(f=wr(s)):f=wr(t));const h=vO(u,r,s)?US(u):zn(0);let p=(l.left+h.x)/f.x,m=(l.top+h.y)/f.y,y=l.width/f.x,v=l.height/f.y;if(u){const b=It(u),A=s&&yn(s)?It(s):s;let E=b,w=th(E);for(;w&&s&&A!==E;){const C=wr(w),R=w.getBoundingClientRect(),N=vn(w),j=R.left+(w.clientLeft+parseFloat(N.paddingLeft))*C.x,k=R.top+(w.clientTop+parseFloat(N.paddingTop))*C.y;p*=C.x,m*=C.y,y*=C.x,v*=C.y,p+=j,m+=k,E=It(w),w=th(E)}}return mc({width:y,height:v,x:p,y:m})}function cm(t,a){const r=Rc(t).scrollLeft;return a?a.left+r:Ai(Un(t)).left+r}function PS(t,a,r){r===void 0&&(r=!1);const s=t.getBoundingClientRect(),l=s.left+a.scrollLeft-(r?0:cm(t,s)),u=s.top+a.scrollTop;return{x:l,y:u}}function xO(t){let{elements:a,rect:r,offsetParent:s,strategy:l}=t;const u=l==="fixed",f=Un(s),h=a?Cc(a.floating):!1;if(s===f||h&&u)return r;let p={scrollLeft:0,scrollTop:0},m=zn(1);const y=zn(0),v=kn(s);if((v||!v&&!u)&&((Ur(s)!=="body"||xo(f))&&(p=Rc(s)),kn(s))){const A=Ai(s);m=wr(s),y.x=A.x+s.clientLeft,y.y=A.y+s.clientTop}const b=f&&!v&&!u?PS(f,p,!0):zn(0);return{width:r.width*m.x,height:r.height*m.y,x:r.x*m.x-p.scrollLeft*m.x+y.x+b.x,y:r.y*m.y-p.scrollTop*m.y+y.y+b.y}}function bO(t){return Array.from(t.getClientRects())}function SO(t){const a=Un(t),r=Rc(t),s=t.ownerDocument.body,l=qt(a.scrollWidth,a.clientWidth,s.scrollWidth,s.clientWidth),u=qt(a.scrollHeight,a.clientHeight,s.scrollHeight,s.clientHeight);let f=-r.scrollLeft+cm(t);const h=-r.scrollTop;return vn(s).direction==="rtl"&&(f+=qt(a.clientWidth,s.clientWidth)-l),{width:l,height:u,x:f,y:h}}function wO(t,a){const r=It(t),s=Un(t),l=r.visualViewport;let u=s.clientWidth,f=s.clientHeight,h=0,p=0;if(l){u=l.width,f=l.height;const m=om();(!m||m&&a==="fixed")&&(h=l.offsetLeft,p=l.offsetTop)}return{width:u,height:f,x:h,y:p}}function TO(t,a){const r=Ai(t,!0,a==="fixed"),s=r.top+t.clientTop,l=r.left+t.clientLeft,u=kn(t)?wr(t):zn(1),f=t.clientWidth*u.x,h=t.clientHeight*u.y,p=l*u.x,m=s*u.y;return{width:f,height:h,x:p,y:m}}function rx(t,a,r){let s;if(a==="viewport")s=wO(t,r);else if(a==="document")s=SO(Un(t));else if(yn(a))s=TO(a,r);else{const l=US(t);s={x:a.x-l.x,y:a.y-l.y,width:a.width,height:a.height}}return mc(s)}function HS(t,a){const r=Ya(t);return r===a||!yn(r)||Nr(r)?!1:vn(r).position==="fixed"||HS(r,a)}function AO(t,a){const r=a.get(t);if(r)return r;let s=co(t,[],!1).filter(h=>yn(h)&&Ur(h)!=="body"),l=null;const u=vn(t).position==="fixed";let f=u?Ya(t):t;for(;yn(f)&&!Nr(f);){const h=vn(f),p=sm(f);!p&&h.position==="fixed"&&(l=null),(u?!p&&!l:!p&&h.position==="static"&&!!l&&["absolute","fixed"].includes(l.position)||xo(f)&&!p&&HS(t,f))?s=s.filter(y=>y!==f):l=h,f=Ya(f)}return a.set(t,s),s}function EO(t){let{element:a,boundary:r,rootBoundary:s,strategy:l}=t;const f=[...r==="clippingAncestors"?Cc(a)?[]:AO(a,this._c):[].concat(r),s],h=f[0],p=f.reduce((m,y)=>{const v=rx(a,y,l);return m.top=qt(v.top,m.top),m.right=qa(v.right,m.right),m.bottom=qa(v.bottom,m.bottom),m.left=qt(v.left,m.left),m},rx(a,h,l));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function CO(t){const{width:a,height:r}=BS(t);return{width:a,height:r}}function RO(t,a,r){const s=kn(a),l=Un(a),u=r==="fixed",f=Ai(t,!0,u,a);let h={scrollLeft:0,scrollTop:0};const p=zn(0);function m(){p.x=cm(l)}if(s||!s&&!u)if((Ur(a)!=="body"||xo(l))&&(h=Rc(a)),s){const A=Ai(a,!0,u,a);p.x=A.x+a.clientLeft,p.y=A.y+a.clientTop}else l&&m();u&&!s&&l&&m();const y=l&&!s&&!u?PS(l,h):zn(0),v=f.left+h.scrollLeft-p.x-y.x,b=f.top+h.scrollTop-p.y-y.y;return{x:v,y:b,width:f.width,height:f.height}}function bd(t){return vn(t).position==="static"}function sx(t,a){if(!kn(t)||vn(t).position==="fixed")return null;if(a)return a(t);let r=t.offsetParent;return Un(t)===r&&(r=r.ownerDocument.body),r}function GS(t,a){const r=It(t);if(Cc(t))return r;if(!kn(t)){let l=Ya(t);for(;l&&!Nr(l);){if(yn(l)&&!bd(l))return l;l=Ya(l)}return r}let s=sx(t,a);for(;s&&pO(s)&&bd(s);)s=sx(s,a);return s&&Nr(s)&&bd(s)&&!sm(s)?r:s||gO(t)||r}const NO=async function(t){const a=this.getOffsetParent||GS,r=this.getDimensions,s=await r(t.floating);return{reference:RO(t.reference,await a(t.floating),t.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function jO(t){return vn(t).direction==="rtl"}const MO={convertOffsetParentRelativeRectToViewportRelativeRect:xO,getDocumentElement:Un,getClippingRect:EO,getOffsetParent:GS,getElementRects:NO,getClientRects:bO,getDimensions:CO,getScale:wr,isElement:yn,isRTL:jO};function qS(t,a){return t.x===a.x&&t.y===a.y&&t.width===a.width&&t.height===a.height}function DO(t,a){let r=null,s;const l=Un(t);function u(){var h;clearTimeout(s),(h=r)==null||h.disconnect(),r=null}function f(h,p){h===void 0&&(h=!1),p===void 0&&(p=1),u();const m=t.getBoundingClientRect(),{left:y,top:v,width:b,height:A}=m;if(h||a(),!b||!A)return;const E=Yl(v),w=Yl(l.clientWidth-(y+b)),C=Yl(l.clientHeight-(v+A)),R=Yl(y),j={rootMargin:-E+"px "+-w+"px "+-C+"px "+-R+"px",threshold:qt(0,qa(1,p))||1};let k=!0;function _($){const Y=$[0].intersectionRatio;if(Y!==p){if(!k)return f();Y?f(!1,Y):s=setTimeout(()=>{f(!1,1e-7)},1e3)}Y===1&&!qS(m,t.getBoundingClientRect())&&f(),k=!1}try{r=new IntersectionObserver(_,{...j,root:l.ownerDocument})}catch{r=new IntersectionObserver(_,j)}r.observe(t)}return f(!0),u}function OO(t,a,r,s){s===void 0&&(s={});const{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:p=!1}=s,m=lm(t),y=l||u?[...m?co(m):[],...co(a)]:[];y.forEach(R=>{l&&R.addEventListener("scroll",r,{passive:!0}),u&&R.addEventListener("resize",r)});const v=m&&h?DO(m,r):null;let b=-1,A=null;f&&(A=new ResizeObserver(R=>{let[N]=R;N&&N.target===m&&A&&(A.unobserve(a),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var j;(j=A)==null||j.observe(a)})),r()}),m&&!p&&A.observe(m),A.observe(a));let E,w=p?Ai(t):null;p&&C();function C(){const R=Ai(t);w&&!qS(w,R)&&r(),w=R,E=requestAnimationFrame(C)}return r(),()=>{var R;y.forEach(N=>{l&&N.removeEventListener("scroll",r),u&&N.removeEventListener("resize",r)}),v==null||v(),(R=A)==null||R.disconnect(),A=null,p&&cancelAnimationFrame(E)}}const _O=fO,LO=dO,VO=lO,zO=mO,kO=cO,ox=oO,BO=hO,UO=(t,a,r)=>{const s=new Map,l={platform:MO,...r},u={...l.platform,_c:s};return sO(t,a,{...l,platform:u})};var PO=typeof document<"u",HO=function(){},ac=PO?S.useLayoutEffect:HO;function pc(t,a){if(t===a)return!0;if(typeof t!=typeof a)return!1;if(typeof t=="function"&&t.toString()===a.toString())return!0;let r,s,l;if(t&&a&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==a.length)return!1;for(s=r;s--!==0;)if(!pc(t[s],a[s]))return!1;return!0}if(l=Object.keys(t),r=l.length,r!==Object.keys(a).length)return!1;for(s=r;s--!==0;)if(!{}.hasOwnProperty.call(a,l[s]))return!1;for(s=r;s--!==0;){const u=l[s];if(!(u==="_owner"&&t.$$typeof)&&!pc(t[u],a[u]))return!1}return!0}return t!==t&&a!==a}function YS(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function lx(t,a){const r=YS(t);return Math.round(a*r)/r}function Sd(t){const a=S.useRef(t);return ac(()=>{a.current=t}),a}function GO(t){t===void 0&&(t={});const{placement:a="bottom",strategy:r="absolute",middleware:s=[],platform:l,elements:{reference:u,floating:f}={},transform:h=!0,whileElementsMounted:p,open:m}=t,[y,v]=S.useState({x:0,y:0,strategy:r,placement:a,middlewareData:{},isPositioned:!1}),[b,A]=S.useState(s);pc(b,s)||A(s);const[E,w]=S.useState(null),[C,R]=S.useState(null),N=S.useCallback(P=>{P!==$.current&&($.current=P,w(P))},[]),j=S.useCallback(P=>{P!==Y.current&&(Y.current=P,R(P))},[]),k=u||E,_=f||C,$=S.useRef(null),Y=S.useRef(null),U=S.useRef(y),Q=p!=null,te=Sd(p),ce=Sd(l),ue=Sd(m),ve=S.useCallback(()=>{if(!$.current||!Y.current)return;const P={placement:a,strategy:r,middleware:b};ce.current&&(P.platform=ce.current),UO($.current,Y.current,P).then(re=>{const D={...re,isPositioned:ue.current!==!1};ge.current&&!pc(U.current,D)&&(U.current=D,mo.flushSync(()=>{v(D)}))})},[b,a,r,ce,ue]);ac(()=>{m===!1&&U.current.isPositioned&&(U.current.isPositioned=!1,v(P=>({...P,isPositioned:!1})))},[m]);const ge=S.useRef(!1);ac(()=>(ge.current=!0,()=>{ge.current=!1}),[]),ac(()=>{if(k&&($.current=k),_&&(Y.current=_),k&&_){if(te.current)return te.current(k,_,ve);ve()}},[k,_,ve,te,Q]);const de=S.useMemo(()=>({reference:$,floating:Y,setReference:N,setFloating:j}),[N,j]),V=S.useMemo(()=>({reference:k,floating:_}),[k,_]),q=S.useMemo(()=>{const P={position:r,left:0,top:0};if(!V.floating)return P;const re=lx(V.floating,y.x),D=lx(V.floating,y.y);return h?{...P,transform:"translate("+re+"px, "+D+"px)",...YS(V.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:re,top:D}},[r,h,V.floating,y.x,y.y]);return S.useMemo(()=>({...y,update:ve,refs:de,elements:V,floatingStyles:q}),[y,ve,de,V,q])}const qO=t=>{function a(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:s,padding:l}=typeof t=="function"?t(r):t;return s&&a(s)?s.current!=null?ox({element:s.current,padding:l}).fn(r):{}:s?ox({element:s,padding:l}).fn(r):{}}}},YO=(t,a)=>({..._O(t),options:[t,a]}),IO=(t,a)=>({...LO(t),options:[t,a]}),FO=(t,a)=>({...BO(t),options:[t,a]}),XO=(t,a)=>({...VO(t),options:[t,a]}),KO=(t,a)=>({...zO(t),options:[t,a]}),$O=(t,a)=>({...kO(t),options:[t,a]}),ZO=(t,a)=>({...qO(t),options:[t,a]});var QO="Arrow",IS=S.forwardRef((t,a)=>{const{children:r,width:s=10,height:l=5,...u}=t;return g.jsx(Me.svg,{...u,ref:a,width:s,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});IS.displayName=QO;var WO=IS;function JO(t){const[a,r]=S.useState(void 0);return wt(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const s=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const u=l[0];let f,h;if("borderBoxSize"in u){const p=u.borderBoxSize,m=Array.isArray(p)?p[0]:p;f=m.inlineSize,h=m.blockSize}else f=t.offsetWidth,h=t.offsetHeight;r({width:f,height:h})});return s.observe(t,{box:"border-box"}),()=>s.unobserve(t)}else r(void 0)},[t]),a}var um="Popper",[FS,XS]=kr(um),[e3,KS]=FS(um),$S=t=>{const{__scopePopper:a,children:r}=t,[s,l]=S.useState(null);return g.jsx(e3,{scope:a,anchor:s,onAnchorChange:l,children:r})};$S.displayName=um;var ZS="PopperAnchor",QS=S.forwardRef((t,a)=>{const{__scopePopper:r,virtualRef:s,...l}=t,u=KS(ZS,r),f=S.useRef(null),h=We(a,f);return S.useEffect(()=>{u.onAnchorChange((s==null?void 0:s.current)||f.current)}),s?null:g.jsx(Me.div,{...l,ref:h})});QS.displayName=ZS;var fm="PopperContent",[t3,n3]=FS(fm),WS=S.forwardRef((t,a)=>{var J,le,_e,Re,Te,Ae;const{__scopePopper:r,side:s="bottom",sideOffset:l=0,align:u="center",alignOffset:f=0,arrowPadding:h=0,avoidCollisions:p=!0,collisionBoundary:m=[],collisionPadding:y=0,sticky:v="partial",hideWhenDetached:b=!1,updatePositionStrategy:A="optimized",onPlaced:E,...w}=t,C=KS(fm,r),[R,N]=S.useState(null),j=We(a,ft=>N(ft)),[k,_]=S.useState(null),$=JO(k),Y=($==null?void 0:$.width)??0,U=($==null?void 0:$.height)??0,Q=s+(u!=="center"?"-"+u:""),te=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},ce=Array.isArray(m)?m:[m],ue=ce.length>0,ve={padding:te,boundary:ce.filter(i3),altBoundary:ue},{refs:ge,floatingStyles:de,placement:V,isPositioned:q,middlewareData:P}=GO({strategy:"fixed",placement:Q,whileElementsMounted:(...ft)=>OO(...ft,{animationFrame:A==="always"}),elements:{reference:C.anchor},middleware:[YO({mainAxis:l+U,alignmentAxis:f}),p&&IO({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?FO():void 0,...ve}),p&&XO({...ve}),KO({...ve,apply:({elements:ft,rects:Ct,availableWidth:Ka,availableHeight:$a})=>{const{width:gt,height:Lc}=Ct.reference,Za=ft.floating.style;Za.setProperty("--radix-popper-available-width",`${Ka}px`),Za.setProperty("--radix-popper-available-height",`${$a}px`),Za.setProperty("--radix-popper-anchor-width",`${gt}px`),Za.setProperty("--radix-popper-anchor-height",`${Lc}px`)}}),k&&ZO({element:k,padding:h}),r3({arrowWidth:Y,arrowHeight:U}),b&&$O({strategy:"referenceHidden",...ve})]}),[re,D]=t1(V),X=Ga(E);wt(()=>{q&&(X==null||X())},[q,X]);const W=(J=P.arrow)==null?void 0:J.x,Z=(le=P.arrow)==null?void 0:le.y,ee=((_e=P.arrow)==null?void 0:_e.centerOffset)!==0,[ye,oe]=S.useState();return wt(()=>{R&&oe(window.getComputedStyle(R).zIndex)},[R]),g.jsx("div",{ref:ge.setFloating,"data-radix-popper-content-wrapper":"",style:{...de,transform:q?de.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ye,"--radix-popper-transform-origin":[(Re=P.transformOrigin)==null?void 0:Re.x,(Te=P.transformOrigin)==null?void 0:Te.y].join(" "),...((Ae=P.hide)==null?void 0:Ae.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:g.jsx(t3,{scope:r,placedSide:re,onArrowChange:_,arrowX:W,arrowY:Z,shouldHideArrow:ee,children:g.jsx(Me.div,{"data-side":re,"data-align":D,...w,ref:j,style:{...w.style,animation:q?void 0:"none"}})})})});WS.displayName=fm;var JS="PopperArrow",a3={top:"bottom",right:"left",bottom:"top",left:"right"},e1=S.forwardRef(function(a,r){const{__scopePopper:s,...l}=a,u=n3(JS,s),f=a3[u.placedSide];return g.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:g.jsx(WO,{...l,ref:r,style:{...l.style,display:"block"}})})});e1.displayName=JS;function i3(t){return t!==null}var r3=t=>({name:"transformOrigin",options:t,fn(a){var C,R,N;const{placement:r,rects:s,middlewareData:l}=a,f=((C=l.arrow)==null?void 0:C.centerOffset)!==0,h=f?0:t.arrowWidth,p=f?0:t.arrowHeight,[m,y]=t1(r),v={start:"0%",center:"50%",end:"100%"}[y],b=(((R=l.arrow)==null?void 0:R.x)??0)+h/2,A=(((N=l.arrow)==null?void 0:N.y)??0)+p/2;let E="",w="";return m==="bottom"?(E=f?v:`${b}px`,w=`${-p}px`):m==="top"?(E=f?v:`${b}px`,w=`${s.floating.height+p}px`):m==="right"?(E=`${-p}px`,w=f?v:`${A}px`):m==="left"&&(E=`${s.floating.width+p}px`,w=f?v:`${A}px`),{data:{x:E,y:w}}}});function t1(t){const[a,r="center"]=t.split("-");return[a,r]}var s3=$S,o3=QS,l3=WS,c3=e1,u3="Portal",dm=S.forwardRef((t,a)=>{var h;const{container:r,...s}=t,[l,u]=S.useState(!1);wt(()=>u(!0),[]);const f=r||l&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return f?pC.createPortal(g.jsx(Me.div,{...s,ref:a}),f):null});dm.displayName=u3;var f3=vx[" useInsertionEffect ".trim().toString()]||wt;function uo({prop:t,defaultProp:a,onChange:r=()=>{},caller:s}){const[l,u,f]=d3({defaultProp:a,onChange:r}),h=t!==void 0,p=h?t:l;{const y=S.useRef(t!==void 0);S.useEffect(()=>{const v=y.current;v!==h&&console.warn(`${s} is changing from ${v?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=h},[h,s])}const m=S.useCallback(y=>{var v;if(h){const b=h3(y)?y(t):y;b!==t&&((v=f.current)==null||v.call(f,b))}else u(y)},[h,t,u,f]);return[p,m]}function d3({defaultProp:t,onChange:a}){const[r,s]=S.useState(t),l=S.useRef(r),u=S.useRef(a);return f3(()=>{u.current=a},[a]),S.useEffect(()=>{var f;l.current!==r&&((f=u.current)==null||f.call(u,r),l.current=r)},[r,l]),[r,s,u]}function h3(t){return typeof t=="function"}function m3(t){const a=S.useRef({value:t,previous:t});return S.useMemo(()=>(a.current.value!==t&&(a.current.previous=a.current.value,a.current.value=t),a.current.previous),[t])}var n1=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),p3="VisuallyHidden",g3=S.forwardRef((t,a)=>g.jsx(Me.span,{...t,ref:a,style:{...n1,...t.style}}));g3.displayName=p3;var y3=function(t){if(typeof document>"u")return null;var a=Array.isArray(t)?t[0]:t;return a.ownerDocument.body},mr=new WeakMap,Il=new WeakMap,Fl={},wd=0,a1=function(t){return t&&(t.host||a1(t.parentNode))},v3=function(t,a){return a.map(function(r){if(t.contains(r))return r;var s=a1(r);return s&&t.contains(s)?s:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},x3=function(t,a,r,s){var l=v3(a,Array.isArray(t)?t:[t]);Fl[r]||(Fl[r]=new WeakMap);var u=Fl[r],f=[],h=new Set,p=new Set(l),m=function(v){!v||h.has(v)||(h.add(v),m(v.parentNode))};l.forEach(m);var y=function(v){!v||p.has(v)||Array.prototype.forEach.call(v.children,function(b){if(h.has(b))y(b);else try{var A=b.getAttribute(s),E=A!==null&&A!=="false",w=(mr.get(b)||0)+1,C=(u.get(b)||0)+1;mr.set(b,w),u.set(b,C),f.push(b),w===1&&E&&Il.set(b,!0),C===1&&b.setAttribute(r,"true"),E||b.setAttribute(s,"true")}catch(R){console.error("aria-hidden: cannot operate on ",b,R)}})};return y(a),h.clear(),wd++,function(){f.forEach(function(v){var b=mr.get(v)-1,A=u.get(v)-1;mr.set(v,b),u.set(v,A),b||(Il.has(v)||v.removeAttribute(s),Il.delete(v)),A||v.removeAttribute(r)}),wd--,wd||(mr=new WeakMap,mr=new WeakMap,Il=new WeakMap,Fl={})}},i1=function(t,a,r){r===void 0&&(r="data-aria-hidden");var s=Array.from(Array.isArray(t)?t:[t]),l=y3(t);return l?(s.push.apply(s,Array.from(l.querySelectorAll("[aria-live], script"))),x3(s,l,r,"aria-hidden")):function(){return null}},Cn=function(){return Cn=Object.assign||function(a){for(var r,s=1,l=arguments.length;s<l;s++){r=arguments[s];for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(a[u]=r[u])}return a},Cn.apply(this,arguments)};function r1(t,a){var r={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&a.indexOf(s)<0&&(r[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(t);l<s.length;l++)a.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(t,s[l])&&(r[s[l]]=t[s[l]]);return r}function b3(t,a,r){if(r||arguments.length===2)for(var s=0,l=a.length,u;s<l;s++)(u||!(s in a))&&(u||(u=Array.prototype.slice.call(a,0,s)),u[s]=a[s]);return t.concat(u||Array.prototype.slice.call(a))}var ic="right-scroll-bar-position",rc="width-before-scroll-bar",S3="with-scroll-bars-hidden",w3="--removed-body-scroll-bar-size";function Td(t,a){return typeof t=="function"?t(a):t&&(t.current=a),t}function T3(t,a){var r=S.useState(function(){return{value:t,callback:a,facade:{get current(){return r.value},set current(s){var l=r.value;l!==s&&(r.value=s,r.callback(s,l))}}}})[0];return r.callback=a,r.facade}var A3=typeof window<"u"?S.useLayoutEffect:S.useEffect,cx=new WeakMap;function E3(t,a){var r=T3(null,function(s){return t.forEach(function(l){return Td(l,s)})});return A3(function(){var s=cx.get(r);if(s){var l=new Set(s),u=new Set(t),f=r.current;l.forEach(function(h){u.has(h)||Td(h,null)}),u.forEach(function(h){l.has(h)||Td(h,f)})}cx.set(r,t)},[t]),r}function C3(t){return t}function R3(t,a){a===void 0&&(a=C3);var r=[],s=!1,l={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(u){var f=a(u,s);return r.push(f),function(){r=r.filter(function(h){return h!==f})}},assignSyncMedium:function(u){for(s=!0;r.length;){var f=r;r=[],f.forEach(u)}r={push:function(h){return u(h)},filter:function(){return r}}},assignMedium:function(u){s=!0;var f=[];if(r.length){var h=r;r=[],h.forEach(u),f=r}var p=function(){var y=f;f=[],y.forEach(u)},m=function(){return Promise.resolve().then(p)};m(),r={push:function(y){f.push(y),m()},filter:function(y){return f=f.filter(y),r}}}};return l}function N3(t){t===void 0&&(t={});var a=R3(null);return a.options=Cn({async:!0,ssr:!1},t),a}var s1=function(t){var a=t.sideCar,r=r1(t,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=a.read();if(!s)throw new Error("Sidecar medium not found");return S.createElement(s,Cn({},r))};s1.isSideCarExport=!0;function j3(t,a){return t.useMedium(a),s1}var o1=N3(),Ad=function(){},Nc=S.forwardRef(function(t,a){var r=S.useRef(null),s=S.useState({onScrollCapture:Ad,onWheelCapture:Ad,onTouchMoveCapture:Ad}),l=s[0],u=s[1],f=t.forwardProps,h=t.children,p=t.className,m=t.removeScrollBar,y=t.enabled,v=t.shards,b=t.sideCar,A=t.noRelative,E=t.noIsolation,w=t.inert,C=t.allowPinchZoom,R=t.as,N=R===void 0?"div":R,j=t.gapMode,k=r1(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=b,$=E3([r,a]),Y=Cn(Cn({},k),l);return S.createElement(S.Fragment,null,y&&S.createElement(_,{sideCar:o1,removeScrollBar:m,shards:v,noRelative:A,noIsolation:E,inert:w,setCallbacks:u,allowPinchZoom:!!C,lockRef:r,gapMode:j}),f?S.cloneElement(S.Children.only(h),Cn(Cn({},Y),{ref:$})):S.createElement(N,Cn({},Y,{className:p,ref:$}),h))});Nc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Nc.classNames={fullWidth:rc,zeroRight:ic};var M3=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function D3(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var a=M3();return a&&t.setAttribute("nonce",a),t}function O3(t,a){t.styleSheet?t.styleSheet.cssText=a:t.appendChild(document.createTextNode(a))}function _3(t){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(t)}var L3=function(){var t=0,a=null;return{add:function(r){t==0&&(a=D3())&&(O3(a,r),_3(a)),t++},remove:function(){t--,!t&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},V3=function(){var t=L3();return function(a,r){S.useEffect(function(){return t.add(a),function(){t.remove()}},[a&&r])}},l1=function(){var t=V3(),a=function(r){var s=r.styles,l=r.dynamic;return t(s,l),null};return a},z3={left:0,top:0,right:0,gap:0},Ed=function(t){return parseInt(t||"",10)||0},k3=function(t){var a=window.getComputedStyle(document.body),r=a[t==="padding"?"paddingLeft":"marginLeft"],s=a[t==="padding"?"paddingTop":"marginTop"],l=a[t==="padding"?"paddingRight":"marginRight"];return[Ed(r),Ed(s),Ed(l)]},B3=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return z3;var a=k3(t),r=document.documentElement.clientWidth,s=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,s-r+a[2]-a[0])}},U3=l1(),Tr="data-scroll-locked",P3=function(t,a,r,s){var l=t.left,u=t.top,f=t.right,h=t.gap;return r===void 0&&(r="margin"),`
  .`.concat(S3,` {
   overflow: hidden `).concat(s,`;
   padding-right: `).concat(h,"px ").concat(s,`;
  }
  body[`).concat(Tr,`] {
    overflow: hidden `).concat(s,`;
    overscroll-behavior: contain;
    `).concat([a&&"position: relative ".concat(s,";"),r==="margin"&&`
    padding-left: `.concat(l,`px;
    padding-top: `).concat(u,`px;
    padding-right: `).concat(f,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(h,"px ").concat(s,`;
    `),r==="padding"&&"padding-right: ".concat(h,"px ").concat(s,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(ic,` {
    right: `).concat(h,"px ").concat(s,`;
  }
  
  .`).concat(rc,` {
    margin-right: `).concat(h,"px ").concat(s,`;
  }
  
  .`).concat(ic," .").concat(ic,` {
    right: 0 `).concat(s,`;
  }
  
  .`).concat(rc," .").concat(rc,` {
    margin-right: 0 `).concat(s,`;
  }
  
  body[`).concat(Tr,`] {
    `).concat(w3,": ").concat(h,`px;
  }
`)},ux=function(){var t=parseInt(document.body.getAttribute(Tr)||"0",10);return isFinite(t)?t:0},H3=function(){S.useEffect(function(){return document.body.setAttribute(Tr,(ux()+1).toString()),function(){var t=ux()-1;t<=0?document.body.removeAttribute(Tr):document.body.setAttribute(Tr,t.toString())}},[])},G3=function(t){var a=t.noRelative,r=t.noImportant,s=t.gapMode,l=s===void 0?"margin":s;H3();var u=S.useMemo(function(){return B3(l)},[l]);return S.createElement(U3,{styles:P3(u,!a,l,r?"":"!important")})},nh=!1;if(typeof window<"u")try{var Xl=Object.defineProperty({},"passive",{get:function(){return nh=!0,!0}});window.addEventListener("test",Xl,Xl),window.removeEventListener("test",Xl,Xl)}catch{nh=!1}var pr=nh?{passive:!1}:!1,q3=function(t){return t.tagName==="TEXTAREA"},c1=function(t,a){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[a]!=="hidden"&&!(r.overflowY===r.overflowX&&!q3(t)&&r[a]==="visible")},Y3=function(t){return c1(t,"overflowY")},I3=function(t){return c1(t,"overflowX")},fx=function(t,a){var r=a.ownerDocument,s=a;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var l=u1(t,s);if(l){var u=f1(t,s),f=u[1],h=u[2];if(f>h)return!0}s=s.parentNode}while(s&&s!==r.body);return!1},F3=function(t){var a=t.scrollTop,r=t.scrollHeight,s=t.clientHeight;return[a,r,s]},X3=function(t){var a=t.scrollLeft,r=t.scrollWidth,s=t.clientWidth;return[a,r,s]},u1=function(t,a){return t==="v"?Y3(a):I3(a)},f1=function(t,a){return t==="v"?F3(a):X3(a)},K3=function(t,a){return t==="h"&&a==="rtl"?-1:1},$3=function(t,a,r,s,l){var u=K3(t,window.getComputedStyle(a).direction),f=u*s,h=r.target,p=a.contains(h),m=!1,y=f>0,v=0,b=0;do{if(!h)break;var A=f1(t,h),E=A[0],w=A[1],C=A[2],R=w-C-u*E;(E||R)&&u1(t,h)&&(v+=R,b+=E);var N=h.parentNode;h=N&&N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?N.host:N}while(!p&&h!==document.body||p&&(a.contains(h)||a===h));return(y&&Math.abs(v)<1||!y&&Math.abs(b)<1)&&(m=!0),m},Kl=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},dx=function(t){return[t.deltaX,t.deltaY]},hx=function(t){return t&&"current"in t?t.current:t},Z3=function(t,a){return t[0]===a[0]&&t[1]===a[1]},Q3=function(t){return`
  .block-interactivity-`.concat(t,` {pointer-events: none;}
  .allow-interactivity-`).concat(t,` {pointer-events: all;}
`)},W3=0,gr=[];function J3(t){var a=S.useRef([]),r=S.useRef([0,0]),s=S.useRef(),l=S.useState(W3++)[0],u=S.useState(l1)[0],f=S.useRef(t);S.useEffect(function(){f.current=t},[t]),S.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(l));var w=b3([t.lockRef.current],(t.shards||[]).map(hx),!0).filter(Boolean);return w.forEach(function(C){return C.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),w.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(l))})}}},[t.inert,t.lockRef.current,t.shards]);var h=S.useCallback(function(w,C){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!f.current.allowPinchZoom;var R=Kl(w),N=r.current,j="deltaX"in w?w.deltaX:N[0]-R[0],k="deltaY"in w?w.deltaY:N[1]-R[1],_,$=w.target,Y=Math.abs(j)>Math.abs(k)?"h":"v";if("touches"in w&&Y==="h"&&$.type==="range")return!1;var U=fx(Y,$);if(!U)return!0;if(U?_=Y:(_=Y==="v"?"h":"v",U=fx(Y,$)),!U)return!1;if(!s.current&&"changedTouches"in w&&(j||k)&&(s.current=_),!_)return!0;var Q=s.current||_;return $3(Q,C,w,Q==="h"?j:k)},[]),p=S.useCallback(function(w){var C=w;if(!(!gr.length||gr[gr.length-1]!==u)){var R="deltaY"in C?dx(C):Kl(C),N=a.current.filter(function(_){return _.name===C.type&&(_.target===C.target||C.target===_.shadowParent)&&Z3(_.delta,R)})[0];if(N&&N.should){C.cancelable&&C.preventDefault();return}if(!N){var j=(f.current.shards||[]).map(hx).filter(Boolean).filter(function(_){return _.contains(C.target)}),k=j.length>0?h(C,j[0]):!f.current.noIsolation;k&&C.cancelable&&C.preventDefault()}}},[]),m=S.useCallback(function(w,C,R,N){var j={name:w,delta:C,target:R,should:N,shadowParent:e_(R)};a.current.push(j),setTimeout(function(){a.current=a.current.filter(function(k){return k!==j})},1)},[]),y=S.useCallback(function(w){r.current=Kl(w),s.current=void 0},[]),v=S.useCallback(function(w){m(w.type,dx(w),w.target,h(w,t.lockRef.current))},[]),b=S.useCallback(function(w){m(w.type,Kl(w),w.target,h(w,t.lockRef.current))},[]);S.useEffect(function(){return gr.push(u),t.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:b}),document.addEventListener("wheel",p,pr),document.addEventListener("touchmove",p,pr),document.addEventListener("touchstart",y,pr),function(){gr=gr.filter(function(w){return w!==u}),document.removeEventListener("wheel",p,pr),document.removeEventListener("touchmove",p,pr),document.removeEventListener("touchstart",y,pr)}},[]);var A=t.removeScrollBar,E=t.inert;return S.createElement(S.Fragment,null,E?S.createElement(u,{styles:Q3(l)}):null,A?S.createElement(G3,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function e_(t){for(var a=null;t!==null;)t instanceof ShadowRoot&&(a=t.host,t=t.host),t=t.parentNode;return a}const t_=j3(o1,J3);var hm=S.forwardRef(function(t,a){return S.createElement(Nc,Cn({},t,{ref:a,sideCar:t_}))});hm.classNames=Nc.classNames;var n_=[" ","Enter","ArrowUp","ArrowDown"],a_=[" ","Enter"],Ei="Select",[jc,Mc,i_]=MS(Ei),[Pr,J4]=kr(Ei,[i_,XS]),Dc=XS(),[r_,Fa]=Pr(Ei),[s_,o_]=Pr(Ei),d1=t=>{const{__scopeSelect:a,children:r,open:s,defaultOpen:l,onOpenChange:u,value:f,defaultValue:h,onValueChange:p,dir:m,name:y,autoComplete:v,disabled:b,required:A,form:E}=t,w=Dc(a),[C,R]=S.useState(null),[N,j]=S.useState(null),[k,_]=S.useState(!1),$=em(m),[Y,U]=uo({prop:s,defaultProp:l??!1,onChange:u,caller:Ei}),[Q,te]=uo({prop:f,defaultProp:h,onChange:p,caller:Ei}),ce=S.useRef(null),ue=C?E||!!C.closest("form"):!0,[ve,ge]=S.useState(new Set),de=Array.from(ve).map(V=>V.props.value).join(";");return g.jsx(s3,{...w,children:g.jsxs(r_,{required:A,scope:a,trigger:C,onTriggerChange:R,valueNode:N,onValueNodeChange:j,valueNodeHasChildren:k,onValueNodeHasChildrenChange:_,contentId:Ua(),value:Q,onValueChange:te,open:Y,onOpenChange:U,dir:$,triggerPointerDownPosRef:ce,disabled:b,children:[g.jsx(jc.Provider,{scope:a,children:g.jsx(s_,{scope:t.__scopeSelect,onNativeOptionAdd:S.useCallback(V=>{ge(q=>new Set(q).add(V))},[]),onNativeOptionRemove:S.useCallback(V=>{ge(q=>{const P=new Set(q);return P.delete(V),P})},[]),children:r})}),ue?g.jsxs(L1,{"aria-hidden":!0,required:A,tabIndex:-1,name:y,autoComplete:v,value:Q,onChange:V=>te(V.target.value),disabled:b,form:E,children:[Q===void 0?g.jsx("option",{value:""}):null,Array.from(ve)]},de):null]})})};d1.displayName=Ei;var h1="SelectTrigger",m1=S.forwardRef((t,a)=>{const{__scopeSelect:r,disabled:s=!1,...l}=t,u=Dc(r),f=Fa(h1,r),h=f.disabled||s,p=We(a,f.onTriggerChange),m=Mc(r),y=S.useRef("touch"),[v,b,A]=z1(w=>{const C=m().filter(j=>!j.disabled),R=C.find(j=>j.value===f.value),N=k1(C,w,R);N!==void 0&&f.onValueChange(N.value)}),E=w=>{h||(f.onOpenChange(!0),A()),w&&(f.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return g.jsx(o3,{asChild:!0,...u,children:g.jsx(Me.button,{type:"button",role:"combobox","aria-controls":f.contentId,"aria-expanded":f.open,"aria-required":f.required,"aria-autocomplete":"none",dir:f.dir,"data-state":f.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":V1(f.value)?"":void 0,...l,ref:p,onClick:je(l.onClick,w=>{w.currentTarget.focus(),y.current!=="mouse"&&E(w)}),onPointerDown:je(l.onPointerDown,w=>{y.current=w.pointerType;const C=w.target;C.hasPointerCapture(w.pointerId)&&C.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(E(w),w.preventDefault())}),onKeyDown:je(l.onKeyDown,w=>{const C=v.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&b(w.key),!(C&&w.key===" ")&&n_.includes(w.key)&&(E(),w.preventDefault())})})})});m1.displayName=h1;var p1="SelectValue",g1=S.forwardRef((t,a)=>{const{__scopeSelect:r,className:s,style:l,children:u,placeholder:f="",...h}=t,p=Fa(p1,r),{onValueNodeHasChildrenChange:m}=p,y=u!==void 0,v=We(a,p.onValueNodeChange);return wt(()=>{m(y)},[m,y]),g.jsx(Me.span,{...h,ref:v,style:{pointerEvents:"none"},children:V1(p.value)?g.jsx(g.Fragment,{children:f}):u})});g1.displayName=p1;var l_="SelectIcon",y1=S.forwardRef((t,a)=>{const{__scopeSelect:r,children:s,...l}=t;return g.jsx(Me.span,{"aria-hidden":!0,...l,ref:a,children:s||"▼"})});y1.displayName=l_;var c_="SelectPortal",v1=t=>g.jsx(dm,{asChild:!0,...t});v1.displayName=c_;var Ci="SelectContent",x1=S.forwardRef((t,a)=>{const r=Fa(Ci,t.__scopeSelect),[s,l]=S.useState();if(wt(()=>{l(new DocumentFragment)},[]),!r.open){const u=s;return u?mo.createPortal(g.jsx(b1,{scope:t.__scopeSelect,children:g.jsx(jc.Slot,{scope:t.__scopeSelect,children:g.jsx("div",{children:t.children})})}),u):null}return g.jsx(S1,{...t,ref:a})});x1.displayName=Ci;var mn=10,[b1,Xa]=Pr(Ci),u_="SelectContentImpl",f_=Rr("SelectContent.RemoveScroll"),S1=S.forwardRef((t,a)=>{const{__scopeSelect:r,position:s="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:u,onPointerDownOutside:f,side:h,sideOffset:p,align:m,alignOffset:y,arrowPadding:v,collisionBoundary:b,collisionPadding:A,sticky:E,hideWhenDetached:w,avoidCollisions:C,...R}=t,N=Fa(Ci,r),[j,k]=S.useState(null),[_,$]=S.useState(null),Y=We(a,J=>k(J)),[U,Q]=S.useState(null),[te,ce]=S.useState(null),ue=Mc(r),[ve,ge]=S.useState(!1),de=S.useRef(!1);S.useEffect(()=>{if(j)return i1(j)},[j]),_S();const V=S.useCallback(J=>{const[le,..._e]=ue().map(Ae=>Ae.ref.current),[Re]=_e.slice(-1),Te=document.activeElement;for(const Ae of J)if(Ae===Te||(Ae==null||Ae.scrollIntoView({block:"nearest"}),Ae===le&&_&&(_.scrollTop=0),Ae===Re&&_&&(_.scrollTop=_.scrollHeight),Ae==null||Ae.focus(),document.activeElement!==Te))return},[ue,_]),q=S.useCallback(()=>V([U,j]),[V,U,j]);S.useEffect(()=>{ve&&q()},[ve,q]);const{onOpenChange:P,triggerPointerDownPosRef:re}=N;S.useEffect(()=>{if(j){let J={x:0,y:0};const le=Re=>{var Te,Ae;J={x:Math.abs(Math.round(Re.pageX)-(((Te=re.current)==null?void 0:Te.x)??0)),y:Math.abs(Math.round(Re.pageY)-(((Ae=re.current)==null?void 0:Ae.y)??0))}},_e=Re=>{J.x<=10&&J.y<=10?Re.preventDefault():j.contains(Re.target)||P(!1),document.removeEventListener("pointermove",le),re.current=null};return re.current!==null&&(document.addEventListener("pointermove",le),document.addEventListener("pointerup",_e,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",le),document.removeEventListener("pointerup",_e,{capture:!0})}}},[j,P,re]),S.useEffect(()=>{const J=()=>P(!1);return window.addEventListener("blur",J),window.addEventListener("resize",J),()=>{window.removeEventListener("blur",J),window.removeEventListener("resize",J)}},[P]);const[D,X]=z1(J=>{const le=ue().filter(Te=>!Te.disabled),_e=le.find(Te=>Te.ref.current===document.activeElement),Re=k1(le,J,_e);Re&&setTimeout(()=>Re.ref.current.focus())}),W=S.useCallback((J,le,_e)=>{const Re=!de.current&&!_e;(N.value!==void 0&&N.value===le||Re)&&(Q(J),Re&&(de.current=!0))},[N.value]),Z=S.useCallback(()=>j==null?void 0:j.focus(),[j]),ee=S.useCallback((J,le,_e)=>{const Re=!de.current&&!_e;(N.value!==void 0&&N.value===le||Re)&&ce(J)},[N.value]),ye=s==="popper"?ah:w1,oe=ye===ah?{side:h,sideOffset:p,align:m,alignOffset:y,arrowPadding:v,collisionBoundary:b,collisionPadding:A,sticky:E,hideWhenDetached:w,avoidCollisions:C}:{};return g.jsx(b1,{scope:r,content:j,viewport:_,onViewportChange:$,itemRefCallback:W,selectedItem:U,onItemLeave:Z,itemTextRefCallback:ee,focusSelectedItem:q,selectedItemText:te,position:s,isPositioned:ve,searchRef:D,children:g.jsx(hm,{as:f_,allowPinchZoom:!0,children:g.jsx(nm,{asChild:!0,trapped:N.open,onMountAutoFocus:J=>{J.preventDefault()},onUnmountAutoFocus:je(l,J=>{var le;(le=N.trigger)==null||le.focus({preventScroll:!0}),J.preventDefault()}),children:g.jsx(tm,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:J=>J.preventDefault(),onDismiss:()=>N.onOpenChange(!1),children:g.jsx(ye,{role:"listbox",id:N.contentId,"data-state":N.open?"open":"closed",dir:N.dir,onContextMenu:J=>J.preventDefault(),...R,...oe,onPlaced:()=>ge(!0),ref:Y,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:je(R.onKeyDown,J=>{const le=J.ctrlKey||J.altKey||J.metaKey;if(J.key==="Tab"&&J.preventDefault(),!le&&J.key.length===1&&X(J.key),["ArrowUp","ArrowDown","Home","End"].includes(J.key)){let Re=ue().filter(Te=>!Te.disabled).map(Te=>Te.ref.current);if(["ArrowUp","End"].includes(J.key)&&(Re=Re.slice().reverse()),["ArrowUp","ArrowDown"].includes(J.key)){const Te=J.target,Ae=Re.indexOf(Te);Re=Re.slice(Ae+1)}setTimeout(()=>V(Re)),J.preventDefault()}})})})})})})});S1.displayName=u_;var d_="SelectItemAlignedPosition",w1=S.forwardRef((t,a)=>{const{__scopeSelect:r,onPlaced:s,...l}=t,u=Fa(Ci,r),f=Xa(Ci,r),[h,p]=S.useState(null),[m,y]=S.useState(null),v=We(a,Y=>y(Y)),b=Mc(r),A=S.useRef(!1),E=S.useRef(!0),{viewport:w,selectedItem:C,selectedItemText:R,focusSelectedItem:N}=f,j=S.useCallback(()=>{if(u.trigger&&u.valueNode&&h&&m&&w&&C&&R){const Y=u.trigger.getBoundingClientRect(),U=m.getBoundingClientRect(),Q=u.valueNode.getBoundingClientRect(),te=R.getBoundingClientRect();if(u.dir!=="rtl"){const Te=te.left-U.left,Ae=Q.left-Te,ft=Y.left-Ae,Ct=Y.width+ft,Ka=Math.max(Ct,U.width),$a=window.innerWidth-mn,gt=X0(Ae,[mn,Math.max(mn,$a-Ka)]);h.style.minWidth=Ct+"px",h.style.left=gt+"px"}else{const Te=U.right-te.right,Ae=window.innerWidth-Q.right-Te,ft=window.innerWidth-Y.right-Ae,Ct=Y.width+ft,Ka=Math.max(Ct,U.width),$a=window.innerWidth-mn,gt=X0(Ae,[mn,Math.max(mn,$a-Ka)]);h.style.minWidth=Ct+"px",h.style.right=gt+"px"}const ce=b(),ue=window.innerHeight-mn*2,ve=w.scrollHeight,ge=window.getComputedStyle(m),de=parseInt(ge.borderTopWidth,10),V=parseInt(ge.paddingTop,10),q=parseInt(ge.borderBottomWidth,10),P=parseInt(ge.paddingBottom,10),re=de+V+ve+P+q,D=Math.min(C.offsetHeight*5,re),X=window.getComputedStyle(w),W=parseInt(X.paddingTop,10),Z=parseInt(X.paddingBottom,10),ee=Y.top+Y.height/2-mn,ye=ue-ee,oe=C.offsetHeight/2,J=C.offsetTop+oe,le=de+V+J,_e=re-le;if(le<=ee){const Te=ce.length>0&&C===ce[ce.length-1].ref.current;h.style.bottom="0px";const Ae=m.clientHeight-w.offsetTop-w.offsetHeight,ft=Math.max(ye,oe+(Te?Z:0)+Ae+q),Ct=le+ft;h.style.height=Ct+"px"}else{const Te=ce.length>0&&C===ce[0].ref.current;h.style.top="0px";const ft=Math.max(ee,de+w.offsetTop+(Te?W:0)+oe)+_e;h.style.height=ft+"px",w.scrollTop=le-ee+w.offsetTop}h.style.margin=`${mn}px 0`,h.style.minHeight=D+"px",h.style.maxHeight=ue+"px",s==null||s(),requestAnimationFrame(()=>A.current=!0)}},[b,u.trigger,u.valueNode,h,m,w,C,R,u.dir,s]);wt(()=>j(),[j]);const[k,_]=S.useState();wt(()=>{m&&_(window.getComputedStyle(m).zIndex)},[m]);const $=S.useCallback(Y=>{Y&&E.current===!0&&(j(),N==null||N(),E.current=!1)},[j,N]);return g.jsx(m_,{scope:r,contentWrapper:h,shouldExpandOnScrollRef:A,onScrollButtonChange:$,children:g.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:g.jsx(Me.div,{...l,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});w1.displayName=d_;var h_="SelectPopperPosition",ah=S.forwardRef((t,a)=>{const{__scopeSelect:r,align:s="start",collisionPadding:l=mn,...u}=t,f=Dc(r);return g.jsx(l3,{...f,...u,ref:a,align:s,collisionPadding:l,style:{boxSizing:"border-box",...u.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});ah.displayName=h_;var[m_,mm]=Pr(Ci,{}),ih="SelectViewport",T1=S.forwardRef((t,a)=>{const{__scopeSelect:r,nonce:s,...l}=t,u=Xa(ih,r),f=mm(ih,r),h=We(a,u.onViewportChange),p=S.useRef(0);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),g.jsx(jc.Slot,{scope:r,children:g.jsx(Me.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:je(l.onScroll,m=>{const y=m.currentTarget,{contentWrapper:v,shouldExpandOnScrollRef:b}=f;if(b!=null&&b.current&&v){const A=Math.abs(p.current-y.scrollTop);if(A>0){const E=window.innerHeight-mn*2,w=parseFloat(v.style.minHeight),C=parseFloat(v.style.height),R=Math.max(w,C);if(R<E){const N=R+A,j=Math.min(E,N),k=N-j;v.style.height=j+"px",v.style.bottom==="0px"&&(y.scrollTop=k>0?k:0,v.style.justifyContent="flex-end")}}}p.current=y.scrollTop})})})]})});T1.displayName=ih;var A1="SelectGroup",[p_,g_]=Pr(A1),y_=S.forwardRef((t,a)=>{const{__scopeSelect:r,...s}=t,l=Ua();return g.jsx(p_,{scope:r,id:l,children:g.jsx(Me.div,{role:"group","aria-labelledby":l,...s,ref:a})})});y_.displayName=A1;var E1="SelectLabel",v_=S.forwardRef((t,a)=>{const{__scopeSelect:r,...s}=t,l=g_(E1,r);return g.jsx(Me.div,{id:l.id,...s,ref:a})});v_.displayName=E1;var gc="SelectItem",[x_,C1]=Pr(gc),R1=S.forwardRef((t,a)=>{const{__scopeSelect:r,value:s,disabled:l=!1,textValue:u,...f}=t,h=Fa(gc,r),p=Xa(gc,r),m=h.value===s,[y,v]=S.useState(u??""),[b,A]=S.useState(!1),E=We(a,N=>{var j;return(j=p.itemRefCallback)==null?void 0:j.call(p,N,s,l)}),w=Ua(),C=S.useRef("touch"),R=()=>{l||(h.onValueChange(s),h.onOpenChange(!1))};if(s==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return g.jsx(x_,{scope:r,value:s,disabled:l,textId:w,isSelected:m,onItemTextChange:S.useCallback(N=>{v(j=>j||((N==null?void 0:N.textContent)??"").trim())},[]),children:g.jsx(jc.ItemSlot,{scope:r,value:s,disabled:l,textValue:y,children:g.jsx(Me.div,{role:"option","aria-labelledby":w,"data-highlighted":b?"":void 0,"aria-selected":m&&b,"data-state":m?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...f,ref:E,onFocus:je(f.onFocus,()=>A(!0)),onBlur:je(f.onBlur,()=>A(!1)),onClick:je(f.onClick,()=>{C.current!=="mouse"&&R()}),onPointerUp:je(f.onPointerUp,()=>{C.current==="mouse"&&R()}),onPointerDown:je(f.onPointerDown,N=>{C.current=N.pointerType}),onPointerMove:je(f.onPointerMove,N=>{var j;C.current=N.pointerType,l?(j=p.onItemLeave)==null||j.call(p):C.current==="mouse"&&N.currentTarget.focus({preventScroll:!0})}),onPointerLeave:je(f.onPointerLeave,N=>{var j;N.currentTarget===document.activeElement&&((j=p.onItemLeave)==null||j.call(p))}),onKeyDown:je(f.onKeyDown,N=>{var k;((k=p.searchRef)==null?void 0:k.current)!==""&&N.key===" "||(a_.includes(N.key)&&R(),N.key===" "&&N.preventDefault())})})})})});R1.displayName=gc;var Is="SelectItemText",N1=S.forwardRef((t,a)=>{const{__scopeSelect:r,className:s,style:l,...u}=t,f=Fa(Is,r),h=Xa(Is,r),p=C1(Is,r),m=o_(Is,r),[y,v]=S.useState(null),b=We(a,R=>v(R),p.onItemTextChange,R=>{var N;return(N=h.itemTextRefCallback)==null?void 0:N.call(h,R,p.value,p.disabled)}),A=y==null?void 0:y.textContent,E=S.useMemo(()=>g.jsx("option",{value:p.value,disabled:p.disabled,children:A},p.value),[p.disabled,p.value,A]),{onNativeOptionAdd:w,onNativeOptionRemove:C}=m;return wt(()=>(w(E),()=>C(E)),[w,C,E]),g.jsxs(g.Fragment,{children:[g.jsx(Me.span,{id:p.textId,...u,ref:b}),p.isSelected&&f.valueNode&&!f.valueNodeHasChildren?mo.createPortal(u.children,f.valueNode):null]})});N1.displayName=Is;var j1="SelectItemIndicator",M1=S.forwardRef((t,a)=>{const{__scopeSelect:r,...s}=t;return C1(j1,r).isSelected?g.jsx(Me.span,{"aria-hidden":!0,...s,ref:a}):null});M1.displayName=j1;var rh="SelectScrollUpButton",D1=S.forwardRef((t,a)=>{const r=Xa(rh,t.__scopeSelect),s=mm(rh,t.__scopeSelect),[l,u]=S.useState(!1),f=We(a,s.onScrollButtonChange);return wt(()=>{if(r.viewport&&r.isPositioned){let h=function(){const m=p.scrollTop>0;u(m)};const p=r.viewport;return h(),p.addEventListener("scroll",h),()=>p.removeEventListener("scroll",h)}},[r.viewport,r.isPositioned]),l?g.jsx(_1,{...t,ref:f,onAutoScroll:()=>{const{viewport:h,selectedItem:p}=r;h&&p&&(h.scrollTop=h.scrollTop-p.offsetHeight)}}):null});D1.displayName=rh;var sh="SelectScrollDownButton",O1=S.forwardRef((t,a)=>{const r=Xa(sh,t.__scopeSelect),s=mm(sh,t.__scopeSelect),[l,u]=S.useState(!1),f=We(a,s.onScrollButtonChange);return wt(()=>{if(r.viewport&&r.isPositioned){let h=function(){const m=p.scrollHeight-p.clientHeight,y=Math.ceil(p.scrollTop)<m;u(y)};const p=r.viewport;return h(),p.addEventListener("scroll",h),()=>p.removeEventListener("scroll",h)}},[r.viewport,r.isPositioned]),l?g.jsx(_1,{...t,ref:f,onAutoScroll:()=>{const{viewport:h,selectedItem:p}=r;h&&p&&(h.scrollTop=h.scrollTop+p.offsetHeight)}}):null});O1.displayName=sh;var _1=S.forwardRef((t,a)=>{const{__scopeSelect:r,onAutoScroll:s,...l}=t,u=Xa("SelectScrollButton",r),f=S.useRef(null),h=Mc(r),p=S.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return S.useEffect(()=>()=>p(),[p]),wt(()=>{var y;const m=h().find(v=>v.ref.current===document.activeElement);(y=m==null?void 0:m.ref.current)==null||y.scrollIntoView({block:"nearest"})},[h]),g.jsx(Me.div,{"aria-hidden":!0,...l,ref:a,style:{flexShrink:0,...l.style},onPointerDown:je(l.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(s,50))}),onPointerMove:je(l.onPointerMove,()=>{var m;(m=u.onItemLeave)==null||m.call(u),f.current===null&&(f.current=window.setInterval(s,50))}),onPointerLeave:je(l.onPointerLeave,()=>{p()})})}),b_="SelectSeparator",S_=S.forwardRef((t,a)=>{const{__scopeSelect:r,...s}=t;return g.jsx(Me.div,{"aria-hidden":!0,...s,ref:a})});S_.displayName=b_;var oh="SelectArrow",w_=S.forwardRef((t,a)=>{const{__scopeSelect:r,...s}=t,l=Dc(r),u=Fa(oh,r),f=Xa(oh,r);return u.open&&f.position==="popper"?g.jsx(c3,{...l,...s,ref:a}):null});w_.displayName=oh;var T_="SelectBubbleInput",L1=S.forwardRef(({__scopeSelect:t,value:a,...r},s)=>{const l=S.useRef(null),u=We(s,l),f=m3(a);return S.useEffect(()=>{const h=l.current;if(!h)return;const p=window.HTMLSelectElement.prototype,y=Object.getOwnPropertyDescriptor(p,"value").set;if(f!==a&&y){const v=new Event("change",{bubbles:!0});y.call(h,a),h.dispatchEvent(v)}},[f,a]),g.jsx(Me.select,{...r,style:{...n1,...r.style},ref:u,defaultValue:a})});L1.displayName=T_;function V1(t){return t===""||t===void 0}function z1(t){const a=Ga(t),r=S.useRef(""),s=S.useRef(0),l=S.useCallback(f=>{const h=r.current+f;a(h),function p(m){r.current=m,window.clearTimeout(s.current),m!==""&&(s.current=window.setTimeout(()=>p(""),1e3))}(h)},[a]),u=S.useCallback(()=>{r.current="",window.clearTimeout(s.current)},[]);return S.useEffect(()=>()=>window.clearTimeout(s.current),[]),[r,l,u]}function k1(t,a,r){const l=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,u=r?t.indexOf(r):-1;let f=A_(t,Math.max(u,0));l.length===1&&(f=f.filter(m=>m!==r));const p=f.find(m=>m.textValue.toLowerCase().startsWith(l.toLowerCase()));return p!==r?p:void 0}function A_(t,a){return t.map((r,s)=>t[(a+s)%t.length])}var E_=d1,C_=m1,R_=g1,N_=y1,j_=v1,M_=x1,D_=T1,O_=R1,__=N1,L_=M1,V_=D1,z_=O1;function Nn({...t}){return g.jsx(E_,{"data-slot":"select",...t})}function jn({...t}){return g.jsx(R_,{"data-slot":"select-value",...t})}function Mn({className:t,size:a="default",children:r,...s}){return g.jsxs(C_,{"data-slot":"select-trigger","data-size":a,className:Pe("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...s,children:[r,g.jsx(N_,{asChild:!0,children:g.jsx(hS,{className:"size-4 opacity-50"})})]})}function Dn({className:t,children:a,position:r="popper",...s}){return g.jsx(j_,{children:g.jsxs(M_,{"data-slot":"select-content",className:Pe("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,...s,children:[g.jsx(k_,{}),g.jsx(D_,{className:Pe("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:a}),g.jsx(B_,{})]})})}function Ot({className:t,children:a,...r}){return g.jsxs(O_,{"data-slot":"select-item",className:Pe("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...r,children:[g.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:g.jsx(L_,{children:g.jsx(sM,{className:"size-4"})})}),g.jsx(__,{children:a})]})}function k_({className:t,...a}){return g.jsx(V_,{"data-slot":"select-scroll-up-button",className:Pe("flex cursor-default items-center justify-center py-1",t),...a,children:g.jsx(cM,{className:"size-4"})})}function B_({className:t,...a}){return g.jsx(z_,{"data-slot":"select-scroll-down-button",className:Pe("flex cursor-default items-center justify-center py-1",t),...a,children:g.jsx(hS,{className:"size-4"})})}var Cd="rovingFocusGroup.onEntryFocus",U_={bubbles:!1,cancelable:!0},bo="RovingFocusGroup",[lh,B1,P_]=MS(bo),[H_,U1]=kr(bo,[P_]),[G_,q_]=H_(bo),P1=S.forwardRef((t,a)=>g.jsx(lh.Provider,{scope:t.__scopeRovingFocusGroup,children:g.jsx(lh.Slot,{scope:t.__scopeRovingFocusGroup,children:g.jsx(Y_,{...t,ref:a})})}));P1.displayName=bo;var Y_=S.forwardRef((t,a)=>{const{__scopeRovingFocusGroup:r,orientation:s,loop:l=!1,dir:u,currentTabStopId:f,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:p,onEntryFocus:m,preventScrollOnEntryFocus:y=!1,...v}=t,b=S.useRef(null),A=We(a,b),E=em(u),[w,C]=uo({prop:f,defaultProp:h??null,onChange:p,caller:bo}),[R,N]=S.useState(!1),j=Ga(m),k=B1(r),_=S.useRef(!1),[$,Y]=S.useState(0);return S.useEffect(()=>{const U=b.current;if(U)return U.addEventListener(Cd,j),()=>U.removeEventListener(Cd,j)},[j]),g.jsx(G_,{scope:r,orientation:s,dir:E,loop:l,currentTabStopId:w,onItemFocus:S.useCallback(U=>C(U),[C]),onItemShiftTab:S.useCallback(()=>N(!0),[]),onFocusableItemAdd:S.useCallback(()=>Y(U=>U+1),[]),onFocusableItemRemove:S.useCallback(()=>Y(U=>U-1),[]),children:g.jsx(Me.div,{tabIndex:R||$===0?-1:0,"data-orientation":s,...v,ref:A,style:{outline:"none",...t.style},onMouseDown:je(t.onMouseDown,()=>{_.current=!0}),onFocus:je(t.onFocus,U=>{const Q=!_.current;if(U.target===U.currentTarget&&Q&&!R){const te=new CustomEvent(Cd,U_);if(U.currentTarget.dispatchEvent(te),!te.defaultPrevented){const ce=k().filter(V=>V.focusable),ue=ce.find(V=>V.active),ve=ce.find(V=>V.id===w),de=[ue,ve,...ce].filter(Boolean).map(V=>V.ref.current);q1(de,y)}}_.current=!1}),onBlur:je(t.onBlur,()=>N(!1))})})}),H1="RovingFocusGroupItem",G1=S.forwardRef((t,a)=>{const{__scopeRovingFocusGroup:r,focusable:s=!0,active:l=!1,tabStopId:u,children:f,...h}=t,p=Ua(),m=u||p,y=q_(H1,r),v=y.currentTabStopId===m,b=B1(r),{onFocusableItemAdd:A,onFocusableItemRemove:E,currentTabStopId:w}=y;return S.useEffect(()=>{if(s)return A(),()=>E()},[s,A,E]),g.jsx(lh.ItemSlot,{scope:r,id:m,focusable:s,active:l,children:g.jsx(Me.span,{tabIndex:v?0:-1,"data-orientation":y.orientation,...h,ref:a,onMouseDown:je(t.onMouseDown,C=>{s?y.onItemFocus(m):C.preventDefault()}),onFocus:je(t.onFocus,()=>y.onItemFocus(m)),onKeyDown:je(t.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){y.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const R=X_(C,y.orientation,y.dir);if(R!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let j=b().filter(k=>k.focusable).map(k=>k.ref.current);if(R==="last")j.reverse();else if(R==="prev"||R==="next"){R==="prev"&&j.reverse();const k=j.indexOf(C.currentTarget);j=y.loop?K_(j,k+1):j.slice(k+1)}setTimeout(()=>q1(j))}}),children:typeof f=="function"?f({isCurrentTabStop:v,hasTabStop:w!=null}):f})})});G1.displayName=H1;var I_={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function F_(t,a){return a!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function X_(t,a,r){const s=F_(t.key,r);if(!(a==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(a==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return I_[s]}function q1(t,a=!1){const r=document.activeElement;for(const s of t)if(s===r||(s.focus({preventScroll:a}),document.activeElement!==r))return}function K_(t,a){return t.map((r,s)=>t[(a+s)%t.length])}var $_=P1,Z_=G1;function Q_(t,a){return S.useReducer((r,s)=>a[r][s]??r,t)}var So=t=>{const{present:a,children:r}=t,s=W_(a),l=typeof r=="function"?r({present:s.isPresent}):S.Children.only(r),u=We(s.ref,J_(l));return typeof r=="function"||s.isPresent?S.cloneElement(l,{ref:u}):null};So.displayName="Presence";function W_(t){const[a,r]=S.useState(),s=S.useRef(null),l=S.useRef(t),u=S.useRef("none"),f=t?"mounted":"unmounted",[h,p]=Q_(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const m=$l(s.current);u.current=h==="mounted"?m:"none"},[h]),wt(()=>{const m=s.current,y=l.current;if(y!==t){const b=u.current,A=$l(m);t?p("MOUNT"):A==="none"||(m==null?void 0:m.display)==="none"?p("UNMOUNT"):p(y&&b!==A?"ANIMATION_OUT":"UNMOUNT"),l.current=t}},[t,p]),wt(()=>{if(a){let m;const y=a.ownerDocument.defaultView??window,v=A=>{const w=$l(s.current).includes(A.animationName);if(A.target===a&&w&&(p("ANIMATION_END"),!l.current)){const C=a.style.animationFillMode;a.style.animationFillMode="forwards",m=y.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=C)})}},b=A=>{A.target===a&&(u.current=$l(s.current))};return a.addEventListener("animationstart",b),a.addEventListener("animationcancel",v),a.addEventListener("animationend",v),()=>{y.clearTimeout(m),a.removeEventListener("animationstart",b),a.removeEventListener("animationcancel",v),a.removeEventListener("animationend",v)}}else p("ANIMATION_END")},[a,p]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:S.useCallback(m=>{s.current=m?getComputedStyle(m):null,r(m)},[])}}function $l(t){return(t==null?void 0:t.animationName)||"none"}function J_(t){var s,l;let a=(s=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(l=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:l.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var Oc="Tabs",[e4,eL]=kr(Oc,[U1]),Y1=U1(),[t4,pm]=e4(Oc),I1=S.forwardRef((t,a)=>{const{__scopeTabs:r,value:s,onValueChange:l,defaultValue:u,orientation:f="horizontal",dir:h,activationMode:p="automatic",...m}=t,y=em(h),[v,b]=uo({prop:s,onChange:l,defaultProp:u??"",caller:Oc});return g.jsx(t4,{scope:r,baseId:Ua(),value:v,onValueChange:b,orientation:f,dir:y,activationMode:p,children:g.jsx(Me.div,{dir:y,"data-orientation":f,...m,ref:a})})});I1.displayName=Oc;var F1="TabsList",X1=S.forwardRef((t,a)=>{const{__scopeTabs:r,loop:s=!0,...l}=t,u=pm(F1,r),f=Y1(r);return g.jsx($_,{asChild:!0,...f,orientation:u.orientation,dir:u.dir,loop:s,children:g.jsx(Me.div,{role:"tablist","aria-orientation":u.orientation,...l,ref:a})})});X1.displayName=F1;var K1="TabsTrigger",$1=S.forwardRef((t,a)=>{const{__scopeTabs:r,value:s,disabled:l=!1,...u}=t,f=pm(K1,r),h=Y1(r),p=W1(f.baseId,s),m=J1(f.baseId,s),y=s===f.value;return g.jsx(Z_,{asChild:!0,...h,focusable:!l,active:y,children:g.jsx(Me.button,{type:"button",role:"tab","aria-selected":y,"aria-controls":m,"data-state":y?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:p,...u,ref:a,onMouseDown:je(t.onMouseDown,v=>{!l&&v.button===0&&v.ctrlKey===!1?f.onValueChange(s):v.preventDefault()}),onKeyDown:je(t.onKeyDown,v=>{[" ","Enter"].includes(v.key)&&f.onValueChange(s)}),onFocus:je(t.onFocus,()=>{const v=f.activationMode!=="manual";!y&&!l&&v&&f.onValueChange(s)})})})});$1.displayName=K1;var Z1="TabsContent",Q1=S.forwardRef((t,a)=>{const{__scopeTabs:r,value:s,forceMount:l,children:u,...f}=t,h=pm(Z1,r),p=W1(h.baseId,s),m=J1(h.baseId,s),y=s===h.value,v=S.useRef(y);return S.useEffect(()=>{const b=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(b)},[]),g.jsx(So,{present:l||y,children:({present:b})=>g.jsx(Me.div,{"data-state":y?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":p,hidden:!b,id:m,tabIndex:0,...f,ref:a,style:{...t.style,animationDuration:v.current?"0s":void 0},children:b&&u})})});Q1.displayName=Z1;function W1(t,a){return`${t}-trigger-${a}`}function J1(t,a){return`${t}-content-${a}`}var n4=I1,a4=X1,i4=$1,r4=Q1;function s4({className:t,...a}){return g.jsx(n4,{"data-slot":"tabs",className:Pe("flex flex-col gap-2",t),...a})}function o4({className:t,...a}){return g.jsx(a4,{"data-slot":"tabs-list",className:Pe("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",t),...a})}function mx({className:t,...a}){return g.jsx(i4,{"data-slot":"tabs-trigger",className:Pe("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...a})}function px({className:t,...a}){return g.jsx(r4,{"data-slot":"tabs-content",className:Pe("flex-1 outline-none",t),...a})}const l4="http://192.168.64.18:5001",c4=["Employment Agreement","Commercial Lease","Service Agreement","Partnership Agreement","Non-Disclosure Agreement","Supply Agreement","Distribution Agreement","Consulting Agreement"],u4=[{value:"SA",label:"Saudi Arabia"},{value:"JO",label:"Jordan"}];function f4(){const[t,a]=S.useState({title:"",contractType:"",jurisdiction:"",parties:{party1:{name:"",type:"individual",address:""},party2:{name:"",type:"individual",address:""}},requirements:"",additionalInput:""}),[r,s]=S.useState(""),[l,u]=S.useState(!1),f=(v,b)=>{a(A=>({...A,[v]:b}))},h=(v,b,A)=>{a(E=>({...E,parties:{...E.parties,[v]:{...E.parties[v],[b]:A}}}))},p=async()=>{u(!0);try{const v=await fetch(`${l4}/api/contracts/generate`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!v.ok)throw new Error(`HTTP error! status: ${v.status}`);const b=await v.json();s(b.contractText)}catch(v){console.error("Error generating contract:",v),s("Error: Could not generate contract. Please check your backend connection and try again.")}finally{u(!1)}},m=()=>{alert("Contract saved successfully!")},y=()=>{const v=document.createElement("a"),b=new Blob([r],{type:"text/plain"});v.href=URL.createObjectURL(b),v.download=`${t.title||"contract"}.txt`,document.body.appendChild(v),v.click(),document.body.removeChild(v)};return g.jsxs("div",{className:"flex",children:[g.jsxs("div",{className:"w-64 bg-white shadow-lg h-screen fixed left-0 top-0 z-10",children:[g.jsx("div",{className:"p-6 border-b",children:g.jsxs(an,{to:"/",className:"flex items-center space-x-2 text-gray-600 hover:text-gray-900",children:[g.jsx(Tc,{className:"h-5 w-5"}),g.jsx("span",{children:"Back to Dashboard"})]})}),g.jsxs("div",{className:"p-6",children:[g.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[g.jsx(ra,{className:"h-6 w-6 text-blue-600"}),g.jsx("span",{className:"text-xl font-bold text-gray-900",children:"LAWAI"})]}),g.jsx(Yt,{variant:"secondary",className:"w-full justify-center",children:"Contract Generator"})]})]}),g.jsx("div",{className:"flex-1 ml-64 p-8",children:g.jsxs(pn.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[g.jsxs("div",{className:"mb-8",children:[g.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Generate Contract"}),g.jsx("p",{className:"text-gray-600",children:"Create comprehensive legal contracts with AI assistance"})]}),g.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[g.jsxs(sn,{children:[g.jsxs(on,{children:[g.jsxs(ln,{className:"flex items-center space-x-2",children:[g.jsx(NM,{className:"h-5 w-5"}),g.jsx("span",{children:"Contract Details"})]}),g.jsx(Vn,{children:"Provide the basic information for your contract"})]}),g.jsxs(cn,{className:"space-y-6",children:[g.jsxs("div",{children:[g.jsx(At,{htmlFor:"title",children:"Contract Title"}),g.jsx(nc,{id:"title",placeholder:"e.g., Software Development Agreement",value:t.title,onChange:v=>f("title",v.target.value)})]}),g.jsxs("div",{children:[g.jsx(At,{htmlFor:"contractType",children:"Contract Type"}),g.jsxs(Nn,{onValueChange:v=>f("contractType",v),children:[g.jsx(Mn,{children:g.jsx(jn,{placeholder:"Select contract type"})}),g.jsx(Dn,{children:c4.map(v=>g.jsx(Ot,{value:v,children:v},v))})]})]}),g.jsxs("div",{children:[g.jsx(At,{htmlFor:"jurisdiction",children:"Jurisdiction"}),g.jsxs(Nn,{onValueChange:v=>f("jurisdiction",v),children:[g.jsx(Mn,{children:g.jsx(jn,{placeholder:"Select jurisdiction"})}),g.jsx(Dn,{children:u4.map(v=>g.jsx(Ot,{value:v.value,children:v.label},v.value))})]})]}),g.jsxs(s4,{defaultValue:"party1",className:"w-full",children:[g.jsxs(o4,{className:"grid w-full grid-cols-2",children:[g.jsx(mx,{value:"party1",children:"Party 1"}),g.jsx(mx,{value:"party2",children:"Party 2"})]}),g.jsxs(px,{value:"party1",className:"space-y-4",children:[g.jsxs("div",{children:[g.jsx(At,{htmlFor:"party1Name",children:"Name"}),g.jsx(nc,{id:"party1Name",placeholder:"Full name or company name",value:t.parties.party1.name,onChange:v=>h("party1","name",v.target.value)})]}),g.jsxs("div",{children:[g.jsx(At,{htmlFor:"party1Type",children:"Type"}),g.jsxs(Nn,{onValueChange:v=>h("party1","type",v),children:[g.jsx(Mn,{children:g.jsx(jn,{placeholder:"Select type"})}),g.jsxs(Dn,{children:[g.jsx(Ot,{value:"individual",children:"Individual"}),g.jsx(Ot,{value:"company",children:"Company"}),g.jsx(Ot,{value:"organization",children:"Organization"})]})]})]}),g.jsxs("div",{children:[g.jsx(At,{htmlFor:"party1Address",children:"Address"}),g.jsx(Si,{id:"party1Address",placeholder:"Full address",value:t.parties.party1.address,onChange:v=>h("party1","address",v.target.value)})]})]}),g.jsxs(px,{value:"party2",className:"space-y-4",children:[g.jsxs("div",{children:[g.jsx(At,{htmlFor:"party2Name",children:"Name"}),g.jsx(nc,{id:"party2Name",placeholder:"Full name or company name",value:t.parties.party2.name,onChange:v=>h("party2","name",v.target.value)})]}),g.jsxs("div",{children:[g.jsx(At,{htmlFor:"party2Type",children:"Type"}),g.jsxs(Nn,{onValueChange:v=>h("party2","type",v),children:[g.jsx(Mn,{children:g.jsx(jn,{placeholder:"Select type"})}),g.jsxs(Dn,{children:[g.jsx(Ot,{value:"individual",children:"Individual"}),g.jsx(Ot,{value:"company",children:"Company"}),g.jsx(Ot,{value:"organization",children:"Organization"})]})]})]}),g.jsxs("div",{children:[g.jsx(At,{htmlFor:"party2Address",children:"Address"}),g.jsx(Si,{id:"party2Address",placeholder:"Full address",value:t.parties.party2.address,onChange:v=>h("party2","address",v.target.value)})]})]})]}),g.jsxs("div",{children:[g.jsx(At,{htmlFor:"requirements",children:"Specific Requirements"}),g.jsx(Si,{id:"requirements",placeholder:"Describe the specific terms, conditions, and requirements for this contract...",rows:4,value:t.requirements,onChange:v=>f("requirements",v.target.value)})]}),g.jsxs("div",{children:[g.jsx(At,{htmlFor:"additionalInput",children:"Additional Instructions"}),g.jsx(Si,{id:"additionalInput",placeholder:"Any additional instructions or special considerations...",rows:3,value:t.additionalInput,onChange:v=>f("additionalInput",v.target.value)})]}),g.jsx(Ye,{onClick:p,disabled:!t.contractType||!t.jurisdiction||l,className:"w-full",children:l?g.jsxs(g.Fragment,{children:[g.jsx(Cr,{className:"h-4 w-4 mr-2 animate-spin"}),"Generating Contract..."]}):g.jsxs(g.Fragment,{children:[g.jsx(Cr,{className:"h-4 w-4 mr-2"}),"Generate Contract"]})})]})]}),g.jsxs(sn,{children:[g.jsxs(on,{children:[g.jsxs(ln,{className:"flex items-center space-x-2",children:[g.jsx(oo,{className:"h-5 w-5"}),g.jsx("span",{children:"Generated Contract"})]}),g.jsx(Vn,{children:"Your AI-generated contract will appear here"})]}),g.jsx(cn,{children:r?g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"flex space-x-2",children:[g.jsxs(Ye,{onClick:m,variant:"outline",size:"sm",children:[g.jsx(mS,{className:"h-4 w-4 mr-2"}),"Save"]}),g.jsxs(Ye,{onClick:y,variant:"outline",size:"sm",children:[g.jsx(Ac,{className:"h-4 w-4 mr-2"}),"Download"]})]}),g.jsx("div",{className:"bg-gray-50 p-4 rounded-lg max-h-96 overflow-y-auto",children:g.jsx("pre",{className:"whitespace-pre-wrap text-sm text-gray-800",children:r})})]}):g.jsxs("div",{className:"text-center py-12 text-gray-500",children:[g.jsx(oo,{className:"h-12 w-12 mx-auto mb-4 opacity-50"}),g.jsx("p",{children:'Fill out the form and click "Generate Contract" to see your contract here'})]})})]})]})]})})]})}const d4=Wh("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function h4({className:t,variant:a,...r}){return g.jsx("div",{"data-slot":"alert",role:"alert",className:Pe(d4({variant:a}),t),...r})}function m4({className:t,...a}){return g.jsx("div",{"data-slot":"alert-description",className:Pe("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",t),...a})}const p4=[{value:"SA",label:"Saudi Arabia"},{value:"JO",label:"Jordan"}],g4=[{value:"general",label:"General Review"},{value:"compliance",label:"Compliance Check"},{value:"risk",label:"Risk Assessment"}];function y4(){const[t,a]=S.useState(""),[r,s]=S.useState(""),[l,u]=S.useState("general"),[f,h]=S.useState(null),[p,m]=S.useState(!1),y=w=>{const C=w.target.files[0];if(C){const R=new FileReader;R.onload=N=>{a(N.target.result)},R.readAsText(C)}},v=async()=>{m(!0),setTimeout(()=>{h({risk_level:"Medium",summary:"The contract has been reviewed and several areas require attention. While the overall structure is sound, there are compliance issues and potential risks that should be addressed.",compliance_issues:["Missing force majeure clause required under Saudi Arabian commercial law","Dispute resolution mechanism does not specify arbitration location","Payment terms may conflict with local banking regulations"],legal_risks:["Unlimited liability exposure for both parties","Vague termination conditions could lead to disputes","Intellectual property ownership not clearly defined"],missing_clauses:["Confidentiality and non-disclosure provisions","Data protection and privacy compliance","Governing law and jurisdiction clause","Amendment and modification procedures"],ambiguous_language:['Section 3.2: "reasonable efforts" needs specific definition','Section 5.1: "timely manner" should specify exact timeframes','Section 7.3: "material breach" requires clear criteria'],recommendations:["Add comprehensive force majeure clause compliant with local law","Define all ambiguous terms in a definitions section","Include specific dispute resolution procedures","Add data protection compliance clauses","Specify liability caps and limitations","Include detailed termination procedures"]}),m(!1)},3e3)},b=w=>{switch(w==null?void 0:w.toLowerCase()){case"low":return"text-green-600 bg-green-100";case"medium":return"text-yellow-600 bg-yellow-100";case"high":return"text-red-600 bg-red-100";default:return"text-gray-600 bg-gray-100"}},A=w=>{switch(w==null?void 0:w.toLowerCase()){case"low":return Zh;case"medium":return Ws;case"high":return dM;default:return Ws}},E=()=>{if(!f)return;const w=`
CONTRACT REVIEW REPORT
Generated by LAWAI

OVERALL RISK LEVEL: ${f.risk_level}

SUMMARY:
${f.summary}

COMPLIANCE ISSUES:
${f.compliance_issues.map((N,j)=>`${j+1}. ${N}`).join(`
`)}

LEGAL RISKS:
${f.legal_risks.map((N,j)=>`${j+1}. ${N}`).join(`
`)}

MISSING CLAUSES:
${f.missing_clauses.map((N,j)=>`${j+1}. ${N}`).join(`
`)}

AMBIGUOUS LANGUAGE:
${f.ambiguous_language.map((N,j)=>`${j+1}. ${N}`).join(`
`)}

RECOMMENDATIONS:
${f.recommendations.map((N,j)=>`${j+1}. ${N}`).join(`
`)}

Report generated on: ${new Date().toLocaleDateString()}
    `,C=document.createElement("a"),R=new Blob([w],{type:"text/plain"});C.href=URL.createObjectURL(R),C.download="contract_review_report.txt",document.body.appendChild(C),C.click(),document.body.removeChild(C)};return g.jsxs("div",{className:"flex",children:[g.jsxs("div",{className:"w-64 bg-white shadow-lg h-screen fixed left-0 top-0 z-10",children:[g.jsx("div",{className:"p-6 border-b",children:g.jsxs(an,{to:"/",className:"flex items-center space-x-2 text-gray-600 hover:text-gray-900",children:[g.jsx(Tc,{className:"h-5 w-5"}),g.jsx("span",{children:"Back to Dashboard"})]})}),g.jsxs("div",{className:"p-6",children:[g.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[g.jsx(ra,{className:"h-6 w-6 text-blue-600"}),g.jsx("span",{className:"text-xl font-bold text-gray-900",children:"LAWAI"})]}),g.jsx(Yt,{variant:"secondary",className:"w-full justify-center",children:"Contract Review"})]})]}),g.jsx("div",{className:"flex-1 ml-64 p-8",children:g.jsxs(pn.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[g.jsxs("div",{className:"mb-8",children:[g.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Contract Review"}),g.jsx("p",{className:"text-gray-600",children:"Analyze contracts for compliance, risks, and legal issues"})]}),g.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[g.jsxs(sn,{children:[g.jsxs(on,{children:[g.jsxs(ln,{className:"flex items-center space-x-2",children:[g.jsx(oo,{className:"h-5 w-5"}),g.jsx("span",{children:"Contract Input"})]}),g.jsx(Vn,{children:"Upload a file or paste your contract text for review"})]}),g.jsxs(cn,{className:"space-y-6",children:[g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm font-medium mb-2",children:"Upload Contract File"}),g.jsxs("div",{className:"border-2 border-dashed border-gray-300 rounded-lg p-6 text-center",children:[g.jsx(_M,{className:"h-8 w-8 mx-auto mb-2 text-gray-400"}),g.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Click to upload or drag and drop"}),g.jsx("p",{className:"text-xs text-gray-500",children:"Supports .txt, .doc, .docx files"}),g.jsx("input",{type:"file",accept:".txt,.doc,.docx",onChange:y,className:"hidden",id:"file-upload"}),g.jsx(Ye,{variant:"outline",size:"sm",className:"mt-2",onClick:()=>document.getElementById("file-upload").click(),children:"Choose File"})]})]}),g.jsx("div",{className:"text-center text-gray-500",children:g.jsx("span",{children:"or"})}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm font-medium mb-2",children:"Paste Contract Text"}),g.jsx(Si,{placeholder:"Paste your contract text here...",rows:10,value:t,onChange:w=>a(w.target.value),className:"min-h-[200px]"})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm font-medium mb-2",children:"Jurisdiction"}),g.jsxs(Nn,{onValueChange:s,children:[g.jsx(Mn,{children:g.jsx(jn,{placeholder:"Select jurisdiction"})}),g.jsx(Dn,{children:p4.map(w=>g.jsx(Ot,{value:w.value,children:w.label},w.value))})]})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm font-medium mb-2",children:"Review Type"}),g.jsxs(Nn,{onValueChange:u,defaultValue:"general",children:[g.jsx(Mn,{children:g.jsx(jn,{})}),g.jsx(Dn,{children:g4.map(w=>g.jsx(Ot,{value:w.value,children:w.label},w.value))})]})]}),g.jsx(Ye,{onClick:v,disabled:!t||!r||p,className:"w-full",children:p?g.jsxs(g.Fragment,{children:[g.jsx(aa,{className:"h-4 w-4 mr-2 animate-spin"}),"Reviewing Contract..."]}):g.jsxs(g.Fragment,{children:[g.jsx(aa,{className:"h-4 w-4 mr-2"}),"Review Contract"]})})]})]}),g.jsxs(sn,{children:[g.jsxs(on,{children:[g.jsxs(ln,{className:"flex items-center space-x-2",children:[g.jsx(aa,{className:"h-5 w-5"}),g.jsx("span",{children:"Review Results"})]}),g.jsx(Vn,{children:"Detailed analysis and recommendations"})]}),g.jsx(cn,{children:f?g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("span",{className:"font-medium",children:"Overall Risk Level:"}),g.jsxs(Yt,{className:b(f.risk_level),children:[na.createElement(A(f.risk_level),{className:"h-4 w-4 mr-1"}),f.risk_level]})]}),g.jsxs(Ye,{onClick:E,variant:"outline",size:"sm",className:"w-full",children:[g.jsx(Ac,{className:"h-4 w-4 mr-2"}),"Download Full Report"]}),g.jsxs("div",{children:[g.jsx("h3",{className:"font-semibold mb-2",children:"Summary"}),g.jsx("p",{className:"text-sm text-gray-600",children:f.summary})]}),f.compliance_issues.length>0&&g.jsxs(h4,{children:[g.jsx(Ws,{className:"h-4 w-4"}),g.jsxs(m4,{children:[g.jsx("strong",{children:"Compliance Issues Found:"}),g.jsxs("ul",{className:"mt-2 space-y-1",children:[f.compliance_issues.slice(0,2).map((w,C)=>g.jsxs("li",{className:"text-sm",children:["• ",w]},C)),f.compliance_issues.length>2&&g.jsxs("li",{className:"text-sm text-gray-500",children:["+",f.compliance_issues.length-2," more issues"]})]})]})]}),f.legal_risks.length>0&&g.jsxs("div",{children:[g.jsx("h3",{className:"font-semibold mb-2 text-red-600",children:"Legal Risks"}),g.jsxs("ul",{className:"space-y-1",children:[f.legal_risks.slice(0,3).map((w,C)=>g.jsxs("li",{className:"text-sm text-gray-600",children:["• ",w]},C)),f.legal_risks.length>3&&g.jsxs("li",{className:"text-sm text-gray-500",children:["+",f.legal_risks.length-3," more risks"]})]})]}),f.missing_clauses.length>0&&g.jsxs("div",{children:[g.jsx("h3",{className:"font-semibold mb-2 text-yellow-600",children:"Missing Clauses"}),g.jsxs("ul",{className:"space-y-1",children:[f.missing_clauses.slice(0,3).map((w,C)=>g.jsxs("li",{className:"text-sm text-gray-600",children:["• ",w]},C)),f.missing_clauses.length>3&&g.jsxs("li",{className:"text-sm text-gray-500",children:["+",f.missing_clauses.length-3," more clauses"]})]})]}),f.recommendations.length>0&&g.jsxs("div",{children:[g.jsx("h3",{className:"font-semibold mb-2 text-green-600",children:"Recommendations"}),g.jsxs("ul",{className:"space-y-1",children:[f.recommendations.slice(0,3).map((w,C)=>g.jsxs("li",{className:"text-sm text-gray-600",children:["• ",w]},C)),f.recommendations.length>3&&g.jsxs("li",{className:"text-sm text-gray-500",children:["+",f.recommendations.length-3," more recommendations"]})]})]})]}):g.jsxs("div",{className:"text-center py-12 text-gray-500",children:[g.jsx(aa,{className:"h-12 w-12 mx-auto mb-4 opacity-50"}),g.jsx("p",{children:'Upload or paste a contract and click "Review Contract" to see analysis here'})]})})]})]})]})})]})}const gx=["Confidentiality Clause","Termination Clause","Payment Terms","Liability Limitation","Force Majeure","Dispute Resolution","Intellectual Property","Non-Compete","Governing Law","Amendment Clause","Indemnification","Warranty Disclaimer"],v4=[{value:"SA",label:"Saudi Arabia"},{value:"JO",label:"Jordan"}];function x4(){const[t,a]=S.useState({clauseType:"",jurisdiction:"",context:"",specificRequirements:""}),[r,s]=S.useState(""),[l,u]=S.useState(!1),[f,h]=S.useState([]),p=(E,w)=>{a(C=>({...C,[E]:w}))},m=async()=>{u(!0),setTimeout(()=>{const E=y(t.clauseType,t.jurisdiction);s(E),h(["Consider adding specific timeframes for notice periods","Include provisions for electronic communications","Add force majeure exceptions if applicable","Specify governing law jurisdiction clearly"]),u(!1)},2e3)},y=(E,w)=>{const C=w==="SA"?"Saudi Arabia":"Jordan";switch(E){case"Confidentiality Clause":return`CONFIDENTIALITY

Each party acknowledges that it may have access to certain confidential information of the other party. Each party agrees to maintain in confidence any confidential information received from the other party and not to disclose such confidential information to third parties without the prior written consent of the disclosing party.

For the purposes of this Agreement, "Confidential Information" shall include all non-public, proprietary or confidential information, technical data, trade secrets, know-how, research, product plans, products, services, customers, customer lists, markets, software, developments, inventions, processes, formulas, technology, designs, drawings, engineering, hardware configuration information, marketing, finances, or other business information.

This obligation shall survive termination of this Agreement and shall continue for a period of [5] years from the date of disclosure, unless otherwise required by the laws of ${C}.

The receiving party shall use the same degree of care to protect the confidential information as it uses to protect its own confidential information, but in no event less than reasonable care.`;case"Termination Clause":return`TERMINATION

This Agreement may be terminated:

(a) By mutual written consent of both parties;

(b) By either party upon [30] days' written notice to the other party;

(c) By either party immediately upon written notice if the other party materially breaches this Agreement and fails to cure such breach within [15] days after receiving written notice of the breach;

(d) By either party immediately upon written notice if the other party becomes insolvent, makes an assignment for the benefit of creditors, files for bankruptcy, or has a receiver appointed for its business or assets.

Upon termination of this Agreement, each party shall return or destroy all confidential information of the other party in its possession or control.

The provisions of this Agreement that by their nature should survive termination shall survive, including but not limited to confidentiality, limitation of liability, and governing law provisions.

This termination clause is governed by the laws of ${C}.`;case"Payment Terms":return`PAYMENT TERMS

Payment for services rendered under this Agreement shall be made according to the following terms:

(a) All payments shall be made in [Currency] within [30] days of receipt of invoice;

(b) Invoices shall be submitted monthly and shall include detailed descriptions of services performed;

(c) Late payments shall incur interest at the rate of [1.5%] per month or the maximum rate permitted by law in ${C}, whichever is lower;

(d) All payments shall be made by bank transfer to the account specified by the payee;

(e) Each party shall be responsible for its own banking fees and charges;

(f) In case of disputed invoices, the undisputed portion shall be paid within the specified timeframe, and the disputed portion shall be resolved through good faith negotiations.

All payment obligations are subject to applicable tax laws and regulations of ${C}.`;case"Dispute Resolution":return`DISPUTE RESOLUTION

Any dispute, controversy, or claim arising out of or relating to this Agreement, or the breach, termination, or invalidity thereof, shall be resolved as follows:

(a) NEGOTIATION: The parties shall first attempt to resolve any dispute through good faith negotiations for a period of [30] days;

(b) MEDIATION: If negotiation fails, the parties agree to submit the dispute to mediation before a mutually agreed mediator in ${C};

(c) ARBITRATION: If mediation is unsuccessful, any remaining dispute shall be finally settled by arbitration under the rules of [applicable arbitration institution] in ${C};

(d) The arbitration shall be conducted in [Arabic/English] language;

(e) The arbitral award shall be final and binding upon both parties;

(f) Each party shall bear its own costs and expenses, and the parties shall share equally the fees and expenses of the arbitrator(s);

(g) This dispute resolution clause shall be governed by the laws of ${C}.

Nothing in this clause shall prevent either party from seeking interim or injunctive relief in a court of competent jurisdiction.`;default:return`[${E.toUpperCase()}]

This clause shall be drafted in accordance with the laws and regulations of ${C}. The specific terms and conditions shall be tailored to meet the requirements of this Agreement and ensure compliance with applicable legal standards.

[Detailed clause content would be generated here based on the specific requirements and context provided.]

This clause is subject to the governing law of ${C} and shall be interpreted in accordance with local legal principles and practices.`}},v=()=>{navigator.clipboard.writeText(r),alert("Clause copied to clipboard!")},b=()=>{alert("Clause saved successfully!")},A=()=>{t.clauseType&&t.jurisdiction&&m()};return g.jsxs("div",{className:"flex",children:[g.jsxs("div",{className:"w-64 bg-white shadow-lg h-screen fixed left-0 top-0 z-10",children:[g.jsx("div",{className:"p-6 border-b",children:g.jsxs(an,{to:"/",className:"flex items-center space-x-2 text-gray-600 hover:text-gray-900",children:[g.jsx(Tc,{className:"h-5 w-5"}),g.jsx("span",{children:"Back to Dashboard"})]})}),g.jsxs("div",{className:"p-6",children:[g.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[g.jsx(ra,{className:"h-6 w-6 text-blue-600"}),g.jsx("span",{className:"text-xl font-bold text-gray-900",children:"LAWAI"})]}),g.jsx(Yt,{variant:"secondary",className:"w-full justify-center",children:"Clause Drafter"})]})]}),g.jsx("div",{className:"flex-1 ml-64 p-8",children:g.jsxs(pn.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[g.jsxs("div",{className:"mb-8",children:[g.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Draft Clauses"}),g.jsx("p",{className:"text-gray-600",children:"Create specific contract clauses with AI assistance"})]}),g.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[g.jsxs(sn,{children:[g.jsxs(on,{children:[g.jsxs(ln,{className:"flex items-center space-x-2",children:[g.jsx(Qs,{className:"h-5 w-5"}),g.jsx("span",{children:"Clause Requirements"})]}),g.jsx(Vn,{children:"Specify the type and requirements for your clause"})]}),g.jsxs(cn,{className:"space-y-6",children:[g.jsxs("div",{children:[g.jsx(At,{htmlFor:"clauseType",children:"Clause Type"}),g.jsxs(Nn,{onValueChange:E=>p("clauseType",E),children:[g.jsx(Mn,{children:g.jsx(jn,{placeholder:"Select clause type"})}),g.jsx(Dn,{children:gx.map(E=>g.jsx(Ot,{value:E,children:E},E))})]})]}),g.jsxs("div",{children:[g.jsx(At,{htmlFor:"jurisdiction",children:"Jurisdiction"}),g.jsxs(Nn,{onValueChange:E=>p("jurisdiction",E),children:[g.jsx(Mn,{children:g.jsx(jn,{placeholder:"Select jurisdiction"})}),g.jsx(Dn,{children:v4.map(E=>g.jsx(Ot,{value:E.value,children:E.label},E.value))})]})]}),g.jsxs("div",{children:[g.jsx(At,{htmlFor:"context",children:"Contract Context"}),g.jsx(Si,{id:"context",placeholder:"Describe the overall contract context (e.g., employment agreement, service contract, etc.)",rows:4,value:t.context,onChange:E=>p("context",E.target.value)})]}),g.jsxs("div",{children:[g.jsx(At,{htmlFor:"specificRequirements",children:"Specific Requirements"}),g.jsx(Si,{id:"specificRequirements",placeholder:"Describe any specific requirements, conditions, or customizations needed for this clause...",rows:4,value:t.specificRequirements,onChange:E=>p("specificRequirements",E.target.value)})]}),g.jsx(Ye,{onClick:m,disabled:!t.clauseType||!t.jurisdiction||l,className:"w-full",children:l?g.jsxs(g.Fragment,{children:[g.jsx(Cr,{className:"h-4 w-4 mr-2 animate-spin"}),"Drafting Clause..."]}):g.jsxs(g.Fragment,{children:[g.jsx(Cr,{className:"h-4 w-4 mr-2"}),"Draft Clause"]})})]})]}),g.jsxs(sn,{children:[g.jsxs(on,{children:[g.jsxs(ln,{className:"flex items-center space-x-2",children:[g.jsx(Qs,{className:"h-5 w-5"}),g.jsx("span",{children:"Generated Clause"})]}),g.jsx(Vn,{children:"Your AI-drafted clause will appear here"})]}),g.jsx(cn,{children:r?g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"flex space-x-2",children:[g.jsxs(Ye,{onClick:v,variant:"outline",size:"sm",children:[g.jsx(pM,{className:"h-4 w-4 mr-2"}),"Copy"]}),g.jsxs(Ye,{onClick:b,variant:"outline",size:"sm",children:[g.jsx(mS,{className:"h-4 w-4 mr-2"}),"Save"]}),g.jsxs(Ye,{onClick:A,variant:"outline",size:"sm",children:[g.jsx(TM,{className:"h-4 w-4 mr-2"}),"Regenerate"]})]}),g.jsx("div",{className:"bg-gray-50 p-4 rounded-lg max-h-96 overflow-y-auto",children:g.jsx("pre",{className:"whitespace-pre-wrap text-sm text-gray-800",children:r})}),f.length>0&&g.jsxs("div",{className:"mt-6",children:[g.jsx("h3",{className:"font-semibold mb-3 text-blue-600",children:"AI Suggestions"}),g.jsx("ul",{className:"space-y-2",children:f.map((E,w)=>g.jsxs("li",{className:"text-sm text-gray-600 bg-blue-50 p-3 rounded-lg",children:["💡 ",E]},w))})]})]}):g.jsxs("div",{className:"text-center py-12 text-gray-500",children:[g.jsx(Qs,{className:"h-12 w-12 mx-auto mb-4 opacity-50"}),g.jsx("p",{children:'Select clause type and jurisdiction, then click "Draft Clause" to generate your clause'})]})})]})]}),g.jsxs(sn,{className:"mt-8",children:[g.jsxs(on,{children:[g.jsx(ln,{children:"Quick Clause Templates"}),g.jsx(Vn,{children:"Common clause types for quick access"})]}),g.jsx(cn,{children:g.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:gx.slice(0,8).map(E=>g.jsx(Ye,{variant:"outline",size:"sm",onClick:()=>{p("clauseType",E),t.jurisdiction&&setTimeout(()=>m(),100)},className:"h-auto p-3 text-left justify-start",children:g.jsx("div",{children:g.jsx("div",{className:"font-medium text-sm",children:E})})},E))})})]})]})})]})}var _c="Dialog",[ew,tL]=kr(_c),[b4,bn]=ew(_c),tw=t=>{const{__scopeDialog:a,children:r,open:s,defaultOpen:l,onOpenChange:u,modal:f=!0}=t,h=S.useRef(null),p=S.useRef(null),[m,y]=uo({prop:s,defaultProp:l??!1,onChange:u,caller:_c});return g.jsx(b4,{scope:a,triggerRef:h,contentRef:p,contentId:Ua(),titleId:Ua(),descriptionId:Ua(),open:m,onOpenChange:y,onOpenToggle:S.useCallback(()=>y(v=>!v),[y]),modal:f,children:r})};tw.displayName=_c;var nw="DialogTrigger",S4=S.forwardRef((t,a)=>{const{__scopeDialog:r,...s}=t,l=bn(nw,r),u=We(a,l.triggerRef);return g.jsx(Me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":vm(l.open),...s,ref:u,onClick:je(t.onClick,l.onOpenToggle)})});S4.displayName=nw;var gm="DialogPortal",[w4,aw]=ew(gm,{forceMount:void 0}),iw=t=>{const{__scopeDialog:a,forceMount:r,children:s,container:l}=t,u=bn(gm,a);return g.jsx(w4,{scope:a,forceMount:r,children:S.Children.map(s,f=>g.jsx(So,{present:r||u.open,children:g.jsx(dm,{asChild:!0,container:l,children:f})}))})};iw.displayName=gm;var yc="DialogOverlay",rw=S.forwardRef((t,a)=>{const r=aw(yc,t.__scopeDialog),{forceMount:s=r.forceMount,...l}=t,u=bn(yc,t.__scopeDialog);return u.modal?g.jsx(So,{present:s||u.open,children:g.jsx(A4,{...l,ref:a})}):null});rw.displayName=yc;var T4=Rr("DialogOverlay.RemoveScroll"),A4=S.forwardRef((t,a)=>{const{__scopeDialog:r,...s}=t,l=bn(yc,r);return g.jsx(hm,{as:T4,allowPinchZoom:!0,shards:[l.contentRef],children:g.jsx(Me.div,{"data-state":vm(l.open),...s,ref:a,style:{pointerEvents:"auto",...s.style}})})}),Ri="DialogContent",sw=S.forwardRef((t,a)=>{const r=aw(Ri,t.__scopeDialog),{forceMount:s=r.forceMount,...l}=t,u=bn(Ri,t.__scopeDialog);return g.jsx(So,{present:s||u.open,children:u.modal?g.jsx(E4,{...l,ref:a}):g.jsx(C4,{...l,ref:a})})});sw.displayName=Ri;var E4=S.forwardRef((t,a)=>{const r=bn(Ri,t.__scopeDialog),s=S.useRef(null),l=We(a,r.contentRef,s);return S.useEffect(()=>{const u=s.current;if(u)return i1(u)},[]),g.jsx(ow,{...t,ref:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:je(t.onCloseAutoFocus,u=>{var f;u.preventDefault(),(f=r.triggerRef.current)==null||f.focus()}),onPointerDownOutside:je(t.onPointerDownOutside,u=>{const f=u.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0;(f.button===2||h)&&u.preventDefault()}),onFocusOutside:je(t.onFocusOutside,u=>u.preventDefault())})}),C4=S.forwardRef((t,a)=>{const r=bn(Ri,t.__scopeDialog),s=S.useRef(!1),l=S.useRef(!1);return g.jsx(ow,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var f,h;(f=t.onCloseAutoFocus)==null||f.call(t,u),u.defaultPrevented||(s.current||(h=r.triggerRef.current)==null||h.focus(),u.preventDefault()),s.current=!1,l.current=!1},onInteractOutside:u=>{var p,m;(p=t.onInteractOutside)==null||p.call(t,u),u.defaultPrevented||(s.current=!0,u.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const f=u.target;((m=r.triggerRef.current)==null?void 0:m.contains(f))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&l.current&&u.preventDefault()}})}),ow=S.forwardRef((t,a)=>{const{__scopeDialog:r,trapFocus:s,onOpenAutoFocus:l,onCloseAutoFocus:u,...f}=t,h=bn(Ri,r),p=S.useRef(null),m=We(a,p);return _S(),g.jsxs(g.Fragment,{children:[g.jsx(nm,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:l,onUnmountAutoFocus:u,children:g.jsx(tm,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":vm(h.open),...f,ref:m,onDismiss:()=>h.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(R4,{titleId:h.titleId}),g.jsx(j4,{contentRef:p,descriptionId:h.descriptionId})]})]})}),ym="DialogTitle",lw=S.forwardRef((t,a)=>{const{__scopeDialog:r,...s}=t,l=bn(ym,r);return g.jsx(Me.h2,{id:l.titleId,...s,ref:a})});lw.displayName=ym;var cw="DialogDescription",uw=S.forwardRef((t,a)=>{const{__scopeDialog:r,...s}=t,l=bn(cw,r);return g.jsx(Me.p,{id:l.descriptionId,...s,ref:a})});uw.displayName=cw;var fw="DialogClose",dw=S.forwardRef((t,a)=>{const{__scopeDialog:r,...s}=t,l=bn(fw,r);return g.jsx(Me.button,{type:"button",...s,ref:a,onClick:je(t.onClick,()=>l.onOpenChange(!1))})});dw.displayName=fw;function vm(t){return t?"open":"closed"}var hw="DialogTitleWarning",[nL,mw]=OD(hw,{contentName:Ri,titleName:ym,docsSlug:"dialog"}),R4=({titleId:t})=>{const a=mw(hw),r=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return S.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},N4="DialogDescriptionWarning",j4=({contentRef:t,descriptionId:a})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${mw(N4).contentName}}.`;return S.useEffect(()=>{var u;const l=(u=t.current)==null?void 0:u.getAttribute("aria-describedby");a&&l&&(document.getElementById(a)||console.warn(s))},[s,t,a]),null},M4=tw,D4=iw,O4=rw,_4=sw,L4=lw,V4=uw,z4=dw;function k4({...t}){return g.jsx(M4,{"data-slot":"dialog",...t})}function B4({...t}){return g.jsx(D4,{"data-slot":"dialog-portal",...t})}function U4({className:t,...a}){return g.jsx(O4,{"data-slot":"dialog-overlay",className:Pe("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}function P4({className:t,children:a,...r}){return g.jsxs(B4,{"data-slot":"dialog-portal",children:[g.jsx(U4,{}),g.jsxs(_4,{"data-slot":"dialog-content",className:Pe("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...r,children:[a,g.jsxs(z4,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[g.jsx(zM,{}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function H4({className:t,...a}){return g.jsx("div",{"data-slot":"dialog-header",className:Pe("flex flex-col gap-2 text-center sm:text-left",t),...a})}function G4({className:t,...a}){return g.jsx(L4,{"data-slot":"dialog-title",className:Pe("text-lg leading-none font-semibold",t),...a})}function q4({className:t,...a}){return g.jsx(V4,{"data-slot":"dialog-description",className:Pe("text-muted-foreground text-sm",t),...a})}const Y4=[{id:1,name:"Employment Agreement - Saudi Arabia",description:"Comprehensive employment contract template compliant with Saudi Labor Law",category:"Employment",jurisdiction:"SA",lastUpdated:"2025-06-01",downloads:245,content:`EMPLOYMENT AGREEMENT

This Employment Agreement ("Agreement") is entered into on [DATE], between [COMPANY NAME], a company organized under the laws of Saudi Arabia ("Company"), and [EMPLOYEE NAME], an individual ("Employee").

ARTICLE 1: POSITION AND DUTIES
The Employee shall serve as [POSITION TITLE] and shall perform such duties and responsibilities as may be assigned by the Company from time to time, consistent with the Employee's position.

ARTICLE 2: TERM OF EMPLOYMENT
This Agreement shall commence on [START DATE] and shall continue until terminated in accordance with the provisions herein or as required by Saudi Labor Law.

ARTICLE 3: COMPENSATION
The Company shall pay the Employee a monthly salary of SAR [AMOUNT], payable in accordance with the Company's standard payroll practices.

ARTICLE 4: BENEFITS
The Employee shall be entitled to benefits as provided in the Company's employee handbook and as required by Saudi Labor Law, including but not limited to:
- Annual leave as per Saudi Labor Law
- Sick leave provisions
- End of service benefits
- Health insurance coverage

ARTICLE 5: CONFIDENTIALITY
The Employee acknowledges that during employment, they may have access to confidential information and agrees to maintain strict confidentiality.

ARTICLE 6: TERMINATION
This Agreement may be terminated by either party in accordance with the provisions of Saudi Labor Law.

ARTICLE 7: GOVERNING LAW
This Agreement shall be governed by and construed in accordance with the laws of Saudi Arabia.

[Additional clauses as required by Saudi Labor Law]`},{id:2,name:"Commercial Lease Agreement - Jordan",description:"Standard commercial property lease agreement for Jordan",category:"Real Estate",jurisdiction:"JO",lastUpdated:"2025-05-28",downloads:189,content:`COMMERCIAL LEASE AGREEMENT

This Commercial Lease Agreement ("Lease") is entered into on [DATE], between [LANDLORD NAME] ("Landlord") and [TENANT NAME] ("Tenant").

ARTICLE 1: PREMISES
Landlord hereby leases to Tenant the commercial premises located at [PROPERTY ADDRESS], Jordan ("Premises").

ARTICLE 2: TERM
The lease term shall be for [DURATION] commencing on [START DATE] and ending on [END DATE].

ARTICLE 3: RENT
Tenant shall pay monthly rent of JOD [AMOUNT], due on the [DAY] of each month.

ARTICLE 4: USE OF PREMISES
The Premises shall be used solely for [BUSINESS PURPOSE] and for no other purpose without Landlord's written consent.

ARTICLE 5: MAINTENANCE AND REPAIRS
[Maintenance responsibilities as per Jordanian law]

ARTICLE 6: GOVERNING LAW
This Lease shall be governed by the laws of Jordan.

[Additional terms and conditions]`},{id:3,name:"Service Agreement Template",description:"General service provider agreement template",category:"Service",jurisdiction:"SA",lastUpdated:"2025-06-05",downloads:156,content:`SERVICE AGREEMENT

This Service Agreement is entered into between [CLIENT NAME] and [SERVICE PROVIDER NAME].

[Service agreement content...]`},{id:4,name:"Partnership Agreement - Jordan",description:"Business partnership agreement template for Jordan",category:"Partnership",jurisdiction:"JO",lastUpdated:"2025-05-30",downloads:134,content:`PARTNERSHIP AGREEMENT

This Partnership Agreement establishes a partnership between the parties under Jordanian law.

[Partnership agreement content...]`},{id:5,name:"Non-Disclosure Agreement",description:"Mutual non-disclosure agreement template",category:"Confidentiality",jurisdiction:"SA",lastUpdated:"2025-06-03",downloads:298,content:`NON-DISCLOSURE AGREEMENT

This Non-Disclosure Agreement protects confidential information shared between parties.

[NDA content...]`},{id:6,name:"Supply Agreement - Saudi Arabia",description:"Goods supply agreement template for Saudi Arabia",category:"Commercial",jurisdiction:"SA",lastUpdated:"2025-05-25",downloads:167,content:`SUPPLY AGREEMENT

This Supply Agreement governs the supply of goods between supplier and purchaser.

[Supply agreement content...]`}],I4=["All","Employment","Real Estate","Service","Partnership","Confidentiality","Commercial"],F4=[{value:"all",label:"All Jurisdictions"},{value:"SA",label:"Saudi Arabia"},{value:"JO",label:"Jordan"}];function X4({template:t,onView:a}){const r=s=>s==="SA"?g.jsx(Yt,{variant:"secondary",children:"Saudi Arabia"}):g.jsx(Yt,{variant:"outline",children:"Jordan"});return g.jsxs(sn,{className:"hover:shadow-md transition-shadow",children:[g.jsx(on,{children:g.jsxs("div",{className:"flex items-start justify-between",children:[g.jsxs("div",{className:"flex-1",children:[g.jsx(ln,{className:"text-lg mb-2",children:t.name}),g.jsx(Vn,{className:"text-sm",children:t.description})]}),r(t.jurisdiction)]})}),g.jsxs(cn,{children:[g.jsx("div",{className:"flex items-center justify-between mb-4",children:g.jsxs("div",{className:"flex items-center space-x-4 text-sm text-gray-500",children:[g.jsxs("span",{children:["Category: ",t.category]}),g.jsx("span",{children:"•"}),g.jsxs("span",{children:[t.downloads," downloads"]})]})}),g.jsxs("div",{className:"flex space-x-2",children:[g.jsxs(Ye,{variant:"outline",size:"sm",onClick:()=>a(t),className:"flex-1",children:[g.jsx(vM,{className:"h-4 w-4 mr-2"}),"View"]}),g.jsx(Ye,{variant:"outline",size:"sm",onClick:()=>{const s=document.createElement("a"),l=new Blob([t.content],{type:"text/plain"});s.href=URL.createObjectURL(l),s.download=`${t.name}.txt`,document.body.appendChild(s),s.click(),document.body.removeChild(s)},children:g.jsx(Ac,{className:"h-4 w-4"})})]})]})]})}function K4({template:t,isOpen:a,onClose:r}){return t?g.jsx(k4,{open:a,onOpenChange:r,children:g.jsxs(P4,{className:"max-w-4xl max-h-[80vh] overflow-y-auto",children:[g.jsxs(H4,{children:[g.jsx(G4,{children:t.name}),g.jsx(q4,{children:t.description})]}),g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"flex items-center space-x-4",children:[g.jsx(Yt,{variant:"secondary",children:t.category}),g.jsx(Yt,{variant:t.jurisdiction==="SA"?"secondary":"outline",children:t.jurisdiction==="SA"?"Saudi Arabia":"Jordan"}),g.jsxs("span",{className:"text-sm text-gray-500",children:["Last updated: ",new Date(t.lastUpdated).toLocaleDateString()]})]}),g.jsx("div",{className:"bg-gray-50 p-4 rounded-lg max-h-96 overflow-y-auto",children:g.jsx("pre",{className:"whitespace-pre-wrap text-sm text-gray-800",children:t.content})}),g.jsxs("div",{className:"flex space-x-2",children:[g.jsxs(Ye,{onClick:()=>{const s=document.createElement("a"),l=new Blob([t.content],{type:"text/plain"});s.href=URL.createObjectURL(l),s.download=`${t.name}.txt`,document.body.appendChild(s),s.click(),document.body.removeChild(s)},children:[g.jsx(Ac,{className:"h-4 w-4 mr-2"}),"Download Template"]}),g.jsx(Ye,{variant:"outline",onClick:r,children:"Close"})]})]})]})}):null}function $4(){const[t,a]=S.useState(""),[r,s]=S.useState("All"),[l,u]=S.useState("all"),[f,h]=S.useState(null),[p,m]=S.useState(!1),y=Y4.filter(b=>{const A=b.name.toLowerCase().includes(t.toLowerCase())||b.description.toLowerCase().includes(t.toLowerCase()),E=r==="All"||b.category===r,w=l==="all"||b.jurisdiction===l;return A&&E&&w}),v=b=>{h(b),m(!0)};return g.jsxs("div",{className:"flex",children:[g.jsxs("div",{className:"w-64 bg-white shadow-lg h-screen fixed left-0 top-0 z-10",children:[g.jsx("div",{className:"p-6 border-b",children:g.jsxs(an,{to:"/",className:"flex items-center space-x-2 text-gray-600 hover:text-gray-900",children:[g.jsx(Tc,{className:"h-5 w-5"}),g.jsx("span",{children:"Back to Dashboard"})]})}),g.jsxs("div",{className:"p-6",children:[g.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[g.jsx(ra,{className:"h-6 w-6 text-blue-600"}),g.jsx("span",{className:"text-xl font-bold text-gray-900",children:"LAWAI"})]}),g.jsx(Yt,{variant:"secondary",className:"w-full justify-center",children:"Template Library"})]})]}),g.jsx("div",{className:"flex-1 ml-64 p-8",children:g.jsxs(pn.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[g.jsxs("div",{className:"mb-8",children:[g.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Template Library"}),g.jsx("p",{className:"text-gray-600",children:"Browse and download legal contract templates"})]}),g.jsxs(sn,{className:"mb-8",children:[g.jsx(on,{children:g.jsxs(ln,{className:"flex items-center space-x-2",children:[g.jsx(aa,{className:"h-5 w-5"}),g.jsx("span",{children:"Search Templates"})]})}),g.jsx(cn,{children:g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[g.jsx("div",{children:g.jsx(nc,{placeholder:"Search templates...",value:t,onChange:b=>a(b.target.value),className:"w-full"})}),g.jsx("div",{children:g.jsxs(Nn,{onValueChange:s,defaultValue:"All",children:[g.jsx(Mn,{children:g.jsx(jn,{placeholder:"Category"})}),g.jsx(Dn,{children:I4.map(b=>g.jsx(Ot,{value:b,children:b},b))})]})}),g.jsx("div",{children:g.jsxs(Nn,{onValueChange:u,defaultValue:"all",children:[g.jsx(Mn,{children:g.jsx(jn,{placeholder:"Jurisdiction"})}),g.jsx(Dn,{children:F4.map(b=>g.jsx(Ot,{value:b.value,children:b.label},b.value))})]})})]})})]}),g.jsxs("div",{className:"flex items-center justify-between mb-6",children:[g.jsxs("p",{className:"text-gray-600",children:["Showing ",y.length," template",y.length!==1?"s":""]}),g.jsx(an,{to:"/generate",children:g.jsxs(Ye,{children:[g.jsx(Qh,{className:"h-4 w-4 mr-2"}),"Create New Contract"]})})]}),g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:y.map(b=>g.jsx(X4,{template:b,onView:v},b.id))}),y.length===0&&g.jsxs("div",{className:"text-center py-12",children:[g.jsx($h,{className:"h-12 w-12 mx-auto mb-4 text-gray-400"}),g.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No templates found"}),g.jsx("p",{className:"text-gray-600",children:"Try adjusting your search criteria or browse all templates"})]}),g.jsx(K4,{template:f,isOpen:p,onClose:()=>m(!1)})]})})]})}function Z4({onGetStarted:t}){return g.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 via-white to-purple-50",children:[g.jsx("header",{className:"container mx-auto px-6 py-8",children:g.jsxs("nav",{className:"flex items-center justify-between",children:[g.jsxs(pn.div,{className:"flex items-center space-x-2",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.5},children:[g.jsx(ra,{className:"h-8 w-8 text-blue-600"}),g.jsx("span",{className:"text-2xl font-bold text-gray-900",children:"LAWAI"})]}),g.jsx(pn.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.5,delay:.2},children:g.jsx(Ye,{onClick:t,className:"bg-blue-600 hover:bg-blue-700",children:"Get Started"})})]})}),g.jsx("section",{className:"container mx-auto px-6 py-16 text-center",children:g.jsxs(pn.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7},children:[g.jsxs("h1",{className:"text-5xl md:text-6xl font-bold text-gray-900 mb-6",children:["AI-Powered Legal Assistant for",g.jsx("span",{className:"text-blue-600 block",children:"Saudi Arabia & Jordan"})]}),g.jsx("p",{className:"text-xl text-gray-600 mb-8 max-w-3xl mx-auto",children:"Draft, review, and manage contracts with confidence using our AI assistant specialized in Saudi Arabian and Jordanian law. Powered by Google Gemini."}),g.jsxs("div",{className:"flex flex-wrap justify-center gap-4 mb-12",children:[g.jsxs(Yt,{variant:"secondary",className:"px-4 py-2 text-sm",children:[g.jsx(B0,{className:"h-4 w-4 mr-2"}),"Sharia Law Compliant"]}),g.jsxs(Yt,{variant:"secondary",className:"px-4 py-2 text-sm",children:[g.jsx(Cr,{className:"h-4 w-4 mr-2"}),"Google Gemini Powered"]}),g.jsxs(Yt,{variant:"secondary",className:"px-4 py-2 text-sm",children:[g.jsx(U0,{className:"h-4 w-4 mr-2"}),"Multi-Jurisdiction Support"]})]}),g.jsx(Ye,{onClick:t,size:"lg",className:"bg-blue-600 hover:bg-blue-700 text-lg px-8 py-4",children:"Start Creating Contracts"})]})}),g.jsxs("section",{className:"container mx-auto px-6 py-16",children:[g.jsxs(pn.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7,delay:.3},className:"text-center mb-16",children:[g.jsx("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Everything You Need for Legal Excellence"}),g.jsx("p",{className:"text-xl text-gray-600",children:"Comprehensive tools designed for legal professionals"})]}),g.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:[{icon:oo,title:"Contract Generation",description:"Generate comprehensive contracts tailored to Saudi Arabian and Jordanian law with AI assistance.",color:"text-blue-600"},{icon:aa,title:"Contract Review",description:"Analyze contracts for compliance, risks, and legal issues with detailed recommendations.",color:"text-green-600"},{icon:ra,title:"Clause Drafting",description:"Draft specific contract clauses with jurisdiction-specific legal requirements.",color:"text-purple-600"},{icon:U0,title:"Template Library",description:"Access a comprehensive library of legal templates for various contract types.",color:"text-orange-600"},{icon:B0,title:"Compliance Check",description:"Ensure your contracts comply with local laws and regulations automatically.",color:"text-red-600"},{icon:Cr,title:"AI Legal Advice",description:"Get instant legal guidance and recommendations from our AI assistant.",color:"text-indigo-600"}].map((a,r)=>g.jsx(pn.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.5,delay:.1*r},children:g.jsxs(sn,{className:"h-full hover:shadow-lg transition-shadow duration-300",children:[g.jsxs(on,{children:[g.jsx(a.icon,{className:`h-12 w-12 ${a.color} mb-4`}),g.jsx(ln,{className:"text-xl",children:a.title})]}),g.jsx(cn,{children:g.jsx(Vn,{className:"text-gray-600",children:a.description})})]})},r))})]}),g.jsx("section",{className:"bg-blue-600 text-white py-16",children:g.jsx("div",{className:"container mx-auto px-6 text-center",children:g.jsxs(pn.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7},children:[g.jsx("h2",{className:"text-4xl font-bold mb-4",children:"Ready to Transform Your Legal Practice?"}),g.jsx("p",{className:"text-xl mb-8 opacity-90",children:"Join legal professionals who trust LAWAI for their contract needs"}),g.jsx(Ye,{onClick:t,size:"lg",variant:"secondary",className:"text-lg px-8 py-4",children:"Get Started Now"})]})})}),g.jsx("footer",{className:"bg-gray-900 text-white py-8",children:g.jsxs("div",{className:"container mx-auto px-6 text-center",children:[g.jsxs("div",{className:"flex items-center justify-center space-x-2 mb-4",children:[g.jsx(ra,{className:"h-6 w-6"}),g.jsx("span",{className:"text-xl font-bold",children:"LAWAI"})]}),g.jsx("p",{className:"text-gray-400",children:"AI-Powered Legal Assistant for Saudi Arabia & Jordan"})]})})]})}function Q4(){const[t,a]=S.useState(!1);return t?g.jsx(rC,{children:g.jsx("div",{className:"min-h-screen bg-gray-50",children:g.jsxs(VE,{children:[g.jsx(yi,{path:"/",element:g.jsx(RD,{})}),g.jsx(yi,{path:"/generate",element:g.jsx(f4,{})}),g.jsx(yi,{path:"/review",element:g.jsx(y4,{})}),g.jsx(yi,{path:"/clauses",element:g.jsx(x4,{})}),g.jsx(yi,{path:"/templates",element:g.jsx($4,{})}),g.jsx(yi,{path:"*",element:g.jsx(_E,{to:"/",replace:!0})})]})})}):g.jsx(Z4,{onGetStarted:()=>a(!0)})}qA.createRoot(document.getElementById("root")).render(g.jsx(S.StrictMode,{children:g.jsx(Q4,{})}));
