function LT(e,i){for(var s=0;s<i.length;s++){const l=i[s];if(typeof l!="string"&&!Array.isArray(l)){for(const o in l)if(o!=="default"&&!(o in e)){const f=Object.getOwnPropertyDescriptor(l,o);f&&Object.defineProperty(e,o,f.get?f:{enumerable:!0,get:()=>l[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&l(d)}).observe(document,{childList:!0,subtree:!0});function s(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function l(o){if(o.ep)return;o.ep=!0;const f=s(o);fetch(o.href,f)}})();function V0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var af={exports:{}},tr={};/**
 * @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 Ey;function VT(){if(Ey)return tr;Ey=1;var e=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(l,o,f){var d=null;if(f!==void 0&&(d=""+f),o.key!==void 0&&(d=""+o.key),"key"in o){f={};for(var h in o)h!=="key"&&(f[h]=o[h])}else f=o;return o=f.ref,{$$typeof:e,type:l,key:d,ref:o!==void 0?o:null,props:f}}return tr.Fragment=i,tr.jsx=s,tr.jsxs=s,tr}var Ay;function UT(){return Ay||(Ay=1,af.exports=VT()),af.exports}var v=UT(),sf={exports:{}},er={},rf={exports:{}},lf={};/**
 * @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 Cy;function BT(){return Cy||(Cy=1,(function(e){function i(_,Y){var B=_.length;_.push(Y);t:for(;0<B;){var it=B-1>>>1,ct=_[it];if(0<o(ct,Y))_[it]=Y,_[B]=ct,B=it;else break t}}function s(_){return _.length===0?null:_[0]}function l(_){if(_.length===0)return null;var Y=_[0],B=_.pop();if(B!==Y){_[0]=B;t:for(var it=0,ct=_.length,N=ct>>>1;it<N;){var K=2*(it+1)-1,I=_[K],$=K+1,ut=_[$];if(0>o(I,B))$<ct&&0>o(ut,I)?(_[it]=ut,_[$]=B,it=$):(_[it]=I,_[K]=B,it=K);else if($<ct&&0>o(ut,B))_[it]=ut,_[$]=B,it=$;else break t}}return Y}function o(_,Y){var B=_.sortIndex-Y.sortIndex;return B!==0?B:_.id-Y.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;e.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();e.unstable_now=function(){return d.now()-h}}var p=[],m=[],g=1,x=null,w=3,T=!1,A=!1,E=!1,M=!1,D=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function q(_){for(var Y=s(m);Y!==null;){if(Y.callback===null)l(m);else if(Y.startTime<=_)l(m),Y.sortIndex=Y.expirationTime,i(p,Y);else break;Y=s(m)}}function G(_){if(E=!1,q(_),!A)if(s(p)!==null)A=!0,Z||(Z=!0,pt());else{var Y=s(m);Y!==null&&ht(G,Y.startTime-_)}}var Z=!1,k=-1,H=5,W=-1;function st(){return M?!0:!(e.unstable_now()-W<H)}function dt(){if(M=!1,Z){var _=e.unstable_now();W=_;var Y=!0;try{t:{A=!1,E&&(E=!1,z(k),k=-1),T=!0;var B=w;try{e:{for(q(_),x=s(p);x!==null&&!(x.expirationTime>_&&st());){var it=x.callback;if(typeof it=="function"){x.callback=null,w=x.priorityLevel;var ct=it(x.expirationTime<=_);if(_=e.unstable_now(),typeof ct=="function"){x.callback=ct,q(_),Y=!0;break e}x===s(p)&&l(p),q(_)}else l(p);x=s(p)}if(x!==null)Y=!0;else{var N=s(m);N!==null&&ht(G,N.startTime-_),Y=!1}}break t}finally{x=null,w=B,T=!1}Y=void 0}}finally{Y?pt():Z=!1}}}var pt;if(typeof R=="function")pt=function(){R(dt)};else if(typeof MessageChannel<"u"){var At=new MessageChannel,J=At.port2;At.port1.onmessage=dt,pt=function(){J.postMessage(null)}}else pt=function(){D(dt,0)};function ht(_,Y){k=D(function(){_(e.unstable_now())},Y)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(_){_.callback=null},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return w},e.unstable_next=function(_){switch(w){case 1:case 2:case 3:var Y=3;break;default:Y=w}var B=w;w=Y;try{return _()}finally{w=B}},e.unstable_requestPaint=function(){M=!0},e.unstable_runWithPriority=function(_,Y){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var B=w;w=_;try{return Y()}finally{w=B}},e.unstable_scheduleCallback=function(_,Y,B){var it=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?it+B:it):B=it,_){case 1:var ct=-1;break;case 2:ct=250;break;case 5:ct=1073741823;break;case 4:ct=1e4;break;default:ct=5e3}return ct=B+ct,_={id:g++,callback:Y,priorityLevel:_,startTime:B,expirationTime:ct,sortIndex:-1},B>it?(_.sortIndex=B,i(m,_),s(p)===null&&_===s(m)&&(E?(z(k),k=-1):E=!0,ht(G,B-it))):(_.sortIndex=ct,i(p,_),A||T||(A=!0,Z||(Z=!0,pt()))),_},e.unstable_shouldYield=st,e.unstable_wrapCallback=function(_){var Y=w;return function(){var B=w;w=Y;try{return _.apply(this,arguments)}finally{w=B}}}})(lf)),lf}var My;function kT(){return My||(My=1,rf.exports=BT()),rf.exports}var of={exports:{}},mt={};/**
 * @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 Ny;function PT(){if(Ny)return mt;Ny=1;var e=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),w=Symbol.iterator;function T(N){return N===null||typeof N!="object"?null:(N=w&&N[w]||N["@@iterator"],typeof N=="function"?N:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,M={};function D(N,K,I){this.props=N,this.context=K,this.refs=M,this.updater=I||A}D.prototype.isReactComponent={},D.prototype.setState=function(N,K){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,K,"setState")},D.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function z(){}z.prototype=D.prototype;function R(N,K,I){this.props=N,this.context=K,this.refs=M,this.updater=I||A}var q=R.prototype=new z;q.constructor=R,E(q,D.prototype),q.isPureReactComponent=!0;var G=Array.isArray;function Z(){}var k={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function W(N,K,I){var $=I.ref;return{$$typeof:e,type:N,key:K,ref:$!==void 0?$:null,props:I}}function st(N,K){return W(N.type,K,N.props)}function dt(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function pt(N){var K={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(I){return K[I]})}var At=/\/+/g;function J(N,K){return typeof N=="object"&&N!==null&&N.key!=null?pt(""+N.key):K.toString(36)}function ht(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(Z,Z):(N.status="pending",N.then(function(K){N.status==="pending"&&(N.status="fulfilled",N.value=K)},function(K){N.status==="pending"&&(N.status="rejected",N.reason=K)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function _(N,K,I,$,ut){var gt=typeof N;(gt==="undefined"||gt==="boolean")&&(N=null);var rt=!1;if(N===null)rt=!0;else switch(gt){case"bigint":case"string":case"number":rt=!0;break;case"object":switch(N.$$typeof){case e:case i:rt=!0;break;case g:return rt=N._init,_(rt(N._payload),K,I,$,ut)}}if(rt)return ut=ut(N),rt=$===""?"."+J(N,0):$,G(ut)?(I="",rt!=null&&(I=rt.replace(At,"$&/")+"/"),_(ut,K,I,"",function(Pe){return Pe})):ut!=null&&(dt(ut)&&(ut=st(ut,I+(ut.key==null||N&&N.key===ut.key?"":(""+ut.key).replace(At,"$&/")+"/")+rt)),K.push(ut)),1;rt=0;var Xt=$===""?".":$+":";if(G(N))for(var Rt=0;Rt<N.length;Rt++)$=N[Rt],gt=Xt+J($,Rt),rt+=_($,K,I,gt,ut);else if(Rt=T(N),typeof Rt=="function")for(N=Rt.call(N),Rt=0;!($=N.next()).done;)$=$.value,gt=Xt+J($,Rt++),rt+=_($,K,I,gt,ut);else if(gt==="object"){if(typeof N.then=="function")return _(ht(N),K,I,$,ut);throw K=String(N),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return rt}function Y(N,K,I){if(N==null)return N;var $=[],ut=0;return _(N,$,"","",function(gt){return K.call(I,gt,ut++)}),$}function B(N){if(N._status===-1){var K=N._result;K=K(),K.then(function(I){(N._status===0||N._status===-1)&&(N._status=1,N._result=I)},function(I){(N._status===0||N._status===-1)&&(N._status=2,N._result=I)}),N._status===-1&&(N._status=0,N._result=K)}if(N._status===1)return N._result.default;throw N._result}var it=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},ct={map:Y,forEach:function(N,K,I){Y(N,function(){K.apply(this,arguments)},I)},count:function(N){var K=0;return Y(N,function(){K++}),K},toArray:function(N){return Y(N,function(K){return K})||[]},only:function(N){if(!dt(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return mt.Activity=x,mt.Children=ct,mt.Component=D,mt.Fragment=s,mt.Profiler=o,mt.PureComponent=R,mt.StrictMode=l,mt.Suspense=p,mt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,mt.__COMPILER_RUNTIME={__proto__:null,c:function(N){return k.H.useMemoCache(N)}},mt.cache=function(N){return function(){return N.apply(null,arguments)}},mt.cacheSignal=function(){return null},mt.cloneElement=function(N,K,I){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var $=E({},N.props),ut=N.key;if(K!=null)for(gt in K.key!==void 0&&(ut=""+K.key),K)!H.call(K,gt)||gt==="key"||gt==="__self"||gt==="__source"||gt==="ref"&&K.ref===void 0||($[gt]=K[gt]);var gt=arguments.length-2;if(gt===1)$.children=I;else if(1<gt){for(var rt=Array(gt),Xt=0;Xt<gt;Xt++)rt[Xt]=arguments[Xt+2];$.children=rt}return W(N.type,ut,$)},mt.createContext=function(N){return N={$$typeof:d,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:f,_context:N},N},mt.createElement=function(N,K,I){var $,ut={},gt=null;if(K!=null)for($ in K.key!==void 0&&(gt=""+K.key),K)H.call(K,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(ut[$]=K[$]);var rt=arguments.length-2;if(rt===1)ut.children=I;else if(1<rt){for(var Xt=Array(rt),Rt=0;Rt<rt;Rt++)Xt[Rt]=arguments[Rt+2];ut.children=Xt}if(N&&N.defaultProps)for($ in rt=N.defaultProps,rt)ut[$]===void 0&&(ut[$]=rt[$]);return W(N,gt,ut)},mt.createRef=function(){return{current:null}},mt.forwardRef=function(N){return{$$typeof:h,render:N}},mt.isValidElement=dt,mt.lazy=function(N){return{$$typeof:g,_payload:{_status:-1,_result:N},_init:B}},mt.memo=function(N,K){return{$$typeof:m,type:N,compare:K===void 0?null:K}},mt.startTransition=function(N){var K=k.T,I={};k.T=I;try{var $=N(),ut=k.S;ut!==null&&ut(I,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(Z,it)}catch(gt){it(gt)}finally{K!==null&&I.types!==null&&(K.types=I.types),k.T=K}},mt.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},mt.use=function(N){return k.H.use(N)},mt.useActionState=function(N,K,I){return k.H.useActionState(N,K,I)},mt.useCallback=function(N,K){return k.H.useCallback(N,K)},mt.useContext=function(N){return k.H.useContext(N)},mt.useDebugValue=function(){},mt.useDeferredValue=function(N,K){return k.H.useDeferredValue(N,K)},mt.useEffect=function(N,K){return k.H.useEffect(N,K)},mt.useEffectEvent=function(N){return k.H.useEffectEvent(N)},mt.useId=function(){return k.H.useId()},mt.useImperativeHandle=function(N,K,I){return k.H.useImperativeHandle(N,K,I)},mt.useInsertionEffect=function(N,K){return k.H.useInsertionEffect(N,K)},mt.useLayoutEffect=function(N,K){return k.H.useLayoutEffect(N,K)},mt.useMemo=function(N,K){return k.H.useMemo(N,K)},mt.useOptimistic=function(N,K){return k.H.useOptimistic(N,K)},mt.useReducer=function(N,K,I){return k.H.useReducer(N,K,I)},mt.useRef=function(N){return k.H.useRef(N)},mt.useState=function(N){return k.H.useState(N)},mt.useSyncExternalStore=function(N,K,I){return k.H.useSyncExternalStore(N,K,I)},mt.useTransition=function(){return k.H.useTransition()},mt.version="19.2.3",mt}var Oy;function So(){return Oy||(Oy=1,of.exports=PT()),of.exports}var cf={exports:{}},ue={};/**
 * @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 jy;function HT(){if(jy)return ue;jy=1;var e=So();function i(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)m+="&args[]="+encodeURIComponent(arguments[g])}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 s(){}var l={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(p,m,g){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:x==null?null:""+x,children:p,containerInfo:m,implementation:g}}var d=e.__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 ue.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,ue.createPortal=function(p,m){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return f(p,m,null,g)},ue.flushSync=function(p){var m=d.T,g=l.p;try{if(d.T=null,l.p=2,p)return p()}finally{d.T=m,l.p=g,l.d.f()}},ue.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,l.d.C(p,m))},ue.prefetchDNS=function(p){typeof p=="string"&&l.d.D(p)},ue.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var g=m.as,x=h(g,m.crossOrigin),w=typeof m.integrity=="string"?m.integrity:void 0,T=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;g==="style"?l.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:x,integrity:w,fetchPriority:T}):g==="script"&&l.d.X(p,{crossOrigin:x,integrity:w,fetchPriority:T,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},ue.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var g=h(m.as,m.crossOrigin);l.d.M(p,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&l.d.M(p)},ue.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var g=m.as,x=h(g,m.crossOrigin);l.d.L(p,g,{crossOrigin:x,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})}},ue.preloadModule=function(p,m){if(typeof p=="string")if(m){var g=h(m.as,m.crossOrigin);l.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else l.d.m(p)},ue.requestFormReset=function(p){l.d.r(p)},ue.unstable_batchedUpdates=function(p,m){return p(m)},ue.useFormState=function(p,m,g){return d.H.useFormState(p,m,g)},ue.useFormStatus=function(){return d.H.useHostTransitionStatus()},ue.version="19.2.3",ue}var Dy;function U0(){if(Dy)return cf.exports;Dy=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(i){console.error(i)}}return e(),cf.exports=HT(),cf.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 Ry;function qT(){if(Ry)return er;Ry=1;var e=kT(),i=So(),s=U0();function l(t){var n="https://react.dev/errors/"+t;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var n=t,a=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(a=n.return),t=n.return;while(t)}return n.tag===3?a:null}function d(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function h(t){if(t.tag===31){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function p(t){if(f(t)!==t)throw Error(l(188))}function m(t){var n=t.alternate;if(!n){if(n=f(t),n===null)throw Error(l(188));return n!==t?null:t}for(var a=t,r=n;;){var c=a.return;if(c===null)break;var u=c.alternate;if(u===null){if(r=c.return,r!==null){a=r;continue}break}if(c.child===u.child){for(u=c.child;u;){if(u===a)return p(c),t;if(u===r)return p(c),n;u=u.sibling}throw Error(l(188))}if(a.return!==r.return)a=c,r=u;else{for(var y=!1,b=c.child;b;){if(b===a){y=!0,a=c,r=u;break}if(b===r){y=!0,r=c,a=u;break}b=b.sibling}if(!y){for(b=u.child;b;){if(b===a){y=!0,a=u,r=c;break}if(b===r){y=!0,r=u,a=c;break}b=b.sibling}if(!y)throw Error(l(189))}}if(a.alternate!==r)throw Error(l(190))}if(a.tag!==3)throw Error(l(188));return a.stateNode.current===a?t:n}function g(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(n=g(t),n!==null)return n;t=t.sibling}return null}var x=Object.assign,w=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),R=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),st=Symbol.for("react.memo_cache_sentinel"),dt=Symbol.iterator;function pt(t){return t===null||typeof t!="object"?null:(t=dt&&t[dt]||t["@@iterator"],typeof t=="function"?t:null)}var At=Symbol.for("react.client.reference");function J(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===At?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case E:return"Fragment";case D:return"Profiler";case M:return"StrictMode";case G:return"Suspense";case Z:return"SuspenseList";case W:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case A:return"Portal";case R:return t.displayName||"Context";case z:return(t._context.displayName||"Context")+".Consumer";case q:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case k:return n=t.displayName||null,n!==null?n:J(t.type)||"Memo";case H:n=t._payload,t=t._init;try{return J(t(n))}catch{}}return null}var ht=Array.isArray,_=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B={pending:!1,data:null,method:null,action:null},it=[],ct=-1;function N(t){return{current:t}}function K(t){0>ct||(t.current=it[ct],it[ct]=null,ct--)}function I(t,n){ct++,it[ct]=t.current,t.current=n}var $=N(null),ut=N(null),gt=N(null),rt=N(null);function Xt(t,n){switch(I(gt,n),I(ut,t),I($,null),n.nodeType){case 9:case 11:t=(t=n.documentElement)&&(t=t.namespaceURI)?Fg(t):0;break;default:if(t=n.tagName,n=n.namespaceURI)n=Fg(n),t=Qg(n,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}K($),I($,t)}function Rt(){K($),K(ut),K(gt)}function Pe(t){t.memoizedState!==null&&I(rt,t);var n=$.current,a=Qg(n,t.type);n!==a&&(I(ut,t),I($,a))}function un(t){ut.current===t&&(K($),K(ut)),rt.current===t&&(K(rt),Is._currentValue=B)}var fn,Ci;function Mi(t){if(fn===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);fn=n&&n[1]||"",Ci=-1<a.stack.indexOf(`
    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+fn+t+Ci}var Po=!1;function Ho(t,n){if(!t||Po)return"";Po=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(n){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(P){var U=P}Reflect.construct(t,[],Q)}else{try{Q.call()}catch(P){U=P}t.call(Q.prototype)}}else{try{throw Error()}catch(P){U=P}(Q=t())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(P){if(P&&U&&typeof P.stack=="string")return[P.stack,U.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=r.DetermineComponentFrameRoot(),y=u[0],b=u[1];if(y&&b){var C=y.split(`
`),V=b.split(`
`);for(c=r=0;r<C.length&&!C[r].includes("DetermineComponentFrameRoot");)r++;for(;c<V.length&&!V[c].includes("DetermineComponentFrameRoot");)c++;if(r===C.length||c===V.length)for(r=C.length-1,c=V.length-1;1<=r&&0<=c&&C[r]!==V[c];)c--;for(;1<=r&&0<=c;r--,c--)if(C[r]!==V[c]){if(r!==1||c!==1)do if(r--,c--,0>c||C[r]!==V[c]){var X=`
`+C[r].replace(" at new "," at ");return t.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",t.displayName)),X}while(1<=r&&0<=c);break}}}finally{Po=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?Mi(a):""}function dw(t,n){switch(t.tag){case 26:case 27:case 5:return Mi(t.type);case 16:return Mi("Lazy");case 13:return t.child!==n&&n!==null?Mi("Suspense Fallback"):Mi("Suspense");case 19:return Mi("SuspenseList");case 0:case 15:return Ho(t.type,!1);case 11:return Ho(t.type.render,!1);case 1:return Ho(t.type,!0);case 31:return Mi("Activity");default:return""}}function Eh(t){try{var n="",a=null;do n+=dw(t,a),a=t,t=t.return;while(t);return n}catch(r){return`
Error generating stack: `+r.message+`
`+r.stack}}var qo=Object.prototype.hasOwnProperty,Go=e.unstable_scheduleCallback,Yo=e.unstable_cancelCallback,hw=e.unstable_shouldYield,mw=e.unstable_requestPaint,Ce=e.unstable_now,pw=e.unstable_getCurrentPriorityLevel,Ah=e.unstable_ImmediatePriority,Ch=e.unstable_UserBlockingPriority,Nr=e.unstable_NormalPriority,gw=e.unstable_LowPriority,Mh=e.unstable_IdlePriority,yw=e.log,vw=e.unstable_setDisableYieldValue,os=null,Me=null;function Fn(t){if(typeof yw=="function"&&vw(t),Me&&typeof Me.setStrictMode=="function")try{Me.setStrictMode(os,t)}catch{}}var Ne=Math.clz32?Math.clz32:ww,xw=Math.log,bw=Math.LN2;function ww(t){return t>>>=0,t===0?32:31-(xw(t)/bw|0)|0}var Or=256,jr=262144,Dr=4194304;function Ni(t){var n=t&42;if(n!==0)return n;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Rr(t,n,a){var r=t.pendingLanes;if(r===0)return 0;var c=0,u=t.suspendedLanes,y=t.pingedLanes;t=t.warmLanes;var b=r&134217727;return b!==0?(r=b&~u,r!==0?c=Ni(r):(y&=b,y!==0?c=Ni(y):a||(a=b&~t,a!==0&&(c=Ni(a))))):(b=r&~u,b!==0?c=Ni(b):y!==0?c=Ni(y):a||(a=r&~t,a!==0&&(c=Ni(a)))),c===0?0:n!==0&&n!==c&&(n&u)===0&&(u=c&-c,a=n&-n,u>=a||u===32&&(a&4194048)!==0)?n:c}function cs(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function Sw(t,n){switch(t){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 Nh(){var t=Dr;return Dr<<=1,(Dr&62914560)===0&&(Dr=4194304),t}function Xo(t){for(var n=[],a=0;31>a;a++)n.push(t);return n}function us(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Tw(t,n,a,r,c,u){var y=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var b=t.entanglements,C=t.expirationTimes,V=t.hiddenUpdates;for(a=y&~a;0<a;){var X=31-Ne(a),Q=1<<X;b[X]=0,C[X]=-1;var U=V[X];if(U!==null)for(V[X]=null,X=0;X<U.length;X++){var P=U[X];P!==null&&(P.lane&=-536870913)}a&=~Q}r!==0&&Oh(t,r,0),u!==0&&c===0&&t.tag!==0&&(t.suspendedLanes|=u&~(y&~n))}function Oh(t,n,a){t.pendingLanes|=n,t.suspendedLanes&=~n;var r=31-Ne(n);t.entangledLanes|=n,t.entanglements[r]=t.entanglements[r]|1073741824|a&261930}function jh(t,n){var a=t.entangledLanes|=n;for(t=t.entanglements;a;){var r=31-Ne(a),c=1<<r;c&n|t[r]&n&&(t[r]|=n),a&=~c}}function Dh(t,n){var a=n&-n;return a=(a&42)!==0?1:Ko(a),(a&(t.suspendedLanes|n))!==0?0:a}function Ko(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Fo(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Rh(){var t=Y.p;return t!==0?t:(t=window.event,t===void 0?32:yy(t.type))}function _h(t,n){var a=Y.p;try{return Y.p=t,n()}finally{Y.p=a}}var Qn=Math.random().toString(36).slice(2),ae="__reactFiber$"+Qn,ye="__reactProps$"+Qn,ia="__reactContainer$"+Qn,Qo="__reactEvents$"+Qn,Ew="__reactListeners$"+Qn,Aw="__reactHandles$"+Qn,zh="__reactResources$"+Qn,fs="__reactMarker$"+Qn;function Zo(t){delete t[ae],delete t[ye],delete t[Qo],delete t[Ew],delete t[Aw]}function aa(t){var n=t[ae];if(n)return n;for(var a=t.parentNode;a;){if(n=a[ia]||a[ae]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(t=ey(t);t!==null;){if(a=t[ae])return a;t=ey(t)}return n}t=a,a=t.parentNode}return null}function sa(t){if(t=t[ae]||t[ia]){var n=t.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return t}return null}function ds(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error(l(33))}function ra(t){var n=t[zh];return n||(n=t[zh]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function ne(t){t[fs]=!0}var Lh=new Set,Vh={};function Oi(t,n){la(t,n),la(t+"Capture",n)}function la(t,n){for(Vh[t]=n,t=0;t<n.length;t++)Lh.add(n[t])}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]*$"),Uh={},Bh={};function Mw(t){return qo.call(Bh,t)?!0:qo.call(Uh,t)?!1:Cw.test(t)?Bh[t]=!0:(Uh[t]=!0,!1)}function _r(t,n,a){if(Mw(n))if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(n);return;case"boolean":var r=n.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){t.removeAttribute(n);return}}t.setAttribute(n,""+a)}}function zr(t,n,a){if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttribute(n,""+a)}}function En(t,n,a,r){if(r===null)t.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(n,a,""+r)}}function He(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function kh(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Nw(t,n,a){var r=Object.getOwnPropertyDescriptor(t.constructor.prototype,n);if(!t.hasOwnProperty(n)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var c=r.get,u=r.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return c.call(this)},set:function(y){a=""+y,u.call(this,y)}}),Object.defineProperty(t,n,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(y){a=""+y},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function Io(t){if(!t._valueTracker){var n=kh(t)?"checked":"value";t._valueTracker=Nw(t,n,""+t[n])}}function Ph(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var a=n.getValue(),r="";return t&&(r=kh(t)?t.checked?"true":"false":t.value),t=r,t!==a?(n.setValue(t),!0):!1}function Lr(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Ow=/[\n"\\]/g;function qe(t){return t.replace(Ow,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function $o(t,n,a,r,c,u,y,b){t.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?t.type=y:t.removeAttribute("type"),n!=null?y==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+He(n)):t.value!==""+He(n)&&(t.value=""+He(n)):y!=="submit"&&y!=="reset"||t.removeAttribute("value"),n!=null?Jo(t,y,He(n)):a!=null?Jo(t,y,He(a)):r!=null&&t.removeAttribute("value"),c==null&&u!=null&&(t.defaultChecked=!!u),c!=null&&(t.checked=c&&typeof c!="function"&&typeof c!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.name=""+He(b):t.removeAttribute("name")}function Hh(t,n,a,r,c,u,y,b){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),n!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||n!=null)){Io(t);return}a=a!=null?""+He(a):"",n=n!=null?""+He(n):a,b||n===t.value||(t.value=n),t.defaultValue=n}r=r??c,r=typeof r!="function"&&typeof r!="symbol"&&!!r,t.checked=b?t.checked:!!r,t.defaultChecked=!!r,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(t.name=y),Io(t)}function Jo(t,n,a){n==="number"&&Lr(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function oa(t,n,a,r){if(t=t.options,n){n={};for(var c=0;c<a.length;c++)n["$"+a[c]]=!0;for(a=0;a<t.length;a++)c=n.hasOwnProperty("$"+t[a].value),t[a].selected!==c&&(t[a].selected=c),c&&r&&(t[a].defaultSelected=!0)}else{for(a=""+He(a),n=null,c=0;c<t.length;c++){if(t[c].value===a){t[c].selected=!0,r&&(t[c].defaultSelected=!0);return}n!==null||t[c].disabled||(n=t[c])}n!==null&&(n.selected=!0)}}function qh(t,n,a){if(n!=null&&(n=""+He(n),n!==t.value&&(t.value=n),a==null)){t.defaultValue!==n&&(t.defaultValue=n);return}t.defaultValue=a!=null?""+He(a):""}function Gh(t,n,a,r){if(n==null){if(r!=null){if(a!=null)throw Error(l(92));if(ht(r)){if(1<r.length)throw Error(l(93));r=r[0]}a=r}a==null&&(a=""),n=a}a=He(n),t.defaultValue=a,r=t.textContent,r===a&&r!==""&&r!==null&&(t.value=r),Io(t)}function ca(t,n){if(n){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=n;return}}t.textContent=n}var jw=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 Yh(t,n,a){var r=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?r?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="":r?t.setProperty(n,a):typeof a!="number"||a===0||jw.has(n)?n==="float"?t.cssFloat=a:t[n]=(""+a).trim():t[n]=a+"px"}function Xh(t,n,a){if(n!=null&&typeof n!="object")throw Error(l(62));if(t=t.style,a!=null){for(var r in a)!a.hasOwnProperty(r)||n!=null&&n.hasOwnProperty(r)||(r.indexOf("--")===0?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="");for(var c in n)r=n[c],n.hasOwnProperty(c)&&a[c]!==r&&Yh(t,c,r)}else for(var u in n)n.hasOwnProperty(u)&&Yh(t,u,n[u])}function Wo(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Dw=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"]]),Rw=/^[\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 Vr(t){return Rw.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function An(){}var tc=null;function ec(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ua=null,fa=null;function Kh(t){var n=sa(t);if(n&&(t=n.stateNode)){var a=t[ye]||null;t:switch(t=n.stateNode,n.type){case"input":if($o(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+qe(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var r=a[n];if(r!==t&&r.form===t.form){var c=r[ye]||null;if(!c)throw Error(l(90));$o(r,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(n=0;n<a.length;n++)r=a[n],r.form===t.form&&Ph(r)}break t;case"textarea":qh(t,a.value,a.defaultValue);break t;case"select":n=a.value,n!=null&&oa(t,!!a.multiple,n,!1)}}}var nc=!1;function Fh(t,n,a){if(nc)return t(n,a);nc=!0;try{var r=t(n);return r}finally{if(nc=!1,(ua!==null||fa!==null)&&(Tl(),ua&&(n=ua,t=fa,fa=ua=null,Kh(n),t)))for(n=0;n<t.length;n++)Kh(t[n])}}function hs(t,n){var a=t.stateNode;if(a===null)return null;var r=a[ye]||null;if(r===null)return null;a=r[n];t:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break t;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(l(231,n,typeof a));return a}var Cn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ic=!1;if(Cn)try{var ms={};Object.defineProperty(ms,"passive",{get:function(){ic=!0}}),window.addEventListener("test",ms,ms),window.removeEventListener("test",ms,ms)}catch{ic=!1}var Zn=null,ac=null,Ur=null;function Qh(){if(Ur)return Ur;var t,n=ac,a=n.length,r,c="value"in Zn?Zn.value:Zn.textContent,u=c.length;for(t=0;t<a&&n[t]===c[t];t++);var y=a-t;for(r=1;r<=y&&n[a-r]===c[u-r];r++);return Ur=c.slice(t,1<r?1-r:void 0)}function Br(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function kr(){return!0}function Zh(){return!1}function ve(t){function n(a,r,c,u,y){this._reactName=a,this._targetInst=c,this.type=r,this.nativeEvent=u,this.target=y,this.currentTarget=null;for(var b in t)t.hasOwnProperty(b)&&(a=t[b],this[b]=a?a(u):u[b]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?kr:Zh,this.isPropagationStopped=Zh,this}return x(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=kr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=kr)},persist:function(){},isPersistent:kr}),n}var ji={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pr=ve(ji),ps=x({},ji,{view:0,detail:0}),_w=ve(ps),sc,rc,gs,Hr=x({},ps,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:oc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==gs&&(gs&&t.type==="mousemove"?(sc=t.screenX-gs.screenX,rc=t.screenY-gs.screenY):rc=sc=0,gs=t),sc)},movementY:function(t){return"movementY"in t?t.movementY:rc}}),Ih=ve(Hr),zw=x({},Hr,{dataTransfer:0}),Lw=ve(zw),Vw=x({},ps,{relatedTarget:0}),lc=ve(Vw),Uw=x({},ji,{animationName:0,elapsedTime:0,pseudoElement:0}),Bw=ve(Uw),kw=x({},ji,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Pw=ve(kw),Hw=x({},ji,{data:0}),$h=ve(Hw),qw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gw={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"},Yw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xw(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=Yw[t])?!!n[t]:!1}function oc(){return Xw}var Kw=x({},ps,{key:function(t){if(t.key){var n=qw[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=Br(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Gw[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:oc,charCode:function(t){return t.type==="keypress"?Br(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Br(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Fw=ve(Kw),Qw=x({},Hr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jh=ve(Qw),Zw=x({},ps,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:oc}),Iw=ve(Zw),$w=x({},ji,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jw=ve($w),Ww=x({},Hr,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),tS=ve(Ww),eS=x({},ji,{newState:0,oldState:0}),nS=ve(eS),iS=[9,13,27,32],cc=Cn&&"CompositionEvent"in window,ys=null;Cn&&"documentMode"in document&&(ys=document.documentMode);var aS=Cn&&"TextEvent"in window&&!ys,Wh=Cn&&(!cc||ys&&8<ys&&11>=ys),tm=" ",em=!1;function nm(t,n){switch(t){case"keyup":return iS.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function im(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var da=!1;function sS(t,n){switch(t){case"compositionend":return im(n);case"keypress":return n.which!==32?null:(em=!0,tm);case"textInput":return t=n.data,t===tm&&em?null:t;default:return null}}function rS(t,n){if(da)return t==="compositionend"||!cc&&nm(t,n)?(t=Qh(),Ur=ac=Zn=null,da=!1,t):null;switch(t){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 Wh&&n.locale!=="ko"?null:n.data;default:return null}}var lS={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 am(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!lS[t.type]:n==="textarea"}function sm(t,n,a,r){ua?fa?fa.push(r):fa=[r]:ua=r,n=jl(n,"onChange"),0<n.length&&(a=new Pr("onChange","change",null,a,r),t.push({event:a,listeners:n}))}var vs=null,xs=null;function oS(t){Hg(t,0)}function qr(t){var n=ds(t);if(Ph(n))return t}function rm(t,n){if(t==="change")return n}var lm=!1;if(Cn){var uc;if(Cn){var fc="oninput"in document;if(!fc){var om=document.createElement("div");om.setAttribute("oninput","return;"),fc=typeof om.oninput=="function"}uc=fc}else uc=!1;lm=uc&&(!document.documentMode||9<document.documentMode)}function cm(){vs&&(vs.detachEvent("onpropertychange",um),xs=vs=null)}function um(t){if(t.propertyName==="value"&&qr(xs)){var n=[];sm(n,xs,t,ec(t)),Fh(oS,n)}}function cS(t,n,a){t==="focusin"?(cm(),vs=n,xs=a,vs.attachEvent("onpropertychange",um)):t==="focusout"&&cm()}function uS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return qr(xs)}function fS(t,n){if(t==="click")return qr(n)}function dS(t,n){if(t==="input"||t==="change")return qr(n)}function hS(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var Oe=typeof Object.is=="function"?Object.is:hS;function bs(t,n){if(Oe(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var a=Object.keys(t),r=Object.keys(n);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var c=a[r];if(!qo.call(n,c)||!Oe(t[c],n[c]))return!1}return!0}function fm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function dm(t,n){var a=fm(t);t=0;for(var r;a;){if(a.nodeType===3){if(r=t+a.textContent.length,t<=n&&r>=n)return{node:a,offset:n-t};t=r}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=fm(a)}}function hm(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?hm(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function mm(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=Lr(t.document);n instanceof t.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)t=n.contentWindow;else break;n=Lr(t.document)}return n}function dc(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}var mS=Cn&&"documentMode"in document&&11>=document.documentMode,ha=null,hc=null,ws=null,mc=!1;function pm(t,n,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;mc||ha==null||ha!==Lr(r)||(r=ha,"selectionStart"in r&&dc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ws&&bs(ws,r)||(ws=r,r=jl(hc,"onSelect"),0<r.length&&(n=new Pr("onSelect","select",null,n,a),t.push({event:n,listeners:r}),n.target=ha)))}function Di(t,n){var a={};return a[t.toLowerCase()]=n.toLowerCase(),a["Webkit"+t]="webkit"+n,a["Moz"+t]="moz"+n,a}var ma={animationend:Di("Animation","AnimationEnd"),animationiteration:Di("Animation","AnimationIteration"),animationstart:Di("Animation","AnimationStart"),transitionrun:Di("Transition","TransitionRun"),transitionstart:Di("Transition","TransitionStart"),transitioncancel:Di("Transition","TransitionCancel"),transitionend:Di("Transition","TransitionEnd")},pc={},gm={};Cn&&(gm=document.createElement("div").style,"AnimationEvent"in window||(delete ma.animationend.animation,delete ma.animationiteration.animation,delete ma.animationstart.animation),"TransitionEvent"in window||delete ma.transitionend.transition);function Ri(t){if(pc[t])return pc[t];if(!ma[t])return t;var n=ma[t],a;for(a in n)if(n.hasOwnProperty(a)&&a in gm)return pc[t]=n[a];return t}var ym=Ri("animationend"),vm=Ri("animationiteration"),xm=Ri("animationstart"),pS=Ri("transitionrun"),gS=Ri("transitionstart"),yS=Ri("transitioncancel"),bm=Ri("transitionend"),wm=new Map,gc="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(" ");gc.push("scrollEnd");function nn(t,n){wm.set(t,n),Oi(n,[t])}var Gr=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ge=[],pa=0,yc=0;function Yr(){for(var t=pa,n=yc=pa=0;n<t;){var a=Ge[n];Ge[n++]=null;var r=Ge[n];Ge[n++]=null;var c=Ge[n];Ge[n++]=null;var u=Ge[n];if(Ge[n++]=null,r!==null&&c!==null){var y=r.pending;y===null?c.next=c:(c.next=y.next,y.next=c),r.pending=c}u!==0&&Sm(a,c,u)}}function Xr(t,n,a,r){Ge[pa++]=t,Ge[pa++]=n,Ge[pa++]=a,Ge[pa++]=r,yc|=r,t.lanes|=r,t=t.alternate,t!==null&&(t.lanes|=r)}function vc(t,n,a,r){return Xr(t,n,a,r),Kr(t)}function _i(t,n){return Xr(t,null,null,n),Kr(t)}function Sm(t,n,a){t.lanes|=a;var r=t.alternate;r!==null&&(r.lanes|=a);for(var c=!1,u=t.return;u!==null;)u.childLanes|=a,r=u.alternate,r!==null&&(r.childLanes|=a),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(c=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,c&&n!==null&&(c=31-Ne(a),t=u.hiddenUpdates,r=t[c],r===null?t[c]=[n]:r.push(n),n.lane=a|536870912),u):null}function Kr(t){if(50<Gs)throw Gs=0,Mu=null,Error(l(185));for(var n=t.return;n!==null;)t=n,n=t.return;return t.tag===3?t.stateNode:null}var ga={};function vS(t,n,a,r){this.tag=t,this.key=a,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function je(t,n,a,r){return new vS(t,n,a,r)}function xc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Mn(t,n){var a=t.alternate;return a===null?(a=je(t.tag,n,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=n,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,n=t.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function Tm(t,n){t.flags&=65011714;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=n,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,n=a.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),t}function Fr(t,n,a,r,c,u){var y=0;if(r=t,typeof t=="function")xc(t)&&(y=1);else if(typeof t=="string")y=TT(t,a,$.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case W:return t=je(31,a,n,c),t.elementType=W,t.lanes=u,t;case E:return zi(a.children,c,u,n);case M:y=8,c|=24;break;case D:return t=je(12,a,n,c|2),t.elementType=D,t.lanes=u,t;case G:return t=je(13,a,n,c),t.elementType=G,t.lanes=u,t;case Z:return t=je(19,a,n,c),t.elementType=Z,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case R:y=10;break t;case z:y=9;break t;case q:y=11;break t;case k:y=14;break t;case H:y=16,r=null;break t}y=29,a=Error(l(130,t===null?"null":typeof t,"")),r=null}return n=je(y,a,n,c),n.elementType=t,n.type=r,n.lanes=u,n}function zi(t,n,a,r){return t=je(7,t,r,n),t.lanes=a,t}function bc(t,n,a){return t=je(6,t,null,n),t.lanes=a,t}function Em(t){var n=je(18,null,null,0);return n.stateNode=t,n}function wc(t,n,a){return n=je(4,t.children!==null?t.children:[],t.key,n),n.lanes=a,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}var Am=new WeakMap;function Ye(t,n){if(typeof t=="object"&&t!==null){var a=Am.get(t);return a!==void 0?a:(n={value:t,source:n,stack:Eh(n)},Am.set(t,n),n)}return{value:t,source:n,stack:Eh(n)}}var ya=[],va=0,Qr=null,Ss=0,Xe=[],Ke=0,In=null,dn=1,hn="";function Nn(t,n){ya[va++]=Ss,ya[va++]=Qr,Qr=t,Ss=n}function Cm(t,n,a){Xe[Ke++]=dn,Xe[Ke++]=hn,Xe[Ke++]=In,In=t;var r=dn;t=hn;var c=32-Ne(r)-1;r&=~(1<<c),a+=1;var u=32-Ne(n)+c;if(30<u){var y=c-c%5;u=(r&(1<<y)-1).toString(32),r>>=y,c-=y,dn=1<<32-Ne(n)+c|a<<c|r,hn=u+t}else dn=1<<u|a<<c|r,hn=t}function Sc(t){t.return!==null&&(Nn(t,1),Cm(t,1,0))}function Tc(t){for(;t===Qr;)Qr=ya[--va],ya[va]=null,Ss=ya[--va],ya[va]=null;for(;t===In;)In=Xe[--Ke],Xe[Ke]=null,hn=Xe[--Ke],Xe[Ke]=null,dn=Xe[--Ke],Xe[Ke]=null}function Mm(t,n){Xe[Ke++]=dn,Xe[Ke++]=hn,Xe[Ke++]=In,dn=n.id,hn=n.overflow,In=t}var se=null,Ut=null,Ct=!1,$n=null,Fe=!1,Ec=Error(l(519));function Jn(t){var n=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ts(Ye(n,t)),Ec}function Nm(t){var n=t.stateNode,a=t.type,r=t.memoizedProps;switch(n[ae]=t,n[ye]=r,a){case"dialog":St("cancel",n),St("close",n);break;case"iframe":case"object":case"embed":St("load",n);break;case"video":case"audio":for(a=0;a<Xs.length;a++)St(Xs[a],n);break;case"source":St("error",n);break;case"img":case"image":case"link":St("error",n),St("load",n);break;case"details":St("toggle",n);break;case"input":St("invalid",n),Hh(n,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":St("invalid",n);break;case"textarea":St("invalid",n),Gh(n,r.value,r.defaultValue,r.children)}a=r.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||r.suppressHydrationWarning===!0||Xg(n.textContent,a)?(r.popover!=null&&(St("beforetoggle",n),St("toggle",n)),r.onScroll!=null&&St("scroll",n),r.onScrollEnd!=null&&St("scrollend",n),r.onClick!=null&&(n.onclick=An),n=!0):n=!1,n||Jn(t,!0)}function Om(t){for(se=t.return;se;)switch(se.tag){case 5:case 31:case 13:Fe=!1;return;case 27:case 3:Fe=!0;return;default:se=se.return}}function xa(t){if(t!==se)return!1;if(!Ct)return Om(t),Ct=!0,!1;var n=t.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||qu(t.type,t.memoizedProps)),a=!a),a&&Ut&&Jn(t),Om(t),n===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(l(317));Ut=ty(t)}else if(n===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(l(317));Ut=ty(t)}else n===27?(n=Ut,di(t.type)?(t=Fu,Fu=null,Ut=t):Ut=n):Ut=se?Ze(t.stateNode.nextSibling):null;return!0}function Li(){Ut=se=null,Ct=!1}function Ac(){var t=$n;return t!==null&&(Se===null?Se=t:Se.push.apply(Se,t),$n=null),t}function Ts(t){$n===null?$n=[t]:$n.push(t)}var Cc=N(null),Vi=null,On=null;function Wn(t,n,a){I(Cc,n._currentValue),n._currentValue=a}function jn(t){t._currentValue=Cc.current,K(Cc)}function Mc(t,n,a){for(;t!==null;){var r=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,r!==null&&(r.childLanes|=n)):r!==null&&(r.childLanes&n)!==n&&(r.childLanes|=n),t===a)break;t=t.return}}function Nc(t,n,a,r){var c=t.child;for(c!==null&&(c.return=t);c!==null;){var u=c.dependencies;if(u!==null){var y=c.child;u=u.firstContext;t:for(;u!==null;){var b=u;u=c;for(var C=0;C<n.length;C++)if(b.context===n[C]){u.lanes|=a,b=u.alternate,b!==null&&(b.lanes|=a),Mc(u.return,a,t),r||(y=null);break t}u=b.next}}else if(c.tag===18){if(y=c.return,y===null)throw Error(l(341));y.lanes|=a,u=y.alternate,u!==null&&(u.lanes|=a),Mc(y,a,t),y=null}else y=c.child;if(y!==null)y.return=c;else for(y=c;y!==null;){if(y===t){y=null;break}if(c=y.sibling,c!==null){c.return=y.return,y=c;break}y=y.return}c=y}}function ba(t,n,a,r){t=null;for(var c=n,u=!1;c!==null;){if(!u){if((c.flags&524288)!==0)u=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var y=c.alternate;if(y===null)throw Error(l(387));if(y=y.memoizedProps,y!==null){var b=c.type;Oe(c.pendingProps.value,y.value)||(t!==null?t.push(b):t=[b])}}else if(c===rt.current){if(y=c.alternate,y===null)throw Error(l(387));y.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(t!==null?t.push(Is):t=[Is])}c=c.return}t!==null&&Nc(n,t,a,r),n.flags|=262144}function Zr(t){for(t=t.firstContext;t!==null;){if(!Oe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ui(t){Vi=t,On=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function re(t){return jm(Vi,t)}function Ir(t,n){return Vi===null&&Ui(t),jm(t,n)}function jm(t,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},On===null){if(t===null)throw Error(l(308));On=n,t.dependencies={lanes:0,firstContext:n},t.flags|=524288}else On=On.next=n;return a}var xS=typeof AbortController<"u"?AbortController:function(){var t=[],n=this.signal={aborted:!1,addEventListener:function(a,r){t.push(r)}};this.abort=function(){n.aborted=!0,t.forEach(function(a){return a()})}},bS=e.unstable_scheduleCallback,wS=e.unstable_NormalPriority,Zt={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Oc(){return{controller:new xS,data:new Map,refCount:0}}function Es(t){t.refCount--,t.refCount===0&&bS(wS,function(){t.controller.abort()})}var As=null,jc=0,wa=0,Sa=null;function SS(t,n){if(As===null){var a=As=[];jc=0,wa=_u(),Sa={status:"pending",value:void 0,then:function(r){a.push(r)}}}return jc++,n.then(Dm,Dm),n}function Dm(){if(--jc===0&&As!==null){Sa!==null&&(Sa.status="fulfilled");var t=As;As=null,wa=0,Sa=null;for(var n=0;n<t.length;n++)(0,t[n])()}}function TS(t,n){var a=[],r={status:"pending",value:null,reason:null,then:function(c){a.push(c)}};return t.then(function(){r.status="fulfilled",r.value=n;for(var c=0;c<a.length;c++)(0,a[c])(n)},function(c){for(r.status="rejected",r.reason=c,c=0;c<a.length;c++)(0,a[c])(void 0)}),r}var Rm=_.S;_.S=function(t,n){pg=Ce(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&SS(t,n),Rm!==null&&Rm(t,n)};var Bi=N(null);function Dc(){var t=Bi.current;return t!==null?t:Vt.pooledCache}function $r(t,n){n===null?I(Bi,Bi.current):I(Bi,n.pool)}function _m(){var t=Dc();return t===null?null:{parent:Zt._currentValue,pool:t}}var Ta=Error(l(460)),Rc=Error(l(474)),Jr=Error(l(542)),Wr={then:function(){}};function zm(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Lm(t,n,a){switch(a=t[a],a===void 0?t.push(n):a!==n&&(n.then(An,An),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Um(t),t;default:if(typeof n.status=="string")n.then(An,An);else{if(t=Vt,t!==null&&100<t.shellSuspendCounter)throw Error(l(482));t=n,t.status="pending",t.then(function(r){if(n.status==="pending"){var c=n;c.status="fulfilled",c.value=r}},function(r){if(n.status==="pending"){var c=n;c.status="rejected",c.reason=r}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Um(t),t}throw Pi=n,Ta}}function ki(t){try{var n=t._init;return n(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Pi=a,Ta):a}}var Pi=null;function Vm(){if(Pi===null)throw Error(l(459));var t=Pi;return Pi=null,t}function Um(t){if(t===Ta||t===Jr)throw Error(l(483))}var Ea=null,Cs=0;function tl(t){var n=Cs;return Cs+=1,Ea===null&&(Ea=[]),Lm(Ea,t,n)}function Ms(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}function el(t,n){throw n.$$typeof===w?Error(l(525)):(t=Object.prototype.toString.call(n),Error(l(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)))}function Bm(t){function n(j,O){if(t){var L=j.deletions;L===null?(j.deletions=[O],j.flags|=16):L.push(O)}}function a(j,O){if(!t)return null;for(;O!==null;)n(j,O),O=O.sibling;return null}function r(j){for(var O=new Map;j!==null;)j.key!==null?O.set(j.key,j):O.set(j.index,j),j=j.sibling;return O}function c(j,O){return j=Mn(j,O),j.index=0,j.sibling=null,j}function u(j,O,L){return j.index=L,t?(L=j.alternate,L!==null?(L=L.index,L<O?(j.flags|=67108866,O):L):(j.flags|=67108866,O)):(j.flags|=1048576,O)}function y(j){return t&&j.alternate===null&&(j.flags|=67108866),j}function b(j,O,L,F){return O===null||O.tag!==6?(O=bc(L,j.mode,F),O.return=j,O):(O=c(O,L),O.return=j,O)}function C(j,O,L,F){var lt=L.type;return lt===E?X(j,O,L.props.children,F,L.key):O!==null&&(O.elementType===lt||typeof lt=="object"&&lt!==null&&lt.$$typeof===H&&ki(lt)===O.type)?(O=c(O,L.props),Ms(O,L),O.return=j,O):(O=Fr(L.type,L.key,L.props,null,j.mode,F),Ms(O,L),O.return=j,O)}function V(j,O,L,F){return O===null||O.tag!==4||O.stateNode.containerInfo!==L.containerInfo||O.stateNode.implementation!==L.implementation?(O=wc(L,j.mode,F),O.return=j,O):(O=c(O,L.children||[]),O.return=j,O)}function X(j,O,L,F,lt){return O===null||O.tag!==7?(O=zi(L,j.mode,F,lt),O.return=j,O):(O=c(O,L),O.return=j,O)}function Q(j,O,L){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=bc(""+O,j.mode,L),O.return=j,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case T:return L=Fr(O.type,O.key,O.props,null,j.mode,L),Ms(L,O),L.return=j,L;case A:return O=wc(O,j.mode,L),O.return=j,O;case H:return O=ki(O),Q(j,O,L)}if(ht(O)||pt(O))return O=zi(O,j.mode,L,null),O.return=j,O;if(typeof O.then=="function")return Q(j,tl(O),L);if(O.$$typeof===R)return Q(j,Ir(j,O),L);el(j,O)}return null}function U(j,O,L,F){var lt=O!==null?O.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return lt!==null?null:b(j,O,""+L,F);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case T:return L.key===lt?C(j,O,L,F):null;case A:return L.key===lt?V(j,O,L,F):null;case H:return L=ki(L),U(j,O,L,F)}if(ht(L)||pt(L))return lt!==null?null:X(j,O,L,F,null);if(typeof L.then=="function")return U(j,O,tl(L),F);if(L.$$typeof===R)return U(j,O,Ir(j,L),F);el(j,L)}return null}function P(j,O,L,F,lt){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return j=j.get(L)||null,b(O,j,""+F,lt);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case T:return j=j.get(F.key===null?L:F.key)||null,C(O,j,F,lt);case A:return j=j.get(F.key===null?L:F.key)||null,V(O,j,F,lt);case H:return F=ki(F),P(j,O,L,F,lt)}if(ht(F)||pt(F))return j=j.get(L)||null,X(O,j,F,lt,null);if(typeof F.then=="function")return P(j,O,L,tl(F),lt);if(F.$$typeof===R)return P(j,O,L,Ir(O,F),lt);el(O,F)}return null}function tt(j,O,L,F){for(var lt=null,Mt=null,at=O,vt=O=0,Et=null;at!==null&&vt<L.length;vt++){at.index>vt?(Et=at,at=null):Et=at.sibling;var Nt=U(j,at,L[vt],F);if(Nt===null){at===null&&(at=Et);break}t&&at&&Nt.alternate===null&&n(j,at),O=u(Nt,O,vt),Mt===null?lt=Nt:Mt.sibling=Nt,Mt=Nt,at=Et}if(vt===L.length)return a(j,at),Ct&&Nn(j,vt),lt;if(at===null){for(;vt<L.length;vt++)at=Q(j,L[vt],F),at!==null&&(O=u(at,O,vt),Mt===null?lt=at:Mt.sibling=at,Mt=at);return Ct&&Nn(j,vt),lt}for(at=r(at);vt<L.length;vt++)Et=P(at,j,vt,L[vt],F),Et!==null&&(t&&Et.alternate!==null&&at.delete(Et.key===null?vt:Et.key),O=u(Et,O,vt),Mt===null?lt=Et:Mt.sibling=Et,Mt=Et);return t&&at.forEach(function(yi){return n(j,yi)}),Ct&&Nn(j,vt),lt}function ot(j,O,L,F){if(L==null)throw Error(l(151));for(var lt=null,Mt=null,at=O,vt=O=0,Et=null,Nt=L.next();at!==null&&!Nt.done;vt++,Nt=L.next()){at.index>vt?(Et=at,at=null):Et=at.sibling;var yi=U(j,at,Nt.value,F);if(yi===null){at===null&&(at=Et);break}t&&at&&yi.alternate===null&&n(j,at),O=u(yi,O,vt),Mt===null?lt=yi:Mt.sibling=yi,Mt=yi,at=Et}if(Nt.done)return a(j,at),Ct&&Nn(j,vt),lt;if(at===null){for(;!Nt.done;vt++,Nt=L.next())Nt=Q(j,Nt.value,F),Nt!==null&&(O=u(Nt,O,vt),Mt===null?lt=Nt:Mt.sibling=Nt,Mt=Nt);return Ct&&Nn(j,vt),lt}for(at=r(at);!Nt.done;vt++,Nt=L.next())Nt=P(at,j,vt,Nt.value,F),Nt!==null&&(t&&Nt.alternate!==null&&at.delete(Nt.key===null?vt:Nt.key),O=u(Nt,O,vt),Mt===null?lt=Nt:Mt.sibling=Nt,Mt=Nt);return t&&at.forEach(function(zT){return n(j,zT)}),Ct&&Nn(j,vt),lt}function Lt(j,O,L,F){if(typeof L=="object"&&L!==null&&L.type===E&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case T:t:{for(var lt=L.key;O!==null;){if(O.key===lt){if(lt=L.type,lt===E){if(O.tag===7){a(j,O.sibling),F=c(O,L.props.children),F.return=j,j=F;break t}}else if(O.elementType===lt||typeof lt=="object"&&lt!==null&&lt.$$typeof===H&&ki(lt)===O.type){a(j,O.sibling),F=c(O,L.props),Ms(F,L),F.return=j,j=F;break t}a(j,O);break}else n(j,O);O=O.sibling}L.type===E?(F=zi(L.props.children,j.mode,F,L.key),F.return=j,j=F):(F=Fr(L.type,L.key,L.props,null,j.mode,F),Ms(F,L),F.return=j,j=F)}return y(j);case A:t:{for(lt=L.key;O!==null;){if(O.key===lt)if(O.tag===4&&O.stateNode.containerInfo===L.containerInfo&&O.stateNode.implementation===L.implementation){a(j,O.sibling),F=c(O,L.children||[]),F.return=j,j=F;break t}else{a(j,O);break}else n(j,O);O=O.sibling}F=wc(L,j.mode,F),F.return=j,j=F}return y(j);case H:return L=ki(L),Lt(j,O,L,F)}if(ht(L))return tt(j,O,L,F);if(pt(L)){if(lt=pt(L),typeof lt!="function")throw Error(l(150));return L=lt.call(L),ot(j,O,L,F)}if(typeof L.then=="function")return Lt(j,O,tl(L),F);if(L.$$typeof===R)return Lt(j,O,Ir(j,L),F);el(j,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,O!==null&&O.tag===6?(a(j,O.sibling),F=c(O,L),F.return=j,j=F):(a(j,O),F=bc(L,j.mode,F),F.return=j,j=F),y(j)):a(j,O)}return function(j,O,L,F){try{Cs=0;var lt=Lt(j,O,L,F);return Ea=null,lt}catch(at){if(at===Ta||at===Jr)throw at;var Mt=je(29,at,null,j.mode);return Mt.lanes=F,Mt.return=j,Mt}finally{}}}var Hi=Bm(!0),km=Bm(!1),ti=!1;function _c(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function zc(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ei(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ni(t,n,a){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,(Ot&2)!==0){var c=r.pending;return c===null?n.next=n:(n.next=c.next,c.next=n),r.pending=n,n=Kr(t),Sm(t,null,a),n}return Xr(t,r,n,a),Kr(t)}function Ns(t,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var r=n.lanes;r&=t.pendingLanes,a|=r,n.lanes=a,jh(t,a)}}function Lc(t,n){var a=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var c=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var y={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?c=u=y:u=u.next=y,a=a.next}while(a!==null);u===null?c=u=n:u=u.next=n}else c=u=n;a={baseState:r.baseState,firstBaseUpdate:c,lastBaseUpdate:u,shared:r.shared,callbacks:r.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=n:t.next=n,a.lastBaseUpdate=n}var Vc=!1;function Os(){if(Vc){var t=Sa;if(t!==null)throw t}}function js(t,n,a,r){Vc=!1;var c=t.updateQueue;ti=!1;var u=c.firstBaseUpdate,y=c.lastBaseUpdate,b=c.shared.pending;if(b!==null){c.shared.pending=null;var C=b,V=C.next;C.next=null,y===null?u=V:y.next=V,y=C;var X=t.alternate;X!==null&&(X=X.updateQueue,b=X.lastBaseUpdate,b!==y&&(b===null?X.firstBaseUpdate=V:b.next=V,X.lastBaseUpdate=C))}if(u!==null){var Q=c.baseState;y=0,X=V=C=null,b=u;do{var U=b.lane&-536870913,P=U!==b.lane;if(P?(Tt&U)===U:(r&U)===U){U!==0&&U===wa&&(Vc=!0),X!==null&&(X=X.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});t:{var tt=t,ot=b;U=n;var Lt=a;switch(ot.tag){case 1:if(tt=ot.payload,typeof tt=="function"){Q=tt.call(Lt,Q,U);break t}Q=tt;break t;case 3:tt.flags=tt.flags&-65537|128;case 0:if(tt=ot.payload,U=typeof tt=="function"?tt.call(Lt,Q,U):tt,U==null)break t;Q=x({},Q,U);break t;case 2:ti=!0}}U=b.callback,U!==null&&(t.flags|=64,P&&(t.flags|=8192),P=c.callbacks,P===null?c.callbacks=[U]:P.push(U))}else P={lane:U,tag:b.tag,payload:b.payload,callback:b.callback,next:null},X===null?(V=X=P,C=Q):X=X.next=P,y|=U;if(b=b.next,b===null){if(b=c.shared.pending,b===null)break;P=b,b=P.next,P.next=null,c.lastBaseUpdate=P,c.shared.pending=null}}while(!0);X===null&&(C=Q),c.baseState=C,c.firstBaseUpdate=V,c.lastBaseUpdate=X,u===null&&(c.shared.lanes=0),li|=y,t.lanes=y,t.memoizedState=Q}}function Pm(t,n){if(typeof t!="function")throw Error(l(191,t));t.call(n)}function Hm(t,n){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)Pm(a[t],n)}var Aa=N(null),nl=N(0);function qm(t,n){t=kn,I(nl,t),I(Aa,n),kn=t|n.baseLanes}function Uc(){I(nl,kn),I(Aa,Aa.current)}function Bc(){kn=nl.current,K(Aa),K(nl)}var De=N(null),Qe=null;function ii(t){var n=t.alternate;I(Kt,Kt.current&1),I(De,t),Qe===null&&(n===null||Aa.current!==null||n.memoizedState!==null)&&(Qe=t)}function kc(t){I(Kt,Kt.current),I(De,t),Qe===null&&(Qe=t)}function Gm(t){t.tag===22?(I(Kt,Kt.current),I(De,t),Qe===null&&(Qe=t)):ai()}function ai(){I(Kt,Kt.current),I(De,De.current)}function Re(t){K(De),Qe===t&&(Qe=null),K(Kt)}var Kt=N(0);function il(t){for(var n=t;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Xu(a)||Ku(a)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Dn=0,yt=null,_t=null,It=null,al=!1,Ca=!1,qi=!1,sl=0,Ds=0,Ma=null,ES=0;function qt(){throw Error(l(321))}function Pc(t,n){if(n===null)return!1;for(var a=0;a<n.length&&a<t.length;a++)if(!Oe(t[a],n[a]))return!1;return!0}function Hc(t,n,a,r,c,u){return Dn=u,yt=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,_.H=t===null||t.memoizedState===null?Cp:nu,qi=!1,u=a(r,c),qi=!1,Ca&&(u=Xm(n,a,r,c)),Ym(t),u}function Ym(t){_.H=zs;var n=_t!==null&&_t.next!==null;if(Dn=0,It=_t=yt=null,al=!1,Ds=0,Ma=null,n)throw Error(l(300));t===null||$t||(t=t.dependencies,t!==null&&Zr(t)&&($t=!0))}function Xm(t,n,a,r){yt=t;var c=0;do{if(Ca&&(Ma=null),Ds=0,Ca=!1,25<=c)throw Error(l(301));if(c+=1,It=_t=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}_.H=Mp,u=n(a,r)}while(Ca);return u}function AS(){var t=_.H,n=t.useState()[0];return n=typeof n.then=="function"?Rs(n):n,t=t.useState()[0],(_t!==null?_t.memoizedState:null)!==t&&(yt.flags|=1024),n}function qc(){var t=sl!==0;return sl=0,t}function Gc(t,n,a){n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~a}function Yc(t){if(al){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}al=!1}Dn=0,It=_t=yt=null,Ca=!1,Ds=sl=0,Ma=null}function de(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return It===null?yt.memoizedState=It=t:It=It.next=t,It}function Ft(){if(_t===null){var t=yt.alternate;t=t!==null?t.memoizedState:null}else t=_t.next;var n=It===null?yt.memoizedState:It.next;if(n!==null)It=n,_t=t;else{if(t===null)throw yt.alternate===null?Error(l(467)):Error(l(310));_t=t,t={memoizedState:_t.memoizedState,baseState:_t.baseState,baseQueue:_t.baseQueue,queue:_t.queue,next:null},It===null?yt.memoizedState=It=t:It=It.next=t}return It}function rl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Rs(t){var n=Ds;return Ds+=1,Ma===null&&(Ma=[]),t=Lm(Ma,t,n),n=yt,(It===null?n.memoizedState:It.next)===null&&(n=n.alternate,_.H=n===null||n.memoizedState===null?Cp:nu),t}function ll(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Rs(t);if(t.$$typeof===R)return re(t)}throw Error(l(438,String(t)))}function Xc(t){var n=null,a=yt.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var r=yt.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(n={data:r.data.map(function(c){return c.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=rl(),yt.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(t),r=0;r<t;r++)a[r]=st;return n.index++,a}function Rn(t,n){return typeof n=="function"?n(t):n}function ol(t){var n=Ft();return Kc(n,_t,t)}function Kc(t,n,a){var r=t.queue;if(r===null)throw Error(l(311));r.lastRenderedReducer=a;var c=t.baseQueue,u=r.pending;if(u!==null){if(c!==null){var y=c.next;c.next=u.next,u.next=y}n.baseQueue=c=u,r.pending=null}if(u=t.baseState,c===null)t.memoizedState=u;else{n=c.next;var b=y=null,C=null,V=n,X=!1;do{var Q=V.lane&-536870913;if(Q!==V.lane?(Tt&Q)===Q:(Dn&Q)===Q){var U=V.revertLane;if(U===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),Q===wa&&(X=!0);else if((Dn&U)===U){V=V.next,U===wa&&(X=!0);continue}else Q={lane:0,revertLane:V.revertLane,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},C===null?(b=C=Q,y=u):C=C.next=Q,yt.lanes|=U,li|=U;Q=V.action,qi&&a(u,Q),u=V.hasEagerState?V.eagerState:a(u,Q)}else U={lane:Q,revertLane:V.revertLane,gesture:V.gesture,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},C===null?(b=C=U,y=u):C=C.next=U,yt.lanes|=Q,li|=Q;V=V.next}while(V!==null&&V!==n);if(C===null?y=u:C.next=b,!Oe(u,t.memoizedState)&&($t=!0,X&&(a=Sa,a!==null)))throw a;t.memoizedState=u,t.baseState=y,t.baseQueue=C,r.lastRenderedState=u}return c===null&&(r.lanes=0),[t.memoizedState,r.dispatch]}function Fc(t){var n=Ft(),a=n.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=t;var r=a.dispatch,c=a.pending,u=n.memoizedState;if(c!==null){a.pending=null;var y=c=c.next;do u=t(u,y.action),y=y.next;while(y!==c);Oe(u,n.memoizedState)||($t=!0),n.memoizedState=u,n.baseQueue===null&&(n.baseState=u),a.lastRenderedState=u}return[u,r]}function Km(t,n,a){var r=yt,c=Ft(),u=Ct;if(u){if(a===void 0)throw Error(l(407));a=a()}else a=n();var y=!Oe((_t||c).memoizedState,a);if(y&&(c.memoizedState=a,$t=!0),c=c.queue,Ic(Zm.bind(null,r,c,t),[t]),c.getSnapshot!==n||y||It!==null&&It.memoizedState.tag&1){if(r.flags|=2048,Na(9,{destroy:void 0},Qm.bind(null,r,c,a,n),null),Vt===null)throw Error(l(349));u||(Dn&127)!==0||Fm(r,n,a)}return a}function Fm(t,n,a){t.flags|=16384,t={getSnapshot:n,value:a},n=yt.updateQueue,n===null?(n=rl(),yt.updateQueue=n,n.stores=[t]):(a=n.stores,a===null?n.stores=[t]:a.push(t))}function Qm(t,n,a,r){n.value=a,n.getSnapshot=r,Im(n)&&$m(t)}function Zm(t,n,a){return a(function(){Im(n)&&$m(t)})}function Im(t){var n=t.getSnapshot;t=t.value;try{var a=n();return!Oe(t,a)}catch{return!0}}function $m(t){var n=_i(t,2);n!==null&&Te(n,t,2)}function Qc(t){var n=de();if(typeof t=="function"){var a=t;if(t=a(),qi){Fn(!0);try{a()}finally{Fn(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:t},n}function Jm(t,n,a,r){return t.baseState=a,Kc(t,_t,typeof r=="function"?r:Rn)}function CS(t,n,a,r,c){if(fl(t))throw Error(l(485));if(t=n.action,t!==null){var u={payload:c,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){u.listeners.push(y)}};_.T!==null?a(!0):u.isTransition=!1,r(u),a=n.pending,a===null?(u.next=n.pending=u,Wm(n,u)):(u.next=a.next,n.pending=a.next=u)}}function Wm(t,n){var a=n.action,r=n.payload,c=t.state;if(n.isTransition){var u=_.T,y={};_.T=y;try{var b=a(c,r),C=_.S;C!==null&&C(y,b),tp(t,n,b)}catch(V){Zc(t,n,V)}finally{u!==null&&y.types!==null&&(u.types=y.types),_.T=u}}else try{u=a(c,r),tp(t,n,u)}catch(V){Zc(t,n,V)}}function tp(t,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){ep(t,n,r)},function(r){return Zc(t,n,r)}):ep(t,n,a)}function ep(t,n,a){n.status="fulfilled",n.value=a,np(n),t.state=a,n=t.pending,n!==null&&(a=n.next,a===n?t.pending=null:(a=a.next,n.next=a,Wm(t,a)))}function Zc(t,n,a){var r=t.pending;if(t.pending=null,r!==null){r=r.next;do n.status="rejected",n.reason=a,np(n),n=n.next;while(n!==r)}t.action=null}function np(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}function ip(t,n){return n}function ap(t,n){if(Ct){var a=Vt.formState;if(a!==null){t:{var r=yt;if(Ct){if(Ut){e:{for(var c=Ut,u=Fe;c.nodeType!==8;){if(!u){c=null;break e}if(c=Ze(c.nextSibling),c===null){c=null;break e}}u=c.data,c=u==="F!"||u==="F"?c:null}if(c){Ut=Ze(c.nextSibling),r=c.data==="F!";break t}}Jn(r)}r=!1}r&&(n=a[0])}}return a=de(),a.memoizedState=a.baseState=n,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ip,lastRenderedState:n},a.queue=r,a=Tp.bind(null,yt,r),r.dispatch=a,r=Qc(!1),u=eu.bind(null,yt,!1,r.queue),r=de(),c={state:n,dispatch:null,action:t,pending:null},r.queue=c,a=CS.bind(null,yt,c,u,a),c.dispatch=a,r.memoizedState=t,[n,a,!1]}function sp(t){var n=Ft();return rp(n,_t,t)}function rp(t,n,a){if(n=Kc(t,n,ip)[0],t=ol(Rn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var r=Rs(n)}catch(y){throw y===Ta?Jr:y}else r=n;n=Ft();var c=n.queue,u=c.dispatch;return a!==n.memoizedState&&(yt.flags|=2048,Na(9,{destroy:void 0},MS.bind(null,c,a),null)),[r,u,t]}function MS(t,n){t.action=n}function lp(t){var n=Ft(),a=_t;if(a!==null)return rp(n,a,t);Ft(),n=n.memoizedState,a=Ft();var r=a.queue.dispatch;return a.memoizedState=t,[n,r,!1]}function Na(t,n,a,r){return t={tag:t,create:a,deps:r,inst:n,next:null},n=yt.updateQueue,n===null&&(n=rl(),yt.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=t.next=t:(r=a.next,a.next=t,t.next=r,n.lastEffect=t),t}function op(){return Ft().memoizedState}function cl(t,n,a,r){var c=de();yt.flags|=t,c.memoizedState=Na(1|n,{destroy:void 0},a,r===void 0?null:r)}function ul(t,n,a,r){var c=Ft();r=r===void 0?null:r;var u=c.memoizedState.inst;_t!==null&&r!==null&&Pc(r,_t.memoizedState.deps)?c.memoizedState=Na(n,u,a,r):(yt.flags|=t,c.memoizedState=Na(1|n,u,a,r))}function cp(t,n){cl(8390656,8,t,n)}function Ic(t,n){ul(2048,8,t,n)}function NS(t){yt.flags|=4;var n=yt.updateQueue;if(n===null)n=rl(),yt.updateQueue=n,n.events=[t];else{var a=n.events;a===null?n.events=[t]:a.push(t)}}function up(t){var n=Ft().memoizedState;return NS({ref:n,nextImpl:t}),function(){if((Ot&2)!==0)throw Error(l(440));return n.impl.apply(void 0,arguments)}}function fp(t,n){return ul(4,2,t,n)}function dp(t,n){return ul(4,4,t,n)}function hp(t,n){if(typeof n=="function"){t=t();var a=n(t);return function(){typeof a=="function"?a():n(null)}}if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function mp(t,n,a){a=a!=null?a.concat([t]):null,ul(4,4,hp.bind(null,n,t),a)}function $c(){}function pp(t,n){var a=Ft();n=n===void 0?null:n;var r=a.memoizedState;return n!==null&&Pc(n,r[1])?r[0]:(a.memoizedState=[t,n],t)}function gp(t,n){var a=Ft();n=n===void 0?null:n;var r=a.memoizedState;if(n!==null&&Pc(n,r[1]))return r[0];if(r=t(),qi){Fn(!0);try{t()}finally{Fn(!1)}}return a.memoizedState=[r,n],r}function Jc(t,n,a){return a===void 0||(Dn&1073741824)!==0&&(Tt&261930)===0?t.memoizedState=n:(t.memoizedState=a,t=yg(),yt.lanes|=t,li|=t,a)}function yp(t,n,a,r){return Oe(a,n)?a:Aa.current!==null?(t=Jc(t,a,r),Oe(t,n)||($t=!0),t):(Dn&42)===0||(Dn&1073741824)!==0&&(Tt&261930)===0?($t=!0,t.memoizedState=a):(t=yg(),yt.lanes|=t,li|=t,n)}function vp(t,n,a,r,c){var u=Y.p;Y.p=u!==0&&8>u?u:8;var y=_.T,b={};_.T=b,eu(t,!1,n,a);try{var C=c(),V=_.S;if(V!==null&&V(b,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var X=TS(C,r);_s(t,n,X,Le(t))}else _s(t,n,r,Le(t))}catch(Q){_s(t,n,{then:function(){},status:"rejected",reason:Q},Le())}finally{Y.p=u,y!==null&&b.types!==null&&(y.types=b.types),_.T=y}}function OS(){}function Wc(t,n,a,r){if(t.tag!==5)throw Error(l(476));var c=xp(t).queue;vp(t,c,n,B,a===null?OS:function(){return bp(t),a(r)})}function xp(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:B},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:a},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function bp(t){var n=xp(t);n.next===null&&(n=t.alternate.memoizedState),_s(t,n.next.queue,{},Le())}function tu(){return re(Is)}function wp(){return Ft().memoizedState}function Sp(){return Ft().memoizedState}function jS(t){for(var n=t.return;n!==null;){switch(n.tag){case 24:case 3:var a=Le();t=ei(a);var r=ni(n,t,a);r!==null&&(Te(r,n,a),Ns(r,n,a)),n={cache:Oc()},t.payload=n;return}n=n.return}}function DS(t,n,a){var r=Le();a={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},fl(t)?Ep(n,a):(a=vc(t,n,a,r),a!==null&&(Te(a,t,r),Ap(a,n,r)))}function Tp(t,n,a){var r=Le();_s(t,n,a,r)}function _s(t,n,a,r){var c={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(fl(t))Ep(n,c);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=n.lastRenderedReducer,u!==null))try{var y=n.lastRenderedState,b=u(y,a);if(c.hasEagerState=!0,c.eagerState=b,Oe(b,y))return Xr(t,n,c,0),Vt===null&&Yr(),!1}catch{}finally{}if(a=vc(t,n,c,r),a!==null)return Te(a,t,r),Ap(a,n,r),!0}return!1}function eu(t,n,a,r){if(r={lane:2,revertLane:_u(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},fl(t)){if(n)throw Error(l(479))}else n=vc(t,a,r,2),n!==null&&Te(n,t,2)}function fl(t){var n=t.alternate;return t===yt||n!==null&&n===yt}function Ep(t,n){Ca=al=!0;var a=t.pending;a===null?n.next=n:(n.next=a.next,a.next=n),t.pending=n}function Ap(t,n,a){if((a&4194048)!==0){var r=n.lanes;r&=t.pendingLanes,a|=r,n.lanes=a,jh(t,a)}}var zs={readContext:re,use:ll,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useLayoutEffect:qt,useInsertionEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useSyncExternalStore:qt,useId:qt,useHostTransitionStatus:qt,useFormState:qt,useActionState:qt,useOptimistic:qt,useMemoCache:qt,useCacheRefresh:qt};zs.useEffectEvent=qt;var Cp={readContext:re,use:ll,useCallback:function(t,n){return de().memoizedState=[t,n===void 0?null:n],t},useContext:re,useEffect:cp,useImperativeHandle:function(t,n,a){a=a!=null?a.concat([t]):null,cl(4194308,4,hp.bind(null,n,t),a)},useLayoutEffect:function(t,n){return cl(4194308,4,t,n)},useInsertionEffect:function(t,n){cl(4,2,t,n)},useMemo:function(t,n){var a=de();n=n===void 0?null:n;var r=t();if(qi){Fn(!0);try{t()}finally{Fn(!1)}}return a.memoizedState=[r,n],r},useReducer:function(t,n,a){var r=de();if(a!==void 0){var c=a(n);if(qi){Fn(!0);try{a(n)}finally{Fn(!1)}}}else c=n;return r.memoizedState=r.baseState=c,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:c},r.queue=t,t=t.dispatch=DS.bind(null,yt,t),[r.memoizedState,t]},useRef:function(t){var n=de();return t={current:t},n.memoizedState=t},useState:function(t){t=Qc(t);var n=t.queue,a=Tp.bind(null,yt,n);return n.dispatch=a,[t.memoizedState,a]},useDebugValue:$c,useDeferredValue:function(t,n){var a=de();return Jc(a,t,n)},useTransition:function(){var t=Qc(!1);return t=vp.bind(null,yt,t.queue,!0,!1),de().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,n,a){var r=yt,c=de();if(Ct){if(a===void 0)throw Error(l(407));a=a()}else{if(a=n(),Vt===null)throw Error(l(349));(Tt&127)!==0||Fm(r,n,a)}c.memoizedState=a;var u={value:a,getSnapshot:n};return c.queue=u,cp(Zm.bind(null,r,u,t),[t]),r.flags|=2048,Na(9,{destroy:void 0},Qm.bind(null,r,u,a,n),null),a},useId:function(){var t=de(),n=Vt.identifierPrefix;if(Ct){var a=hn,r=dn;a=(r&~(1<<32-Ne(r)-1)).toString(32)+a,n="_"+n+"R_"+a,a=sl++,0<a&&(n+="H"+a.toString(32)),n+="_"}else a=ES++,n="_"+n+"r_"+a.toString(32)+"_";return t.memoizedState=n},useHostTransitionStatus:tu,useFormState:ap,useActionState:ap,useOptimistic:function(t){var n=de();n.memoizedState=n.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=eu.bind(null,yt,!0,a),a.dispatch=n,[t,n]},useMemoCache:Xc,useCacheRefresh:function(){return de().memoizedState=jS.bind(null,yt)},useEffectEvent:function(t){var n=de(),a={impl:t};return n.memoizedState=a,function(){if((Ot&2)!==0)throw Error(l(440));return a.impl.apply(void 0,arguments)}}},nu={readContext:re,use:ll,useCallback:pp,useContext:re,useEffect:Ic,useImperativeHandle:mp,useInsertionEffect:fp,useLayoutEffect:dp,useMemo:gp,useReducer:ol,useRef:op,useState:function(){return ol(Rn)},useDebugValue:$c,useDeferredValue:function(t,n){var a=Ft();return yp(a,_t.memoizedState,t,n)},useTransition:function(){var t=ol(Rn)[0],n=Ft().memoizedState;return[typeof t=="boolean"?t:Rs(t),n]},useSyncExternalStore:Km,useId:wp,useHostTransitionStatus:tu,useFormState:sp,useActionState:sp,useOptimistic:function(t,n){var a=Ft();return Jm(a,_t,t,n)},useMemoCache:Xc,useCacheRefresh:Sp};nu.useEffectEvent=up;var Mp={readContext:re,use:ll,useCallback:pp,useContext:re,useEffect:Ic,useImperativeHandle:mp,useInsertionEffect:fp,useLayoutEffect:dp,useMemo:gp,useReducer:Fc,useRef:op,useState:function(){return Fc(Rn)},useDebugValue:$c,useDeferredValue:function(t,n){var a=Ft();return _t===null?Jc(a,t,n):yp(a,_t.memoizedState,t,n)},useTransition:function(){var t=Fc(Rn)[0],n=Ft().memoizedState;return[typeof t=="boolean"?t:Rs(t),n]},useSyncExternalStore:Km,useId:wp,useHostTransitionStatus:tu,useFormState:lp,useActionState:lp,useOptimistic:function(t,n){var a=Ft();return _t!==null?Jm(a,_t,t,n):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Xc,useCacheRefresh:Sp};Mp.useEffectEvent=up;function iu(t,n,a,r){n=t.memoizedState,a=a(r,n),a=a==null?n:x({},n,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var au={enqueueSetState:function(t,n,a){t=t._reactInternals;var r=Le(),c=ei(r);c.payload=n,a!=null&&(c.callback=a),n=ni(t,c,r),n!==null&&(Te(n,t,r),Ns(n,t,r))},enqueueReplaceState:function(t,n,a){t=t._reactInternals;var r=Le(),c=ei(r);c.tag=1,c.payload=n,a!=null&&(c.callback=a),n=ni(t,c,r),n!==null&&(Te(n,t,r),Ns(n,t,r))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var a=Le(),r=ei(a);r.tag=2,n!=null&&(r.callback=n),n=ni(t,r,a),n!==null&&(Te(n,t,a),Ns(n,t,a))}};function Np(t,n,a,r,c,u,y){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,u,y):n.prototype&&n.prototype.isPureReactComponent?!bs(a,r)||!bs(c,u):!0}function Op(t,n,a,r){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,r),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,r),n.state!==t&&au.enqueueReplaceState(n,n.state,null)}function Gi(t,n){var a=n;if("ref"in n){a={};for(var r in n)r!=="ref"&&(a[r]=n[r])}if(t=t.defaultProps){a===n&&(a=x({},a));for(var c in t)a[c]===void 0&&(a[c]=t[c])}return a}function jp(t){Gr(t)}function Dp(t){console.error(t)}function Rp(t){Gr(t)}function dl(t,n){try{var a=t.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(r){setTimeout(function(){throw r})}}function _p(t,n,a){try{var r=t.onCaughtError;r(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function su(t,n,a){return a=ei(a),a.tag=3,a.payload={element:null},a.callback=function(){dl(t,n)},a}function zp(t){return t=ei(t),t.tag=3,t}function Lp(t,n,a,r){var c=a.type.getDerivedStateFromError;if(typeof c=="function"){var u=r.value;t.payload=function(){return c(u)},t.callback=function(){_p(n,a,r)}}var y=a.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(t.callback=function(){_p(n,a,r),typeof c!="function"&&(oi===null?oi=new Set([this]):oi.add(this));var b=r.stack;this.componentDidCatch(r.value,{componentStack:b!==null?b:""})})}function RS(t,n,a,r,c){if(a.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(n=a.alternate,n!==null&&ba(n,a,c,!0),a=De.current,a!==null){switch(a.tag){case 31:case 13:return Qe===null?El():a.alternate===null&&Gt===0&&(Gt=3),a.flags&=-257,a.flags|=65536,a.lanes=c,r===Wr?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([r]):n.add(r),ju(t,r,c)),!1;case 22:return a.flags|=65536,r===Wr?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([r]):a.add(r)),ju(t,r,c)),!1}throw Error(l(435,a.tag))}return ju(t,r,c),El(),!1}if(Ct)return n=De.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=c,r!==Ec&&(t=Error(l(422),{cause:r}),Ts(Ye(t,a)))):(r!==Ec&&(n=Error(l(423),{cause:r}),Ts(Ye(n,a))),t=t.current.alternate,t.flags|=65536,c&=-c,t.lanes|=c,r=Ye(r,a),c=su(t.stateNode,r,c),Lc(t,c),Gt!==4&&(Gt=2)),!1;var u=Error(l(520),{cause:r});if(u=Ye(u,a),qs===null?qs=[u]:qs.push(u),Gt!==4&&(Gt=2),n===null)return!0;r=Ye(r,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,t=c&-c,a.lanes|=t,t=su(a.stateNode,r,t),Lc(a,t),!1;case 1:if(n=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(oi===null||!oi.has(u))))return a.flags|=65536,c&=-c,a.lanes|=c,c=zp(c),Lp(c,t,a,r),Lc(a,c),!1}a=a.return}while(a!==null);return!1}var ru=Error(l(461)),$t=!1;function le(t,n,a,r){n.child=t===null?km(n,null,a,r):Hi(n,t.child,a,r)}function Vp(t,n,a,r,c){a=a.render;var u=n.ref;if("ref"in r){var y={};for(var b in r)b!=="ref"&&(y[b]=r[b])}else y=r;return Ui(n),r=Hc(t,n,a,y,u,c),b=qc(),t!==null&&!$t?(Gc(t,n,c),_n(t,n,c)):(Ct&&b&&Sc(n),n.flags|=1,le(t,n,r,c),n.child)}function Up(t,n,a,r,c){if(t===null){var u=a.type;return typeof u=="function"&&!xc(u)&&u.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=u,Bp(t,n,u,r,c)):(t=Fr(a.type,null,r,n,n.mode,c),t.ref=n.ref,t.return=n,n.child=t)}if(u=t.child,!mu(t,c)){var y=u.memoizedProps;if(a=a.compare,a=a!==null?a:bs,a(y,r)&&t.ref===n.ref)return _n(t,n,c)}return n.flags|=1,t=Mn(u,r),t.ref=n.ref,t.return=n,n.child=t}function Bp(t,n,a,r,c){if(t!==null){var u=t.memoizedProps;if(bs(u,r)&&t.ref===n.ref)if($t=!1,n.pendingProps=r=u,mu(t,c))(t.flags&131072)!==0&&($t=!0);else return n.lanes=t.lanes,_n(t,n,c)}return lu(t,n,a,r,c)}function kp(t,n,a,r){var c=r.children,u=t!==null?t.memoizedState:null;if(t===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((n.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,t!==null){for(r=n.child=t.child,c=0;r!==null;)c=c|r.lanes|r.childLanes,r=r.sibling;r=c&~u}else r=0,n.child=null;return Pp(t,n,u,a,r)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&$r(n,u!==null?u.cachePool:null),u!==null?qm(n,u):Uc(),Gm(n);else return r=n.lanes=536870912,Pp(t,n,u!==null?u.baseLanes|a:a,a,r)}else u!==null?($r(n,u.cachePool),qm(n,u),ai(),n.memoizedState=null):(t!==null&&$r(n,null),Uc(),ai());return le(t,n,c,a),n.child}function Ls(t,n){return t!==null&&t.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Pp(t,n,a,r,c){var u=Dc();return u=u===null?null:{parent:Zt._currentValue,pool:u},n.memoizedState={baseLanes:a,cachePool:u},t!==null&&$r(n,null),Uc(),Gm(n),t!==null&&ba(t,n,r,!0),n.childLanes=c,null}function hl(t,n){return n=pl({mode:n.mode,children:n.children},t.mode),n.ref=t.ref,t.child=n,n.return=t,n}function Hp(t,n,a){return Hi(n,t.child,null,a),t=hl(n,n.pendingProps),t.flags|=2,Re(n),n.memoizedState=null,t}function _S(t,n,a){var r=n.pendingProps,c=(n.flags&128)!==0;if(n.flags&=-129,t===null){if(Ct){if(r.mode==="hidden")return t=hl(n,r),n.lanes=536870912,Ls(null,t);if(kc(n),(t=Ut)?(t=Wg(t,Fe),t=t!==null&&t.data==="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:In!==null?{id:dn,overflow:hn}:null,retryLane:536870912,hydrationErrors:null},a=Em(t),a.return=n,n.child=a,se=n,Ut=null)):t=null,t===null)throw Jn(n);return n.lanes=536870912,null}return hl(n,r)}var u=t.memoizedState;if(u!==null){var y=u.dehydrated;if(kc(n),c)if(n.flags&256)n.flags&=-257,n=Hp(t,n,a);else if(n.memoizedState!==null)n.child=t.child,n.flags|=128,n=null;else throw Error(l(558));else if($t||ba(t,n,a,!1),c=(a&t.childLanes)!==0,$t||c){if(r=Vt,r!==null&&(y=Dh(r,a),y!==0&&y!==u.retryLane))throw u.retryLane=y,_i(t,y),Te(r,t,y),ru;El(),n=Hp(t,n,a)}else t=u.treeContext,Ut=Ze(y.nextSibling),se=n,Ct=!0,$n=null,Fe=!1,t!==null&&Mm(n,t),n=hl(n,r),n.flags|=4096;return n}return t=Mn(t.child,{mode:r.mode,children:r.children}),t.ref=n.ref,n.child=t,t.return=n,t}function ml(t,n){var a=n.ref;if(a===null)t!==null&&t.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(l(284));(t===null||t.ref!==a)&&(n.flags|=4194816)}}function lu(t,n,a,r,c){return Ui(n),a=Hc(t,n,a,r,void 0,c),r=qc(),t!==null&&!$t?(Gc(t,n,c),_n(t,n,c)):(Ct&&r&&Sc(n),n.flags|=1,le(t,n,a,c),n.child)}function qp(t,n,a,r,c,u){return Ui(n),n.updateQueue=null,a=Xm(n,r,a,c),Ym(t),r=qc(),t!==null&&!$t?(Gc(t,n,u),_n(t,n,u)):(Ct&&r&&Sc(n),n.flags|=1,le(t,n,a,u),n.child)}function Gp(t,n,a,r,c){if(Ui(n),n.stateNode===null){var u=ga,y=a.contextType;typeof y=="object"&&y!==null&&(u=re(y)),u=new a(r,u),n.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=au,n.stateNode=u,u._reactInternals=n,u=n.stateNode,u.props=r,u.state=n.memoizedState,u.refs={},_c(n),y=a.contextType,u.context=typeof y=="object"&&y!==null?re(y):ga,u.state=n.memoizedState,y=a.getDerivedStateFromProps,typeof y=="function"&&(iu(n,a,y,r),u.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(y=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),y!==u.state&&au.enqueueReplaceState(u,u.state,null),js(n,r,u,c),Os(),u.state=n.memoizedState),typeof u.componentDidMount=="function"&&(n.flags|=4194308),r=!0}else if(t===null){u=n.stateNode;var b=n.memoizedProps,C=Gi(a,b);u.props=C;var V=u.context,X=a.contextType;y=ga,typeof X=="object"&&X!==null&&(y=re(X));var Q=a.getDerivedStateFromProps;X=typeof Q=="function"||typeof u.getSnapshotBeforeUpdate=="function",b=n.pendingProps!==b,X||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(b||V!==y)&&Op(n,u,r,y),ti=!1;var U=n.memoizedState;u.state=U,js(n,r,u,c),Os(),V=n.memoizedState,b||U!==V||ti?(typeof Q=="function"&&(iu(n,a,Q,r),V=n.memoizedState),(C=ti||Np(n,a,C,r,U,V,y))?(X||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(n.flags|=4194308)):(typeof u.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=V),u.props=r,u.state=V,u.context=y,r=C):(typeof u.componentDidMount=="function"&&(n.flags|=4194308),r=!1)}else{u=n.stateNode,zc(t,n),y=n.memoizedProps,X=Gi(a,y),u.props=X,Q=n.pendingProps,U=u.context,V=a.contextType,C=ga,typeof V=="object"&&V!==null&&(C=re(V)),b=a.getDerivedStateFromProps,(V=typeof b=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(y!==Q||U!==C)&&Op(n,u,r,C),ti=!1,U=n.memoizedState,u.state=U,js(n,r,u,c),Os();var P=n.memoizedState;y!==Q||U!==P||ti||t!==null&&t.dependencies!==null&&Zr(t.dependencies)?(typeof b=="function"&&(iu(n,a,b,r),P=n.memoizedState),(X=ti||Np(n,a,X,r,U,P,C)||t!==null&&t.dependencies!==null&&Zr(t.dependencies))?(V||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,P,C),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,P,C)),typeof u.componentDidUpdate=="function"&&(n.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof u.componentDidUpdate!="function"||y===t.memoizedProps&&U===t.memoizedState||(n.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||y===t.memoizedProps&&U===t.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=P),u.props=r,u.state=P,u.context=C,r=X):(typeof u.componentDidUpdate!="function"||y===t.memoizedProps&&U===t.memoizedState||(n.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||y===t.memoizedProps&&U===t.memoizedState||(n.flags|=1024),r=!1)}return u=r,ml(t,n),r=(n.flags&128)!==0,u||r?(u=n.stateNode,a=r&&typeof a.getDerivedStateFromError!="function"?null:u.render(),n.flags|=1,t!==null&&r?(n.child=Hi(n,t.child,null,c),n.child=Hi(n,null,a,c)):le(t,n,a,c),n.memoizedState=u.state,t=n.child):t=_n(t,n,c),t}function Yp(t,n,a,r){return Li(),n.flags|=256,le(t,n,a,r),n.child}var ou={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function cu(t){return{baseLanes:t,cachePool:_m()}}function uu(t,n,a){return t=t!==null?t.childLanes&~a:0,n&&(t|=ze),t}function Xp(t,n,a){var r=n.pendingProps,c=!1,u=(n.flags&128)!==0,y;if((y=u)||(y=t!==null&&t.memoizedState===null?!1:(Kt.current&2)!==0),y&&(c=!0,n.flags&=-129),y=(n.flags&32)!==0,n.flags&=-33,t===null){if(Ct){if(c?ii(n):ai(),(t=Ut)?(t=Wg(t,Fe),t=t!==null&&t.data!=="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:In!==null?{id:dn,overflow:hn}:null,retryLane:536870912,hydrationErrors:null},a=Em(t),a.return=n,n.child=a,se=n,Ut=null)):t=null,t===null)throw Jn(n);return Ku(t)?n.lanes=32:n.lanes=536870912,null}var b=r.children;return r=r.fallback,c?(ai(),c=n.mode,b=pl({mode:"hidden",children:b},c),r=zi(r,c,a,null),b.return=n,r.return=n,b.sibling=r,n.child=b,r=n.child,r.memoizedState=cu(a),r.childLanes=uu(t,y,a),n.memoizedState=ou,Ls(null,r)):(ii(n),fu(n,b))}var C=t.memoizedState;if(C!==null&&(b=C.dehydrated,b!==null)){if(u)n.flags&256?(ii(n),n.flags&=-257,n=du(t,n,a)):n.memoizedState!==null?(ai(),n.child=t.child,n.flags|=128,n=null):(ai(),b=r.fallback,c=n.mode,r=pl({mode:"visible",children:r.children},c),b=zi(b,c,a,null),b.flags|=2,r.return=n,b.return=n,r.sibling=b,n.child=r,Hi(n,t.child,null,a),r=n.child,r.memoizedState=cu(a),r.childLanes=uu(t,y,a),n.memoizedState=ou,n=Ls(null,r));else if(ii(n),Ku(b)){if(y=b.nextSibling&&b.nextSibling.dataset,y)var V=y.dgst;y=V,r=Error(l(419)),r.stack="",r.digest=y,Ts({value:r,source:null,stack:null}),n=du(t,n,a)}else if($t||ba(t,n,a,!1),y=(a&t.childLanes)!==0,$t||y){if(y=Vt,y!==null&&(r=Dh(y,a),r!==0&&r!==C.retryLane))throw C.retryLane=r,_i(t,r),Te(y,t,r),ru;Xu(b)||El(),n=du(t,n,a)}else Xu(b)?(n.flags|=192,n.child=t.child,n=null):(t=C.treeContext,Ut=Ze(b.nextSibling),se=n,Ct=!0,$n=null,Fe=!1,t!==null&&Mm(n,t),n=fu(n,r.children),n.flags|=4096);return n}return c?(ai(),b=r.fallback,c=n.mode,C=t.child,V=C.sibling,r=Mn(C,{mode:"hidden",children:r.children}),r.subtreeFlags=C.subtreeFlags&65011712,V!==null?b=Mn(V,b):(b=zi(b,c,a,null),b.flags|=2),b.return=n,r.return=n,r.sibling=b,n.child=r,Ls(null,r),r=n.child,b=t.child.memoizedState,b===null?b=cu(a):(c=b.cachePool,c!==null?(C=Zt._currentValue,c=c.parent!==C?{parent:C,pool:C}:c):c=_m(),b={baseLanes:b.baseLanes|a,cachePool:c}),r.memoizedState=b,r.childLanes=uu(t,y,a),n.memoizedState=ou,Ls(t.child,r)):(ii(n),a=t.child,t=a.sibling,a=Mn(a,{mode:"visible",children:r.children}),a.return=n,a.sibling=null,t!==null&&(y=n.deletions,y===null?(n.deletions=[t],n.flags|=16):y.push(t)),n.child=a,n.memoizedState=null,a)}function fu(t,n){return n=pl({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function pl(t,n){return t=je(22,t,null,n),t.lanes=0,t}function du(t,n,a){return Hi(n,t.child,null,a),t=fu(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function Kp(t,n,a){t.lanes|=n;var r=t.alternate;r!==null&&(r.lanes|=n),Mc(t.return,n,a)}function hu(t,n,a,r,c,u){var y=t.memoizedState;y===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:c,treeForkCount:u}:(y.isBackwards=n,y.rendering=null,y.renderingStartTime=0,y.last=r,y.tail=a,y.tailMode=c,y.treeForkCount=u)}function Fp(t,n,a){var r=n.pendingProps,c=r.revealOrder,u=r.tail;r=r.children;var y=Kt.current,b=(y&2)!==0;if(b?(y=y&1|2,n.flags|=128):y&=1,I(Kt,y),le(t,n,r,a),r=Ct?Ss:0,!b&&t!==null&&(t.flags&128)!==0)t:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Kp(t,a,n);else if(t.tag===19)Kp(t,a,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break t;for(;t.sibling===null;){if(t.return===null||t.return===n)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(c){case"forwards":for(a=n.child,c=null;a!==null;)t=a.alternate,t!==null&&il(t)===null&&(c=a),a=a.sibling;a=c,a===null?(c=n.child,n.child=null):(c=a.sibling,a.sibling=null),hu(n,!1,c,a,u,r);break;case"backwards":case"unstable_legacy-backwards":for(a=null,c=n.child,n.child=null;c!==null;){if(t=c.alternate,t!==null&&il(t)===null){n.child=c;break}t=c.sibling,c.sibling=a,a=c,c=t}hu(n,!0,a,null,u,r);break;case"together":hu(n,!1,null,null,void 0,r);break;default:n.memoizedState=null}return n.child}function _n(t,n,a){if(t!==null&&(n.dependencies=t.dependencies),li|=n.lanes,(a&n.childLanes)===0)if(t!==null){if(ba(t,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error(l(153));if(n.child!==null){for(t=n.child,a=Mn(t,t.pendingProps),n.child=a,a.return=n;t.sibling!==null;)t=t.sibling,a=a.sibling=Mn(t,t.pendingProps),a.return=n;a.sibling=null}return n.child}function mu(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&Zr(t)))}function zS(t,n,a){switch(n.tag){case 3:Xt(n,n.stateNode.containerInfo),Wn(n,Zt,t.memoizedState.cache),Li();break;case 27:case 5:Pe(n);break;case 4:Xt(n,n.stateNode.containerInfo);break;case 10:Wn(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,kc(n),null;break;case 13:var r=n.memoizedState;if(r!==null)return r.dehydrated!==null?(ii(n),n.flags|=128,null):(a&n.child.childLanes)!==0?Xp(t,n,a):(ii(n),t=_n(t,n,a),t!==null?t.sibling:null);ii(n);break;case 19:var c=(t.flags&128)!==0;if(r=(a&n.childLanes)!==0,r||(ba(t,n,a,!1),r=(a&n.childLanes)!==0),c){if(r)return Fp(t,n,a);n.flags|=128}if(c=n.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),I(Kt,Kt.current),r)break;return null;case 22:return n.lanes=0,kp(t,n,a,n.pendingProps);case 24:Wn(n,Zt,t.memoizedState.cache)}return _n(t,n,a)}function Qp(t,n,a){if(t!==null)if(t.memoizedProps!==n.pendingProps)$t=!0;else{if(!mu(t,a)&&(n.flags&128)===0)return $t=!1,zS(t,n,a);$t=(t.flags&131072)!==0}else $t=!1,Ct&&(n.flags&1048576)!==0&&Cm(n,Ss,n.index);switch(n.lanes=0,n.tag){case 16:t:{var r=n.pendingProps;if(t=ki(n.elementType),n.type=t,typeof t=="function")xc(t)?(r=Gi(t,r),n.tag=1,n=Gp(null,n,t,r,a)):(n.tag=0,n=lu(null,n,t,r,a));else{if(t!=null){var c=t.$$typeof;if(c===q){n.tag=11,n=Vp(null,n,t,r,a);break t}else if(c===k){n.tag=14,n=Up(null,n,t,r,a);break t}}throw n=J(t)||t,Error(l(306,n,""))}}return n;case 0:return lu(t,n,n.type,n.pendingProps,a);case 1:return r=n.type,c=Gi(r,n.pendingProps),Gp(t,n,r,c,a);case 3:t:{if(Xt(n,n.stateNode.containerInfo),t===null)throw Error(l(387));r=n.pendingProps;var u=n.memoizedState;c=u.element,zc(t,n),js(n,r,null,a);var y=n.memoizedState;if(r=y.cache,Wn(n,Zt,r),r!==u.cache&&Nc(n,[Zt],a,!0),Os(),r=y.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:y.cache},n.updateQueue.baseState=u,n.memoizedState=u,n.flags&256){n=Yp(t,n,r,a);break t}else if(r!==c){c=Ye(Error(l(424)),n),Ts(c),n=Yp(t,n,r,a);break t}else{switch(t=n.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Ut=Ze(t.firstChild),se=n,Ct=!0,$n=null,Fe=!0,a=km(n,null,r,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Li(),r===c){n=_n(t,n,a);break t}le(t,n,r,a)}n=n.child}return n;case 26:return ml(t,n),t===null?(a=sy(n.type,null,n.pendingProps,null))?n.memoizedState=a:Ct||(a=n.type,t=n.pendingProps,r=Dl(gt.current).createElement(a),r[ae]=n,r[ye]=t,oe(r,a,t),ne(r),n.stateNode=r):n.memoizedState=sy(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return Pe(n),t===null&&Ct&&(r=n.stateNode=ny(n.type,n.pendingProps,gt.current),se=n,Fe=!0,c=Ut,di(n.type)?(Fu=c,Ut=Ze(r.firstChild)):Ut=c),le(t,n,n.pendingProps.children,a),ml(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&&Ct&&((c=r=Ut)&&(r=uT(r,n.type,n.pendingProps,Fe),r!==null?(n.stateNode=r,se=n,Ut=Ze(r.firstChild),Fe=!1,c=!0):c=!1),c||Jn(n)),Pe(n),c=n.type,u=n.pendingProps,y=t!==null?t.memoizedProps:null,r=u.children,qu(c,u)?r=null:y!==null&&qu(c,y)&&(n.flags|=32),n.memoizedState!==null&&(c=Hc(t,n,AS,null,null,a),Is._currentValue=c),ml(t,n),le(t,n,r,a),n.child;case 6:return t===null&&Ct&&((t=a=Ut)&&(a=fT(a,n.pendingProps,Fe),a!==null?(n.stateNode=a,se=n,Ut=null,t=!0):t=!1),t||Jn(n)),null;case 13:return Xp(t,n,a);case 4:return Xt(n,n.stateNode.containerInfo),r=n.pendingProps,t===null?n.child=Hi(n,null,r,a):le(t,n,r,a),n.child;case 11:return Vp(t,n,n.type,n.pendingProps,a);case 7:return le(t,n,n.pendingProps,a),n.child;case 8:return le(t,n,n.pendingProps.children,a),n.child;case 12:return le(t,n,n.pendingProps.children,a),n.child;case 10:return r=n.pendingProps,Wn(n,n.type,r.value),le(t,n,r.children,a),n.child;case 9:return c=n.type._context,r=n.pendingProps.children,Ui(n),c=re(c),r=r(c),n.flags|=1,le(t,n,r,a),n.child;case 14:return Up(t,n,n.type,n.pendingProps,a);case 15:return Bp(t,n,n.type,n.pendingProps,a);case 19:return Fp(t,n,a);case 31:return _S(t,n,a);case 22:return kp(t,n,a,n.pendingProps);case 24:return Ui(n),r=re(Zt),t===null?(c=Dc(),c===null&&(c=Vt,u=Oc(),c.pooledCache=u,u.refCount++,u!==null&&(c.pooledCacheLanes|=a),c=u),n.memoizedState={parent:r,cache:c},_c(n),Wn(n,Zt,c)):((t.lanes&a)!==0&&(zc(t,n),js(n,null,null,a),Os()),c=t.memoizedState,u=n.memoizedState,c.parent!==r?(c={parent:r,cache:r},n.memoizedState=c,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=c),Wn(n,Zt,r)):(r=u.cache,Wn(n,Zt,r),r!==c.cache&&Nc(n,[Zt],a,!0))),le(t,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(l(156,n.tag))}function zn(t){t.flags|=4}function pu(t,n,a,r,c){if((n=(t.mode&32)!==0)&&(n=!1),n){if(t.flags|=16777216,(c&335544128)===c)if(t.stateNode.complete)t.flags|=8192;else if(wg())t.flags|=8192;else throw Pi=Wr,Rc}else t.flags&=-16777217}function Zp(t,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!uy(n))if(wg())t.flags|=8192;else throw Pi=Wr,Rc}function gl(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?Nh():536870912,t.lanes|=n,Ra|=n)}function Vs(t,n){if(!Ct)switch(t.tailMode){case"hidden":n=t.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function Bt(t){var n=t.alternate!==null&&t.alternate.child===t.child,a=0,r=0;if(n)for(var c=t.child;c!==null;)a|=c.lanes|c.childLanes,r|=c.subtreeFlags&65011712,r|=c.flags&65011712,c.return=t,c=c.sibling;else for(c=t.child;c!==null;)a|=c.lanes|c.childLanes,r|=c.subtreeFlags,r|=c.flags,c.return=t,c=c.sibling;return t.subtreeFlags|=r,t.childLanes=a,n}function LS(t,n,a){var r=n.pendingProps;switch(Tc(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bt(n),null;case 1:return Bt(n),null;case 3:return a=n.stateNode,r=null,t!==null&&(r=t.memoizedState.cache),n.memoizedState.cache!==r&&(n.flags|=2048),jn(Zt),Rt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(xa(n)?zn(n):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Ac())),Bt(n),null;case 26:var c=n.type,u=n.memoizedState;return t===null?(zn(n),u!==null?(Bt(n),Zp(n,u)):(Bt(n),pu(n,c,null,r,a))):u?u!==t.memoizedState?(zn(n),Bt(n),Zp(n,u)):(Bt(n),n.flags&=-16777217):(t=t.memoizedProps,t!==r&&zn(n),Bt(n),pu(n,c,t,r,a)),null;case 27:if(un(n),a=gt.current,c=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==r&&zn(n);else{if(!r){if(n.stateNode===null)throw Error(l(166));return Bt(n),null}t=$.current,xa(n)?Nm(n):(t=ny(c,r,a),n.stateNode=t,zn(n))}return Bt(n),null;case 5:if(un(n),c=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==r&&zn(n);else{if(!r){if(n.stateNode===null)throw Error(l(166));return Bt(n),null}if(u=$.current,xa(n))Nm(n);else{var y=Dl(gt.current);switch(u){case 1:u=y.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:u=y.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":u=y.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":u=y.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":u=y.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof r.is=="string"?y.createElement("select",{is:r.is}):y.createElement("select"),r.multiple?u.multiple=!0:r.size&&(u.size=r.size);break;default:u=typeof r.is=="string"?y.createElement(c,{is:r.is}):y.createElement(c)}}u[ae]=n,u[ye]=r;t:for(y=n.child;y!==null;){if(y.tag===5||y.tag===6)u.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===n)break t;for(;y.sibling===null;){if(y.return===null||y.return===n)break t;y=y.return}y.sibling.return=y.return,y=y.sibling}n.stateNode=u;t:switch(oe(u,c,r),c){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break t;case"img":r=!0;break t;default:r=!1}r&&zn(n)}}return Bt(n),pu(n,n.type,t===null?null:t.memoizedProps,n.pendingProps,a),null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==r&&zn(n);else{if(typeof r!="string"&&n.stateNode===null)throw Error(l(166));if(t=gt.current,xa(n)){if(t=n.stateNode,a=n.memoizedProps,r=null,c=se,c!==null)switch(c.tag){case 27:case 5:r=c.memoizedProps}t[ae]=n,t=!!(t.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||Xg(t.nodeValue,a)),t||Jn(n,!0)}else t=Dl(t).createTextNode(r),t[ae]=n,n.stateNode=t}return Bt(n),null;case 31:if(a=n.memoizedState,t===null||t.memoizedState!==null){if(r=xa(n),a!==null){if(t===null){if(!r)throw Error(l(318));if(t=n.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(l(557));t[ae]=n}else Li(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Bt(n),t=!1}else a=Ac(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return n.flags&256?(Re(n),n):(Re(n),null);if((n.flags&128)!==0)throw Error(l(558))}return Bt(n),null;case 13:if(r=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(c=xa(n),r!==null&&r.dehydrated!==null){if(t===null){if(!c)throw Error(l(318));if(c=n.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(l(317));c[ae]=n}else Li(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Bt(n),c=!1}else c=Ac(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=c),c=!0;if(!c)return n.flags&256?(Re(n),n):(Re(n),null)}return Re(n),(n.flags&128)!==0?(n.lanes=a,n):(a=r!==null,t=t!==null&&t.memoizedState!==null,a&&(r=n.child,c=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(c=r.alternate.memoizedState.cachePool.pool),u=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==c&&(r.flags|=2048)),a!==t&&a&&(n.child.flags|=8192),gl(n,n.updateQueue),Bt(n),null);case 4:return Rt(),t===null&&Uu(n.stateNode.containerInfo),Bt(n),null;case 10:return jn(n.type),Bt(n),null;case 19:if(K(Kt),r=n.memoizedState,r===null)return Bt(n),null;if(c=(n.flags&128)!==0,u=r.rendering,u===null)if(c)Vs(r,!1);else{if(Gt!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(u=il(t),u!==null){for(n.flags|=128,Vs(r,!1),t=u.updateQueue,n.updateQueue=t,gl(n,t),n.subtreeFlags=0,t=a,a=n.child;a!==null;)Tm(a,t),a=a.sibling;return I(Kt,Kt.current&1|2),Ct&&Nn(n,r.treeForkCount),n.child}t=t.sibling}r.tail!==null&&Ce()>wl&&(n.flags|=128,c=!0,Vs(r,!1),n.lanes=4194304)}else{if(!c)if(t=il(u),t!==null){if(n.flags|=128,c=!0,t=t.updateQueue,n.updateQueue=t,gl(n,t),Vs(r,!0),r.tail===null&&r.tailMode==="hidden"&&!u.alternate&&!Ct)return Bt(n),null}else 2*Ce()-r.renderingStartTime>wl&&a!==536870912&&(n.flags|=128,c=!0,Vs(r,!1),n.lanes=4194304);r.isBackwards?(u.sibling=n.child,n.child=u):(t=r.last,t!==null?t.sibling=u:n.child=u,r.last=u)}return r.tail!==null?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=Ce(),t.sibling=null,a=Kt.current,I(Kt,c?a&1|2:a&1),Ct&&Nn(n,r.treeForkCount),t):(Bt(n),null);case 22:case 23:return Re(n),Bc(),r=n.memoizedState!==null,t!==null?t.memoizedState!==null!==r&&(n.flags|=8192):r&&(n.flags|=8192),r?(a&536870912)!==0&&(n.flags&128)===0&&(Bt(n),n.subtreeFlags&6&&(n.flags|=8192)):Bt(n),a=n.updateQueue,a!==null&&gl(n,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),r=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),r!==a&&(n.flags|=2048),t!==null&&K(Bi),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),jn(Zt),Bt(n),null;case 25:return null;case 30:return null}throw Error(l(156,n.tag))}function VS(t,n){switch(Tc(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return jn(Zt),Rt(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return un(n),null;case 31:if(n.memoizedState!==null){if(Re(n),n.alternate===null)throw Error(l(340));Li()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 13:if(Re(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(l(340));Li()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return K(Kt),null;case 4:return Rt(),null;case 10:return jn(n.type),null;case 22:case 23:return Re(n),Bc(),t!==null&&K(Bi),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 24:return jn(Zt),null;case 25:return null;default:return null}}function Ip(t,n){switch(Tc(n),n.tag){case 3:jn(Zt),Rt();break;case 26:case 27:case 5:un(n);break;case 4:Rt();break;case 31:n.memoizedState!==null&&Re(n);break;case 13:Re(n);break;case 19:K(Kt);break;case 10:jn(n.type);break;case 22:case 23:Re(n),Bc(),t!==null&&K(Bi);break;case 24:jn(Zt)}}function Us(t,n){try{var a=n.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var c=r.next;a=c;do{if((a.tag&t)===t){r=void 0;var u=a.create,y=a.inst;r=u(),y.destroy=r}a=a.next}while(a!==c)}}catch(b){Dt(n,n.return,b)}}function si(t,n,a){try{var r=n.updateQueue,c=r!==null?r.lastEffect:null;if(c!==null){var u=c.next;r=u;do{if((r.tag&t)===t){var y=r.inst,b=y.destroy;if(b!==void 0){y.destroy=void 0,c=n;var C=a,V=b;try{V()}catch(X){Dt(c,C,X)}}}r=r.next}while(r!==u)}}catch(X){Dt(n,n.return,X)}}function $p(t){var n=t.updateQueue;if(n!==null){var a=t.stateNode;try{Hm(n,a)}catch(r){Dt(t,t.return,r)}}}function Jp(t,n,a){a.props=Gi(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(r){Dt(t,n,r)}}function Bs(t,n){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var r=t.stateNode;break;case 30:r=t.stateNode;break;default:r=t.stateNode}typeof a=="function"?t.refCleanup=a(r):a.current=r}}catch(c){Dt(t,n,c)}}function mn(t,n){var a=t.ref,r=t.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(c){Dt(t,n,c)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(c){Dt(t,n,c)}else a.current=null}function Wp(t){var n=t.type,a=t.memoizedProps,r=t.stateNode;try{t:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&r.focus();break t;case"img":a.src?r.src=a.src:a.srcSet&&(r.srcset=a.srcSet)}}catch(c){Dt(t,t.return,c)}}function gu(t,n,a){try{var r=t.stateNode;aT(r,t.type,a,n),r[ye]=n}catch(c){Dt(t,t.return,c)}}function tg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&di(t.type)||t.tag===4}function yu(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||tg(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&di(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function vu(t,n,a){var r=t.tag;if(r===5||r===6)t=t.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(t),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=An));else if(r!==4&&(r===27&&di(t.type)&&(a=t.stateNode,n=null),t=t.child,t!==null))for(vu(t,n,a),t=t.sibling;t!==null;)vu(t,n,a),t=t.sibling}function yl(t,n,a){var r=t.tag;if(r===5||r===6)t=t.stateNode,n?a.insertBefore(t,n):a.appendChild(t);else if(r!==4&&(r===27&&di(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(yl(t,n,a),t=t.sibling;t!==null;)yl(t,n,a),t=t.sibling}function eg(t){var n=t.stateNode,a=t.memoizedProps;try{for(var r=t.type,c=n.attributes;c.length;)n.removeAttributeNode(c[0]);oe(n,r,a),n[ae]=t,n[ye]=a}catch(u){Dt(t,t.return,u)}}var Ln=!1,Jt=!1,xu=!1,ng=typeof WeakSet=="function"?WeakSet:Set,ie=null;function US(t,n){if(t=t.containerInfo,Pu=Bl,t=mm(t),dc(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var c=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break t}var y=0,b=-1,C=-1,V=0,X=0,Q=t,U=null;e:for(;;){for(var P;Q!==a||c!==0&&Q.nodeType!==3||(b=y+c),Q!==u||r!==0&&Q.nodeType!==3||(C=y+r),Q.nodeType===3&&(y+=Q.nodeValue.length),(P=Q.firstChild)!==null;)U=Q,Q=P;for(;;){if(Q===t)break e;if(U===a&&++V===c&&(b=y),U===u&&++X===r&&(C=y),(P=Q.nextSibling)!==null)break;Q=U,U=Q.parentNode}Q=P}a=b===-1||C===-1?null:{start:b,end:C}}else a=null}a=a||{start:0,end:0}}else a=null;for(Hu={focusedElem:t,selectionRange:a},Bl=!1,ie=n;ie!==null;)if(n=ie,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,ie=t;else for(;ie!==null;){switch(n=ie,u=n.alternate,t=n.flags,n.tag){case 0:if((t&4)!==0&&(t=n.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a<t.length;a++)c=t[a],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,a=n,c=u.memoizedProps,u=u.memoizedState,r=a.stateNode;try{var tt=Gi(a.type,c);t=r.getSnapshotBeforeUpdate(tt,u),r.__reactInternalSnapshotBeforeUpdate=t}catch(ot){Dt(a,a.return,ot)}}break;case 3:if((t&1024)!==0){if(t=n.stateNode.containerInfo,a=t.nodeType,a===9)Yu(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Yu(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(l(163))}if(t=n.sibling,t!==null){t.return=n.return,ie=t;break}ie=n.return}}function ig(t,n,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:Un(t,a),r&4&&Us(5,a);break;case 1:if(Un(t,a),r&4)if(t=a.stateNode,n===null)try{t.componentDidMount()}catch(y){Dt(a,a.return,y)}else{var c=Gi(a.type,n.memoizedProps);n=n.memoizedState;try{t.componentDidUpdate(c,n,t.__reactInternalSnapshotBeforeUpdate)}catch(y){Dt(a,a.return,y)}}r&64&&$p(a),r&512&&Bs(a,a.return);break;case 3:if(Un(t,a),r&64&&(t=a.updateQueue,t!==null)){if(n=null,a.child!==null)switch(a.child.tag){case 27:case 5:n=a.child.stateNode;break;case 1:n=a.child.stateNode}try{Hm(t,n)}catch(y){Dt(a,a.return,y)}}break;case 27:n===null&&r&4&&eg(a);case 26:case 5:Un(t,a),n===null&&r&4&&Wp(a),r&512&&Bs(a,a.return);break;case 12:Un(t,a);break;case 31:Un(t,a),r&4&&rg(t,a);break;case 13:Un(t,a),r&4&&lg(t,a),r&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=KS.bind(null,a),dT(t,a))));break;case 22:if(r=a.memoizedState!==null||Ln,!r){n=n!==null&&n.memoizedState!==null||Jt,c=Ln;var u=Jt;Ln=r,(Jt=n)&&!u?Bn(t,a,(a.subtreeFlags&8772)!==0):Un(t,a),Ln=c,Jt=u}break;case 30:break;default:Un(t,a)}}function ag(t){var n=t.alternate;n!==null&&(t.alternate=null,ag(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&Zo(n)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var kt=null,xe=!1;function Vn(t,n,a){for(a=a.child;a!==null;)sg(t,n,a),a=a.sibling}function sg(t,n,a){if(Me&&typeof Me.onCommitFiberUnmount=="function")try{Me.onCommitFiberUnmount(os,a)}catch{}switch(a.tag){case 26:Jt||mn(a,n),Vn(t,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Jt||mn(a,n);var r=kt,c=xe;di(a.type)&&(kt=a.stateNode,xe=!1),Vn(t,n,a),Fs(a.stateNode),kt=r,xe=c;break;case 5:Jt||mn(a,n);case 6:if(r=kt,c=xe,kt=null,Vn(t,n,a),kt=r,xe=c,kt!==null)if(xe)try{(kt.nodeType===9?kt.body:kt.nodeName==="HTML"?kt.ownerDocument.body:kt).removeChild(a.stateNode)}catch(u){Dt(a,n,u)}else try{kt.removeChild(a.stateNode)}catch(u){Dt(a,n,u)}break;case 18:kt!==null&&(xe?(t=kt,$g(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),Pa(t)):$g(kt,a.stateNode));break;case 4:r=kt,c=xe,kt=a.stateNode.containerInfo,xe=!0,Vn(t,n,a),kt=r,xe=c;break;case 0:case 11:case 14:case 15:si(2,a,n),Jt||si(4,a,n),Vn(t,n,a);break;case 1:Jt||(mn(a,n),r=a.stateNode,typeof r.componentWillUnmount=="function"&&Jp(a,n,r)),Vn(t,n,a);break;case 21:Vn(t,n,a);break;case 22:Jt=(r=Jt)||a.memoizedState!==null,Vn(t,n,a),Jt=r;break;default:Vn(t,n,a)}}function rg(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Pa(t)}catch(a){Dt(n,n.return,a)}}}function lg(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Pa(t)}catch(a){Dt(n,n.return,a)}}function BS(t){switch(t.tag){case 31:case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new ng),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new ng),n;default:throw Error(l(435,t.tag))}}function vl(t,n){var a=BS(t);n.forEach(function(r){if(!a.has(r)){a.add(r);var c=FS.bind(null,t,r);r.then(c,c)}})}function be(t,n){var a=n.deletions;if(a!==null)for(var r=0;r<a.length;r++){var c=a[r],u=t,y=n,b=y;t:for(;b!==null;){switch(b.tag){case 27:if(di(b.type)){kt=b.stateNode,xe=!1;break t}break;case 5:kt=b.stateNode,xe=!1;break t;case 3:case 4:kt=b.stateNode.containerInfo,xe=!0;break t}b=b.return}if(kt===null)throw Error(l(160));sg(u,y,c),kt=null,xe=!1,u=c.alternate,u!==null&&(u.return=null),c.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)og(n,t),n=n.sibling}var an=null;function og(t,n){var a=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:be(n,t),we(t),r&4&&(si(3,t,t.return),Us(3,t),si(5,t,t.return));break;case 1:be(n,t),we(t),r&512&&(Jt||a===null||mn(a,a.return)),r&64&&Ln&&(t=t.updateQueue,t!==null&&(r=t.callbacks,r!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?r:a.concat(r))));break;case 26:var c=an;if(be(n,t),we(t),r&512&&(Jt||a===null||mn(a,a.return)),r&4){var u=a!==null?a.memoizedState:null;if(r=t.memoizedState,a===null)if(r===null)if(t.stateNode===null){t:{r=t.type,a=t.memoizedProps,c=c.ownerDocument||c;e:switch(r){case"title":u=c.getElementsByTagName("title")[0],(!u||u[fs]||u[ae]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=c.createElement(r),c.head.insertBefore(u,c.querySelector("head > title"))),oe(u,r,a),u[ae]=t,ne(u),r=u;break t;case"link":var y=oy("link","href",c).get(r+(a.href||""));if(y){for(var b=0;b<y.length;b++)if(u=y[b],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){y.splice(b,1);break e}}u=c.createElement(r),oe(u,r,a),c.head.appendChild(u);break;case"meta":if(y=oy("meta","content",c).get(r+(a.content||""))){for(b=0;b<y.length;b++)if(u=y[b],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){y.splice(b,1);break e}}u=c.createElement(r),oe(u,r,a),c.head.appendChild(u);break;default:throw Error(l(468,r))}u[ae]=t,ne(u),r=u}t.stateNode=r}else cy(c,t.type,t.stateNode);else t.stateNode=ly(c,r,t.memoizedProps);else u!==r?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,r===null?cy(c,t.type,t.stateNode):ly(c,r,t.memoizedProps)):r===null&&t.stateNode!==null&&gu(t,t.memoizedProps,a.memoizedProps)}break;case 27:be(n,t),we(t),r&512&&(Jt||a===null||mn(a,a.return)),a!==null&&r&4&&gu(t,t.memoizedProps,a.memoizedProps);break;case 5:if(be(n,t),we(t),r&512&&(Jt||a===null||mn(a,a.return)),t.flags&32){c=t.stateNode;try{ca(c,"")}catch(tt){Dt(t,t.return,tt)}}r&4&&t.stateNode!=null&&(c=t.memoizedProps,gu(t,c,a!==null?a.memoizedProps:c)),r&1024&&(xu=!0);break;case 6:if(be(n,t),we(t),r&4){if(t.stateNode===null)throw Error(l(162));r=t.memoizedProps,a=t.stateNode;try{a.nodeValue=r}catch(tt){Dt(t,t.return,tt)}}break;case 3:if(zl=null,c=an,an=Rl(n.containerInfo),be(n,t),an=c,we(t),r&4&&a!==null&&a.memoizedState.isDehydrated)try{Pa(n.containerInfo)}catch(tt){Dt(t,t.return,tt)}xu&&(xu=!1,cg(t));break;case 4:r=an,an=Rl(t.stateNode.containerInfo),be(n,t),we(t),an=r;break;case 12:be(n,t),we(t);break;case 31:be(n,t),we(t),r&4&&(r=t.updateQueue,r!==null&&(t.updateQueue=null,vl(t,r)));break;case 13:be(n,t),we(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(bl=Ce()),r&4&&(r=t.updateQueue,r!==null&&(t.updateQueue=null,vl(t,r)));break;case 22:c=t.memoizedState!==null;var C=a!==null&&a.memoizedState!==null,V=Ln,X=Jt;if(Ln=V||c,Jt=X||C,be(n,t),Jt=X,Ln=V,we(t),r&8192)t:for(n=t.stateNode,n._visibility=c?n._visibility&-2:n._visibility|1,c&&(a===null||C||Ln||Jt||Yi(t)),a=null,n=t;;){if(n.tag===5||n.tag===26){if(a===null){C=a=n;try{if(u=C.stateNode,c)y=u.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{b=C.stateNode;var Q=C.memoizedProps.style,U=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;b.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(tt){Dt(C,C.return,tt)}}}else if(n.tag===6){if(a===null){C=n;try{C.stateNode.nodeValue=c?"":C.memoizedProps}catch(tt){Dt(C,C.return,tt)}}}else if(n.tag===18){if(a===null){C=n;try{var P=C.stateNode;c?Jg(P,!0):Jg(C.stateNode,!1)}catch(tt){Dt(C,C.return,tt)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break t;for(;n.sibling===null;){if(n.return===null||n.return===t)break t;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}r&4&&(r=t.updateQueue,r!==null&&(a=r.retryQueue,a!==null&&(r.retryQueue=null,vl(t,a))));break;case 19:be(n,t),we(t),r&4&&(r=t.updateQueue,r!==null&&(t.updateQueue=null,vl(t,r)));break;case 30:break;case 21:break;default:be(n,t),we(t)}}function we(t){var n=t.flags;if(n&2){try{for(var a,r=t.return;r!==null;){if(tg(r)){a=r;break}r=r.return}if(a==null)throw Error(l(160));switch(a.tag){case 27:var c=a.stateNode,u=yu(t);yl(t,u,c);break;case 5:var y=a.stateNode;a.flags&32&&(ca(y,""),a.flags&=-33);var b=yu(t);yl(t,b,y);break;case 3:case 4:var C=a.stateNode.containerInfo,V=yu(t);vu(t,V,C);break;default:throw Error(l(161))}}catch(X){Dt(t,t.return,X)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function cg(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;cg(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),t=t.sibling}}function Un(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)ig(t,n.alternate,n),n=n.sibling}function Yi(t){for(t=t.child;t!==null;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:si(4,n,n.return),Yi(n);break;case 1:mn(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&Jp(n,n.return,a),Yi(n);break;case 27:Fs(n.stateNode);case 26:case 5:mn(n,n.return),Yi(n);break;case 22:n.memoizedState===null&&Yi(n);break;case 30:Yi(n);break;default:Yi(n)}t=t.sibling}}function Bn(t,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var r=n.alternate,c=t,u=n,y=u.flags;switch(u.tag){case 0:case 11:case 15:Bn(c,u,a),Us(4,u);break;case 1:if(Bn(c,u,a),r=u,c=r.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(V){Dt(r,r.return,V)}if(r=u,c=r.updateQueue,c!==null){var b=r.stateNode;try{var C=c.shared.hiddenCallbacks;if(C!==null)for(c.shared.hiddenCallbacks=null,c=0;c<C.length;c++)Pm(C[c],b)}catch(V){Dt(r,r.return,V)}}a&&y&64&&$p(u),Bs(u,u.return);break;case 27:eg(u);case 26:case 5:Bn(c,u,a),a&&r===null&&y&4&&Wp(u),Bs(u,u.return);break;case 12:Bn(c,u,a);break;case 31:Bn(c,u,a),a&&y&4&&rg(c,u);break;case 13:Bn(c,u,a),a&&y&4&&lg(c,u);break;case 22:u.memoizedState===null&&Bn(c,u,a),Bs(u,u.return);break;case 30:break;default:Bn(c,u,a)}n=n.sibling}}function bu(t,n){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(t=n.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&Es(a))}function wu(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&Es(t))}function sn(t,n,a,r){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)ug(t,n,a,r),n=n.sibling}function ug(t,n,a,r){var c=n.flags;switch(n.tag){case 0:case 11:case 15:sn(t,n,a,r),c&2048&&Us(9,n);break;case 1:sn(t,n,a,r);break;case 3:sn(t,n,a,r),c&2048&&(t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&Es(t)));break;case 12:if(c&2048){sn(t,n,a,r),t=n.stateNode;try{var u=n.memoizedProps,y=u.id,b=u.onPostCommit;typeof b=="function"&&b(y,n.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(C){Dt(n,n.return,C)}}else sn(t,n,a,r);break;case 31:sn(t,n,a,r);break;case 13:sn(t,n,a,r);break;case 23:break;case 22:u=n.stateNode,y=n.alternate,n.memoizedState!==null?u._visibility&2?sn(t,n,a,r):ks(t,n):u._visibility&2?sn(t,n,a,r):(u._visibility|=2,Oa(t,n,a,r,(n.subtreeFlags&10256)!==0||!1)),c&2048&&bu(y,n);break;case 24:sn(t,n,a,r),c&2048&&wu(n.alternate,n);break;default:sn(t,n,a,r)}}function Oa(t,n,a,r,c){for(c=c&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var u=t,y=n,b=a,C=r,V=y.flags;switch(y.tag){case 0:case 11:case 15:Oa(u,y,b,C,c),Us(8,y);break;case 23:break;case 22:var X=y.stateNode;y.memoizedState!==null?X._visibility&2?Oa(u,y,b,C,c):ks(u,y):(X._visibility|=2,Oa(u,y,b,C,c)),c&&V&2048&&bu(y.alternate,y);break;case 24:Oa(u,y,b,C,c),c&&V&2048&&wu(y.alternate,y);break;default:Oa(u,y,b,C,c)}n=n.sibling}}function ks(t,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=t,r=n,c=r.flags;switch(r.tag){case 22:ks(a,r),c&2048&&bu(r.alternate,r);break;case 24:ks(a,r),c&2048&&wu(r.alternate,r);break;default:ks(a,r)}n=n.sibling}}var Ps=8192;function ja(t,n,a){if(t.subtreeFlags&Ps)for(t=t.child;t!==null;)fg(t,n,a),t=t.sibling}function fg(t,n,a){switch(t.tag){case 26:ja(t,n,a),t.flags&Ps&&t.memoizedState!==null&&ET(a,an,t.memoizedState,t.memoizedProps);break;case 5:ja(t,n,a);break;case 3:case 4:var r=an;an=Rl(t.stateNode.containerInfo),ja(t,n,a),an=r;break;case 22:t.memoizedState===null&&(r=t.alternate,r!==null&&r.memoizedState!==null?(r=Ps,Ps=16777216,ja(t,n,a),Ps=r):ja(t,n,a));break;default:ja(t,n,a)}}function dg(t){var n=t.alternate;if(n!==null&&(t=n.child,t!==null)){n.child=null;do n=t.sibling,t.sibling=null,t=n;while(t!==null)}}function Hs(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var r=n[a];ie=r,mg(r,t)}dg(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)hg(t),t=t.sibling}function hg(t){switch(t.tag){case 0:case 11:case 15:Hs(t),t.flags&2048&&si(9,t,t.return);break;case 3:Hs(t);break;case 12:Hs(t);break;case 22:var n=t.stateNode;t.memoizedState!==null&&n._visibility&2&&(t.return===null||t.return.tag!==13)?(n._visibility&=-3,xl(t)):Hs(t);break;default:Hs(t)}}function xl(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var r=n[a];ie=r,mg(r,t)}dg(t)}for(t=t.child;t!==null;){switch(n=t,n.tag){case 0:case 11:case 15:si(8,n,n.return),xl(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,xl(n));break;default:xl(n)}t=t.sibling}}function mg(t,n){for(;ie!==null;){var a=ie;switch(a.tag){case 0:case 11:case 15:si(8,a,n);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var r=a.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Es(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,ie=r;else t:for(a=t;ie!==null;){r=ie;var c=r.sibling,u=r.return;if(ag(r),r===a){ie=null;break t}if(c!==null){c.return=u,ie=c;break t}ie=u}}}var kS={getCacheForType:function(t){var n=re(Zt),a=n.data.get(t);return a===void 0&&(a=t(),n.data.set(t,a)),a},cacheSignal:function(){return re(Zt).controller.signal}},PS=typeof WeakMap=="function"?WeakMap:Map,Ot=0,Vt=null,wt=null,Tt=0,jt=0,_e=null,ri=!1,Da=!1,Su=!1,kn=0,Gt=0,li=0,Xi=0,Tu=0,ze=0,Ra=0,qs=null,Se=null,Eu=!1,bl=0,pg=0,wl=1/0,Sl=null,oi=null,te=0,ci=null,_a=null,Pn=0,Au=0,Cu=null,gg=null,Gs=0,Mu=null;function Le(){return(Ot&2)!==0&&Tt!==0?Tt&-Tt:_.T!==null?_u():Rh()}function yg(){if(ze===0)if((Tt&536870912)===0||Ct){var t=jr;jr<<=1,(jr&3932160)===0&&(jr=262144),ze=t}else ze=536870912;return t=De.current,t!==null&&(t.flags|=32),ze}function Te(t,n,a){(t===Vt&&(jt===2||jt===9)||t.cancelPendingCommit!==null)&&(za(t,0),ui(t,Tt,ze,!1)),us(t,a),((Ot&2)===0||t!==Vt)&&(t===Vt&&((Ot&2)===0&&(Xi|=a),Gt===4&&ui(t,Tt,ze,!1)),pn(t))}function vg(t,n,a){if((Ot&6)!==0)throw Error(l(327));var r=!a&&(n&127)===0&&(n&t.expiredLanes)===0||cs(t,n),c=r?GS(t,n):Ou(t,n,!0),u=r;do{if(c===0){Da&&!r&&ui(t,n,0,!1);break}else{if(a=t.current.alternate,u&&!HS(a)){c=Ou(t,n,!1),u=!1;continue}if(c===2){if(u=n,t.errorRecoveryDisabledLanes&u)var y=0;else y=t.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){n=y;t:{var b=t;c=qs;var C=b.current.memoizedState.isDehydrated;if(C&&(za(b,y).flags|=256),y=Ou(b,y,!1),y!==2){if(Su&&!C){b.errorRecoveryDisabledLanes|=u,Xi|=u,c=4;break t}u=Se,Se=c,u!==null&&(Se===null?Se=u:Se.push.apply(Se,u))}c=y}if(u=!1,c!==2)continue}}if(c===1){za(t,0),ui(t,n,0,!0);break}t:{switch(r=t,u=c,u){case 0:case 1:throw Error(l(345));case 4:if((n&4194048)!==n)break;case 6:ui(r,n,ze,!ri);break t;case 2:Se=null;break;case 3:case 5:break;default:throw Error(l(329))}if((n&62914560)===n&&(c=bl+300-Ce(),10<c)){if(ui(r,n,ze,!ri),Rr(r,0,!0)!==0)break t;Pn=n,r.timeoutHandle=Zg(xg.bind(null,r,a,Se,Sl,Eu,n,ze,Xi,Ra,ri,u,"Throttled",-0,0),c);break t}xg(r,a,Se,Sl,Eu,n,ze,Xi,Ra,ri,u,null,-0,0)}}break}while(!0);pn(t)}function xg(t,n,a,r,c,u,y,b,C,V,X,Q,U,P){if(t.timeoutHandle=-1,Q=n.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:An},fg(n,u,Q);var tt=(u&62914560)===u?bl-Ce():(u&4194048)===u?pg-Ce():0;if(tt=AT(Q,tt),tt!==null){Pn=u,t.cancelPendingCommit=tt(Mg.bind(null,t,n,u,a,r,c,y,b,C,X,Q,null,U,P)),ui(t,u,y,!V);return}}Mg(t,n,u,a,r,c,y,b,C)}function HS(t){for(var n=t;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var r=0;r<a.length;r++){var c=a[r],u=c.getSnapshot;c=c.value;try{if(!Oe(u(),c))return!1}catch{return!1}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function ui(t,n,a,r){n&=~Tu,n&=~Xi,t.suspendedLanes|=n,t.pingedLanes&=~n,r&&(t.warmLanes|=n),r=t.expirationTimes;for(var c=n;0<c;){var u=31-Ne(c),y=1<<u;r[u]=-1,c&=~y}a!==0&&Oh(t,a,n)}function Tl(){return(Ot&6)===0?(Ys(0),!1):!0}function Nu(){if(wt!==null){if(jt===0)var t=wt.return;else t=wt,On=Vi=null,Yc(t),Ea=null,Cs=0,t=wt;for(;t!==null;)Ip(t.alternate,t),t=t.return;wt=null}}function za(t,n){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,lT(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),Pn=0,Nu(),Vt=t,wt=a=Mn(t.current,null),Tt=n,jt=0,_e=null,ri=!1,Da=cs(t,n),Su=!1,Ra=ze=Tu=Xi=li=Gt=0,Se=qs=null,Eu=!1,(n&8)!==0&&(n|=n&32);var r=t.entangledLanes;if(r!==0)for(t=t.entanglements,r&=n;0<r;){var c=31-Ne(r),u=1<<c;n|=t[c],r&=~u}return kn=n,Yr(),a}function bg(t,n){yt=null,_.H=zs,n===Ta||n===Jr?(n=Vm(),jt=3):n===Rc?(n=Vm(),jt=4):jt=n===ru?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,_e=n,wt===null&&(Gt=1,dl(t,Ye(n,t.current)))}function wg(){var t=De.current;return t===null?!0:(Tt&4194048)===Tt?Qe===null:(Tt&62914560)===Tt||(Tt&536870912)!==0?t===Qe:!1}function Sg(){var t=_.H;return _.H=zs,t===null?zs:t}function Tg(){var t=_.A;return _.A=kS,t}function El(){Gt=4,ri||(Tt&4194048)!==Tt&&De.current!==null||(Da=!0),(li&134217727)===0&&(Xi&134217727)===0||Vt===null||ui(Vt,Tt,ze,!1)}function Ou(t,n,a){var r=Ot;Ot|=2;var c=Sg(),u=Tg();(Vt!==t||Tt!==n)&&(Sl=null,za(t,n)),n=!1;var y=Gt;t:do try{if(jt!==0&&wt!==null){var b=wt,C=_e;switch(jt){case 8:Nu(),y=6;break t;case 3:case 2:case 9:case 6:De.current===null&&(n=!0);var V=jt;if(jt=0,_e=null,La(t,b,C,V),a&&Da){y=0;break t}break;default:V=jt,jt=0,_e=null,La(t,b,C,V)}}qS(),y=Gt;break}catch(X){bg(t,X)}while(!0);return n&&t.shellSuspendCounter++,On=Vi=null,Ot=r,_.H=c,_.A=u,wt===null&&(Vt=null,Tt=0,Yr()),y}function qS(){for(;wt!==null;)Eg(wt)}function GS(t,n){var a=Ot;Ot|=2;var r=Sg(),c=Tg();Vt!==t||Tt!==n?(Sl=null,wl=Ce()+500,za(t,n)):Da=cs(t,n);t:do try{if(jt!==0&&wt!==null){n=wt;var u=_e;e:switch(jt){case 1:jt=0,_e=null,La(t,n,u,1);break;case 2:case 9:if(zm(u)){jt=0,_e=null,Ag(n);break}n=function(){jt!==2&&jt!==9||Vt!==t||(jt=7),pn(t)},u.then(n,n);break t;case 3:jt=7;break t;case 4:jt=5;break t;case 7:zm(u)?(jt=0,_e=null,Ag(n)):(jt=0,_e=null,La(t,n,u,7));break;case 5:var y=null;switch(wt.tag){case 26:y=wt.memoizedState;case 5:case 27:var b=wt;if(y?uy(y):b.stateNode.complete){jt=0,_e=null;var C=b.sibling;if(C!==null)wt=C;else{var V=b.return;V!==null?(wt=V,Al(V)):wt=null}break e}}jt=0,_e=null,La(t,n,u,5);break;case 6:jt=0,_e=null,La(t,n,u,6);break;case 8:Nu(),Gt=6;break t;default:throw Error(l(462))}}YS();break}catch(X){bg(t,X)}while(!0);return On=Vi=null,_.H=r,_.A=c,Ot=a,wt!==null?0:(Vt=null,Tt=0,Yr(),Gt)}function YS(){for(;wt!==null&&!hw();)Eg(wt)}function Eg(t){var n=Qp(t.alternate,t,kn);t.memoizedProps=t.pendingProps,n===null?Al(t):wt=n}function Ag(t){var n=t,a=n.alternate;switch(n.tag){case 15:case 0:n=qp(a,n,n.pendingProps,n.type,void 0,Tt);break;case 11:n=qp(a,n,n.pendingProps,n.type.render,n.ref,Tt);break;case 5:Yc(n);default:Ip(a,n),n=wt=Tm(n,kn),n=Qp(a,n,kn)}t.memoizedProps=t.pendingProps,n===null?Al(t):wt=n}function La(t,n,a,r){On=Vi=null,Yc(n),Ea=null,Cs=0;var c=n.return;try{if(RS(t,c,n,a,Tt)){Gt=1,dl(t,Ye(a,t.current)),wt=null;return}}catch(u){if(c!==null)throw wt=c,u;Gt=1,dl(t,Ye(a,t.current)),wt=null;return}n.flags&32768?(Ct||r===1?t=!0:Da||(Tt&536870912)!==0?t=!1:(ri=t=!0,(r===2||r===9||r===3||r===6)&&(r=De.current,r!==null&&r.tag===13&&(r.flags|=16384))),Cg(n,t)):Al(n)}function Al(t){var n=t;do{if((n.flags&32768)!==0){Cg(n,ri);return}t=n.return;var a=LS(n.alternate,n,kn);if(a!==null){wt=a;return}if(n=n.sibling,n!==null){wt=n;return}wt=n=t}while(n!==null);Gt===0&&(Gt=5)}function Cg(t,n){do{var a=VS(t.alternate,t);if(a!==null){a.flags&=32767,wt=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(t=t.sibling,t!==null)){wt=t;return}wt=t=a}while(t!==null);Gt=6,wt=null}function Mg(t,n,a,r,c,u,y,b,C){t.cancelPendingCommit=null;do Cl();while(te!==0);if((Ot&6)!==0)throw Error(l(327));if(n!==null){if(n===t.current)throw Error(l(177));if(u=n.lanes|n.childLanes,u|=yc,Tw(t,a,u,y,b,C),t===Vt&&(wt=Vt=null,Tt=0),_a=n,ci=t,Pn=a,Au=u,Cu=c,gg=r,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,QS(Nr,function(){return Rg(),null})):(t.callbackNode=null,t.callbackPriority=0),r=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||r){r=_.T,_.T=null,c=Y.p,Y.p=2,y=Ot,Ot|=4;try{US(t,n,a)}finally{Ot=y,Y.p=c,_.T=r}}te=1,Ng(),Og(),jg()}}function Ng(){if(te===1){te=0;var t=ci,n=_a,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=_.T,_.T=null;var r=Y.p;Y.p=2;var c=Ot;Ot|=4;try{og(n,t);var u=Hu,y=mm(t.containerInfo),b=u.focusedElem,C=u.selectionRange;if(y!==b&&b&&b.ownerDocument&&hm(b.ownerDocument.documentElement,b)){if(C!==null&&dc(b)){var V=C.start,X=C.end;if(X===void 0&&(X=V),"selectionStart"in b)b.selectionStart=V,b.selectionEnd=Math.min(X,b.value.length);else{var Q=b.ownerDocument||document,U=Q&&Q.defaultView||window;if(U.getSelection){var P=U.getSelection(),tt=b.textContent.length,ot=Math.min(C.start,tt),Lt=C.end===void 0?ot:Math.min(C.end,tt);!P.extend&&ot>Lt&&(y=Lt,Lt=ot,ot=y);var j=dm(b,ot),O=dm(b,Lt);if(j&&O&&(P.rangeCount!==1||P.anchorNode!==j.node||P.anchorOffset!==j.offset||P.focusNode!==O.node||P.focusOffset!==O.offset)){var L=Q.createRange();L.setStart(j.node,j.offset),P.removeAllRanges(),ot>Lt?(P.addRange(L),P.extend(O.node,O.offset)):(L.setEnd(O.node,O.offset),P.addRange(L))}}}}for(Q=[],P=b;P=P.parentNode;)P.nodeType===1&&Q.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<Q.length;b++){var F=Q[b];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}Bl=!!Pu,Hu=Pu=null}finally{Ot=c,Y.p=r,_.T=a}}t.current=n,te=2}}function Og(){if(te===2){te=0;var t=ci,n=_a,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=_.T,_.T=null;var r=Y.p;Y.p=2;var c=Ot;Ot|=4;try{ig(t,n.alternate,n)}finally{Ot=c,Y.p=r,_.T=a}}te=3}}function jg(){if(te===4||te===3){te=0,mw();var t=ci,n=_a,a=Pn,r=gg;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?te=5:(te=0,_a=ci=null,Dg(t,t.pendingLanes));var c=t.pendingLanes;if(c===0&&(oi=null),Fo(a),n=n.stateNode,Me&&typeof Me.onCommitFiberRoot=="function")try{Me.onCommitFiberRoot(os,n,void 0,(n.current.flags&128)===128)}catch{}if(r!==null){n=_.T,c=Y.p,Y.p=2,_.T=null;try{for(var u=t.onRecoverableError,y=0;y<r.length;y++){var b=r[y];u(b.value,{componentStack:b.stack})}}finally{_.T=n,Y.p=c}}(Pn&3)!==0&&Cl(),pn(t),c=t.pendingLanes,(a&261930)!==0&&(c&42)!==0?t===Mu?Gs++:(Gs=0,Mu=t):Gs=0,Ys(0)}}function Dg(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,Es(n)))}function Cl(){return Ng(),Og(),jg(),Rg()}function Rg(){if(te!==5)return!1;var t=ci,n=Au;Au=0;var a=Fo(Pn),r=_.T,c=Y.p;try{Y.p=32>a?32:a,_.T=null,a=Cu,Cu=null;var u=ci,y=Pn;if(te=0,_a=ci=null,Pn=0,(Ot&6)!==0)throw Error(l(331));var b=Ot;if(Ot|=4,hg(u.current),ug(u,u.current,y,a),Ot=b,Ys(0,!1),Me&&typeof Me.onPostCommitFiberRoot=="function")try{Me.onPostCommitFiberRoot(os,u)}catch{}return!0}finally{Y.p=c,_.T=r,Dg(t,n)}}function _g(t,n,a){n=Ye(a,n),n=su(t.stateNode,n,2),t=ni(t,n,2),t!==null&&(us(t,2),pn(t))}function Dt(t,n,a){if(t.tag===3)_g(t,t,a);else for(;n!==null;){if(n.tag===3){_g(n,t,a);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(oi===null||!oi.has(r))){t=Ye(a,t),a=zp(2),r=ni(n,a,2),r!==null&&(Lp(a,r,n,t),us(r,2),pn(r));break}}n=n.return}}function ju(t,n,a){var r=t.pingCache;if(r===null){r=t.pingCache=new PS;var c=new Set;r.set(n,c)}else c=r.get(n),c===void 0&&(c=new Set,r.set(n,c));c.has(a)||(Su=!0,c.add(a),t=XS.bind(null,t,n,a),n.then(t,t))}function XS(t,n,a){var r=t.pingCache;r!==null&&r.delete(n),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,Vt===t&&(Tt&a)===a&&(Gt===4||Gt===3&&(Tt&62914560)===Tt&&300>Ce()-bl?(Ot&2)===0&&za(t,0):Tu|=a,Ra===Tt&&(Ra=0)),pn(t)}function zg(t,n){n===0&&(n=Nh()),t=_i(t,n),t!==null&&(us(t,n),pn(t))}function KS(t){var n=t.memoizedState,a=0;n!==null&&(a=n.retryLane),zg(t,a)}function FS(t,n){var a=0;switch(t.tag){case 31:case 13:var r=t.stateNode,c=t.memoizedState;c!==null&&(a=c.retryLane);break;case 19:r=t.stateNode;break;case 22:r=t.stateNode._retryCache;break;default:throw Error(l(314))}r!==null&&r.delete(n),zg(t,a)}function QS(t,n){return Go(t,n)}var Ml=null,Va=null,Du=!1,Nl=!1,Ru=!1,fi=0;function pn(t){t!==Va&&t.next===null&&(Va===null?Ml=Va=t:Va=Va.next=t),Nl=!0,Du||(Du=!0,IS())}function Ys(t,n){if(!Ru&&Nl){Ru=!0;do for(var a=!1,r=Ml;r!==null;){if(t!==0){var c=r.pendingLanes;if(c===0)var u=0;else{var y=r.suspendedLanes,b=r.pingedLanes;u=(1<<31-Ne(42|t)+1)-1,u&=c&~(y&~b),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,Bg(r,u))}else u=Tt,u=Rr(r,r===Vt?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(u&3)===0||cs(r,u)||(a=!0,Bg(r,u));r=r.next}while(a);Ru=!1}}function ZS(){Lg()}function Lg(){Nl=Du=!1;var t=0;fi!==0&&rT()&&(t=fi);for(var n=Ce(),a=null,r=Ml;r!==null;){var c=r.next,u=Vg(r,n);u===0?(r.next=null,a===null?Ml=c:a.next=c,c===null&&(Va=a)):(a=r,(t!==0||(u&3)!==0)&&(Nl=!0)),r=c}te!==0&&te!==5||Ys(t),fi!==0&&(fi=0)}function Vg(t,n){for(var a=t.suspendedLanes,r=t.pingedLanes,c=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var y=31-Ne(u),b=1<<y,C=c[y];C===-1?((b&a)===0||(b&r)!==0)&&(c[y]=Sw(b,n)):C<=n&&(t.expiredLanes|=b),u&=~b}if(n=Vt,a=Tt,a=Rr(t,t===n?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),r=t.callbackNode,a===0||t===n&&(jt===2||jt===9)||t.cancelPendingCommit!==null)return r!==null&&r!==null&&Yo(r),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||cs(t,a)){if(n=a&-a,n===t.callbackPriority)return n;switch(r!==null&&Yo(r),Fo(a)){case 2:case 8:a=Ch;break;case 32:a=Nr;break;case 268435456:a=Mh;break;default:a=Nr}return r=Ug.bind(null,t),a=Go(a,r),t.callbackPriority=n,t.callbackNode=a,n}return r!==null&&r!==null&&Yo(r),t.callbackPriority=2,t.callbackNode=null,2}function Ug(t,n){if(te!==0&&te!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Cl()&&t.callbackNode!==a)return null;var r=Tt;return r=Rr(t,t===Vt?r:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),r===0?null:(vg(t,r,n),Vg(t,Ce()),t.callbackNode!=null&&t.callbackNode===a?Ug.bind(null,t):null)}function Bg(t,n){if(Cl())return null;vg(t,n,!0)}function IS(){oT(function(){(Ot&6)!==0?Go(Ah,ZS):Lg()})}function _u(){if(fi===0){var t=wa;t===0&&(t=Or,Or<<=1,(Or&261888)===0&&(Or=256)),fi=t}return fi}function kg(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Vr(""+t)}function Pg(t,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,t.id&&a.setAttribute("form",t.id),n.parentNode.insertBefore(a,n),t=new FormData(t),a.parentNode.removeChild(a),t}function $S(t,n,a,r,c){if(n==="submit"&&a&&a.stateNode===c){var u=kg((c[ye]||null).action),y=r.submitter;y&&(n=(n=y[ye]||null)?kg(n.formAction):y.getAttribute("formAction"),n!==null&&(u=n,y=null));var b=new Pr("action","action",null,r,c);t.push({event:b,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(fi!==0){var C=y?Pg(c,y):new FormData(c);Wc(a,{pending:!0,data:C,method:c.method,action:u},null,C)}}else typeof u=="function"&&(b.preventDefault(),C=y?Pg(c,y):new FormData(c),Wc(a,{pending:!0,data:C,method:c.method,action:u},u,C))},currentTarget:c}]})}}for(var zu=0;zu<gc.length;zu++){var Lu=gc[zu],JS=Lu.toLowerCase(),WS=Lu[0].toUpperCase()+Lu.slice(1);nn(JS,"on"+WS)}nn(ym,"onAnimationEnd"),nn(vm,"onAnimationIteration"),nn(xm,"onAnimationStart"),nn("dblclick","onDoubleClick"),nn("focusin","onFocus"),nn("focusout","onBlur"),nn(pS,"onTransitionRun"),nn(gS,"onTransitionStart"),nn(yS,"onTransitionCancel"),nn(bm,"onTransitionEnd"),la("onMouseEnter",["mouseout","mouseover"]),la("onMouseLeave",["mouseout","mouseover"]),la("onPointerEnter",["pointerout","pointerover"]),la("onPointerLeave",["pointerout","pointerover"]),Oi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Oi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Oi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Oi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Oi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Oi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xs="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(" "),tT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xs));function Hg(t,n){n=(n&4)!==0;for(var a=0;a<t.length;a++){var r=t[a],c=r.event;r=r.listeners;t:{var u=void 0;if(n)for(var y=r.length-1;0<=y;y--){var b=r[y],C=b.instance,V=b.currentTarget;if(b=b.listener,C!==u&&c.isPropagationStopped())break t;u=b,c.currentTarget=V;try{u(c)}catch(X){Gr(X)}c.currentTarget=null,u=C}else for(y=0;y<r.length;y++){if(b=r[y],C=b.instance,V=b.currentTarget,b=b.listener,C!==u&&c.isPropagationStopped())break t;u=b,c.currentTarget=V;try{u(c)}catch(X){Gr(X)}c.currentTarget=null,u=C}}}}function St(t,n){var a=n[Qo];a===void 0&&(a=n[Qo]=new Set);var r=t+"__bubble";a.has(r)||(qg(n,t,2,!1),a.add(r))}function Vu(t,n,a){var r=0;n&&(r|=4),qg(a,t,r,n)}var Ol="_reactListening"+Math.random().toString(36).slice(2);function Uu(t){if(!t[Ol]){t[Ol]=!0,Lh.forEach(function(a){a!=="selectionchange"&&(tT.has(a)||Vu(a,!1,t),Vu(a,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[Ol]||(n[Ol]=!0,Vu("selectionchange",!1,n))}}function qg(t,n,a,r){switch(yy(n)){case 2:var c=NT;break;case 8:c=OT;break;default:c=Ju}a=c.bind(null,n,a,t),c=void 0,!ic||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(c=!0),r?c!==void 0?t.addEventListener(n,a,{capture:!0,passive:c}):t.addEventListener(n,a,!0):c!==void 0?t.addEventListener(n,a,{passive:c}):t.addEventListener(n,a,!1)}function Bu(t,n,a,r,c){var u=r;if((n&1)===0&&(n&2)===0&&r!==null)t:for(;;){if(r===null)return;var y=r.tag;if(y===3||y===4){var b=r.stateNode.containerInfo;if(b===c)break;if(y===4)for(y=r.return;y!==null;){var C=y.tag;if((C===3||C===4)&&y.stateNode.containerInfo===c)return;y=y.return}for(;b!==null;){if(y=aa(b),y===null)return;if(C=y.tag,C===5||C===6||C===26||C===27){r=u=y;continue t}b=b.parentNode}}r=r.return}Fh(function(){var V=u,X=ec(a),Q=[];t:{var U=wm.get(t);if(U!==void 0){var P=Pr,tt=t;switch(t){case"keypress":if(Br(a)===0)break t;case"keydown":case"keyup":P=Fw;break;case"focusin":tt="focus",P=lc;break;case"focusout":tt="blur",P=lc;break;case"beforeblur":case"afterblur":P=lc;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":P=Ih;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=Lw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=Iw;break;case ym:case vm:case xm:P=Bw;break;case bm:P=Jw;break;case"scroll":case"scrollend":P=_w;break;case"wheel":P=tS;break;case"copy":case"cut":case"paste":P=Pw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=Jh;break;case"toggle":case"beforetoggle":P=nS}var ot=(n&4)!==0,Lt=!ot&&(t==="scroll"||t==="scrollend"),j=ot?U!==null?U+"Capture":null:U;ot=[];for(var O=V,L;O!==null;){var F=O;if(L=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||L===null||j===null||(F=hs(O,j),F!=null&&ot.push(Ks(O,F,L))),Lt)break;O=O.return}0<ot.length&&(U=new P(U,tt,null,a,X),Q.push({event:U,listeners:ot}))}}if((n&7)===0){t:{if(U=t==="mouseover"||t==="pointerover",P=t==="mouseout"||t==="pointerout",U&&a!==tc&&(tt=a.relatedTarget||a.fromElement)&&(aa(tt)||tt[ia]))break t;if((P||U)&&(U=X.window===X?X:(U=X.ownerDocument)?U.defaultView||U.parentWindow:window,P?(tt=a.relatedTarget||a.toElement,P=V,tt=tt?aa(tt):null,tt!==null&&(Lt=f(tt),ot=tt.tag,tt!==Lt||ot!==5&&ot!==27&&ot!==6)&&(tt=null)):(P=null,tt=V),P!==tt)){if(ot=Ih,F="onMouseLeave",j="onMouseEnter",O="mouse",(t==="pointerout"||t==="pointerover")&&(ot=Jh,F="onPointerLeave",j="onPointerEnter",O="pointer"),Lt=P==null?U:ds(P),L=tt==null?U:ds(tt),U=new ot(F,O+"leave",P,a,X),U.target=Lt,U.relatedTarget=L,F=null,aa(X)===V&&(ot=new ot(j,O+"enter",tt,a,X),ot.target=L,ot.relatedTarget=Lt,F=ot),Lt=F,P&&tt)e:{for(ot=eT,j=P,O=tt,L=0,F=j;F;F=ot(F))L++;F=0;for(var lt=O;lt;lt=ot(lt))F++;for(;0<L-F;)j=ot(j),L--;for(;0<F-L;)O=ot(O),F--;for(;L--;){if(j===O||O!==null&&j===O.alternate){ot=j;break e}j=ot(j),O=ot(O)}ot=null}else ot=null;P!==null&&Gg(Q,U,P,ot,!1),tt!==null&&Lt!==null&&Gg(Q,Lt,tt,ot,!0)}}t:{if(U=V?ds(V):window,P=U.nodeName&&U.nodeName.toLowerCase(),P==="select"||P==="input"&&U.type==="file")var Mt=rm;else if(am(U))if(lm)Mt=dS;else{Mt=uS;var at=cS}else P=U.nodeName,!P||P.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?V&&Wo(V.elementType)&&(Mt=rm):Mt=fS;if(Mt&&(Mt=Mt(t,V))){sm(Q,Mt,a,X);break t}at&&at(t,U,V),t==="focusout"&&V&&U.type==="number"&&V.memoizedProps.value!=null&&Jo(U,"number",U.value)}switch(at=V?ds(V):window,t){case"focusin":(am(at)||at.contentEditable==="true")&&(ha=at,hc=V,ws=null);break;case"focusout":ws=hc=ha=null;break;case"mousedown":mc=!0;break;case"contextmenu":case"mouseup":case"dragend":mc=!1,pm(Q,a,X);break;case"selectionchange":if(mS)break;case"keydown":case"keyup":pm(Q,a,X)}var vt;if(cc)t:{switch(t){case"compositionstart":var Et="onCompositionStart";break t;case"compositionend":Et="onCompositionEnd";break t;case"compositionupdate":Et="onCompositionUpdate";break t}Et=void 0}else da?nm(t,a)&&(Et="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(Et="onCompositionStart");Et&&(Wh&&a.locale!=="ko"&&(da||Et!=="onCompositionStart"?Et==="onCompositionEnd"&&da&&(vt=Qh()):(Zn=X,ac="value"in Zn?Zn.value:Zn.textContent,da=!0)),at=jl(V,Et),0<at.length&&(Et=new $h(Et,t,null,a,X),Q.push({event:Et,listeners:at}),vt?Et.data=vt:(vt=im(a),vt!==null&&(Et.data=vt)))),(vt=aS?sS(t,a):rS(t,a))&&(Et=jl(V,"onBeforeInput"),0<Et.length&&(at=new $h("onBeforeInput","beforeinput",null,a,X),Q.push({event:at,listeners:Et}),at.data=vt)),$S(Q,t,V,a,X)}Hg(Q,n)})}function Ks(t,n,a){return{instance:t,listener:n,currentTarget:a}}function jl(t,n){for(var a=n+"Capture",r=[];t!==null;){var c=t,u=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||u===null||(c=hs(t,a),c!=null&&r.unshift(Ks(t,c,u)),c=hs(t,n),c!=null&&r.push(Ks(t,c,u))),t.tag===3)return r;t=t.return}return[]}function eT(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Gg(t,n,a,r,c){for(var u=n._reactName,y=[];a!==null&&a!==r;){var b=a,C=b.alternate,V=b.stateNode;if(b=b.tag,C!==null&&C===r)break;b!==5&&b!==26&&b!==27||V===null||(C=V,c?(V=hs(a,u),V!=null&&y.unshift(Ks(a,V,C))):c||(V=hs(a,u),V!=null&&y.push(Ks(a,V,C)))),a=a.return}y.length!==0&&t.push({event:n,listeners:y})}var nT=/\r\n?/g,iT=/\u0000|\uFFFD/g;function Yg(t){return(typeof t=="string"?t:""+t).replace(nT,`
`).replace(iT,"")}function Xg(t,n){return n=Yg(n),Yg(t)===n}function zt(t,n,a,r,c,u){switch(a){case"children":typeof r=="string"?n==="body"||n==="textarea"&&r===""||ca(t,r):(typeof r=="number"||typeof r=="bigint")&&n!=="body"&&ca(t,""+r);break;case"className":zr(t,"class",r);break;case"tabIndex":zr(t,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":zr(t,a,r);break;case"style":Xh(t,r,u);break;case"data":if(n!=="object"){zr(t,"data",r);break}case"src":case"href":if(r===""&&(n!=="a"||a!=="href")){t.removeAttribute(a);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){t.removeAttribute(a);break}r=Vr(""+r),t.setAttribute(a,r);break;case"action":case"formAction":if(typeof r=="function"){t.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(a==="formAction"?(n!=="input"&&zt(t,n,"name",c.name,c,null),zt(t,n,"formEncType",c.formEncType,c,null),zt(t,n,"formMethod",c.formMethod,c,null),zt(t,n,"formTarget",c.formTarget,c,null)):(zt(t,n,"encType",c.encType,c,null),zt(t,n,"method",c.method,c,null),zt(t,n,"target",c.target,c,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){t.removeAttribute(a);break}r=Vr(""+r),t.setAttribute(a,r);break;case"onClick":r!=null&&(t.onclick=An);break;case"onScroll":r!=null&&St("scroll",t);break;case"onScrollEnd":r!=null&&St("scrollend",t);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(l(61));if(a=r.__html,a!=null){if(c.children!=null)throw Error(l(60));t.innerHTML=a}}break;case"multiple":t.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":t.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){t.removeAttribute("xlink:href");break}a=Vr(""+r),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?t.setAttribute(a,""+r):t.removeAttribute(a);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":r&&typeof r!="function"&&typeof r!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":r===!0?t.setAttribute(a,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?t.setAttribute(a,r):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?t.setAttribute(a,r):t.removeAttribute(a);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?t.removeAttribute(a):t.setAttribute(a,r);break;case"popover":St("beforetoggle",t),St("toggle",t),_r(t,"popover",r);break;case"xlinkActuate":En(t,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":En(t,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":En(t,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":En(t,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":En(t,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":En(t,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":En(t,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":En(t,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":En(t,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":_r(t,"is",r);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Dw.get(a)||a,_r(t,a,r))}}function ku(t,n,a,r,c,u){switch(a){case"style":Xh(t,r,u);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(l(61));if(a=r.__html,a!=null){if(c.children!=null)throw Error(l(60));t.innerHTML=a}}break;case"children":typeof r=="string"?ca(t,r):(typeof r=="number"||typeof r=="bigint")&&ca(t,""+r);break;case"onScroll":r!=null&&St("scroll",t);break;case"onScrollEnd":r!=null&&St("scrollend",t);break;case"onClick":r!=null&&(t.onclick=An);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Vh.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(c=a.endsWith("Capture"),n=a.slice(2,c?a.length-7:void 0),u=t[ye]||null,u=u!=null?u[a]:null,typeof u=="function"&&t.removeEventListener(n,u,c),typeof r=="function")){typeof u!="function"&&u!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(n,r,c);break t}a in t?t[a]=r:r===!0?t.setAttribute(a,""):_r(t,a,r)}}}function oe(t,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":St("error",t),St("load",t);var r=!1,c=!1,u;for(u in a)if(a.hasOwnProperty(u)){var y=a[u];if(y!=null)switch(u){case"src":r=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:zt(t,n,u,y,a,null)}}c&&zt(t,n,"srcSet",a.srcSet,a,null),r&&zt(t,n,"src",a.src,a,null);return;case"input":St("invalid",t);var b=u=y=c=null,C=null,V=null;for(r in a)if(a.hasOwnProperty(r)){var X=a[r];if(X!=null)switch(r){case"name":c=X;break;case"type":y=X;break;case"checked":C=X;break;case"defaultChecked":V=X;break;case"value":u=X;break;case"defaultValue":b=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(l(137,n));break;default:zt(t,n,r,X,a,null)}}Hh(t,u,b,C,V,y,c,!1);return;case"select":St("invalid",t),r=y=u=null;for(c in a)if(a.hasOwnProperty(c)&&(b=a[c],b!=null))switch(c){case"value":u=b;break;case"defaultValue":y=b;break;case"multiple":r=b;default:zt(t,n,c,b,a,null)}n=u,a=y,t.multiple=!!r,n!=null?oa(t,!!r,n,!1):a!=null&&oa(t,!!r,a,!0);return;case"textarea":St("invalid",t),u=c=r=null;for(y in a)if(a.hasOwnProperty(y)&&(b=a[y],b!=null))switch(y){case"value":r=b;break;case"defaultValue":c=b;break;case"children":u=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(l(91));break;default:zt(t,n,y,b,a,null)}Gh(t,r,c,u);return;case"option":for(C in a)if(a.hasOwnProperty(C)&&(r=a[C],r!=null))switch(C){case"selected":t.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:zt(t,n,C,r,a,null)}return;case"dialog":St("beforetoggle",t),St("toggle",t),St("cancel",t),St("close",t);break;case"iframe":case"object":St("load",t);break;case"video":case"audio":for(r=0;r<Xs.length;r++)St(Xs[r],t);break;case"image":St("error",t),St("load",t);break;case"details":St("toggle",t);break;case"embed":case"source":case"link":St("error",t),St("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in a)if(a.hasOwnProperty(V)&&(r=a[V],r!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:zt(t,n,V,r,a,null)}return;default:if(Wo(n)){for(X in a)a.hasOwnProperty(X)&&(r=a[X],r!==void 0&&ku(t,n,X,r,a,void 0));return}}for(b in a)a.hasOwnProperty(b)&&(r=a[b],r!=null&&zt(t,n,b,r,a,null))}function aT(t,n,a,r){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,u=null,y=null,b=null,C=null,V=null,X=null;for(P in a){var Q=a[P];if(a.hasOwnProperty(P)&&Q!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":C=Q;default:r.hasOwnProperty(P)||zt(t,n,P,null,r,Q)}}for(var U in r){var P=r[U];if(Q=a[U],r.hasOwnProperty(U)&&(P!=null||Q!=null))switch(U){case"type":u=P;break;case"name":c=P;break;case"checked":V=P;break;case"defaultChecked":X=P;break;case"value":y=P;break;case"defaultValue":b=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(l(137,n));break;default:P!==Q&&zt(t,n,U,P,r,Q)}}$o(t,y,b,C,V,X,u,c);return;case"select":P=y=b=U=null;for(u in a)if(C=a[u],a.hasOwnProperty(u)&&C!=null)switch(u){case"value":break;case"multiple":P=C;default:r.hasOwnProperty(u)||zt(t,n,u,null,r,C)}for(c in r)if(u=r[c],C=a[c],r.hasOwnProperty(c)&&(u!=null||C!=null))switch(c){case"value":U=u;break;case"defaultValue":b=u;break;case"multiple":y=u;default:u!==C&&zt(t,n,c,u,r,C)}n=b,a=y,r=P,U!=null?oa(t,!!a,U,!1):!!r!=!!a&&(n!=null?oa(t,!!a,n,!0):oa(t,!!a,a?[]:"",!1));return;case"textarea":P=U=null;for(b in a)if(c=a[b],a.hasOwnProperty(b)&&c!=null&&!r.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:zt(t,n,b,null,r,c)}for(y in r)if(c=r[y],u=a[y],r.hasOwnProperty(y)&&(c!=null||u!=null))switch(y){case"value":U=c;break;case"defaultValue":P=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(l(91));break;default:c!==u&&zt(t,n,y,c,r,u)}qh(t,U,P);return;case"option":for(var tt in a)if(U=a[tt],a.hasOwnProperty(tt)&&U!=null&&!r.hasOwnProperty(tt))switch(tt){case"selected":t.selected=!1;break;default:zt(t,n,tt,null,r,U)}for(C in r)if(U=r[C],P=a[C],r.hasOwnProperty(C)&&U!==P&&(U!=null||P!=null))switch(C){case"selected":t.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:zt(t,n,C,U,r,P)}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 ot in a)U=a[ot],a.hasOwnProperty(ot)&&U!=null&&!r.hasOwnProperty(ot)&&zt(t,n,ot,null,r,U);for(V in r)if(U=r[V],P=a[V],r.hasOwnProperty(V)&&U!==P&&(U!=null||P!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(l(137,n));break;default:zt(t,n,V,U,r,P)}return;default:if(Wo(n)){for(var Lt in a)U=a[Lt],a.hasOwnProperty(Lt)&&U!==void 0&&!r.hasOwnProperty(Lt)&&ku(t,n,Lt,void 0,r,U);for(X in r)U=r[X],P=a[X],!r.hasOwnProperty(X)||U===P||U===void 0&&P===void 0||ku(t,n,X,U,r,P);return}}for(var j in a)U=a[j],a.hasOwnProperty(j)&&U!=null&&!r.hasOwnProperty(j)&&zt(t,n,j,null,r,U);for(Q in r)U=r[Q],P=a[Q],!r.hasOwnProperty(Q)||U===P||U==null&&P==null||zt(t,n,Q,U,r,P)}function Kg(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function sT(){if(typeof performance.getEntriesByType=="function"){for(var t=0,n=0,a=performance.getEntriesByType("resource"),r=0;r<a.length;r++){var c=a[r],u=c.transferSize,y=c.initiatorType,b=c.duration;if(u&&b&&Kg(y)){for(y=0,b=c.responseEnd,r+=1;r<a.length;r++){var C=a[r],V=C.startTime;if(V>b)break;var X=C.transferSize,Q=C.initiatorType;X&&Kg(Q)&&(C=C.responseEnd,y+=X*(C<b?1:(b-V)/(C-V)))}if(--r,n+=8*(u+y)/(c.duration/1e3),t++,10<t)break}}if(0<t)return n/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Pu=null,Hu=null;function Dl(t){return t.nodeType===9?t:t.ownerDocument}function Fg(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Qg(t,n){if(t===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&n==="foreignObject"?0:t}function qu(t,n){return t==="textarea"||t==="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 Gu=null;function rT(){var t=window.event;return t&&t.type==="popstate"?t===Gu?!1:(Gu=t,!0):(Gu=null,!1)}var Zg=typeof setTimeout=="function"?setTimeout:void 0,lT=typeof clearTimeout=="function"?clearTimeout:void 0,Ig=typeof Promise=="function"?Promise:void 0,oT=typeof queueMicrotask=="function"?queueMicrotask:typeof Ig<"u"?function(t){return Ig.resolve(null).then(t).catch(cT)}:Zg;function cT(t){setTimeout(function(){throw t})}function di(t){return t==="head"}function $g(t,n){var a=n,r=0;do{var c=a.nextSibling;if(t.removeChild(a),c&&c.nodeType===8)if(a=c.data,a==="/$"||a==="/&"){if(r===0){t.removeChild(c),Pa(n);return}r--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")r++;else if(a==="html")Fs(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,Fs(a);for(var u=a.firstChild;u;){var y=u.nextSibling,b=u.nodeName;u[fs]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=y}}else a==="body"&&Fs(t.ownerDocument.body);a=c}while(a);Pa(n)}function Jg(t,n){var a=t;t=0;do{var r=a.nextSibling;if(a.nodeType===1?n?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(n?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),r&&r.nodeType===8)if(a=r.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=r}while(a)}function Yu(t){var n=t.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Yu(a),Zo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function uT(t,n,a,r){for(;t.nodeType===1;){var c=a;if(t.nodeName.toLowerCase()!==n.toLowerCase()){if(!r&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(r){if(!t[fs])switch(n){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==c.rel||t.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||t.getAttribute("title")!==(c.title==null?null:c.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(c.src==null?null:c.src)||t.getAttribute("type")!==(c.type==null?null:c.type)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(n==="input"&&t.type==="hidden"){var u=c.name==null?null:""+c.name;if(c.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Ze(t.nextSibling),t===null)break}return null}function fT(t,n,a){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Ze(t.nextSibling),t===null))return null;return t}function Wg(t,n){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Ze(t.nextSibling),t===null))return null;return t}function Xu(t){return t.data==="$?"||t.data==="$~"}function Ku(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function dT(t,n){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=n;else if(t.data!=="$?"||a.readyState!=="loading")n();else{var r=function(){n(),a.removeEventListener("DOMContentLoaded",r)};a.addEventListener("DOMContentLoaded",r),t._reactRetry=r}}function Ze(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return t}var Fu=null;function ty(t){t=t.nextSibling;for(var n=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(n===0)return Ze(t.nextSibling);n--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||n++}t=t.nextSibling}return null}function ey(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(n===0)return t;n--}else a!=="/$"&&a!=="/&"||n++}t=t.previousSibling}return null}function ny(t,n,a){switch(n=Dl(a),t){case"html":if(t=n.documentElement,!t)throw Error(l(452));return t;case"head":if(t=n.head,!t)throw Error(l(453));return t;case"body":if(t=n.body,!t)throw Error(l(454));return t;default:throw Error(l(451))}}function Fs(t){for(var n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Zo(t)}var Ie=new Map,iy=new Set;function Rl(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Hn=Y.d;Y.d={f:hT,r:mT,D:pT,C:gT,L:yT,m:vT,X:bT,S:xT,M:wT};function hT(){var t=Hn.f(),n=Tl();return t||n}function mT(t){var n=sa(t);n!==null&&n.tag===5&&n.type==="form"?bp(n):Hn.r(t)}var Ua=typeof document>"u"?null:document;function ay(t,n,a){var r=Ua;if(r&&typeof n=="string"&&n){var c=qe(n);c='link[rel="'+t+'"][href="'+c+'"]',typeof a=="string"&&(c+='[crossorigin="'+a+'"]'),iy.has(c)||(iy.add(c),t={rel:t,crossOrigin:a,href:n},r.querySelector(c)===null&&(n=r.createElement("link"),oe(n,"link",t),ne(n),r.head.appendChild(n)))}}function pT(t){Hn.D(t),ay("dns-prefetch",t,null)}function gT(t,n){Hn.C(t,n),ay("preconnect",t,n)}function yT(t,n,a){Hn.L(t,n,a);var r=Ua;if(r&&t&&n){var c='link[rel="preload"][as="'+qe(n)+'"]';n==="image"&&a&&a.imageSrcSet?(c+='[imagesrcset="'+qe(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(c+='[imagesizes="'+qe(a.imageSizes)+'"]')):c+='[href="'+qe(t)+'"]';var u=c;switch(n){case"style":u=Ba(t);break;case"script":u=ka(t)}Ie.has(u)||(t=x({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:t,as:n},a),Ie.set(u,t),r.querySelector(c)!==null||n==="style"&&r.querySelector(Qs(u))||n==="script"&&r.querySelector(Zs(u))||(n=r.createElement("link"),oe(n,"link",t),ne(n),r.head.appendChild(n)))}}function vT(t,n){Hn.m(t,n);var a=Ua;if(a&&t){var r=n&&typeof n.as=="string"?n.as:"script",c='link[rel="modulepreload"][as="'+qe(r)+'"][href="'+qe(t)+'"]',u=c;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=ka(t)}if(!Ie.has(u)&&(t=x({rel:"modulepreload",href:t},n),Ie.set(u,t),a.querySelector(c)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Zs(u)))return}r=a.createElement("link"),oe(r,"link",t),ne(r),a.head.appendChild(r)}}}function xT(t,n,a){Hn.S(t,n,a);var r=Ua;if(r&&t){var c=ra(r).hoistableStyles,u=Ba(t);n=n||"default";var y=c.get(u);if(!y){var b={loading:0,preload:null};if(y=r.querySelector(Qs(u)))b.loading=5;else{t=x({rel:"stylesheet",href:t,"data-precedence":n},a),(a=Ie.get(u))&&Qu(t,a);var C=y=r.createElement("link");ne(C),oe(C,"link",t),C._p=new Promise(function(V,X){C.onload=V,C.onerror=X}),C.addEventListener("load",function(){b.loading|=1}),C.addEventListener("error",function(){b.loading|=2}),b.loading|=4,_l(y,n,r)}y={type:"stylesheet",instance:y,count:1,state:b},c.set(u,y)}}}function bT(t,n){Hn.X(t,n);var a=Ua;if(a&&t){var r=ra(a).hoistableScripts,c=ka(t),u=r.get(c);u||(u=a.querySelector(Zs(c)),u||(t=x({src:t,async:!0},n),(n=Ie.get(c))&&Zu(t,n),u=a.createElement("script"),ne(u),oe(u,"link",t),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},r.set(c,u))}}function wT(t,n){Hn.M(t,n);var a=Ua;if(a&&t){var r=ra(a).hoistableScripts,c=ka(t),u=r.get(c);u||(u=a.querySelector(Zs(c)),u||(t=x({src:t,async:!0,type:"module"},n),(n=Ie.get(c))&&Zu(t,n),u=a.createElement("script"),ne(u),oe(u,"link",t),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},r.set(c,u))}}function sy(t,n,a,r){var c=(c=gt.current)?Rl(c):null;if(!c)throw Error(l(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=Ba(a.href),a=ra(c).hoistableStyles,r=a.get(n),r||(r={type:"style",instance:null,count:0,state:null},a.set(n,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=Ba(a.href);var u=ra(c).hoistableStyles,y=u.get(t);if(y||(c=c.ownerDocument||c,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,y),(u=c.querySelector(Qs(t)))&&!u._p&&(y.instance=u,y.state.loading=5),Ie.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Ie.set(t,a),u||ST(c,t,a,y.state))),n&&r===null)throw Error(l(528,""));return y}if(n&&r!==null)throw Error(l(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=ka(a),a=ra(c).hoistableScripts,r=a.get(n),r||(r={type:"script",instance:null,count:0,state:null},a.set(n,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,t))}}function Ba(t){return'href="'+qe(t)+'"'}function Qs(t){return'link[rel="stylesheet"]['+t+"]"}function ry(t){return x({},t,{"data-precedence":t.precedence,precedence:null})}function ST(t,n,a,r){t.querySelector('link[rel="preload"][as="style"]['+n+"]")?r.loading=1:(n=t.createElement("link"),r.preload=n,n.addEventListener("load",function(){return r.loading|=1}),n.addEventListener("error",function(){return r.loading|=2}),oe(n,"link",a),ne(n),t.head.appendChild(n))}function ka(t){return'[src="'+qe(t)+'"]'}function Zs(t){return"script[async]"+t}function ly(t,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var r=t.querySelector('style[data-href~="'+qe(a.href)+'"]');if(r)return n.instance=r,ne(r),r;var c=x({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return r=(t.ownerDocument||t).createElement("style"),ne(r),oe(r,"style",c),_l(r,a.precedence,t),n.instance=r;case"stylesheet":c=Ba(a.href);var u=t.querySelector(Qs(c));if(u)return n.state.loading|=4,n.instance=u,ne(u),u;r=ry(a),(c=Ie.get(c))&&Qu(r,c),u=(t.ownerDocument||t).createElement("link"),ne(u);var y=u;return y._p=new Promise(function(b,C){y.onload=b,y.onerror=C}),oe(u,"link",r),n.state.loading|=4,_l(u,a.precedence,t),n.instance=u;case"script":return u=ka(a.src),(c=t.querySelector(Zs(u)))?(n.instance=c,ne(c),c):(r=a,(c=Ie.get(u))&&(r=x({},a),Zu(r,c)),t=t.ownerDocument||t,c=t.createElement("script"),ne(c),oe(c,"link",r),t.head.appendChild(c),n.instance=c);case"void":return null;default:throw Error(l(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(r=n.instance,n.state.loading|=4,_l(r,a.precedence,t));return n.instance}function _l(t,n,a){for(var r=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=r.length?r[r.length-1]:null,u=c,y=0;y<r.length;y++){var b=r[y];if(b.dataset.precedence===n)u=b;else if(u!==c)break}u?u.parentNode.insertBefore(t,u.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(t,n.firstChild))}function Qu(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.title==null&&(t.title=n.title)}function Zu(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}var zl=null;function oy(t,n,a){if(zl===null){var r=new Map,c=zl=new Map;c.set(a,r)}else c=zl,r=c.get(a),r||(r=new Map,c.set(a,r));if(r.has(t))return r;for(r.set(t,null),a=a.getElementsByTagName(t),c=0;c<a.length;c++){var u=a[c];if(!(u[fs]||u[ae]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var y=u.getAttribute(n)||"";y=t+y;var b=r.get(y);b?b.push(u):r.set(y,[u])}}return r}function cy(t,n,a){t=t.ownerDocument||t,t.head.insertBefore(a,n==="title"?t.querySelector("head > title"):null)}function TT(t,n,a){if(a===1||n.itemProp!=null)return!1;switch(t){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 t=n.disabled,typeof n.precedence=="string"&&t==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 uy(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function ET(t,n,a,r){if(a.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var c=Ba(r.href),u=n.querySelector(Qs(c));if(u){n=u._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(t.count++,t=Ll.bind(t),n.then(t,t)),a.state.loading|=4,a.instance=u,ne(u);return}u=n.ownerDocument||n,r=ry(r),(c=Ie.get(c))&&Qu(r,c),u=u.createElement("link"),ne(u);var y=u;y._p=new Promise(function(b,C){y.onload=b,y.onerror=C}),oe(u,"link",r),a.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=Ll.bind(t),n.addEventListener("load",a),n.addEventListener("error",a))}}var Iu=0;function AT(t,n){return t.stylesheets&&t.count===0&&Ul(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var r=setTimeout(function(){if(t.stylesheets&&Ul(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+n);0<t.imgBytes&&Iu===0&&(Iu=62500*sT());var c=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Ul(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Iu?50:800)+n);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(r),clearTimeout(c)}}:null}function Ll(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ul(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Vl=null;function Ul(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Vl=new Map,n.forEach(CT,t),Vl=null,Ll.call(t))}function CT(t,n){if(!(n.state.loading&4)){var a=Vl.get(t);if(a)var r=a.get(null);else{a=new Map,Vl.set(t,a);for(var c=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<c.length;u++){var y=c[u];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(a.set(y.dataset.precedence,y),r=y)}r&&a.set(null,r)}c=n.instance,y=c.getAttribute("data-precedence"),u=a.get(y)||r,u===r&&a.set(null,c),a.set(y,c),this.count++,r=Ll.bind(this),c.addEventListener("load",r),c.addEventListener("error",r),u?u.parentNode.insertBefore(c,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(c,t.firstChild)),n.state.loading|=4}}var Is={$$typeof:R,Provider:null,Consumer:null,_currentValue:B,_currentValue2:B,_threadCount:0};function MT(t,n,a,r,c,u,y,b,C){this.tag=1,this.containerInfo=t,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=Xo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xo(0),this.hiddenUpdates=Xo(null),this.identifierPrefix=r,this.onUncaughtError=c,this.onCaughtError=u,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function fy(t,n,a,r,c,u,y,b,C,V,X,Q){return t=new MT(t,n,a,y,C,V,X,Q,b),n=1,u===!0&&(n|=24),u=je(3,null,null,n),t.current=u,u.stateNode=t,n=Oc(),n.refCount++,t.pooledCache=n,n.refCount++,u.memoizedState={element:r,isDehydrated:a,cache:n},_c(u),t}function dy(t){return t?(t=ga,t):ga}function hy(t,n,a,r,c,u){c=dy(c),r.context===null?r.context=c:r.pendingContext=c,r=ei(n),r.payload={element:a},u=u===void 0?null:u,u!==null&&(r.callback=u),a=ni(t,r,n),a!==null&&(Te(a,t,n),Ns(a,t,n))}function my(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<n?a:n}}function $u(t,n){my(t,n),(t=t.alternate)&&my(t,n)}function py(t){if(t.tag===13||t.tag===31){var n=_i(t,67108864);n!==null&&Te(n,t,67108864),$u(t,67108864)}}function gy(t){if(t.tag===13||t.tag===31){var n=Le();n=Ko(n);var a=_i(t,n);a!==null&&Te(a,t,n),$u(t,n)}}var Bl=!0;function NT(t,n,a,r){var c=_.T;_.T=null;var u=Y.p;try{Y.p=2,Ju(t,n,a,r)}finally{Y.p=u,_.T=c}}function OT(t,n,a,r){var c=_.T;_.T=null;var u=Y.p;try{Y.p=8,Ju(t,n,a,r)}finally{Y.p=u,_.T=c}}function Ju(t,n,a,r){if(Bl){var c=Wu(r);if(c===null)Bu(t,n,r,kl,a),vy(t,r);else if(DT(c,t,n,a,r))r.stopPropagation();else if(vy(t,r),n&4&&-1<jT.indexOf(t)){for(;c!==null;){var u=sa(c);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var y=Ni(u.pendingLanes);if(y!==0){var b=u;for(b.pendingLanes|=2,b.entangledLanes|=2;y;){var C=1<<31-Ne(y);b.entanglements[1]|=C,y&=~C}pn(u),(Ot&6)===0&&(wl=Ce()+500,Ys(0))}}break;case 31:case 13:b=_i(u,2),b!==null&&Te(b,u,2),Tl(),$u(u,2)}if(u=Wu(r),u===null&&Bu(t,n,r,kl,a),u===c)break;c=u}c!==null&&r.stopPropagation()}else Bu(t,n,r,null,a)}}function Wu(t){return t=ec(t),tf(t)}var kl=null;function tf(t){if(kl=null,t=aa(t),t!==null){var n=f(t);if(n===null)t=null;else{var a=n.tag;if(a===13){if(t=d(n),t!==null)return t;t=null}else if(a===31){if(t=h(n),t!==null)return t;t=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null)}}return kl=t,null}function yy(t){switch(t){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(pw()){case Ah:return 2;case Ch:return 8;case Nr:case gw:return 32;case Mh:return 268435456;default:return 32}default:return 32}}var ef=!1,hi=null,mi=null,pi=null,$s=new Map,Js=new Map,gi=[],jT="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 vy(t,n){switch(t){case"focusin":case"focusout":hi=null;break;case"dragenter":case"dragleave":mi=null;break;case"mouseover":case"mouseout":pi=null;break;case"pointerover":case"pointerout":$s.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Js.delete(n.pointerId)}}function Ws(t,n,a,r,c,u){return t===null||t.nativeEvent!==u?(t={blockedOn:n,domEventName:a,eventSystemFlags:r,nativeEvent:u,targetContainers:[c]},n!==null&&(n=sa(n),n!==null&&py(n)),t):(t.eventSystemFlags|=r,n=t.targetContainers,c!==null&&n.indexOf(c)===-1&&n.push(c),t)}function DT(t,n,a,r,c){switch(n){case"focusin":return hi=Ws(hi,t,n,a,r,c),!0;case"dragenter":return mi=Ws(mi,t,n,a,r,c),!0;case"mouseover":return pi=Ws(pi,t,n,a,r,c),!0;case"pointerover":var u=c.pointerId;return $s.set(u,Ws($s.get(u)||null,t,n,a,r,c)),!0;case"gotpointercapture":return u=c.pointerId,Js.set(u,Ws(Js.get(u)||null,t,n,a,r,c)),!0}return!1}function xy(t){var n=aa(t.target);if(n!==null){var a=f(n);if(a!==null){if(n=a.tag,n===13){if(n=d(a),n!==null){t.blockedOn=n,_h(t.priority,function(){gy(a)});return}}else if(n===31){if(n=h(a),n!==null){t.blockedOn=n,_h(t.priority,function(){gy(a)});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Pl(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var a=Wu(t.nativeEvent);if(a===null){a=t.nativeEvent;var r=new a.constructor(a.type,a);tc=r,a.target.dispatchEvent(r),tc=null}else return n=sa(a),n!==null&&py(n),t.blockedOn=a,!1;n.shift()}return!0}function by(t,n,a){Pl(t)&&a.delete(n)}function RT(){ef=!1,hi!==null&&Pl(hi)&&(hi=null),mi!==null&&Pl(mi)&&(mi=null),pi!==null&&Pl(pi)&&(pi=null),$s.forEach(by),Js.forEach(by)}function Hl(t,n){t.blockedOn===n&&(t.blockedOn=null,ef||(ef=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,RT)))}var ql=null;function wy(t){ql!==t&&(ql=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){ql===t&&(ql=null);for(var n=0;n<t.length;n+=3){var a=t[n],r=t[n+1],c=t[n+2];if(typeof r!="function"){if(tf(r||a)===null)continue;break}var u=sa(a);u!==null&&(t.splice(n,3),n-=3,Wc(u,{pending:!0,data:c,method:a.method,action:r},r,c))}}))}function Pa(t){function n(C){return Hl(C,t)}hi!==null&&Hl(hi,t),mi!==null&&Hl(mi,t),pi!==null&&Hl(pi,t),$s.forEach(n),Js.forEach(n);for(var a=0;a<gi.length;a++){var r=gi[a];r.blockedOn===t&&(r.blockedOn=null)}for(;0<gi.length&&(a=gi[0],a.blockedOn===null);)xy(a),a.blockedOn===null&&gi.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(r=0;r<a.length;r+=3){var c=a[r],u=a[r+1],y=c[ye]||null;if(typeof u=="function")y||wy(a);else if(y){var b=null;if(u&&u.hasAttribute("formAction")){if(c=u,y=u[ye]||null)b=y.formAction;else if(tf(c)!==null)continue}else b=y.action;typeof b=="function"?a[r+1]=b:(a.splice(r,3),r-=3),wy(a)}}}function Sy(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(y){return c=y})},focusReset:"manual",scroll:"manual"})}function n(){c!==null&&(c(),c=null),r||setTimeout(a,20)}function a(){if(!r&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,c=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(a,100),function(){r=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),c!==null&&(c(),c=null)}}}function nf(t){this._internalRoot=t}Gl.prototype.render=nf.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(l(409));var a=n.current,r=Le();hy(a,r,t,n,null,null)},Gl.prototype.unmount=nf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;hy(t.current,2,null,t,null,null),Tl(),n[ia]=null}};function Gl(t){this._internalRoot=t}Gl.prototype.unstable_scheduleHydration=function(t){if(t){var n=Rh();t={blockedOn:null,target:t,priority:n};for(var a=0;a<gi.length&&n!==0&&n<gi[a].priority;a++);gi.splice(a,0,t),a===0&&xy(t)}};var Ty=i.version;if(Ty!=="19.2.3")throw Error(l(527,Ty,"19.2.3"));Y.findDOMNode=function(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(l(188)):(t=Object.keys(t).join(","),Error(l(268,t)));return t=m(n),t=t!==null?g(t):null,t=t===null?null:t.stateNode,t};var _T={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yl.isDisabled&&Yl.supportsFiber)try{os=Yl.inject(_T),Me=Yl}catch{}}return er.createRoot=function(t,n){if(!o(t))throw Error(l(299));var a=!1,r="",c=jp,u=Dp,y=Rp;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(u=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError)),n=fy(t,1,!1,null,null,a,r,null,c,u,y,Sy),t[ia]=n.current,Uu(t),new nf(n)},er.hydrateRoot=function(t,n,a){if(!o(t))throw Error(l(299));var r=!1,c="",u=jp,y=Dp,b=Rp,C=null;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(b=a.onRecoverableError),a.formState!==void 0&&(C=a.formState)),n=fy(t,1,!0,n,a??null,r,c,C,u,y,b,Sy),n.context=dy(null),a=n.current,r=Le(),r=Ko(r),c=ei(r),c.callback=null,ni(a,c,r),a=r,n.current.lanes=a,us(n,a),pn(n),t[ia]=n.current,Uu(t),new Gl(n)},er.version="19.2.3",er}var _y;function GT(){if(_y)return sf.exports;_y=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(i){console.error(i)}}return e(),sf.exports=qT(),sf.exports}var YT=GT();function XT(e,i){if(e instanceof RegExp)return{keys:!1,pattern:e};var s,l,o,f,d=[],h="",p=e.split("/");for(p[0]||p.shift();o=p.shift();)s=o[0],s==="*"?(d.push(s),h+=o[1]==="?"?"(?:/(.*))?":"/(.*)"):s===":"?(l=o.indexOf("?",1),f=o.indexOf(".",1),d.push(o.substring(1,~l?l:~f?f:o.length)),h+=~l&&!~f?"(?:/([^/]+?))?":"/([^/]+?)",~f&&(h+=(~l?"?":"")+"\\"+o.substring(f))):h+="/"+o;return{keys:d,pattern:new RegExp("^"+h+(i?"(?=$|/)":"/?$"),"i")}}var S=So();const he=V0(S),KT=LT({__proto__:null,default:he},[S]);var uf={exports:{}},ff={};/**
 * @license React
 * use-sync-external-store-shim.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 zy;function FT(){if(zy)return ff;zy=1;var e=So();function i(x,w){return x===w&&(x!==0||1/x===1/w)||x!==x&&w!==w}var s=typeof Object.is=="function"?Object.is:i,l=e.useState,o=e.useEffect,f=e.useLayoutEffect,d=e.useDebugValue;function h(x,w){var T=w(),A=l({inst:{value:T,getSnapshot:w}}),E=A[0].inst,M=A[1];return f(function(){E.value=T,E.getSnapshot=w,p(E)&&M({inst:E})},[x,T,w]),o(function(){return p(E)&&M({inst:E}),x(function(){p(E)&&M({inst:E})})},[x]),d(T),T}function p(x){var w=x.getSnapshot;x=x.value;try{var T=w();return!s(x,T)}catch{return!0}}function m(x,w){return w()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:h;return ff.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,ff}var Ly;function QT(){return Ly||(Ly=1,uf.exports=FT()),uf.exports}var ZT=QT();const IT=KT.useInsertionEffect,$T=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",JT=$T?S.useLayoutEffect:S.useEffect,WT=IT||JT,B0=e=>{const i=S.useRef([e,(...s)=>i[0](...s)]).current;return WT(()=>{i[0]=e}),i[1]},t2="popstate",bd="pushState",wd="replaceState",e2="hashchange",Vy=[t2,bd,wd,e2],n2=e=>{for(const i of Vy)addEventListener(i,e);return()=>{for(const i of Vy)removeEventListener(i,e)}},k0=(e,i)=>ZT.useSyncExternalStore(n2,e,i),i2=()=>location.search,a2=({ssrSearch:e=""}={})=>k0(i2,()=>e),Uy=()=>location.pathname,s2=({ssrPath:e}={})=>k0(Uy,e?()=>e:Uy),r2=(e,{replace:i=!1,state:s=null}={})=>history[i?wd:bd](s,"",e),l2=(e={})=>[s2(e),r2],By=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[By]>"u"){for(const e of[bd,wd]){const i=history[e];history[e]=function(){const s=i.apply(this,arguments),l=new Event(e);return l.arguments=arguments,dispatchEvent(l),s}}Object.defineProperty(window,By,{value:!0})}const o2=(e,i)=>i.toLowerCase().indexOf(e.toLowerCase())?"~"+i:i.slice(e.length)||"/",P0=(e="")=>e==="/"?"":e,c2=(e,i)=>e[0]==="~"?e.slice(1):P0(i)+e,u2=(e="",i)=>o2(ky(P0(e)),ky(i)),ky=e=>{try{return decodeURI(e)}catch{return e}},H0={hook:l2,searchHook:a2,parser:XT,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:e=>e},q0=S.createContext(H0),To=()=>S.useContext(q0),G0={},Y0=S.createContext(G0),f2=()=>S.useContext(Y0),Sd=e=>{const[i,s]=e.hook(e);return[u2(e.base,i),B0((l,o)=>s(c2(l,e.base),o))]},X0=(e,i,s,l)=>{const{pattern:o,keys:f}=i instanceof RegExp?{keys:!1,pattern:i}:e(i||"*",l),d=o.exec(s)||[],[h,...p]=d;return h!==void 0?[!0,(()=>{const m=f!==!1?Object.fromEntries(f.map((x,w)=>[x,p[w]])):d.groups;let g={...p};return m&&Object.assign(g,m),g})(),...l?[h]:[]]:[!1,null]},d2=({children:e,...i})=>{const s=To(),l=i.hook?H0:s;let o=l;const[f,d]=i.ssrPath?.split("?")??[];d&&(i.ssrSearch=d,i.ssrPath=f),i.hrefs=i.hrefs??i.hook?.hrefs;let h=S.useRef({}),p=h.current,m=p;for(let g in l){const x=g==="base"?l[g]+(i[g]||""):i[g]||l[g];p===m&&x!==m[g]&&(h.current=m={...m}),m[g]=x,x!==l[g]&&(o=m)}return S.createElement(q0.Provider,{value:o,children:e})},Py=({children:e,component:i},s)=>i?S.createElement(i,{params:s}):typeof e=="function"?e(s):e,h2=e=>{let i=S.useRef(G0),s=i.current;for(const l in e)e[l]!==s[l]&&(s=e);return Object.keys(e).length===0&&(s=e),i.current=s},Ha=({path:e,nest:i,match:s,...l})=>{const o=To(),[f]=Sd(o),[d,h,p]=s??X0(o.parser,e,f,i),m=h2({...f2(),...h});if(!d)return null;const g=p?S.createElement(d2,{base:p},Py(l,m)):Py(l,m);return S.createElement(Y0.Provider,{value:m,children:g})},Eo=S.forwardRef((e,i)=>{const s=To(),[l,o]=Sd(s),{to:f="",href:d=f,onClick:h,asChild:p,children:m,className:g,replace:x,state:w,...T}=e,A=B0(M=>{M.ctrlKey||M.metaKey||M.altKey||M.shiftKey||M.button!==0||(h?.(M),M.defaultPrevented||(M.preventDefault(),o(d,e)))}),E=s.hrefs(d[0]==="~"?d.slice(1):s.base+d,s);return p&&S.isValidElement(m)?S.cloneElement(m,{onClick:A,href:E}):S.createElement("a",{...T,onClick:A,href:E,className:g?.call?g(l===d):g,children:m,ref:i})}),K0=e=>Array.isArray(e)?e.flatMap(i=>K0(i&&i.type===S.Fragment?i.props.children:i)):[e],m2=({children:e,location:i})=>{const s=To(),[l]=Sd(s);for(const o of K0(e)){let f=0;if(S.isValidElement(o)&&(f=X0(s.parser,o.props.path,i||l,o.props.nest))[0])return S.cloneElement(o,{match:f})}return null};var Ao=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Co=typeof window>"u"||"Deno"in globalThis;function ln(){}function p2(e,i){return typeof e=="function"?e(i):e}function g2(e){return typeof e=="number"&&e>=0&&e!==1/0}function y2(e,i){return Math.max(e+(i||0)-Date.now(),0)}function Hy(e,i){return typeof e=="function"?e(i):e}function v2(e,i){return typeof e=="function"?e(i):e}function qy(e,i){const{type:s="all",exact:l,fetchStatus:o,predicate:f,queryKey:d,stale:h}=e;if(d){if(l){if(i.queryHash!==Td(d,i.options))return!1}else if(!dr(i.queryKey,d))return!1}if(s!=="all"){const p=i.isActive();if(s==="active"&&!p||s==="inactive"&&p)return!1}return!(typeof h=="boolean"&&i.isStale()!==h||o&&o!==i.state.fetchStatus||f&&!f(i))}function Gy(e,i){const{exact:s,status:l,predicate:o,mutationKey:f}=e;if(f){if(!i.options.mutationKey)return!1;if(s){if(fr(i.options.mutationKey)!==fr(f))return!1}else if(!dr(i.options.mutationKey,f))return!1}return!(l&&i.state.status!==l||o&&!o(i))}function Td(e,i){return(i?.queryKeyHashFn||fr)(e)}function fr(e){return JSON.stringify(e,(i,s)=>Bf(s)?Object.keys(s).sort().reduce((l,o)=>(l[o]=s[o],l),{}):s)}function dr(e,i){return e===i?!0:typeof e!=typeof i?!1:e&&i&&typeof e=="object"&&typeof i=="object"?!Object.keys(i).some(s=>!dr(e[s],i[s])):!1}function F0(e,i){if(e===i)return e;const s=Yy(e)&&Yy(i);if(s||Bf(e)&&Bf(i)){const l=s?e:Object.keys(e),o=l.length,f=s?i:Object.keys(i),d=f.length,h=s?[]:{};let p=0;for(let m=0;m<d;m++){const g=s?m:f[m];(!s&&l.includes(g)||s)&&e[g]===void 0&&i[g]===void 0?(h[g]=void 0,p++):(h[g]=F0(e[g],i[g]),h[g]===e[g]&&e[g]!==void 0&&p++)}return o===d&&p===o?e:h}return i}function Yy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Bf(e){if(!Xy(e))return!1;const i=e.constructor;if(i===void 0)return!0;const s=i.prototype;return!(!Xy(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Xy(e){return Object.prototype.toString.call(e)==="[object Object]"}function x2(e){return new Promise(i=>{setTimeout(i,e)})}function b2(e,i,s){return typeof s.structuralSharing=="function"?s.structuralSharing(e,i):s.structuralSharing!==!1?F0(e,i):i}function w2(e,i,s=0){const l=[...e,i];return s&&l.length>s?l.slice(1):l}function S2(e,i,s=0){const l=[i,...e];return s&&l.length>s?l.slice(0,-1):l}var Ed=Symbol();function Q0(e,i){return!e.queryFn&&i?.initialPromise?()=>i.initialPromise:!e.queryFn||e.queryFn===Ed?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var T2=class extends Ao{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!Co&&window.addEventListener){const i=()=>e();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(i=>{i(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Z0=new T2,E2=class extends Ao{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!Co&&window.addEventListener){const i=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(s=>{s(e)}))}isOnline(){return this.#t}},co=new E2;function A2(){let e,i;const s=new Promise((o,f)=>{e=o,i=f});s.status="pending",s.catch(()=>{});function l(o){Object.assign(s,o),delete s.resolve,delete s.reject}return s.resolve=o=>{l({status:"fulfilled",value:o}),e(o)},s.reject=o=>{l({status:"rejected",reason:o}),i(o)},s}function C2(e){return Math.min(1e3*2**e,3e4)}function I0(e){return(e??"online")==="online"?co.isOnline():!0}var $0=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function df(e){return e instanceof $0}function J0(e){let i=!1,s=0,l=!1,o;const f=A2(),d=E=>{l||(w(new $0(E)),e.abort?.())},h=()=>{i=!0},p=()=>{i=!1},m=()=>Z0.isFocused()&&(e.networkMode==="always"||co.isOnline())&&e.canRun(),g=()=>I0(e.networkMode)&&e.canRun(),x=E=>{l||(l=!0,e.onSuccess?.(E),o?.(),f.resolve(E))},w=E=>{l||(l=!0,e.onError?.(E),o?.(),f.reject(E))},T=()=>new Promise(E=>{o=M=>{(l||m())&&E(M)},e.onPause?.()}).then(()=>{o=void 0,l||e.onContinue?.()}),A=()=>{if(l)return;let E;const M=s===0?e.initialPromise:void 0;try{E=M??e.fn()}catch(D){E=Promise.reject(D)}Promise.resolve(E).then(x).catch(D=>{if(l)return;const z=e.retry??(Co?0:3),R=e.retryDelay??C2,q=typeof R=="function"?R(s,D):R,G=z===!0||typeof z=="number"&&s<z||typeof z=="function"&&z(s,D);if(i||!G){w(D);return}s++,e.onFail?.(s,D),x2(q).then(()=>m()?void 0:T()).then(()=>{i?w(D):A()})})};return{promise:f,cancel:d,continue:()=>(o?.(),f),cancelRetry:h,continueRetry:p,canStart:g,start:()=>(g()?A():T().then(A),f)}}function M2(){let e=[],i=0,s=h=>{h()},l=h=>{h()},o=h=>setTimeout(h,0);const f=h=>{i?e.push(h):o(()=>{s(h)})},d=()=>{const h=e;e=[],h.length&&o(()=>{l(()=>{h.forEach(p=>{s(p)})})})};return{batch:h=>{let p;i++;try{p=h()}finally{i--,i||d()}return p},batchCalls:h=>(...p)=>{f(()=>{h(...p)})},schedule:f,setNotifyFunction:h=>{s=h},setBatchNotifyFunction:h=>{l=h},setScheduler:h=>{o=h}}}var me=M2(),W0=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),g2(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Co?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},N2=class extends W0{#t;#e;#n;#i;#r;#s;constructor(e){super(),this.#s=!1,this.#r=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#n=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=j2(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){this.options={...this.#r,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,i){const s=b2(this.state.data,e,this.options);return this.#a({data:s,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),s}setState(e,i){this.#a({type:"setState",state:e,setStateOptions:i})}cancel(e){const i=this.#i?.promise;return this.#i?.cancel(e),i?i.then(ln).catch(ln):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>v2(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ed||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!y2(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(i=>i!==e),this.observers.length||(this.#i&&(this.#s?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}fetch(e,i){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const s=new AbortController,l=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#s=!0,s.signal)})},o=()=>{const h=Q0(this.options,i),p={queryKey:this.queryKey,meta:this.meta};return l(p),this.#s=!1,this.options.persister?this.options.persister(h,p,this):h(p)},f={fetchOptions:i,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};l(f),this.options.behavior?.onFetch(f,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==f.fetchOptions?.meta)&&this.#a({type:"fetch",meta:f.fetchOptions?.meta});const d=h=>{df(h)&&h.silent||this.#a({type:"error",error:h}),df(h)||(this.#n.config.onError?.(h,this),this.#n.config.onSettled?.(this.state.data,h,this)),this.scheduleGc()};return this.#i=J0({initialPromise:i?.initialPromise,fn:f.fetchFn,abort:s.abort.bind(s),onSuccess:h=>{if(h===void 0){d(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(p){d(p);return}this.#n.config.onSuccess?.(h,this),this.#n.config.onSettled?.(h,this.state.error,this),this.scheduleGc()},onError:d,onFail:(h,p)=>{this.#a({type:"failed",failureCount:h,error:p})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0}),this.#i.start()}#a(e){const i=s=>{switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...O2(s.data,this.options),fetchMeta:e.meta??null};case"success":return{...s,data:e.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const l=e.error;return df(l)&&l.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...s,error:l,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=i(this.state),me.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function O2(e,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:I0(i.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function j2(e){const i=typeof e.initialData=="function"?e.initialData():e.initialData,s=i!==void 0,l=s?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:s?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var D2=class extends Ao{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,i,s){const l=i.queryKey,o=i.queryHash??Td(l,i);let f=this.get(o);return f||(f=new N2({cache:this,queryKey:l,queryHash:o,options:e.defaultQueryOptions(i),state:s,defaultOptions:e.getQueryDefaults(l)}),this.add(f)),f}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const i=this.#t.get(e.queryHash);i&&(e.destroy(),i===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){me.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const i={exact:!0,...e};return this.getAll().find(s=>qy(i,s))}findAll(e={}){const i=this.getAll();return Object.keys(e).length>0?i.filter(s=>qy(e,s)):i}notify(e){me.batch(()=>{this.listeners.forEach(i=>{i(e)})})}onFocus(){me.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){me.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},R2=class extends W0{#t;#e;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||_2(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(i=>i!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){this.#n=J0({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(l,o)=>{this.#i({type:"failed",failureCount:l,error:o})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const i=this.state.status==="pending",s=!this.#n.canStart();try{if(!i){this.#i({type:"pending",variables:e,isPaused:s}),await this.#e.config.onMutate?.(e,this);const o=await this.options.onMutate?.(e);o!==this.state.context&&this.#i({type:"pending",context:o,variables:e,isPaused:s})}const l=await this.#n.start();return await this.#e.config.onSuccess?.(l,e,this.state.context,this),await this.options.onSuccess?.(l,e,this.state.context),await this.#e.config.onSettled?.(l,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(l,null,e,this.state.context),this.#i({type:"success",data:l}),l}catch(l){try{throw await this.#e.config.onError?.(l,e,this.state.context,this),await this.options.onError?.(l,e,this.state.context),await this.#e.config.onSettled?.(void 0,l,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,l,e,this.state.context),l}finally{this.#i({type:"error",error:l})}}finally{this.#e.runNext(this)}}#i(e){const i=s=>{switch(e.type){case"failed":return{...s,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...s,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:e.error,failureCount:s.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=i(this.state),me.batch(()=>{this.#t.forEach(s=>{s.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function _2(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var z2=class extends Ao{constructor(e={}){super(),this.config=e,this.#t=new Map,this.#e=Date.now()}#t;#e;build(e,i,s){const l=new R2({mutationCache:this,mutationId:++this.#e,options:e.defaultMutationOptions(i),state:s});return this.add(l),l}add(e){const i=Xl(e),s=this.#t.get(i)??[];s.push(e),this.#t.set(i,s),this.notify({type:"added",mutation:e})}remove(e){const i=Xl(e);if(this.#t.has(i)){const s=this.#t.get(i)?.filter(l=>l!==e);s&&(s.length===0?this.#t.delete(i):this.#t.set(i,s))}this.notify({type:"removed",mutation:e})}canRun(e){const i=this.#t.get(Xl(e))?.find(s=>s.state.status==="pending");return!i||i===e}runNext(e){return this.#t.get(Xl(e))?.find(s=>s!==e&&s.state.isPaused)?.continue()??Promise.resolve()}clear(){me.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...this.#t.values()].flat()}find(e){const i={exact:!0,...e};return this.getAll().find(s=>Gy(i,s))}findAll(e={}){return this.getAll().filter(i=>Gy(e,i))}notify(e){me.batch(()=>{this.listeners.forEach(i=>{i(e)})})}resumePausedMutations(){const e=this.getAll().filter(i=>i.state.isPaused);return me.batch(()=>Promise.all(e.map(i=>i.continue().catch(ln))))}};function Xl(e){return e.options.scope?.id??String(e.mutationId)}function Ky(e){return{onFetch:(i,s)=>{const l=i.options,o=i.fetchOptions?.meta?.fetchMore?.direction,f=i.state.data?.pages||[],d=i.state.data?.pageParams||[];let h={pages:[],pageParams:[]},p=0;const m=async()=>{let g=!1;const x=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(i.signal.aborted?g=!0:i.signal.addEventListener("abort",()=>{g=!0}),i.signal)})},w=Q0(i.options,i.fetchOptions),T=async(A,E,M)=>{if(g)return Promise.reject();if(E==null&&A.pages.length)return Promise.resolve(A);const D={queryKey:i.queryKey,pageParam:E,direction:M?"backward":"forward",meta:i.options.meta};x(D);const z=await w(D),{maxPages:R}=i.options,q=M?S2:w2;return{pages:q(A.pages,z,R),pageParams:q(A.pageParams,E,R)}};if(o&&f.length){const A=o==="backward",E=A?L2:Fy,M={pages:f,pageParams:d},D=E(l,M);h=await T(M,D,A)}else{const A=e??f.length;do{const E=p===0?d[0]??l.initialPageParam:Fy(l,h);if(p>0&&E==null)break;h=await T(h,E),p++}while(p<A)}return h};i.options.persister?i.fetchFn=()=>i.options.persister?.(m,{queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s):i.fetchFn=m}}}function Fy(e,{pages:i,pageParams:s}){const l=i.length-1;return i.length>0?e.getNextPageParam(i[l],i,s[l],s):void 0}function L2(e,{pages:i,pageParams:s}){return i.length>0?e.getPreviousPageParam?.(i[0],i,s[0],s):void 0}var V2=class{#t;#e;#n;#i;#r;#s;#a;#l;constructor(e={}){this.#t=e.queryCache||new D2,this.#e=e.mutationCache||new z2,this.#n=e.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#a=Z0.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#l=co.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#a?.(),this.#a=void 0,this.#l?.(),this.#l=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const i=this.defaultQueryOptions({queryKey:e});return this.#t.get(i.queryHash)?.state.data}ensureQueryData(e){const i=this.getQueryData(e.queryKey);if(i===void 0)return this.fetchQuery(e);{const s=this.defaultQueryOptions(e),l=this.#t.build(this,s);return e.revalidateIfStale&&l.isStaleByTime(Hy(s.staleTime,l))&&this.prefetchQuery(s),Promise.resolve(i)}}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:i,state:s})=>{const l=s.data;return[i,l]})}setQueryData(e,i,s){const l=this.defaultQueryOptions({queryKey:e}),f=this.#t.get(l.queryHash)?.state.data,d=p2(i,f);if(d!==void 0)return this.#t.build(this,l).setData(d,{...s,manual:!0})}setQueriesData(e,i,s){return me.batch(()=>this.#t.findAll(e).map(({queryKey:l})=>[l,this.setQueryData(l,i,s)]))}getQueryState(e){const i=this.defaultQueryOptions({queryKey:e});return this.#t.get(i.queryHash)?.state}removeQueries(e){const i=this.#t;me.batch(()=>{i.findAll(e).forEach(s=>{i.remove(s)})})}resetQueries(e,i){const s=this.#t,l={type:"active",...e};return me.batch(()=>(s.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(l,i)))}cancelQueries(e={},i={}){const s={revert:!0,...i},l=me.batch(()=>this.#t.findAll(e).map(o=>o.cancel(s)));return Promise.all(l).then(ln).catch(ln)}invalidateQueries(e={},i={}){return me.batch(()=>{if(this.#t.findAll(e).forEach(l=>{l.invalidate()}),e.refetchType==="none")return Promise.resolve();const s={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(s,i)})}refetchQueries(e={},i){const s={...i,cancelRefetch:i?.cancelRefetch??!0},l=me.batch(()=>this.#t.findAll(e).filter(o=>!o.isDisabled()).map(o=>{let f=o.fetch(void 0,s);return s.throwOnError||(f=f.catch(ln)),o.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(l).then(ln)}fetchQuery(e){const i=this.defaultQueryOptions(e);i.retry===void 0&&(i.retry=!1);const s=this.#t.build(this,i);return s.isStaleByTime(Hy(i.staleTime,s))?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ln).catch(ln)}fetchInfiniteQuery(e){return e.behavior=Ky(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ln).catch(ln)}ensureInfiniteQueryData(e){return e.behavior=Ky(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return co.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,i){this.#i.set(fr(e),{queryKey:e,defaultOptions:i})}getQueryDefaults(e){const i=[...this.#i.values()];let s={};return i.forEach(l=>{dr(e,l.queryKey)&&(s={...s,...l.defaultOptions})}),s}setMutationDefaults(e,i){this.#r.set(fr(e),{mutationKey:e,defaultOptions:i})}getMutationDefaults(e){const i=[...this.#r.values()];let s={};return i.forEach(l=>{dr(e,l.mutationKey)&&(s={...s,...l.defaultOptions})}),s}defaultQueryOptions(e){if(e._defaulted)return e;const i={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return i.queryHash||(i.queryHash=Td(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.enabled!==!0&&i.queryFn===Ed&&(i.enabled=!1),i}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},U2=S.createContext(void 0),B2=({client:e,children:i})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(U2.Provider,{value:e,children:i}));async function k2(e){if(!e.ok){const i=await e.text()||e.statusText;throw new Error(`${e.status}: ${i}`)}}const P2=({on401:e})=>async({queryKey:i})=>{const s=await fetch(i.join("/"),{credentials:"include"});return await k2(s),await s.json()},H2=new V2({defaultOptions:{queries:{queryFn:P2({on401:"throw"}),refetchInterval:!1,refetchOnWindowFocus:!1,staleTime:1/0,retry:!1},mutations:{retry:!1}}}),q2=1,G2=1e6;let hf=0;function Y2(){return hf=(hf+1)%Number.MAX_SAFE_INTEGER,hf.toString()}const mf=new Map,Qy=e=>{if(mf.has(e))return;const i=setTimeout(()=>{mf.delete(e),sr({type:"REMOVE_TOAST",toastId:e})},G2);mf.set(e,i)},X2=(e,i)=>{switch(i.type){case"ADD_TOAST":return{...e,toasts:[i.toast,...e.toasts].slice(0,q2)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(s=>s.id===i.toast.id?{...s,...i.toast}:s)};case"DISMISS_TOAST":{const{toastId:s}=i;return s?Qy(s):e.toasts.forEach(l=>{Qy(l.id)}),{...e,toasts:e.toasts.map(l=>l.id===s||s===void 0?{...l,open:!1}:l)}}case"REMOVE_TOAST":return i.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==i.toastId)}}},no=[];let io={toasts:[]};function sr(e){io=X2(io,e),no.forEach(i=>{i(io)})}function K2({...e}){const i=Y2(),s=o=>sr({type:"UPDATE_TOAST",toast:{...o,id:i}}),l=()=>sr({type:"DISMISS_TOAST",toastId:i});return sr({type:"ADD_TOAST",toast:{...e,id:i,open:!0,onOpenChange:o=>{o||l()}}}),{id:i,dismiss:l,update:s}}function F2(){const[e,i]=S.useState(io);return S.useEffect(()=>(no.push(i),()=>{const s=no.indexOf(i);s>-1&&no.splice(s,1)}),[e]),{...e,toast:K2,dismiss:s=>sr({type:"DISMISS_TOAST",toastId:s})}}var wr=U0();const tx=V0(wr);function Ue(e,i,{checkForDefaultPrevented:s=!0}={}){return function(o){if(e?.(o),s===!1||!o.defaultPrevented)return i?.(o)}}function Zy(e,i){if(typeof e=="function")return e(i);e!=null&&(e.current=i)}function Ad(...e){return i=>{let s=!1;const l=e.map(o=>{const f=Zy(o,i);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let o=0;o<l.length;o++){const f=l[o];typeof f=="function"?f():Zy(e[o],null)}}}}function Ae(...e){return S.useCallback(Ad(...e),e)}function Mo(e,i=[]){let s=[];function l(f,d){const h=S.createContext(d),p=s.length;s=[...s,d];const m=x=>{const{scope:w,children:T,...A}=x,E=w?.[e]?.[p]||h,M=S.useMemo(()=>A,Object.values(A));return v.jsx(E.Provider,{value:M,children:T})};m.displayName=f+"Provider";function g(x,w){const T=w?.[e]?.[p]||h,A=S.useContext(T);if(A)return A;if(d!==void 0)return d;throw new Error(`\`${x}\` must be used within \`${f}\``)}return[m,g]}const o=()=>{const f=s.map(d=>S.createContext(d));return function(h){const p=h?.[e]||f;return S.useMemo(()=>({[`__scope${e}`]:{...h,[e]:p}}),[h,p])}};return o.scopeName=e,[l,Q2(o,...i)]}function Q2(...e){const i=e[0];if(e.length===1)return i;const s=()=>{const l=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(f){const d=l.reduce((h,{useScope:p,scopeName:m})=>{const x=p(f)[`__scope${m}`];return{...h,...x}},{});return S.useMemo(()=>({[`__scope${i.scopeName}`]:d}),[d])}};return s.scopeName=i.scopeName,s}function kf(e){const i=Z2(e),s=S.forwardRef((l,o)=>{const{children:f,...d}=l,h=S.Children.toArray(f),p=h.find($2);if(p){const m=p.props.children,g=h.map(x=>x===p?S.Children.count(m)>1?S.Children.only(null):S.isValidElement(m)?m.props.children:null:x);return v.jsx(i,{...d,ref:o,children:S.isValidElement(m)?S.cloneElement(m,void 0,g):null})}return v.jsx(i,{...d,ref:o,children:f})});return s.displayName=`${e}.Slot`,s}function Z2(e){const i=S.forwardRef((s,l)=>{const{children:o,...f}=s;if(S.isValidElement(o)){const d=W2(o),h=J2(f,o.props);return o.type!==S.Fragment&&(h.ref=l?Ad(l,d):d),S.cloneElement(o,h)}return S.Children.count(o)>1?S.Children.only(null):null});return i.displayName=`${e}.SlotClone`,i}var I2=Symbol("radix.slottable");function $2(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===I2}function J2(e,i){const s={...i};for(const l in i){const o=e[l],f=i[l];/^on[A-Z]/.test(l)?o&&f?s[l]=(...h)=>{f(...h),o(...h)}:o&&(s[l]=o):l==="style"?s[l]={...o,...f}:l==="className"&&(s[l]=[o,f].filter(Boolean).join(" "))}return{...e,...s}}function W2(e){let i=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?e.ref:(i=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function tE(e){const i=e+"CollectionProvider",[s,l]=Mo(i),[o,f]=s(i,{collectionRef:{current:null},itemMap:new Map}),d=E=>{const{scope:M,children:D}=E,z=he.useRef(null),R=he.useRef(new Map).current;return v.jsx(o,{scope:M,itemMap:R,collectionRef:z,children:D})};d.displayName=i;const h=e+"CollectionSlot",p=kf(h),m=he.forwardRef((E,M)=>{const{scope:D,children:z}=E,R=f(h,D),q=Ae(M,R.collectionRef);return v.jsx(p,{ref:q,children:z})});m.displayName=h;const g=e+"CollectionItemSlot",x="data-radix-collection-item",w=kf(g),T=he.forwardRef((E,M)=>{const{scope:D,children:z,...R}=E,q=he.useRef(null),G=Ae(M,q),Z=f(g,D);return he.useEffect(()=>(Z.itemMap.set(q,{ref:q,...R}),()=>void Z.itemMap.delete(q))),v.jsx(w,{[x]:"",ref:G,children:z})});T.displayName=g;function A(E){const M=f(e+"CollectionConsumer",E);return he.useCallback(()=>{const z=M.collectionRef.current;if(!z)return[];const R=Array.from(z.querySelectorAll(`[${x}]`));return Array.from(M.itemMap.values()).sort((Z,k)=>R.indexOf(Z.ref.current)-R.indexOf(k.ref.current))},[M.collectionRef,M.itemMap])}return[{Provider:d,Slot:m,ItemSlot:T},A,l]}var eE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Sn=eE.reduce((e,i)=>{const s=kf(`Primitive.${i}`),l=S.forwardRef((o,f)=>{const{asChild:d,...h}=o,p=d?s:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(p,{...h,ref:f})});return l.displayName=`Primitive.${i}`,{...e,[i]:l}},{});function ex(e,i){e&&wr.flushSync(()=>e.dispatchEvent(i))}function en(e){const i=S.useRef(e);return S.useEffect(()=>{i.current=e}),S.useMemo(()=>(...s)=>i.current?.(...s),[])}function nx(e,i=globalThis?.document){const s=en(e);S.useEffect(()=>{const l=o=>{o.key==="Escape"&&s(o)};return i.addEventListener("keydown",l,{capture:!0}),()=>i.removeEventListener("keydown",l,{capture:!0})},[s,i])}var nE="DismissableLayer",Pf="dismissableLayer.update",iE="dismissableLayer.pointerDownOutside",aE="dismissableLayer.focusOutside",Iy,ix=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ax=S.forwardRef((e,i)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:l,onPointerDownOutside:o,onFocusOutside:f,onInteractOutside:d,onDismiss:h,...p}=e,m=S.useContext(ix),[g,x]=S.useState(null),w=g?.ownerDocument??globalThis?.document,[,T]=S.useState({}),A=Ae(i,k=>x(k)),E=Array.from(m.layers),[M]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),D=E.indexOf(M),z=g?E.indexOf(g):-1,R=m.layersWithOutsidePointerEventsDisabled.size>0,q=z>=D,G=rE(k=>{const H=k.target,W=[...m.branches].some(st=>st.contains(H));!q||W||(o?.(k),d?.(k),k.defaultPrevented||h?.())},w),Z=lE(k=>{const H=k.target;[...m.branches].some(st=>st.contains(H))||(f?.(k),d?.(k),k.defaultPrevented||h?.())},w);return nx(k=>{z===m.layers.size-1&&(l?.(k),!k.defaultPrevented&&h&&(k.preventDefault(),h()))},w),S.useEffect(()=>{if(g)return s&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(Iy=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(g)),m.layers.add(g),$y(),()=>{s&&m.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=Iy)}},[g,w,s,m]),S.useEffect(()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),$y())},[g,m]),S.useEffect(()=>{const k=()=>T({});return document.addEventListener(Pf,k),()=>document.removeEventListener(Pf,k)},[]),v.jsx(Sn.div,{...p,ref:A,style:{pointerEvents:R?q?"auto":"none":void 0,...e.style},onFocusCapture:Ue(e.onFocusCapture,Z.onFocusCapture),onBlurCapture:Ue(e.onBlurCapture,Z.onBlurCapture),onPointerDownCapture:Ue(e.onPointerDownCapture,G.onPointerDownCapture)})});ax.displayName=nE;var sE="DismissableLayerBranch",sx=S.forwardRef((e,i)=>{const s=S.useContext(ix),l=S.useRef(null),o=Ae(i,l);return S.useEffect(()=>{const f=l.current;if(f)return s.branches.add(f),()=>{s.branches.delete(f)}},[s.branches]),v.jsx(Sn.div,{...e,ref:o})});sx.displayName=sE;function rE(e,i=globalThis?.document){const s=en(e),l=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const f=h=>{if(h.target&&!l.current){let p=function(){rx(iE,s,m,{discrete:!0})};const m={originalEvent:h};h.pointerType==="touch"?(i.removeEventListener("click",o.current),o.current=p,i.addEventListener("click",o.current,{once:!0})):p()}else i.removeEventListener("click",o.current);l.current=!1},d=window.setTimeout(()=>{i.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(d),i.removeEventListener("pointerdown",f),i.removeEventListener("click",o.current)}},[i,s]),{onPointerDownCapture:()=>l.current=!0}}function lE(e,i=globalThis?.document){const s=en(e),l=S.useRef(!1);return S.useEffect(()=>{const o=f=>{f.target&&!l.current&&rx(aE,s,{originalEvent:f},{discrete:!1})};return i.addEventListener("focusin",o),()=>i.removeEventListener("focusin",o)},[i,s]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function $y(){const e=new CustomEvent(Pf);document.dispatchEvent(e)}function rx(e,i,s,{discrete:l}){const o=s.originalEvent.target,f=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:s});i&&o.addEventListener(e,i,{once:!0}),l?ex(o,f):o.dispatchEvent(f)}var oE=ax,cE=sx,bn=globalThis?.document?S.useLayoutEffect:()=>{},uE="Portal",lx=S.forwardRef((e,i)=>{const{container:s,...l}=e,[o,f]=S.useState(!1);bn(()=>f(!0),[]);const d=s||o&&globalThis?.document?.body;return d?tx.createPortal(v.jsx(Sn.div,{...l,ref:i}),d):null});lx.displayName=uE;function fE(e,i){return S.useReducer((s,l)=>i[s][l]??s,e)}var ox=e=>{const{present:i,children:s}=e,l=dE(i),o=typeof s=="function"?s({present:l.isPresent}):S.Children.only(s),f=Ae(l.ref,hE(o));return typeof s=="function"||l.isPresent?S.cloneElement(o,{ref:f}):null};ox.displayName="Presence";function dE(e){const[i,s]=S.useState(),l=S.useRef({}),o=S.useRef(e),f=S.useRef("none"),d=e?"mounted":"unmounted",[h,p]=fE(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const m=Kl(l.current);f.current=h==="mounted"?m:"none"},[h]),bn(()=>{const m=l.current,g=o.current;if(g!==e){const w=f.current,T=Kl(m);e?p("MOUNT"):T==="none"||m?.display==="none"?p("UNMOUNT"):p(g&&w!==T?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,p]),bn(()=>{if(i){let m;const g=i.ownerDocument.defaultView??window,x=T=>{const E=Kl(l.current).includes(T.animationName);if(T.target===i&&E&&(p("ANIMATION_END"),!o.current)){const M=i.style.animationFillMode;i.style.animationFillMode="forwards",m=g.setTimeout(()=>{i.style.animationFillMode==="forwards"&&(i.style.animationFillMode=M)})}},w=T=>{T.target===i&&(f.current=Kl(l.current))};return i.addEventListener("animationstart",w),i.addEventListener("animationcancel",x),i.addEventListener("animationend",x),()=>{g.clearTimeout(m),i.removeEventListener("animationstart",w),i.removeEventListener("animationcancel",x),i.removeEventListener("animationend",x)}}else p("ANIMATION_END")},[i,p]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:S.useCallback(m=>{m&&(l.current=getComputedStyle(m)),s(m)},[])}}function Kl(e){return e?.animationName||"none"}function hE(e){let i=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?e.ref:(i=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function mE({prop:e,defaultProp:i,onChange:s=()=>{}}){const[l,o]=pE({defaultProp:i,onChange:s}),f=e!==void 0,d=f?e:l,h=en(s),p=S.useCallback(m=>{if(f){const x=typeof m=="function"?m(e):m;x!==e&&h(x)}else o(m)},[f,e,o,h]);return[d,p]}function pE({defaultProp:e,onChange:i}){const s=S.useState(e),[l]=s,o=S.useRef(l),f=en(i);return S.useEffect(()=>{o.current!==l&&(f(l),o.current=l)},[l,o,f]),s}var gE="VisuallyHidden",Cd=S.forwardRef((e,i)=>v.jsx(Sn.span,{...e,ref:i,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Cd.displayName=gE;var Md="ToastProvider",[Nd,yE,vE]=tE("Toast"),[cx]=Mo("Toast",[vE]),[xE,No]=cx(Md),ux=e=>{const{__scopeToast:i,label:s="Notification",duration:l=5e3,swipeDirection:o="right",swipeThreshold:f=50,children:d}=e,[h,p]=S.useState(null),[m,g]=S.useState(0),x=S.useRef(!1),w=S.useRef(!1);return s.trim()||console.error(`Invalid prop \`label\` supplied to \`${Md}\`. Expected non-empty \`string\`.`),v.jsx(Nd.Provider,{scope:i,children:v.jsx(xE,{scope:i,label:s,duration:l,swipeDirection:o,swipeThreshold:f,toastCount:m,viewport:h,onViewportChange:p,onToastAdd:S.useCallback(()=>g(T=>T+1),[]),onToastRemove:S.useCallback(()=>g(T=>T-1),[]),isFocusedToastEscapeKeyDownRef:x,isClosePausedRef:w,children:d})})};ux.displayName=Md;var fx="ToastViewport",bE=["F8"],Hf="toast.viewportPause",qf="toast.viewportResume",dx=S.forwardRef((e,i)=>{const{__scopeToast:s,hotkey:l=bE,label:o="Notifications ({hotkey})",...f}=e,d=No(fx,s),h=yE(s),p=S.useRef(null),m=S.useRef(null),g=S.useRef(null),x=S.useRef(null),w=Ae(i,x,d.onViewportChange),T=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),A=d.toastCount>0;S.useEffect(()=>{const M=D=>{l.length!==0&&l.every(R=>D[R]||D.code===R)&&x.current?.focus()};return document.addEventListener("keydown",M),()=>document.removeEventListener("keydown",M)},[l]),S.useEffect(()=>{const M=p.current,D=x.current;if(A&&M&&D){const z=()=>{if(!d.isClosePausedRef.current){const Z=new CustomEvent(Hf);D.dispatchEvent(Z),d.isClosePausedRef.current=!0}},R=()=>{if(d.isClosePausedRef.current){const Z=new CustomEvent(qf);D.dispatchEvent(Z),d.isClosePausedRef.current=!1}},q=Z=>{!M.contains(Z.relatedTarget)&&R()},G=()=>{M.contains(document.activeElement)||R()};return M.addEventListener("focusin",z),M.addEventListener("focusout",q),M.addEventListener("pointermove",z),M.addEventListener("pointerleave",G),window.addEventListener("blur",z),window.addEventListener("focus",R),()=>{M.removeEventListener("focusin",z),M.removeEventListener("focusout",q),M.removeEventListener("pointermove",z),M.removeEventListener("pointerleave",G),window.removeEventListener("blur",z),window.removeEventListener("focus",R)}}},[A,d.isClosePausedRef]);const E=S.useCallback(({tabbingDirection:M})=>{const z=h().map(R=>{const q=R.ref.current,G=[q,..._E(q)];return M==="forwards"?G:G.reverse()});return(M==="forwards"?z.reverse():z).flat()},[h]);return S.useEffect(()=>{const M=x.current;if(M){const D=z=>{const R=z.altKey||z.ctrlKey||z.metaKey;if(z.key==="Tab"&&!R){const G=document.activeElement,Z=z.shiftKey;if(z.target===M&&Z){m.current?.focus();return}const W=E({tabbingDirection:Z?"backwards":"forwards"}),st=W.findIndex(dt=>dt===G);pf(W.slice(st+1))?z.preventDefault():Z?m.current?.focus():g.current?.focus()}};return M.addEventListener("keydown",D),()=>M.removeEventListener("keydown",D)}},[h,E]),v.jsxs(cE,{ref:p,role:"region","aria-label":o.replace("{hotkey}",T),tabIndex:-1,style:{pointerEvents:A?void 0:"none"},children:[A&&v.jsx(Gf,{ref:m,onFocusFromOutsideViewport:()=>{const M=E({tabbingDirection:"forwards"});pf(M)}}),v.jsx(Nd.Slot,{scope:s,children:v.jsx(Sn.ol,{tabIndex:-1,...f,ref:w})}),A&&v.jsx(Gf,{ref:g,onFocusFromOutsideViewport:()=>{const M=E({tabbingDirection:"backwards"});pf(M)}})]})});dx.displayName=fx;var hx="ToastFocusProxy",Gf=S.forwardRef((e,i)=>{const{__scopeToast:s,onFocusFromOutsideViewport:l,...o}=e,f=No(hx,s);return v.jsx(Cd,{"aria-hidden":!0,tabIndex:0,...o,ref:i,style:{position:"fixed"},onFocus:d=>{const h=d.relatedTarget;!f.viewport?.contains(h)&&l()}})});Gf.displayName=hx;var Oo="Toast",wE="toast.swipeStart",SE="toast.swipeMove",TE="toast.swipeCancel",EE="toast.swipeEnd",mx=S.forwardRef((e,i)=>{const{forceMount:s,open:l,defaultOpen:o,onOpenChange:f,...d}=e,[h=!0,p]=mE({prop:l,defaultProp:o,onChange:f});return v.jsx(ox,{present:s||h,children:v.jsx(ME,{open:h,...d,ref:i,onClose:()=>p(!1),onPause:en(e.onPause),onResume:en(e.onResume),onSwipeStart:Ue(e.onSwipeStart,m=>{m.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ue(e.onSwipeMove,m=>{const{x:g,y:x}=m.detail.delta;m.currentTarget.setAttribute("data-swipe","move"),m.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${g}px`),m.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${x}px`)}),onSwipeCancel:Ue(e.onSwipeCancel,m=>{m.currentTarget.setAttribute("data-swipe","cancel"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),m.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),m.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ue(e.onSwipeEnd,m=>{const{x:g,y:x}=m.detail.delta;m.currentTarget.setAttribute("data-swipe","end"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),m.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${g}px`),m.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${x}px`),p(!1)})})})});mx.displayName=Oo;var[AE,CE]=cx(Oo,{onClose(){}}),ME=S.forwardRef((e,i)=>{const{__scopeToast:s,type:l="foreground",duration:o,open:f,onClose:d,onEscapeKeyDown:h,onPause:p,onResume:m,onSwipeStart:g,onSwipeMove:x,onSwipeCancel:w,onSwipeEnd:T,...A}=e,E=No(Oo,s),[M,D]=S.useState(null),z=Ae(i,J=>D(J)),R=S.useRef(null),q=S.useRef(null),G=o||E.duration,Z=S.useRef(0),k=S.useRef(G),H=S.useRef(0),{onToastAdd:W,onToastRemove:st}=E,dt=en(()=>{M?.contains(document.activeElement)&&E.viewport?.focus(),d()}),pt=S.useCallback(J=>{!J||J===1/0||(window.clearTimeout(H.current),Z.current=new Date().getTime(),H.current=window.setTimeout(dt,J))},[dt]);S.useEffect(()=>{const J=E.viewport;if(J){const ht=()=>{pt(k.current),m?.()},_=()=>{const Y=new Date().getTime()-Z.current;k.current=k.current-Y,window.clearTimeout(H.current),p?.()};return J.addEventListener(Hf,_),J.addEventListener(qf,ht),()=>{J.removeEventListener(Hf,_),J.removeEventListener(qf,ht)}}},[E.viewport,G,p,m,pt]),S.useEffect(()=>{f&&!E.isClosePausedRef.current&&pt(G)},[f,G,E.isClosePausedRef,pt]),S.useEffect(()=>(W(),()=>st()),[W,st]);const At=S.useMemo(()=>M?wx(M):null,[M]);return E.viewport?v.jsxs(v.Fragment,{children:[At&&v.jsx(NE,{__scopeToast:s,role:"status","aria-live":l==="foreground"?"assertive":"polite","aria-atomic":!0,children:At}),v.jsx(AE,{scope:s,onClose:dt,children:wr.createPortal(v.jsx(Nd.ItemSlot,{scope:s,children:v.jsx(oE,{asChild:!0,onEscapeKeyDown:Ue(h,()=>{E.isFocusedToastEscapeKeyDownRef.current||dt(),E.isFocusedToastEscapeKeyDownRef.current=!1}),children:v.jsx(Sn.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":f?"open":"closed","data-swipe-direction":E.swipeDirection,...A,ref:z,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ue(e.onKeyDown,J=>{J.key==="Escape"&&(h?.(J.nativeEvent),J.nativeEvent.defaultPrevented||(E.isFocusedToastEscapeKeyDownRef.current=!0,dt()))}),onPointerDown:Ue(e.onPointerDown,J=>{J.button===0&&(R.current={x:J.clientX,y:J.clientY})}),onPointerMove:Ue(e.onPointerMove,J=>{if(!R.current)return;const ht=J.clientX-R.current.x,_=J.clientY-R.current.y,Y=!!q.current,B=["left","right"].includes(E.swipeDirection),it=["left","up"].includes(E.swipeDirection)?Math.min:Math.max,ct=B?it(0,ht):0,N=B?0:it(0,_),K=J.pointerType==="touch"?10:2,I={x:ct,y:N},$={originalEvent:J,delta:I};Y?(q.current=I,Fl(SE,x,$,{discrete:!1})):Jy(I,E.swipeDirection,K)?(q.current=I,Fl(wE,g,$,{discrete:!1}),J.target.setPointerCapture(J.pointerId)):(Math.abs(ht)>K||Math.abs(_)>K)&&(R.current=null)}),onPointerUp:Ue(e.onPointerUp,J=>{const ht=q.current,_=J.target;if(_.hasPointerCapture(J.pointerId)&&_.releasePointerCapture(J.pointerId),q.current=null,R.current=null,ht){const Y=J.currentTarget,B={originalEvent:J,delta:ht};Jy(ht,E.swipeDirection,E.swipeThreshold)?Fl(EE,T,B,{discrete:!0}):Fl(TE,w,B,{discrete:!0}),Y.addEventListener("click",it=>it.preventDefault(),{once:!0})}})})})}),E.viewport)})]}):null}),NE=e=>{const{__scopeToast:i,children:s,...l}=e,o=No(Oo,i),[f,d]=S.useState(!1),[h,p]=S.useState(!1);return DE(()=>d(!0)),S.useEffect(()=>{const m=window.setTimeout(()=>p(!0),1e3);return()=>window.clearTimeout(m)},[]),h?null:v.jsx(lx,{asChild:!0,children:v.jsx(Cd,{...l,children:f&&v.jsxs(v.Fragment,{children:[o.label," ",s]})})})},OE="ToastTitle",px=S.forwardRef((e,i)=>{const{__scopeToast:s,...l}=e;return v.jsx(Sn.div,{...l,ref:i})});px.displayName=OE;var jE="ToastDescription",gx=S.forwardRef((e,i)=>{const{__scopeToast:s,...l}=e;return v.jsx(Sn.div,{...l,ref:i})});gx.displayName=jE;var yx="ToastAction",vx=S.forwardRef((e,i)=>{const{altText:s,...l}=e;return s.trim()?v.jsx(bx,{altText:s,asChild:!0,children:v.jsx(Od,{...l,ref:i})}):(console.error(`Invalid prop \`altText\` supplied to \`${yx}\`. Expected non-empty \`string\`.`),null)});vx.displayName=yx;var xx="ToastClose",Od=S.forwardRef((e,i)=>{const{__scopeToast:s,...l}=e,o=CE(xx,s);return v.jsx(bx,{asChild:!0,children:v.jsx(Sn.button,{type:"button",...l,ref:i,onClick:Ue(e.onClick,o.onClose)})})});Od.displayName=xx;var bx=S.forwardRef((e,i)=>{const{__scopeToast:s,altText:l,...o}=e;return v.jsx(Sn.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":l||void 0,...o,ref:i})});function wx(e){const i=[];return Array.from(e.childNodes).forEach(l=>{if(l.nodeType===l.TEXT_NODE&&l.textContent&&i.push(l.textContent),RE(l)){const o=l.ariaHidden||l.hidden||l.style.display==="none",f=l.dataset.radixToastAnnounceExclude==="";if(!o)if(f){const d=l.dataset.radixToastAnnounceAlt;d&&i.push(d)}else i.push(...wx(l))}}),i}function Fl(e,i,s,{discrete:l}){const o=s.originalEvent.currentTarget,f=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:s});i&&o.addEventListener(e,i,{once:!0}),l?ex(o,f):o.dispatchEvent(f)}var Jy=(e,i,s=0)=>{const l=Math.abs(e.x),o=Math.abs(e.y),f=l>o;return i==="left"||i==="right"?f&&l>s:!f&&o>s};function DE(e=()=>{}){const i=en(e);bn(()=>{let s=0,l=0;return s=window.requestAnimationFrame(()=>l=window.requestAnimationFrame(i)),()=>{window.cancelAnimationFrame(s),window.cancelAnimationFrame(l)}},[i])}function RE(e){return e.nodeType===e.ELEMENT_NODE}function _E(e){const i=[],s=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const o=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||o?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)i.push(s.currentNode);return i}function pf(e){const i=document.activeElement;return e.some(s=>s===i?!0:(s.focus(),document.activeElement!==i))}var zE=ux,Sx=dx,Tx=mx,Ex=px,Ax=gx,Cx=vx,Mx=Od;function Nx(e){var i,s,l="";if(typeof e=="string"||typeof e=="number")l+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(i=0;i<o;i++)e[i]&&(s=Nx(e[i]))&&(l&&(l+=" "),l+=s)}else for(s in e)e[s]&&(l&&(l+=" "),l+=s);return l}function Ox(){for(var e,i,s=0,l="",o=arguments.length;s<o;s++)(e=arguments[s])&&(i=Nx(e))&&(l&&(l+=" "),l+=i);return l}const Wy=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,tv=Ox,LE=(e,i)=>s=>{var l;if(i?.variants==null)return tv(e,s?.class,s?.className);const{variants:o,defaultVariants:f}=i,d=Object.keys(o).map(m=>{const g=s?.[m],x=f?.[m];if(g===null)return null;const w=Wy(g)||Wy(x);return o[m][w]}),h=s&&Object.entries(s).reduce((m,g)=>{let[x,w]=g;return w===void 0||(m[x]=w),m},{}),p=i==null||(l=i.compoundVariants)===null||l===void 0?void 0:l.reduce((m,g)=>{let{class:x,className:w,...T}=g;return Object.entries(T).every(A=>{let[E,M]=A;return Array.isArray(M)?M.includes({...f,...h}[E]):{...f,...h}[E]===M})?[...m,x,w]:m},[]);return tv(e,d,p,s?.class,s?.className)};/**
 * @license lucide-react v0.545.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const VE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),UE=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,s,l)=>l?l.toUpperCase():s.toLowerCase()),ev=e=>{const i=UE(e);return i.charAt(0).toUpperCase()+i.slice(1)},jx=(...e)=>e.filter((i,s,l)=>!!i&&i.trim()!==""&&l.indexOf(i)===s).join(" ").trim(),BE=e=>{for(const i in e)if(i.startsWith("aria-")||i==="role"||i==="title")return!0};/**
 * @license lucide-react v0.545.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var kE={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.545.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const PE=S.forwardRef(({color:e="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:l,className:o="",children:f,iconNode:d,...h},p)=>S.createElement("svg",{ref:p,...kE,width:i,height:i,stroke:e,strokeWidth:l?Number(s)*24/Number(i):s,className:jx("lucide",o),...!f&&!BE(h)&&{"aria-hidden":"true"},...h},[...d.map(([m,g])=>S.createElement(m,g)),...Array.isArray(f)?f:[f]]));/**
 * @license lucide-react v0.545.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=(e,i)=>{const s=S.forwardRef(({className:l,...o},f)=>S.createElement(PE,{ref:f,iconNode:i,className:jx(`lucide-${VE(ev(e))}`,`lucide-${e}`,l),...o}));return s.displayName=ev(e),s};/**
 * @license lucide-react v0.545.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const HE=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],gf=ge("arrow-up-right",HE);/**
 * @license lucide-react v0.545.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qE=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],GE=ge("check",qE);/**
 * @license lucide-react v0.545.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const YE=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],XE=ge("chevron-up",YE);/**
 * @license lucide-react v0.545.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const KE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],FE=ge("circle-alert",KE);/**
 * @license lucide-react v0.545.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const QE=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],jd=ge("cpu",QE);/**
 * @license lucide-react v0.545.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ZE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],jo=ge("globe",ZE);/**
 * @license lucide-react v0.545.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const IE=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],$E=ge("layers",IE);/**
 * @license lucide-react v0.545.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const JE=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],Dd=ge("leaf",JE);/**
 * @license lucide-react v0.545.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const WE=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],tA=ge("menu",WE);/**
 * @license lucide-react v0.545.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eA=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],Rd=ge("mic",eA);/**
 * @license lucide-react v0.545.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nA=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],iA=ge("panels-top-left",nA);/**
 * @license lucide-react v0.545.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const aA=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],nv=ge("phone",aA);/**
 * @license lucide-react v0.545.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sA=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],rA=ge("rocket",sA);/**
 * @license lucide-react v0.545.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lA=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],oA=ge("share-2",lA);/**
 * @license lucide-react v0.545.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cA=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Yf=ge("x",cA),_d="-",uA=e=>{const i=dA(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:l}=e;return{getClassGroupId:d=>{const h=d.split(_d);return h[0]===""&&h.length!==1&&h.shift(),Dx(h,i)||fA(d)},getConflictingClassGroupIds:(d,h)=>{const p=s[d]||[];return h&&l[d]?[...p,...l[d]]:p}}},Dx=(e,i)=>{if(e.length===0)return i.classGroupId;const s=e[0],l=i.nextPart.get(s),o=l?Dx(e.slice(1),l):void 0;if(o)return o;if(i.validators.length===0)return;const f=e.join(_d);return i.validators.find(({validator:d})=>d(f))?.classGroupId},iv=/^\[(.+)\]$/,fA=e=>{if(iv.test(e)){const i=iv.exec(e)[1],s=i?.substring(0,i.indexOf(":"));if(s)return"arbitrary.."+s}},dA=e=>{const{theme:i,classGroups:s}=e,l={nextPart:new Map,validators:[]};for(const o in s)Xf(s[o],l,o,i);return l},Xf=(e,i,s,l)=>{e.forEach(o=>{if(typeof o=="string"){const f=o===""?i:av(i,o);f.classGroupId=s;return}if(typeof o=="function"){if(hA(o)){Xf(o(l),i,s,l);return}i.validators.push({validator:o,classGroupId:s});return}Object.entries(o).forEach(([f,d])=>{Xf(d,av(i,f),s,l)})})},av=(e,i)=>{let s=e;return i.split(_d).forEach(l=>{s.nextPart.has(l)||s.nextPart.set(l,{nextPart:new Map,validators:[]}),s=s.nextPart.get(l)}),s},hA=e=>e.isThemeGetter,mA=e=>{if(e<1)return{get:()=>{},set:()=>{}};let i=0,s=new Map,l=new Map;const o=(f,d)=>{s.set(f,d),i++,i>e&&(i=0,l=s,s=new Map)};return{get(f){let d=s.get(f);if(d!==void 0)return d;if((d=l.get(f))!==void 0)return o(f,d),d},set(f,d){s.has(f)?s.set(f,d):o(f,d)}}},Kf="!",Ff=":",pA=Ff.length,gA=e=>{const{prefix:i,experimentalParseClassName:s}=e;let l=o=>{const f=[];let d=0,h=0,p=0,m;for(let A=0;A<o.length;A++){let E=o[A];if(d===0&&h===0){if(E===Ff){f.push(o.slice(p,A)),p=A+pA;continue}if(E==="/"){m=A;continue}}E==="["?d++:E==="]"?d--:E==="("?h++:E===")"&&h--}const g=f.length===0?o:o.substring(p),x=yA(g),w=x!==g,T=m&&m>p?m-p:void 0;return{modifiers:f,hasImportantModifier:w,baseClassName:x,maybePostfixModifierPosition:T}};if(i){const o=i+Ff,f=l;l=d=>d.startsWith(o)?f(d.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:d,maybePostfixModifierPosition:void 0}}if(s){const o=l;l=f=>s({className:f,parseClassName:o})}return l},yA=e=>e.endsWith(Kf)?e.substring(0,e.length-1):e.startsWith(Kf)?e.substring(1):e,vA=e=>{const i=Object.fromEntries(e.orderSensitiveModifiers.map(l=>[l,!0]));return l=>{if(l.length<=1)return l;const o=[];let f=[];return l.forEach(d=>{d[0]==="["||i[d]?(o.push(...f.sort(),d),f=[]):f.push(d)}),o.push(...f.sort()),o}},xA=e=>({cache:mA(e.cacheSize),parseClassName:gA(e),sortModifiers:vA(e),...uA(e)}),bA=/\s+/,wA=(e,i)=>{const{parseClassName:s,getClassGroupId:l,getConflictingClassGroupIds:o,sortModifiers:f}=i,d=[],h=e.trim().split(bA);let p="";for(let m=h.length-1;m>=0;m-=1){const g=h[m],{isExternal:x,modifiers:w,hasImportantModifier:T,baseClassName:A,maybePostfixModifierPosition:E}=s(g);if(x){p=g+(p.length>0?" "+p:p);continue}let M=!!E,D=l(M?A.substring(0,E):A);if(!D){if(!M){p=g+(p.length>0?" "+p:p);continue}if(D=l(A),!D){p=g+(p.length>0?" "+p:p);continue}M=!1}const z=f(w).join(":"),R=T?z+Kf:z,q=R+D;if(d.includes(q))continue;d.push(q);const G=o(D,M);for(let Z=0;Z<G.length;++Z){const k=G[Z];d.push(R+k)}p=g+(p.length>0?" "+p:p)}return p};function SA(){let e=0,i,s,l="";for(;e<arguments.length;)(i=arguments[e++])&&(s=Rx(i))&&(l&&(l+=" "),l+=s);return l}const Rx=e=>{if(typeof e=="string")return e;let i,s="";for(let l=0;l<e.length;l++)e[l]&&(i=Rx(e[l]))&&(s&&(s+=" "),s+=i);return s};function TA(e,...i){let s,l,o,f=d;function d(p){const m=i.reduce((g,x)=>x(g),e());return s=xA(m),l=s.cache.get,o=s.cache.set,f=h,h(p)}function h(p){const m=l(p);if(m)return m;const g=wA(p,s);return o(p,g),g}return function(){return f(SA.apply(null,arguments))}}const ee=e=>{const i=s=>s[e]||[];return i.isThemeGetter=!0,i},_x=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,zx=/^\((?:(\w[\w-]*):)?(.+)\)$/i,EA=/^\d+\/\d+$/,AA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,CA=/\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$/,MA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,NA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,OA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,qa=e=>EA.test(e),bt=e=>!!e&&!Number.isNaN(Number(e)),vi=e=>!!e&&Number.isInteger(Number(e)),yf=e=>e.endsWith("%")&&bt(e.slice(0,-1)),qn=e=>AA.test(e),jA=()=>!0,DA=e=>CA.test(e)&&!MA.test(e),Lx=()=>!1,RA=e=>NA.test(e),_A=e=>OA.test(e),zA=e=>!et(e)&&!nt(e),LA=e=>es(e,Bx,Lx),et=e=>_x.test(e),Ki=e=>es(e,kx,DA),vf=e=>es(e,PA,bt),sv=e=>es(e,Vx,Lx),VA=e=>es(e,Ux,_A),Ql=e=>es(e,Px,RA),nt=e=>zx.test(e),nr=e=>ns(e,kx),UA=e=>ns(e,HA),rv=e=>ns(e,Vx),BA=e=>ns(e,Bx),kA=e=>ns(e,Ux),Zl=e=>ns(e,Px,!0),es=(e,i,s)=>{const l=_x.exec(e);return l?l[1]?i(l[1]):s(l[2]):!1},ns=(e,i,s=!1)=>{const l=zx.exec(e);return l?l[1]?i(l[1]):s:!1},Vx=e=>e==="position"||e==="percentage",Ux=e=>e==="image"||e==="url",Bx=e=>e==="length"||e==="size"||e==="bg-size",kx=e=>e==="length",PA=e=>e==="number",HA=e=>e==="family-name",Px=e=>e==="shadow",qA=()=>{const e=ee("color"),i=ee("font"),s=ee("text"),l=ee("font-weight"),o=ee("tracking"),f=ee("leading"),d=ee("breakpoint"),h=ee("container"),p=ee("spacing"),m=ee("radius"),g=ee("shadow"),x=ee("inset-shadow"),w=ee("text-shadow"),T=ee("drop-shadow"),A=ee("blur"),E=ee("perspective"),M=ee("aspect"),D=ee("ease"),z=ee("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],q=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...q(),nt,et],Z=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],H=()=>[nt,et,p],W=()=>[qa,"full","auto",...H()],st=()=>[vi,"none","subgrid",nt,et],dt=()=>["auto",{span:["full",vi,nt,et]},vi,nt,et],pt=()=>[vi,"auto",nt,et],At=()=>["auto","min","max","fr",nt,et],J=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ht=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...H()],Y=()=>[qa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],B=()=>[e,nt,et],it=()=>[...q(),rv,sv,{position:[nt,et]}],ct=()=>["no-repeat",{repeat:["","x","y","space","round"]}],N=()=>["auto","cover","contain",BA,LA,{size:[nt,et]}],K=()=>[yf,nr,Ki],I=()=>["","none","full",m,nt,et],$=()=>["",bt,nr,Ki],ut=()=>["solid","dashed","dotted","double"],gt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],rt=()=>[bt,yf,rv,sv],Xt=()=>["","none",A,nt,et],Rt=()=>["none",bt,nt,et],Pe=()=>["none",bt,nt,et],un=()=>[bt,nt,et],fn=()=>[qa,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[qn],breakpoint:[qn],color:[jA],container:[qn],"drop-shadow":[qn],ease:["in","out","in-out"],font:[zA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[qn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[qn],shadow:[qn],spacing:["px",bt],text:[qn],"text-shadow":[qn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",qa,et,nt,M]}],container:["container"],columns:[{columns:[bt,et,nt,h]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"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:G()}],overflow:[{overflow:Z()}],"overflow-x":[{"overflow-x":Z()}],"overflow-y":[{"overflow-y":Z()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{start:W()}],end:[{end:W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[vi,"auto",nt,et]}],basis:[{basis:[qa,"full","auto",h,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[bt,qa,"auto","initial","none",et]}],grow:[{grow:["",bt,nt,et]}],shrink:[{shrink:["",bt,nt,et]}],order:[{order:[vi,"first","last","none",nt,et]}],"grid-cols":[{"grid-cols":st()}],"col-start-end":[{col:dt()}],"col-start":[{"col-start":pt()}],"col-end":[{"col-end":pt()}],"grid-rows":[{"grid-rows":st()}],"row-start-end":[{row:dt()}],"row-start":[{"row-start":pt()}],"row-end":[{"row-end":pt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":At()}],"auto-rows":[{"auto-rows":At()}],gap:[{gap:H()}],"gap-x":[{"gap-x":H()}],"gap-y":[{"gap-y":H()}],"justify-content":[{justify:[...J(),"normal"]}],"justify-items":[{"justify-items":[...ht(),"normal"]}],"justify-self":[{"justify-self":["auto",...ht()]}],"align-content":[{content:["normal",...J()]}],"align-items":[{items:[...ht(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ht(),{baseline:["","last"]}]}],"place-content":[{"place-content":J()}],"place-items":[{"place-items":[...ht(),"baseline"]}],"place-self":[{"place-self":["auto",...ht()]}],p:[{p:H()}],px:[{px:H()}],py:[{py:H()}],ps:[{ps:H()}],pe:[{pe:H()}],pt:[{pt:H()}],pr:[{pr:H()}],pb:[{pb:H()}],pl:[{pl:H()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],w:[{w:[h,"screen",...Y()]}],"min-w":[{"min-w":[h,"screen","none",...Y()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[d]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",s,nr,Ki]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,nt,vf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",yf,et]}],"font-family":[{font:[UA,et,i]}],"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:[o,nt,et]}],"line-clamp":[{"line-clamp":[bt,"none",nt,vf]}],leading:[{leading:[f,...H()]}],"list-image":[{"list-image":["none",nt,et]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",nt,et]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ut(),"wavy"]}],"text-decoration-thickness":[{decoration:[bt,"from-font","auto",nt,Ki]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[bt,"auto",nt,et]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",nt,et]}],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",nt,et]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:it()}],"bg-repeat":[{bg:ct()}],"bg-size":[{bg:N()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},vi,nt,et],radial:["",nt,et],conic:[vi,nt,et]},kA,VA]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:K()}],"gradient-via-pos":[{via:K()}],"gradient-to-pos":[{to:K()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ut(),"hidden","none"]}],"divide-style":[{divide:[...ut(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...ut(),"none","hidden"]}],"outline-offset":[{"outline-offset":[bt,nt,et]}],"outline-w":[{outline:["",bt,nr,Ki]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",g,Zl,Ql]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",x,Zl,Ql]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[bt,Ki]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":$()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",w,Zl,Ql]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[bt,nt,et]}],"mix-blend":[{"mix-blend":[...gt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":gt()}],"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":[bt]}],"mask-image-linear-from-pos":[{"mask-linear-from":rt()}],"mask-image-linear-to-pos":[{"mask-linear-to":rt()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":rt()}],"mask-image-t-to-pos":[{"mask-t-to":rt()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":rt()}],"mask-image-r-to-pos":[{"mask-r-to":rt()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":rt()}],"mask-image-b-to-pos":[{"mask-b-to":rt()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":rt()}],"mask-image-l-to-pos":[{"mask-l-to":rt()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":rt()}],"mask-image-x-to-pos":[{"mask-x-to":rt()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":rt()}],"mask-image-y-to-pos":[{"mask-y-to":rt()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[nt,et]}],"mask-image-radial-from-pos":[{"mask-radial-from":rt()}],"mask-image-radial-to-pos":[{"mask-radial-to":rt()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"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":q()}],"mask-image-conic-pos":[{"mask-conic":[bt]}],"mask-image-conic-from-pos":[{"mask-conic-from":rt()}],"mask-image-conic-to-pos":[{"mask-conic-to":rt()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:it()}],"mask-repeat":[{mask:ct()}],"mask-size":[{mask:N()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",nt,et]}],filter:[{filter:["","none",nt,et]}],blur:[{blur:Xt()}],brightness:[{brightness:[bt,nt,et]}],contrast:[{contrast:[bt,nt,et]}],"drop-shadow":[{"drop-shadow":["","none",T,Zl,Ql]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",bt,nt,et]}],"hue-rotate":[{"hue-rotate":[bt,nt,et]}],invert:[{invert:["",bt,nt,et]}],saturate:[{saturate:[bt,nt,et]}],sepia:[{sepia:["",bt,nt,et]}],"backdrop-filter":[{"backdrop-filter":["","none",nt,et]}],"backdrop-blur":[{"backdrop-blur":Xt()}],"backdrop-brightness":[{"backdrop-brightness":[bt,nt,et]}],"backdrop-contrast":[{"backdrop-contrast":[bt,nt,et]}],"backdrop-grayscale":[{"backdrop-grayscale":["",bt,nt,et]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[bt,nt,et]}],"backdrop-invert":[{"backdrop-invert":["",bt,nt,et]}],"backdrop-opacity":[{"backdrop-opacity":[bt,nt,et]}],"backdrop-saturate":[{"backdrop-saturate":[bt,nt,et]}],"backdrop-sepia":[{"backdrop-sepia":["",bt,nt,et]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":H()}],"border-spacing-x":[{"border-spacing-x":H()}],"border-spacing-y":[{"border-spacing-y":H()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",nt,et]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[bt,"initial",nt,et]}],ease:[{ease:["linear","initial",D,nt,et]}],delay:[{delay:[bt,nt,et]}],animate:[{animate:["none",z,nt,et]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,nt,et]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:Rt()}],"rotate-x":[{"rotate-x":Rt()}],"rotate-y":[{"rotate-y":Rt()}],"rotate-z":[{"rotate-z":Rt()}],scale:[{scale:Pe()}],"scale-x":[{"scale-x":Pe()}],"scale-y":[{"scale-y":Pe()}],"scale-z":[{"scale-z":Pe()}],"scale-3d":["scale-3d"],skew:[{skew:un()}],"skew-x":[{"skew-x":un()}],"skew-y":[{"skew-y":un()}],transform:[{transform:[nt,et,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:fn()}],"translate-x":[{"translate-x":fn()}],"translate-y":[{"translate-y":fn()}],"translate-z":[{"translate-z":fn()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"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",nt,et]}],"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":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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",nt,et]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[bt,nr,Ki,vf]}],stroke:[{stroke:["none",...B()]}],"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"]}},GA=TA(qA);function ke(...e){return GA(Ox(e))}const YA=zE,Hx=S.forwardRef(({className:e,...i},s)=>v.jsx(Sx,{ref:s,className:ke("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...i}));Hx.displayName=Sx.displayName;const XA=LE("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),qx=S.forwardRef(({className:e,variant:i,...s},l)=>v.jsx(Tx,{ref:l,className:ke(XA({variant:i}),e),...s}));qx.displayName=Tx.displayName;const KA=S.forwardRef(({className:e,...i},s)=>v.jsx(Cx,{ref:s,className:ke("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...i}));KA.displayName=Cx.displayName;const Gx=S.forwardRef(({className:e,...i},s)=>v.jsx(Mx,{ref:s,className:ke("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...i,children:v.jsx(Yf,{className:"h-4 w-4"})}));Gx.displayName=Mx.displayName;const Yx=S.forwardRef(({className:e,...i},s)=>v.jsx(Ex,{ref:s,className:ke("text-sm font-semibold",e),...i}));Yx.displayName=Ex.displayName;const Xx=S.forwardRef(({className:e,...i},s)=>v.jsx(Ax,{ref:s,className:ke("text-sm opacity-90",e),...i}));Xx.displayName=Ax.displayName;function FA(){const{toasts:e}=F2();return v.jsxs(YA,{children:[e.map(function({id:i,title:s,description:l,action:o,...f}){return v.jsxs(qx,{...f,children:[v.jsxs("div",{className:"grid gap-1",children:[s&&v.jsx(Yx,{children:s}),l&&v.jsx(Xx,{children:l})]}),o,v.jsx(Gx,{})]},i)}),v.jsx(Hx,{})]})}function Ga(e,i,{checkForDefaultPrevented:s=!0}={}){return function(o){if(e?.(o),s===!1||!o.defaultPrevented)return i?.(o)}}function xf(e,i,{checkForDefaultPrevented:s=!0}={}){return function(o){if(e?.(o),s===!1||!o.defaultPrevented)return i?.(o)}}function QA(e){const i=ZA(e),s=S.forwardRef((l,o)=>{const{children:f,...d}=l,h=S.Children.toArray(f),p=h.find($A);if(p){const m=p.props.children,g=h.map(x=>x===p?S.Children.count(m)>1?S.Children.only(null):S.isValidElement(m)?m.props.children:null:x);return v.jsx(i,{...d,ref:o,children:S.isValidElement(m)?S.cloneElement(m,void 0,g):null})}return v.jsx(i,{...d,ref:o,children:f})});return s.displayName=`${e}.Slot`,s}function ZA(e){const i=S.forwardRef((s,l)=>{const{children:o,...f}=s;if(S.isValidElement(o)){const d=WA(o),h=JA(f,o.props);return o.type!==S.Fragment&&(h.ref=l?Ad(l,d):d),S.cloneElement(o,h)}return S.Children.count(o)>1?S.Children.only(null):null});return i.displayName=`${e}.SlotClone`,i}var IA=Symbol("radix.slottable");function $A(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===IA}function JA(e,i){const s={...i};for(const l in i){const o=e[l],f=i[l];/^on[A-Z]/.test(l)?o&&f?s[l]=(...h)=>{const p=f(...h);return o(...h),p}:o&&(s[l]=o):l==="style"?s[l]={...o,...f}:l==="className"&&(s[l]=[o,f].filter(Boolean).join(" "))}return{...e,...s}}function WA(e){let i=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?e.ref:(i=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var tC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ei=tC.reduce((e,i)=>{const s=QA(`Primitive.${i}`),l=S.forwardRef((o,f)=>{const{asChild:d,...h}=o,p=d?s:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(p,{...h,ref:f})});return l.displayName=`Primitive.${i}`,{...e,[i]:l}},{});function eC(e,i){e&&wr.flushSync(()=>e.dispatchEvent(i))}var nC="DismissableLayer",Qf="dismissableLayer.update",iC="dismissableLayer.pointerDownOutside",aC="dismissableLayer.focusOutside",lv,Kx=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Fx=S.forwardRef((e,i)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:l,onPointerDownOutside:o,onFocusOutside:f,onInteractOutside:d,onDismiss:h,...p}=e,m=S.useContext(Kx),[g,x]=S.useState(null),w=g?.ownerDocument??globalThis?.document,[,T]=S.useState({}),A=Ae(i,k=>x(k)),E=Array.from(m.layers),[M]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),D=E.indexOf(M),z=g?E.indexOf(g):-1,R=m.layersWithOutsidePointerEventsDisabled.size>0,q=z>=D,G=lC(k=>{const H=k.target,W=[...m.branches].some(st=>st.contains(H));!q||W||(o?.(k),d?.(k),k.defaultPrevented||h?.())},w),Z=oC(k=>{const H=k.target;[...m.branches].some(st=>st.contains(H))||(f?.(k),d?.(k),k.defaultPrevented||h?.())},w);return nx(k=>{z===m.layers.size-1&&(l?.(k),!k.defaultPrevented&&h&&(k.preventDefault(),h()))},w),S.useEffect(()=>{if(g)return s&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(lv=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(g)),m.layers.add(g),ov(),()=>{s&&m.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=lv)}},[g,w,s,m]),S.useEffect(()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),ov())},[g,m]),S.useEffect(()=>{const k=()=>T({});return document.addEventListener(Qf,k),()=>document.removeEventListener(Qf,k)},[]),v.jsx(Ei.div,{...p,ref:A,style:{pointerEvents:R?q?"auto":"none":void 0,...e.style},onFocusCapture:xf(e.onFocusCapture,Z.onFocusCapture),onBlurCapture:xf(e.onBlurCapture,Z.onBlurCapture),onPointerDownCapture:xf(e.onPointerDownCapture,G.onPointerDownCapture)})});Fx.displayName=nC;var sC="DismissableLayerBranch",rC=S.forwardRef((e,i)=>{const s=S.useContext(Kx),l=S.useRef(null),o=Ae(i,l);return S.useEffect(()=>{const f=l.current;if(f)return s.branches.add(f),()=>{s.branches.delete(f)}},[s.branches]),v.jsx(Ei.div,{...e,ref:o})});rC.displayName=sC;function lC(e,i=globalThis?.document){const s=en(e),l=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const f=h=>{if(h.target&&!l.current){let p=function(){Qx(iC,s,m,{discrete:!0})};const m={originalEvent:h};h.pointerType==="touch"?(i.removeEventListener("click",o.current),o.current=p,i.addEventListener("click",o.current,{once:!0})):p()}else i.removeEventListener("click",o.current);l.current=!1},d=window.setTimeout(()=>{i.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(d),i.removeEventListener("pointerdown",f),i.removeEventListener("click",o.current)}},[i,s]),{onPointerDownCapture:()=>l.current=!0}}function oC(e,i=globalThis?.document){const s=en(e),l=S.useRef(!1);return S.useEffect(()=>{const o=f=>{f.target&&!l.current&&Qx(aC,s,{originalEvent:f},{discrete:!1})};return i.addEventListener("focusin",o),()=>i.removeEventListener("focusin",o)},[i,s]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function ov(){const e=new CustomEvent(Qf);document.dispatchEvent(e)}function Qx(e,i,s,{discrete:l}){const o=s.originalEvent.target,f=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:s});i&&o.addEventListener(e,i,{once:!0}),l?eC(o,f):o.dispatchEvent(f)}const cC=["top","right","bottom","left"],bi=Math.min,Ve=Math.max,uo=Math.round,Il=Math.floor,yn=e=>({x:e,y:e}),uC={left:"right",right:"left",bottom:"top",top:"bottom"},fC={start:"end",end:"start"};function Zf(e,i,s){return Ve(e,bi(i,s))}function Gn(e,i){return typeof e=="function"?e(i):e}function Yn(e){return e.split("-")[0]}function is(e){return e.split("-")[1]}function zd(e){return e==="x"?"y":"x"}function Ld(e){return e==="y"?"height":"width"}const dC=new Set(["top","bottom"]);function gn(e){return dC.has(Yn(e))?"y":"x"}function Vd(e){return zd(gn(e))}function hC(e,i,s){s===void 0&&(s=!1);const l=is(e),o=Vd(e),f=Ld(o);let d=o==="x"?l===(s?"end":"start")?"right":"left":l==="start"?"bottom":"top";return i.reference[f]>i.floating[f]&&(d=fo(d)),[d,fo(d)]}function mC(e){const i=fo(e);return[If(e),i,If(i)]}function If(e){return e.replace(/start|end/g,i=>fC[i])}const cv=["left","right"],uv=["right","left"],pC=["top","bottom"],gC=["bottom","top"];function yC(e,i,s){switch(e){case"top":case"bottom":return s?i?uv:cv:i?cv:uv;case"left":case"right":return i?pC:gC;default:return[]}}function vC(e,i,s,l){const o=is(e);let f=yC(Yn(e),s==="start",l);return o&&(f=f.map(d=>d+"-"+o),i&&(f=f.concat(f.map(If)))),f}function fo(e){return e.replace(/left|right|bottom|top/g,i=>uC[i])}function xC(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zx(e){return typeof e!="number"?xC(e):{top:e,right:e,bottom:e,left:e}}function ho(e){const{x:i,y:s,width:l,height:o}=e;return{width:l,height:o,top:s,left:i,right:i+l,bottom:s+o,x:i,y:s}}function fv(e,i,s){let{reference:l,floating:o}=e;const f=gn(i),d=Vd(i),h=Ld(d),p=Yn(i),m=f==="y",g=l.x+l.width/2-o.width/2,x=l.y+l.height/2-o.height/2,w=l[h]/2-o[h]/2;let T;switch(p){case"top":T={x:g,y:l.y-o.height};break;case"bottom":T={x:g,y:l.y+l.height};break;case"right":T={x:l.x+l.width,y:x};break;case"left":T={x:l.x-o.width,y:x};break;default:T={x:l.x,y:l.y}}switch(is(i)){case"start":T[d]-=w*(s&&m?-1:1);break;case"end":T[d]+=w*(s&&m?-1:1);break}return T}const bC=async(e,i,s)=>{const{placement:l="bottom",strategy:o="absolute",middleware:f=[],platform:d}=s,h=f.filter(Boolean),p=await(d.isRTL==null?void 0:d.isRTL(i));let m=await d.getElementRects({reference:e,floating:i,strategy:o}),{x:g,y:x}=fv(m,l,p),w=l,T={},A=0;for(let E=0;E<h.length;E++){const{name:M,fn:D}=h[E],{x:z,y:R,data:q,reset:G}=await D({x:g,y:x,initialPlacement:l,placement:w,strategy:o,middlewareData:T,rects:m,platform:d,elements:{reference:e,floating:i}});g=z??g,x=R??x,T={...T,[M]:{...T[M],...q}},G&&A<=50&&(A++,typeof G=="object"&&(G.placement&&(w=G.placement),G.rects&&(m=G.rects===!0?await d.getElementRects({reference:e,floating:i,strategy:o}):G.rects),{x:g,y:x}=fv(m,w,p)),E=-1)}return{x:g,y:x,placement:w,strategy:o,middlewareData:T}};async function hr(e,i){var s;i===void 0&&(i={});const{x:l,y:o,platform:f,rects:d,elements:h,strategy:p}=e,{boundary:m="clippingAncestors",rootBoundary:g="viewport",elementContext:x="floating",altBoundary:w=!1,padding:T=0}=Gn(i,e),A=Zx(T),M=h[w?x==="floating"?"reference":"floating":x],D=ho(await f.getClippingRect({element:(s=await(f.isElement==null?void 0:f.isElement(M)))==null||s?M:M.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(h.floating)),boundary:m,rootBoundary:g,strategy:p})),z=x==="floating"?{x:l,y:o,width:d.floating.width,height:d.floating.height}:d.reference,R=await(f.getOffsetParent==null?void 0:f.getOffsetParent(h.floating)),q=await(f.isElement==null?void 0:f.isElement(R))?await(f.getScale==null?void 0:f.getScale(R))||{x:1,y:1}:{x:1,y:1},G=ho(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:z,offsetParent:R,strategy:p}):z);return{top:(D.top-G.top+A.top)/q.y,bottom:(G.bottom-D.bottom+A.bottom)/q.y,left:(D.left-G.left+A.left)/q.x,right:(G.right-D.right+A.right)/q.x}}const wC=e=>({name:"arrow",options:e,async fn(i){const{x:s,y:l,placement:o,rects:f,platform:d,elements:h,middlewareData:p}=i,{element:m,padding:g=0}=Gn(e,i)||{};if(m==null)return{};const x=Zx(g),w={x:s,y:l},T=Vd(o),A=Ld(T),E=await d.getDimensions(m),M=T==="y",D=M?"top":"left",z=M?"bottom":"right",R=M?"clientHeight":"clientWidth",q=f.reference[A]+f.reference[T]-w[T]-f.floating[A],G=w[T]-f.reference[T],Z=await(d.getOffsetParent==null?void 0:d.getOffsetParent(m));let k=Z?Z[R]:0;(!k||!await(d.isElement==null?void 0:d.isElement(Z)))&&(k=h.floating[R]||f.floating[A]);const H=q/2-G/2,W=k/2-E[A]/2-1,st=bi(x[D],W),dt=bi(x[z],W),pt=st,At=k-E[A]-dt,J=k/2-E[A]/2+H,ht=Zf(pt,J,At),_=!p.arrow&&is(o)!=null&&J!==ht&&f.reference[A]/2-(J<pt?st:dt)-E[A]/2<0,Y=_?J<pt?J-pt:J-At:0;return{[T]:w[T]+Y,data:{[T]:ht,centerOffset:J-ht-Y,..._&&{alignmentOffset:Y}},reset:_}}}),SC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(i){var s,l;const{placement:o,middlewareData:f,rects:d,initialPlacement:h,platform:p,elements:m}=i,{mainAxis:g=!0,crossAxis:x=!0,fallbackPlacements:w,fallbackStrategy:T="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:E=!0,...M}=Gn(e,i);if((s=f.arrow)!=null&&s.alignmentOffset)return{};const D=Yn(o),z=gn(h),R=Yn(h)===h,q=await(p.isRTL==null?void 0:p.isRTL(m.floating)),G=w||(R||!E?[fo(h)]:mC(h)),Z=A!=="none";!w&&Z&&G.push(...vC(h,E,A,q));const k=[h,...G],H=await hr(i,M),W=[];let st=((l=f.flip)==null?void 0:l.overflows)||[];if(g&&W.push(H[D]),x){const J=hC(o,d,q);W.push(H[J[0]],H[J[1]])}if(st=[...st,{placement:o,overflows:W}],!W.every(J=>J<=0)){var dt,pt;const J=(((dt=f.flip)==null?void 0:dt.index)||0)+1,ht=k[J];if(ht&&(!(x==="alignment"?z!==gn(ht):!1)||st.every(B=>gn(B.placement)===z?B.overflows[0]>0:!0)))return{data:{index:J,overflows:st},reset:{placement:ht}};let _=(pt=st.filter(Y=>Y.overflows[0]<=0).sort((Y,B)=>Y.overflows[1]-B.overflows[1])[0])==null?void 0:pt.placement;if(!_)switch(T){case"bestFit":{var At;const Y=(At=st.filter(B=>{if(Z){const it=gn(B.placement);return it===z||it==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(it=>it>0).reduce((it,ct)=>it+ct,0)]).sort((B,it)=>B[1]-it[1])[0])==null?void 0:At[0];Y&&(_=Y);break}case"initialPlacement":_=h;break}if(o!==_)return{reset:{placement:_}}}return{}}}};function dv(e,i){return{top:e.top-i.height,right:e.right-i.width,bottom:e.bottom-i.height,left:e.left-i.width}}function hv(e){return cC.some(i=>e[i]>=0)}const TC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(i){const{rects:s}=i,{strategy:l="referenceHidden",...o}=Gn(e,i);switch(l){case"referenceHidden":{const f=await hr(i,{...o,elementContext:"reference"}),d=dv(f,s.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:hv(d)}}}case"escaped":{const f=await hr(i,{...o,altBoundary:!0}),d=dv(f,s.floating);return{data:{escapedOffsets:d,escaped:hv(d)}}}default:return{}}}}},Ix=new Set(["left","top"]);async function EC(e,i){const{placement:s,platform:l,elements:o}=e,f=await(l.isRTL==null?void 0:l.isRTL(o.floating)),d=Yn(s),h=is(s),p=gn(s)==="y",m=Ix.has(d)?-1:1,g=f&&p?-1:1,x=Gn(i,e);let{mainAxis:w,crossAxis:T,alignmentAxis:A}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return h&&typeof A=="number"&&(T=h==="end"?A*-1:A),p?{x:T*g,y:w*m}:{x:w*m,y:T*g}}const AC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(i){var s,l;const{x:o,y:f,placement:d,middlewareData:h}=i,p=await EC(i,e);return d===((s=h.offset)==null?void 0:s.placement)&&(l=h.arrow)!=null&&l.alignmentOffset?{}:{x:o+p.x,y:f+p.y,data:{...p,placement:d}}}}},CC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(i){const{x:s,y:l,placement:o}=i,{mainAxis:f=!0,crossAxis:d=!1,limiter:h={fn:M=>{let{x:D,y:z}=M;return{x:D,y:z}}},...p}=Gn(e,i),m={x:s,y:l},g=await hr(i,p),x=gn(Yn(o)),w=zd(x);let T=m[w],A=m[x];if(f){const M=w==="y"?"top":"left",D=w==="y"?"bottom":"right",z=T+g[M],R=T-g[D];T=Zf(z,T,R)}if(d){const M=x==="y"?"top":"left",D=x==="y"?"bottom":"right",z=A+g[M],R=A-g[D];A=Zf(z,A,R)}const E=h.fn({...i,[w]:T,[x]:A});return{...E,data:{x:E.x-s,y:E.y-l,enabled:{[w]:f,[x]:d}}}}}},MC=function(e){return e===void 0&&(e={}),{options:e,fn(i){const{x:s,y:l,placement:o,rects:f,middlewareData:d}=i,{offset:h=0,mainAxis:p=!0,crossAxis:m=!0}=Gn(e,i),g={x:s,y:l},x=gn(o),w=zd(x);let T=g[w],A=g[x];const E=Gn(h,i),M=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(p){const R=w==="y"?"height":"width",q=f.reference[w]-f.floating[R]+M.mainAxis,G=f.reference[w]+f.reference[R]-M.mainAxis;T<q?T=q:T>G&&(T=G)}if(m){var D,z;const R=w==="y"?"width":"height",q=Ix.has(Yn(o)),G=f.reference[x]-f.floating[R]+(q&&((D=d.offset)==null?void 0:D[x])||0)+(q?0:M.crossAxis),Z=f.reference[x]+f.reference[R]+(q?0:((z=d.offset)==null?void 0:z[x])||0)-(q?M.crossAxis:0);A<G?A=G:A>Z&&(A=Z)}return{[w]:T,[x]:A}}}},NC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(i){var s,l;const{placement:o,rects:f,platform:d,elements:h}=i,{apply:p=()=>{},...m}=Gn(e,i),g=await hr(i,m),x=Yn(o),w=is(o),T=gn(o)==="y",{width:A,height:E}=f.floating;let M,D;x==="top"||x==="bottom"?(M=x,D=w===(await(d.isRTL==null?void 0:d.isRTL(h.floating))?"start":"end")?"left":"right"):(D=x,M=w==="end"?"top":"bottom");const z=E-g.top-g.bottom,R=A-g.left-g.right,q=bi(E-g[M],z),G=bi(A-g[D],R),Z=!i.middlewareData.shift;let k=q,H=G;if((s=i.middlewareData.shift)!=null&&s.enabled.x&&(H=R),(l=i.middlewareData.shift)!=null&&l.enabled.y&&(k=z),Z&&!w){const st=Ve(g.left,0),dt=Ve(g.right,0),pt=Ve(g.top,0),At=Ve(g.bottom,0);T?H=A-2*(st!==0||dt!==0?st+dt:Ve(g.left,g.right)):k=E-2*(pt!==0||At!==0?pt+At:Ve(g.top,g.bottom))}await p({...i,availableWidth:H,availableHeight:k});const W=await d.getDimensions(h.floating);return A!==W.width||E!==W.height?{reset:{rects:!0}}:{}}}};function Do(){return typeof window<"u"}function as(e){return $x(e)?(e.nodeName||"").toLowerCase():"#document"}function Be(e){var i;return(e==null||(i=e.ownerDocument)==null?void 0:i.defaultView)||window}function Tn(e){var i;return(i=($x(e)?e.ownerDocument:e.document)||window.document)==null?void 0:i.documentElement}function $x(e){return Do()?e instanceof Node||e instanceof Be(e).Node:!1}function on(e){return Do()?e instanceof Element||e instanceof Be(e).Element:!1}function wn(e){return Do()?e instanceof HTMLElement||e instanceof Be(e).HTMLElement:!1}function mv(e){return!Do()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Be(e).ShadowRoot}const OC=new Set(["inline","contents"]);function Sr(e){const{overflow:i,overflowX:s,overflowY:l,display:o}=cn(e);return/auto|scroll|overlay|hidden|clip/.test(i+l+s)&&!OC.has(o)}const jC=new Set(["table","td","th"]);function DC(e){return jC.has(as(e))}const RC=[":popover-open",":modal"];function Ro(e){return RC.some(i=>{try{return e.matches(i)}catch{return!1}})}const _C=["transform","translate","scale","rotate","perspective"],zC=["transform","translate","scale","rotate","perspective","filter"],LC=["paint","layout","strict","content"];function Ud(e){const i=Bd(),s=on(e)?cn(e):e;return _C.some(l=>s[l]?s[l]!=="none":!1)||(s.containerType?s.containerType!=="normal":!1)||!i&&(s.backdropFilter?s.backdropFilter!=="none":!1)||!i&&(s.filter?s.filter!=="none":!1)||zC.some(l=>(s.willChange||"").includes(l))||LC.some(l=>(s.contain||"").includes(l))}function VC(e){let i=wi(e);for(;wn(i)&&!$a(i);){if(Ud(i))return i;if(Ro(i))return null;i=wi(i)}return null}function Bd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const UC=new Set(["html","body","#document"]);function $a(e){return UC.has(as(e))}function cn(e){return Be(e).getComputedStyle(e)}function _o(e){return on(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function wi(e){if(as(e)==="html")return e;const i=e.assignedSlot||e.parentNode||mv(e)&&e.host||Tn(e);return mv(i)?i.host:i}function Jx(e){const i=wi(e);return $a(i)?e.ownerDocument?e.ownerDocument.body:e.body:wn(i)&&Sr(i)?i:Jx(i)}function mr(e,i,s){var l;i===void 0&&(i=[]),s===void 0&&(s=!0);const o=Jx(e),f=o===((l=e.ownerDocument)==null?void 0:l.body),d=Be(o);if(f){const h=$f(d);return i.concat(d,d.visualViewport||[],Sr(o)?o:[],h&&s?mr(h):[])}return i.concat(o,mr(o,[],s))}function $f(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wx(e){const i=cn(e);let s=parseFloat(i.width)||0,l=parseFloat(i.height)||0;const o=wn(e),f=o?e.offsetWidth:s,d=o?e.offsetHeight:l,h=uo(s)!==f||uo(l)!==d;return h&&(s=f,l=d),{width:s,height:l,$:h}}function kd(e){return on(e)?e:e.contextElement}function Za(e){const i=kd(e);if(!wn(i))return yn(1);const s=i.getBoundingClientRect(),{width:l,height:o,$:f}=Wx(i);let d=(f?uo(s.width):s.width)/l,h=(f?uo(s.height):s.height)/o;return(!d||!Number.isFinite(d))&&(d=1),(!h||!Number.isFinite(h))&&(h=1),{x:d,y:h}}const BC=yn(0);function tb(e){const i=Be(e);return!Bd()||!i.visualViewport?BC:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function kC(e,i,s){return i===void 0&&(i=!1),!s||i&&s!==Be(e)?!1:i}function na(e,i,s,l){i===void 0&&(i=!1),s===void 0&&(s=!1);const o=e.getBoundingClientRect(),f=kd(e);let d=yn(1);i&&(l?on(l)&&(d=Za(l)):d=Za(e));const h=kC(f,s,l)?tb(f):yn(0);let p=(o.left+h.x)/d.x,m=(o.top+h.y)/d.y,g=o.width/d.x,x=o.height/d.y;if(f){const w=Be(f),T=l&&on(l)?Be(l):l;let A=w,E=$f(A);for(;E&&l&&T!==A;){const M=Za(E),D=E.getBoundingClientRect(),z=cn(E),R=D.left+(E.clientLeft+parseFloat(z.paddingLeft))*M.x,q=D.top+(E.clientTop+parseFloat(z.paddingTop))*M.y;p*=M.x,m*=M.y,g*=M.x,x*=M.y,p+=R,m+=q,A=Be(E),E=$f(A)}}return ho({width:g,height:x,x:p,y:m})}function zo(e,i){const s=_o(e).scrollLeft;return i?i.left+s:na(Tn(e)).left+s}function eb(e,i){const s=e.getBoundingClientRect(),l=s.left+i.scrollLeft-zo(e,s),o=s.top+i.scrollTop;return{x:l,y:o}}function PC(e){let{elements:i,rect:s,offsetParent:l,strategy:o}=e;const f=o==="fixed",d=Tn(l),h=i?Ro(i.floating):!1;if(l===d||h&&f)return s;let p={scrollLeft:0,scrollTop:0},m=yn(1);const g=yn(0),x=wn(l);if((x||!x&&!f)&&((as(l)!=="body"||Sr(d))&&(p=_o(l)),wn(l))){const T=na(l);m=Za(l),g.x=T.x+l.clientLeft,g.y=T.y+l.clientTop}const w=d&&!x&&!f?eb(d,p):yn(0);return{width:s.width*m.x,height:s.height*m.y,x:s.x*m.x-p.scrollLeft*m.x+g.x+w.x,y:s.y*m.y-p.scrollTop*m.y+g.y+w.y}}function HC(e){return Array.from(e.getClientRects())}function qC(e){const i=Tn(e),s=_o(e),l=e.ownerDocument.body,o=Ve(i.scrollWidth,i.clientWidth,l.scrollWidth,l.clientWidth),f=Ve(i.scrollHeight,i.clientHeight,l.scrollHeight,l.clientHeight);let d=-s.scrollLeft+zo(e);const h=-s.scrollTop;return cn(l).direction==="rtl"&&(d+=Ve(i.clientWidth,l.clientWidth)-o),{width:o,height:f,x:d,y:h}}const pv=25;function GC(e,i){const s=Be(e),l=Tn(e),o=s.visualViewport;let f=l.clientWidth,d=l.clientHeight,h=0,p=0;if(o){f=o.width,d=o.height;const g=Bd();(!g||g&&i==="fixed")&&(h=o.offsetLeft,p=o.offsetTop)}const m=zo(l);if(m<=0){const g=l.ownerDocument,x=g.body,w=getComputedStyle(x),T=g.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,A=Math.abs(l.clientWidth-x.clientWidth-T);A<=pv&&(f-=A)}else m<=pv&&(f+=m);return{width:f,height:d,x:h,y:p}}const YC=new Set(["absolute","fixed"]);function XC(e,i){const s=na(e,!0,i==="fixed"),l=s.top+e.clientTop,o=s.left+e.clientLeft,f=wn(e)?Za(e):yn(1),d=e.clientWidth*f.x,h=e.clientHeight*f.y,p=o*f.x,m=l*f.y;return{width:d,height:h,x:p,y:m}}function gv(e,i,s){let l;if(i==="viewport")l=GC(e,s);else if(i==="document")l=qC(Tn(e));else if(on(i))l=XC(i,s);else{const o=tb(e);l={x:i.x-o.x,y:i.y-o.y,width:i.width,height:i.height}}return ho(l)}function nb(e,i){const s=wi(e);return s===i||!on(s)||$a(s)?!1:cn(s).position==="fixed"||nb(s,i)}function KC(e,i){const s=i.get(e);if(s)return s;let l=mr(e,[],!1).filter(h=>on(h)&&as(h)!=="body"),o=null;const f=cn(e).position==="fixed";let d=f?wi(e):e;for(;on(d)&&!$a(d);){const h=cn(d),p=Ud(d);!p&&h.position==="fixed"&&(o=null),(f?!p&&!o:!p&&h.position==="static"&&!!o&&YC.has(o.position)||Sr(d)&&!p&&nb(e,d))?l=l.filter(g=>g!==d):o=h,d=wi(d)}return i.set(e,l),l}function FC(e){let{element:i,boundary:s,rootBoundary:l,strategy:o}=e;const d=[...s==="clippingAncestors"?Ro(i)?[]:KC(i,this._c):[].concat(s),l],h=d[0],p=d.reduce((m,g)=>{const x=gv(i,g,o);return m.top=Ve(x.top,m.top),m.right=bi(x.right,m.right),m.bottom=bi(x.bottom,m.bottom),m.left=Ve(x.left,m.left),m},gv(i,h,o));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function QC(e){const{width:i,height:s}=Wx(e);return{width:i,height:s}}function ZC(e,i,s){const l=wn(i),o=Tn(i),f=s==="fixed",d=na(e,!0,f,i);let h={scrollLeft:0,scrollTop:0};const p=yn(0);function m(){p.x=zo(o)}if(l||!l&&!f)if((as(i)!=="body"||Sr(o))&&(h=_o(i)),l){const T=na(i,!0,f,i);p.x=T.x+i.clientLeft,p.y=T.y+i.clientTop}else o&&m();f&&!l&&o&&m();const g=o&&!l&&!f?eb(o,h):yn(0),x=d.left+h.scrollLeft-p.x-g.x,w=d.top+h.scrollTop-p.y-g.y;return{x,y:w,width:d.width,height:d.height}}function bf(e){return cn(e).position==="static"}function yv(e,i){if(!wn(e)||cn(e).position==="fixed")return null;if(i)return i(e);let s=e.offsetParent;return Tn(e)===s&&(s=s.ownerDocument.body),s}function ib(e,i){const s=Be(e);if(Ro(e))return s;if(!wn(e)){let o=wi(e);for(;o&&!$a(o);){if(on(o)&&!bf(o))return o;o=wi(o)}return s}let l=yv(e,i);for(;l&&DC(l)&&bf(l);)l=yv(l,i);return l&&$a(l)&&bf(l)&&!Ud(l)?s:l||VC(e)||s}const IC=async function(e){const i=this.getOffsetParent||ib,s=this.getDimensions,l=await s(e.floating);return{reference:ZC(e.reference,await i(e.floating),e.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function $C(e){return cn(e).direction==="rtl"}const JC={convertOffsetParentRelativeRectToViewportRelativeRect:PC,getDocumentElement:Tn,getClippingRect:FC,getOffsetParent:ib,getElementRects:IC,getClientRects:HC,getDimensions:QC,getScale:Za,isElement:on,isRTL:$C};function ab(e,i){return e.x===i.x&&e.y===i.y&&e.width===i.width&&e.height===i.height}function WC(e,i){let s=null,l;const o=Tn(e);function f(){var h;clearTimeout(l),(h=s)==null||h.disconnect(),s=null}function d(h,p){h===void 0&&(h=!1),p===void 0&&(p=1),f();const m=e.getBoundingClientRect(),{left:g,top:x,width:w,height:T}=m;if(h||i(),!w||!T)return;const A=Il(x),E=Il(o.clientWidth-(g+w)),M=Il(o.clientHeight-(x+T)),D=Il(g),R={rootMargin:-A+"px "+-E+"px "+-M+"px "+-D+"px",threshold:Ve(0,bi(1,p))||1};let q=!0;function G(Z){const k=Z[0].intersectionRatio;if(k!==p){if(!q)return d();k?d(!1,k):l=setTimeout(()=>{d(!1,1e-7)},1e3)}k===1&&!ab(m,e.getBoundingClientRect())&&d(),q=!1}try{s=new IntersectionObserver(G,{...R,root:o.ownerDocument})}catch{s=new IntersectionObserver(G,R)}s.observe(e)}return d(!0),f}function tM(e,i,s,l){l===void 0&&(l={});const{ancestorScroll:o=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:p=!1}=l,m=kd(e),g=o||f?[...m?mr(m):[],...mr(i)]:[];g.forEach(D=>{o&&D.addEventListener("scroll",s,{passive:!0}),f&&D.addEventListener("resize",s)});const x=m&&h?WC(m,s):null;let w=-1,T=null;d&&(T=new ResizeObserver(D=>{let[z]=D;z&&z.target===m&&T&&(T.unobserve(i),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var R;(R=T)==null||R.observe(i)})),s()}),m&&!p&&T.observe(m),T.observe(i));let A,E=p?na(e):null;p&&M();function M(){const D=na(e);E&&!ab(E,D)&&s(),E=D,A=requestAnimationFrame(M)}return s(),()=>{var D;g.forEach(z=>{o&&z.removeEventListener("scroll",s),f&&z.removeEventListener("resize",s)}),x?.(),(D=T)==null||D.disconnect(),T=null,p&&cancelAnimationFrame(A)}}const eM=AC,nM=CC,iM=SC,aM=NC,sM=TC,vv=wC,rM=MC,lM=(e,i,s)=>{const l=new Map,o={platform:JC,...s},f={...o.platform,_c:l};return bC(e,i,{...o,platform:f})};var oM=typeof document<"u",cM=function(){},ao=oM?S.useLayoutEffect:cM;function mo(e,i){if(e===i)return!0;if(typeof e!=typeof i)return!1;if(typeof e=="function"&&e.toString()===i.toString())return!0;let s,l,o;if(e&&i&&typeof e=="object"){if(Array.isArray(e)){if(s=e.length,s!==i.length)return!1;for(l=s;l--!==0;)if(!mo(e[l],i[l]))return!1;return!0}if(o=Object.keys(e),s=o.length,s!==Object.keys(i).length)return!1;for(l=s;l--!==0;)if(!{}.hasOwnProperty.call(i,o[l]))return!1;for(l=s;l--!==0;){const f=o[l];if(!(f==="_owner"&&e.$$typeof)&&!mo(e[f],i[f]))return!1}return!0}return e!==e&&i!==i}function sb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xv(e,i){const s=sb(e);return Math.round(i*s)/s}function wf(e){const i=S.useRef(e);return ao(()=>{i.current=e}),i}function uM(e){e===void 0&&(e={});const{placement:i="bottom",strategy:s="absolute",middleware:l=[],platform:o,elements:{reference:f,floating:d}={},transform:h=!0,whileElementsMounted:p,open:m}=e,[g,x]=S.useState({x:0,y:0,strategy:s,placement:i,middlewareData:{},isPositioned:!1}),[w,T]=S.useState(l);mo(w,l)||T(l);const[A,E]=S.useState(null),[M,D]=S.useState(null),z=S.useCallback(B=>{B!==Z.current&&(Z.current=B,E(B))},[]),R=S.useCallback(B=>{B!==k.current&&(k.current=B,D(B))},[]),q=f||A,G=d||M,Z=S.useRef(null),k=S.useRef(null),H=S.useRef(g),W=p!=null,st=wf(p),dt=wf(o),pt=wf(m),At=S.useCallback(()=>{if(!Z.current||!k.current)return;const B={placement:i,strategy:s,middleware:w};dt.current&&(B.platform=dt.current),lM(Z.current,k.current,B).then(it=>{const ct={...it,isPositioned:pt.current!==!1};J.current&&!mo(H.current,ct)&&(H.current=ct,wr.flushSync(()=>{x(ct)}))})},[w,i,s,dt,pt]);ao(()=>{m===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,x(B=>({...B,isPositioned:!1})))},[m]);const J=S.useRef(!1);ao(()=>(J.current=!0,()=>{J.current=!1}),[]),ao(()=>{if(q&&(Z.current=q),G&&(k.current=G),q&&G){if(st.current)return st.current(q,G,At);At()}},[q,G,At,st,W]);const ht=S.useMemo(()=>({reference:Z,floating:k,setReference:z,setFloating:R}),[z,R]),_=S.useMemo(()=>({reference:q,floating:G}),[q,G]),Y=S.useMemo(()=>{const B={position:s,left:0,top:0};if(!_.floating)return B;const it=xv(_.floating,g.x),ct=xv(_.floating,g.y);return h?{...B,transform:"translate("+it+"px, "+ct+"px)",...sb(_.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:it,top:ct}},[s,h,_.floating,g.x,g.y]);return S.useMemo(()=>({...g,update:At,refs:ht,elements:_,floatingStyles:Y}),[g,At,ht,_,Y])}const fM=e=>{function i(s){return{}.hasOwnProperty.call(s,"current")}return{name:"arrow",options:e,fn(s){const{element:l,padding:o}=typeof e=="function"?e(s):e;return l&&i(l)?l.current!=null?vv({element:l.current,padding:o}).fn(s):{}:l?vv({element:l,padding:o}).fn(s):{}}}},dM=(e,i)=>({...eM(e),options:[e,i]}),hM=(e,i)=>({...nM(e),options:[e,i]}),mM=(e,i)=>({...rM(e),options:[e,i]}),pM=(e,i)=>({...iM(e),options:[e,i]}),gM=(e,i)=>({...aM(e),options:[e,i]}),yM=(e,i)=>({...sM(e),options:[e,i]}),vM=(e,i)=>({...fM(e),options:[e,i]});var xM="Arrow",rb=S.forwardRef((e,i)=>{const{children:s,width:l=10,height:o=5,...f}=e;return v.jsx(Ei.svg,{...f,ref:i,width:l,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?s:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});rb.displayName=xM;var bM=rb;function wM(e){const[i,s]=S.useState(void 0);return bn(()=>{if(e){s({width:e.offsetWidth,height:e.offsetHeight});const l=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const f=o[0];let d,h;if("borderBoxSize"in f){const p=f.borderBoxSize,m=Array.isArray(p)?p[0]:p;d=m.inlineSize,h=m.blockSize}else d=e.offsetWidth,h=e.offsetHeight;s({width:d,height:h})});return l.observe(e,{box:"border-box"}),()=>l.unobserve(e)}else s(void 0)},[e]),i}var lb="Popper",[ob,cb]=Mo(lb),[g3,ub]=ob(lb),fb="PopperAnchor",db=S.forwardRef((e,i)=>{const{__scopePopper:s,virtualRef:l,...o}=e,f=ub(fb,s),d=S.useRef(null),h=Ae(i,d),p=S.useRef(null);return S.useEffect(()=>{const m=p.current;p.current=l?.current||d.current,m!==p.current&&f.onAnchorChange(p.current)}),l?null:v.jsx(Ei.div,{...o,ref:h})});db.displayName=fb;var Pd="PopperContent",[SM,TM]=ob(Pd),hb=S.forwardRef((e,i)=>{const{__scopePopper:s,side:l="bottom",sideOffset:o=0,align:f="center",alignOffset:d=0,arrowPadding:h=0,avoidCollisions:p=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:x="partial",hideWhenDetached:w=!1,updatePositionStrategy:T="optimized",onPlaced:A,...E}=e,M=ub(Pd,s),[D,z]=S.useState(null),R=Ae(i,rt=>z(rt)),[q,G]=S.useState(null),Z=wM(q),k=Z?.width??0,H=Z?.height??0,W=l+(f!=="center"?"-"+f:""),st=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},dt=Array.isArray(m)?m:[m],pt=dt.length>0,At={padding:st,boundary:dt.filter(AM),altBoundary:pt},{refs:J,floatingStyles:ht,placement:_,isPositioned:Y,middlewareData:B}=uM({strategy:"fixed",placement:W,whileElementsMounted:(...rt)=>tM(...rt,{animationFrame:T==="always"}),elements:{reference:M.anchor},middleware:[dM({mainAxis:o+H,alignmentAxis:d}),p&&hM({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?mM():void 0,...At}),p&&pM({...At}),gM({...At,apply:({elements:rt,rects:Xt,availableWidth:Rt,availableHeight:Pe})=>{const{width:un,height:fn}=Xt.reference,Ci=rt.floating.style;Ci.setProperty("--radix-popper-available-width",`${Rt}px`),Ci.setProperty("--radix-popper-available-height",`${Pe}px`),Ci.setProperty("--radix-popper-anchor-width",`${un}px`),Ci.setProperty("--radix-popper-anchor-height",`${fn}px`)}}),q&&vM({element:q,padding:h}),CM({arrowWidth:k,arrowHeight:H}),w&&yM({strategy:"referenceHidden",...At})]}),[it,ct]=gb(_),N=en(A);bn(()=>{Y&&N?.()},[Y,N]);const K=B.arrow?.x,I=B.arrow?.y,$=B.arrow?.centerOffset!==0,[ut,gt]=S.useState();return bn(()=>{D&&gt(window.getComputedStyle(D).zIndex)},[D]),v.jsx("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...ht,transform:Y?ht.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ut,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(" "),...B.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(SM,{scope:s,placedSide:it,onArrowChange:G,arrowX:K,arrowY:I,shouldHideArrow:$,children:v.jsx(Ei.div,{"data-side":it,"data-align":ct,...E,ref:R,style:{...E.style,animation:Y?void 0:"none"}})})})});hb.displayName=Pd;var mb="PopperArrow",EM={top:"bottom",right:"left",bottom:"top",left:"right"},pb=S.forwardRef(function(i,s){const{__scopePopper:l,...o}=i,f=TM(mb,l),d=EM[f.placedSide];return v.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:v.jsx(bM,{...o,ref:s,style:{...o.style,display:"block"}})})});pb.displayName=mb;function AM(e){return e!==null}var CM=e=>({name:"transformOrigin",options:e,fn(i){const{placement:s,rects:l,middlewareData:o}=i,d=o.arrow?.centerOffset!==0,h=d?0:e.arrowWidth,p=d?0:e.arrowHeight,[m,g]=gb(s),x={start:"0%",center:"50%",end:"100%"}[g],w=(o.arrow?.x??0)+h/2,T=(o.arrow?.y??0)+p/2;let A="",E="";return m==="bottom"?(A=d?x:`${w}px`,E=`${-p}px`):m==="top"?(A=d?x:`${w}px`,E=`${l.floating.height+p}px`):m==="right"?(A=`${-p}px`,E=d?x:`${T}px`):m==="left"&&(A=`${l.floating.width+p}px`,E=d?x:`${T}px`),{data:{x:A,y:E}}}});function gb(e){const[i,s="center"]=e.split("-");return[i,s]}var MM=db,NM=hb,OM=pb,jM="Portal",yb=S.forwardRef((e,i)=>{const{container:s,...l}=e,[o,f]=S.useState(!1);bn(()=>f(!0),[]);const d=s||o&&globalThis?.document?.body;return d?tx.createPortal(v.jsx(Ei.div,{...l,ref:i}),d):null});yb.displayName=jM;function DM(e,i){return S.useReducer((s,l)=>i[s][l]??s,e)}var Hd=e=>{const{present:i,children:s}=e,l=RM(i),o=typeof s=="function"?s({present:l.isPresent}):S.Children.only(s),f=Ae(l.ref,_M(o));return typeof s=="function"||l.isPresent?S.cloneElement(o,{ref:f}):null};Hd.displayName="Presence";function RM(e){const[i,s]=S.useState(),l=S.useRef(null),o=S.useRef(e),f=S.useRef("none"),d=e?"mounted":"unmounted",[h,p]=DM(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const m=$l(l.current);f.current=h==="mounted"?m:"none"},[h]),bn(()=>{const m=l.current,g=o.current;if(g!==e){const w=f.current,T=$l(m);e?p("MOUNT"):T==="none"||m?.display==="none"?p("UNMOUNT"):p(g&&w!==T?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,p]),bn(()=>{if(i){let m;const g=i.ownerDocument.defaultView??window,x=T=>{const E=$l(l.current).includes(CSS.escape(T.animationName));if(T.target===i&&E&&(p("ANIMATION_END"),!o.current)){const M=i.style.animationFillMode;i.style.animationFillMode="forwards",m=g.setTimeout(()=>{i.style.animationFillMode==="forwards"&&(i.style.animationFillMode=M)})}},w=T=>{T.target===i&&(f.current=$l(l.current))};return i.addEventListener("animationstart",w),i.addEventListener("animationcancel",x),i.addEventListener("animationend",x),()=>{g.clearTimeout(m),i.removeEventListener("animationstart",w),i.removeEventListener("animationcancel",x),i.removeEventListener("animationend",x)}}else p("ANIMATION_END")},[i,p]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:S.useCallback(m=>{l.current=m?getComputedStyle(m):null,s(m)},[])}}function $l(e){return e?.animationName||"none"}function _M(e){let i=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?e.ref:(i=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var zM=Symbol("radix.slottable");function LM(e){const i=({children:s})=>v.jsx(v.Fragment,{children:s});return i.displayName=`${e}.Slottable`,i.__radixId=zM,i}var VM=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"}),UM="VisuallyHidden",vb=S.forwardRef((e,i)=>v.jsx(Ei.span,{...e,ref:i,style:{...VM,...e.style}}));vb.displayName=UM;var BM=vb,[Lo]=Mo("Tooltip",[cb]),qd=cb(),xb="TooltipProvider",kM=700,bv="tooltip.open",[PM,bb]=Lo(xb),wb=e=>{const{__scopeTooltip:i,delayDuration:s=kM,skipDelayDuration:l=300,disableHoverableContent:o=!1,children:f}=e,d=S.useRef(!0),h=S.useRef(!1),p=S.useRef(0);return S.useEffect(()=>{const m=p.current;return()=>window.clearTimeout(m)},[]),v.jsx(PM,{scope:i,isOpenDelayedRef:d,delayDuration:s,onOpen:S.useCallback(()=>{window.clearTimeout(p.current),d.current=!1},[]),onClose:S.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>d.current=!0,l)},[l]),isPointerInTransitRef:h,onPointerInTransitChange:S.useCallback(m=>{h.current=m},[]),disableHoverableContent:o,children:f})};wb.displayName=xb;var Sb="Tooltip",[y3,Tr]=Lo(Sb),Jf="TooltipTrigger",HM=S.forwardRef((e,i)=>{const{__scopeTooltip:s,...l}=e,o=Tr(Jf,s),f=bb(Jf,s),d=qd(s),h=S.useRef(null),p=Ae(i,h,o.onTriggerChange),m=S.useRef(!1),g=S.useRef(!1),x=S.useCallback(()=>m.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",x),[x]),v.jsx(MM,{asChild:!0,...d,children:v.jsx(Ei.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...l,ref:p,onPointerMove:Ga(e.onPointerMove,w=>{w.pointerType!=="touch"&&!g.current&&!f.isPointerInTransitRef.current&&(o.onTriggerEnter(),g.current=!0)}),onPointerLeave:Ga(e.onPointerLeave,()=>{o.onTriggerLeave(),g.current=!1}),onPointerDown:Ga(e.onPointerDown,()=>{o.open&&o.onClose(),m.current=!0,document.addEventListener("pointerup",x,{once:!0})}),onFocus:Ga(e.onFocus,()=>{m.current||o.onOpen()}),onBlur:Ga(e.onBlur,o.onClose),onClick:Ga(e.onClick,o.onClose)})})});HM.displayName=Jf;var Gd="TooltipPortal",[qM,GM]=Lo(Gd,{forceMount:void 0}),Tb=e=>{const{__scopeTooltip:i,forceMount:s,children:l,container:o}=e,f=Tr(Gd,i);return v.jsx(qM,{scope:i,forceMount:s,children:v.jsx(Hd,{present:s||f.open,children:v.jsx(yb,{asChild:!0,container:o,children:l})})})};Tb.displayName=Gd;var Ja="TooltipContent",Eb=S.forwardRef((e,i)=>{const s=GM(Ja,e.__scopeTooltip),{forceMount:l=s.forceMount,side:o="top",...f}=e,d=Tr(Ja,e.__scopeTooltip);return v.jsx(Hd,{present:l||d.open,children:d.disableHoverableContent?v.jsx(Ab,{side:o,...f,ref:i}):v.jsx(YM,{side:o,...f,ref:i})})}),YM=S.forwardRef((e,i)=>{const s=Tr(Ja,e.__scopeTooltip),l=bb(Ja,e.__scopeTooltip),o=S.useRef(null),f=Ae(i,o),[d,h]=S.useState(null),{trigger:p,onClose:m}=s,g=o.current,{onPointerInTransitChange:x}=l,w=S.useCallback(()=>{h(null),x(!1)},[x]),T=S.useCallback((A,E)=>{const M=A.currentTarget,D={x:A.clientX,y:A.clientY},z=ZM(D,M.getBoundingClientRect()),R=IM(D,z),q=$M(E.getBoundingClientRect()),G=WM([...R,...q]);h(G),x(!0)},[x]);return S.useEffect(()=>()=>w(),[w]),S.useEffect(()=>{if(p&&g){const A=M=>T(M,g),E=M=>T(M,p);return p.addEventListener("pointerleave",A),g.addEventListener("pointerleave",E),()=>{p.removeEventListener("pointerleave",A),g.removeEventListener("pointerleave",E)}}},[p,g,T,w]),S.useEffect(()=>{if(d){const A=E=>{const M=E.target,D={x:E.clientX,y:E.clientY},z=p?.contains(M)||g?.contains(M),R=!JM(D,d);z?w():R&&(w(),m())};return document.addEventListener("pointermove",A),()=>document.removeEventListener("pointermove",A)}},[p,g,d,m,w]),v.jsx(Ab,{...e,ref:f})}),[XM,KM]=Lo(Sb,{isInside:!1}),FM=LM("TooltipContent"),Ab=S.forwardRef((e,i)=>{const{__scopeTooltip:s,children:l,"aria-label":o,onEscapeKeyDown:f,onPointerDownOutside:d,...h}=e,p=Tr(Ja,s),m=qd(s),{onClose:g}=p;return S.useEffect(()=>(document.addEventListener(bv,g),()=>document.removeEventListener(bv,g)),[g]),S.useEffect(()=>{if(p.trigger){const x=w=>{w.target?.contains(p.trigger)&&g()};return window.addEventListener("scroll",x,{capture:!0}),()=>window.removeEventListener("scroll",x,{capture:!0})}},[p.trigger,g]),v.jsx(Fx,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:x=>x.preventDefault(),onDismiss:g,children:v.jsxs(NM,{"data-state":p.stateAttribute,...m,...h,ref:i,style:{...h.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[v.jsx(FM,{children:l}),v.jsx(XM,{scope:s,isInside:!0,children:v.jsx(BM,{id:p.contentId,role:"tooltip",children:o||l})})]})})});Eb.displayName=Ja;var Cb="TooltipArrow",QM=S.forwardRef((e,i)=>{const{__scopeTooltip:s,...l}=e,o=qd(s);return KM(Cb,s).isInside?null:v.jsx(OM,{...o,...l,ref:i})});QM.displayName=Cb;function ZM(e,i){const s=Math.abs(i.top-e.y),l=Math.abs(i.bottom-e.y),o=Math.abs(i.right-e.x),f=Math.abs(i.left-e.x);switch(Math.min(s,l,o,f)){case f:return"left";case o:return"right";case s:return"top";case l:return"bottom";default:throw new Error("unreachable")}}function IM(e,i,s=5){const l=[];switch(i){case"top":l.push({x:e.x-s,y:e.y+s},{x:e.x+s,y:e.y+s});break;case"bottom":l.push({x:e.x-s,y:e.y-s},{x:e.x+s,y:e.y-s});break;case"left":l.push({x:e.x+s,y:e.y-s},{x:e.x+s,y:e.y+s});break;case"right":l.push({x:e.x-s,y:e.y-s},{x:e.x-s,y:e.y+s});break}return l}function $M(e){const{top:i,right:s,bottom:l,left:o}=e;return[{x:o,y:i},{x:s,y:i},{x:s,y:l},{x:o,y:l}]}function JM(e,i){const{x:s,y:l}=e;let o=!1;for(let f=0,d=i.length-1;f<i.length;d=f++){const h=i[f],p=i[d],m=h.x,g=h.y,x=p.x,w=p.y;g>l!=w>l&&s<(x-m)*(l-g)/(w-g)+m&&(o=!o)}return o}function WM(e){const i=e.slice();return i.sort((s,l)=>s.x<l.x?-1:s.x>l.x?1:s.y<l.y?-1:s.y>l.y?1:0),tN(i)}function tN(e){if(e.length<=1)return e.slice();const i=[];for(let l=0;l<e.length;l++){const o=e[l];for(;i.length>=2;){const f=i[i.length-1],d=i[i.length-2];if((f.x-d.x)*(o.y-d.y)>=(f.y-d.y)*(o.x-d.x))i.pop();else break}i.push(o)}i.pop();const s=[];for(let l=e.length-1;l>=0;l--){const o=e[l];for(;s.length>=2;){const f=s[s.length-1],d=s[s.length-2];if((f.x-d.x)*(o.y-d.y)>=(f.y-d.y)*(o.x-d.x))s.pop();else break}s.push(o)}return s.pop(),i.length===1&&s.length===1&&i[0].x===s[0].x&&i[0].y===s[0].y?i:i.concat(s)}var eN=wb,nN=Tb,Mb=Eb;const iN=eN,aN=S.forwardRef(({className:e,sideOffset:i=4,...s},l)=>v.jsx(nN,{children:v.jsx(Mb,{ref:l,sideOffset:i,className:ke("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e),...s})}));aN.displayName=Mb.displayName;const Nb=S.forwardRef(({className:e,...i},s)=>v.jsx("div",{ref:s,className:ke("rounded-xl border bg-card text-card-foreground shadow",e),...i}));Nb.displayName="Card";const sN=S.forwardRef(({className:e,...i},s)=>v.jsx("div",{ref:s,className:ke("flex flex-col space-y-1.5 p-6",e),...i}));sN.displayName="CardHeader";const rN=S.forwardRef(({className:e,...i},s)=>v.jsx("div",{ref:s,className:ke("font-semibold leading-none tracking-tight",e),...i}));rN.displayName="CardTitle";const lN=S.forwardRef(({className:e,...i},s)=>v.jsx("div",{ref:s,className:ke("text-sm text-muted-foreground",e),...i}));lN.displayName="CardDescription";const Ob=S.forwardRef(({className:e,...i},s)=>v.jsx("div",{ref:s,className:ke("p-6 pt-0",e),...i}));Ob.displayName="CardContent";const oN=S.forwardRef(({className:e,...i},s)=>v.jsx("div",{ref:s,className:ke("flex items-center p-6 pt-0",e),...i}));oN.displayName="CardFooter";function cN(){return v.jsx("div",{className:"min-h-screen w-full flex items-center justify-center bg-gray-50",children:v.jsx(Nb,{className:"w-full max-w-md mx-4",children:v.jsxs(Ob,{className:"pt-6",children:[v.jsxs("div",{className:"flex mb-4 gap-2",children:[v.jsx(FE,{className:"h-8 w-8 text-red-500"}),v.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"404 Page Not Found"})]}),v.jsx("p",{className:"mt-4 text-sm text-gray-600",children:"Did you forget to add the page to the router?"})]})})})}const Yd=S.createContext({});function Xd(e){const i=S.useRef(null);return i.current===null&&(i.current=e()),i.current}const Kd=typeof window<"u",jb=Kd?S.useLayoutEffect:S.useEffect,Vo=S.createContext(null);function Fd(e,i){e.indexOf(i)===-1&&e.push(i)}function Qd(e,i){const s=e.indexOf(i);s>-1&&e.splice(s,1)}const Xn=(e,i,s)=>s>i?i:s<e?e:s;let Zd=()=>{};const Kn={},Db=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Rb(e){return typeof e=="object"&&e!==null}const _b=e=>/^0[^.\s]+$/u.test(e);function Id(e){let i;return()=>(i===void 0&&(i=e()),i)}const tn=e=>e,uN=(e,i)=>s=>i(e(s)),Er=(...e)=>e.reduce(uN),pr=(e,i,s)=>{const l=i-e;return l===0?1:(s-e)/l};class $d{constructor(){this.subscriptions=[]}add(i){return Fd(this.subscriptions,i),()=>Qd(this.subscriptions,i)}notify(i,s,l){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](i,s,l);else for(let f=0;f<o;f++){const d=this.subscriptions[f];d&&d(i,s,l)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const vn=e=>e*1e3,We=e=>e/1e3;function zb(e,i){return i?e*(1e3/i):0}const Lb=(e,i,s)=>(((1-3*s+3*i)*e+(3*s-6*i))*e+3*i)*e,fN=1e-7,dN=12;function hN(e,i,s,l,o){let f,d,h=0;do d=i+(s-i)/2,f=Lb(d,l,o)-e,f>0?s=d:i=d;while(Math.abs(f)>fN&&++h<dN);return d}function Ar(e,i,s,l){if(e===i&&s===l)return tn;const o=f=>hN(f,0,1,e,s);return f=>f===0||f===1?f:Lb(o(f),i,l)}const Vb=e=>i=>i<=.5?e(2*i)/2:(2-e(2*(1-i)))/2,Ub=e=>i=>1-e(1-i),Bb=Ar(.33,1.53,.69,.99),Jd=Ub(Bb),kb=Vb(Jd),Pb=e=>(e*=2)<1?.5*Jd(e):.5*(2-Math.pow(2,-10*(e-1))),Wd=e=>1-Math.sin(Math.acos(e)),Hb=Ub(Wd),qb=Vb(Wd),mN=Ar(.42,0,1,1),pN=Ar(0,0,.58,1),Gb=Ar(.42,0,.58,1),gN=e=>Array.isArray(e)&&typeof e[0]!="number",Yb=e=>Array.isArray(e)&&typeof e[0]=="number",yN={linear:tn,easeIn:mN,easeInOut:Gb,easeOut:pN,circIn:Wd,circInOut:qb,circOut:Hb,backIn:Jd,backInOut:kb,backOut:Bb,anticipate:Pb},vN=e=>typeof e=="string",wv=e=>{if(Yb(e)){Zd(e.length===4);const[i,s,l,o]=e;return Ar(i,s,l,o)}else if(vN(e))return yN[e];return e},Jl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function xN(e,i){let s=new Set,l=new Set,o=!1,f=!1;const d=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function p(g){d.has(g)&&(m.schedule(g),e()),g(h)}const m={schedule:(g,x=!1,w=!1)=>{const A=w&&o?s:l;return x&&d.add(g),A.has(g)||A.add(g),g},cancel:g=>{l.delete(g),d.delete(g)},process:g=>{if(h=g,o){f=!0;return}o=!0,[s,l]=[l,s],s.forEach(p),s.clear(),o=!1,f&&(f=!1,m.process(g))}};return m}const bN=40;function Xb(e,i){let s=!1,l=!0;const o={delta:0,timestamp:0,isProcessing:!1},f=()=>s=!0,d=Jl.reduce((R,q)=>(R[q]=xN(f),R),{}),{setup:h,read:p,resolveKeyframes:m,preUpdate:g,update:x,preRender:w,render:T,postRender:A}=d,E=()=>{const R=Kn.useManualTiming?o.timestamp:performance.now();s=!1,Kn.useManualTiming||(o.delta=l?1e3/60:Math.max(Math.min(R-o.timestamp,bN),1)),o.timestamp=R,o.isProcessing=!0,h.process(o),p.process(o),m.process(o),g.process(o),x.process(o),w.process(o),T.process(o),A.process(o),o.isProcessing=!1,s&&i&&(l=!1,e(E))},M=()=>{s=!0,l=!0,o.isProcessing||e(E)};return{schedule:Jl.reduce((R,q)=>{const G=d[q];return R[q]=(Z,k=!1,H=!1)=>(s||M(),G.schedule(Z,k,H)),R},{}),cancel:R=>{for(let q=0;q<Jl.length;q++)d[Jl[q]].cancel(R)},state:o,steps:d}}const{schedule:Pt,cancel:Si,state:ce,steps:Sf}=Xb(typeof requestAnimationFrame<"u"?requestAnimationFrame:tn,!0);let so;function wN(){so=void 0}const Ee={now:()=>(so===void 0&&Ee.set(ce.isProcessing||Kn.useManualTiming?ce.timestamp:performance.now()),so),set:e=>{so=e,queueMicrotask(wN)}},Kb=e=>i=>typeof i=="string"&&i.startsWith(e),th=Kb("--"),SN=Kb("var(--"),eh=e=>SN(e)?TN.test(e.split("/*")[0].trim()):!1,TN=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ss={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},gr={...ss,transform:e=>Xn(0,1,e)},Wl={...ss,default:1},rr=e=>Math.round(e*1e5)/1e5,nh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function EN(e){return e==null}const AN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ih=(e,i)=>s=>!!(typeof s=="string"&&AN.test(s)&&s.startsWith(e)||i&&!EN(s)&&Object.prototype.hasOwnProperty.call(s,i)),Fb=(e,i,s)=>l=>{if(typeof l!="string")return l;const[o,f,d,h]=l.match(nh);return{[e]:parseFloat(o),[i]:parseFloat(f),[s]:parseFloat(d),alpha:h!==void 0?parseFloat(h):1}},CN=e=>Xn(0,255,e),Tf={...ss,transform:e=>Math.round(CN(e))},Ji={test:ih("rgb","red"),parse:Fb("red","green","blue"),transform:({red:e,green:i,blue:s,alpha:l=1})=>"rgba("+Tf.transform(e)+", "+Tf.transform(i)+", "+Tf.transform(s)+", "+rr(gr.transform(l))+")"};function MN(e){let i="",s="",l="",o="";return e.length>5?(i=e.substring(1,3),s=e.substring(3,5),l=e.substring(5,7),o=e.substring(7,9)):(i=e.substring(1,2),s=e.substring(2,3),l=e.substring(3,4),o=e.substring(4,5),i+=i,s+=s,l+=l,o+=o),{red:parseInt(i,16),green:parseInt(s,16),blue:parseInt(l,16),alpha:o?parseInt(o,16)/255:1}}const Wf={test:ih("#"),parse:MN,transform:Ji.transform},Cr=e=>({test:i=>typeof i=="string"&&i.endsWith(e)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${e}`}),xi=Cr("deg"),xn=Cr("%"),ft=Cr("px"),NN=Cr("vh"),ON=Cr("vw"),Sv={...xn,parse:e=>xn.parse(e)/100,transform:e=>xn.transform(e*100)},Ya={test:ih("hsl","hue"),parse:Fb("hue","saturation","lightness"),transform:({hue:e,saturation:i,lightness:s,alpha:l=1})=>"hsla("+Math.round(e)+", "+xn.transform(rr(i))+", "+xn.transform(rr(s))+", "+rr(gr.transform(l))+")"},Wt={test:e=>Ji.test(e)||Wf.test(e)||Ya.test(e),parse:e=>Ji.test(e)?Ji.parse(e):Ya.test(e)?Ya.parse(e):Wf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ji.transform(e):Ya.transform(e),getAnimatableNone:e=>{const i=Wt.parse(e);return i.alpha=0,Wt.transform(i)}},jN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function DN(e){return isNaN(e)&&typeof e=="string"&&(e.match(nh)?.length||0)+(e.match(jN)?.length||0)>0}const Qb="number",Zb="color",RN="var",_N="var(",Tv="${}",zN=/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 yr(e){const i=e.toString(),s=[],l={color:[],number:[],var:[]},o=[];let f=0;const h=i.replace(zN,p=>(Wt.test(p)?(l.color.push(f),o.push(Zb),s.push(Wt.parse(p))):p.startsWith(_N)?(l.var.push(f),o.push(RN),s.push(p)):(l.number.push(f),o.push(Qb),s.push(parseFloat(p))),++f,Tv)).split(Tv);return{values:s,split:h,indexes:l,types:o}}function Ib(e){return yr(e).values}function $b(e){const{split:i,types:s}=yr(e),l=i.length;return o=>{let f="";for(let d=0;d<l;d++)if(f+=i[d],o[d]!==void 0){const h=s[d];h===Qb?f+=rr(o[d]):h===Zb?f+=Wt.transform(o[d]):f+=o[d]}return f}}const LN=e=>typeof e=="number"?0:Wt.test(e)?Wt.getAnimatableNone(e):e;function VN(e){const i=Ib(e);return $b(e)(i.map(LN))}const Ti={test:DN,parse:Ib,createTransformer:$b,getAnimatableNone:VN};function Ef(e,i,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?e+(i-e)*6*s:s<1/2?i:s<2/3?e+(i-e)*(2/3-s)*6:e}function UN({hue:e,saturation:i,lightness:s,alpha:l}){e/=360,i/=100,s/=100;let o=0,f=0,d=0;if(!i)o=f=d=s;else{const h=s<.5?s*(1+i):s+i-s*i,p=2*s-h;o=Ef(p,h,e+1/3),f=Ef(p,h,e),d=Ef(p,h,e-1/3)}return{red:Math.round(o*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:l}}function po(e,i){return s=>s>0?i:e}const Ht=(e,i,s)=>e+(i-e)*s,Af=(e,i,s)=>{const l=e*e,o=s*(i*i-l)+l;return o<0?0:Math.sqrt(o)},BN=[Wf,Ji,Ya],kN=e=>BN.find(i=>i.test(e));function Ev(e){const i=kN(e);if(!i)return!1;let s=i.parse(e);return i===Ya&&(s=UN(s)),s}const Av=(e,i)=>{const s=Ev(e),l=Ev(i);if(!s||!l)return po(e,i);const o={...s};return f=>(o.red=Af(s.red,l.red,f),o.green=Af(s.green,l.green,f),o.blue=Af(s.blue,l.blue,f),o.alpha=Ht(s.alpha,l.alpha,f),Ji.transform(o))},td=new Set(["none","hidden"]);function PN(e,i){return td.has(e)?s=>s<=0?e:i:s=>s>=1?i:e}function HN(e,i){return s=>Ht(e,i,s)}function ah(e){return typeof e=="number"?HN:typeof e=="string"?eh(e)?po:Wt.test(e)?Av:YN:Array.isArray(e)?Jb:typeof e=="object"?Wt.test(e)?Av:qN:po}function Jb(e,i){const s=[...e],l=s.length,o=e.map((f,d)=>ah(f)(f,i[d]));return f=>{for(let d=0;d<l;d++)s[d]=o[d](f);return s}}function qN(e,i){const s={...e,...i},l={};for(const o in s)e[o]!==void 0&&i[o]!==void 0&&(l[o]=ah(e[o])(e[o],i[o]));return o=>{for(const f in l)s[f]=l[f](o);return s}}function GN(e,i){const s=[],l={color:0,var:0,number:0};for(let o=0;o<i.values.length;o++){const f=i.types[o],d=e.indexes[f][l[f]],h=e.values[d]??0;s[o]=h,l[f]++}return s}const YN=(e,i)=>{const s=Ti.createTransformer(i),l=yr(e),o=yr(i);return l.indexes.var.length===o.indexes.var.length&&l.indexes.color.length===o.indexes.color.length&&l.indexes.number.length>=o.indexes.number.length?td.has(e)&&!o.values.length||td.has(i)&&!l.values.length?PN(e,i):Er(Jb(GN(l,o),o.values),s):po(e,i)};function Wb(e,i,s){return typeof e=="number"&&typeof i=="number"&&typeof s=="number"?Ht(e,i,s):ah(e)(e,i)}const XN=e=>{const i=({timestamp:s})=>e(s);return{start:(s=!0)=>Pt.update(i,s),stop:()=>Si(i),now:()=>ce.isProcessing?ce.timestamp:Ee.now()}},t1=(e,i,s=10)=>{let l="";const o=Math.max(Math.round(i/s),2);for(let f=0;f<o;f++)l+=Math.round(e(f/(o-1))*1e4)/1e4+", ";return`linear(${l.substring(0,l.length-2)})`},go=2e4;function sh(e){let i=0;const s=50;let l=e.next(i);for(;!l.done&&i<go;)i+=s,l=e.next(i);return i>=go?1/0:i}function KN(e,i=100,s){const l=s({...e,keyframes:[0,i]}),o=Math.min(sh(l),go);return{type:"keyframes",ease:f=>l.next(o*f).value/i,duration:We(o)}}const FN=5;function e1(e,i,s){const l=Math.max(i-FN,0);return zb(s-e(l),i-l)}const Yt={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},Cf=.001;function QN({duration:e=Yt.duration,bounce:i=Yt.bounce,velocity:s=Yt.velocity,mass:l=Yt.mass}){let o,f,d=1-i;d=Xn(Yt.minDamping,Yt.maxDamping,d),e=Xn(Yt.minDuration,Yt.maxDuration,We(e)),d<1?(o=m=>{const g=m*d,x=g*e,w=g-s,T=ed(m,d),A=Math.exp(-x);return Cf-w/T*A},f=m=>{const x=m*d*e,w=x*s+s,T=Math.pow(d,2)*Math.pow(m,2)*e,A=Math.exp(-x),E=ed(Math.pow(m,2),d);return(-o(m)+Cf>0?-1:1)*((w-T)*A)/E}):(o=m=>{const g=Math.exp(-m*e),x=(m-s)*e+1;return-Cf+g*x},f=m=>{const g=Math.exp(-m*e),x=(s-m)*(e*e);return g*x});const h=5/e,p=IN(o,f,h);if(e=vn(e),isNaN(p))return{stiffness:Yt.stiffness,damping:Yt.damping,duration:e};{const m=Math.pow(p,2)*l;return{stiffness:m,damping:d*2*Math.sqrt(l*m),duration:e}}}const ZN=12;function IN(e,i,s){let l=s;for(let o=1;o<ZN;o++)l=l-e(l)/i(l);return l}function ed(e,i){return e*Math.sqrt(1-i*i)}const $N=["duration","bounce"],JN=["stiffness","damping","mass"];function Cv(e,i){return i.some(s=>e[s]!==void 0)}function WN(e){let i={velocity:Yt.velocity,stiffness:Yt.stiffness,damping:Yt.damping,mass:Yt.mass,isResolvedFromDuration:!1,...e};if(!Cv(e,JN)&&Cv(e,$N))if(e.visualDuration){const s=e.visualDuration,l=2*Math.PI/(s*1.2),o=l*l,f=2*Xn(.05,1,1-(e.bounce||0))*Math.sqrt(o);i={...i,mass:Yt.mass,stiffness:o,damping:f}}else{const s=QN(e);i={...i,...s,mass:Yt.mass},i.isResolvedFromDuration=!0}return i}function yo(e=Yt.visualDuration,i=Yt.bounce){const s=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:i}:e;let{restSpeed:l,restDelta:o}=s;const f=s.keyframes[0],d=s.keyframes[s.keyframes.length-1],h={done:!1,value:f},{stiffness:p,damping:m,mass:g,duration:x,velocity:w,isResolvedFromDuration:T}=WN({...s,velocity:-We(s.velocity||0)}),A=w||0,E=m/(2*Math.sqrt(p*g)),M=d-f,D=We(Math.sqrt(p/g)),z=Math.abs(M)<5;l||(l=z?Yt.restSpeed.granular:Yt.restSpeed.default),o||(o=z?Yt.restDelta.granular:Yt.restDelta.default);let R;if(E<1){const G=ed(D,E);R=Z=>{const k=Math.exp(-E*D*Z);return d-k*((A+E*D*M)/G*Math.sin(G*Z)+M*Math.cos(G*Z))}}else if(E===1)R=G=>d-Math.exp(-D*G)*(M+(A+D*M)*G);else{const G=D*Math.sqrt(E*E-1);R=Z=>{const k=Math.exp(-E*D*Z),H=Math.min(G*Z,300);return d-k*((A+E*D*M)*Math.sinh(H)+G*M*Math.cosh(H))/G}}const q={calculatedDuration:T&&x||null,next:G=>{const Z=R(G);if(T)h.done=G>=x;else{let k=G===0?A:0;E<1&&(k=G===0?vn(A):e1(R,G,Z));const H=Math.abs(k)<=l,W=Math.abs(d-Z)<=o;h.done=H&&W}return h.value=h.done?d:Z,h},toString:()=>{const G=Math.min(sh(q),go),Z=t1(k=>q.next(G*k).value,G,30);return G+"ms "+Z},toTransition:()=>{}};return q}yo.applyToOptions=e=>{const i=KN(e,100,yo);return e.ease=i.ease,e.duration=vn(i.duration),e.type="keyframes",e};function nd({keyframes:e,velocity:i=0,power:s=.8,timeConstant:l=325,bounceDamping:o=10,bounceStiffness:f=500,modifyTarget:d,min:h,max:p,restDelta:m=.5,restSpeed:g}){const x=e[0],w={done:!1,value:x},T=H=>h!==void 0&&H<h||p!==void 0&&H>p,A=H=>h===void 0?p:p===void 0||Math.abs(h-H)<Math.abs(p-H)?h:p;let E=s*i;const M=x+E,D=d===void 0?M:d(M);D!==M&&(E=D-x);const z=H=>-E*Math.exp(-H/l),R=H=>D+z(H),q=H=>{const W=z(H),st=R(H);w.done=Math.abs(W)<=m,w.value=w.done?D:st};let G,Z;const k=H=>{T(w.value)&&(G=H,Z=yo({keyframes:[w.value,A(w.value)],velocity:e1(R,H,w.value),damping:o,stiffness:f,restDelta:m,restSpeed:g}))};return k(0),{calculatedDuration:null,next:H=>{let W=!1;return!Z&&G===void 0&&(W=!0,q(H),k(H)),G!==void 0&&H>=G?Z.next(H-G):(!W&&q(H),w)}}}function tO(e,i,s){const l=[],o=s||Kn.mix||Wb,f=e.length-1;for(let d=0;d<f;d++){let h=o(e[d],e[d+1]);if(i){const p=Array.isArray(i)?i[d]||tn:i;h=Er(p,h)}l.push(h)}return l}function eO(e,i,{clamp:s=!0,ease:l,mixer:o}={}){const f=e.length;if(Zd(f===i.length),f===1)return()=>i[0];if(f===2&&i[0]===i[1])return()=>i[1];const d=e[0]===e[1];e[0]>e[f-1]&&(e=[...e].reverse(),i=[...i].reverse());const h=tO(i,l,o),p=h.length,m=g=>{if(d&&g<e[0])return i[0];let x=0;if(p>1)for(;x<e.length-2&&!(g<e[x+1]);x++);const w=pr(e[x],e[x+1],g);return h[x](w)};return s?g=>m(Xn(e[0],e[f-1],g)):m}function nO(e,i){const s=e[e.length-1];for(let l=1;l<=i;l++){const o=pr(0,i,l);e.push(Ht(s,1,o))}}function iO(e){const i=[0];return nO(i,e.length-1),i}function aO(e,i){return e.map(s=>s*i)}function sO(e,i){return e.map(()=>i||Gb).splice(0,e.length-1)}function lr({duration:e=300,keyframes:i,times:s,ease:l="easeInOut"}){const o=gN(l)?l.map(wv):wv(l),f={done:!1,value:i[0]},d=aO(s&&s.length===i.length?s:iO(i),e),h=eO(d,i,{ease:Array.isArray(o)?o:sO(i,o)});return{calculatedDuration:e,next:p=>(f.value=h(p),f.done=p>=e,f)}}const rO=e=>e!==null;function rh(e,{repeat:i,repeatType:s="loop"},l,o=1){const f=e.filter(rO),h=o<0||i&&s!=="loop"&&i%2===1?0:f.length-1;return!h||l===void 0?f[h]:l}const lO={decay:nd,inertia:nd,tween:lr,keyframes:lr,spring:yo};function n1(e){typeof e.type=="string"&&(e.type=lO[e.type])}class lh{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(i=>{this.resolve=i})}notifyFinished(){this.resolve()}then(i,s){return this.finished.then(i,s)}}const oO=e=>e/100;class oh extends lh{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:s}=this.options;s&&s.updatedAt!==Ee.now()&&this.tick(Ee.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;n1(i);const{type:s=lr,repeat:l=0,repeatDelay:o=0,repeatType:f,velocity:d=0}=i;let{keyframes:h}=i;const p=s||lr;p!==lr&&typeof h[0]!="number"&&(this.mixKeyframes=Er(oO,Wb(h[0],h[1])),h=[0,100]);const m=p({...i,keyframes:h});f==="mirror"&&(this.mirroredGenerator=p({...i,keyframes:[...h].reverse(),velocity:-d})),m.calculatedDuration===null&&(m.calculatedDuration=sh(m));const{calculatedDuration:g}=m;this.calculatedDuration=g,this.resolvedDuration=g+o,this.totalDuration=this.resolvedDuration*(l+1)-o,this.generator=m}updateTime(i){const s=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(i,s=!1){const{generator:l,totalDuration:o,mixKeyframes:f,mirroredGenerator:d,resolvedDuration:h,calculatedDuration:p}=this;if(this.startTime===null)return l.next(0);const{delay:m=0,keyframes:g,repeat:x,repeatType:w,repeatDelay:T,type:A,onUpdate:E,finalKeyframe:M}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-o/this.speed,this.startTime)),s?this.currentTime=i:this.updateTime(i);const D=this.currentTime-m*(this.playbackSpeed>=0?1:-1),z=this.playbackSpeed>=0?D<0:D>o;this.currentTime=Math.max(D,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let R=this.currentTime,q=l;if(x){const H=Math.min(this.currentTime,o)/h;let W=Math.floor(H),st=H%1;!st&&H>=1&&(st=1),st===1&&W--,W=Math.min(W,x+1),!!(W%2)&&(w==="reverse"?(st=1-st,T&&(st-=T/h)):w==="mirror"&&(q=d)),R=Xn(0,1,st)*h}const G=z?{done:!1,value:g[0]}:q.next(R);f&&(G.value=f(G.value));let{done:Z}=G;!z&&p!==null&&(Z=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Z);return k&&A!==nd&&(G.value=rh(g,this.options,M,this.speed)),E&&E(G.value),k&&this.finish(),G}then(i,s){return this.finished.then(i,s)}get duration(){return We(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+We(i)}get time(){return We(this.currentTime)}set time(i){i=vn(i),this.currentTime=i,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(i){this.updateTime(Ee.now());const s=this.playbackSpeed!==i;this.playbackSpeed=i,s&&(this.time=We(this.currentTime))}play(){if(this.isStopped)return;const{driver:i=XN,startTime:s}=this.options;this.driver||(this.driver=i(o=>this.tick(o))),this.options.onPlay?.();const l=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=l):this.holdTime!==null?this.startTime=l-this.holdTime:this.startTime||(this.startTime=s??l),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(Ee.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}attachTimeline(i){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),i.observe(this)}}function cO(e){for(let i=1;i<e.length;i++)e[i]??(e[i]=e[i-1])}const Wi=e=>e*180/Math.PI,id=e=>{const i=Wi(Math.atan2(e[1],e[0]));return ad(i)},uO={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:id,rotateZ:id,skewX:e=>Wi(Math.atan(e[1])),skewY:e=>Wi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ad=e=>(e=e%360,e<0&&(e+=360),e),Mv=id,Nv=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ov=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),fO={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Nv,scaleY:Ov,scale:e=>(Nv(e)+Ov(e))/2,rotateX:e=>ad(Wi(Math.atan2(e[6],e[5]))),rotateY:e=>ad(Wi(Math.atan2(-e[2],e[0]))),rotateZ:Mv,rotate:Mv,skewX:e=>Wi(Math.atan(e[4])),skewY:e=>Wi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function sd(e){return e.includes("scale")?1:0}function rd(e,i){if(!e||e==="none")return sd(i);const s=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let l,o;if(s)l=fO,o=s;else{const h=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);l=uO,o=h}if(!o)return sd(i);const f=l[i],d=o[1].split(",").map(hO);return typeof f=="function"?f(d):d[f]}const dO=(e,i)=>{const{transform:s="none"}=getComputedStyle(e);return rd(s,i)};function hO(e){return parseFloat(e.trim())}const rs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ls=new Set(rs),jv=e=>e===ss||e===ft,mO=new Set(["x","y","z"]),pO=rs.filter(e=>!mO.has(e));function gO(e){const i=[];return pO.forEach(s=>{const l=e.getValue(s);l!==void 0&&(i.push([s,l.get()]),l.set(s.startsWith("scale")?1:0))}),i}const ta={width:({x:e},{paddingLeft:i="0",paddingRight:s="0"})=>e.max-e.min-parseFloat(i)-parseFloat(s),height:({y:e},{paddingTop:i="0",paddingBottom:s="0"})=>e.max-e.min-parseFloat(i)-parseFloat(s),top:(e,{top:i})=>parseFloat(i),left:(e,{left:i})=>parseFloat(i),bottom:({y:e},{top:i})=>parseFloat(i)+(e.max-e.min),right:({x:e},{left:i})=>parseFloat(i)+(e.max-e.min),x:(e,{transform:i})=>rd(i,"x"),y:(e,{transform:i})=>rd(i,"y")};ta.translateX=ta.x;ta.translateY=ta.y;const ea=new Set;let ld=!1,od=!1,cd=!1;function i1(){if(od){const e=Array.from(ea).filter(l=>l.needsMeasurement),i=new Set(e.map(l=>l.element)),s=new Map;i.forEach(l=>{const o=gO(l);o.length&&(s.set(l,o),l.render())}),e.forEach(l=>l.measureInitialState()),i.forEach(l=>{l.render();const o=s.get(l);o&&o.forEach(([f,d])=>{l.getValue(f)?.set(d)})}),e.forEach(l=>l.measureEndState()),e.forEach(l=>{l.suspendedScrollY!==void 0&&window.scrollTo(0,l.suspendedScrollY)})}od=!1,ld=!1,ea.forEach(e=>e.complete(cd)),ea.clear()}function a1(){ea.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(od=!0)})}function yO(){cd=!0,a1(),i1(),cd=!1}class ch{constructor(i,s,l,o,f,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=s,this.name=l,this.motionValue=o,this.element=f,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(ea.add(this),ld||(ld=!0,Pt.read(a1),Pt.resolveKeyframes(i1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:s,element:l,motionValue:o}=this;if(i[0]===null){const f=o?.get(),d=i[i.length-1];if(f!==void 0)i[0]=f;else if(l&&s){const h=l.readValue(s,d);h!=null&&(i[0]=h)}i[0]===void 0&&(i[0]=d),o&&f===void 0&&o.set(i[0])}cO(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),ea.delete(this)}cancel(){this.state==="scheduled"&&(ea.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const vO=e=>e.startsWith("--");function xO(e,i,s){vO(i)?e.style.setProperty(i,s):e.style[i]=s}const bO=Id(()=>window.ScrollTimeline!==void 0),wO={};function SO(e,i){const s=Id(e);return()=>wO[i]??s()}const s1=SO(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ar=([e,i,s,l])=>`cubic-bezier(${e}, ${i}, ${s}, ${l})`,Dv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ar([0,.65,.55,1]),circOut:ar([.55,0,1,.45]),backIn:ar([.31,.01,.66,-.59]),backOut:ar([.33,1.53,.69,.99])};function r1(e,i){if(e)return typeof e=="function"?s1()?t1(e,i):"ease-out":Yb(e)?ar(e):Array.isArray(e)?e.map(s=>r1(s,i)||Dv.easeOut):Dv[e]}function TO(e,i,s,{delay:l=0,duration:o=300,repeat:f=0,repeatType:d="loop",ease:h="easeOut",times:p}={},m=void 0){const g={[i]:s};p&&(g.offset=p);const x=r1(h,o);Array.isArray(x)&&(g.easing=x);const w={delay:l,duration:o,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:f+1,direction:d==="reverse"?"alternate":"normal"};return m&&(w.pseudoElement=m),e.animate(g,w)}function l1(e){return typeof e=="function"&&"applyToOptions"in e}function EO({type:e,...i}){return l1(e)&&s1()?e.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class AO extends lh{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,!i)return;const{element:s,name:l,keyframes:o,pseudoElement:f,allowFlatten:d=!1,finalKeyframe:h,onComplete:p}=i;this.isPseudoElement=!!f,this.allowFlatten=d,this.options=i,Zd(typeof i.type!="string");const m=EO(i);this.animation=TO(s,l,o,m,f),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const g=rh(o,this.options,h,this.speed);this.updateMotionValue?this.updateMotionValue(g):xO(s,l,g),this.animation.cancel()}p?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const i=this.animation.effect?.getComputedTiming?.().duration||0;return We(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+We(i)}get time(){return We(Number(this.animation.currentTime)||0)}set time(i){this.finishedTime=null,this.animation.currentTime=vn(i)}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(i){this.animation.startTime=i}attachTimeline({timeline:i,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,i&&bO()?(this.animation.timeline=i,tn):s(this)}}const o1={anticipate:Pb,backInOut:kb,circInOut:qb};function CO(e){return e in o1}function MO(e){typeof e.ease=="string"&&CO(e.ease)&&(e.ease=o1[e.ease])}const Rv=10;class NO extends AO{constructor(i){MO(i),n1(i),super(i),i.startTime&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:s,onUpdate:l,onComplete:o,element:f,...d}=this.options;if(!s)return;if(i!==void 0){s.set(i);return}const h=new oh({...d,autoplay:!1}),p=vn(this.finishedTime??this.time);s.setWithVelocity(h.sample(p-Rv).value,h.sample(p).value,Rv),h.stop()}}const _v=(e,i)=>i==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ti.test(e)||e==="0")&&!e.startsWith("url("));function OO(e){const i=e[0];if(e.length===1)return!0;for(let s=0;s<e.length;s++)if(e[s]!==i)return!0}function jO(e,i,s,l){const o=e[0];if(o===null)return!1;if(i==="display"||i==="visibility")return!0;const f=e[e.length-1],d=_v(o,i),h=_v(f,i);return!d||!h?!1:OO(e)||(s==="spring"||l1(s))&&l}function ud(e){e.duration=0,e.type="keyframes"}const DO=new Set(["opacity","clipPath","filter","transform"]),RO=Id(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function _O(e){const{motionValue:i,name:s,repeatDelay:l,repeatType:o,damping:f,type:d}=e;if(!(i?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:m}=i.owner.getProps();return RO()&&s&&DO.has(s)&&(s!=="transform"||!m)&&!p&&!l&&o!=="mirror"&&f!==0&&d!=="inertia"}const zO=40;class LO extends lh{constructor({autoplay:i=!0,delay:s=0,type:l="keyframes",repeat:o=0,repeatDelay:f=0,repeatType:d="loop",keyframes:h,name:p,motionValue:m,element:g,...x}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ee.now();const w={autoplay:i,delay:s,type:l,repeat:o,repeatDelay:f,repeatType:d,name:p,motionValue:m,element:g,...x},T=g?.KeyframeResolver||ch;this.keyframeResolver=new T(h,(A,E,M)=>this.onKeyframesResolved(A,E,w,!M),p,m,g),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(i,s,l,o){this.keyframeResolver=void 0;const{name:f,type:d,velocity:h,delay:p,isHandoff:m,onUpdate:g}=l;this.resolvedAt=Ee.now(),jO(i,f,d,h)||((Kn.instantAnimations||!p)&&g?.(rh(i,l,s)),i[0]=i[i.length-1],ud(l),l.repeat=0);const w={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>zO?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...l,keyframes:i},T=!m&&_O(w)?new NO({...w,element:w.motionValue.owner.current}):new oh(w);T.finished.then(()=>this.notifyFinished()).catch(tn),this.pendingTimeline&&(this.stopTimeline=T.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=T}get finished(){return this._animation?this.animation.finished:this._finished}then(i,s){return this.finished.finally(i).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),yO()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(i){this.animation.time=i}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(i){this.animation.speed=i}get startTime(){return this.animation.startTime}attachTimeline(i){return this._animation?this.stopTimeline=this.animation.attachTimeline(i):this.pendingTimeline=i,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const VO=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function UO(e){const i=VO.exec(e);if(!i)return[,];const[,s,l,o]=i;return[`--${s??l}`,o]}function c1(e,i,s=1){const[l,o]=UO(e);if(!l)return;const f=window.getComputedStyle(i).getPropertyValue(l);if(f){const d=f.trim();return Db(d)?parseFloat(d):d}return eh(o)?c1(o,i,s+1):o}function uh(e,i){return e?.[i]??e?.default??e}const u1=new Set(["width","height","top","left","right","bottom",...rs]),BO={test:e=>e==="auto",parse:e=>e},f1=e=>i=>i.test(e),d1=[ss,ft,xn,xi,ON,NN,BO],zv=e=>d1.find(f1(e));function kO(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||_b(e):!0}const PO=new Set(["brightness","contrast","saturate","opacity"]);function HO(e){const[i,s]=e.slice(0,-1).split("(");if(i==="drop-shadow")return e;const[l]=s.match(nh)||[];if(!l)return e;const o=s.replace(l,"");let f=PO.has(i)?1:0;return l!==s&&(f*=100),i+"("+f+o+")"}const qO=/\b([a-z-]*)\(.*?\)/gu,fd={...Ti,getAnimatableNone:e=>{const i=e.match(qO);return i?i.map(HO).join(" "):e}},Lv={...ss,transform:Math.round},GO={rotate:xi,rotateX:xi,rotateY:xi,rotateZ:xi,scale:Wl,scaleX:Wl,scaleY:Wl,scaleZ:Wl,skew:xi,skewX:xi,skewY:xi,distance:ft,translateX:ft,translateY:ft,translateZ:ft,x:ft,y:ft,z:ft,perspective:ft,transformPerspective:ft,opacity:gr,originX:Sv,originY:Sv,originZ:ft},fh={borderWidth:ft,borderTopWidth:ft,borderRightWidth:ft,borderBottomWidth:ft,borderLeftWidth:ft,borderRadius:ft,radius:ft,borderTopLeftRadius:ft,borderTopRightRadius:ft,borderBottomRightRadius:ft,borderBottomLeftRadius:ft,width:ft,maxWidth:ft,height:ft,maxHeight:ft,top:ft,right:ft,bottom:ft,left:ft,padding:ft,paddingTop:ft,paddingRight:ft,paddingBottom:ft,paddingLeft:ft,margin:ft,marginTop:ft,marginRight:ft,marginBottom:ft,marginLeft:ft,backgroundPositionX:ft,backgroundPositionY:ft,...GO,zIndex:Lv,fillOpacity:gr,strokeOpacity:gr,numOctaves:Lv},YO={...fh,color:Wt,backgroundColor:Wt,outlineColor:Wt,fill:Wt,stroke:Wt,borderColor:Wt,borderTopColor:Wt,borderRightColor:Wt,borderBottomColor:Wt,borderLeftColor:Wt,filter:fd,WebkitFilter:fd},h1=e=>YO[e];function m1(e,i){let s=h1(e);return s!==fd&&(s=Ti),s.getAnimatableNone?s.getAnimatableNone(i):void 0}const XO=new Set(["auto","none","0"]);function KO(e,i,s){let l=0,o;for(;l<e.length&&!o;){const f=e[l];typeof f=="string"&&!XO.has(f)&&yr(f).values.length&&(o=e[l]),l++}if(o&&s)for(const f of i)e[f]=m1(s,o)}class FO extends ch{constructor(i,s,l,o,f){super(i,s,l,o,f,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:s,name:l}=this;if(!s||!s.current)return;super.readKeyframes();for(let p=0;p<i.length;p++){let m=i[p];if(typeof m=="string"&&(m=m.trim(),eh(m))){const g=c1(m,s.current);g!==void 0&&(i[p]=g),p===i.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!u1.has(l)||i.length!==2)return;const[o,f]=i,d=zv(o),h=zv(f);if(d!==h)if(jv(d)&&jv(h))for(let p=0;p<i.length;p++){const m=i[p];typeof m=="string"&&(i[p]=parseFloat(m))}else ta[l]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:s}=this,l=[];for(let o=0;o<i.length;o++)(i[o]===null||kO(i[o]))&&l.push(o);l.length&&KO(i,l,s)}measureInitialState(){const{element:i,unresolvedKeyframes:s,name:l}=this;if(!i||!i.current)return;l==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ta[l](i.measureViewportBox(),window.getComputedStyle(i.current)),s[0]=this.measuredOrigin;const o=s[s.length-1];o!==void 0&&i.getValue(l,o).jump(o,!1)}measureEndState(){const{element:i,name:s,unresolvedKeyframes:l}=this;if(!i||!i.current)return;const o=i.getValue(s);o&&o.jump(this.measuredOrigin,!1);const f=l.length-1,d=l[f];l[f]=ta[s](i.measureViewportBox(),window.getComputedStyle(i.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([h,p])=>{i.getValue(h).set(p)}),this.resolveNoneKeyframes()}}function QO(e,i,s){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let l=document;const o=s?.[e]??l.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const p1=(e,i)=>i&&typeof e=="number"?i.transform(e):e;function g1(e){return Rb(e)&&"offsetHeight"in e}const Vv=30,ZO=e=>!isNaN(parseFloat(e));class IO{constructor(i,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=l=>{const o=Ee.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(l),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=s.owner}setCurrent(i){this.current=i,this.updatedAt=Ee.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=ZO(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,s){this.events[i]||(this.events[i]=new $d);const l=this.events[i].add(s);return i==="change"?()=>{l(),Pt.read(()=>{this.events.change.getSize()||this.stop()})}:l}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,s){this.passiveEffect=i,this.stopPassiveEffect=s}set(i){this.passiveEffect?this.passiveEffect(i,this.updateAndNotify):this.updateAndNotify(i)}setWithVelocity(i,s,l){this.set(s),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-l}jump(i,s=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(i){this.dependents||(this.dependents=new Set),this.dependents.add(i)}removeDependent(i){this.dependents&&this.dependents.delete(i)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=Ee.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>Vv)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Vv);return zb(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(i){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=i(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Wa(e,i){return new IO(e,i)}const{schedule:dh}=Xb(queueMicrotask,!1),rn={x:!1,y:!1};function y1(){return rn.x||rn.y}function $O(e){return e==="x"||e==="y"?rn[e]?null:(rn[e]=!0,()=>{rn[e]=!1}):rn.x||rn.y?null:(rn.x=rn.y=!0,()=>{rn.x=rn.y=!1})}function v1(e,i){const s=QO(e),l=new AbortController,o={passive:!0,...i,signal:l.signal};return[s,o,()=>l.abort()]}function Uv(e){return!(e.pointerType==="touch"||y1())}function JO(e,i,s={}){const[l,o,f]=v1(e,s),d=h=>{if(!Uv(h))return;const{target:p}=h,m=i(p,h);if(typeof m!="function"||!p)return;const g=x=>{Uv(x)&&(m(x),p.removeEventListener("pointerleave",g))};p.addEventListener("pointerleave",g,o)};return l.forEach(h=>{h.addEventListener("pointerenter",d,o)}),f}const x1=(e,i)=>i?e===i?!0:x1(e,i.parentElement):!1,hh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,WO=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function tj(e){return WO.has(e.tagName)||e.tabIndex!==-1}const ro=new WeakSet;function Bv(e){return i=>{i.key==="Enter"&&e(i)}}function Mf(e,i){e.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const ej=(e,i)=>{const s=e.currentTarget;if(!s)return;const l=Bv(()=>{if(ro.has(s))return;Mf(s,"down");const o=Bv(()=>{Mf(s,"up")}),f=()=>Mf(s,"cancel");s.addEventListener("keyup",o,i),s.addEventListener("blur",f,i)});s.addEventListener("keydown",l,i),s.addEventListener("blur",()=>s.removeEventListener("keydown",l),i)};function kv(e){return hh(e)&&!y1()}function nj(e,i,s={}){const[l,o,f]=v1(e,s),d=h=>{const p=h.currentTarget;if(!kv(h))return;ro.add(p);const m=i(p,h),g=(T,A)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",w),ro.has(p)&&ro.delete(p),kv(T)&&typeof m=="function"&&m(T,{success:A})},x=T=>{g(T,p===window||p===document||s.useGlobalTarget||x1(p,T.target))},w=T=>{g(T,!1)};window.addEventListener("pointerup",x,o),window.addEventListener("pointercancel",w,o)};return l.forEach(h=>{(s.useGlobalTarget?window:h).addEventListener("pointerdown",d,o),g1(h)&&(h.addEventListener("focus",m=>ej(m,o)),!tj(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),f}function b1(e){return Rb(e)&&"ownerSVGElement"in e}function ij(e){return b1(e)&&e.tagName==="svg"}const fe=e=>!!(e&&e.getVelocity),aj=[...d1,Wt,Ti],sj=e=>aj.find(f1(e)),mh=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Pv(e,i){if(typeof e=="function")return e(i);e!=null&&(e.current=i)}function rj(...e){return i=>{let s=!1;const l=e.map(o=>{const f=Pv(o,i);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let o=0;o<l.length;o++){const f=l[o];typeof f=="function"?f():Pv(e[o],null)}}}}function lj(...e){return S.useCallback(rj(...e),e)}class oj extends S.Component{getSnapshotBeforeUpdate(i){const s=this.props.childRef.current;if(s&&i.isPresent&&!this.props.isPresent){const l=s.offsetParent,o=g1(l)&&l.offsetWidth||0,f=this.props.sizeRef.current;f.height=s.offsetHeight||0,f.width=s.offsetWidth||0,f.top=s.offsetTop,f.left=s.offsetLeft,f.right=o-f.width-f.left}return null}componentDidUpdate(){}render(){return this.props.children}}function cj({children:e,isPresent:i,anchorX:s,root:l}){const o=S.useId(),f=S.useRef(null),d=S.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:h}=S.useContext(mh),p=lj(f,e?.ref);return S.useInsertionEffect(()=>{const{width:m,height:g,top:x,left:w,right:T}=d.current;if(i||!f.current||!m||!g)return;const A=s==="left"?`left: ${w}`:`right: ${T}`;f.current.dataset.motionPopId=o;const E=document.createElement("style");h&&(E.nonce=h);const M=l??document.head;return M.appendChild(E),E.sheet&&E.sheet.insertRule(`
          [data-motion-pop-id="${o}"] {
            position: absolute !important;
            width: ${m}px !important;
            height: ${g}px !important;
            ${A}px !important;
            top: ${x}px !important;
          }
        `),()=>{M.contains(E)&&M.removeChild(E)}},[i]),v.jsx(oj,{isPresent:i,childRef:f,sizeRef:d,children:S.cloneElement(e,{ref:p})})}const uj=({children:e,initial:i,isPresent:s,onExitComplete:l,custom:o,presenceAffectsLayout:f,mode:d,anchorX:h,root:p})=>{const m=Xd(fj),g=S.useId();let x=!0,w=S.useMemo(()=>(x=!1,{id:g,initial:i,isPresent:s,custom:o,onExitComplete:T=>{m.set(T,!0);for(const A of m.values())if(!A)return;l&&l()},register:T=>(m.set(T,!1),()=>m.delete(T))}),[s,m,l]);return f&&x&&(w={...w}),S.useMemo(()=>{m.forEach((T,A)=>m.set(A,!1))},[s]),S.useEffect(()=>{!s&&!m.size&&l&&l()},[s]),d==="popLayout"&&(e=v.jsx(cj,{isPresent:s,anchorX:h,root:p,children:e})),v.jsx(Vo.Provider,{value:w,children:e})};function fj(){return new Map}function w1(e=!0){const i=S.useContext(Vo);if(i===null)return[!0,null];const{isPresent:s,onExitComplete:l,register:o}=i,f=S.useId();S.useEffect(()=>{if(e)return o(f)},[e]);const d=S.useCallback(()=>e&&l&&l(f),[f,l,e]);return!s&&l?[!1,d]:[!0]}const to=e=>e.key||"";function Hv(e){const i=[];return S.Children.forEach(e,s=>{S.isValidElement(s)&&i.push(s)}),i}const S1=({children:e,custom:i,initial:s=!0,onExitComplete:l,presenceAffectsLayout:o=!0,mode:f="sync",propagate:d=!1,anchorX:h="left",root:p})=>{const[m,g]=w1(d),x=S.useMemo(()=>Hv(e),[e]),w=d&&!m?[]:x.map(to),T=S.useRef(!0),A=S.useRef(x),E=Xd(()=>new Map),[M,D]=S.useState(x),[z,R]=S.useState(x);jb(()=>{T.current=!1,A.current=x;for(let Z=0;Z<z.length;Z++){const k=to(z[Z]);w.includes(k)?E.delete(k):E.get(k)!==!0&&E.set(k,!1)}},[z,w.length,w.join("-")]);const q=[];if(x!==M){let Z=[...x];for(let k=0;k<z.length;k++){const H=z[k],W=to(H);w.includes(W)||(Z.splice(k,0,H),q.push(H))}return f==="wait"&&q.length&&(Z=q),R(Hv(Z)),D(x),null}const{forceRender:G}=S.useContext(Yd);return v.jsx(v.Fragment,{children:z.map(Z=>{const k=to(Z),H=d&&!m?!1:x===z||w.includes(k),W=()=>{if(E.has(k))E.set(k,!0);else return;let st=!0;E.forEach(dt=>{dt||(st=!1)}),st&&(G?.(),R(A.current),d&&g?.(),l&&l())};return v.jsx(uj,{isPresent:H,initial:!T.current||s?void 0:!1,custom:i,presenceAffectsLayout:o,mode:f,root:p,onExitComplete:H?void 0:W,anchorX:h,children:Z},k)})})},T1=S.createContext({strict:!1}),qv={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"]},ts={};for(const e in qv)ts[e]={isEnabled:i=>qv[e].some(s=>!!i[s])};function dj(e){for(const i in e)ts[i]={...ts[i],...e[i]}}const hj=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 vo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||hj.has(e)}let E1=e=>!vo(e);function mj(e){typeof e=="function"&&(E1=i=>i.startsWith("on")?!vo(i):e(i))}try{mj(require("@emotion/is-prop-valid").default)}catch{}function pj(e,i,s){const l={};for(const o in e)o==="values"&&typeof e.values=="object"||(E1(o)||s===!0&&vo(o)||!i&&!vo(o)||e.draggable&&o.startsWith("onDrag"))&&(l[o]=e[o]);return l}const Uo=S.createContext({});function Bo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function vr(e){return typeof e=="string"||Array.isArray(e)}const ph=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],gh=["initial",...ph];function ko(e){return Bo(e.animate)||gh.some(i=>vr(e[i]))}function A1(e){return!!(ko(e)||e.variants)}function gj(e,i){if(ko(e)){const{initial:s,animate:l}=e;return{initial:s===!1||vr(s)?s:void 0,animate:vr(l)?l:void 0}}return e.inherit!==!1?i:{}}function yj(e){const{initial:i,animate:s}=gj(e,S.useContext(Uo));return S.useMemo(()=>({initial:i,animate:s}),[Gv(i),Gv(s)])}function Gv(e){return Array.isArray(e)?e.join(" "):e}const xr={};function vj(e){for(const i in e)xr[i]=e[i],th(i)&&(xr[i].isCSSVariable=!0)}function C1(e,{layout:i,layoutId:s}){return ls.has(e)||e.startsWith("origin")||(i||s!==void 0)&&(!!xr[e]||e==="opacity")}const xj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bj=rs.length;function wj(e,i,s){let l="",o=!0;for(let f=0;f<bj;f++){const d=rs[f],h=e[d];if(h===void 0)continue;let p=!0;if(typeof h=="number"?p=h===(d.startsWith("scale")?1:0):p=parseFloat(h)===0,!p||s){const m=p1(h,fh[d]);if(!p){o=!1;const g=xj[d]||d;l+=`${g}(${m}) `}s&&(i[d]=m)}}return l=l.trim(),s?l=s(i,o?"":l):o&&(l="none"),l}function yh(e,i,s){const{style:l,vars:o,transformOrigin:f}=e;let d=!1,h=!1;for(const p in i){const m=i[p];if(ls.has(p)){d=!0;continue}else if(th(p)){o[p]=m;continue}else{const g=p1(m,fh[p]);p.startsWith("origin")?(h=!0,f[p]=g):l[p]=g}}if(i.transform||(d||s?l.transform=wj(i,e.transform,s):l.transform&&(l.transform="none")),h){const{originX:p="50%",originY:m="50%",originZ:g=0}=f;l.transformOrigin=`${p} ${m} ${g}`}}const vh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function M1(e,i,s){for(const l in i)!fe(i[l])&&!C1(l,s)&&(e[l]=i[l])}function Sj({transformTemplate:e},i){return S.useMemo(()=>{const s=vh();return yh(s,i,e),Object.assign({},s.vars,s.style)},[i])}function Tj(e,i){const s=e.style||{},l={};return M1(l,s,e),Object.assign(l,Sj(e,i)),l}function Ej(e,i){const s={},l=Tj(e,i);return e.drag&&e.dragListener!==!1&&(s.draggable=!1,l.userSelect=l.WebkitUserSelect=l.WebkitTouchCallout="none",l.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(s.tabIndex=0),s.style=l,s}const Aj={offset:"stroke-dashoffset",array:"stroke-dasharray"},Cj={offset:"strokeDashoffset",array:"strokeDasharray"};function Mj(e,i,s=1,l=0,o=!0){e.pathLength=1;const f=o?Aj:Cj;e[f.offset]=ft.transform(-l);const d=ft.transform(i),h=ft.transform(s);e[f.array]=`${d} ${h}`}function N1(e,{attrX:i,attrY:s,attrScale:l,pathLength:o,pathSpacing:f=1,pathOffset:d=0,...h},p,m,g){if(yh(e,h,m),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:x,style:w}=e;x.transform&&(w.transform=x.transform,delete x.transform),(w.transform||x.transformOrigin)&&(w.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),w.transform&&(w.transformBox=g?.transformBox??"fill-box",delete x.transformBox),i!==void 0&&(x.x=i),s!==void 0&&(x.y=s),l!==void 0&&(x.scale=l),o!==void 0&&Mj(x,o,f,d,!1)}const O1=()=>({...vh(),attrs:{}}),j1=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Nj(e,i,s,l){const o=S.useMemo(()=>{const f=O1();return N1(f,i,j1(l),e.transformTemplate,e.style),{...f.attrs,style:{...f.style}}},[i]);if(e.style){const f={};M1(f,e.style,e),o.style={...f,...o.style}}return o}const Oj=["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 xh(e){return typeof e!="string"||e.includes("-")?!1:!!(Oj.indexOf(e)>-1||/[A-Z]/u.test(e))}function jj(e,i,s,{latestValues:l},o,f=!1){const h=(xh(e)?Nj:Ej)(i,l,o,e),p=pj(i,typeof e=="string",f),m=e!==S.Fragment?{...p,...h,ref:s}:{},{children:g}=i,x=S.useMemo(()=>fe(g)?g.get():g,[g]);return S.createElement(e,{...m,children:x})}function Yv(e){const i=[{},{}];return e?.values.forEach((s,l)=>{i[0][l]=s.get(),i[1][l]=s.getVelocity()}),i}function bh(e,i,s,l){if(typeof i=="function"){const[o,f]=Yv(l);i=i(s!==void 0?s:e.custom,o,f)}if(typeof i=="string"&&(i=e.variants&&e.variants[i]),typeof i=="function"){const[o,f]=Yv(l);i=i(s!==void 0?s:e.custom,o,f)}return i}function lo(e){return fe(e)?e.get():e}function Dj({scrapeMotionValuesFromProps:e,createRenderState:i},s,l,o){return{latestValues:Rj(s,l,o,e),renderState:i()}}function Rj(e,i,s,l){const o={},f=l(e,{});for(const w in f)o[w]=lo(f[w]);let{initial:d,animate:h}=e;const p=ko(e),m=A1(e);i&&m&&!p&&e.inherit!==!1&&(d===void 0&&(d=i.initial),h===void 0&&(h=i.animate));let g=s?s.initial===!1:!1;g=g||d===!1;const x=g?h:d;if(x&&typeof x!="boolean"&&!Bo(x)){const w=Array.isArray(x)?x:[x];for(let T=0;T<w.length;T++){const A=bh(e,w[T]);if(A){const{transitionEnd:E,transition:M,...D}=A;for(const z in D){let R=D[z];if(Array.isArray(R)){const q=g?R.length-1:0;R=R[q]}R!==null&&(o[z]=R)}for(const z in E)o[z]=E[z]}}}return o}const D1=e=>(i,s)=>{const l=S.useContext(Uo),o=S.useContext(Vo),f=()=>Dj(e,i,l,o);return s?f():Xd(f)};function wh(e,i,s){const{style:l}=e,o={};for(const f in l)(fe(l[f])||i.style&&fe(i.style[f])||C1(f,e)||s?.getValue(f)?.liveStyle!==void 0)&&(o[f]=l[f]);return o}const _j=D1({scrapeMotionValuesFromProps:wh,createRenderState:vh});function R1(e,i,s){const l=wh(e,i,s);for(const o in e)if(fe(e[o])||fe(i[o])){const f=rs.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;l[f]=e[o]}return l}const zj=D1({scrapeMotionValuesFromProps:R1,createRenderState:O1}),Lj=Symbol.for("motionComponentSymbol");function Xa(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Vj(e,i,s){return S.useCallback(l=>{l&&e.onMount&&e.onMount(l),i&&(l?i.mount(l):i.unmount()),s&&(typeof s=="function"?s(l):Xa(s)&&(s.current=l))},[i])}const Sh=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Uj="framerAppearId",_1="data-"+Sh(Uj),z1=S.createContext({});function Bj(e,i,s,l,o){const{visualElement:f}=S.useContext(Uo),d=S.useContext(T1),h=S.useContext(Vo),p=S.useContext(mh).reducedMotion,m=S.useRef(null);l=l||d.renderer,!m.current&&l&&(m.current=l(e,{visualState:i,parent:f,props:s,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:p}));const g=m.current,x=S.useContext(z1);g&&!g.projection&&o&&(g.type==="html"||g.type==="svg")&&kj(m.current,s,o,x);const w=S.useRef(!1);S.useInsertionEffect(()=>{g&&w.current&&g.update(s,h)});const T=s[_1],A=S.useRef(!!T&&!window.MotionHandoffIsComplete?.(T)&&window.MotionHasOptimisedAnimation?.(T));return jb(()=>{g&&(w.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),A.current&&g.animationState&&g.animationState.animateChanges())}),S.useEffect(()=>{g&&(!A.current&&g.animationState&&g.animationState.animateChanges(),A.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(T)}),A.current=!1),g.enteringChildren=void 0)}),g}function kj(e,i,s,l){const{layoutId:o,layout:f,drag:d,dragConstraints:h,layoutScroll:p,layoutRoot:m,layoutCrossfade:g}=i;e.projection=new s(e.latestValues,i["data-framer-portal-id"]?void 0:L1(e.parent)),e.projection.setOptions({layoutId:o,layout:f,alwaysMeasureLayout:!!d||h&&Xa(h),visualElement:e,animationType:typeof f=="string"?f:"both",initialPromotionConfig:l,crossfade:g,layoutScroll:p,layoutRoot:m})}function L1(e){if(e)return e.options.allowProjection!==!1?e.projection:L1(e.parent)}function Nf(e,{forwardMotionProps:i=!1}={},s,l){s&&dj(s);const o=xh(e)?zj:_j;function f(h,p){let m;const g={...S.useContext(mh),...h,layoutId:Pj(h)},{isStatic:x}=g,w=yj(h),T=o(h,x);if(!x&&Kd){Hj();const A=qj(g);m=A.MeasureLayout,w.visualElement=Bj(e,T,g,l,A.ProjectionNode)}return v.jsxs(Uo.Provider,{value:w,children:[m&&w.visualElement?v.jsx(m,{visualElement:w.visualElement,...g}):null,jj(e,h,Vj(T,w.visualElement,p),T,x,i)]})}f.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const d=S.forwardRef(f);return d[Lj]=e,d}function Pj({layoutId:e}){const i=S.useContext(Yd).id;return i&&e!==void 0?i+"-"+e:e}function Hj(e,i){S.useContext(T1).strict}function qj(e){const{drag:i,layout:s}=ts;if(!i&&!s)return{};const l={...i,...s};return{MeasureLayout:i?.isEnabled(e)||s?.isEnabled(e)?l.MeasureLayout:void 0,ProjectionNode:l.ProjectionNode}}function Gj(e,i){if(typeof Proxy>"u")return Nf;const s=new Map,l=(f,d)=>Nf(f,d,e,i),o=(f,d)=>l(f,d);return new Proxy(o,{get:(f,d)=>d==="create"?l:(s.has(d)||s.set(d,Nf(d,void 0,e,i)),s.get(d))})}function V1({top:e,left:i,right:s,bottom:l}){return{x:{min:i,max:s},y:{min:e,max:l}}}function Yj({x:e,y:i}){return{top:i.min,right:e.max,bottom:i.max,left:e.min}}function Xj(e,i){if(!i)return e;const s=i({x:e.left,y:e.top}),l=i({x:e.right,y:e.bottom});return{top:s.y,left:s.x,bottom:l.y,right:l.x}}function Of(e){return e===void 0||e===1}function dd({scale:e,scaleX:i,scaleY:s}){return!Of(e)||!Of(i)||!Of(s)}function $i(e){return dd(e)||U1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function U1(e){return Xv(e.x)||Xv(e.y)}function Xv(e){return e&&e!=="0%"}function xo(e,i,s){const l=e-s,o=i*l;return s+o}function Kv(e,i,s,l,o){return o!==void 0&&(e=xo(e,o,l)),xo(e,s,l)+i}function hd(e,i=0,s=1,l,o){e.min=Kv(e.min,i,s,l,o),e.max=Kv(e.max,i,s,l,o)}function B1(e,{x:i,y:s}){hd(e.x,i.translate,i.scale,i.originPoint),hd(e.y,s.translate,s.scale,s.originPoint)}const Fv=.999999999999,Qv=1.0000000000001;function Kj(e,i,s,l=!1){const o=s.length;if(!o)return;i.x=i.y=1;let f,d;for(let h=0;h<o;h++){f=s[h],d=f.projectionDelta;const{visualElement:p}=f.options;p&&p.props.style&&p.props.style.display==="contents"||(l&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Fa(e,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),d&&(i.x*=d.x.scale,i.y*=d.y.scale,B1(e,d)),l&&$i(f.latestValues)&&Fa(e,f.latestValues))}i.x<Qv&&i.x>Fv&&(i.x=1),i.y<Qv&&i.y>Fv&&(i.y=1)}function Ka(e,i){e.min=e.min+i,e.max=e.max+i}function Zv(e,i,s,l,o=.5){const f=Ht(e.min,e.max,o);hd(e,i,s,f,l)}function Fa(e,i){Zv(e.x,i.x,i.scaleX,i.scale,i.originX),Zv(e.y,i.y,i.scaleY,i.scale,i.originY)}function k1(e,i){return V1(Xj(e.getBoundingClientRect(),i))}function Fj(e,i,s){const l=k1(e,s),{scroll:o}=i;return o&&(Ka(l.x,o.offset.x),Ka(l.y,o.offset.y)),l}const Iv=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qa=()=>({x:Iv(),y:Iv()}),$v=()=>({min:0,max:0}),Qt=()=>({x:$v(),y:$v()}),md={current:null},P1={current:!1};function Qj(){if(P1.current=!0,!!Kd)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),i=()=>md.current=e.matches;e.addEventListener("change",i),i()}else md.current=!1}const Zj=new WeakMap;function Ij(e,i,s){for(const l in i){const o=i[l],f=s[l];if(fe(o))e.addValue(l,o);else if(fe(f))e.addValue(l,Wa(o,{owner:e}));else if(f!==o)if(e.hasValue(l)){const d=e.getValue(l);d.liveStyle===!0?d.jump(o):d.hasAnimated||d.set(o)}else{const d=e.getStaticValue(l);e.addValue(l,Wa(d!==void 0?d:o,{owner:e}))}}for(const l in s)i[l]===void 0&&e.removeValue(l);return i}const Jv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class $j{scrapeMotionValuesFromProps(i,s,l){return{}}constructor({parent:i,props:s,presenceContext:l,reducedMotionConfig:o,blockInitialAnimation:f,visualState:d},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ch,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 w=Ee.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,Pt.render(this.render,!1,!0))};const{latestValues:p,renderState:m}=d;this.latestValues=p,this.baseTarget={...p},this.initialValues=s.initial?{...p}:{},this.renderState=m,this.parent=i,this.props=s,this.presenceContext=l,this.depth=i?i.depth+1:0,this.reducedMotionConfig=o,this.options=h,this.blockInitialAnimation=!!f,this.isControllingVariants=ko(s),this.isVariantNode=A1(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:g,...x}=this.scrapeMotionValuesFromProps(s,{},this);for(const w in x){const T=x[w];p[w]!==void 0&&fe(T)&&T.set(p[w])}}mount(i){this.current=i,Zj.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,l)=>this.bindToMotionValue(l,s)),P1.current||Qj(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:md.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Si(this.notifyUpdate),Si(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const s=this.features[i];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(i){this.children.add(i),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(i)}removeChild(i){this.children.delete(i),this.enteringChildren&&this.enteringChildren.delete(i)}bindToMotionValue(i,s){this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)();const l=ls.has(i);l&&this.onBindTransform&&this.onBindTransform();const o=s.on("change",d=>{this.latestValues[i]=d,this.props.onUpdate&&Pt.preRender(this.notifyUpdate),l&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,i,s)),this.valueSubscriptions.set(i,()=>{o(),f&&f(),s.owner&&s.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in ts){const s=ts[i];if(!s)continue;const{isEnabled:l,Feature:o}=s;if(!this.features[i]&&o&&l(this.props)&&(this.features[i]=new o(this)),this.features[i]){const f=this.features[i];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Qt()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,s){this.latestValues[i]=s}update(i,s){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let l=0;l<Jv.length;l++){const o=Jv[l];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const f="on"+o,d=i[f];d&&(this.propEventSubscriptions[o]=this.on(o,d))}this.prevMotionValues=Ij(this,this.scrapeMotionValuesFromProps(i,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]: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(i){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(i),()=>s.variantChildren.delete(i)}addValue(i,s){const l=this.values.get(i);s!==l&&(l&&this.removeValue(i),this.bindToMotionValue(i,s),this.values.set(i,s),this.latestValues[i]=s.get())}removeValue(i){this.values.delete(i);const s=this.valueSubscriptions.get(i);s&&(s(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,s){if(this.props.values&&this.props.values[i])return this.props.values[i];let l=this.values.get(i);return l===void 0&&s!==void 0&&(l=Wa(s===null?void 0:s,{owner:this}),this.addValue(i,l)),l}readValue(i,s){let l=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return l!=null&&(typeof l=="string"&&(Db(l)||_b(l))?l=parseFloat(l):!sj(l)&&Ti.test(s)&&(l=m1(i,s)),this.setBaseTarget(i,fe(l)?l.get():l)),fe(l)?l.get():l}setBaseTarget(i,s){this.baseTarget[i]=s}getBaseTarget(i){const{initial:s}=this.props;let l;if(typeof s=="string"||typeof s=="object"){const f=bh(this.props,s,this.presenceContext?.custom);f&&(l=f[i])}if(s&&l!==void 0)return l;const o=this.getBaseTargetFromProps(this.props,i);return o!==void 0&&!fe(o)?o:this.initialValues[i]!==void 0&&l===void 0?void 0:this.baseTarget[i]}on(i,s){return this.events[i]||(this.events[i]=new $d),this.events[i].add(s)}notify(i,...s){this.events[i]&&this.events[i].notify(...s)}scheduleRenderMicrotask(){dh.render(this.render)}}class H1 extends $j{constructor(){super(...arguments),this.KeyframeResolver=FO}sortInstanceNodePosition(i,s){return i.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(i,s){return i.style?i.style[s]:void 0}removeValueFromRenderState(i,{vars:s,style:l}){delete s[i],delete l[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;fe(i)&&(this.childSubscription=i.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function q1(e,{style:i,vars:s},l,o){const f=e.style;let d;for(d in i)f[d]=i[d];o?.applyProjectionStyles(f,l);for(d in s)f.setProperty(d,s[d])}function Jj(e){return window.getComputedStyle(e)}class Wj extends H1{constructor(){super(...arguments),this.type="html",this.renderInstance=q1}readValueFromInstance(i,s){if(ls.has(s))return this.projection?.isProjecting?sd(s):dO(i,s);{const l=Jj(i),o=(th(s)?l.getPropertyValue(s):l[s])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(i,{transformPagePoint:s}){return k1(i,s)}build(i,s,l){yh(i,s,l.transformTemplate)}scrapeMotionValuesFromProps(i,s,l){return wh(i,s,l)}}const G1=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 tD(e,i,s,l){q1(e,i,void 0,l);for(const o in i.attrs)e.setAttribute(G1.has(o)?o:Sh(o),i.attrs[o])}class eD extends H1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Qt}getBaseTargetFromProps(i,s){return i[s]}readValueFromInstance(i,s){if(ls.has(s)){const l=h1(s);return l&&l.default||0}return s=G1.has(s)?s:Sh(s),i.getAttribute(s)}scrapeMotionValuesFromProps(i,s,l){return R1(i,s,l)}build(i,s,l){N1(i,s,this.isSVGTag,l.transformTemplate,l.style)}renderInstance(i,s,l,o){tD(i,s,l,o)}mount(i){this.isSVGTag=j1(i.tagName),super.mount(i)}}const nD=(e,i)=>xh(e)?new eD(i):new Wj(i,{allowProjection:e!==S.Fragment});function Ia(e,i,s){const l=e.getProps();return bh(l,i,s!==void 0?s:l.custom,e)}const pd=e=>Array.isArray(e);function iD(e,i,s){e.hasValue(i)?e.getValue(i).set(s):e.addValue(i,Wa(s))}function aD(e){return pd(e)?e[e.length-1]||0:e}function sD(e,i){const s=Ia(e,i);let{transitionEnd:l={},transition:o={},...f}=s||{};f={...f,...l};for(const d in f){const h=aD(f[d]);iD(e,d,h)}}function rD(e){return!!(fe(e)&&e.add)}function gd(e,i){const s=e.getValue("willChange");if(rD(s))return s.add(i);if(!s&&Kn.WillChange){const l=new Kn.WillChange("auto");e.addValue("willChange",l),l.add(i)}}function Y1(e){return e.props[_1]}const lD=e=>e!==null;function oD(e,{repeat:i,repeatType:s="loop"},l){const o=e.filter(lD),f=i&&s!=="loop"&&i%2===1?0:o.length-1;return o[f]}const cD={type:"spring",stiffness:500,damping:25,restSpeed:10},uD=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),fD={type:"keyframes",duration:.8},dD={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hD=(e,{keyframes:i})=>i.length>2?fD:ls.has(e)?e.startsWith("scale")?uD(i[1]):cD:dD;function mD({when:e,delay:i,delayChildren:s,staggerChildren:l,staggerDirection:o,repeat:f,repeatType:d,repeatDelay:h,from:p,elapsed:m,...g}){return!!Object.keys(g).length}const Th=(e,i,s,l={},o,f)=>d=>{const h=uh(l,e)||{},p=h.delay||l.delay||0;let{elapsed:m=0}=l;m=m-vn(p);const g={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:i.getVelocity(),...h,delay:-m,onUpdate:w=>{i.set(w),h.onUpdate&&h.onUpdate(w)},onComplete:()=>{d(),h.onComplete&&h.onComplete()},name:e,motionValue:i,element:f?void 0:o};mD(h)||Object.assign(g,hD(e,g)),g.duration&&(g.duration=vn(g.duration)),g.repeatDelay&&(g.repeatDelay=vn(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let x=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(ud(g),g.delay===0&&(x=!0)),(Kn.instantAnimations||Kn.skipAnimations)&&(x=!0,ud(g),g.delay=0),g.allowFlatten=!h.type&&!h.ease,x&&!f&&i.get()!==void 0){const w=oD(g.keyframes,h);if(w!==void 0){Pt.update(()=>{g.onUpdate(w),g.onComplete()});return}}return h.isSync?new oh(g):new LO(g)};function pD({protectedKeys:e,needsAnimating:i},s){const l=e.hasOwnProperty(s)&&i[s]!==!0;return i[s]=!1,l}function X1(e,i,{delay:s=0,transitionOverride:l,type:o}={}){let{transition:f=e.getDefaultTransition(),transitionEnd:d,...h}=i;l&&(f=l);const p=[],m=o&&e.animationState&&e.animationState.getState()[o];for(const g in h){const x=e.getValue(g,e.latestValues[g]??null),w=h[g];if(w===void 0||m&&pD(m,g))continue;const T={delay:s,...uh(f||{},g)},A=x.get();if(A!==void 0&&!x.isAnimating&&!Array.isArray(w)&&w===A&&!T.velocity)continue;let E=!1;if(window.MotionHandoffAnimation){const D=Y1(e);if(D){const z=window.MotionHandoffAnimation(D,g,Pt);z!==null&&(T.startTime=z,E=!0)}}gd(e,g),x.start(Th(g,x,w,e.shouldReduceMotion&&u1.has(g)?{type:!1}:T,e,E));const M=x.animation;M&&p.push(M)}return d&&Promise.all(p).then(()=>{Pt.update(()=>{d&&sD(e,d)})}),p}function K1(e,i,s,l=0,o=1){const f=Array.from(e).sort((m,g)=>m.sortNodePosition(g)).indexOf(i),d=e.size,h=(d-1)*l;return typeof s=="function"?s(f,d):o===1?f*l:h-f*l}function yd(e,i,s={}){const l=Ia(e,i,s.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=l||{};s.transitionOverride&&(o=s.transitionOverride);const f=l?()=>Promise.all(X1(e,l,s)):()=>Promise.resolve(),d=e.variantChildren&&e.variantChildren.size?(p=0)=>{const{delayChildren:m=0,staggerChildren:g,staggerDirection:x}=o;return gD(e,i,p,m,g,x,s)}:()=>Promise.resolve(),{when:h}=o;if(h){const[p,m]=h==="beforeChildren"?[f,d]:[d,f];return p().then(()=>m())}else return Promise.all([f(),d(s.delay)])}function gD(e,i,s=0,l=0,o=0,f=1,d){const h=[];for(const p of e.variantChildren)p.notify("AnimationStart",i),h.push(yd(p,i,{...d,delay:s+(typeof l=="function"?0:l)+K1(e.variantChildren,p,l,o,f)}).then(()=>p.notify("AnimationComplete",i)));return Promise.all(h)}function yD(e,i,s={}){e.notify("AnimationStart",i);let l;if(Array.isArray(i)){const o=i.map(f=>yd(e,f,s));l=Promise.all(o)}else if(typeof i=="string")l=yd(e,i,s);else{const o=typeof i=="function"?Ia(e,i,s.custom):i;l=Promise.all(X1(e,o,s))}return l.then(()=>{e.notify("AnimationComplete",i)})}function F1(e,i){if(!Array.isArray(i))return!1;const s=i.length;if(s!==e.length)return!1;for(let l=0;l<s;l++)if(i[l]!==e[l])return!1;return!0}const vD=gh.length;function Q1(e){if(!e)return;if(!e.isControllingVariants){const s=e.parent?Q1(e.parent)||{}:{};return e.props.initial!==void 0&&(s.initial=e.props.initial),s}const i={};for(let s=0;s<vD;s++){const l=gh[s],o=e.props[l];(vr(o)||o===!1)&&(i[l]=o)}return i}const xD=[...ph].reverse(),bD=ph.length;function wD(e){return i=>Promise.all(i.map(({animation:s,options:l})=>yD(e,s,l)))}function SD(e){let i=wD(e),s=Wv(),l=!0;const o=p=>(m,g)=>{const x=Ia(e,g,p==="exit"?e.presenceContext?.custom:void 0);if(x){const{transition:w,transitionEnd:T,...A}=x;m={...m,...A,...T}}return m};function f(p){i=p(e)}function d(p){const{props:m}=e,g=Q1(e.parent)||{},x=[],w=new Set;let T={},A=1/0;for(let M=0;M<bD;M++){const D=xD[M],z=s[D],R=m[D]!==void 0?m[D]:g[D],q=vr(R),G=D===p?z.isActive:null;G===!1&&(A=M);let Z=R===g[D]&&R!==m[D]&&q;if(Z&&l&&e.manuallyAnimateOnMount&&(Z=!1),z.protectedKeys={...T},!z.isActive&&G===null||!R&&!z.prevProp||Bo(R)||typeof R=="boolean")continue;const k=TD(z.prevProp,R);let H=k||D===p&&z.isActive&&!Z&&q||M>A&&q,W=!1;const st=Array.isArray(R)?R:[R];let dt=st.reduce(o(D),{});G===!1&&(dt={});const{prevResolvedValues:pt={}}=z,At={...pt,...dt},J=Y=>{H=!0,w.has(Y)&&(W=!0,w.delete(Y)),z.needsAnimating[Y]=!0;const B=e.getValue(Y);B&&(B.liveStyle=!1)};for(const Y in At){const B=dt[Y],it=pt[Y];if(T.hasOwnProperty(Y))continue;let ct=!1;pd(B)&&pd(it)?ct=!F1(B,it):ct=B!==it,ct?B!=null?J(Y):w.add(Y):B!==void 0&&w.has(Y)?J(Y):z.protectedKeys[Y]=!0}z.prevProp=R,z.prevResolvedValues=dt,z.isActive&&(T={...T,...dt}),l&&e.blockInitialAnimation&&(H=!1);const ht=Z&&k;H&&(!ht||W)&&x.push(...st.map(Y=>{const B={type:D};if(typeof Y=="string"&&l&&!ht&&e.manuallyAnimateOnMount&&e.parent){const{parent:it}=e,ct=Ia(it,Y);if(it.enteringChildren&&ct){const{delayChildren:N}=ct.transition||{};B.delay=K1(it.enteringChildren,e,N)}}return{animation:Y,options:B}}))}if(w.size){const M={};if(typeof m.initial!="boolean"){const D=Ia(e,Array.isArray(m.initial)?m.initial[0]:m.initial);D&&D.transition&&(M.transition=D.transition)}w.forEach(D=>{const z=e.getBaseTarget(D),R=e.getValue(D);R&&(R.liveStyle=!0),M[D]=z??null}),x.push({animation:M})}let E=!!x.length;return l&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(E=!1),l=!1,E?i(x):Promise.resolve()}function h(p,m){if(s[p].isActive===m)return Promise.resolve();e.variantChildren?.forEach(x=>x.animationState?.setActive(p,m)),s[p].isActive=m;const g=d(p);for(const x in s)s[x].protectedKeys={};return g}return{animateChanges:d,setActive:h,setAnimateFunction:f,getState:()=>s,reset:()=>{s=Wv()}}}function TD(e,i){return typeof i=="string"?i!==e:Array.isArray(i)?!F1(i,e):!1}function Fi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Wv(){return{animate:Fi(!0),whileInView:Fi(),whileHover:Fi(),whileTap:Fi(),whileDrag:Fi(),whileFocus:Fi(),exit:Fi()}}class Ai{constructor(i){this.isMounted=!1,this.node=i}update(){}}class ED extends Ai{constructor(i){super(i),i.animationState||(i.animationState=SD(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Bo(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:s}=this.node.prevProps||{};i!==s&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let AD=0;class CD extends Ai{constructor(){super(...arguments),this.id=AD++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:s}=this.node.presenceContext,{isPresent:l}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===l)return;const o=this.node.animationState.setActive("exit",!i);s&&!i&&o.then(()=>{s(this.id)})}mount(){const{register:i,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const MD={animation:{Feature:ED},exit:{Feature:CD}};function br(e,i,s,l={passive:!0}){return e.addEventListener(i,s,l),()=>e.removeEventListener(i,s)}function Mr(e){return{point:{x:e.pageX,y:e.pageY}}}const ND=e=>i=>hh(i)&&e(i,Mr(i));function or(e,i,s,l){return br(e,i,ND(s),l)}const Z1=1e-4,OD=1-Z1,jD=1+Z1,I1=.01,DD=0-I1,RD=0+I1;function pe(e){return e.max-e.min}function _D(e,i,s){return Math.abs(e-i)<=s}function t0(e,i,s,l=.5){e.origin=l,e.originPoint=Ht(i.min,i.max,e.origin),e.scale=pe(s)/pe(i),e.translate=Ht(s.min,s.max,e.origin)-e.originPoint,(e.scale>=OD&&e.scale<=jD||isNaN(e.scale))&&(e.scale=1),(e.translate>=DD&&e.translate<=RD||isNaN(e.translate))&&(e.translate=0)}function cr(e,i,s,l){t0(e.x,i.x,s.x,l?l.originX:void 0),t0(e.y,i.y,s.y,l?l.originY:void 0)}function e0(e,i,s){e.min=s.min+i.min,e.max=e.min+pe(i)}function zD(e,i,s){e0(e.x,i.x,s.x),e0(e.y,i.y,s.y)}function n0(e,i,s){e.min=i.min-s.min,e.max=e.min+pe(i)}function ur(e,i,s){n0(e.x,i.x,s.x),n0(e.y,i.y,s.y)}function Je(e){return[e("x"),e("y")]}const $1=({current:e})=>e?e.ownerDocument.defaultView:null,i0=(e,i)=>Math.abs(e-i);function LD(e,i){const s=i0(e.x,i.x),l=i0(e.y,i.y);return Math.sqrt(s**2+l**2)}class J1{constructor(i,s,{transformPagePoint:l,contextWindow:o=window,dragSnapToOrigin:f=!1,distanceThreshold:d=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Df(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,A=LD(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!T&&!A)return;const{point:E}=w,{timestamp:M}=ce;this.history.push({...E,timestamp:M});const{onStart:D,onMove:z}=this.handlers;T||(D&&D(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),z&&z(this.lastMoveEvent,w)},this.handlePointerMove=(w,T)=>{this.lastMoveEvent=w,this.lastMoveEventInfo=jf(T,this.transformPagePoint),Pt.update(this.updatePoint,!0)},this.handlePointerUp=(w,T)=>{this.end();const{onEnd:A,onSessionEnd:E,resumeAnimation:M}=this.handlers;if(this.dragSnapToOrigin&&M&&M(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const D=Df(w.type==="pointercancel"?this.lastMoveEventInfo:jf(T,this.transformPagePoint),this.history);this.startEvent&&A&&A(w,D),E&&E(w,D)},!hh(i))return;this.dragSnapToOrigin=f,this.handlers=s,this.transformPagePoint=l,this.distanceThreshold=d,this.contextWindow=o||window;const h=Mr(i),p=jf(h,this.transformPagePoint),{point:m}=p,{timestamp:g}=ce;this.history=[{...m,timestamp:g}];const{onSessionStart:x}=s;x&&x(i,Df(p,this.history)),this.removeListeners=Er(or(this.contextWindow,"pointermove",this.handlePointerMove),or(this.contextWindow,"pointerup",this.handlePointerUp),or(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),Si(this.updatePoint)}}function jf(e,i){return i?{point:i(e.point)}:e}function a0(e,i){return{x:e.x-i.x,y:e.y-i.y}}function Df({point:e},i){return{point:e,delta:a0(e,W1(i)),offset:a0(e,VD(i)),velocity:UD(i,.1)}}function VD(e){return e[0]}function W1(e){return e[e.length-1]}function UD(e,i){if(e.length<2)return{x:0,y:0};let s=e.length-1,l=null;const o=W1(e);for(;s>=0&&(l=e[s],!(o.timestamp-l.timestamp>vn(i)));)s--;if(!l)return{x:0,y:0};const f=We(o.timestamp-l.timestamp);if(f===0)return{x:0,y:0};const d={x:(o.x-l.x)/f,y:(o.y-l.y)/f};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function BD(e,{min:i,max:s},l){return i!==void 0&&e<i?e=l?Ht(i,e,l.min):Math.max(e,i):s!==void 0&&e>s&&(e=l?Ht(s,e,l.max):Math.min(e,s)),e}function s0(e,i,s){return{min:i!==void 0?e.min+i:void 0,max:s!==void 0?e.max+s-(e.max-e.min):void 0}}function kD(e,{top:i,left:s,bottom:l,right:o}){return{x:s0(e.x,s,o),y:s0(e.y,i,l)}}function r0(e,i){let s=i.min-e.min,l=i.max-e.max;return i.max-i.min<e.max-e.min&&([s,l]=[l,s]),{min:s,max:l}}function PD(e,i){return{x:r0(e.x,i.x),y:r0(e.y,i.y)}}function HD(e,i){let s=.5;const l=pe(e),o=pe(i);return o>l?s=pr(i.min,i.max-l,e.min):l>o&&(s=pr(e.min,e.max-o,i.min)),Xn(0,1,s)}function qD(e,i){const s={};return i.min!==void 0&&(s.min=i.min-e.min),i.max!==void 0&&(s.max=i.max-e.min),s}const vd=.35;function GD(e=vd){return e===!1?e=0:e===!0&&(e=vd),{x:l0(e,"left","right"),y:l0(e,"top","bottom")}}function l0(e,i,s){return{min:o0(e,i),max:o0(e,s)}}function o0(e,i){return typeof e=="number"?e:e[i]||0}const YD=new WeakMap;class XD{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Qt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:s=!1,distanceThreshold:l}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const f=x=>{const{dragSnapToOrigin:w}=this.getProps();w?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(Mr(x).point)},d=(x,w)=>{const{drag:T,dragPropagation:A,onDragStart:E}=this.getProps();if(T&&!A&&(this.openDragLock&&this.openDragLock(),this.openDragLock=$O(T),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=w,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Je(D=>{let z=this.getAxisMotionValue(D).get()||0;if(xn.test(z)){const{projection:R}=this.visualElement;if(R&&R.layout){const q=R.layout.layoutBox[D];q&&(z=pe(q)*(parseFloat(z)/100))}}this.originPoint[D]=z}),E&&Pt.postRender(()=>E(x,w)),gd(this.visualElement,"transform");const{animationState:M}=this.visualElement;M&&M.setActive("whileDrag",!0)},h=(x,w)=>{this.latestPointerEvent=x,this.latestPanInfo=w;const{dragPropagation:T,dragDirectionLock:A,onDirectionLock:E,onDrag:M}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:D}=w;if(A&&this.currentDirection===null){this.currentDirection=KD(D),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",w.point,D),this.updateAxis("y",w.point,D),this.visualElement.render(),M&&M(x,w)},p=(x,w)=>{this.latestPointerEvent=x,this.latestPanInfo=w,this.stop(x,w),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>Je(x=>this.getAnimationState(x)==="paused"&&this.getAxisMotionValue(x).animation?.play()),{dragSnapToOrigin:g}=this.getProps();this.panSession=new J1(i,{onSessionStart:f,onStart:d,onMove:h,onSessionEnd:p,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:l,contextWindow:$1(this.visualElement)})}stop(i,s){const l=i||this.latestPointerEvent,o=s||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!o||!l)return;const{velocity:d}=o;this.startAnimation(d);const{onDragEnd:h}=this.getProps();h&&Pt.postRender(()=>h(l,o))}cancel(){this.isDragging=!1;const{projection:i,animationState:s}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:l}=this.getProps();!l&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(i,s,l){const{drag:o}=this.getProps();if(!l||!eo(i,o,this.currentDirection))return;const f=this.getAxisMotionValue(i);let d=this.originPoint[i]+l[i];this.constraints&&this.constraints[i]&&(d=BD(d,this.constraints[i],this.elastic[i])),f.set(d)}resolveConstraints(){const{dragConstraints:i,dragElastic:s}=this.getProps(),l=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;i&&Xa(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&l?this.constraints=kD(l.layoutBox,i):this.constraints=!1,this.elastic=GD(s),o!==this.constraints&&l&&this.constraints&&!this.hasMutatedConstraints&&Je(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=qD(l.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:s}=this.getProps();if(!i||!Xa(i))return!1;const l=i.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const f=Fj(l,o.root,this.visualElement.getTransformPagePoint());let d=PD(o.layout.layoutBox,f);if(s){const h=s(Yj(d));this.hasMutatedConstraints=!!h,h&&(d=V1(h))}return d}startAnimation(i){const{drag:s,dragMomentum:l,dragElastic:o,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:h}=this.getProps(),p=this.constraints||{},m=Je(g=>{if(!eo(g,s,this.currentDirection))return;let x=p&&p[g]||{};d&&(x={min:0,max:0});const w=o?200:1e6,T=o?40:1e7,A={type:"inertia",velocity:l?i[g]:0,bounceStiffness:w,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...f,...x};return this.startAxisValueAnimation(g,A)});return Promise.all(m).then(h)}startAxisValueAnimation(i,s){const l=this.getAxisMotionValue(i);return gd(this.visualElement,i),l.start(Th(i,l,0,s,this.visualElement,!1))}stopAnimation(){Je(i=>this.getAxisMotionValue(i).stop())}pauseAnimation(){Je(i=>this.getAxisMotionValue(i).animation?.pause())}getAnimationState(i){return this.getAxisMotionValue(i).animation?.state}getAxisMotionValue(i){const s=`_drag${i.toUpperCase()}`,l=this.visualElement.getProps(),o=l[s];return o||this.visualElement.getValue(i,(l.initial?l.initial[i]:void 0)||0)}snapToCursor(i){Je(s=>{const{drag:l}=this.getProps();if(!eo(s,l,this.currentDirection))return;const{projection:o}=this.visualElement,f=this.getAxisMotionValue(s);if(o&&o.layout){const{min:d,max:h}=o.layout.layoutBox[s];f.set(i[s]-Ht(d,h,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:s}=this.getProps(),{projection:l}=this.visualElement;if(!Xa(s)||!l||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Je(d=>{const h=this.getAxisMotionValue(d);if(h&&this.constraints!==!1){const p=h.get();o[d]=HD({min:p,max:p},this.constraints[d])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",l.root&&l.root.updateScroll(),l.updateLayout(),this.resolveConstraints(),Je(d=>{if(!eo(d,i,null))return;const h=this.getAxisMotionValue(d),{min:p,max:m}=this.constraints[d];h.set(Ht(p,m,o[d]))})}addListeners(){if(!this.visualElement.current)return;YD.set(this.visualElement,this);const i=this.visualElement.current,s=or(i,"pointerdown",p=>{const{drag:m,dragListener:g=!0}=this.getProps();m&&g&&this.start(p)}),l=()=>{const{dragConstraints:p}=this.getProps();Xa(p)&&p.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,f=o.addEventListener("measure",l);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Pt.read(l);const d=br(window,"resize",()=>this.scalePositionWithinConstraints()),h=o.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:m})=>{this.isDragging&&m&&(Je(g=>{const x=this.getAxisMotionValue(g);x&&(this.originPoint[g]+=p[g].translate,x.set(x.get()+p[g].translate))}),this.visualElement.render())}));return()=>{d(),s(),f(),h&&h()}}getProps(){const i=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:l=!1,dragPropagation:o=!1,dragConstraints:f=!1,dragElastic:d=vd,dragMomentum:h=!0}=i;return{...i,drag:s,dragDirectionLock:l,dragPropagation:o,dragConstraints:f,dragElastic:d,dragMomentum:h}}}function eo(e,i,s){return(i===!0||i===e)&&(s===null||s===e)}function KD(e,i=10){let s=null;return Math.abs(e.y)>i?s="y":Math.abs(e.x)>i&&(s="x"),s}class FD extends Ai{constructor(i){super(i),this.removeGroupControls=tn,this.removeListeners=tn,this.controls=new XD(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tn}unmount(){this.removeGroupControls(),this.removeListeners()}}const c0=e=>(i,s)=>{e&&Pt.postRender(()=>e(i,s))};class QD extends Ai{constructor(){super(...arguments),this.removePointerDownListener=tn}onPointerDown(i){this.session=new J1(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:$1(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:s,onPan:l,onPanEnd:o}=this.node.getProps();return{onSessionStart:c0(i),onStart:c0(s),onMove:l,onEnd:(f,d)=>{delete this.session,o&&Pt.postRender(()=>o(f,d))}}}mount(){this.removePointerDownListener=or(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const oo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function u0(e,i){return i.max===i.min?0:e/(i.max-i.min)*100}const ir={correct:(e,i)=>{if(!i.target)return e;if(typeof e=="string")if(ft.test(e))e=parseFloat(e);else return e;const s=u0(e,i.target.x),l=u0(e,i.target.y);return`${s}% ${l}%`}},ZD={correct:(e,{treeScale:i,projectionDelta:s})=>{const l=e,o=Ti.parse(e);if(o.length>5)return l;const f=Ti.createTransformer(e),d=typeof o[0]!="number"?1:0,h=s.x.scale*i.x,p=s.y.scale*i.y;o[0+d]/=h,o[1+d]/=p;const m=Ht(h,p,.5);return typeof o[2+d]=="number"&&(o[2+d]/=m),typeof o[3+d]=="number"&&(o[3+d]/=m),f(o)}};let Rf=!1;class ID extends S.Component{componentDidMount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:l,layoutId:o}=this.props,{projection:f}=i;vj($D),f&&(s.group&&s.group.add(f),l&&l.register&&o&&l.register(f),Rf&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,onExitComplete:()=>this.safeToRemove()})),oo.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:s,visualElement:l,drag:o,isPresent:f}=this.props,{projection:d}=l;return d&&(d.isPresent=f,Rf=!0,o||i.layoutDependency!==s||s===void 0||i.isPresent!==f?d.willUpdate():this.safeToRemove(),i.isPresent!==f&&(f?d.promote():d.relegate()||Pt.postRender(()=>{const h=d.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),dh.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:l}=this.props,{projection:o}=i;Rf=!0,o&&(o.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(o),l&&l.deregister&&l.deregister(o))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function tw(e){const[i,s]=w1(),l=S.useContext(Yd);return v.jsx(ID,{...e,layoutGroup:l,switchLayoutGroup:S.useContext(z1),isPresent:i,safeToRemove:s})}const $D={borderRadius:{...ir,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ir,borderTopRightRadius:ir,borderBottomLeftRadius:ir,borderBottomRightRadius:ir,boxShadow:ZD};function JD(e,i,s){const l=fe(e)?e:Wa(e);return l.start(Th("",l,i,s)),l.animation}const WD=(e,i)=>e.depth-i.depth;class tR{constructor(){this.children=[],this.isDirty=!1}add(i){Fd(this.children,i),this.isDirty=!0}remove(i){Qd(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(WD),this.isDirty=!1,this.children.forEach(i)}}function eR(e,i){const s=Ee.now(),l=({timestamp:o})=>{const f=o-s;f>=i&&(Si(l),e(f-i))};return Pt.setup(l,!0),()=>Si(l)}const ew=["TopLeft","TopRight","BottomLeft","BottomRight"],nR=ew.length,f0=e=>typeof e=="string"?parseFloat(e):e,d0=e=>typeof e=="number"||ft.test(e);function iR(e,i,s,l,o,f){o?(e.opacity=Ht(0,s.opacity??1,aR(l)),e.opacityExit=Ht(i.opacity??1,0,sR(l))):f&&(e.opacity=Ht(i.opacity??1,s.opacity??1,l));for(let d=0;d<nR;d++){const h=`border${ew[d]}Radius`;let p=h0(i,h),m=h0(s,h);if(p===void 0&&m===void 0)continue;p||(p=0),m||(m=0),p===0||m===0||d0(p)===d0(m)?(e[h]=Math.max(Ht(f0(p),f0(m),l),0),(xn.test(m)||xn.test(p))&&(e[h]+="%")):e[h]=m}(i.rotate||s.rotate)&&(e.rotate=Ht(i.rotate||0,s.rotate||0,l))}function h0(e,i){return e[i]!==void 0?e[i]:e.borderRadius}const aR=nw(0,.5,Hb),sR=nw(.5,.95,tn);function nw(e,i,s){return l=>l<e?0:l>i?1:s(pr(e,i,l))}function m0(e,i){e.min=i.min,e.max=i.max}function $e(e,i){m0(e.x,i.x),m0(e.y,i.y)}function p0(e,i){e.translate=i.translate,e.scale=i.scale,e.originPoint=i.originPoint,e.origin=i.origin}function g0(e,i,s,l,o){return e-=i,e=xo(e,1/s,l),o!==void 0&&(e=xo(e,1/o,l)),e}function rR(e,i=0,s=1,l=.5,o,f=e,d=e){if(xn.test(i)&&(i=parseFloat(i),i=Ht(d.min,d.max,i/100)-d.min),typeof i!="number")return;let h=Ht(f.min,f.max,l);e===f&&(h-=i),e.min=g0(e.min,i,s,h,o),e.max=g0(e.max,i,s,h,o)}function y0(e,i,[s,l,o],f,d){rR(e,i[s],i[l],i[o],i.scale,f,d)}const lR=["x","scaleX","originX"],oR=["y","scaleY","originY"];function v0(e,i,s,l){y0(e.x,i,lR,s?s.x:void 0,l?l.x:void 0),y0(e.y,i,oR,s?s.y:void 0,l?l.y:void 0)}function x0(e){return e.translate===0&&e.scale===1}function iw(e){return x0(e.x)&&x0(e.y)}function b0(e,i){return e.min===i.min&&e.max===i.max}function cR(e,i){return b0(e.x,i.x)&&b0(e.y,i.y)}function w0(e,i){return Math.round(e.min)===Math.round(i.min)&&Math.round(e.max)===Math.round(i.max)}function aw(e,i){return w0(e.x,i.x)&&w0(e.y,i.y)}function S0(e){return pe(e.x)/pe(e.y)}function T0(e,i){return e.translate===i.translate&&e.scale===i.scale&&e.originPoint===i.originPoint}class uR{constructor(){this.members=[]}add(i){Fd(this.members,i),i.scheduleRender()}remove(i){if(Qd(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(i){const s=this.members.findIndex(o=>i===o);if(s===0)return!1;let l;for(let o=s;o>=0;o--){const f=this.members[o];if(f.isPresent!==!1){l=f;break}}return l?(this.promote(l),!0):!1}promote(i,s){const l=this.lead;if(i!==l&&(this.prevLead=l,this.lead=i,i.show(),l)){l.instance&&l.scheduleRender(),i.scheduleRender(),i.resumeFrom=l,s&&(i.resumeFrom.preserveOpacity=!0),l.snapshot&&(i.snapshot=l.snapshot,i.snapshot.latestValues=l.animationValues||l.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0);const{crossfade:o}=i.options;o===!1&&l.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:s,resumingFrom:l}=i;s.onExitComplete&&s.onExitComplete(),l&&l.options.onExitComplete&&l.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function fR(e,i,s){let l="";const o=e.x.translate/i.x,f=e.y.translate/i.y,d=s?.z||0;if((o||f||d)&&(l=`translate3d(${o}px, ${f}px, ${d}px) `),(i.x!==1||i.y!==1)&&(l+=`scale(${1/i.x}, ${1/i.y}) `),s){const{transformPerspective:m,rotate:g,rotateX:x,rotateY:w,skewX:T,skewY:A}=s;m&&(l=`perspective(${m}px) ${l}`),g&&(l+=`rotate(${g}deg) `),x&&(l+=`rotateX(${x}deg) `),w&&(l+=`rotateY(${w}deg) `),T&&(l+=`skewX(${T}deg) `),A&&(l+=`skewY(${A}deg) `)}const h=e.x.scale*i.x,p=e.y.scale*i.y;return(h!==1||p!==1)&&(l+=`scale(${h}, ${p})`),l||"none"}const _f=["","X","Y","Z"],dR=1e3;let hR=0;function zf(e,i,s,l){const{latestValues:o}=i;o[e]&&(s[e]=o[e],i.setStaticValue(e,0),l&&(l[e]=0))}function sw(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:i}=e.options;if(!i)return;const s=Y1(i);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:o,layoutId:f}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",Pt,!(o||f))}const{parent:l}=e;l&&!l.hasCheckedOptimisedAppear&&sw(l)}function rw({attachResizeListener:e,defaultParent:i,measureScroll:s,checkIsScrollRoot:l,resetTransform:o}){return class{constructor(d={},h=i?.()){this.id=hR++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.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(gR),this.nodes.forEach(bR),this.nodes.forEach(wR),this.nodes.forEach(yR)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new tR)}addEventListener(d,h){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new $d),this.eventHandlers.get(d).add(h)}notifyListeners(d,...h){const p=this.eventHandlers.get(d);p&&p.notify(...h)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=b1(d)&&!ij(d),this.instance=d;const{layoutId:h,layout:p,visualElement:m}=this.options;if(m&&!m.current&&m.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(p||h)&&(this.isLayoutDirty=!0),e){let g,x=0;const w=()=>this.root.updateBlockedByResize=!1;Pt.read(()=>{x=window.innerWidth}),e(d,()=>{const T=window.innerWidth;T!==x&&(x=T,this.root.updateBlockedByResize=!0,g&&g(),g=eR(w,250),oo.hasAnimatedSinceResize&&(oo.hasAnimatedSinceResize=!1,this.nodes.forEach(C0)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&m&&(h||p)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:x,hasRelativeLayoutChanged:w,layout:T})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const A=this.options.transition||m.getDefaultTransition()||CR,{onLayoutAnimationStart:E,onLayoutAnimationComplete:M}=m.getProps(),D=!this.targetLayout||!aw(this.targetLayout,T),z=!x&&w;if(this.options.layoutRoot||this.resumeFrom||z||x&&(D||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const R={...uh(A,"layout"),onPlay:E,onComplete:M};(m.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R),this.setAnimationOrigin(g,z)}else x||C0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=T})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Si(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(SR),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&sw(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const x=this.path[g];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.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(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(E0);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(A0);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(xR),this.nodes.forEach(mR),this.nodes.forEach(pR)):this.nodes.forEach(A0),this.clearAllSnapshots();const h=Ee.now();ce.delta=Xn(0,1e3/60,h-ce.timestamp),ce.timestamp=h,ce.isProcessing=!0,Sf.update.process(ce),Sf.preRender.process(ce),Sf.render.process(ce),ce.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,dh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(vR),this.sharedNodes.forEach(TR)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Pt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Pt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!pe(this.snapshot.measuredBox.x)&&!pe(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 d=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Qt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(h=!1),h&&this.instance){const p=l(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:p,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:p}}}resetTransform(){if(!o)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!iw(this.projectionDelta),p=this.getTransformTemplate(),m=p?p(this.latestValues,""):void 0,g=m!==this.prevTransformTemplateValue;d&&this.instance&&(h||$i(this.latestValues)||g)&&(o(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const h=this.measurePageBox();let p=this.removeElementScroll(h);return d&&(p=this.removeTransform(p)),MR(p),{animationId:this.root.animationId,measuredBox:h,layoutBox:p,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:d}=this.options;if(!d)return Qt();const h=d.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(NR))){const{scroll:m}=this.root;m&&(Ka(h.x,m.offset.x),Ka(h.y,m.offset.y))}return h}removeElementScroll(d){const h=Qt();if($e(h,d),this.scroll?.wasRoot)return h;for(let p=0;p<this.path.length;p++){const m=this.path[p],{scroll:g,options:x}=m;m!==this.root&&g&&x.layoutScroll&&(g.wasRoot&&$e(h,d),Ka(h.x,g.offset.x),Ka(h.y,g.offset.y))}return h}applyTransform(d,h=!1){const p=Qt();$e(p,d);for(let m=0;m<this.path.length;m++){const g=this.path[m];!h&&g.options.layoutScroll&&g.scroll&&g!==g.root&&Fa(p,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),$i(g.latestValues)&&Fa(p,g.latestValues)}return $i(this.latestValues)&&Fa(p,this.latestValues),p}removeTransform(d){const h=Qt();$e(h,d);for(let p=0;p<this.path.length;p++){const m=this.path[p];if(!m.instance||!$i(m.latestValues))continue;dd(m.latestValues)&&m.updateSnapshot();const g=Qt(),x=m.measurePageBox();$e(g,x),v0(h,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,g)}return $i(this.latestValues)&&v0(h,this.latestValues),h}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ce.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){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(!(d||p&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:x}=this.options;if(!(!this.layout||!(g||x))){if(this.resolvedRelativeTargetAt=ce.timestamp,!this.targetDelta&&!this.relativeTarget){const w=this.getClosestProjectingParent();w&&w.layout&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Qt(),this.relativeTargetOrigin=Qt(),ur(this.relativeTargetOrigin,this.layout.layoutBox,w.layout.layoutBox),$e(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Qt(),this.targetWithTransforms=Qt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),zD(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):$e(this.target,this.layout.layoutBox),B1(this.target,this.targetDelta)):$e(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const w=this.getClosestProjectingParent();w&&!!w.resumingFrom==!!this.resumingFrom&&!w.options.layoutScroll&&w.target&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Qt(),this.relativeTargetOrigin=Qt(),ur(this.relativeTargetOrigin,this.target,w.target),$e(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||dd(this.parent.latestValues)||U1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const d=this.getLead(),h=!!this.resumingFrom||this!==d;let p=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(p=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===ce.timestamp&&(p=!1),p)return;const{layout:m,layoutId:g}=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||g))return;$e(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,w=this.treeScale.y;Kj(this.layoutCorrected,this.treeScale,this.path,h),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Qt());const{target:T}=d;if(!T){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(p0(this.prevProjectionDelta.x,this.projectionDelta.x),p0(this.prevProjectionDelta.y,this.projectionDelta.y)),cr(this.projectionDelta,this.layoutCorrected,T,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==w||!T0(this.projectionDelta.x,this.prevProjectionDelta.x)||!T0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",T))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){if(this.options.visualElement?.scheduleRender(),d){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Qa(),this.projectionDelta=Qa(),this.projectionDeltaWithTransform=Qa()}setAnimationOrigin(d,h=!1){const p=this.snapshot,m=p?p.latestValues:{},g={...this.latestValues},x=Qa();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const w=Qt(),T=p?p.source:void 0,A=this.layout?this.layout.source:void 0,E=T!==A,M=this.getStack(),D=!M||M.members.length<=1,z=!!(E&&!D&&this.options.crossfade===!0&&!this.path.some(AR));this.animationProgress=0;let R;this.mixTargetDelta=q=>{const G=q/1e3;M0(x.x,d.x,G),M0(x.y,d.y,G),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ur(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ER(this.relativeTarget,this.relativeTargetOrigin,w,G),R&&cR(this.relativeTarget,R)&&(this.isProjectionDirty=!1),R||(R=Qt()),$e(R,this.relativeTarget)),E&&(this.animationValues=g,iR(g,m,this.latestValues,G,z,D)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=G},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Si(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Pt.update(()=>{oo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Wa(0)),this.currentAnimation=JD(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),d.onUpdate&&d.onUpdate(h)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(dR),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:h,target:p,layout:m,latestValues:g}=d;if(!(!h||!p||!m)){if(this!==d&&this.layout&&m&&lw(this.options.animationType,this.layout.layoutBox,m.layoutBox)){p=this.target||Qt();const x=pe(this.layout.layoutBox.x);p.x.min=d.target.x.min,p.x.max=p.x.min+x;const w=pe(this.layout.layoutBox.y);p.y.min=d.target.y.min,p.y.max=p.y.min+w}$e(h,p),Fa(h,g),cr(this.projectionDeltaWithTransform,this.layoutCorrected,h,g)}}registerSharedNode(d,h){this.sharedNodes.has(d)||this.sharedNodes.set(d,new uR),this.sharedNodes.get(d).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 d=this.getStack();return d?d.lead===this:!0}getLead(){const{layoutId:d}=this.options;return d?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:d}=this.options;return d?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:h,preserveFollowOpacity:p}={}){const m=this.getStack();m&&m.promote(this,p),d&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let h=!1;const{latestValues:p}=d;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(h=!0),!h)return;const m={};p.z&&zf("z",d,m,this.animationValues);for(let g=0;g<_f.length;g++)zf(`rotate${_f[g]}`,d,m,this.animationValues),zf(`skew${_f[g]}`,d,m,this.animationValues);d.render();for(const g in m)d.setStaticValue(g,m[g]),this.animationValues&&(this.animationValues[g]=m[g]);d.scheduleRender()}applyProjectionStyles(d,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const p=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=lo(h?.pointerEvents)||"",d.transform=p?p(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=lo(h?.pointerEvents)||""),this.hasProjected&&!$i(this.latestValues)&&(d.transform=p?p({},""):"none",this.hasProjected=!1);return}d.visibility="";const g=m.animationValues||m.latestValues;this.applyTransformsToTarget();let x=fR(this.projectionDeltaWithTransform,this.treeScale,g);p&&(x=p(g,x)),d.transform=x;const{x:w,y:T}=this.projectionDelta;d.transformOrigin=`${w.origin*100}% ${T.origin*100}% 0`,m.animationValues?d.opacity=m===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:d.opacity=m===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const A in xr){if(g[A]===void 0)continue;const{correct:E,applyTo:M,isCSSVariable:D}=xr[A],z=x==="none"?g[A]:E(g[A],m);if(M){const R=M.length;for(let q=0;q<R;q++)d[M[q]]=z}else D?this.options.visualElement.renderState.vars[A]=z:d[A]=z}this.options.layoutId&&(d.pointerEvents=m===this?lo(h?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>d.currentAnimation?.stop()),this.root.nodes.forEach(E0),this.root.sharedNodes.clear()}}}function mR(e){e.updateLayout()}function pR(e){const i=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:l}=e.layout,{animationType:o}=e.options,f=i.source!==e.layout.source;o==="size"?Je(g=>{const x=f?i.measuredBox[g]:i.layoutBox[g],w=pe(x);x.min=s[g].min,x.max=x.min+w}):lw(o,i.layoutBox,s)&&Je(g=>{const x=f?i.measuredBox[g]:i.layoutBox[g],w=pe(s[g]);x.max=x.min+w,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+w)});const d=Qa();cr(d,s,i.layoutBox);const h=Qa();f?cr(h,e.applyTransform(l,!0),i.measuredBox):cr(h,s,i.layoutBox);const p=!iw(d);let m=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:x,layout:w}=g;if(x&&w){const T=Qt();ur(T,i.layoutBox,x.layoutBox);const A=Qt();ur(A,s,w.layoutBox),aw(T,A)||(m=!0),g.options.layoutRoot&&(e.relativeTarget=A,e.relativeTargetOrigin=T,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:i,delta:h,layoutDelta:d,hasLayoutChanged:p,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function gR(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function yR(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function vR(e){e.clearSnapshot()}function E0(e){e.clearMeasurements()}function A0(e){e.isLayoutDirty=!1}function xR(e){const{visualElement:i}=e.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),e.resetTransform()}function C0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function bR(e){e.resolveTargetDelta()}function wR(e){e.calcProjection()}function SR(e){e.resetSkewAndRotation()}function TR(e){e.removeLeadSnapshot()}function M0(e,i,s){e.translate=Ht(i.translate,0,s),e.scale=Ht(i.scale,1,s),e.origin=i.origin,e.originPoint=i.originPoint}function N0(e,i,s,l){e.min=Ht(i.min,s.min,l),e.max=Ht(i.max,s.max,l)}function ER(e,i,s,l){N0(e.x,i.x,s.x,l),N0(e.y,i.y,s.y,l)}function AR(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const CR={duration:.45,ease:[.4,0,.1,1]},O0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),j0=O0("applewebkit/")&&!O0("chrome/")?Math.round:tn;function D0(e){e.min=j0(e.min),e.max=j0(e.max)}function MR(e){D0(e.x),D0(e.y)}function lw(e,i,s){return e==="position"||e==="preserve-aspect"&&!_D(S0(i),S0(s),.2)}function NR(e){return e!==e.root&&e.scroll?.wasRoot}const OR=rw({attachResizeListener:(e,i)=>br(e,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Lf={current:void 0},ow=rw({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Lf.current){const e=new OR({});e.mount(window),e.setOptions({layoutScroll:!0}),Lf.current=e}return Lf.current},resetTransform:(e,i)=>{e.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),jR={pan:{Feature:QD},drag:{Feature:FD,ProjectionNode:ow,MeasureLayout:tw}};function R0(e,i,s){const{props:l}=e;e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",s==="Start");const o="onHover"+s,f=l[o];f&&Pt.postRender(()=>f(i,Mr(i)))}class DR extends Ai{mount(){const{current:i}=this.node;i&&(this.unmount=JO(i,(s,l)=>(R0(this.node,l,"Start"),o=>R0(this.node,o,"End"))))}unmount(){}}class RR extends Ai{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!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=Er(br(this.node.current,"focus",()=>this.onFocus()),br(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function _0(e,i,s){const{props:l}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&l.whileTap&&e.animationState.setActive("whileTap",s==="Start");const o="onTap"+(s==="End"?"":s),f=l[o];f&&Pt.postRender(()=>f(i,Mr(i)))}class _R extends Ai{mount(){const{current:i}=this.node;i&&(this.unmount=nj(i,(s,l)=>(_0(this.node,l,"Start"),(o,{success:f})=>_0(this.node,o,f?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const xd=new WeakMap,Vf=new WeakMap,zR=e=>{const i=xd.get(e.target);i&&i(e)},LR=e=>{e.forEach(zR)};function VR({root:e,...i}){const s=e||document;Vf.has(s)||Vf.set(s,{});const l=Vf.get(s),o=JSON.stringify(i);return l[o]||(l[o]=new IntersectionObserver(LR,{root:e,...i})),l[o]}function UR(e,i,s){const l=VR(i);return xd.set(e,s),l.observe(e),()=>{xd.delete(e),l.unobserve(e)}}const BR={some:0,all:1};class kR extends Ai{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:s,margin:l,amount:o="some",once:f}=i,d={root:s?s.current:void 0,rootMargin:l,threshold:typeof o=="number"?o:BR[o]},h=p=>{const{isIntersecting:m}=p;if(this.isInView===m||(this.isInView=m,f&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:g,onViewportLeave:x}=this.node.getProps(),w=m?g:x;w&&w(p)};return UR(this.node.current,d,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:s}=this.node;["amount","margin","root"].some(PR(i,s))&&this.startObserver()}unmount(){}}function PR({viewport:e={}},{viewport:i={}}={}){return s=>e[s]!==i[s]}const HR={inView:{Feature:kR},tap:{Feature:_R},focus:{Feature:RR},hover:{Feature:DR}},qR={layout:{ProjectionNode:ow,MeasureLayout:tw}},GR={...MD,...HR,...jR,...qR},xt=Gj(GR,nD);function YR(){const[e,i]=S.useState(!1),s=["Services","Portfolio","Blog","Contact Us"],l=()=>{i(!e)};return v.jsxs(v.Fragment,{children:[v.jsxs("nav",{className:"fixed top-6 left-1/2 -translate-x-1/2 z-50 w-[90%] max-w-5xl bg-black/40 backdrop-blur-xl border border-white/10 rounded-full py-4 px-6 md:px-8 flex items-center justify-between",children:[v.jsx("div",{className:"flex items-center",children:v.jsx("img",{src:"/logo.jpg",alt:"Logo",className:"h-12 w-12 md:h-15 md:w-14 rounded-full object-cover"})}),v.jsx("div",{className:"hidden md:flex items-center gap-10",children:s.map(o=>v.jsx("a",{href:`#${o.toLowerCase().replace(" ","-")}`,className:`
                text-xs 
                font-bold 
                uppercase 
                tracking-[0.2em] 
                text-white/70
                hover:text-blue-500
                transition-colors
                duration-300
              `,children:o},o))}),v.jsx("button",{onClick:l,className:"md:hidden text-white/70 hover:text-blue-500 transition-colors duration-300","aria-label":"Toggle menu",children:e?v.jsx(Yf,{className:"w-6 h-6"}):v.jsx(tA,{className:"w-6 h-6"})})]}),v.jsx(S1,{children:e&&v.jsxs(v.Fragment,{children:[v.jsx(xt.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"fixed inset-0 z-40 bg-black/50 backdrop-blur-sm md:hidden",onClick:()=>i(!1)}),v.jsxs(xt.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:25,stiffness:200},className:"fixed top-0 right-0 z-50 h-full w-[280px] bg-black/95 backdrop-blur-xl border-l border-white/10 shadow-2xl md:hidden",children:[v.jsx("div",{className:"flex justify-end p-6",children:v.jsx("button",{onClick:()=>i(!1),className:"text-white/70 hover:text-blue-500 transition-colors duration-300","aria-label":"Close menu",children:v.jsx(Yf,{className:"w-6 h-6"})})}),v.jsx("div",{className:"flex flex-col gap-2 px-6",children:s.map((o,f)=>v.jsx(xt.a,{href:`#${o.toLowerCase().replace(" ","-")}`,onClick:()=>i(!1),initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:f*.1},className:`
                      text-sm
                      font-bold 
                      uppercase 
                      tracking-[0.2em] 
                      text-white/70
                      hover:text-blue-500
                      hover:bg-white/5
                      transition-all
                      duration-300
                      py-4
                      px-4
                      rounded-lg
                      border-b border-white/5
                    `,children:o},o))})]})]})})]})}const XR=()=>{const e=S.useRef(null);return S.useEffect(()=>{const i=new Image;i.src="../../public/heroImage.png"},[]),v.jsx("section",{className:"simple-hero",children:v.jsxs("div",{className:"simple-hero-container",children:[v.jsx("div",{className:"content-left",children:v.jsxs("div",{className:"left-content-wrapper",children:[v.jsx("div",{className:"creative-design-container",children:v.jsxs("h1",{className:"creative-design-heading",children:["Creative Design ",v.jsx("span",{className:"design-blue",children:"Agency"})]})}),v.jsx("div",{className:"description-container",children:v.jsx("p",{className:"content-text",children:"A creative digital agency that grows business through innovative strategies, modern designs and results-driven digital solutions."})})]})}),v.jsx("div",{className:"image-center",children:v.jsx("div",{className:"image-wrapper",children:v.jsx("img",{ref:e,src:"../../public/heroImage.png",alt:"Digital Agency Technology",className:"floating-image",loading:"eager"})})}),v.jsx("div",{className:"content-right",children:v.jsxs("div",{className:"experience-right",children:[v.jsx("span",{className:"experience-number-right",children:"13+"}),v.jsxs("div",{className:"experience-text-container-right",children:[v.jsx("span",{className:"experience-years-right",children:"Years of"}),v.jsx("span",{className:"experience-experience-right",children:"Experience"})]})]})})]})})},KR=[{id:"01",title:"Digital Marketing",icon:rA,desc:"Digital marketing is the promotion of products or services using digital platforms like search engines, social media, websites, and email to reach a targeted audience effectively.",tags:["SEO","EMAIL MARKETING","CONTENT MARKETING","SEM","SMM"]},{id:"02",title:"E-Commerce Websites",icon:iA,desc:"E-commerce websites are online platforms that allow businesses to sell products or services directly to customers through the internet.",tags:["MAGENTO","SHOPIFY","WOO COMMERCE","WEB COMMERCE","E-STORE"]},{id:"03",title:"Social Media Marketing",icon:oA,desc:"Expand your reach and engage with your audience through strategic social media campaigns tailored to your brand's voice.",tags:["FACEBOOK ADS","INSTAGRAM MARKETING","LINKEDIN","CREATIVE","BRANDING"]},{id:"04",title:"Development",icon:jo,desc:"Custom web and mobile applications built with the latest technologies to ensure scalability, performance, and security.",tags:["REACT","NODE.JS","MOBILE APPS","ARTIFICIAL INTELLIGENCE","BLOCKCHAIN"]},{id:"05",title:"UI & UX Designing",icon:$E,desc:"Crafting intuitive and beautiful digital experiences that put your users first and align with your business goals.",tags:["WIREFRAMING","PROTOTYPING","FIGMA","USER EXPERIENCE DESIGN","GRAPHIC DESIGN"]}];function FR(){const[e,i]=S.useState("02");return v.jsx("section",{id:"services",className:"py-16 md:py-24 lg:py-32 bg-background",children:v.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[v.jsxs("div",{className:"flex flex-col lg:flex-row justify-between items-start mb-12 lg:mb-16 xl:mb-20 gap-6 lg:gap-8",children:[v.jsxs("div",{className:"max-w-full lg:max-w-xl",children:[v.jsx("span",{className:"text-[#2081d9] font-bold text-xs tracking-[0.3em] uppercase mb-3 lg:mb-4 block",children:"// OUR SERVICES"}),v.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-black text-white leading-tight",children:"Explore all our creative services"})]}),v.jsx("div",{className:"max-w-full lg:max-w-md pt-2 lg:pt-4",children:v.jsx("p",{className:"text-white/60 text-base sm:text-lg leading-relaxed",children:"Generate more sales with digital marketing, improve web development, and enhance UI/UX design by adding a unique value to your business."})})]}),v.jsx("div",{className:"space-y-2 sm:space-y-3 lg:space-y-4",children:KR.map(s=>v.jsxs("div",{className:"group",children:[v.jsxs("button",{onClick:()=>i(s.id),className:`w-full flex items-center justify-between p-4 sm:p-6 md:p-8 rounded-xl sm:rounded-2xl lg:rounded-[2rem] transition-all duration-500 text-left ${e===s.id?"bg-gradient-to-r from-[#2081d9] to-[#1a6bb3] text-black":"bg-white/5 text-white hover:bg-white/10"}`,children:[v.jsxs("div",{className:"flex items-center gap-4 sm:gap-6 lg:gap-8 xl:gap-12",children:[v.jsx("span",{className:`text-sm sm:text-base lg:text-xl font-black ${e===s.id?"text-black/80":"text-[#2081d9]/60"} flex-shrink-0`,children:s.id}),v.jsx("h3",{className:"text-lg sm:text-xl md:text-2xl lg:text-3xl xl:text-4xl 2xl:text-5xl font-black tracking-tight",children:s.title})]}),v.jsx("div",{className:`p-2 sm:p-3 lg:p-4 rounded-full flex-shrink-0 ${e===s.id?"bg-black text-[#2081d9]":"bg-white/10 text-white"}`,children:v.jsx(s.icon,{className:"w-5 h-5 sm:w-6 sm:h-6 md:w-7 md:h-7 lg:w-8 lg:h-8"})})]}),v.jsx(S1,{children:e===s.id&&v.jsx(xt.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"overflow-hidden",children:v.jsxs("div",{className:"p-4 sm:p-6 md:p-8 lg:p-10 xl:p-12 pl-6 sm:pl-8 md:pl-12 lg:pl-16 xl:pl-20 2xl:pl-24 max-w-full lg:max-w-3xl",children:[v.jsx("p",{className:"text-white/80 text-base sm:text-lg lg:text-xl leading-relaxed mb-6 lg:mb-8",children:s.desc}),s.tags&&s.tags.length>0&&v.jsx("div",{className:"flex flex-wrap gap-3 sm:gap-4 lg:gap-6",children:s.tags.map(l=>v.jsxs("div",{className:"flex items-center gap-1 sm:gap-2 text-xs font-black tracking-widest text-white/70 flex-shrink-0",children:[v.jsx(GE,{className:"text-[#2081d9] w-3 h-3 sm:w-4 sm:h-4"}),v.jsx("span",{className:"whitespace-nowrap",children:l})]},l))})]})})})]},s.id))})]})})}const Uf=[{id:1,title:"Customize Billing Software",category:"App Development",image:"https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&q=80&w=800",link:"https://gagan-billing-ufr9.vercel.app",type:"single"},{id:2,title:"Our Website Links",category:"Web Development",image:"https://images.unsplash.com/photo-1546900703-cf06143d1239?auto=format&fit=crop&q=80&w=800",type:"multiple",links:["https://csbhospital.com/","https://supplyverge.com/","https://kychealthcare.com/","https://www.venushospitaldoorsolutions.com/","https://haryanarajbhavan.gov.in/hi/","https://advocate.jbhtechinnovation.com/","https://chemistrymade.jbhtechinnovation.com/","https://shankarhospital.jbhtechinnovation.com/","https://airships.jbhtechinnovation.com/","https://jbdpublication.com/","https://ktmprint.com/","https://www.jbhtechacademy.com/","https://theyouthmart.com/","https://harshom.com/","https://knowvaults.com/","https://saviourboilers.com/","https://bharatenggrs.com/","https://vedifai.com/"]},{id:3,title:"Cutie Beauty",category:"Branding",image:"https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&q=80&w=800",link:"https://www.instagram.com/reel/DR_YY4ajrVP/",type:"single"},{id:4,title:"AI Cash App",category:"Mobile App",image:"https://images.unsplash.com/photo-1504868584819-f8e8b4b6d7e3?auto=format&fit=crop&q=80&w=800",link:"https://play.google.com/store/apps/details?id=com.aicash.cash&pcampaignid=web_share",type:"single"}];function QR(){const[e,i]=S.useState(!1),s=o=>{o.type==="single"?o.link&&o.link.trim()!==""&&window.open(o.link,"_blank","noopener,noreferrer"):o.type==="multiple"&&i(!0)},l=()=>{(Uf.find(f=>f.id===2)?.links||[]).forEach((f,d)=>{setTimeout(()=>{window.open(f,"_blank","noopener,noreferrer")},d*100)}),i(!1)};return v.jsx("section",{id:"portfolio",className:"py-20",children:v.jsxs("div",{className:"container mx-auto px-4",children:[v.jsxs("div",{className:"text-center mb-16",children:[v.jsx("h2",{className:"text-4xl font-bold mb-4",children:"Our Portfolio"}),v.jsx("div",{className:"w-20 h-1 bg-[#2081d9] mx-auto"})]}),v.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-16",children:Uf.map((o,f)=>v.jsxs(xt.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:f*.1,duration:.5},viewport:{once:!0},className:"group relative overflow-hidden rounded-lg aspect-square cursor-pointer",onClick:()=>s(o),children:[v.jsx("img",{src:o.image,alt:o.title,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-110"}),v.jsxs("div",{className:"absolute inset-0 bg-[#2081d9]/90 opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex flex-col items-center justify-center text-white p-6",children:[v.jsx("span",{className:"text-sm font-medium mb-2 uppercase tracking-widest",children:o.category}),v.jsx("h3",{className:"text-xl font-bold mb-3 text-center",children:o.title}),o.type==="multiple"&&v.jsx("div",{className:"text-center"})]})]},o.id))}),v.jsxs(xt.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},viewport:{once:!0},className:"bg-[#2081d9] rounded-xl p-8 text-white text-center",children:[v.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Govt Trusted Website Development Partner"}),v.jsx("p",{className:"text-lg mb-6 opacity-90",children:"Official development partner for government websites and digital services"}),v.jsx(xt.a,{href:"https://haryanarajbhavan.gov.in/hi/",target:"_blank",rel:"noopener noreferrer",className:"inline-block bg-white text-blue-700 hover:bg-blue-50 px-8 py-3 rounded-lg font-semibold transition-colors duration-300",whileHover:{scale:1.05},whileTap:{scale:.95},children:"Visit Government Website"})]}),e&&v.jsx("div",{className:"fixed inset-0 bg-black/70 flex items-center justify-center z-50 p-4",children:v.jsxs(xt.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"bg-white rounded-xl max-w-4xl w-full max-h-[80vh] overflow-hidden",children:[v.jsxs("div",{className:"p-6 border-b",children:[v.jsxs("div",{className:"flex justify-between items-center",children:[v.jsx("h3",{className:"text-2xl font-bold text-gray-800",children:"Hospital Website Links"}),v.jsx("button",{onClick:()=>i(!1),className:"text-gray-500 hover:text-gray-700 text-2xl",children:"×"})]}),v.jsx("p",{className:"text-gray-600 mt-2",children:"Click on any link to open, or open all at once"})]}),v.jsx("div",{className:"p-6 overflow-y-auto max-h-[60vh]",children:v.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:Uf.find(o=>o.id===2)?.links?.map((o,f)=>v.jsx(xt.a,{href:o,target:"_blank",rel:"noopener noreferrer",className:"block p-4 border rounded-lg hover:bg-blue-50 hover:border-blue-300 transition-colors",whileHover:{scale:1.02},whileTap:{scale:.98},children:v.jsxs("div",{className:"flex items-center",children:[v.jsx("div",{className:"w-8 h-8 flex items-center justify-center bg-blue-100 text-blue-600 rounded-lg mr-3",children:f+1}),v.jsxs("div",{className:"truncate",children:[v.jsx("p",{className:"font-medium text-gray-800 truncate",children:o.replace("https://","").replace("www.","").split("/")[0]}),v.jsx("p",{className:"text-sm text-gray-500 truncate",children:o})]})]})},f))})}),v.jsxs("div",{className:"p-6 border-t bg-gray-50 flex flex-col sm:flex-row gap-3 justify-end",children:[v.jsx("button",{onClick:()=>i(!1),className:"px-6 py-3 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-100 transition-colors",children:"Close"}),v.jsx("button",{onClick:l,className:"px-6 py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium",children:"Open All Links"})]})]})})]})})}function ZR(){const[e,i]=S.useState(!1);return S.useRef(null),v.jsx(v.Fragment,{children:v.jsx("div",{id:"process",className:"w-full py-20 bg-[#fdfbf7] relative",children:v.jsx("div",{className:"w-full px-4",children:v.jsxs("div",{className:"text-center mb-12",children:[v.jsx("h2",{className:"text-5xl font-bold mb-6 text-black tracking-tight",children:"Our Process"}),v.jsx("div",{className:"w-24 h-2 bg-gradient-to-r from-[#2081d9] to-[#1a6bb3] mx-auto mb-12 rounded-full"}),v.jsxs("div",{className:"w-full mx-auto",children:[v.jsx("div",{className:"relative rounded-2xl overflow-hidden shadow-2xl w-full",children:v.jsxs("div",{className:"aspect-video bg-black relative w-full",children:[v.jsxs("video",{className:"w-full h-full object-cover",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,controls:!0,children:[v.jsx("source",{src:"/WhatsApp Video 2026-01-02 at 1.32.22 PM.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),v.jsx("div",{className:"absolute bottom-0 left-0 right-0 p-8 bg-gradient-to-t from-black/90 via-black/60 to-transparent"})]})}),v.jsx("div",{className:"mt-12 w-full text-center"})]})]})})})})}function IR(){const e=[{title:"The Future of Web Design in 2025",date:"January 15, 2026",category:"Design",readTime:"5 min read",link:"Blogpage"},{title:"How AI is Transforming Digital Creativity",date:"January 10, 2026",category:"Technology",readTime:"7 min read",link:"Aiblog"},{title:"Building Modern User Experiences",date:"January 5, 2026",category:"Development",readTime:"6 min read",link:"Userblog"}],i=s=>{s&&s.trim()!==""&&window.open(s,"_blank","noopener,noreferrer")};return v.jsx("section",{id:"blog",className:"py-16 md:py-24 lg:py-32 bg-background overflow-hidden",children:v.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:v.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-10 lg:gap-16 xl:gap-20 items-start lg:items-center",children:[v.jsxs("div",{className:"order-2 lg:order-1",children:[v.jsx("span",{className:"text-[#2081d9] font-bold text-xs tracking-[0.3em] uppercase mb-4 block",children:"// BLOG"}),v.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-black text-white leading-tight mb-6 lg:mb-12",children:"Latest insights from our creative mind"}),v.jsxs("div",{className:"relative inline-block mt-4 lg:mt-0",children:[v.jsxs("div",{className:"flex items-baseline",children:[v.jsx("span",{className:"text-7xl sm:text-8xl md:text-9xl lg:text-[12rem] font-black leading-none text-white tracking-tighter",children:"5+"}),v.jsx("span",{className:"text-4xl sm:text-5xl md:text-6xl font-black text-[#2081d9] ml-2",children:"+"})]}),v.jsx("p",{className:"text-lg sm:text-xl font-bold uppercase tracking-widest text-white/60 mt-2 lg:mt-4 max-w-md",children:"Articles published worldwide"})]})]}),v.jsxs("div",{className:"space-y-4 sm:space-y-6 order-1 lg:order-2",children:[e.map((s,l)=>v.jsxs(xt.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},transition:{delay:l*.1,duration:.5},viewport:{once:!0},className:"group p-4 sm:p-6 lg:p-8 rounded-xl sm:rounded-2xl lg:rounded-[2rem] bg-white/5 border border-white/5 hover:bg-white/10 transition-all cursor-pointer",onClick:()=>i(s.link),children:[v.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-4 sm:gap-6",children:[v.jsx("div",{className:"sm:hidden w-12 h-12 rounded-full border border-white/10 flex items-center justify-center opacity-40 group-hover:opacity-80 group-hover:border-[#2081d9]/30 transition-all flex-shrink-0",children:v.jsx("div",{className:"w-8 h-8 border-t-2 border-white rounded-full group-hover:border-[#2081d9] transition-colors"})}),v.jsx("div",{className:"hidden sm:flex w-14 h-14 lg:w-16 lg:h-16 rounded-full border border-white/10 items-center justify-center opacity-40 group-hover:opacity-80 group-hover:border-[#2081d9]/30 transition-all flex-shrink-0",children:v.jsx("div",{className:"w-8 h-8 lg:w-10 lg:h-10 border-t-2 border-white rounded-full group-hover:border-[#2081d9] transition-colors"})}),v.jsxs("div",{className:"flex-1 min-w-0",children:[v.jsx("h3",{className:"text-lg sm:text-xl lg:text-2xl font-black text-white group-hover:text-[#2081d9] transition-colors leading-tight",children:s.title}),v.jsxs("div",{className:"flex flex-wrap gap-2 mt-2 lg:mt-3",children:[v.jsx("span",{className:"text-[9px] sm:text-[10px] font-bold text-white/40 uppercase tracking-widest px-2 py-1 rounded-full border border-white/10 italic group-hover:border-white/30 whitespace-nowrap",children:s.date}),v.jsx("span",{className:"text-[9px] sm:text-[10px] font-bold text-[#2081d9] uppercase tracking-widest px-2 py-1 rounded-full border border-[#2081d9]/20 italic group-hover:border-[#2081d9]/40 group-hover:bg-[#2081d9]/10 whitespace-nowrap",children:s.category}),v.jsx("span",{className:"text-[9px] sm:text-[10px] font-bold text-white/60 uppercase tracking-widest px-2 py-1 rounded-full border border-white/5 italic group-hover:border-white/20 whitespace-nowrap",children:s.readTime})]})]}),v.jsx("div",{className:"hidden sm:flex w-10 h-10 lg:w-12 lg:h-12 rounded-full border border-white/10 items-center justify-center group-hover:bg-[#2081d9] group-hover:border-[#2081d9] group-hover:text-white transition-all flex-shrink-0",children:v.jsx(gf,{className:"w-4 h-4 lg:w-5 lg:h-5 group-hover:rotate-45 transition-transform"})})]}),v.jsx("div",{className:"flex sm:hidden justify-end mt-3",children:v.jsx("div",{className:"w-8 h-8 rounded-full border border-white/10 flex items-center justify-center group-hover:bg-[#2081d9] group-hover:border-[#2081d9] group-hover:text-white transition-all",children:v.jsx(gf,{className:"w-3.5 h-3.5 group-hover:rotate-45 transition-transform"})})})]},l)),v.jsx(xt.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:.3,duration:.5},viewport:{once:!0},className:"pt-6 lg:pt-8",children:v.jsxs("a",{href:"https://www.jbhtechinnovation.com/blog",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 sm:gap-3 px-6 sm:px-8 py-3 sm:py-4 bg-[#2081d9] text-white font-black uppercase tracking-widest rounded-full hover:bg-[#1a6bb3] transition-colors text-xs sm:text-sm w-full sm:w-auto",children:["View All Blog Posts",v.jsx(gf,{className:"w-3.5 h-3.5 sm:w-4 sm:h-4"})]})})]})]})})})}function $R(){const[e,i]=S.useState({name:"",email:"",subject:"",message:"",phone:""}),[s,l]=S.useState(!1),[o,f]=S.useState(null),d=()=>window.scrollTo({top:0,behavior:"smooth"}),h=g=>{const{name:x,value:w}=g.target;i(T=>({...T,[x]:w}))},p=async g=>{g.preventDefault(),l(!0),f(null);try{const x=await fetch("http://127.0.0.1:8000/api/contact/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e.name,email:e.email,phone:e.phone,subject:e.subject,message:e.message})}),w=await x.json();x.ok?(f({type:"success",message:w.message||"Message sent successfully!"}),i({name:"",email:"",phone:"",subject:"",message:""})):f({type:"error",message:w.message||"Form submit failed"})}catch(x){console.error("Network error:",x),f({type:"error",message:"Network error (backend not reachable)"})}finally{l(!1)}},m=g=>{const x=g.currentTarget;x.src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect width='100' height='100' fill='%232081d9'/%3E%3Ctext x='50' y='50' font-size='16' text-anchor='middle' fill='white' dy='.3em'%3EJBH%3C/text%3E%3C/svg%3E"};return v.jsxs("div",{className:"min-h-screen",children:[v.jsx(YR,{}),v.jsxs("main",{children:[v.jsx(XR,{}),v.jsx(FR,{}),v.jsx(ZR,{}),v.jsx(QR,{}),v.jsx(IR,{}),v.jsx("section",{className:"container mx-auto px-4 md:px-6 lg:px-8 pt-8 md:pt-12 pb-16 md:pb-24",children:v.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-6 md:gap-8 lg:gap-12",children:[v.jsxs("div",{className:"md:col-span-5 md:pl-4 lg:pl-8 xl:pl-16 px-4 md:px-0",children:[v.jsxs("h2",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-black text-white leading-tight uppercase",children:["Contact Us ",v.jsx("br",{}),v.jsx("span",{className:"text-white/40 text-xl sm:text-2xl md:text-3xl lg:text-4xl block mt-2",children:"Let's build something great together"})]}),o&&v.jsx("div",{className:`mt-4 md:mt-6 p-3 md:p-4 rounded-md ${o.type==="success"?"bg-green-900/30 border border-green-700":"bg-red-900/30 border border-red-700"}`,children:v.jsx("p",{className:`font-medium text-sm md:text-base ${o.type==="success"?"text-green-300":"text-red-300"}`,children:o.message})})]}),v.jsx("div",{className:"md:col-span-7 px-4 md:px-0",children:v.jsxs("form",{onSubmit:p,className:"grid grid-cols-1 sm:grid-cols-2 gap-4 md:gap-6",children:[v.jsx("div",{className:"sm:col-span-1",children:v.jsx("input",{type:"text",name:"name",placeholder:"Your Name *",value:e.name,onChange:h,required:!0,className:"w-full bg-transparent border-b border-white/30 text-white py-3 outline-none placeholder:text-white/40 focus:border-[#2081d9] transition-colors text-sm md:text-base"})}),v.jsx("div",{className:"sm:col-span-1",children:v.jsx("input",{type:"email",name:"email",placeholder:"Your Email *",value:e.email,onChange:h,required:!0,className:"w-full bg-transparent border-b border-white/30 text-white py-3 outline-none placeholder:text-white/40 focus:border-[#2081d9] transition-colors text-sm md:text-base"})}),v.jsx("div",{className:"sm:col-span-1",children:v.jsx("input",{type:"text",name:"phone",placeholder:"Phone Number",value:e.phone,onChange:h,className:"w-full bg-transparent border-b border-white/30 text-white py-3 outline-none placeholder:text-white/40 focus:border-[#2081d9] transition-colors text-sm md:text-base"})}),v.jsx("div",{className:"sm:col-span-1",children:v.jsx("input",{type:"text",name:"subject",placeholder:"Subject",value:e.subject,onChange:h,className:"w-full bg-transparent border-b border-white/30 text-white py-3 outline-none placeholder:text-white/40 focus:border-[#2081d9] transition-colors text-sm md:text-base"})}),v.jsx("div",{className:"sm:col-span-2",children:v.jsx("textarea",{rows:4,name:"message",placeholder:"Your Message *",value:e.message,onChange:h,required:!0,className:"w-full bg-transparent border-b border-white/30 text-white py-3 outline-none resize-none placeholder:text-white/40 focus:border-[#2081d9] transition-colors text-sm md:text-base"})}),v.jsx("div",{className:"sm:col-span-2",children:v.jsx("button",{type:"submit",disabled:s,className:"mt-2 md:mt-4 w-full sm:w-fit bg-[#2081d9] text-white px-6 md:px-10 py-3 md:py-4 font-black uppercase hover:bg-[#1a6bb3] transition text-sm md:text-base disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",children:s?"Sending...":"Send Message"})})]})})]})}),v.jsx("footer",{id:"contact-us",className:"px-4 md:px-6 lg:px-8",children:v.jsxs("div",{className:"container mx-auto",children:[v.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-12 gap-6 md:gap-8 lg:gap-10 mb-12 md:mb-16 lg:mb-20",children:[v.jsx("div",{className:"lg:col-span-5 px-4 md:px-0",children:v.jsxs("h2",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-black text-white leading-tight uppercase",children:["Discuss new project ",v.jsx("br",{}),"or just to say hello ",v.jsx("br",{}),v.jsx("span",{className:"text-white/40 text-xl sm:text-2xl md:text-3xl lg:text-4xl block mt-2",children:"get in touch with us"})]})}),v.jsxs("div",{className:"lg:col-span-2 px-4 md:px-0",children:[v.jsx("h4",{className:"text-white/40 font-bold uppercase text-xs tracking-widest mb-4 md:mb-6",children:"Social Links"}),v.jsxs("ul",{className:"space-y-2 md:space-y-3 lg:space-y-4 text-sm md:text-base lg:text-lg font-black text-white",children:[v.jsx("li",{children:v.jsx("a",{href:"https://www.facebook.com/jbhtechinnovation",target:"_blank",rel:"noopener noreferrer",className:"hover:text-[#2081d9] transition-colors inline-block py-1",children:"Facebook"})}),v.jsx("li",{children:v.jsx("a",{href:"https://www.instagram.com/jbh_webstics/",target:"_blank",rel:"noopener noreferrer",className:"hover:text-[#2081d9] transition-colors inline-block py-1",children:"Instagram"})}),v.jsx("li",{children:v.jsx("a",{href:"https://www.linkedin.com/company/jbh-tech-innovation/",target:"_blank",rel:"noopener noreferrer",className:"hover:text-[#2081d9] transition-colors inline-block py-1",children:"LinkedIn"})}),v.jsx("li",{children:v.jsx("a",{href:"https://x.com/DigitalJbhk",target:"_blank",rel:"noopener noreferrer",className:"hover:text-[#2081d9] transition-colors inline-block py-1",children:"Twitter"})})]})]}),v.jsxs("div",{className:"lg:col-span-2 px-4 md:px-0",children:[v.jsx("h4",{className:"text-white/40 font-bold uppercase text-xs tracking-widest mb-4 md:mb-6",children:"Our studio address"}),v.jsxs("p",{className:"text-sm md:text-base lg:text-lg font-black text-white leading-relaxed",children:["Amartex Plaza Sec 19,",v.jsx("br",{}),"Office No.1, Basement, Faridabad,",v.jsx("br",{}),"Haryana 121002"]})]}),v.jsxs("div",{className:"lg:col-span-3 px-4 md:px-0",children:[v.jsx("h4",{className:"text-white/40 font-bold uppercase text-xs tracking-widest mb-4 md:mb-6",children:"Send email"}),v.jsx("a",{href:"mailto:jbh.webstics@gmail.com",className:"text-sm md:text-base lg:text-lg font-black text-white hover:text-[#2081d9] transition-colors block mb-2 break-words",children:"jbh.webstics@gmail.com"}),v.jsx("a",{href:"mailto:support@jbhtechinnovation.com",className:"text-sm md:text-base lg:text-lg font-black text-white hover:text-[#2081d9] transition-colors block mb-4 md:mb-6 break-words",children:"support@jbhtechinnovation.com"}),v.jsxs("div",{className:"space-y-3",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("span",{className:"w-7 h-7 md:w-8 md:h-8 rounded-full bg-[#2081d9]/20 flex items-center justify-center flex-shrink-0",children:v.jsx(nv,{size:14,className:"text-[#2081d9]"})}),v.jsx("a",{href:"tel:+917042788393",className:"text-sm md:text-base lg:text-lg font-black text-white hover:text-[#2081d9] transition-colors break-words",children:"+91 7042788393"})]}),v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("span",{className:"w-7 h-7 md:w-8 md:h-8 rounded-full bg-[#2081d9]/20 flex items-center justify-center flex-shrink-0",children:v.jsx(nv,{size:14,className:"text-[#2081d9]"})}),v.jsx("a",{href:"tel:+919990145858",className:"text-sm md:text-base lg:text-lg font-black text-white hover:text-[#2081d9] transition-colors break-words",children:"+91 9990145858"})]})]})]})]}),v.jsxs("div",{className:"relative px-4 md:px-0",children:[v.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-center md:justify-start gap-4 md:gap-6 lg:gap-8 mb-8 md:mb-10",children:[v.jsxs("div",{className:"relative w-28 h-28 sm:w-32 sm:h-32 md:w-36 md:h-36 lg:w-40 lg:h-40 shrink-0",children:[v.jsx("div",{className:"absolute inset-0 animate-spin-slow",children:v.jsxs("svg",{viewBox:"0 0 200 200",className:"w-full h-full",children:[v.jsx("defs",{children:v.jsx("path",{id:"circlePath",d:"M 100,100 m -80,0 a 80,80 0 1,1 160,0 a 80,80 0 1,1 -160,0"})}),v.jsx("text",{className:"fill-white/60 text-[10px] sm:text-[11px] md:text-[12px] lg:text-[14px] font-bold uppercase",children:v.jsx("textPath",{href:"#circlePath",children:"Creative Professional Design • Smart Digital Solutions • Future Ready Technology"})})]})}),v.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:v.jsx("img",{src:"/logo.jpg",alt:"JBH Tech Innovation Logo",className:"w-16 h-16 sm:w-18 sm:h-18 md:w-20 md:h-20 lg:w-24 lg:h-24 rounded-full border-2 border-white/20 object-cover",onError:m})})]}),v.jsx("h2",{className:"text-4xl sm:text-5xl md:text-6xl lg:text-7xl xl:text-8xl 2xl:text-[15vw] font-black text-white uppercase whitespace-nowrap overflow-hidden",children:"JBH Tech"})]}),v.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-center gap-3 sm:gap-0 pt-4 border-t border-white/10 text-xs font-bold text-white/40 uppercase tracking-widest",children:[v.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-2 sm:gap-4 mb-2 sm:mb-0",children:[v.jsx("span",{className:"text-center sm:text-left",children:"© 2025 JBH Tech Innovation. All rights reserved."}),v.jsx("span",{className:"hidden sm:inline",children:"|"}),v.jsx("a",{href:"/error",className:"hover:text-[#2081d9] transition-colors",children:"Error Page"})]}),v.jsx("button",{onClick:d,className:"w-7 h-7 bg-[#2081d9] flex items-center justify-center text-white hover:bg-[#1a6ab8] transition-colors flex-shrink-0","aria-label":"Scroll to top",children:v.jsx(XE,{size:14})})]})]})]})})]})]})}const JR={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.2,delayChildren:.3}}},Qi={hidden:{y:20,opacity:0},visible:{y:0,opacity:1,transition:{type:"spring",stiffness:100}}},WR=()=>{const e=S.useRef(null),i=S.useRef(null);S.useEffect(()=>{const o=()=>{const f=i.current;if(f){const d=e.current?.getBoundingClientRect().bottom||0,h=Math.min(1,Math.max(0,(window.innerHeight-d)/window.innerHeight));requestAnimationFrame(()=>{f.style.opacity=`${Math.min(1,h*2)}`,f.style.transform=`translateY(${Math.max(0,(1-h)*30)}px)`})}};return window.addEventListener("scroll",o),o(),()=>window.removeEventListener("scroll",o)},[]);const s=["IT Services Company","Web Development","Software Development","Digital Transformation","AI Solutions","Cloud Services","Technology Trends 2025"],l=[{title:"Custom Software Development",content:"Businesses in 2025 will rely on custom software solutions built for scalability, security, and long-term growth.",icon:v.jsx(jd,{className:"w-8 h-8 text-[#2081d9]"})},{title:"Modern Web & App Development",content:"High-performance websites and mobile applications will focus on speed, user experience, and SEO-first architecture.",icon:v.jsx(jo,{className:"w-8 h-8 text-[#2081d9]"})},{title:"AI & Automation Integration",content:"Artificial intelligence will automate workflows, improve decision-making, and enhance customer engagement across industries.",icon:v.jsx(Rd,{className:"w-8 h-8 text-[#2081d9]"})},{title:"Secure & Scalable Cloud Solutions",content:"Cloud computing will remain the backbone of IT infrastructure, ensuring flexibility, data security, and cost optimization.",icon:v.jsx(Dd,{className:"w-8 h-8 text-[#2081d9]"})}];return v.jsxs("div",{className:"min-h-screen bg-black text-white overflow-hidden",children:[v.jsxs("div",{ref:e,className:"relative w-full h-[350px] overflow-hidden",children:[v.jsxs("div",{className:"absolute inset-0 z-0",children:[v.jsx("img",{src:"https://images.unsplash.com/photo-1551650975-87deedd944c3?auto=format&fit=crop&w=2000&q=80",alt:"IT Services and Software Development Company",className:"w-full h-full object-cover",loading:"eager"}),v.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/80 via-black/50 to-black/20"})]}),v.jsx("div",{className:"relative z-10 h-full flex items-center justify-center text-center px-4",children:v.jsxs("div",{children:[v.jsxs(xt.h1,{initial:{y:50,opacity:0},animate:{y:0,opacity:1},transition:{duration:.8,type:"spring"},className:"text-4xl sm:text-5xl md:text-6xl font-black mb-4",children:["Future of IT Services ",v.jsx("br",{}),v.jsxs("span",{className:"text-[#2081d9] relative inline-block",children:["Driving Digital Growth in 2025",v.jsx("span",{className:"absolute -bottom-1 left-0 w-full h-1 bg-gradient-to-r from-[#2081d9] to-transparent"})]})]}),v.jsx(xt.p,{initial:{y:30,opacity:0},animate:{y:0,opacity:1},transition:{delay:.3,duration:.8},className:"text-lg sm:text-xl text-white/80 max-w-3xl mx-auto",children:"How modern IT services, software development, and AI solutions are shaping the future of digital businesses."})]})})]}),v.jsxs(xt.div,{ref:i,variants:JR,initial:"hidden",whileInView:"visible",viewport:{once:!0,amount:.3},className:"w-full px-4 md:px-6 lg:px-8 py-12 md:py-16",style:{opacity:0,transform:"translateY(30px)"},children:[v.jsx(xt.div,{variants:Qi,className:"mb-10",children:v.jsx("div",{className:"flex flex-wrap justify-center gap-3",children:s.map((o,f)=>v.jsxs("span",{className:"px-4 py-2 bg-white/10 text-sm rounded-full border border-white/20",children:["#",o]},f))})}),v.jsxs(xt.p,{variants:Qi,className:"text-xl md:text-2xl lg:text-3xl text-white/90 leading-relaxed text-center max-w-6xl mx-auto mb-12",children:["As businesses move towards ",v.jsx("span",{className:"text-[#2081d9] font-bold",children:"2025"}),", IT services will play a critical role in digital transformation, enabling companies to scale faster, operate securely, and innovate continuously."]}),v.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 mb-16",children:l.map((o,f)=>v.jsx(xt.div,{variants:Qi,className:"p-6 bg-white/5 rounded-2xl border border-white/10",children:v.jsxs("div",{className:"flex gap-4",children:[o.icon,v.jsxs("div",{children:[v.jsx("h3",{className:"text-xl font-bold mb-2 text-white",children:o.title}),v.jsx("p",{className:"text-white/70",children:o.content})]})]})},f))}),v.jsxs(xt.blockquote,{variants:Qi,className:"max-w-6xl mx-auto mb-16 p-8 bg-[#2081d9]/10 border-l-4 border-[#2081d9] rounded-xl",children:[v.jsx("p",{className:"text-xl md:text-2xl italic text-white/90",children:"“IT services are no longer just support systems — they are the foundation of business innovation and digital success.”"}),v.jsx("p",{className:"mt-4 text-right text-white/60 font-medium",children:"— JBH Tech | IT Services & Software Solutions"})]}),v.jsxs(xt.div,{variants:Qi,className:"max-w-6xl mx-auto mb-16",children:[v.jsx("h3",{className:"text-2xl font-bold mb-4 text-white",children:"Impact of IT Services on Businesses"}),v.jsxs("ul",{className:"space-y-3 text-white/80",children:[v.jsx("li",{children:"• Faster digital transformation and scalability"}),v.jsx("li",{children:"• Improved operational efficiency and automation"}),v.jsx("li",{children:"• Enhanced data security and compliance"}),v.jsx("li",{children:"• Better customer engagement and experience"}),v.jsx("li",{children:"• Long-term cost optimization and growth"})]})]}),v.jsx(xt.p,{variants:Qi,className:"text-xl md:text-2xl text-center text-white/90 mb-10",children:"Partnering with a reliable IT services company in 2025 means building future-ready digital solutions that empower growth, innovation, and competitive advantage."}),v.jsx(xt.div,{variants:Qi,className:"text-center",children:v.jsx(Eo,{href:"/",className:"inline-flex items-center gap-3 px-8 py-4 bg-[#2081d9] text-white font-bold rounded-full hover:bg-[#1a6bb3]",children:"← Back to Home"})})]})]})},t3={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.2,delayChildren:.3}}},Zi={hidden:{y:20,opacity:0},visible:{y:0,opacity:1,transition:{type:"spring",stiffness:100}}},e3=()=>{const e=S.useRef(null),i=S.useRef(null);S.useEffect(()=>{const o=()=>{const f=i.current;if(f){const d=e.current?.getBoundingClientRect().bottom||0,h=Math.min(1,Math.max(0,(window.innerHeight-d)/window.innerHeight));requestAnimationFrame(()=>{f.style.opacity=`${Math.min(1,h*2)}`,f.style.transform=`translateY(${Math.max(0,(1-h)*30)}px)`})}};return window.addEventListener("scroll",o),o(),()=>window.removeEventListener("scroll",o)},[]);const s=["IT Services","Software Development","Web Development","Mobile App Development","AI Solutions","Cloud Services","Digital Transformation"],l=[{title:"Custom Software Development",content:"We deliver scalable, secure, and custom software solutions tailored to meet your business requirements using modern technologies.",icon:v.jsx(jd,{className:"w-8 h-8 text-[#2081d9]"})},{title:"Web & Mobile App Development",content:"Our team builds responsive websites and high-performance mobile applications that enhance user experience and business growth.",icon:v.jsx(jo,{className:"w-8 h-8 text-[#2081d9]"})},{title:"AI & Automation Solutions",content:"We integrate artificial intelligence and automation to streamline workflows, reduce costs, and improve operational efficiency.",icon:v.jsx(Rd,{className:"w-8 h-8 text-[#2081d9]"})},{title:"Cloud & IT Consulting Services",content:"Our cloud computing and IT consulting services help businesses scale securely while optimizing infrastructure and performance.",icon:v.jsx(Dd,{className:"w-8 h-8 text-[#2081d9]"})}];return v.jsxs("div",{className:"min-h-screen bg-black text-white overflow-hidden",children:[v.jsxs("div",{ref:e,className:"relative w-full h-[350px] overflow-hidden",children:[v.jsxs("div",{className:"absolute inset-0 z-0",children:[v.jsx("img",{src:"https://images.unsplash.com/photo-1593642532400-2682810df593?auto=format&fit=crop&w=2000&q=80",alt:"IT Services and Software Development",className:"w-full h-full object-cover",loading:"eager"}),v.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/80 via-black/50 to-black/20"})]}),v.jsx("div",{className:"relative z-10 h-full flex items-center justify-center text-center px-4",children:v.jsxs("div",{children:[v.jsxs(xt.h1,{initial:{y:50,opacity:0},animate:{y:0,opacity:1},transition:{duration:.8,type:"spring"},className:"text-4xl sm:text-5xl md:text-6xl font-black mb-4",children:["Top IT Services Company ",v.jsx("br",{}),v.jsxs("span",{className:"text-[#2081d9] relative inline-block",children:["Driving Business Growth with Technology",v.jsx("span",{className:"absolute -bottom-1 left-0 w-full h-1 bg-gradient-to-r from-[#2081d9] to-transparent"})]})]}),v.jsx(xt.p,{initial:{y:30,opacity:0},animate:{y:0,opacity:1},transition:{delay:.3,duration:.8},className:"text-lg sm:text-xl text-white/80 max-w-3xl mx-auto",children:"We provide end-to-end IT services including software development, web & mobile applications, AI solutions, and digital transformation for modern businesses."})]})})]}),v.jsxs(xt.div,{ref:i,variants:t3,initial:"hidden",whileInView:"visible",viewport:{once:!0,amount:.3},className:"w-full px-4 md:px-6 lg:px-8 py-12 md:py-16",style:{opacity:0,transform:"translateY(30px)"},children:[v.jsx(xt.div,{variants:Zi,className:"mb-10",children:v.jsx("div",{className:"flex flex-wrap justify-center gap-3",children:s.map((o,f)=>v.jsxs("span",{className:"px-4 py-2 bg-white/10 text-sm rounded-full border border-white/20",children:["#",o]},f))})}),v.jsx(xt.p,{variants:Zi,className:"text-xl md:text-2xl text-white/90 leading-relaxed text-center max-w-6xl mx-auto mb-12",children:"We are a trusted IT services company helping startups and enterprises build secure, scalable, and future-ready digital solutions that drive measurable business results."}),v.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 mb-16",children:l.map((o,f)=>v.jsx(xt.div,{variants:Zi,className:"p-6 bg-white/5 rounded-2xl border border-white/10",children:v.jsxs("div",{className:"flex gap-4",children:[o.icon,v.jsxs("div",{children:[v.jsx("h3",{className:"text-xl font-bold mb-2 text-white",children:o.title}),v.jsx("p",{className:"text-white/70",children:o.content})]})]})},f))}),v.jsxs(xt.blockquote,{variants:Zi,className:"max-w-6xl mx-auto mb-16 p-8 bg-[#2081d9]/10 border-l-4 border-[#2081d9] rounded-xl",children:[v.jsx("p",{className:"text-xl md:text-2xl italic text-white/90",children:"“Technology is the backbone of modern business. Our IT services empower organizations to innovate, scale, and succeed in the digital-first world.”"}),v.jsx("p",{className:"mt-4 text-right text-white/60 font-medium",children:"— JBH Tech | IT Services & Digital Solutions"})]}),v.jsxs(xt.div,{variants:Zi,className:"max-w-6xl mx-auto mb-16",children:[v.jsx("h3",{className:"text-2xl font-bold mb-4 text-white",children:"Why Choose Our IT Services?"}),v.jsxs("ul",{className:"space-y-3 text-white/80",children:[v.jsx("li",{children:"• End-to-end IT solutions for startups & enterprises"}),v.jsx("li",{children:"• Experienced developers & technology consultants"}),v.jsx("li",{children:"• Secure, scalable, and future-proof systems"}),v.jsx("li",{children:"• Cost-effective digital transformation services"}),v.jsx("li",{children:"• Dedicated long-term technical support"})]})]}),v.jsx(xt.p,{variants:Zi,className:"text-xl md:text-2xl text-center text-white/90 mb-10",children:"Partner with a reliable IT services company to accelerate your digital transformation and achieve long-term success."}),v.jsx(xt.div,{variants:Zi,className:"text-center",children:v.jsx(Eo,{href:"/",className:"inline-flex items-center gap-3 px-8 py-4 bg-[#2081d9] text-white font-bold rounded-full hover:bg-[#1a6bb3]",children:"← Back to Home"})})]})]})},n3={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.2,delayChildren:.3}}},Ii={hidden:{y:20,opacity:0},visible:{y:0,opacity:1,transition:{type:"spring",stiffness:100}}},i3=()=>{const e=S.useRef(null),i=S.useRef(null);S.useEffect(()=>{const o=()=>{const f=i.current;if(f){const d=e.current?.getBoundingClientRect().bottom||0,h=Math.min(1,Math.max(0,(window.innerHeight-d)/window.innerHeight));requestAnimationFrame(()=>{f.style.opacity=`${Math.min(1,h*2)}`,f.style.transform=`translateY(${Math.max(0,(1-h)*30)}px)`})}};return window.addEventListener("scroll",o),o(),()=>window.removeEventListener("scroll",o)},[]);const s=["UI UX Design Services","User Experience Design","User Interface Design","Web & App Design","Product Design","IT Services","Digital Solutions"],l=[{title:"User Experience (UX) Design",content:"We design intuitive and user-focused experiences that improve usability, engagement, and customer satisfaction across digital platforms.",icon:v.jsx(jd,{className:"w-8 h-8 text-[#2081d9]"})},{title:"User Interface (UI) Design",content:"Our UI design services deliver visually appealing, modern, and responsive interfaces for websites, mobile apps, and software products.",icon:v.jsx(jo,{className:"w-8 h-8 text-[#2081d9]"})},{title:"Product & Interaction Design",content:"We create seamless interaction flows and digital products that align with business goals and user expectations.",icon:v.jsx(Rd,{className:"w-8 h-8 text-[#2081d9]"})},{title:"Design Systems & Optimization",content:"Our design systems ensure consistency, scalability, and performance while reducing development time and costs.",icon:v.jsx(Dd,{className:"w-8 h-8 text-[#2081d9]"})}];return v.jsxs("div",{className:"min-h-screen bg-black text-white overflow-hidden",children:[v.jsxs("div",{ref:e,className:"relative w-full h-[350px] overflow-hidden",children:[v.jsxs("div",{className:"absolute inset-0 z-0",children:[v.jsx("img",{src:"https://images.unsplash.com/photo-1557804506-669a67965ba0?auto=format&fit=crop&w=2000&q=80",alt:"UI UX Design and Digital Experience Services",className:"w-full h-full object-cover",loading:"eager"}),v.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/80 via-black/50 to-black/20"})]}),v.jsx("div",{className:"relative z-10 h-full flex items-center justify-center text-center px-4",children:v.jsxs("div",{children:[v.jsxs(xt.h1,{initial:{y:50,opacity:0},animate:{y:0,opacity:1},transition:{duration:.8,type:"spring"},className:"text-4xl sm:text-5xl md:text-6xl font-black mb-4",children:["UI & UX Design Services ",v.jsx("br",{}),v.jsxs("span",{className:"text-[#2081d9] relative inline-block",children:["Creating Powerful Digital Experiences",v.jsx("span",{className:"absolute -bottom-1 left-0 w-full h-1 bg-gradient-to-r from-[#2081d9] to-transparent"})]})]}),v.jsx(xt.p,{initial:{y:30,opacity:0},animate:{y:0,opacity:1},transition:{delay:.3,duration:.8},className:"text-lg sm:text-xl text-white/80 max-w-3xl mx-auto",children:"We design user-centered digital experiences that improve engagement, usability, and conversions for businesses."})]})})]}),v.jsxs(xt.div,{ref:i,variants:n3,initial:"hidden",whileInView:"visible",viewport:{once:!0,amount:.3},className:"w-full px-4 md:px-6 lg:px-8 py-12 md:py-16",style:{opacity:0,transform:"translateY(30px)"},children:[v.jsx(xt.div,{variants:Ii,className:"mb-10",children:v.jsx("div",{className:"flex flex-wrap justify-center gap-3",children:s.map((o,f)=>v.jsxs("span",{className:"px-4 py-2 bg-white/10 text-sm rounded-full border border-white/20",children:["#",o]},f))})}),v.jsx(xt.p,{variants:Ii,className:"text-xl md:text-2xl text-white/90 leading-relaxed text-center max-w-6xl mx-auto mb-12",children:"Our UI/UX design services help businesses create intuitive, user-friendly, and visually compelling digital products that drive engagement and business growth."}),v.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 mb-16",children:l.map((o,f)=>v.jsx(xt.div,{variants:Ii,className:"p-6 bg-white/5 rounded-2xl border border-white/10",children:v.jsxs("div",{className:"flex gap-4",children:[o.icon,v.jsxs("div",{children:[v.jsx("h3",{className:"text-xl font-bold mb-2 text-white",children:o.title}),v.jsx("p",{className:"text-white/70",children:o.content})]})]})},f))}),v.jsxs(xt.blockquote,{variants:Ii,className:"max-w-6xl mx-auto mb-16 p-8 bg-[#2081d9]/10 border-l-4 border-[#2081d9] rounded-xl",children:[v.jsx("p",{className:"text-xl md:text-2xl italic text-white/90",children:"“Great design is not just how it looks, but how it works. Our UI/UX solutions bridge business goals with user needs.”"}),v.jsx("p",{className:"mt-4 text-right text-white/60 font-medium",children:"— JBH Tech | UI UX Design & IT Services"})]}),v.jsxs(xt.div,{variants:Ii,className:"max-w-6xl mx-auto mb-16",children:[v.jsx("h3",{className:"text-2xl font-bold mb-4 text-white",children:"Benefits of Our UI/UX Design Services"}),v.jsxs("ul",{className:"space-y-3 text-white/80",children:[v.jsx("li",{children:"• Improved user engagement and retention"}),v.jsx("li",{children:"• Higher conversion rates and usability"}),v.jsx("li",{children:"• Consistent and scalable design systems"}),v.jsx("li",{children:"• Faster development and reduced costs"}),v.jsx("li",{children:"• Strong brand identity and trust"})]})]}),v.jsx(xt.p,{variants:Ii,className:"text-xl md:text-2xl text-center text-white/90 mb-10",children:"Partner with our UI/UX design experts to create digital experiences that users love and businesses trust."}),v.jsx(xt.div,{variants:Ii,className:"text-center",children:v.jsx(Eo,{href:"/",className:"inline-flex items-center gap-3 px-8 py-4 bg-[#2081d9] text-white font-bold rounded-full hover:bg-[#1a6bb3]",children:"← Back to Home"})})]})]})};var cw={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},z0=he.createContext&&he.createContext(cw),a3=["attr","size","title"];function s3(e,i){if(e==null)return{};var s=r3(e,i),l,o;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(e);for(o=0;o<f.length;o++)l=f[o],!(i.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(e,l)&&(s[l]=e[l])}return s}function r3(e,i){if(e==null)return{};var s={};for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){if(i.indexOf(l)>=0)continue;s[l]=e[l]}return s}function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(e[l]=s[l])}return e},bo.apply(this,arguments)}function L0(e,i){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);i&&(l=l.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),s.push.apply(s,l)}return s}function wo(e){for(var i=1;i<arguments.length;i++){var s=arguments[i]!=null?arguments[i]:{};i%2?L0(Object(s),!0).forEach(function(l){l3(e,l,s[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):L0(Object(s)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(s,l))})}return e}function l3(e,i,s){return i=o3(i),i in e?Object.defineProperty(e,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[i]=s,e}function o3(e){var i=c3(e,"string");return typeof i=="symbol"?i:i+""}function c3(e,i){if(typeof e!="object"||!e)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var l=s.call(e,i);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(e)}function uw(e){return e&&e.map((i,s)=>he.createElement(i.tag,wo({key:s},i.attr),uw(i.child)))}function fw(e){return i=>he.createElement(u3,bo({attr:wo({},e.attr)},i),uw(e.child))}function u3(e){var i=s=>{var{attr:l,size:o,title:f}=e,d=s3(e,a3),h=o||s.size||"1em",p;return s.className&&(p=s.className),e.className&&(p=(p?p+" ":"")+e.className),he.createElement("svg",bo({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},s.attr,l,d,{className:p,style:wo(wo({color:e.color||s.color},s.style),e.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),f&&he.createElement("title",null,f),e.children)};return z0!==void 0?he.createElement(z0.Consumer,null,s=>i(s)):i(cw)}function f3(e){return fw({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"},child:[]}]})(e)}function d3(e){return fw({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M32,224H64V416H32A31.96166,31.96166,0,0,1,0,384V256A31.96166,31.96166,0,0,1,32,224Zm512-48V448a64.06328,64.06328,0,0,1-64,64H160a64.06328,64.06328,0,0,1-64-64V176a79.974,79.974,0,0,1,80-80H288V32a32,32,0,0,1,64,0V96H464A79.974,79.974,0,0,1,544,176ZM264,256a40,40,0,1,0-40,40A39.997,39.997,0,0,0,264,256Zm-8,128H192v32h64Zm96,0H288v32h64ZM456,256a40,40,0,1,0-40,40A39.997,39.997,0,0,0,456,256Zm-8,128H384v32h64ZM640,256V384a31.96166,31.96166,0,0,1-32,32H576V224h32A31.96166,31.96166,0,0,1,640,256Z"},child:[]}]})(e)}function h3(){return v.jsx("div",{className:"min-h-screen flex items-center justify-center bg-black px-4",children:v.jsxs("div",{className:"text-center max-w-xl",children:[v.jsx("div",{className:"flex justify-center mb-6",children:v.jsx("div",{className:"w-32 h-32 rounded-full bg-gradient-to-br from-blue-500 to-indigo-600 flex items-center justify-center shadow-xl animate-bounce",children:v.jsx(d3,{className:"text-6xl text-white"})})}),v.jsx("h1",{className:"text-7xl font-extrabold text-white tracking-tight",children:"404"}),v.jsx("h2",{className:"mt-4 text-2xl md:text-3xl font-bold text-white",children:"Oops! Page Not Found"}),v.jsx("p",{className:"mt-4 text-gray-400 text-base md:text-lg",children:"The page you're looking for seems to have wandered off into the digital void. Our robot is searching, but it's nowhere to be found!"}),v.jsx("div",{className:"mt-8 flex justify-center",children:v.jsx(Eo,{href:"/",children:v.jsxs("a",{className:"px-8 py-4 rounded-lg bg-gradient-to-r from-blue-600 to-indigo-700 hover:from-blue-700 hover:to-indigo-800 text-white font-semibold transition-all duration-300 transform hover:-translate-y-1 hover:shadow-2xl flex items-center justify-center gap-3 text-lg",children:[v.jsx(f3,{}),"Go Back Home"]})})})]})})}function m3(){return v.jsxs(m2,{children:[v.jsx(Ha,{path:"/",component:$R}),v.jsx(Ha,{path:"/blogpage",component:WR}),v.jsx(Ha,{path:"/Aiblog",component:e3}),v.jsx(Ha,{path:"/Userblog",component:i3}),v.jsx(Ha,{path:"/error",component:h3}),v.jsx(Ha,{component:cN})]})}function p3(){return v.jsx(B2,{client:H2,children:v.jsxs(iN,{children:[v.jsx(FA,{}),v.jsx(m3,{})]})})}YT.createRoot(document.getElementById("root")).render(v.jsx(p3,{}));
