const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Template1-B3oAQfCp.js","assets/template_structure-Y742TMcS.js","assets/Template1-c92B-4_j.css","assets/Template2-ffHTSSGc.js","assets/Template2-DWZVR7OK.css","assets/Template3-B8wLj6zW.js","assets/Template3-DElya8Tc.css","assets/Template4-mY3cJqqN.js","assets/Template4-udyLQ9D3.css"])))=>i.map(i=>d[i]);
function z5(e,n){for(var a=0;a<n.length;a++){const o=n[a];if(typeof o!="string"&&!Array.isArray(o)){for(const s in o)if(s!=="default"&&!(s in e)){const c=Object.getOwnPropertyDescriptor(o,s);c&&Object.defineProperty(e,s,c.get?c:{enumerable:!0,get:()=>o[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&o(u)}).observe(document,{childList:!0,subtree:!0});function a(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=a(s);fetch(s.href,c)}})();function Oh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sp={exports:{}},zs={};/**
 * @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 R0;function D5(){if(R0)return zs;R0=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(o,s,c){var u=null;if(c!==void 0&&(u=""+c),s.key!==void 0&&(u=""+s.key),"key"in s){c={};for(var d in s)d!=="key"&&(c[d]=s[d])}else c=s;return s=c.ref,{$$typeof:e,type:o,key:u,ref:s!==void 0?s:null,props:c}}return zs.Fragment=n,zs.jsx=a,zs.jsxs=a,zs}var T0;function L5(){return T0||(T0=1,sp.exports=D5()),sp.exports}var p=L5(),lp={exports:{}},We={};/**
 * @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 A0;function P5(){if(A0)return We;A0=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.iterator;function x(_){return _===null||typeof _!="object"?null:(_=b&&_[b]||_["@@iterator"],typeof _=="function"?_:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,w={};function T(_,J,ue){this.props=_,this.context=J,this.refs=w,this.updater=ue||E}T.prototype.isReactComponent={},T.prototype.setState=function(_,J){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,J,"setState")},T.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function M(){}M.prototype=T.prototype;function j(_,J,ue){this.props=_,this.context=J,this.refs=w,this.updater=ue||E}var O=j.prototype=new M;O.constructor=j,S(O,T.prototype),O.isPureReactComponent=!0;var N=Array.isArray,A={H:null,A:null,T:null,S:null,V:null},z=Object.prototype.hasOwnProperty;function L(_,J,ue,oe,pe,be){return ue=be.ref,{$$typeof:e,type:_,key:J,ref:ue!==void 0?ue:null,props:be}}function B(_,J){return L(_.type,J,void 0,void 0,void 0,_.props)}function V(_){return typeof _=="object"&&_!==null&&_.$$typeof===e}function X(_){var J={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(ue){return J[ue]})}var Z=/\/+/g;function R(_,J){return typeof _=="object"&&_!==null&&_.key!=null?X(""+_.key):J.toString(36)}function G(){}function F(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(G,G):(_.status="pending",_.then(function(J){_.status==="pending"&&(_.status="fulfilled",_.value=J)},function(J){_.status==="pending"&&(_.status="rejected",_.reason=J)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function q(_,J,ue,oe,pe){var be=typeof _;(be==="undefined"||be==="boolean")&&(_=null);var ae=!1;if(_===null)ae=!0;else switch(be){case"bigint":case"string":case"number":ae=!0;break;case"object":switch(_.$$typeof){case e:case n:ae=!0;break;case y:return ae=_._init,q(ae(_._payload),J,ue,oe,pe)}}if(ae)return pe=pe(_),ae=oe===""?"."+R(_,0):oe,N(pe)?(ue="",ae!=null&&(ue=ae.replace(Z,"$&/")+"/"),q(pe,J,ue,"",function(Ie){return Ie})):pe!=null&&(V(pe)&&(pe=B(pe,ue+(pe.key==null||_&&_.key===pe.key?"":(""+pe.key).replace(Z,"$&/")+"/")+ae)),J.push(pe)),1;ae=0;var Ee=oe===""?".":oe+":";if(N(_))for(var Ae=0;Ae<_.length;Ae++)oe=_[Ae],be=Ee+R(oe,Ae),ae+=q(oe,J,ue,be,pe);else if(Ae=x(_),typeof Ae=="function")for(_=Ae.call(_),Ae=0;!(oe=_.next()).done;)oe=oe.value,be=Ee+R(oe,Ae++),ae+=q(oe,J,ue,be,pe);else if(be==="object"){if(typeof _.then=="function")return q(F(_),J,ue,oe,pe);throw J=String(_),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return ae}function D(_,J,ue){if(_==null)return _;var oe=[],pe=0;return q(_,oe,"","",function(be){return J.call(ue,be,pe++)}),oe}function I(_){if(_._status===-1){var J=_._result;J=J(),J.then(function(ue){(_._status===0||_._status===-1)&&(_._status=1,_._result=ue)},function(ue){(_._status===0||_._status===-1)&&(_._status=2,_._result=ue)}),_._status===-1&&(_._status=0,_._result=J)}if(_._status===1)return _._result.default;throw _._result}var H=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(J))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)};function W(){}return We.Children={map:D,forEach:function(_,J,ue){D(_,function(){J.apply(this,arguments)},ue)},count:function(_){var J=0;return D(_,function(){J++}),J},toArray:function(_){return D(_,function(J){return J})||[]},only:function(_){if(!V(_))throw Error("React.Children.only expected to receive a single React element child.");return _}},We.Component=T,We.Fragment=a,We.Profiler=s,We.PureComponent=j,We.StrictMode=o,We.Suspense=h,We.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,We.__COMPILER_RUNTIME={__proto__:null,c:function(_){return A.H.useMemoCache(_)}},We.cache=function(_){return function(){return _.apply(null,arguments)}},We.cloneElement=function(_,J,ue){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var oe=S({},_.props),pe=_.key,be=void 0;if(J!=null)for(ae in J.ref!==void 0&&(be=void 0),J.key!==void 0&&(pe=""+J.key),J)!z.call(J,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&J.ref===void 0||(oe[ae]=J[ae]);var ae=arguments.length-2;if(ae===1)oe.children=ue;else if(1<ae){for(var Ee=Array(ae),Ae=0;Ae<ae;Ae++)Ee[Ae]=arguments[Ae+2];oe.children=Ee}return L(_.type,pe,void 0,void 0,be,oe)},We.createContext=function(_){return _={$$typeof:u,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:c,_context:_},_},We.createElement=function(_,J,ue){var oe,pe={},be=null;if(J!=null)for(oe in J.key!==void 0&&(be=""+J.key),J)z.call(J,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(pe[oe]=J[oe]);var ae=arguments.length-2;if(ae===1)pe.children=ue;else if(1<ae){for(var Ee=Array(ae),Ae=0;Ae<ae;Ae++)Ee[Ae]=arguments[Ae+2];pe.children=Ee}if(_&&_.defaultProps)for(oe in ae=_.defaultProps,ae)pe[oe]===void 0&&(pe[oe]=ae[oe]);return L(_,be,void 0,void 0,null,pe)},We.createRef=function(){return{current:null}},We.forwardRef=function(_){return{$$typeof:d,render:_}},We.isValidElement=V,We.lazy=function(_){return{$$typeof:y,_payload:{_status:-1,_result:_},_init:I}},We.memo=function(_,J){return{$$typeof:g,type:_,compare:J===void 0?null:J}},We.startTransition=function(_){var J=A.T,ue={};A.T=ue;try{var oe=_(),pe=A.S;pe!==null&&pe(ue,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(W,H)}catch(be){H(be)}finally{A.T=J}},We.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},We.use=function(_){return A.H.use(_)},We.useActionState=function(_,J,ue){return A.H.useActionState(_,J,ue)},We.useCallback=function(_,J){return A.H.useCallback(_,J)},We.useContext=function(_){return A.H.useContext(_)},We.useDebugValue=function(){},We.useDeferredValue=function(_,J){return A.H.useDeferredValue(_,J)},We.useEffect=function(_,J,ue){var oe=A.H;if(typeof ue=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return oe.useEffect(_,J)},We.useId=function(){return A.H.useId()},We.useImperativeHandle=function(_,J,ue){return A.H.useImperativeHandle(_,J,ue)},We.useInsertionEffect=function(_,J){return A.H.useInsertionEffect(_,J)},We.useLayoutEffect=function(_,J){return A.H.useLayoutEffect(_,J)},We.useMemo=function(_,J){return A.H.useMemo(_,J)},We.useOptimistic=function(_,J){return A.H.useOptimistic(_,J)},We.useReducer=function(_,J,ue){return A.H.useReducer(_,J,ue)},We.useRef=function(_){return A.H.useRef(_)},We.useState=function(_){return A.H.useState(_)},We.useSyncExternalStore=function(_,J,ue){return A.H.useSyncExternalStore(_,J,ue)},We.useTransition=function(){return A.H.useTransition()},We.version="19.1.0",We}var j0;function Nh(){return j0||(j0=1,lp.exports=P5()),lp.exports}var v=Nh();const we=Oh(v),Gp=z5({__proto__:null,default:we},[v]);var cp={exports:{}},Ds={},up={exports:{}},dp={};/**
 * @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 M0;function $5(){return M0||(M0=1,function(e){function n(D,I){var H=D.length;D.push(I);e:for(;0<H;){var W=H-1>>>1,_=D[W];if(0<s(_,I))D[W]=I,D[H]=_,H=W;else break e}}function a(D){return D.length===0?null:D[0]}function o(D){if(D.length===0)return null;var I=D[0],H=D.pop();if(H!==I){D[0]=H;e:for(var W=0,_=D.length,J=_>>>1;W<J;){var ue=2*(W+1)-1,oe=D[ue],pe=ue+1,be=D[pe];if(0>s(oe,H))pe<_&&0>s(be,oe)?(D[W]=be,D[pe]=H,W=pe):(D[W]=oe,D[ue]=H,W=ue);else if(pe<_&&0>s(be,H))D[W]=be,D[pe]=H,W=pe;else break e}}return I}function s(D,I){var H=D.sortIndex-I.sortIndex;return H!==0?H:D.id-I.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var h=[],g=[],y=1,b=null,x=3,E=!1,S=!1,w=!1,T=!1,M=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function N(D){for(var I=a(g);I!==null;){if(I.callback===null)o(g);else if(I.startTime<=D)o(g),I.sortIndex=I.expirationTime,n(h,I);else break;I=a(g)}}function A(D){if(w=!1,N(D),!S)if(a(h)!==null)S=!0,z||(z=!0,R());else{var I=a(g);I!==null&&q(A,I.startTime-D)}}var z=!1,L=-1,B=5,V=-1;function X(){return T?!0:!(e.unstable_now()-V<B)}function Z(){if(T=!1,z){var D=e.unstable_now();V=D;var I=!0;try{e:{S=!1,w&&(w=!1,j(L),L=-1),E=!0;var H=x;try{t:{for(N(D),b=a(h);b!==null&&!(b.expirationTime>D&&X());){var W=b.callback;if(typeof W=="function"){b.callback=null,x=b.priorityLevel;var _=W(b.expirationTime<=D);if(D=e.unstable_now(),typeof _=="function"){b.callback=_,N(D),I=!0;break t}b===a(h)&&o(h),N(D)}else o(h);b=a(h)}if(b!==null)I=!0;else{var J=a(g);J!==null&&q(A,J.startTime-D),I=!1}}break e}finally{b=null,x=H,E=!1}I=void 0}}finally{I?R():z=!1}}}var R;if(typeof O=="function")R=function(){O(Z)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,F=G.port2;G.port1.onmessage=Z,R=function(){F.postMessage(null)}}else R=function(){M(Z,0)};function q(D,I){L=M(function(){D(e.unstable_now())},I)}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(D){D.callback=null},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(D){switch(x){case 1:case 2:case 3:var I=3;break;default:I=x}var H=x;x=I;try{return D()}finally{x=H}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(D,I){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var H=x;x=D;try{return I()}finally{x=H}},e.unstable_scheduleCallback=function(D,I,H){var W=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?W+H:W):H=W,D){case 1:var _=-1;break;case 2:_=250;break;case 5:_=1073741823;break;case 4:_=1e4;break;default:_=5e3}return _=H+_,D={id:y++,callback:I,priorityLevel:D,startTime:H,expirationTime:_,sortIndex:-1},H>W?(D.sortIndex=H,n(g,D),a(h)===null&&D===a(g)&&(w?(j(L),L=-1):w=!0,q(A,H-W))):(D.sortIndex=_,n(h,D),S||E||(S=!0,z||(z=!0,R()))),D},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(D){var I=x;return function(){var H=x;x=I;try{return D.apply(this,arguments)}finally{x=H}}}}(dp)),dp}var k0;function B5(){return k0||(k0=1,up.exports=$5()),up.exports}var fp={exports:{}},un={};/**
 * @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 O0;function I5(){if(O0)return un;O0=1;var e=Nh();function n(h){var g="https://react.dev/errors/"+h;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var o={d:{f:a,r:function(){throw Error(n(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(h,g,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:b==null?null:""+b,children:h,containerInfo:g,implementation:y}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,g){if(h==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return un.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,un.createPortal=function(h,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(n(299));return c(h,g,null,y)},un.flushSync=function(h){var g=u.T,y=o.p;try{if(u.T=null,o.p=2,h)return h()}finally{u.T=g,o.p=y,o.d.f()}},un.preconnect=function(h,g){typeof h=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(h,g))},un.prefetchDNS=function(h){typeof h=="string"&&o.d.D(h)},un.preinit=function(h,g){if(typeof h=="string"&&g&&typeof g.as=="string"){var y=g.as,b=d(y,g.crossOrigin),x=typeof g.integrity=="string"?g.integrity:void 0,E=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?o.d.S(h,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:x,fetchPriority:E}):y==="script"&&o.d.X(h,{crossOrigin:b,integrity:x,fetchPriority:E,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},un.preinitModule=function(h,g){if(typeof h=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=d(g.as,g.crossOrigin);o.d.M(h,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&o.d.M(h)},un.preload=function(h,g){if(typeof h=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,b=d(y,g.crossOrigin);o.d.L(h,y,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},un.preloadModule=function(h,g){if(typeof h=="string")if(g){var y=d(g.as,g.crossOrigin);o.d.m(h,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else o.d.m(h)},un.requestFormReset=function(h){o.d.r(h)},un.unstable_batchedUpdates=function(h,g){return h(g)},un.useFormState=function(h,g,y){return u.H.useFormState(h,g,y)},un.useFormStatus=function(){return u.H.useHostTransitionStatus()},un.version="19.1.0",un}var N0;function $x(){if(N0)return fp.exports;N0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),fp.exports=I5(),fp.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 _0;function F5(){if(_0)return Ds;_0=1;var e=B5(),n=Nh(),a=$x();function o(t){var r="https://react.dev/errors/"+t;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)r+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function c(t){var r=t,i=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(i=r.return),t=r.return;while(t)}return r.tag===3?i:null}function u(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function d(t){if(c(t)!==t)throw Error(o(188))}function h(t){var r=t.alternate;if(!r){if(r=c(t),r===null)throw Error(o(188));return r!==t?null:t}for(var i=t,l=r;;){var f=i.return;if(f===null)break;var m=f.alternate;if(m===null){if(l=f.return,l!==null){i=l;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===i)return d(f),t;if(m===l)return d(f),r;m=m.sibling}throw Error(o(188))}if(i.return!==l.return)i=f,l=m;else{for(var C=!1,k=f.child;k;){if(k===i){C=!0,i=f,l=m;break}if(k===l){C=!0,l=f,i=m;break}k=k.sibling}if(!C){for(k=m.child;k;){if(k===i){C=!0,i=m,l=f;break}if(k===l){C=!0,l=m,i=f;break}k=k.sibling}if(!C)throw Error(o(189))}}if(i.alternate!==l)throw Error(o(190))}if(i.tag!==3)throw Error(o(188));return i.stateNode.current===i?t:r}function g(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=g(t),r!==null)return r;t=t.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),j=Symbol.for("react.consumer"),O=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),X=Symbol.for("react.memo_cache_sentinel"),Z=Symbol.iterator;function R(t){return t===null||typeof t!="object"?null:(t=Z&&t[Z]||t["@@iterator"],typeof t=="function"?t:null)}var G=Symbol.for("react.client.reference");function F(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===G?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case S:return"Fragment";case T:return"Profiler";case w:return"StrictMode";case A:return"Suspense";case z:return"SuspenseList";case V:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case E:return"Portal";case O:return(t.displayName||"Context")+".Provider";case j:return(t._context.displayName||"Context")+".Consumer";case N:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case L:return r=t.displayName||null,r!==null?r:F(t.type)||"Memo";case B:r=t._payload,t=t._init;try{return F(t(r))}catch{}}return null}var q=Array.isArray,D=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H={pending:!1,data:null,method:null,action:null},W=[],_=-1;function J(t){return{current:t}}function ue(t){0>_||(t.current=W[_],W[_]=null,_--)}function oe(t,r){_++,W[_]=t.current,t.current=r}var pe=J(null),be=J(null),ae=J(null),Ee=J(null);function Ae(t,r){switch(oe(ae,r),oe(be,t),oe(pe,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?Jb(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=Jb(r),t=e0(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}ue(pe),oe(pe,t)}function Ie(){ue(pe),ue(be),ue(ae)}function je(t){t.memoizedState!==null&&oe(Ee,t);var r=pe.current,i=e0(r,t.type);r!==i&&(oe(be,t),oe(pe,i))}function Ue(t){be.current===t&&(ue(pe),ue(be)),Ee.current===t&&(ue(Ee),Ms._currentValue=H)}var Ge=Object.prototype.hasOwnProperty,Ye=e.unstable_scheduleCallback,De=e.unstable_cancelCallback,nt=e.unstable_shouldYield,Yt=e.unstable_requestPaint,it=e.unstable_now,wt=e.unstable_getCurrentPriorityLevel,mt=e.unstable_ImmediatePriority,$=e.unstable_UserBlockingPriority,Y=e.unstable_NormalPriority,K=e.unstable_LowPriority,ve=e.unstable_IdlePriority,ge=e.log,ye=e.unstable_setDisableYieldValue,Se=null,Re=null;function Le(t){if(typeof ge=="function"&&ye(t),Re&&typeof Re.setStrictMode=="function")try{Re.setStrictMode(Se,t)}catch{}}var Ve=Math.clz32?Math.clz32:yr,Ft=Math.log,Xe=Math.LN2;function yr(t){return t>>>=0,t===0?32:31-(Ft(t)/Xe|0)|0}var Mn=256,sr=4194304;function Me(t){var r=t&42;if(r!==0)return r;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:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;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 at(t,r,i){var l=t.pendingLanes;if(l===0)return 0;var f=0,m=t.suspendedLanes,C=t.pingedLanes;t=t.warmLanes;var k=l&134217727;return k!==0?(l=k&~m,l!==0?f=Me(l):(C&=k,C!==0?f=Me(C):i||(i=k&~t,i!==0&&(f=Me(i))))):(k=l&~m,k!==0?f=Me(k):C!==0?f=Me(C):i||(i=l&~t,i!==0&&(f=Me(i)))),f===0?0:r!==0&&r!==f&&(r&m)===0&&(m=f&-f,i=r&-r,m>=i||m===32&&(i&4194048)!==0)?r:f}function Et(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function lr(t,r){switch(t){case 1:case 2:case 4:case 8:case 64:return r+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 r+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 $i(){var t=Mn;return Mn<<=1,(Mn&4194048)===0&&(Mn=256),t}function Pm(){var t=sr;return sr<<=1,(sr&62914560)===0&&(sr=4194304),t}function Ku(t){for(var r=[],i=0;31>i;i++)r.push(t);return r}function Bi(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function C2(t,r,i,l,f,m){var C=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var k=t.entanglements,P=t.expirationTimes,te=t.hiddenUpdates;for(i=C&~i;0<i;){var ce=31-Ve(i),me=1<<ce;k[ce]=0,P[ce]=-1;var ne=te[ce];if(ne!==null)for(te[ce]=null,ce=0;ce<ne.length;ce++){var re=ne[ce];re!==null&&(re.lane&=-536870913)}i&=~me}l!==0&&$m(t,l,0),m!==0&&f===0&&t.tag!==0&&(t.suspendedLanes|=m&~(C&~r))}function $m(t,r,i){t.pendingLanes|=r,t.suspendedLanes&=~r;var l=31-Ve(r);t.entangledLanes|=r,t.entanglements[l]=t.entanglements[l]|1073741824|i&4194090}function Bm(t,r){var i=t.entangledLanes|=r;for(t=t.entanglements;i;){var l=31-Ve(i),f=1<<l;f&r|t[l]&r&&(t[l]|=r),i&=~f}}function Qu(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 Xu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Im(){var t=I.p;return t!==0?t:(t=window.event,t===void 0?32:v0(t.type))}function w2(t,r){var i=I.p;try{return I.p=t,r()}finally{I.p=i}}var la=Math.random().toString(36).slice(2),ln="__reactFiber$"+la,vn="__reactProps$"+la,Ro="__reactContainer$"+la,Zu="__reactEvents$"+la,E2="__reactListeners$"+la,R2="__reactHandles$"+la,Fm="__reactResources$"+la,Ii="__reactMarker$"+la;function Ju(t){delete t[ln],delete t[vn],delete t[Zu],delete t[E2],delete t[R2]}function To(t){var r=t[ln];if(r)return r;for(var i=t.parentNode;i;){if(r=i[Ro]||i[ln]){if(i=r.alternate,r.child!==null||i!==null&&i.child!==null)for(t=a0(t);t!==null;){if(i=t[ln])return i;t=a0(t)}return r}t=i,i=t.parentNode}return null}function Ao(t){if(t=t[ln]||t[Ro]){var r=t.tag;if(r===5||r===6||r===13||r===26||r===27||r===3)return t}return null}function Fi(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(o(33))}function jo(t){var r=t[Fm];return r||(r=t[Fm]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Zt(t){t[Ii]=!0}var Um=new Set,Hm={};function Ha(t,r){Mo(t,r),Mo(t+"Capture",r)}function Mo(t,r){for(Hm[t]=r,t=0;t<r.length;t++)Um.add(r[t])}var T2=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]*$"),Vm={},qm={};function A2(t){return Ge.call(qm,t)?!0:Ge.call(Vm,t)?!1:T2.test(t)?qm[t]=!0:(Vm[t]=!0,!1)}function wl(t,r,i){if(A2(r))if(i===null)t.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(r);return;case"boolean":var l=r.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(r);return}}t.setAttribute(r,""+i)}}function El(t,r,i){if(i===null)t.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}t.setAttribute(r,""+i)}}function Lr(t,r,i,l){if(l===null)t.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(r,i,""+l)}}var ed,Gm;function ko(t){if(ed===void 0)try{throw Error()}catch(i){var r=i.stack.trim().match(/\n( *(at )?)/);ed=r&&r[1]||"",Gm=-1<i.stack.indexOf(`
    at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ed+t+Gm}var td=!1;function nd(t,r){if(!t||td)return"";td=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(r){var me=function(){throw Error()};if(Object.defineProperty(me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(me,[])}catch(re){var ne=re}Reflect.construct(t,[],me)}else{try{me.call()}catch(re){ne=re}t.call(me.prototype)}}else{try{throw Error()}catch(re){ne=re}(me=t())&&typeof me.catch=="function"&&me.catch(function(){})}}catch(re){if(re&&ne&&typeof re.stack=="string")return[re.stack,ne.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=l.DetermineComponentFrameRoot(),C=m[0],k=m[1];if(C&&k){var P=C.split(`
`),te=k.split(`
`);for(f=l=0;l<P.length&&!P[l].includes("DetermineComponentFrameRoot");)l++;for(;f<te.length&&!te[f].includes("DetermineComponentFrameRoot");)f++;if(l===P.length||f===te.length)for(l=P.length-1,f=te.length-1;1<=l&&0<=f&&P[l]!==te[f];)f--;for(;1<=l&&0<=f;l--,f--)if(P[l]!==te[f]){if(l!==1||f!==1)do if(l--,f--,0>f||P[l]!==te[f]){var ce=`
`+P[l].replace(" at new "," at ");return t.displayName&&ce.includes("<anonymous>")&&(ce=ce.replace("<anonymous>",t.displayName)),ce}while(1<=l&&0<=f);break}}}finally{td=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?ko(i):""}function j2(t){switch(t.tag){case 26:case 27:case 5:return ko(t.type);case 16:return ko("Lazy");case 13:return ko("Suspense");case 19:return ko("SuspenseList");case 0:case 15:return nd(t.type,!1);case 11:return nd(t.type.render,!1);case 1:return nd(t.type,!0);case 31:return ko("Activity");default:return""}}function Wm(t){try{var r="";do r+=j2(t),t=t.return;while(t);return r}catch(i){return`
Error generating stack: `+i.message+`
`+i.stack}}function In(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Ym(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function M2(t){var r=Ym(t)?"checked":"value",i=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),l=""+t[r];if(!t.hasOwnProperty(r)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var f=i.get,m=i.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return f.call(this)},set:function(C){l=""+C,m.call(this,C)}}),Object.defineProperty(t,r,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(C){l=""+C},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function Rl(t){t._valueTracker||(t._valueTracker=M2(t))}function Km(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var i=r.getValue(),l="";return t&&(l=Ym(t)?t.checked?"true":"false":t.value),t=l,t!==i?(r.setValue(t),!0):!1}function Tl(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 k2=/[\n"\\]/g;function Fn(t){return t.replace(k2,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function rd(t,r,i,l,f,m,C,k){t.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?t.type=C:t.removeAttribute("type"),r!=null?C==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+In(r)):t.value!==""+In(r)&&(t.value=""+In(r)):C!=="submit"&&C!=="reset"||t.removeAttribute("value"),r!=null?ad(t,C,In(r)):i!=null?ad(t,C,In(i)):l!=null&&t.removeAttribute("value"),f==null&&m!=null&&(t.defaultChecked=!!m),f!=null&&(t.checked=f&&typeof f!="function"&&typeof f!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?t.name=""+In(k):t.removeAttribute("name")}function Qm(t,r,i,l,f,m,C,k){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.type=m),r!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||r!=null))return;i=i!=null?""+In(i):"",r=r!=null?""+In(r):i,k||r===t.value||(t.value=r),t.defaultValue=r}l=l??f,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=k?t.checked:!!l,t.defaultChecked=!!l,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(t.name=C)}function ad(t,r,i){r==="number"&&Tl(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function Oo(t,r,i,l){if(t=t.options,r){r={};for(var f=0;f<i.length;f++)r["$"+i[f]]=!0;for(i=0;i<t.length;i++)f=r.hasOwnProperty("$"+t[i].value),t[i].selected!==f&&(t[i].selected=f),f&&l&&(t[i].defaultSelected=!0)}else{for(i=""+In(i),r=null,f=0;f<t.length;f++){if(t[f].value===i){t[f].selected=!0,l&&(t[f].defaultSelected=!0);return}r!==null||t[f].disabled||(r=t[f])}r!==null&&(r.selected=!0)}}function Xm(t,r,i){if(r!=null&&(r=""+In(r),r!==t.value&&(t.value=r),i==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=i!=null?""+In(i):""}function Zm(t,r,i,l){if(r==null){if(l!=null){if(i!=null)throw Error(o(92));if(q(l)){if(1<l.length)throw Error(o(93));l=l[0]}i=l}i==null&&(i=""),r=i}i=In(r),t.defaultValue=i,l=t.textContent,l===i&&l!==""&&l!==null&&(t.value=l)}function No(t,r){if(r){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=r;return}}t.textContent=r}var O2=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 Jm(t,r,i){var l=r.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="":l?t.setProperty(r,i):typeof i!="number"||i===0||O2.has(r)?r==="float"?t.cssFloat=i:t[r]=(""+i).trim():t[r]=i+"px"}function eg(t,r,i){if(r!=null&&typeof r!="object")throw Error(o(62));if(t=t.style,i!=null){for(var l in i)!i.hasOwnProperty(l)||r!=null&&r.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var f in r)l=r[f],r.hasOwnProperty(f)&&i[f]!==l&&Jm(t,f,l)}else for(var m in r)r.hasOwnProperty(m)&&Jm(t,m,r[m])}function od(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 N2=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"]]),_2=/^[\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 Al(t){return _2.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var id=null;function sd(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var _o=null,zo=null;function tg(t){var r=Ao(t);if(r&&(t=r.stateNode)){var i=t[vn]||null;e:switch(t=r.stateNode,r.type){case"input":if(rd(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),r=i.name,i.type==="radio"&&r!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Fn(""+r)+'"][type="radio"]'),r=0;r<i.length;r++){var l=i[r];if(l!==t&&l.form===t.form){var f=l[vn]||null;if(!f)throw Error(o(90));rd(l,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(r=0;r<i.length;r++)l=i[r],l.form===t.form&&Km(l)}break e;case"textarea":Xm(t,i.value,i.defaultValue);break e;case"select":r=i.value,r!=null&&Oo(t,!!i.multiple,r,!1)}}}var ld=!1;function ng(t,r,i){if(ld)return t(r,i);ld=!0;try{var l=t(r);return l}finally{if(ld=!1,(_o!==null||zo!==null)&&(fc(),_o&&(r=_o,t=zo,zo=_o=null,tg(r),t)))for(r=0;r<t.length;r++)tg(t[r])}}function Ui(t,r){var i=t.stateNode;if(i===null)return null;var l=i[vn]||null;if(l===null)return null;i=l[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(o(231,r,typeof i));return i}var Pr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cd=!1;if(Pr)try{var Hi={};Object.defineProperty(Hi,"passive",{get:function(){cd=!0}}),window.addEventListener("test",Hi,Hi),window.removeEventListener("test",Hi,Hi)}catch{cd=!1}var ca=null,ud=null,jl=null;function rg(){if(jl)return jl;var t,r=ud,i=r.length,l,f="value"in ca?ca.value:ca.textContent,m=f.length;for(t=0;t<i&&r[t]===f[t];t++);var C=i-t;for(l=1;l<=C&&r[i-l]===f[m-l];l++);return jl=f.slice(t,1<l?1-l:void 0)}function Ml(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function kl(){return!0}function ag(){return!1}function xn(t){function r(i,l,f,m,C){this._reactName=i,this._targetInst=f,this.type=l,this.nativeEvent=m,this.target=C,this.currentTarget=null;for(var k in t)t.hasOwnProperty(k)&&(i=t[k],this[k]=i?i(m):m[k]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?kl:ag,this.isPropagationStopped=ag,this}return y(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=kl)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=kl)},persist:function(){},isPersistent:kl}),r}var Va={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ol=xn(Va),Vi=y({},Va,{view:0,detail:0}),z2=xn(Vi),dd,fd,qi,Nl=y({},Vi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hd,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!==qi&&(qi&&t.type==="mousemove"?(dd=t.screenX-qi.screenX,fd=t.screenY-qi.screenY):fd=dd=0,qi=t),dd)},movementY:function(t){return"movementY"in t?t.movementY:fd}}),og=xn(Nl),D2=y({},Nl,{dataTransfer:0}),L2=xn(D2),P2=y({},Vi,{relatedTarget:0}),pd=xn(P2),$2=y({},Va,{animationName:0,elapsedTime:0,pseudoElement:0}),B2=xn($2),I2=y({},Va,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),F2=xn(I2),U2=y({},Va,{data:0}),ig=xn(U2),H2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},V2={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"},q2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function G2(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=q2[t])?!!r[t]:!1}function hd(){return G2}var W2=y({},Vi,{key:function(t){if(t.key){var r=H2[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=Ml(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?V2[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hd,charCode:function(t){return t.type==="keypress"?Ml(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ml(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Y2=xn(W2),K2=y({},Nl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sg=xn(K2),Q2=y({},Vi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hd}),X2=xn(Q2),Z2=y({},Va,{propertyName:0,elapsedTime:0,pseudoElement:0}),J2=xn(Z2),eC=y({},Nl,{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}),tC=xn(eC),nC=y({},Va,{newState:0,oldState:0}),rC=xn(nC),aC=[9,13,27,32],md=Pr&&"CompositionEvent"in window,Gi=null;Pr&&"documentMode"in document&&(Gi=document.documentMode);var oC=Pr&&"TextEvent"in window&&!Gi,lg=Pr&&(!md||Gi&&8<Gi&&11>=Gi),cg=" ",ug=!1;function dg(t,r){switch(t){case"keyup":return aC.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fg(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Do=!1;function iC(t,r){switch(t){case"compositionend":return fg(r);case"keypress":return r.which!==32?null:(ug=!0,cg);case"textInput":return t=r.data,t===cg&&ug?null:t;default:return null}}function sC(t,r){if(Do)return t==="compositionend"||!md&&dg(t,r)?(t=rg(),jl=ud=ca=null,Do=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return lg&&r.locale!=="ko"?null:r.data;default:return null}}var lC={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 pg(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!lC[t.type]:r==="textarea"}function hg(t,r,i,l){_o?zo?zo.push(l):zo=[l]:_o=l,r=bc(r,"onChange"),0<r.length&&(i=new Ol("onChange","change",null,i,l),t.push({event:i,listeners:r}))}var Wi=null,Yi=null;function cC(t){Yb(t,0)}function _l(t){var r=Fi(t);if(Km(r))return t}function mg(t,r){if(t==="change")return r}var gg=!1;if(Pr){var gd;if(Pr){var yd="oninput"in document;if(!yd){var yg=document.createElement("div");yg.setAttribute("oninput","return;"),yd=typeof yg.oninput=="function"}gd=yd}else gd=!1;gg=gd&&(!document.documentMode||9<document.documentMode)}function bg(){Wi&&(Wi.detachEvent("onpropertychange",vg),Yi=Wi=null)}function vg(t){if(t.propertyName==="value"&&_l(Yi)){var r=[];hg(r,Yi,t,sd(t)),ng(cC,r)}}function uC(t,r,i){t==="focusin"?(bg(),Wi=r,Yi=i,Wi.attachEvent("onpropertychange",vg)):t==="focusout"&&bg()}function dC(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return _l(Yi)}function fC(t,r){if(t==="click")return _l(r)}function pC(t,r){if(t==="input"||t==="change")return _l(r)}function hC(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var kn=typeof Object.is=="function"?Object.is:hC;function Ki(t,r){if(kn(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var i=Object.keys(t),l=Object.keys(r);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var f=i[l];if(!Ge.call(r,f)||!kn(t[f],r[f]))return!1}return!0}function xg(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Sg(t,r){var i=xg(t);t=0;for(var l;i;){if(i.nodeType===3){if(l=t+i.textContent.length,t<=r&&l>=r)return{node:i,offset:r-t};t=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=xg(i)}}function Cg(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?Cg(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function wg(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=Tl(t.document);r instanceof t.HTMLIFrameElement;){try{var i=typeof r.contentWindow.location.href=="string"}catch{i=!1}if(i)t=r.contentWindow;else break;r=Tl(t.document)}return r}function bd(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}var mC=Pr&&"documentMode"in document&&11>=document.documentMode,Lo=null,vd=null,Qi=null,xd=!1;function Eg(t,r,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;xd||Lo==null||Lo!==Tl(l)||(l=Lo,"selectionStart"in l&&bd(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Qi&&Ki(Qi,l)||(Qi=l,l=bc(vd,"onSelect"),0<l.length&&(r=new Ol("onSelect","select",null,r,i),t.push({event:r,listeners:l}),r.target=Lo)))}function qa(t,r){var i={};return i[t.toLowerCase()]=r.toLowerCase(),i["Webkit"+t]="webkit"+r,i["Moz"+t]="moz"+r,i}var Po={animationend:qa("Animation","AnimationEnd"),animationiteration:qa("Animation","AnimationIteration"),animationstart:qa("Animation","AnimationStart"),transitionrun:qa("Transition","TransitionRun"),transitionstart:qa("Transition","TransitionStart"),transitioncancel:qa("Transition","TransitionCancel"),transitionend:qa("Transition","TransitionEnd")},Sd={},Rg={};Pr&&(Rg=document.createElement("div").style,"AnimationEvent"in window||(delete Po.animationend.animation,delete Po.animationiteration.animation,delete Po.animationstart.animation),"TransitionEvent"in window||delete Po.transitionend.transition);function Ga(t){if(Sd[t])return Sd[t];if(!Po[t])return t;var r=Po[t],i;for(i in r)if(r.hasOwnProperty(i)&&i in Rg)return Sd[t]=r[i];return t}var Tg=Ga("animationend"),Ag=Ga("animationiteration"),jg=Ga("animationstart"),gC=Ga("transitionrun"),yC=Ga("transitionstart"),bC=Ga("transitioncancel"),Mg=Ga("transitionend"),kg=new Map,Cd="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(" ");Cd.push("scrollEnd");function cr(t,r){kg.set(t,r),Ha(r,[t])}var Og=new WeakMap;function Un(t,r){if(typeof t=="object"&&t!==null){var i=Og.get(t);return i!==void 0?i:(r={value:t,source:r,stack:Wm(r)},Og.set(t,r),r)}return{value:t,source:r,stack:Wm(r)}}var Hn=[],$o=0,wd=0;function zl(){for(var t=$o,r=wd=$o=0;r<t;){var i=Hn[r];Hn[r++]=null;var l=Hn[r];Hn[r++]=null;var f=Hn[r];Hn[r++]=null;var m=Hn[r];if(Hn[r++]=null,l!==null&&f!==null){var C=l.pending;C===null?f.next=f:(f.next=C.next,C.next=f),l.pending=f}m!==0&&Ng(i,f,m)}}function Dl(t,r,i,l){Hn[$o++]=t,Hn[$o++]=r,Hn[$o++]=i,Hn[$o++]=l,wd|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Ed(t,r,i,l){return Dl(t,r,i,l),Ll(t)}function Bo(t,r){return Dl(t,null,null,r),Ll(t)}function Ng(t,r,i){t.lanes|=i;var l=t.alternate;l!==null&&(l.lanes|=i);for(var f=!1,m=t.return;m!==null;)m.childLanes|=i,l=m.alternate,l!==null&&(l.childLanes|=i),m.tag===22&&(t=m.stateNode,t===null||t._visibility&1||(f=!0)),t=m,m=m.return;return t.tag===3?(m=t.stateNode,f&&r!==null&&(f=31-Ve(i),t=m.hiddenUpdates,l=t[f],l===null?t[f]=[r]:l.push(r),r.lane=i|536870912),m):null}function Ll(t){if(50<Ss)throw Ss=0,Of=null,Error(o(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var Io={};function vC(t,r,i,l){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function On(t,r,i,l){return new vC(t,r,i,l)}function Rd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function $r(t,r){var i=t.alternate;return i===null?(i=On(t.tag,r,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=r,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,r=t.dependencies,i.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function _g(t,r){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=r,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,r=i.dependencies,t.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),t}function Pl(t,r,i,l,f,m){var C=0;if(l=t,typeof t=="function")Rd(t)&&(C=1);else if(typeof t=="string")C=S5(t,i,pe.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case V:return t=On(31,i,r,f),t.elementType=V,t.lanes=m,t;case S:return Wa(i.children,f,m,r);case w:C=8,f|=24;break;case T:return t=On(12,i,r,f|2),t.elementType=T,t.lanes=m,t;case A:return t=On(13,i,r,f),t.elementType=A,t.lanes=m,t;case z:return t=On(19,i,r,f),t.elementType=z,t.lanes=m,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case M:case O:C=10;break e;case j:C=9;break e;case N:C=11;break e;case L:C=14;break e;case B:C=16,l=null;break e}C=29,i=Error(o(130,t===null?"null":typeof t,"")),l=null}return r=On(C,i,r,f),r.elementType=t,r.type=l,r.lanes=m,r}function Wa(t,r,i,l){return t=On(7,t,l,r),t.lanes=i,t}function Td(t,r,i){return t=On(6,t,null,r),t.lanes=i,t}function Ad(t,r,i){return r=On(4,t.children!==null?t.children:[],t.key,r),r.lanes=i,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}var Fo=[],Uo=0,$l=null,Bl=0,Vn=[],qn=0,Ya=null,Br=1,Ir="";function Ka(t,r){Fo[Uo++]=Bl,Fo[Uo++]=$l,$l=t,Bl=r}function zg(t,r,i){Vn[qn++]=Br,Vn[qn++]=Ir,Vn[qn++]=Ya,Ya=t;var l=Br;t=Ir;var f=32-Ve(l)-1;l&=~(1<<f),i+=1;var m=32-Ve(r)+f;if(30<m){var C=f-f%5;m=(l&(1<<C)-1).toString(32),l>>=C,f-=C,Br=1<<32-Ve(r)+f|i<<f|l,Ir=m+t}else Br=1<<m|i<<f|l,Ir=t}function jd(t){t.return!==null&&(Ka(t,1),zg(t,1,0))}function Md(t){for(;t===$l;)$l=Fo[--Uo],Fo[Uo]=null,Bl=Fo[--Uo],Fo[Uo]=null;for(;t===Ya;)Ya=Vn[--qn],Vn[qn]=null,Ir=Vn[--qn],Vn[qn]=null,Br=Vn[--qn],Vn[qn]=null}var mn=null,Nt=null,st=!1,Qa=null,br=!1,kd=Error(o(519));function Xa(t){var r=Error(o(418,""));throw Ji(Un(r,t)),kd}function Dg(t){var r=t.stateNode,i=t.type,l=t.memoizedProps;switch(r[ln]=t,r[vn]=l,i){case"dialog":Je("cancel",r),Je("close",r);break;case"iframe":case"object":case"embed":Je("load",r);break;case"video":case"audio":for(i=0;i<ws.length;i++)Je(ws[i],r);break;case"source":Je("error",r);break;case"img":case"image":case"link":Je("error",r),Je("load",r);break;case"details":Je("toggle",r);break;case"input":Je("invalid",r),Qm(r,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),Rl(r);break;case"select":Je("invalid",r);break;case"textarea":Je("invalid",r),Zm(r,l.value,l.defaultValue,l.children),Rl(r)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||r.textContent===""+i||l.suppressHydrationWarning===!0||Zb(r.textContent,i)?(l.popover!=null&&(Je("beforetoggle",r),Je("toggle",r)),l.onScroll!=null&&Je("scroll",r),l.onScrollEnd!=null&&Je("scrollend",r),l.onClick!=null&&(r.onclick=vc),r=!0):r=!1,r||Xa(t)}function Lg(t){for(mn=t.return;mn;)switch(mn.tag){case 5:case 13:br=!1;return;case 27:case 3:br=!0;return;default:mn=mn.return}}function Xi(t){if(t!==mn)return!1;if(!st)return Lg(t),st=!0,!1;var r=t.tag,i;if((i=r!==3&&r!==27)&&((i=r===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||Wf(t.type,t.memoizedProps)),i=!i),i&&Nt&&Xa(t),Lg(t),r===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));e:{for(t=t.nextSibling,r=0;t;){if(t.nodeType===8)if(i=t.data,i==="/$"){if(r===0){Nt=dr(t.nextSibling);break e}r--}else i!=="$"&&i!=="$!"&&i!=="$?"||r++;t=t.nextSibling}Nt=null}}else r===27?(r=Nt,Ra(t.type)?(t=Xf,Xf=null,Nt=t):Nt=r):Nt=mn?dr(t.stateNode.nextSibling):null;return!0}function Zi(){Nt=mn=null,st=!1}function Pg(){var t=Qa;return t!==null&&(wn===null?wn=t:wn.push.apply(wn,t),Qa=null),t}function Ji(t){Qa===null?Qa=[t]:Qa.push(t)}var Od=J(null),Za=null,Fr=null;function ua(t,r,i){oe(Od,r._currentValue),r._currentValue=i}function Ur(t){t._currentValue=Od.current,ue(Od)}function Nd(t,r,i){for(;t!==null;){var l=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,l!==null&&(l.childLanes|=r)):l!==null&&(l.childLanes&r)!==r&&(l.childLanes|=r),t===i)break;t=t.return}}function _d(t,r,i,l){var f=t.child;for(f!==null&&(f.return=t);f!==null;){var m=f.dependencies;if(m!==null){var C=f.child;m=m.firstContext;e:for(;m!==null;){var k=m;m=f;for(var P=0;P<r.length;P++)if(k.context===r[P]){m.lanes|=i,k=m.alternate,k!==null&&(k.lanes|=i),Nd(m.return,i,t),l||(C=null);break e}m=k.next}}else if(f.tag===18){if(C=f.return,C===null)throw Error(o(341));C.lanes|=i,m=C.alternate,m!==null&&(m.lanes|=i),Nd(C,i,t),C=null}else C=f.child;if(C!==null)C.return=f;else for(C=f;C!==null;){if(C===t){C=null;break}if(f=C.sibling,f!==null){f.return=C.return,C=f;break}C=C.return}f=C}}function es(t,r,i,l){t=null;for(var f=r,m=!1;f!==null;){if(!m){if((f.flags&524288)!==0)m=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var C=f.alternate;if(C===null)throw Error(o(387));if(C=C.memoizedProps,C!==null){var k=f.type;kn(f.pendingProps.value,C.value)||(t!==null?t.push(k):t=[k])}}else if(f===Ee.current){if(C=f.alternate,C===null)throw Error(o(387));C.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(t!==null?t.push(Ms):t=[Ms])}f=f.return}t!==null&&_d(r,t,i,l),r.flags|=262144}function Il(t){for(t=t.firstContext;t!==null;){if(!kn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ja(t){Za=t,Fr=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function cn(t){return $g(Za,t)}function Fl(t,r){return Za===null&&Ja(t),$g(t,r)}function $g(t,r){var i=r._currentValue;if(r={context:r,memoizedValue:i,next:null},Fr===null){if(t===null)throw Error(o(308));Fr=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else Fr=Fr.next=r;return i}var xC=typeof AbortController<"u"?AbortController:function(){var t=[],r=this.signal={aborted:!1,addEventListener:function(i,l){t.push(l)}};this.abort=function(){r.aborted=!0,t.forEach(function(i){return i()})}},SC=e.unstable_scheduleCallback,CC=e.unstable_NormalPriority,Kt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zd(){return{controller:new xC,data:new Map,refCount:0}}function ts(t){t.refCount--,t.refCount===0&&SC(CC,function(){t.controller.abort()})}var ns=null,Dd=0,Ho=0,Vo=null;function wC(t,r){if(ns===null){var i=ns=[];Dd=0,Ho=$f(),Vo={status:"pending",value:void 0,then:function(l){i.push(l)}}}return Dd++,r.then(Bg,Bg),r}function Bg(){if(--Dd===0&&ns!==null){Vo!==null&&(Vo.status="fulfilled");var t=ns;ns=null,Ho=0,Vo=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function EC(t,r){var i=[],l={status:"pending",value:null,reason:null,then:function(f){i.push(f)}};return t.then(function(){l.status="fulfilled",l.value=r;for(var f=0;f<i.length;f++)(0,i[f])(r)},function(f){for(l.status="rejected",l.reason=f,f=0;f<i.length;f++)(0,i[f])(void 0)}),l}var Ig=D.S;D.S=function(t,r){typeof r=="object"&&r!==null&&typeof r.then=="function"&&wC(t,r),Ig!==null&&Ig(t,r)};var eo=J(null);function Ld(){var t=eo.current;return t!==null?t:Ct.pooledCache}function Ul(t,r){r===null?oe(eo,eo.current):oe(eo,r.pool)}function Fg(){var t=Ld();return t===null?null:{parent:Kt._currentValue,pool:t}}var rs=Error(o(460)),Ug=Error(o(474)),Hl=Error(o(542)),Pd={then:function(){}};function Hg(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Vl(){}function Vg(t,r,i){switch(i=t[i],i===void 0?t.push(r):i!==r&&(r.then(Vl,Vl),r=i),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,Gg(t),t;default:if(typeof r.status=="string")r.then(Vl,Vl);else{if(t=Ct,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=r,t.status="pending",t.then(function(l){if(r.status==="pending"){var f=r;f.status="fulfilled",f.value=l}},function(l){if(r.status==="pending"){var f=r;f.status="rejected",f.reason=l}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,Gg(t),t}throw as=r,rs}}var as=null;function qg(){if(as===null)throw Error(o(459));var t=as;return as=null,t}function Gg(t){if(t===rs||t===Hl)throw Error(o(483))}var da=!1;function $d(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Bd(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function fa(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function pa(t,r,i){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(dt&2)!==0){var f=l.pending;return f===null?r.next=r:(r.next=f.next,f.next=r),l.pending=r,r=Ll(t),Ng(t,null,i),r}return Dl(t,l,r,i),Ll(t)}function os(t,r,i){if(r=r.updateQueue,r!==null&&(r=r.shared,(i&4194048)!==0)){var l=r.lanes;l&=t.pendingLanes,i|=l,r.lanes=i,Bm(t,i)}}function Id(t,r){var i=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var f=null,m=null;if(i=i.firstBaseUpdate,i!==null){do{var C={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};m===null?f=m=C:m=m.next=C,i=i.next}while(i!==null);m===null?f=m=r:m=m.next=r}else f=m=r;i={baseState:l.baseState,firstBaseUpdate:f,lastBaseUpdate:m,shared:l.shared,callbacks:l.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=r:t.next=r,i.lastBaseUpdate=r}var Fd=!1;function is(){if(Fd){var t=Vo;if(t!==null)throw t}}function ss(t,r,i,l){Fd=!1;var f=t.updateQueue;da=!1;var m=f.firstBaseUpdate,C=f.lastBaseUpdate,k=f.shared.pending;if(k!==null){f.shared.pending=null;var P=k,te=P.next;P.next=null,C===null?m=te:C.next=te,C=P;var ce=t.alternate;ce!==null&&(ce=ce.updateQueue,k=ce.lastBaseUpdate,k!==C&&(k===null?ce.firstBaseUpdate=te:k.next=te,ce.lastBaseUpdate=P))}if(m!==null){var me=f.baseState;C=0,ce=te=P=null,k=m;do{var ne=k.lane&-536870913,re=ne!==k.lane;if(re?(rt&ne)===ne:(l&ne)===ne){ne!==0&&ne===Ho&&(Fd=!0),ce!==null&&(ce=ce.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var Fe=t,Pe=k;ne=r;var bt=i;switch(Pe.tag){case 1:if(Fe=Pe.payload,typeof Fe=="function"){me=Fe.call(bt,me,ne);break e}me=Fe;break e;case 3:Fe.flags=Fe.flags&-65537|128;case 0:if(Fe=Pe.payload,ne=typeof Fe=="function"?Fe.call(bt,me,ne):Fe,ne==null)break e;me=y({},me,ne);break e;case 2:da=!0}}ne=k.callback,ne!==null&&(t.flags|=64,re&&(t.flags|=8192),re=f.callbacks,re===null?f.callbacks=[ne]:re.push(ne))}else re={lane:ne,tag:k.tag,payload:k.payload,callback:k.callback,next:null},ce===null?(te=ce=re,P=me):ce=ce.next=re,C|=ne;if(k=k.next,k===null){if(k=f.shared.pending,k===null)break;re=k,k=re.next,re.next=null,f.lastBaseUpdate=re,f.shared.pending=null}}while(!0);ce===null&&(P=me),f.baseState=P,f.firstBaseUpdate=te,f.lastBaseUpdate=ce,m===null&&(f.shared.lanes=0),Sa|=C,t.lanes=C,t.memoizedState=me}}function Wg(t,r){if(typeof t!="function")throw Error(o(191,t));t.call(r)}function Yg(t,r){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)Wg(i[t],r)}var qo=J(null),ql=J(0);function Kg(t,r){t=Kr,oe(ql,t),oe(qo,r),Kr=t|r.baseLanes}function Ud(){oe(ql,Kr),oe(qo,qo.current)}function Hd(){Kr=ql.current,ue(qo),ue(ql)}var ha=0,Ke=null,gt=null,Ut=null,Gl=!1,Go=!1,to=!1,Wl=0,ls=0,Wo=null,RC=0;function Lt(){throw Error(o(321))}function Vd(t,r){if(r===null)return!1;for(var i=0;i<r.length&&i<t.length;i++)if(!kn(t[i],r[i]))return!1;return!0}function qd(t,r,i,l,f,m){return ha=m,Ke=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,D.H=t===null||t.memoizedState===null?Ny:_y,to=!1,m=i(l,f),to=!1,Go&&(m=Xg(r,i,l,f)),Qg(t),m}function Qg(t){D.H=Jl;var r=gt!==null&&gt.next!==null;if(ha=0,Ut=gt=Ke=null,Gl=!1,ls=0,Wo=null,r)throw Error(o(300));t===null||Jt||(t=t.dependencies,t!==null&&Il(t)&&(Jt=!0))}function Xg(t,r,i,l){Ke=t;var f=0;do{if(Go&&(Wo=null),ls=0,Go=!1,25<=f)throw Error(o(301));if(f+=1,Ut=gt=null,t.updateQueue!=null){var m=t.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}D.H=NC,m=r(i,l)}while(Go);return m}function TC(){var t=D.H,r=t.useState()[0];return r=typeof r.then=="function"?cs(r):r,t=t.useState()[0],(gt!==null?gt.memoizedState:null)!==t&&(Ke.flags|=1024),r}function Gd(){var t=Wl!==0;return Wl=0,t}function Wd(t,r,i){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~i}function Yd(t){if(Gl){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}Gl=!1}ha=0,Ut=gt=Ke=null,Go=!1,ls=Wl=0,Wo=null}function Sn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ut===null?Ke.memoizedState=Ut=t:Ut=Ut.next=t,Ut}function Ht(){if(gt===null){var t=Ke.alternate;t=t!==null?t.memoizedState:null}else t=gt.next;var r=Ut===null?Ke.memoizedState:Ut.next;if(r!==null)Ut=r,gt=t;else{if(t===null)throw Ke.alternate===null?Error(o(467)):Error(o(310));gt=t,t={memoizedState:gt.memoizedState,baseState:gt.baseState,baseQueue:gt.baseQueue,queue:gt.queue,next:null},Ut===null?Ke.memoizedState=Ut=t:Ut=Ut.next=t}return Ut}function Kd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function cs(t){var r=ls;return ls+=1,Wo===null&&(Wo=[]),t=Vg(Wo,t,r),r=Ke,(Ut===null?r.memoizedState:Ut.next)===null&&(r=r.alternate,D.H=r===null||r.memoizedState===null?Ny:_y),t}function Yl(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return cs(t);if(t.$$typeof===O)return cn(t)}throw Error(o(438,String(t)))}function Qd(t){var r=null,i=Ke.updateQueue;if(i!==null&&(r=i.memoCache),r==null){var l=Ke.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(r={data:l.data.map(function(f){return f.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),i===null&&(i=Kd(),Ke.updateQueue=i),i.memoCache=r,i=r.data[r.index],i===void 0)for(i=r.data[r.index]=Array(t),l=0;l<t;l++)i[l]=X;return r.index++,i}function Hr(t,r){return typeof r=="function"?r(t):r}function Kl(t){var r=Ht();return Xd(r,gt,t)}function Xd(t,r,i){var l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=i;var f=t.baseQueue,m=l.pending;if(m!==null){if(f!==null){var C=f.next;f.next=m.next,m.next=C}r.baseQueue=f=m,l.pending=null}if(m=t.baseState,f===null)t.memoizedState=m;else{r=f.next;var k=C=null,P=null,te=r,ce=!1;do{var me=te.lane&-536870913;if(me!==te.lane?(rt&me)===me:(ha&me)===me){var ne=te.revertLane;if(ne===0)P!==null&&(P=P.next={lane:0,revertLane:0,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null}),me===Ho&&(ce=!0);else if((ha&ne)===ne){te=te.next,ne===Ho&&(ce=!0);continue}else me={lane:0,revertLane:te.revertLane,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null},P===null?(k=P=me,C=m):P=P.next=me,Ke.lanes|=ne,Sa|=ne;me=te.action,to&&i(m,me),m=te.hasEagerState?te.eagerState:i(m,me)}else ne={lane:me,revertLane:te.revertLane,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null},P===null?(k=P=ne,C=m):P=P.next=ne,Ke.lanes|=me,Sa|=me;te=te.next}while(te!==null&&te!==r);if(P===null?C=m:P.next=k,!kn(m,t.memoizedState)&&(Jt=!0,ce&&(i=Vo,i!==null)))throw i;t.memoizedState=m,t.baseState=C,t.baseQueue=P,l.lastRenderedState=m}return f===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Zd(t){var r=Ht(),i=r.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=t;var l=i.dispatch,f=i.pending,m=r.memoizedState;if(f!==null){i.pending=null;var C=f=f.next;do m=t(m,C.action),C=C.next;while(C!==f);kn(m,r.memoizedState)||(Jt=!0),r.memoizedState=m,r.baseQueue===null&&(r.baseState=m),i.lastRenderedState=m}return[m,l]}function Zg(t,r,i){var l=Ke,f=Ht(),m=st;if(m){if(i===void 0)throw Error(o(407));i=i()}else i=r();var C=!kn((gt||f).memoizedState,i);C&&(f.memoizedState=i,Jt=!0),f=f.queue;var k=ty.bind(null,l,f,t);if(us(2048,8,k,[t]),f.getSnapshot!==r||C||Ut!==null&&Ut.memoizedState.tag&1){if(l.flags|=2048,Yo(9,Ql(),ey.bind(null,l,f,i,r),null),Ct===null)throw Error(o(349));m||(ha&124)!==0||Jg(l,r,i)}return i}function Jg(t,r,i){t.flags|=16384,t={getSnapshot:r,value:i},r=Ke.updateQueue,r===null?(r=Kd(),Ke.updateQueue=r,r.stores=[t]):(i=r.stores,i===null?r.stores=[t]:i.push(t))}function ey(t,r,i,l){r.value=i,r.getSnapshot=l,ny(r)&&ry(t)}function ty(t,r,i){return i(function(){ny(r)&&ry(t)})}function ny(t){var r=t.getSnapshot;t=t.value;try{var i=r();return!kn(t,i)}catch{return!0}}function ry(t){var r=Bo(t,2);r!==null&&Ln(r,t,2)}function Jd(t){var r=Sn();if(typeof t=="function"){var i=t;if(t=i(),to){Le(!0);try{i()}finally{Le(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hr,lastRenderedState:t},r}function ay(t,r,i,l){return t.baseState=i,Xd(t,gt,typeof l=="function"?l:Hr)}function AC(t,r,i,l,f){if(Zl(t))throw Error(o(485));if(t=r.action,t!==null){var m={payload:f,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){m.listeners.push(C)}};D.T!==null?i(!0):m.isTransition=!1,l(m),i=r.pending,i===null?(m.next=r.pending=m,oy(r,m)):(m.next=i.next,r.pending=i.next=m)}}function oy(t,r){var i=r.action,l=r.payload,f=t.state;if(r.isTransition){var m=D.T,C={};D.T=C;try{var k=i(f,l),P=D.S;P!==null&&P(C,k),iy(t,r,k)}catch(te){ef(t,r,te)}finally{D.T=m}}else try{m=i(f,l),iy(t,r,m)}catch(te){ef(t,r,te)}}function iy(t,r,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){sy(t,r,l)},function(l){return ef(t,r,l)}):sy(t,r,i)}function sy(t,r,i){r.status="fulfilled",r.value=i,ly(r),t.state=i,r=t.pending,r!==null&&(i=r.next,i===r?t.pending=null:(i=i.next,r.next=i,oy(t,i)))}function ef(t,r,i){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do r.status="rejected",r.reason=i,ly(r),r=r.next;while(r!==l)}t.action=null}function ly(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function cy(t,r){return r}function uy(t,r){if(st){var i=Ct.formState;if(i!==null){e:{var l=Ke;if(st){if(Nt){t:{for(var f=Nt,m=br;f.nodeType!==8;){if(!m){f=null;break t}if(f=dr(f.nextSibling),f===null){f=null;break t}}m=f.data,f=m==="F!"||m==="F"?f:null}if(f){Nt=dr(f.nextSibling),l=f.data==="F!";break e}}Xa(l)}l=!1}l&&(r=i[0])}}return i=Sn(),i.memoizedState=i.baseState=r,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cy,lastRenderedState:r},i.queue=l,i=My.bind(null,Ke,l),l.dispatch=i,l=Jd(!1),m=of.bind(null,Ke,!1,l.queue),l=Sn(),f={state:r,dispatch:null,action:t,pending:null},l.queue=f,i=AC.bind(null,Ke,f,m,i),f.dispatch=i,l.memoizedState=t,[r,i,!1]}function dy(t){var r=Ht();return fy(r,gt,t)}function fy(t,r,i){if(r=Xd(t,r,cy)[0],t=Kl(Hr)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var l=cs(r)}catch(C){throw C===rs?Hl:C}else l=r;r=Ht();var f=r.queue,m=f.dispatch;return i!==r.memoizedState&&(Ke.flags|=2048,Yo(9,Ql(),jC.bind(null,f,i),null)),[l,m,t]}function jC(t,r){t.action=r}function py(t){var r=Ht(),i=gt;if(i!==null)return fy(r,i,t);Ht(),r=r.memoizedState,i=Ht();var l=i.queue.dispatch;return i.memoizedState=t,[r,l,!1]}function Yo(t,r,i,l){return t={tag:t,create:i,deps:l,inst:r,next:null},r=Ke.updateQueue,r===null&&(r=Kd(),Ke.updateQueue=r),i=r.lastEffect,i===null?r.lastEffect=t.next=t:(l=i.next,i.next=t,t.next=l,r.lastEffect=t),t}function Ql(){return{destroy:void 0,resource:void 0}}function hy(){return Ht().memoizedState}function Xl(t,r,i,l){var f=Sn();l=l===void 0?null:l,Ke.flags|=t,f.memoizedState=Yo(1|r,Ql(),i,l)}function us(t,r,i,l){var f=Ht();l=l===void 0?null:l;var m=f.memoizedState.inst;gt!==null&&l!==null&&Vd(l,gt.memoizedState.deps)?f.memoizedState=Yo(r,m,i,l):(Ke.flags|=t,f.memoizedState=Yo(1|r,m,i,l))}function my(t,r){Xl(8390656,8,t,r)}function gy(t,r){us(2048,8,t,r)}function yy(t,r){return us(4,2,t,r)}function by(t,r){return us(4,4,t,r)}function vy(t,r){if(typeof r=="function"){t=t();var i=r(t);return function(){typeof i=="function"?i():r(null)}}if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function xy(t,r,i){i=i!=null?i.concat([t]):null,us(4,4,vy.bind(null,r,t),i)}function tf(){}function Sy(t,r){var i=Ht();r=r===void 0?null:r;var l=i.memoizedState;return r!==null&&Vd(r,l[1])?l[0]:(i.memoizedState=[t,r],t)}function Cy(t,r){var i=Ht();r=r===void 0?null:r;var l=i.memoizedState;if(r!==null&&Vd(r,l[1]))return l[0];if(l=t(),to){Le(!0);try{t()}finally{Le(!1)}}return i.memoizedState=[l,r],l}function nf(t,r,i){return i===void 0||(ha&1073741824)!==0?t.memoizedState=r:(t.memoizedState=i,t=Rb(),Ke.lanes|=t,Sa|=t,i)}function wy(t,r,i,l){return kn(i,r)?i:qo.current!==null?(t=nf(t,i,l),kn(t,r)||(Jt=!0),t):(ha&42)===0?(Jt=!0,t.memoizedState=i):(t=Rb(),Ke.lanes|=t,Sa|=t,r)}function Ey(t,r,i,l,f){var m=I.p;I.p=m!==0&&8>m?m:8;var C=D.T,k={};D.T=k,of(t,!1,r,i);try{var P=f(),te=D.S;if(te!==null&&te(k,P),P!==null&&typeof P=="object"&&typeof P.then=="function"){var ce=EC(P,l);ds(t,r,ce,Dn(t))}else ds(t,r,l,Dn(t))}catch(me){ds(t,r,{then:function(){},status:"rejected",reason:me},Dn())}finally{I.p=m,D.T=C}}function MC(){}function rf(t,r,i,l){if(t.tag!==5)throw Error(o(476));var f=Ry(t).queue;Ey(t,f,r,H,i===null?MC:function(){return Ty(t),i(l)})}function Ry(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hr,lastRenderedState:H},next:null};var i={};return r.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hr,lastRenderedState:i},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function Ty(t){var r=Ry(t).next.queue;ds(t,r,{},Dn())}function af(){return cn(Ms)}function Ay(){return Ht().memoizedState}function jy(){return Ht().memoizedState}function kC(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var i=Dn();t=fa(i);var l=pa(r,t,i);l!==null&&(Ln(l,r,i),os(l,r,i)),r={cache:zd()},t.payload=r;return}r=r.return}}function OC(t,r,i){var l=Dn();i={lane:l,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},Zl(t)?ky(r,i):(i=Ed(t,r,i,l),i!==null&&(Ln(i,t,l),Oy(i,r,l)))}function My(t,r,i){var l=Dn();ds(t,r,i,l)}function ds(t,r,i,l){var f={lane:l,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(Zl(t))ky(r,f);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=r.lastRenderedReducer,m!==null))try{var C=r.lastRenderedState,k=m(C,i);if(f.hasEagerState=!0,f.eagerState=k,kn(k,C))return Dl(t,r,f,0),Ct===null&&zl(),!1}catch{}finally{}if(i=Ed(t,r,f,l),i!==null)return Ln(i,t,l),Oy(i,r,l),!0}return!1}function of(t,r,i,l){if(l={lane:2,revertLane:$f(),action:l,hasEagerState:!1,eagerState:null,next:null},Zl(t)){if(r)throw Error(o(479))}else r=Ed(t,i,l,2),r!==null&&Ln(r,t,2)}function Zl(t){var r=t.alternate;return t===Ke||r!==null&&r===Ke}function ky(t,r){Go=Gl=!0;var i=t.pending;i===null?r.next=r:(r.next=i.next,i.next=r),t.pending=r}function Oy(t,r,i){if((i&4194048)!==0){var l=r.lanes;l&=t.pendingLanes,i|=l,r.lanes=i,Bm(t,i)}}var Jl={readContext:cn,use:Yl,useCallback:Lt,useContext:Lt,useEffect:Lt,useImperativeHandle:Lt,useLayoutEffect:Lt,useInsertionEffect:Lt,useMemo:Lt,useReducer:Lt,useRef:Lt,useState:Lt,useDebugValue:Lt,useDeferredValue:Lt,useTransition:Lt,useSyncExternalStore:Lt,useId:Lt,useHostTransitionStatus:Lt,useFormState:Lt,useActionState:Lt,useOptimistic:Lt,useMemoCache:Lt,useCacheRefresh:Lt},Ny={readContext:cn,use:Yl,useCallback:function(t,r){return Sn().memoizedState=[t,r===void 0?null:r],t},useContext:cn,useEffect:my,useImperativeHandle:function(t,r,i){i=i!=null?i.concat([t]):null,Xl(4194308,4,vy.bind(null,r,t),i)},useLayoutEffect:function(t,r){return Xl(4194308,4,t,r)},useInsertionEffect:function(t,r){Xl(4,2,t,r)},useMemo:function(t,r){var i=Sn();r=r===void 0?null:r;var l=t();if(to){Le(!0);try{t()}finally{Le(!1)}}return i.memoizedState=[l,r],l},useReducer:function(t,r,i){var l=Sn();if(i!==void 0){var f=i(r);if(to){Le(!0);try{i(r)}finally{Le(!1)}}}else f=r;return l.memoizedState=l.baseState=f,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:f},l.queue=t,t=t.dispatch=OC.bind(null,Ke,t),[l.memoizedState,t]},useRef:function(t){var r=Sn();return t={current:t},r.memoizedState=t},useState:function(t){t=Jd(t);var r=t.queue,i=My.bind(null,Ke,r);return r.dispatch=i,[t.memoizedState,i]},useDebugValue:tf,useDeferredValue:function(t,r){var i=Sn();return nf(i,t,r)},useTransition:function(){var t=Jd(!1);return t=Ey.bind(null,Ke,t.queue,!0,!1),Sn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,i){var l=Ke,f=Sn();if(st){if(i===void 0)throw Error(o(407));i=i()}else{if(i=r(),Ct===null)throw Error(o(349));(rt&124)!==0||Jg(l,r,i)}f.memoizedState=i;var m={value:i,getSnapshot:r};return f.queue=m,my(ty.bind(null,l,m,t),[t]),l.flags|=2048,Yo(9,Ql(),ey.bind(null,l,m,i,r),null),i},useId:function(){var t=Sn(),r=Ct.identifierPrefix;if(st){var i=Ir,l=Br;i=(l&~(1<<32-Ve(l)-1)).toString(32)+i,r="«"+r+"R"+i,i=Wl++,0<i&&(r+="H"+i.toString(32)),r+="»"}else i=RC++,r="«"+r+"r"+i.toString(32)+"»";return t.memoizedState=r},useHostTransitionStatus:af,useFormState:uy,useActionState:uy,useOptimistic:function(t){var r=Sn();r.memoizedState=r.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=i,r=of.bind(null,Ke,!0,i),i.dispatch=r,[t,r]},useMemoCache:Qd,useCacheRefresh:function(){return Sn().memoizedState=kC.bind(null,Ke)}},_y={readContext:cn,use:Yl,useCallback:Sy,useContext:cn,useEffect:gy,useImperativeHandle:xy,useInsertionEffect:yy,useLayoutEffect:by,useMemo:Cy,useReducer:Kl,useRef:hy,useState:function(){return Kl(Hr)},useDebugValue:tf,useDeferredValue:function(t,r){var i=Ht();return wy(i,gt.memoizedState,t,r)},useTransition:function(){var t=Kl(Hr)[0],r=Ht().memoizedState;return[typeof t=="boolean"?t:cs(t),r]},useSyncExternalStore:Zg,useId:Ay,useHostTransitionStatus:af,useFormState:dy,useActionState:dy,useOptimistic:function(t,r){var i=Ht();return ay(i,gt,t,r)},useMemoCache:Qd,useCacheRefresh:jy},NC={readContext:cn,use:Yl,useCallback:Sy,useContext:cn,useEffect:gy,useImperativeHandle:xy,useInsertionEffect:yy,useLayoutEffect:by,useMemo:Cy,useReducer:Zd,useRef:hy,useState:function(){return Zd(Hr)},useDebugValue:tf,useDeferredValue:function(t,r){var i=Ht();return gt===null?nf(i,t,r):wy(i,gt.memoizedState,t,r)},useTransition:function(){var t=Zd(Hr)[0],r=Ht().memoizedState;return[typeof t=="boolean"?t:cs(t),r]},useSyncExternalStore:Zg,useId:Ay,useHostTransitionStatus:af,useFormState:py,useActionState:py,useOptimistic:function(t,r){var i=Ht();return gt!==null?ay(i,gt,t,r):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:Qd,useCacheRefresh:jy},Ko=null,fs=0;function ec(t){var r=fs;return fs+=1,Ko===null&&(Ko=[]),Vg(Ko,t,r)}function ps(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function tc(t,r){throw r.$$typeof===b?Error(o(525)):(t=Object.prototype.toString.call(r),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t)))}function zy(t){var r=t._init;return r(t._payload)}function Dy(t){function r(Q,U){if(t){var ee=Q.deletions;ee===null?(Q.deletions=[U],Q.flags|=16):ee.push(U)}}function i(Q,U){if(!t)return null;for(;U!==null;)r(Q,U),U=U.sibling;return null}function l(Q){for(var U=new Map;Q!==null;)Q.key!==null?U.set(Q.key,Q):U.set(Q.index,Q),Q=Q.sibling;return U}function f(Q,U){return Q=$r(Q,U),Q.index=0,Q.sibling=null,Q}function m(Q,U,ee){return Q.index=ee,t?(ee=Q.alternate,ee!==null?(ee=ee.index,ee<U?(Q.flags|=67108866,U):ee):(Q.flags|=67108866,U)):(Q.flags|=1048576,U)}function C(Q){return t&&Q.alternate===null&&(Q.flags|=67108866),Q}function k(Q,U,ee,de){return U===null||U.tag!==6?(U=Td(ee,Q.mode,de),U.return=Q,U):(U=f(U,ee),U.return=Q,U)}function P(Q,U,ee,de){var Te=ee.type;return Te===S?ce(Q,U,ee.props.children,de,ee.key):U!==null&&(U.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===B&&zy(Te)===U.type)?(U=f(U,ee.props),ps(U,ee),U.return=Q,U):(U=Pl(ee.type,ee.key,ee.props,null,Q.mode,de),ps(U,ee),U.return=Q,U)}function te(Q,U,ee,de){return U===null||U.tag!==4||U.stateNode.containerInfo!==ee.containerInfo||U.stateNode.implementation!==ee.implementation?(U=Ad(ee,Q.mode,de),U.return=Q,U):(U=f(U,ee.children||[]),U.return=Q,U)}function ce(Q,U,ee,de,Te){return U===null||U.tag!==7?(U=Wa(ee,Q.mode,de,Te),U.return=Q,U):(U=f(U,ee),U.return=Q,U)}function me(Q,U,ee){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return U=Td(""+U,Q.mode,ee),U.return=Q,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case x:return ee=Pl(U.type,U.key,U.props,null,Q.mode,ee),ps(ee,U),ee.return=Q,ee;case E:return U=Ad(U,Q.mode,ee),U.return=Q,U;case B:var de=U._init;return U=de(U._payload),me(Q,U,ee)}if(q(U)||R(U))return U=Wa(U,Q.mode,ee,null),U.return=Q,U;if(typeof U.then=="function")return me(Q,ec(U),ee);if(U.$$typeof===O)return me(Q,Fl(Q,U),ee);tc(Q,U)}return null}function ne(Q,U,ee,de){var Te=U!==null?U.key:null;if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return Te!==null?null:k(Q,U,""+ee,de);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case x:return ee.key===Te?P(Q,U,ee,de):null;case E:return ee.key===Te?te(Q,U,ee,de):null;case B:return Te=ee._init,ee=Te(ee._payload),ne(Q,U,ee,de)}if(q(ee)||R(ee))return Te!==null?null:ce(Q,U,ee,de,null);if(typeof ee.then=="function")return ne(Q,U,ec(ee),de);if(ee.$$typeof===O)return ne(Q,U,Fl(Q,ee),de);tc(Q,ee)}return null}function re(Q,U,ee,de,Te){if(typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint")return Q=Q.get(ee)||null,k(U,Q,""+de,Te);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case x:return Q=Q.get(de.key===null?ee:de.key)||null,P(U,Q,de,Te);case E:return Q=Q.get(de.key===null?ee:de.key)||null,te(U,Q,de,Te);case B:var Qe=de._init;return de=Qe(de._payload),re(Q,U,ee,de,Te)}if(q(de)||R(de))return Q=Q.get(ee)||null,ce(U,Q,de,Te,null);if(typeof de.then=="function")return re(Q,U,ee,ec(de),Te);if(de.$$typeof===O)return re(Q,U,ee,Fl(U,de),Te);tc(U,de)}return null}function Fe(Q,U,ee,de){for(var Te=null,Qe=null,_e=U,Be=U=0,tn=null;_e!==null&&Be<ee.length;Be++){_e.index>Be?(tn=_e,_e=null):tn=_e.sibling;var ot=ne(Q,_e,ee[Be],de);if(ot===null){_e===null&&(_e=tn);break}t&&_e&&ot.alternate===null&&r(Q,_e),U=m(ot,U,Be),Qe===null?Te=ot:Qe.sibling=ot,Qe=ot,_e=tn}if(Be===ee.length)return i(Q,_e),st&&Ka(Q,Be),Te;if(_e===null){for(;Be<ee.length;Be++)_e=me(Q,ee[Be],de),_e!==null&&(U=m(_e,U,Be),Qe===null?Te=_e:Qe.sibling=_e,Qe=_e);return st&&Ka(Q,Be),Te}for(_e=l(_e);Be<ee.length;Be++)tn=re(_e,Q,Be,ee[Be],de),tn!==null&&(t&&tn.alternate!==null&&_e.delete(tn.key===null?Be:tn.key),U=m(tn,U,Be),Qe===null?Te=tn:Qe.sibling=tn,Qe=tn);return t&&_e.forEach(function(ka){return r(Q,ka)}),st&&Ka(Q,Be),Te}function Pe(Q,U,ee,de){if(ee==null)throw Error(o(151));for(var Te=null,Qe=null,_e=U,Be=U=0,tn=null,ot=ee.next();_e!==null&&!ot.done;Be++,ot=ee.next()){_e.index>Be?(tn=_e,_e=null):tn=_e.sibling;var ka=ne(Q,_e,ot.value,de);if(ka===null){_e===null&&(_e=tn);break}t&&_e&&ka.alternate===null&&r(Q,_e),U=m(ka,U,Be),Qe===null?Te=ka:Qe.sibling=ka,Qe=ka,_e=tn}if(ot.done)return i(Q,_e),st&&Ka(Q,Be),Te;if(_e===null){for(;!ot.done;Be++,ot=ee.next())ot=me(Q,ot.value,de),ot!==null&&(U=m(ot,U,Be),Qe===null?Te=ot:Qe.sibling=ot,Qe=ot);return st&&Ka(Q,Be),Te}for(_e=l(_e);!ot.done;Be++,ot=ee.next())ot=re(_e,Q,Be,ot.value,de),ot!==null&&(t&&ot.alternate!==null&&_e.delete(ot.key===null?Be:ot.key),U=m(ot,U,Be),Qe===null?Te=ot:Qe.sibling=ot,Qe=ot);return t&&_e.forEach(function(_5){return r(Q,_5)}),st&&Ka(Q,Be),Te}function bt(Q,U,ee,de){if(typeof ee=="object"&&ee!==null&&ee.type===S&&ee.key===null&&(ee=ee.props.children),typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case x:e:{for(var Te=ee.key;U!==null;){if(U.key===Te){if(Te=ee.type,Te===S){if(U.tag===7){i(Q,U.sibling),de=f(U,ee.props.children),de.return=Q,Q=de;break e}}else if(U.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===B&&zy(Te)===U.type){i(Q,U.sibling),de=f(U,ee.props),ps(de,ee),de.return=Q,Q=de;break e}i(Q,U);break}else r(Q,U);U=U.sibling}ee.type===S?(de=Wa(ee.props.children,Q.mode,de,ee.key),de.return=Q,Q=de):(de=Pl(ee.type,ee.key,ee.props,null,Q.mode,de),ps(de,ee),de.return=Q,Q=de)}return C(Q);case E:e:{for(Te=ee.key;U!==null;){if(U.key===Te)if(U.tag===4&&U.stateNode.containerInfo===ee.containerInfo&&U.stateNode.implementation===ee.implementation){i(Q,U.sibling),de=f(U,ee.children||[]),de.return=Q,Q=de;break e}else{i(Q,U);break}else r(Q,U);U=U.sibling}de=Ad(ee,Q.mode,de),de.return=Q,Q=de}return C(Q);case B:return Te=ee._init,ee=Te(ee._payload),bt(Q,U,ee,de)}if(q(ee))return Fe(Q,U,ee,de);if(R(ee)){if(Te=R(ee),typeof Te!="function")throw Error(o(150));return ee=Te.call(ee),Pe(Q,U,ee,de)}if(typeof ee.then=="function")return bt(Q,U,ec(ee),de);if(ee.$$typeof===O)return bt(Q,U,Fl(Q,ee),de);tc(Q,ee)}return typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint"?(ee=""+ee,U!==null&&U.tag===6?(i(Q,U.sibling),de=f(U,ee),de.return=Q,Q=de):(i(Q,U),de=Td(ee,Q.mode,de),de.return=Q,Q=de),C(Q)):i(Q,U)}return function(Q,U,ee,de){try{fs=0;var Te=bt(Q,U,ee,de);return Ko=null,Te}catch(_e){if(_e===rs||_e===Hl)throw _e;var Qe=On(29,_e,null,Q.mode);return Qe.lanes=de,Qe.return=Q,Qe}finally{}}}var Qo=Dy(!0),Ly=Dy(!1),Gn=J(null),vr=null;function ma(t){var r=t.alternate;oe(Qt,Qt.current&1),oe(Gn,t),vr===null&&(r===null||qo.current!==null||r.memoizedState!==null)&&(vr=t)}function Py(t){if(t.tag===22){if(oe(Qt,Qt.current),oe(Gn,t),vr===null){var r=t.alternate;r!==null&&r.memoizedState!==null&&(vr=t)}}else ga()}function ga(){oe(Qt,Qt.current),oe(Gn,Gn.current)}function Vr(t){ue(Gn),vr===t&&(vr=null),ue(Qt)}var Qt=J(0);function nc(t){for(var r=t;r!==null;){if(r.tag===13){var i=r.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||Qf(i)))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}function sf(t,r,i,l){r=t.memoizedState,i=i(l,r),i=i==null?r:y({},r,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var lf={enqueueSetState:function(t,r,i){t=t._reactInternals;var l=Dn(),f=fa(l);f.payload=r,i!=null&&(f.callback=i),r=pa(t,f,l),r!==null&&(Ln(r,t,l),os(r,t,l))},enqueueReplaceState:function(t,r,i){t=t._reactInternals;var l=Dn(),f=fa(l);f.tag=1,f.payload=r,i!=null&&(f.callback=i),r=pa(t,f,l),r!==null&&(Ln(r,t,l),os(r,t,l))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var i=Dn(),l=fa(i);l.tag=2,r!=null&&(l.callback=r),r=pa(t,l,i),r!==null&&(Ln(r,t,i),os(r,t,i))}};function $y(t,r,i,l,f,m,C){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,m,C):r.prototype&&r.prototype.isPureReactComponent?!Ki(i,l)||!Ki(f,m):!0}function By(t,r,i,l){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(i,l),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(i,l),r.state!==t&&lf.enqueueReplaceState(r,r.state,null)}function no(t,r){var i=r;if("ref"in r){i={};for(var l in r)l!=="ref"&&(i[l]=r[l])}if(t=t.defaultProps){i===r&&(i=y({},i));for(var f in t)i[f]===void 0&&(i[f]=t[f])}return i}var rc=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=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(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function Iy(t){rc(t)}function Fy(t){console.error(t)}function Uy(t){rc(t)}function ac(t,r){try{var i=t.onUncaughtError;i(r.value,{componentStack:r.stack})}catch(l){setTimeout(function(){throw l})}}function Hy(t,r,i){try{var l=t.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function cf(t,r,i){return i=fa(i),i.tag=3,i.payload={element:null},i.callback=function(){ac(t,r)},i}function Vy(t){return t=fa(t),t.tag=3,t}function qy(t,r,i,l){var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var m=l.value;t.payload=function(){return f(m)},t.callback=function(){Hy(r,i,l)}}var C=i.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(t.callback=function(){Hy(r,i,l),typeof f!="function"&&(Ca===null?Ca=new Set([this]):Ca.add(this));var k=l.stack;this.componentDidCatch(l.value,{componentStack:k!==null?k:""})})}function _C(t,r,i,l,f){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(r=i.alternate,r!==null&&es(r,i,f,!0),i=Gn.current,i!==null){switch(i.tag){case 13:return vr===null?_f():i.alternate===null&&_t===0&&(_t=3),i.flags&=-257,i.flags|=65536,i.lanes=f,l===Pd?i.flags|=16384:(r=i.updateQueue,r===null?i.updateQueue=new Set([l]):r.add(l),Df(t,l,f)),!1;case 22:return i.flags|=65536,l===Pd?i.flags|=16384:(r=i.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=r):(i=r.retryQueue,i===null?r.retryQueue=new Set([l]):i.add(l)),Df(t,l,f)),!1}throw Error(o(435,i.tag))}return Df(t,l,f),_f(),!1}if(st)return r=Gn.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=f,l!==kd&&(t=Error(o(422),{cause:l}),Ji(Un(t,i)))):(l!==kd&&(r=Error(o(423),{cause:l}),Ji(Un(r,i))),t=t.current.alternate,t.flags|=65536,f&=-f,t.lanes|=f,l=Un(l,i),f=cf(t.stateNode,l,f),Id(t,f),_t!==4&&(_t=2)),!1;var m=Error(o(520),{cause:l});if(m=Un(m,i),xs===null?xs=[m]:xs.push(m),_t!==4&&(_t=2),r===null)return!0;l=Un(l,i),i=r;do{switch(i.tag){case 3:return i.flags|=65536,t=f&-f,i.lanes|=t,t=cf(i.stateNode,l,t),Id(i,t),!1;case 1:if(r=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Ca===null||!Ca.has(m))))return i.flags|=65536,f&=-f,i.lanes|=f,f=Vy(f),qy(f,t,i,l),Id(i,f),!1}i=i.return}while(i!==null);return!1}var Gy=Error(o(461)),Jt=!1;function nn(t,r,i,l){r.child=t===null?Ly(r,null,i,l):Qo(r,t.child,i,l)}function Wy(t,r,i,l,f){i=i.render;var m=r.ref;if("ref"in l){var C={};for(var k in l)k!=="ref"&&(C[k]=l[k])}else C=l;return Ja(r),l=qd(t,r,i,C,m,f),k=Gd(),t!==null&&!Jt?(Wd(t,r,f),qr(t,r,f)):(st&&k&&jd(r),r.flags|=1,nn(t,r,l,f),r.child)}function Yy(t,r,i,l,f){if(t===null){var m=i.type;return typeof m=="function"&&!Rd(m)&&m.defaultProps===void 0&&i.compare===null?(r.tag=15,r.type=m,Ky(t,r,m,l,f)):(t=Pl(i.type,null,l,r,r.mode,f),t.ref=r.ref,t.return=r,r.child=t)}if(m=t.child,!yf(t,f)){var C=m.memoizedProps;if(i=i.compare,i=i!==null?i:Ki,i(C,l)&&t.ref===r.ref)return qr(t,r,f)}return r.flags|=1,t=$r(m,l),t.ref=r.ref,t.return=r,r.child=t}function Ky(t,r,i,l,f){if(t!==null){var m=t.memoizedProps;if(Ki(m,l)&&t.ref===r.ref)if(Jt=!1,r.pendingProps=l=m,yf(t,f))(t.flags&131072)!==0&&(Jt=!0);else return r.lanes=t.lanes,qr(t,r,f)}return uf(t,r,i,l,f)}function Qy(t,r,i){var l=r.pendingProps,f=l.children,m=t!==null?t.memoizedState:null;if(l.mode==="hidden"){if((r.flags&128)!==0){if(l=m!==null?m.baseLanes|i:i,t!==null){for(f=r.child=t.child,m=0;f!==null;)m=m|f.lanes|f.childLanes,f=f.sibling;r.childLanes=m&~l}else r.childLanes=0,r.child=null;return Xy(t,r,l,i)}if((i&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ul(r,m!==null?m.cachePool:null),m!==null?Kg(r,m):Ud(),Py(r);else return r.lanes=r.childLanes=536870912,Xy(t,r,m!==null?m.baseLanes|i:i,i)}else m!==null?(Ul(r,m.cachePool),Kg(r,m),ga(),r.memoizedState=null):(t!==null&&Ul(r,null),Ud(),ga());return nn(t,r,f,i),r.child}function Xy(t,r,i,l){var f=Ld();return f=f===null?null:{parent:Kt._currentValue,pool:f},r.memoizedState={baseLanes:i,cachePool:f},t!==null&&Ul(r,null),Ud(),Py(r),t!==null&&es(t,r,l,!0),null}function oc(t,r){var i=r.ref;if(i===null)t!==null&&t.ref!==null&&(r.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(o(284));(t===null||t.ref!==i)&&(r.flags|=4194816)}}function uf(t,r,i,l,f){return Ja(r),i=qd(t,r,i,l,void 0,f),l=Gd(),t!==null&&!Jt?(Wd(t,r,f),qr(t,r,f)):(st&&l&&jd(r),r.flags|=1,nn(t,r,i,f),r.child)}function Zy(t,r,i,l,f,m){return Ja(r),r.updateQueue=null,i=Xg(r,l,i,f),Qg(t),l=Gd(),t!==null&&!Jt?(Wd(t,r,m),qr(t,r,m)):(st&&l&&jd(r),r.flags|=1,nn(t,r,i,m),r.child)}function Jy(t,r,i,l,f){if(Ja(r),r.stateNode===null){var m=Io,C=i.contextType;typeof C=="object"&&C!==null&&(m=cn(C)),m=new i(l,m),r.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=lf,r.stateNode=m,m._reactInternals=r,m=r.stateNode,m.props=l,m.state=r.memoizedState,m.refs={},$d(r),C=i.contextType,m.context=typeof C=="object"&&C!==null?cn(C):Io,m.state=r.memoizedState,C=i.getDerivedStateFromProps,typeof C=="function"&&(sf(r,i,C,l),m.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(C=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),C!==m.state&&lf.enqueueReplaceState(m,m.state,null),ss(r,l,m,f),is(),m.state=r.memoizedState),typeof m.componentDidMount=="function"&&(r.flags|=4194308),l=!0}else if(t===null){m=r.stateNode;var k=r.memoizedProps,P=no(i,k);m.props=P;var te=m.context,ce=i.contextType;C=Io,typeof ce=="object"&&ce!==null&&(C=cn(ce));var me=i.getDerivedStateFromProps;ce=typeof me=="function"||typeof m.getSnapshotBeforeUpdate=="function",k=r.pendingProps!==k,ce||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(k||te!==C)&&By(r,m,l,C),da=!1;var ne=r.memoizedState;m.state=ne,ss(r,l,m,f),is(),te=r.memoizedState,k||ne!==te||da?(typeof me=="function"&&(sf(r,i,me,l),te=r.memoizedState),(P=da||$y(r,i,P,l,ne,te,C))?(ce||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(r.flags|=4194308)):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=l,r.memoizedState=te),m.props=l,m.state=te,m.context=C,l=P):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),l=!1)}else{m=r.stateNode,Bd(t,r),C=r.memoizedProps,ce=no(i,C),m.props=ce,me=r.pendingProps,ne=m.context,te=i.contextType,P=Io,typeof te=="object"&&te!==null&&(P=cn(te)),k=i.getDerivedStateFromProps,(te=typeof k=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(C!==me||ne!==P)&&By(r,m,l,P),da=!1,ne=r.memoizedState,m.state=ne,ss(r,l,m,f),is();var re=r.memoizedState;C!==me||ne!==re||da||t!==null&&t.dependencies!==null&&Il(t.dependencies)?(typeof k=="function"&&(sf(r,i,k,l),re=r.memoizedState),(ce=da||$y(r,i,ce,l,ne,re,P)||t!==null&&t.dependencies!==null&&Il(t.dependencies))?(te||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(l,re,P),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(l,re,P)),typeof m.componentDidUpdate=="function"&&(r.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof m.componentDidUpdate!="function"||C===t.memoizedProps&&ne===t.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&ne===t.memoizedState||(r.flags|=1024),r.memoizedProps=l,r.memoizedState=re),m.props=l,m.state=re,m.context=P,l=ce):(typeof m.componentDidUpdate!="function"||C===t.memoizedProps&&ne===t.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&ne===t.memoizedState||(r.flags|=1024),l=!1)}return m=l,oc(t,r),l=(r.flags&128)!==0,m||l?(m=r.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:m.render(),r.flags|=1,t!==null&&l?(r.child=Qo(r,t.child,null,f),r.child=Qo(r,null,i,f)):nn(t,r,i,f),r.memoizedState=m.state,t=r.child):t=qr(t,r,f),t}function eb(t,r,i,l){return Zi(),r.flags|=256,nn(t,r,i,l),r.child}var df={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ff(t){return{baseLanes:t,cachePool:Fg()}}function pf(t,r,i){return t=t!==null?t.childLanes&~i:0,r&&(t|=Wn),t}function tb(t,r,i){var l=r.pendingProps,f=!1,m=(r.flags&128)!==0,C;if((C=m)||(C=t!==null&&t.memoizedState===null?!1:(Qt.current&2)!==0),C&&(f=!0,r.flags&=-129),C=(r.flags&32)!==0,r.flags&=-33,t===null){if(st){if(f?ma(r):ga(),st){var k=Nt,P;if(P=k){e:{for(P=k,k=br;P.nodeType!==8;){if(!k){k=null;break e}if(P=dr(P.nextSibling),P===null){k=null;break e}}k=P}k!==null?(r.memoizedState={dehydrated:k,treeContext:Ya!==null?{id:Br,overflow:Ir}:null,retryLane:536870912,hydrationErrors:null},P=On(18,null,null,0),P.stateNode=k,P.return=r,r.child=P,mn=r,Nt=null,P=!0):P=!1}P||Xa(r)}if(k=r.memoizedState,k!==null&&(k=k.dehydrated,k!==null))return Qf(k)?r.lanes=32:r.lanes=536870912,null;Vr(r)}return k=l.children,l=l.fallback,f?(ga(),f=r.mode,k=ic({mode:"hidden",children:k},f),l=Wa(l,f,i,null),k.return=r,l.return=r,k.sibling=l,r.child=k,f=r.child,f.memoizedState=ff(i),f.childLanes=pf(t,C,i),r.memoizedState=df,l):(ma(r),hf(r,k))}if(P=t.memoizedState,P!==null&&(k=P.dehydrated,k!==null)){if(m)r.flags&256?(ma(r),r.flags&=-257,r=mf(t,r,i)):r.memoizedState!==null?(ga(),r.child=t.child,r.flags|=128,r=null):(ga(),f=l.fallback,k=r.mode,l=ic({mode:"visible",children:l.children},k),f=Wa(f,k,i,null),f.flags|=2,l.return=r,f.return=r,l.sibling=f,r.child=l,Qo(r,t.child,null,i),l=r.child,l.memoizedState=ff(i),l.childLanes=pf(t,C,i),r.memoizedState=df,r=f);else if(ma(r),Qf(k)){if(C=k.nextSibling&&k.nextSibling.dataset,C)var te=C.dgst;C=te,l=Error(o(419)),l.stack="",l.digest=C,Ji({value:l,source:null,stack:null}),r=mf(t,r,i)}else if(Jt||es(t,r,i,!1),C=(i&t.childLanes)!==0,Jt||C){if(C=Ct,C!==null&&(l=i&-i,l=(l&42)!==0?1:Qu(l),l=(l&(C.suspendedLanes|i))!==0?0:l,l!==0&&l!==P.retryLane))throw P.retryLane=l,Bo(t,l),Ln(C,t,l),Gy;k.data==="$?"||_f(),r=mf(t,r,i)}else k.data==="$?"?(r.flags|=192,r.child=t.child,r=null):(t=P.treeContext,Nt=dr(k.nextSibling),mn=r,st=!0,Qa=null,br=!1,t!==null&&(Vn[qn++]=Br,Vn[qn++]=Ir,Vn[qn++]=Ya,Br=t.id,Ir=t.overflow,Ya=r),r=hf(r,l.children),r.flags|=4096);return r}return f?(ga(),f=l.fallback,k=r.mode,P=t.child,te=P.sibling,l=$r(P,{mode:"hidden",children:l.children}),l.subtreeFlags=P.subtreeFlags&65011712,te!==null?f=$r(te,f):(f=Wa(f,k,i,null),f.flags|=2),f.return=r,l.return=r,l.sibling=f,r.child=l,l=f,f=r.child,k=t.child.memoizedState,k===null?k=ff(i):(P=k.cachePool,P!==null?(te=Kt._currentValue,P=P.parent!==te?{parent:te,pool:te}:P):P=Fg(),k={baseLanes:k.baseLanes|i,cachePool:P}),f.memoizedState=k,f.childLanes=pf(t,C,i),r.memoizedState=df,l):(ma(r),i=t.child,t=i.sibling,i=$r(i,{mode:"visible",children:l.children}),i.return=r,i.sibling=null,t!==null&&(C=r.deletions,C===null?(r.deletions=[t],r.flags|=16):C.push(t)),r.child=i,r.memoizedState=null,i)}function hf(t,r){return r=ic({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function ic(t,r){return t=On(22,t,null,r),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function mf(t,r,i){return Qo(r,t.child,null,i),t=hf(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function nb(t,r,i){t.lanes|=r;var l=t.alternate;l!==null&&(l.lanes|=r),Nd(t.return,r,i)}function gf(t,r,i,l,f){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:f}:(m.isBackwards=r,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=i,m.tailMode=f)}function rb(t,r,i){var l=r.pendingProps,f=l.revealOrder,m=l.tail;if(nn(t,r,l.children,i),l=Qt.current,(l&2)!==0)l=l&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&nb(t,i,r);else if(t.tag===19)nb(t,i,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}l&=1}switch(oe(Qt,l),f){case"forwards":for(i=r.child,f=null;i!==null;)t=i.alternate,t!==null&&nc(t)===null&&(f=i),i=i.sibling;i=f,i===null?(f=r.child,r.child=null):(f=i.sibling,i.sibling=null),gf(r,!1,f,i,m);break;case"backwards":for(i=null,f=r.child,r.child=null;f!==null;){if(t=f.alternate,t!==null&&nc(t)===null){r.child=f;break}t=f.sibling,f.sibling=i,i=f,f=t}gf(r,!0,i,null,m);break;case"together":gf(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function qr(t,r,i){if(t!==null&&(r.dependencies=t.dependencies),Sa|=r.lanes,(i&r.childLanes)===0)if(t!==null){if(es(t,r,i,!1),(i&r.childLanes)===0)return null}else return null;if(t!==null&&r.child!==t.child)throw Error(o(153));if(r.child!==null){for(t=r.child,i=$r(t,t.pendingProps),r.child=i,i.return=r;t.sibling!==null;)t=t.sibling,i=i.sibling=$r(t,t.pendingProps),i.return=r;i.sibling=null}return r.child}function yf(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&Il(t)))}function zC(t,r,i){switch(r.tag){case 3:Ae(r,r.stateNode.containerInfo),ua(r,Kt,t.memoizedState.cache),Zi();break;case 27:case 5:je(r);break;case 4:Ae(r,r.stateNode.containerInfo);break;case 10:ua(r,r.type,r.memoizedProps.value);break;case 13:var l=r.memoizedState;if(l!==null)return l.dehydrated!==null?(ma(r),r.flags|=128,null):(i&r.child.childLanes)!==0?tb(t,r,i):(ma(r),t=qr(t,r,i),t!==null?t.sibling:null);ma(r);break;case 19:var f=(t.flags&128)!==0;if(l=(i&r.childLanes)!==0,l||(es(t,r,i,!1),l=(i&r.childLanes)!==0),f){if(l)return rb(t,r,i);r.flags|=128}if(f=r.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),oe(Qt,Qt.current),l)break;return null;case 22:case 23:return r.lanes=0,Qy(t,r,i);case 24:ua(r,Kt,t.memoizedState.cache)}return qr(t,r,i)}function ab(t,r,i){if(t!==null)if(t.memoizedProps!==r.pendingProps)Jt=!0;else{if(!yf(t,i)&&(r.flags&128)===0)return Jt=!1,zC(t,r,i);Jt=(t.flags&131072)!==0}else Jt=!1,st&&(r.flags&1048576)!==0&&zg(r,Bl,r.index);switch(r.lanes=0,r.tag){case 16:e:{t=r.pendingProps;var l=r.elementType,f=l._init;if(l=f(l._payload),r.type=l,typeof l=="function")Rd(l)?(t=no(l,t),r.tag=1,r=Jy(null,r,l,t,i)):(r.tag=0,r=uf(null,r,l,t,i));else{if(l!=null){if(f=l.$$typeof,f===N){r.tag=11,r=Wy(null,r,l,t,i);break e}else if(f===L){r.tag=14,r=Yy(null,r,l,t,i);break e}}throw r=F(l)||l,Error(o(306,r,""))}}return r;case 0:return uf(t,r,r.type,r.pendingProps,i);case 1:return l=r.type,f=no(l,r.pendingProps),Jy(t,r,l,f,i);case 3:e:{if(Ae(r,r.stateNode.containerInfo),t===null)throw Error(o(387));l=r.pendingProps;var m=r.memoizedState;f=m.element,Bd(t,r),ss(r,l,null,i);var C=r.memoizedState;if(l=C.cache,ua(r,Kt,l),l!==m.cache&&_d(r,[Kt],i,!0),is(),l=C.element,m.isDehydrated)if(m={element:l,isDehydrated:!1,cache:C.cache},r.updateQueue.baseState=m,r.memoizedState=m,r.flags&256){r=eb(t,r,l,i);break e}else if(l!==f){f=Un(Error(o(424)),r),Ji(f),r=eb(t,r,l,i);break e}else{switch(t=r.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Nt=dr(t.firstChild),mn=r,st=!0,Qa=null,br=!0,i=Ly(r,null,l,i),r.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Zi(),l===f){r=qr(t,r,i);break e}nn(t,r,l,i)}r=r.child}return r;case 26:return oc(t,r),t===null?(i=l0(r.type,null,r.pendingProps,null))?r.memoizedState=i:st||(i=r.type,t=r.pendingProps,l=xc(ae.current).createElement(i),l[ln]=r,l[vn]=t,an(l,i,t),Zt(l),r.stateNode=l):r.memoizedState=l0(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return je(r),t===null&&st&&(l=r.stateNode=o0(r.type,r.pendingProps,ae.current),mn=r,br=!0,f=Nt,Ra(r.type)?(Xf=f,Nt=dr(l.firstChild)):Nt=f),nn(t,r,r.pendingProps.children,i),oc(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&st&&((f=l=Nt)&&(l=l5(l,r.type,r.pendingProps,br),l!==null?(r.stateNode=l,mn=r,Nt=dr(l.firstChild),br=!1,f=!0):f=!1),f||Xa(r)),je(r),f=r.type,m=r.pendingProps,C=t!==null?t.memoizedProps:null,l=m.children,Wf(f,m)?l=null:C!==null&&Wf(f,C)&&(r.flags|=32),r.memoizedState!==null&&(f=qd(t,r,TC,null,null,i),Ms._currentValue=f),oc(t,r),nn(t,r,l,i),r.child;case 6:return t===null&&st&&((t=i=Nt)&&(i=c5(i,r.pendingProps,br),i!==null?(r.stateNode=i,mn=r,Nt=null,t=!0):t=!1),t||Xa(r)),null;case 13:return tb(t,r,i);case 4:return Ae(r,r.stateNode.containerInfo),l=r.pendingProps,t===null?r.child=Qo(r,null,l,i):nn(t,r,l,i),r.child;case 11:return Wy(t,r,r.type,r.pendingProps,i);case 7:return nn(t,r,r.pendingProps,i),r.child;case 8:return nn(t,r,r.pendingProps.children,i),r.child;case 12:return nn(t,r,r.pendingProps.children,i),r.child;case 10:return l=r.pendingProps,ua(r,r.type,l.value),nn(t,r,l.children,i),r.child;case 9:return f=r.type._context,l=r.pendingProps.children,Ja(r),f=cn(f),l=l(f),r.flags|=1,nn(t,r,l,i),r.child;case 14:return Yy(t,r,r.type,r.pendingProps,i);case 15:return Ky(t,r,r.type,r.pendingProps,i);case 19:return rb(t,r,i);case 31:return l=r.pendingProps,i=r.mode,l={mode:l.mode,children:l.children},t===null?(i=ic(l,i),i.ref=r.ref,r.child=i,i.return=r,r=i):(i=$r(t.child,l),i.ref=r.ref,r.child=i,i.return=r,r=i),r;case 22:return Qy(t,r,i);case 24:return Ja(r),l=cn(Kt),t===null?(f=Ld(),f===null&&(f=Ct,m=zd(),f.pooledCache=m,m.refCount++,m!==null&&(f.pooledCacheLanes|=i),f=m),r.memoizedState={parent:l,cache:f},$d(r),ua(r,Kt,f)):((t.lanes&i)!==0&&(Bd(t,r),ss(r,null,null,i),is()),f=t.memoizedState,m=r.memoizedState,f.parent!==l?(f={parent:l,cache:l},r.memoizedState=f,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=f),ua(r,Kt,l)):(l=m.cache,ua(r,Kt,l),l!==f.cache&&_d(r,[Kt],i,!0))),nn(t,r,r.pendingProps.children,i),r.child;case 29:throw r.pendingProps}throw Error(o(156,r.tag))}function Gr(t){t.flags|=4}function ob(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!p0(r)){if(r=Gn.current,r!==null&&((rt&4194048)===rt?vr!==null:(rt&62914560)!==rt&&(rt&536870912)===0||r!==vr))throw as=Pd,Ug;t.flags|=8192}}function sc(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?Pm():536870912,t.lanes|=r,ei|=r)}function hs(t,r){if(!st)switch(t.tailMode){case"hidden":r=t.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Ot(t){var r=t.alternate!==null&&t.alternate.child===t.child,i=0,l=0;if(r)for(var f=t.child;f!==null;)i|=f.lanes|f.childLanes,l|=f.subtreeFlags&65011712,l|=f.flags&65011712,f.return=t,f=f.sibling;else for(f=t.child;f!==null;)i|=f.lanes|f.childLanes,l|=f.subtreeFlags,l|=f.flags,f.return=t,f=f.sibling;return t.subtreeFlags|=l,t.childLanes=i,r}function DC(t,r,i){var l=r.pendingProps;switch(Md(r),r.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ot(r),null;case 1:return Ot(r),null;case 3:return i=r.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),r.memoizedState.cache!==l&&(r.flags|=2048),Ur(Kt),Ie(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(Xi(r)?Gr(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Pg())),Ot(r),null;case 26:return i=r.memoizedState,t===null?(Gr(r),i!==null?(Ot(r),ob(r,i)):(Ot(r),r.flags&=-16777217)):i?i!==t.memoizedState?(Gr(r),Ot(r),ob(r,i)):(Ot(r),r.flags&=-16777217):(t.memoizedProps!==l&&Gr(r),Ot(r),r.flags&=-16777217),null;case 27:Ue(r),i=ae.current;var f=r.type;if(t!==null&&r.stateNode!=null)t.memoizedProps!==l&&Gr(r);else{if(!l){if(r.stateNode===null)throw Error(o(166));return Ot(r),null}t=pe.current,Xi(r)?Dg(r):(t=o0(f,l,i),r.stateNode=t,Gr(r))}return Ot(r),null;case 5:if(Ue(r),i=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==l&&Gr(r);else{if(!l){if(r.stateNode===null)throw Error(o(166));return Ot(r),null}if(t=pe.current,Xi(r))Dg(r);else{switch(f=xc(ae.current),t){case 1:t=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:t=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":t=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":t=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":t=f.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?t.multiple=!0:l.size&&(t.size=l.size);break;default:t=typeof l.is=="string"?f.createElement(i,{is:l.is}):f.createElement(i)}}t[ln]=r,t[vn]=l;e:for(f=r.child;f!==null;){if(f.tag===5||f.tag===6)t.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===r)break e;for(;f.sibling===null;){if(f.return===null||f.return===r)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}r.stateNode=t;e:switch(an(t,i,l),i){case"button":case"input":case"select":case"textarea":t=!!l.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&Gr(r)}}return Ot(r),r.flags&=-16777217,null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==l&&Gr(r);else{if(typeof l!="string"&&r.stateNode===null)throw Error(o(166));if(t=ae.current,Xi(r)){if(t=r.stateNode,i=r.memoizedProps,l=null,f=mn,f!==null)switch(f.tag){case 27:case 5:l=f.memoizedProps}t[ln]=r,t=!!(t.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||Zb(t.nodeValue,i)),t||Xa(r)}else t=xc(t).createTextNode(l),t[ln]=r,r.stateNode=t}return Ot(r),null;case 13:if(l=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(f=Xi(r),l!==null&&l.dehydrated!==null){if(t===null){if(!f)throw Error(o(318));if(f=r.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(o(317));f[ln]=r}else Zi(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Ot(r),f=!1}else f=Pg(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=f),f=!0;if(!f)return r.flags&256?(Vr(r),r):(Vr(r),null)}if(Vr(r),(r.flags&128)!==0)return r.lanes=i,r;if(i=l!==null,t=t!==null&&t.memoizedState!==null,i){l=r.child,f=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(f=l.alternate.memoizedState.cachePool.pool);var m=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),m!==f&&(l.flags|=2048)}return i!==t&&i&&(r.child.flags|=8192),sc(r,r.updateQueue),Ot(r),null;case 4:return Ie(),t===null&&Uf(r.stateNode.containerInfo),Ot(r),null;case 10:return Ur(r.type),Ot(r),null;case 19:if(ue(Qt),f=r.memoizedState,f===null)return Ot(r),null;if(l=(r.flags&128)!==0,m=f.rendering,m===null)if(l)hs(f,!1);else{if(_t!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(m=nc(t),m!==null){for(r.flags|=128,hs(f,!1),t=m.updateQueue,r.updateQueue=t,sc(r,t),r.subtreeFlags=0,t=i,i=r.child;i!==null;)_g(i,t),i=i.sibling;return oe(Qt,Qt.current&1|2),r.child}t=t.sibling}f.tail!==null&&it()>uc&&(r.flags|=128,l=!0,hs(f,!1),r.lanes=4194304)}else{if(!l)if(t=nc(m),t!==null){if(r.flags|=128,l=!0,t=t.updateQueue,r.updateQueue=t,sc(r,t),hs(f,!0),f.tail===null&&f.tailMode==="hidden"&&!m.alternate&&!st)return Ot(r),null}else 2*it()-f.renderingStartTime>uc&&i!==536870912&&(r.flags|=128,l=!0,hs(f,!1),r.lanes=4194304);f.isBackwards?(m.sibling=r.child,r.child=m):(t=f.last,t!==null?t.sibling=m:r.child=m,f.last=m)}return f.tail!==null?(r=f.tail,f.rendering=r,f.tail=r.sibling,f.renderingStartTime=it(),r.sibling=null,t=Qt.current,oe(Qt,l?t&1|2:t&1),r):(Ot(r),null);case 22:case 23:return Vr(r),Hd(),l=r.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(r.flags|=8192):l&&(r.flags|=8192),l?(i&536870912)!==0&&(r.flags&128)===0&&(Ot(r),r.subtreeFlags&6&&(r.flags|=8192)):Ot(r),i=r.updateQueue,i!==null&&sc(r,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),l=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),l!==i&&(r.flags|=2048),t!==null&&ue(eo),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),r.memoizedState.cache!==i&&(r.flags|=2048),Ur(Kt),Ot(r),null;case 25:return null;case 30:return null}throw Error(o(156,r.tag))}function LC(t,r){switch(Md(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Ur(Kt),Ie(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return Ue(r),null;case 13:if(Vr(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(o(340));Zi()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return ue(Qt),null;case 4:return Ie(),null;case 10:return Ur(r.type),null;case 22:case 23:return Vr(r),Hd(),t!==null&&ue(eo),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return Ur(Kt),null;case 25:return null;default:return null}}function ib(t,r){switch(Md(r),r.tag){case 3:Ur(Kt),Ie();break;case 26:case 27:case 5:Ue(r);break;case 4:Ie();break;case 13:Vr(r);break;case 19:ue(Qt);break;case 10:Ur(r.type);break;case 22:case 23:Vr(r),Hd(),t!==null&&ue(eo);break;case 24:Ur(Kt)}}function ms(t,r){try{var i=r.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var f=l.next;i=f;do{if((i.tag&t)===t){l=void 0;var m=i.create,C=i.inst;l=m(),C.destroy=l}i=i.next}while(i!==f)}}catch(k){St(r,r.return,k)}}function ya(t,r,i){try{var l=r.updateQueue,f=l!==null?l.lastEffect:null;if(f!==null){var m=f.next;l=m;do{if((l.tag&t)===t){var C=l.inst,k=C.destroy;if(k!==void 0){C.destroy=void 0,f=r;var P=i,te=k;try{te()}catch(ce){St(f,P,ce)}}}l=l.next}while(l!==m)}}catch(ce){St(r,r.return,ce)}}function sb(t){var r=t.updateQueue;if(r!==null){var i=t.stateNode;try{Yg(r,i)}catch(l){St(t,t.return,l)}}}function lb(t,r,i){i.props=no(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(l){St(t,r,l)}}function gs(t,r){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof i=="function"?t.refCleanup=i(l):i.current=l}}catch(f){St(t,r,f)}}function xr(t,r){var i=t.ref,l=t.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(f){St(t,r,f)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(f){St(t,r,f)}else i.current=null}function cb(t){var r=t.type,i=t.memoizedProps,l=t.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break e;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(f){St(t,t.return,f)}}function bf(t,r,i){try{var l=t.stateNode;r5(l,t.type,i,r),l[vn]=r}catch(f){St(t,t.return,f)}}function ub(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ra(t.type)||t.tag===4}function vf(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||ub(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&&Ra(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function xf(t,r,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,r):(r=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,r.appendChild(t),i=i._reactRootContainer,i!=null||r.onclick!==null||(r.onclick=vc));else if(l!==4&&(l===27&&Ra(t.type)&&(i=t.stateNode,r=null),t=t.child,t!==null))for(xf(t,r,i),t=t.sibling;t!==null;)xf(t,r,i),t=t.sibling}function lc(t,r,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?i.insertBefore(t,r):i.appendChild(t);else if(l!==4&&(l===27&&Ra(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(lc(t,r,i),t=t.sibling;t!==null;)lc(t,r,i),t=t.sibling}function db(t){var r=t.stateNode,i=t.memoizedProps;try{for(var l=t.type,f=r.attributes;f.length;)r.removeAttributeNode(f[0]);an(r,l,i),r[ln]=t,r[vn]=i}catch(m){St(t,t.return,m)}}var Wr=!1,Pt=!1,Sf=!1,fb=typeof WeakSet=="function"?WeakSet:Set,en=null;function PC(t,r){if(t=t.containerInfo,qf=Tc,t=wg(t),bd(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var f=l.anchorOffset,m=l.focusNode;l=l.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break e}var C=0,k=-1,P=-1,te=0,ce=0,me=t,ne=null;t:for(;;){for(var re;me!==i||f!==0&&me.nodeType!==3||(k=C+f),me!==m||l!==0&&me.nodeType!==3||(P=C+l),me.nodeType===3&&(C+=me.nodeValue.length),(re=me.firstChild)!==null;)ne=me,me=re;for(;;){if(me===t)break t;if(ne===i&&++te===f&&(k=C),ne===m&&++ce===l&&(P=C),(re=me.nextSibling)!==null)break;me=ne,ne=me.parentNode}me=re}i=k===-1||P===-1?null:{start:k,end:P}}else i=null}i=i||{start:0,end:0}}else i=null;for(Gf={focusedElem:t,selectionRange:i},Tc=!1,en=r;en!==null;)if(r=en,t=r.child,(r.subtreeFlags&1024)!==0&&t!==null)t.return=r,en=t;else for(;en!==null;){switch(r=en,m=r.alternate,t=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&m!==null){t=void 0,i=r,f=m.memoizedProps,m=m.memoizedState,l=i.stateNode;try{var Fe=no(i.type,f,i.elementType===i.type);t=l.getSnapshotBeforeUpdate(Fe,m),l.__reactInternalSnapshotBeforeUpdate=t}catch(Pe){St(i,i.return,Pe)}}break;case 3:if((t&1024)!==0){if(t=r.stateNode.containerInfo,i=t.nodeType,i===9)Kf(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Kf(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(o(163))}if(t=r.sibling,t!==null){t.return=r.return,en=t;break}en=r.return}}function pb(t,r,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:ba(t,i),l&4&&ms(5,i);break;case 1:if(ba(t,i),l&4)if(t=i.stateNode,r===null)try{t.componentDidMount()}catch(C){St(i,i.return,C)}else{var f=no(i.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(f,r,t.__reactInternalSnapshotBeforeUpdate)}catch(C){St(i,i.return,C)}}l&64&&sb(i),l&512&&gs(i,i.return);break;case 3:if(ba(t,i),l&64&&(t=i.updateQueue,t!==null)){if(r=null,i.child!==null)switch(i.child.tag){case 27:case 5:r=i.child.stateNode;break;case 1:r=i.child.stateNode}try{Yg(t,r)}catch(C){St(i,i.return,C)}}break;case 27:r===null&&l&4&&db(i);case 26:case 5:ba(t,i),r===null&&l&4&&cb(i),l&512&&gs(i,i.return);break;case 12:ba(t,i);break;case 13:ba(t,i),l&4&&gb(t,i),l&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=GC.bind(null,i),u5(t,i))));break;case 22:if(l=i.memoizedState!==null||Wr,!l){r=r!==null&&r.memoizedState!==null||Pt,f=Wr;var m=Pt;Wr=l,(Pt=r)&&!m?va(t,i,(i.subtreeFlags&8772)!==0):ba(t,i),Wr=f,Pt=m}break;case 30:break;default:ba(t,i)}}function hb(t){var r=t.alternate;r!==null&&(t.alternate=null,hb(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&Ju(r)),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 jt=null,Cn=!1;function Yr(t,r,i){for(i=i.child;i!==null;)mb(t,r,i),i=i.sibling}function mb(t,r,i){if(Re&&typeof Re.onCommitFiberUnmount=="function")try{Re.onCommitFiberUnmount(Se,i)}catch{}switch(i.tag){case 26:Pt||xr(i,r),Yr(t,r,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Pt||xr(i,r);var l=jt,f=Cn;Ra(i.type)&&(jt=i.stateNode,Cn=!1),Yr(t,r,i),Rs(i.stateNode),jt=l,Cn=f;break;case 5:Pt||xr(i,r);case 6:if(l=jt,f=Cn,jt=null,Yr(t,r,i),jt=l,Cn=f,jt!==null)if(Cn)try{(jt.nodeType===9?jt.body:jt.nodeName==="HTML"?jt.ownerDocument.body:jt).removeChild(i.stateNode)}catch(m){St(i,r,m)}else try{jt.removeChild(i.stateNode)}catch(m){St(i,r,m)}break;case 18:jt!==null&&(Cn?(t=jt,r0(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),_s(t)):r0(jt,i.stateNode));break;case 4:l=jt,f=Cn,jt=i.stateNode.containerInfo,Cn=!0,Yr(t,r,i),jt=l,Cn=f;break;case 0:case 11:case 14:case 15:Pt||ya(2,i,r),Pt||ya(4,i,r),Yr(t,r,i);break;case 1:Pt||(xr(i,r),l=i.stateNode,typeof l.componentWillUnmount=="function"&&lb(i,r,l)),Yr(t,r,i);break;case 21:Yr(t,r,i);break;case 22:Pt=(l=Pt)||i.memoizedState!==null,Yr(t,r,i),Pt=l;break;default:Yr(t,r,i)}}function gb(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{_s(t)}catch(i){St(r,r.return,i)}}function $C(t){switch(t.tag){case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new fb),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new fb),r;default:throw Error(o(435,t.tag))}}function Cf(t,r){var i=$C(t);r.forEach(function(l){var f=WC.bind(null,t,l);i.has(l)||(i.add(l),l.then(f,f))})}function Nn(t,r){var i=r.deletions;if(i!==null)for(var l=0;l<i.length;l++){var f=i[l],m=t,C=r,k=C;e:for(;k!==null;){switch(k.tag){case 27:if(Ra(k.type)){jt=k.stateNode,Cn=!1;break e}break;case 5:jt=k.stateNode,Cn=!1;break e;case 3:case 4:jt=k.stateNode.containerInfo,Cn=!0;break e}k=k.return}if(jt===null)throw Error(o(160));mb(m,C,f),jt=null,Cn=!1,m=f.alternate,m!==null&&(m.return=null),f.return=null}if(r.subtreeFlags&13878)for(r=r.child;r!==null;)yb(r,t),r=r.sibling}var ur=null;function yb(t,r){var i=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Nn(r,t),_n(t),l&4&&(ya(3,t,t.return),ms(3,t),ya(5,t,t.return));break;case 1:Nn(r,t),_n(t),l&512&&(Pt||i===null||xr(i,i.return)),l&64&&Wr&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var f=ur;if(Nn(r,t),_n(t),l&512&&(Pt||i===null||xr(i,i.return)),l&4){var m=i!==null?i.memoizedState:null;if(l=t.memoizedState,i===null)if(l===null)if(t.stateNode===null){e:{l=t.type,i=t.memoizedProps,f=f.ownerDocument||f;t:switch(l){case"title":m=f.getElementsByTagName("title")[0],(!m||m[Ii]||m[ln]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=f.createElement(l),f.head.insertBefore(m,f.querySelector("head > title"))),an(m,l,i),m[ln]=t,Zt(m),l=m;break e;case"link":var C=d0("link","href",f).get(l+(i.href||""));if(C){for(var k=0;k<C.length;k++)if(m=C[k],m.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&m.getAttribute("rel")===(i.rel==null?null:i.rel)&&m.getAttribute("title")===(i.title==null?null:i.title)&&m.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){C.splice(k,1);break t}}m=f.createElement(l),an(m,l,i),f.head.appendChild(m);break;case"meta":if(C=d0("meta","content",f).get(l+(i.content||""))){for(k=0;k<C.length;k++)if(m=C[k],m.getAttribute("content")===(i.content==null?null:""+i.content)&&m.getAttribute("name")===(i.name==null?null:i.name)&&m.getAttribute("property")===(i.property==null?null:i.property)&&m.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&m.getAttribute("charset")===(i.charSet==null?null:i.charSet)){C.splice(k,1);break t}}m=f.createElement(l),an(m,l,i),f.head.appendChild(m);break;default:throw Error(o(468,l))}m[ln]=t,Zt(m),l=m}t.stateNode=l}else f0(f,t.type,t.stateNode);else t.stateNode=u0(f,l,t.memoizedProps);else m!==l?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,l===null?f0(f,t.type,t.stateNode):u0(f,l,t.memoizedProps)):l===null&&t.stateNode!==null&&bf(t,t.memoizedProps,i.memoizedProps)}break;case 27:Nn(r,t),_n(t),l&512&&(Pt||i===null||xr(i,i.return)),i!==null&&l&4&&bf(t,t.memoizedProps,i.memoizedProps);break;case 5:if(Nn(r,t),_n(t),l&512&&(Pt||i===null||xr(i,i.return)),t.flags&32){f=t.stateNode;try{No(f,"")}catch(re){St(t,t.return,re)}}l&4&&t.stateNode!=null&&(f=t.memoizedProps,bf(t,f,i!==null?i.memoizedProps:f)),l&1024&&(Sf=!0);break;case 6:if(Nn(r,t),_n(t),l&4){if(t.stateNode===null)throw Error(o(162));l=t.memoizedProps,i=t.stateNode;try{i.nodeValue=l}catch(re){St(t,t.return,re)}}break;case 3:if(wc=null,f=ur,ur=Sc(r.containerInfo),Nn(r,t),ur=f,_n(t),l&4&&i!==null&&i.memoizedState.isDehydrated)try{_s(r.containerInfo)}catch(re){St(t,t.return,re)}Sf&&(Sf=!1,bb(t));break;case 4:l=ur,ur=Sc(t.stateNode.containerInfo),Nn(r,t),_n(t),ur=l;break;case 12:Nn(r,t),_n(t);break;case 13:Nn(r,t),_n(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(jf=it()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Cf(t,l)));break;case 22:f=t.memoizedState!==null;var P=i!==null&&i.memoizedState!==null,te=Wr,ce=Pt;if(Wr=te||f,Pt=ce||P,Nn(r,t),Pt=ce,Wr=te,_n(t),l&8192)e:for(r=t.stateNode,r._visibility=f?r._visibility&-2:r._visibility|1,f&&(i===null||P||Wr||Pt||ro(t)),i=null,r=t;;){if(r.tag===5||r.tag===26){if(i===null){P=i=r;try{if(m=P.stateNode,f)C=m.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none";else{k=P.stateNode;var me=P.memoizedProps.style,ne=me!=null&&me.hasOwnProperty("display")?me.display:null;k.style.display=ne==null||typeof ne=="boolean"?"":(""+ne).trim()}}catch(re){St(P,P.return,re)}}}else if(r.tag===6){if(i===null){P=r;try{P.stateNode.nodeValue=f?"":P.memoizedProps}catch(re){St(P,P.return,re)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===t)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;i===r&&(i=null),r=r.return}i===r&&(i=null),r.sibling.return=r.return,r=r.sibling}l&4&&(l=t.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,Cf(t,i))));break;case 19:Nn(r,t),_n(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Cf(t,l)));break;case 30:break;case 21:break;default:Nn(r,t),_n(t)}}function _n(t){var r=t.flags;if(r&2){try{for(var i,l=t.return;l!==null;){if(ub(l)){i=l;break}l=l.return}if(i==null)throw Error(o(160));switch(i.tag){case 27:var f=i.stateNode,m=vf(t);lc(t,m,f);break;case 5:var C=i.stateNode;i.flags&32&&(No(C,""),i.flags&=-33);var k=vf(t);lc(t,k,C);break;case 3:case 4:var P=i.stateNode.containerInfo,te=vf(t);xf(t,te,P);break;default:throw Error(o(161))}}catch(ce){St(t,t.return,ce)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function bb(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;bb(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function ba(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)pb(t,r.alternate,r),r=r.sibling}function ro(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:ya(4,r,r.return),ro(r);break;case 1:xr(r,r.return);var i=r.stateNode;typeof i.componentWillUnmount=="function"&&lb(r,r.return,i),ro(r);break;case 27:Rs(r.stateNode);case 26:case 5:xr(r,r.return),ro(r);break;case 22:r.memoizedState===null&&ro(r);break;case 30:ro(r);break;default:ro(r)}t=t.sibling}}function va(t,r,i){for(i=i&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var l=r.alternate,f=t,m=r,C=m.flags;switch(m.tag){case 0:case 11:case 15:va(f,m,i),ms(4,m);break;case 1:if(va(f,m,i),l=m,f=l.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(te){St(l,l.return,te)}if(l=m,f=l.updateQueue,f!==null){var k=l.stateNode;try{var P=f.shared.hiddenCallbacks;if(P!==null)for(f.shared.hiddenCallbacks=null,f=0;f<P.length;f++)Wg(P[f],k)}catch(te){St(l,l.return,te)}}i&&C&64&&sb(m),gs(m,m.return);break;case 27:db(m);case 26:case 5:va(f,m,i),i&&l===null&&C&4&&cb(m),gs(m,m.return);break;case 12:va(f,m,i);break;case 13:va(f,m,i),i&&C&4&&gb(f,m);break;case 22:m.memoizedState===null&&va(f,m,i),gs(m,m.return);break;case 30:break;default:va(f,m,i)}r=r.sibling}}function wf(t,r){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(t=r.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&ts(i))}function Ef(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&ts(t))}function Sr(t,r,i,l){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)vb(t,r,i,l),r=r.sibling}function vb(t,r,i,l){var f=r.flags;switch(r.tag){case 0:case 11:case 15:Sr(t,r,i,l),f&2048&&ms(9,r);break;case 1:Sr(t,r,i,l);break;case 3:Sr(t,r,i,l),f&2048&&(t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&ts(t)));break;case 12:if(f&2048){Sr(t,r,i,l),t=r.stateNode;try{var m=r.memoizedProps,C=m.id,k=m.onPostCommit;typeof k=="function"&&k(C,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(P){St(r,r.return,P)}}else Sr(t,r,i,l);break;case 13:Sr(t,r,i,l);break;case 23:break;case 22:m=r.stateNode,C=r.alternate,r.memoizedState!==null?m._visibility&2?Sr(t,r,i,l):ys(t,r):m._visibility&2?Sr(t,r,i,l):(m._visibility|=2,Xo(t,r,i,l,(r.subtreeFlags&10256)!==0)),f&2048&&wf(C,r);break;case 24:Sr(t,r,i,l),f&2048&&Ef(r.alternate,r);break;default:Sr(t,r,i,l)}}function Xo(t,r,i,l,f){for(f=f&&(r.subtreeFlags&10256)!==0,r=r.child;r!==null;){var m=t,C=r,k=i,P=l,te=C.flags;switch(C.tag){case 0:case 11:case 15:Xo(m,C,k,P,f),ms(8,C);break;case 23:break;case 22:var ce=C.stateNode;C.memoizedState!==null?ce._visibility&2?Xo(m,C,k,P,f):ys(m,C):(ce._visibility|=2,Xo(m,C,k,P,f)),f&&te&2048&&wf(C.alternate,C);break;case 24:Xo(m,C,k,P,f),f&&te&2048&&Ef(C.alternate,C);break;default:Xo(m,C,k,P,f)}r=r.sibling}}function ys(t,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var i=t,l=r,f=l.flags;switch(l.tag){case 22:ys(i,l),f&2048&&wf(l.alternate,l);break;case 24:ys(i,l),f&2048&&Ef(l.alternate,l);break;default:ys(i,l)}r=r.sibling}}var bs=8192;function Zo(t){if(t.subtreeFlags&bs)for(t=t.child;t!==null;)xb(t),t=t.sibling}function xb(t){switch(t.tag){case 26:Zo(t),t.flags&bs&&t.memoizedState!==null&&w5(ur,t.memoizedState,t.memoizedProps);break;case 5:Zo(t);break;case 3:case 4:var r=ur;ur=Sc(t.stateNode.containerInfo),Zo(t),ur=r;break;case 22:t.memoizedState===null&&(r=t.alternate,r!==null&&r.memoizedState!==null?(r=bs,bs=16777216,Zo(t),bs=r):Zo(t));break;default:Zo(t)}}function Sb(t){var r=t.alternate;if(r!==null&&(t=r.child,t!==null)){r.child=null;do r=t.sibling,t.sibling=null,t=r;while(t!==null)}}function vs(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var i=0;i<r.length;i++){var l=r[i];en=l,wb(l,t)}Sb(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Cb(t),t=t.sibling}function Cb(t){switch(t.tag){case 0:case 11:case 15:vs(t),t.flags&2048&&ya(9,t,t.return);break;case 3:vs(t);break;case 12:vs(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&2&&(t.return===null||t.return.tag!==13)?(r._visibility&=-3,cc(t)):vs(t);break;default:vs(t)}}function cc(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var i=0;i<r.length;i++){var l=r[i];en=l,wb(l,t)}Sb(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:ya(8,r,r.return),cc(r);break;case 22:i=r.stateNode,i._visibility&2&&(i._visibility&=-3,cc(r));break;default:cc(r)}t=t.sibling}}function wb(t,r){for(;en!==null;){var i=en;switch(i.tag){case 0:case 11:case 15:ya(8,i,r);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ts(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,en=l;else e:for(i=t;en!==null;){l=en;var f=l.sibling,m=l.return;if(hb(l),l===i){en=null;break e}if(f!==null){f.return=m,en=f;break e}en=m}}}var BC={getCacheForType:function(t){var r=cn(Kt),i=r.data.get(t);return i===void 0&&(i=t(),r.data.set(t,i)),i}},IC=typeof WeakMap=="function"?WeakMap:Map,dt=0,Ct=null,Ze=null,rt=0,ft=0,zn=null,xa=!1,Jo=!1,Rf=!1,Kr=0,_t=0,Sa=0,ao=0,Tf=0,Wn=0,ei=0,xs=null,wn=null,Af=!1,jf=0,uc=1/0,dc=null,Ca=null,rn=0,wa=null,ti=null,ni=0,Mf=0,kf=null,Eb=null,Ss=0,Of=null;function Dn(){if((dt&2)!==0&&rt!==0)return rt&-rt;if(D.T!==null){var t=Ho;return t!==0?t:$f()}return Im()}function Rb(){Wn===0&&(Wn=(rt&536870912)===0||st?$i():536870912);var t=Gn.current;return t!==null&&(t.flags|=32),Wn}function Ln(t,r,i){(t===Ct&&(ft===2||ft===9)||t.cancelPendingCommit!==null)&&(ri(t,0),Ea(t,rt,Wn,!1)),Bi(t,i),((dt&2)===0||t!==Ct)&&(t===Ct&&((dt&2)===0&&(ao|=i),_t===4&&Ea(t,rt,Wn,!1)),Cr(t))}function Tb(t,r,i){if((dt&6)!==0)throw Error(o(327));var l=!i&&(r&124)===0&&(r&t.expiredLanes)===0||Et(t,r),f=l?HC(t,r):zf(t,r,!0),m=l;do{if(f===0){Jo&&!l&&Ea(t,r,0,!1);break}else{if(i=t.current.alternate,m&&!FC(i)){f=zf(t,r,!1),m=!1;continue}if(f===2){if(m=r,t.errorRecoveryDisabledLanes&m)var C=0;else C=t.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){r=C;e:{var k=t;f=xs;var P=k.current.memoizedState.isDehydrated;if(P&&(ri(k,C).flags|=256),C=zf(k,C,!1),C!==2){if(Rf&&!P){k.errorRecoveryDisabledLanes|=m,ao|=m,f=4;break e}m=wn,wn=f,m!==null&&(wn===null?wn=m:wn.push.apply(wn,m))}f=C}if(m=!1,f!==2)continue}}if(f===1){ri(t,0),Ea(t,r,0,!0);break}e:{switch(l=t,m=f,m){case 0:case 1:throw Error(o(345));case 4:if((r&4194048)!==r)break;case 6:Ea(l,r,Wn,!xa);break e;case 2:wn=null;break;case 3:case 5:break;default:throw Error(o(329))}if((r&62914560)===r&&(f=jf+300-it(),10<f)){if(Ea(l,r,Wn,!xa),at(l,0,!0)!==0)break e;l.timeoutHandle=t0(Ab.bind(null,l,i,wn,dc,Af,r,Wn,ao,ei,xa,m,2,-0,0),f);break e}Ab(l,i,wn,dc,Af,r,Wn,ao,ei,xa,m,0,-0,0)}}break}while(!0);Cr(t)}function Ab(t,r,i,l,f,m,C,k,P,te,ce,me,ne,re){if(t.timeoutHandle=-1,me=r.subtreeFlags,(me&8192||(me&16785408)===16785408)&&(js={stylesheets:null,count:0,unsuspend:C5},xb(r),me=E5(),me!==null)){t.cancelPendingCommit=me(zb.bind(null,t,r,m,i,l,f,C,k,P,ce,1,ne,re)),Ea(t,m,C,!te);return}zb(t,r,m,i,l,f,C,k,P)}function FC(t){for(var r=t;;){var i=r.tag;if((i===0||i===11||i===15)&&r.flags&16384&&(i=r.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var f=i[l],m=f.getSnapshot;f=f.value;try{if(!kn(m(),f))return!1}catch{return!1}}if(i=r.child,r.subtreeFlags&16384&&i!==null)i.return=r,r=i;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Ea(t,r,i,l){r&=~Tf,r&=~ao,t.suspendedLanes|=r,t.pingedLanes&=~r,l&&(t.warmLanes|=r),l=t.expirationTimes;for(var f=r;0<f;){var m=31-Ve(f),C=1<<m;l[m]=-1,f&=~C}i!==0&&$m(t,i,r)}function fc(){return(dt&6)===0?(Cs(0),!1):!0}function Nf(){if(Ze!==null){if(ft===0)var t=Ze.return;else t=Ze,Fr=Za=null,Yd(t),Ko=null,fs=0,t=Ze;for(;t!==null;)ib(t.alternate,t),t=t.return;Ze=null}}function ri(t,r){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,o5(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Nf(),Ct=t,Ze=i=$r(t.current,null),rt=r,ft=0,zn=null,xa=!1,Jo=Et(t,r),Rf=!1,ei=Wn=Tf=ao=Sa=_t=0,wn=xs=null,Af=!1,(r&8)!==0&&(r|=r&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=r;0<l;){var f=31-Ve(l),m=1<<f;r|=t[f],l&=~m}return Kr=r,zl(),i}function jb(t,r){Ke=null,D.H=Jl,r===rs||r===Hl?(r=qg(),ft=3):r===Ug?(r=qg(),ft=4):ft=r===Gy?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,zn=r,Ze===null&&(_t=1,ac(t,Un(r,t.current)))}function Mb(){var t=D.H;return D.H=Jl,t===null?Jl:t}function kb(){var t=D.A;return D.A=BC,t}function _f(){_t=4,xa||(rt&4194048)!==rt&&Gn.current!==null||(Jo=!0),(Sa&134217727)===0&&(ao&134217727)===0||Ct===null||Ea(Ct,rt,Wn,!1)}function zf(t,r,i){var l=dt;dt|=2;var f=Mb(),m=kb();(Ct!==t||rt!==r)&&(dc=null,ri(t,r)),r=!1;var C=_t;e:do try{if(ft!==0&&Ze!==null){var k=Ze,P=zn;switch(ft){case 8:Nf(),C=6;break e;case 3:case 2:case 9:case 6:Gn.current===null&&(r=!0);var te=ft;if(ft=0,zn=null,ai(t,k,P,te),i&&Jo){C=0;break e}break;default:te=ft,ft=0,zn=null,ai(t,k,P,te)}}UC(),C=_t;break}catch(ce){jb(t,ce)}while(!0);return r&&t.shellSuspendCounter++,Fr=Za=null,dt=l,D.H=f,D.A=m,Ze===null&&(Ct=null,rt=0,zl()),C}function UC(){for(;Ze!==null;)Ob(Ze)}function HC(t,r){var i=dt;dt|=2;var l=Mb(),f=kb();Ct!==t||rt!==r?(dc=null,uc=it()+500,ri(t,r)):Jo=Et(t,r);e:do try{if(ft!==0&&Ze!==null){r=Ze;var m=zn;t:switch(ft){case 1:ft=0,zn=null,ai(t,r,m,1);break;case 2:case 9:if(Hg(m)){ft=0,zn=null,Nb(r);break}r=function(){ft!==2&&ft!==9||Ct!==t||(ft=7),Cr(t)},m.then(r,r);break e;case 3:ft=7;break e;case 4:ft=5;break e;case 7:Hg(m)?(ft=0,zn=null,Nb(r)):(ft=0,zn=null,ai(t,r,m,7));break;case 5:var C=null;switch(Ze.tag){case 26:C=Ze.memoizedState;case 5:case 27:var k=Ze;if(!C||p0(C)){ft=0,zn=null;var P=k.sibling;if(P!==null)Ze=P;else{var te=k.return;te!==null?(Ze=te,pc(te)):Ze=null}break t}}ft=0,zn=null,ai(t,r,m,5);break;case 6:ft=0,zn=null,ai(t,r,m,6);break;case 8:Nf(),_t=6;break e;default:throw Error(o(462))}}VC();break}catch(ce){jb(t,ce)}while(!0);return Fr=Za=null,D.H=l,D.A=f,dt=i,Ze!==null?0:(Ct=null,rt=0,zl(),_t)}function VC(){for(;Ze!==null&&!nt();)Ob(Ze)}function Ob(t){var r=ab(t.alternate,t,Kr);t.memoizedProps=t.pendingProps,r===null?pc(t):Ze=r}function Nb(t){var r=t,i=r.alternate;switch(r.tag){case 15:case 0:r=Zy(i,r,r.pendingProps,r.type,void 0,rt);break;case 11:r=Zy(i,r,r.pendingProps,r.type.render,r.ref,rt);break;case 5:Yd(r);default:ib(i,r),r=Ze=_g(r,Kr),r=ab(i,r,Kr)}t.memoizedProps=t.pendingProps,r===null?pc(t):Ze=r}function ai(t,r,i,l){Fr=Za=null,Yd(r),Ko=null,fs=0;var f=r.return;try{if(_C(t,f,r,i,rt)){_t=1,ac(t,Un(i,t.current)),Ze=null;return}}catch(m){if(f!==null)throw Ze=f,m;_t=1,ac(t,Un(i,t.current)),Ze=null;return}r.flags&32768?(st||l===1?t=!0:Jo||(rt&536870912)!==0?t=!1:(xa=t=!0,(l===2||l===9||l===3||l===6)&&(l=Gn.current,l!==null&&l.tag===13&&(l.flags|=16384))),_b(r,t)):pc(r)}function pc(t){var r=t;do{if((r.flags&32768)!==0){_b(r,xa);return}t=r.return;var i=DC(r.alternate,r,Kr);if(i!==null){Ze=i;return}if(r=r.sibling,r!==null){Ze=r;return}Ze=r=t}while(r!==null);_t===0&&(_t=5)}function _b(t,r){do{var i=LC(t.alternate,t);if(i!==null){i.flags&=32767,Ze=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!r&&(t=t.sibling,t!==null)){Ze=t;return}Ze=t=i}while(t!==null);_t=6,Ze=null}function zb(t,r,i,l,f,m,C,k,P){t.cancelPendingCommit=null;do hc();while(rn!==0);if((dt&6)!==0)throw Error(o(327));if(r!==null){if(r===t.current)throw Error(o(177));if(m=r.lanes|r.childLanes,m|=wd,C2(t,i,m,C,k,P),t===Ct&&(Ze=Ct=null,rt=0),ti=r,wa=t,ni=i,Mf=m,kf=f,Eb=l,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,YC(Y,function(){return Bb(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||l){l=D.T,D.T=null,f=I.p,I.p=2,C=dt,dt|=4;try{PC(t,r,i)}finally{dt=C,I.p=f,D.T=l}}rn=1,Db(),Lb(),Pb()}}function Db(){if(rn===1){rn=0;var t=wa,r=ti,i=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||i){i=D.T,D.T=null;var l=I.p;I.p=2;var f=dt;dt|=4;try{yb(r,t);var m=Gf,C=wg(t.containerInfo),k=m.focusedElem,P=m.selectionRange;if(C!==k&&k&&k.ownerDocument&&Cg(k.ownerDocument.documentElement,k)){if(P!==null&&bd(k)){var te=P.start,ce=P.end;if(ce===void 0&&(ce=te),"selectionStart"in k)k.selectionStart=te,k.selectionEnd=Math.min(ce,k.value.length);else{var me=k.ownerDocument||document,ne=me&&me.defaultView||window;if(ne.getSelection){var re=ne.getSelection(),Fe=k.textContent.length,Pe=Math.min(P.start,Fe),bt=P.end===void 0?Pe:Math.min(P.end,Fe);!re.extend&&Pe>bt&&(C=bt,bt=Pe,Pe=C);var Q=Sg(k,Pe),U=Sg(k,bt);if(Q&&U&&(re.rangeCount!==1||re.anchorNode!==Q.node||re.anchorOffset!==Q.offset||re.focusNode!==U.node||re.focusOffset!==U.offset)){var ee=me.createRange();ee.setStart(Q.node,Q.offset),re.removeAllRanges(),Pe>bt?(re.addRange(ee),re.extend(U.node,U.offset)):(ee.setEnd(U.node,U.offset),re.addRange(ee))}}}}for(me=[],re=k;re=re.parentNode;)re.nodeType===1&&me.push({element:re,left:re.scrollLeft,top:re.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;k<me.length;k++){var de=me[k];de.element.scrollLeft=de.left,de.element.scrollTop=de.top}}Tc=!!qf,Gf=qf=null}finally{dt=f,I.p=l,D.T=i}}t.current=r,rn=2}}function Lb(){if(rn===2){rn=0;var t=wa,r=ti,i=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||i){i=D.T,D.T=null;var l=I.p;I.p=2;var f=dt;dt|=4;try{pb(t,r.alternate,r)}finally{dt=f,I.p=l,D.T=i}}rn=3}}function Pb(){if(rn===4||rn===3){rn=0,Yt();var t=wa,r=ti,i=ni,l=Eb;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?rn=5:(rn=0,ti=wa=null,$b(t,t.pendingLanes));var f=t.pendingLanes;if(f===0&&(Ca=null),Xu(i),r=r.stateNode,Re&&typeof Re.onCommitFiberRoot=="function")try{Re.onCommitFiberRoot(Se,r,void 0,(r.current.flags&128)===128)}catch{}if(l!==null){r=D.T,f=I.p,I.p=2,D.T=null;try{for(var m=t.onRecoverableError,C=0;C<l.length;C++){var k=l[C];m(k.value,{componentStack:k.stack})}}finally{D.T=r,I.p=f}}(ni&3)!==0&&hc(),Cr(t),f=t.pendingLanes,(i&4194090)!==0&&(f&42)!==0?t===Of?Ss++:(Ss=0,Of=t):Ss=0,Cs(0)}}function $b(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,ts(r)))}function hc(t){return Db(),Lb(),Pb(),Bb()}function Bb(){if(rn!==5)return!1;var t=wa,r=Mf;Mf=0;var i=Xu(ni),l=D.T,f=I.p;try{I.p=32>i?32:i,D.T=null,i=kf,kf=null;var m=wa,C=ni;if(rn=0,ti=wa=null,ni=0,(dt&6)!==0)throw Error(o(331));var k=dt;if(dt|=4,Cb(m.current),vb(m,m.current,C,i),dt=k,Cs(0,!1),Re&&typeof Re.onPostCommitFiberRoot=="function")try{Re.onPostCommitFiberRoot(Se,m)}catch{}return!0}finally{I.p=f,D.T=l,$b(t,r)}}function Ib(t,r,i){r=Un(i,r),r=cf(t.stateNode,r,2),t=pa(t,r,2),t!==null&&(Bi(t,2),Cr(t))}function St(t,r,i){if(t.tag===3)Ib(t,t,i);else for(;r!==null;){if(r.tag===3){Ib(r,t,i);break}else if(r.tag===1){var l=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ca===null||!Ca.has(l))){t=Un(i,t),i=Vy(2),l=pa(r,i,2),l!==null&&(qy(i,l,r,t),Bi(l,2),Cr(l));break}}r=r.return}}function Df(t,r,i){var l=t.pingCache;if(l===null){l=t.pingCache=new IC;var f=new Set;l.set(r,f)}else f=l.get(r),f===void 0&&(f=new Set,l.set(r,f));f.has(i)||(Rf=!0,f.add(i),t=qC.bind(null,t,r,i),r.then(t,t))}function qC(t,r,i){var l=t.pingCache;l!==null&&l.delete(r),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,Ct===t&&(rt&i)===i&&(_t===4||_t===3&&(rt&62914560)===rt&&300>it()-jf?(dt&2)===0&&ri(t,0):Tf|=i,ei===rt&&(ei=0)),Cr(t)}function Fb(t,r){r===0&&(r=Pm()),t=Bo(t,r),t!==null&&(Bi(t,r),Cr(t))}function GC(t){var r=t.memoizedState,i=0;r!==null&&(i=r.retryLane),Fb(t,i)}function WC(t,r){var i=0;switch(t.tag){case 13:var l=t.stateNode,f=t.memoizedState;f!==null&&(i=f.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(r),Fb(t,i)}function YC(t,r){return Ye(t,r)}var mc=null,oi=null,Lf=!1,gc=!1,Pf=!1,oo=0;function Cr(t){t!==oi&&t.next===null&&(oi===null?mc=oi=t:oi=oi.next=t),gc=!0,Lf||(Lf=!0,QC())}function Cs(t,r){if(!Pf&&gc){Pf=!0;do for(var i=!1,l=mc;l!==null;){if(t!==0){var f=l.pendingLanes;if(f===0)var m=0;else{var C=l.suspendedLanes,k=l.pingedLanes;m=(1<<31-Ve(42|t)+1)-1,m&=f&~(C&~k),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,qb(l,m))}else m=rt,m=at(l,l===Ct?m:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(m&3)===0||Et(l,m)||(i=!0,qb(l,m));l=l.next}while(i);Pf=!1}}function KC(){Ub()}function Ub(){gc=Lf=!1;var t=0;oo!==0&&(a5()&&(t=oo),oo=0);for(var r=it(),i=null,l=mc;l!==null;){var f=l.next,m=Hb(l,r);m===0?(l.next=null,i===null?mc=f:i.next=f,f===null&&(oi=i)):(i=l,(t!==0||(m&3)!==0)&&(gc=!0)),l=f}Cs(t)}function Hb(t,r){for(var i=t.suspendedLanes,l=t.pingedLanes,f=t.expirationTimes,m=t.pendingLanes&-62914561;0<m;){var C=31-Ve(m),k=1<<C,P=f[C];P===-1?((k&i)===0||(k&l)!==0)&&(f[C]=lr(k,r)):P<=r&&(t.expiredLanes|=k),m&=~k}if(r=Ct,i=rt,i=at(t,t===r?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,i===0||t===r&&(ft===2||ft===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&De(l),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||Et(t,i)){if(r=i&-i,r===t.callbackPriority)return r;switch(l!==null&&De(l),Xu(i)){case 2:case 8:i=$;break;case 32:i=Y;break;case 268435456:i=ve;break;default:i=Y}return l=Vb.bind(null,t),i=Ye(i,l),t.callbackPriority=r,t.callbackNode=i,r}return l!==null&&l!==null&&De(l),t.callbackPriority=2,t.callbackNode=null,2}function Vb(t,r){if(rn!==0&&rn!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(hc()&&t.callbackNode!==i)return null;var l=rt;return l=at(t,t===Ct?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Tb(t,l,r),Hb(t,it()),t.callbackNode!=null&&t.callbackNode===i?Vb.bind(null,t):null)}function qb(t,r){if(hc())return null;Tb(t,r,!0)}function QC(){i5(function(){(dt&6)!==0?Ye(mt,KC):Ub()})}function $f(){return oo===0&&(oo=$i()),oo}function Gb(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Al(""+t)}function Wb(t,r){var i=r.ownerDocument.createElement("input");return i.name=r.name,i.value=r.value,t.id&&i.setAttribute("form",t.id),r.parentNode.insertBefore(i,r),t=new FormData(t),i.parentNode.removeChild(i),t}function XC(t,r,i,l,f){if(r==="submit"&&i&&i.stateNode===f){var m=Gb((f[vn]||null).action),C=l.submitter;C&&(r=(r=C[vn]||null)?Gb(r.formAction):C.getAttribute("formAction"),r!==null&&(m=r,C=null));var k=new Ol("action","action",null,l,f);t.push({event:k,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(oo!==0){var P=C?Wb(f,C):new FormData(f);rf(i,{pending:!0,data:P,method:f.method,action:m},null,P)}}else typeof m=="function"&&(k.preventDefault(),P=C?Wb(f,C):new FormData(f),rf(i,{pending:!0,data:P,method:f.method,action:m},m,P))},currentTarget:f}]})}}for(var Bf=0;Bf<Cd.length;Bf++){var If=Cd[Bf],ZC=If.toLowerCase(),JC=If[0].toUpperCase()+If.slice(1);cr(ZC,"on"+JC)}cr(Tg,"onAnimationEnd"),cr(Ag,"onAnimationIteration"),cr(jg,"onAnimationStart"),cr("dblclick","onDoubleClick"),cr("focusin","onFocus"),cr("focusout","onBlur"),cr(gC,"onTransitionRun"),cr(yC,"onTransitionStart"),cr(bC,"onTransitionCancel"),cr(Mg,"onTransitionEnd"),Mo("onMouseEnter",["mouseout","mouseover"]),Mo("onMouseLeave",["mouseout","mouseover"]),Mo("onPointerEnter",["pointerout","pointerover"]),Mo("onPointerLeave",["pointerout","pointerover"]),Ha("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ha("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ha("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ha("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ha("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ha("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ws="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(" "),e5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ws));function Yb(t,r){r=(r&4)!==0;for(var i=0;i<t.length;i++){var l=t[i],f=l.event;l=l.listeners;e:{var m=void 0;if(r)for(var C=l.length-1;0<=C;C--){var k=l[C],P=k.instance,te=k.currentTarget;if(k=k.listener,P!==m&&f.isPropagationStopped())break e;m=k,f.currentTarget=te;try{m(f)}catch(ce){rc(ce)}f.currentTarget=null,m=P}else for(C=0;C<l.length;C++){if(k=l[C],P=k.instance,te=k.currentTarget,k=k.listener,P!==m&&f.isPropagationStopped())break e;m=k,f.currentTarget=te;try{m(f)}catch(ce){rc(ce)}f.currentTarget=null,m=P}}}}function Je(t,r){var i=r[Zu];i===void 0&&(i=r[Zu]=new Set);var l=t+"__bubble";i.has(l)||(Kb(r,t,2,!1),i.add(l))}function Ff(t,r,i){var l=0;r&&(l|=4),Kb(i,t,l,r)}var yc="_reactListening"+Math.random().toString(36).slice(2);function Uf(t){if(!t[yc]){t[yc]=!0,Um.forEach(function(i){i!=="selectionchange"&&(e5.has(i)||Ff(i,!1,t),Ff(i,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[yc]||(r[yc]=!0,Ff("selectionchange",!1,r))}}function Kb(t,r,i,l){switch(v0(r)){case 2:var f=A5;break;case 8:f=j5;break;default:f=np}i=f.bind(null,r,i,t),f=void 0,!cd||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(f=!0),l?f!==void 0?t.addEventListener(r,i,{capture:!0,passive:f}):t.addEventListener(r,i,!0):f!==void 0?t.addEventListener(r,i,{passive:f}):t.addEventListener(r,i,!1)}function Hf(t,r,i,l,f){var m=l;if((r&1)===0&&(r&2)===0&&l!==null)e:for(;;){if(l===null)return;var C=l.tag;if(C===3||C===4){var k=l.stateNode.containerInfo;if(k===f)break;if(C===4)for(C=l.return;C!==null;){var P=C.tag;if((P===3||P===4)&&C.stateNode.containerInfo===f)return;C=C.return}for(;k!==null;){if(C=To(k),C===null)return;if(P=C.tag,P===5||P===6||P===26||P===27){l=m=C;continue e}k=k.parentNode}}l=l.return}ng(function(){var te=m,ce=sd(i),me=[];e:{var ne=kg.get(t);if(ne!==void 0){var re=Ol,Fe=t;switch(t){case"keypress":if(Ml(i)===0)break e;case"keydown":case"keyup":re=Y2;break;case"focusin":Fe="focus",re=pd;break;case"focusout":Fe="blur",re=pd;break;case"beforeblur":case"afterblur":re=pd;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":re=og;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=L2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=X2;break;case Tg:case Ag:case jg:re=B2;break;case Mg:re=J2;break;case"scroll":case"scrollend":re=z2;break;case"wheel":re=tC;break;case"copy":case"cut":case"paste":re=F2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=sg;break;case"toggle":case"beforetoggle":re=rC}var Pe=(r&4)!==0,bt=!Pe&&(t==="scroll"||t==="scrollend"),Q=Pe?ne!==null?ne+"Capture":null:ne;Pe=[];for(var U=te,ee;U!==null;){var de=U;if(ee=de.stateNode,de=de.tag,de!==5&&de!==26&&de!==27||ee===null||Q===null||(de=Ui(U,Q),de!=null&&Pe.push(Es(U,de,ee))),bt)break;U=U.return}0<Pe.length&&(ne=new re(ne,Fe,null,i,ce),me.push({event:ne,listeners:Pe}))}}if((r&7)===0){e:{if(ne=t==="mouseover"||t==="pointerover",re=t==="mouseout"||t==="pointerout",ne&&i!==id&&(Fe=i.relatedTarget||i.fromElement)&&(To(Fe)||Fe[Ro]))break e;if((re||ne)&&(ne=ce.window===ce?ce:(ne=ce.ownerDocument)?ne.defaultView||ne.parentWindow:window,re?(Fe=i.relatedTarget||i.toElement,re=te,Fe=Fe?To(Fe):null,Fe!==null&&(bt=c(Fe),Pe=Fe.tag,Fe!==bt||Pe!==5&&Pe!==27&&Pe!==6)&&(Fe=null)):(re=null,Fe=te),re!==Fe)){if(Pe=og,de="onMouseLeave",Q="onMouseEnter",U="mouse",(t==="pointerout"||t==="pointerover")&&(Pe=sg,de="onPointerLeave",Q="onPointerEnter",U="pointer"),bt=re==null?ne:Fi(re),ee=Fe==null?ne:Fi(Fe),ne=new Pe(de,U+"leave",re,i,ce),ne.target=bt,ne.relatedTarget=ee,de=null,To(ce)===te&&(Pe=new Pe(Q,U+"enter",Fe,i,ce),Pe.target=ee,Pe.relatedTarget=bt,de=Pe),bt=de,re&&Fe)t:{for(Pe=re,Q=Fe,U=0,ee=Pe;ee;ee=ii(ee))U++;for(ee=0,de=Q;de;de=ii(de))ee++;for(;0<U-ee;)Pe=ii(Pe),U--;for(;0<ee-U;)Q=ii(Q),ee--;for(;U--;){if(Pe===Q||Q!==null&&Pe===Q.alternate)break t;Pe=ii(Pe),Q=ii(Q)}Pe=null}else Pe=null;re!==null&&Qb(me,ne,re,Pe,!1),Fe!==null&&bt!==null&&Qb(me,bt,Fe,Pe,!0)}}e:{if(ne=te?Fi(te):window,re=ne.nodeName&&ne.nodeName.toLowerCase(),re==="select"||re==="input"&&ne.type==="file")var Te=mg;else if(pg(ne))if(gg)Te=pC;else{Te=dC;var Qe=uC}else re=ne.nodeName,!re||re.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?te&&od(te.elementType)&&(Te=mg):Te=fC;if(Te&&(Te=Te(t,te))){hg(me,Te,i,ce);break e}Qe&&Qe(t,ne,te),t==="focusout"&&te&&ne.type==="number"&&te.memoizedProps.value!=null&&ad(ne,"number",ne.value)}switch(Qe=te?Fi(te):window,t){case"focusin":(pg(Qe)||Qe.contentEditable==="true")&&(Lo=Qe,vd=te,Qi=null);break;case"focusout":Qi=vd=Lo=null;break;case"mousedown":xd=!0;break;case"contextmenu":case"mouseup":case"dragend":xd=!1,Eg(me,i,ce);break;case"selectionchange":if(mC)break;case"keydown":case"keyup":Eg(me,i,ce)}var _e;if(md)e:{switch(t){case"compositionstart":var Be="onCompositionStart";break e;case"compositionend":Be="onCompositionEnd";break e;case"compositionupdate":Be="onCompositionUpdate";break e}Be=void 0}else Do?dg(t,i)&&(Be="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Be="onCompositionStart");Be&&(lg&&i.locale!=="ko"&&(Do||Be!=="onCompositionStart"?Be==="onCompositionEnd"&&Do&&(_e=rg()):(ca=ce,ud="value"in ca?ca.value:ca.textContent,Do=!0)),Qe=bc(te,Be),0<Qe.length&&(Be=new ig(Be,t,null,i,ce),me.push({event:Be,listeners:Qe}),_e?Be.data=_e:(_e=fg(i),_e!==null&&(Be.data=_e)))),(_e=oC?iC(t,i):sC(t,i))&&(Be=bc(te,"onBeforeInput"),0<Be.length&&(Qe=new ig("onBeforeInput","beforeinput",null,i,ce),me.push({event:Qe,listeners:Be}),Qe.data=_e)),XC(me,t,te,i,ce)}Yb(me,r)})}function Es(t,r,i){return{instance:t,listener:r,currentTarget:i}}function bc(t,r){for(var i=r+"Capture",l=[];t!==null;){var f=t,m=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||m===null||(f=Ui(t,i),f!=null&&l.unshift(Es(t,f,m)),f=Ui(t,r),f!=null&&l.push(Es(t,f,m))),t.tag===3)return l;t=t.return}return[]}function ii(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Qb(t,r,i,l,f){for(var m=r._reactName,C=[];i!==null&&i!==l;){var k=i,P=k.alternate,te=k.stateNode;if(k=k.tag,P!==null&&P===l)break;k!==5&&k!==26&&k!==27||te===null||(P=te,f?(te=Ui(i,m),te!=null&&C.unshift(Es(i,te,P))):f||(te=Ui(i,m),te!=null&&C.push(Es(i,te,P)))),i=i.return}C.length!==0&&t.push({event:r,listeners:C})}var t5=/\r\n?/g,n5=/\u0000|\uFFFD/g;function Xb(t){return(typeof t=="string"?t:""+t).replace(t5,`
`).replace(n5,"")}function Zb(t,r){return r=Xb(r),Xb(t)===r}function vc(){}function yt(t,r,i,l,f,m){switch(i){case"children":typeof l=="string"?r==="body"||r==="textarea"&&l===""||No(t,l):(typeof l=="number"||typeof l=="bigint")&&r!=="body"&&No(t,""+l);break;case"className":El(t,"class",l);break;case"tabIndex":El(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":El(t,i,l);break;case"style":eg(t,l,m);break;case"data":if(r!=="object"){El(t,"data",l);break}case"src":case"href":if(l===""&&(r!=="a"||i!=="href")){t.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=Al(""+l),t.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(i==="formAction"?(r!=="input"&&yt(t,r,"name",f.name,f,null),yt(t,r,"formEncType",f.formEncType,f,null),yt(t,r,"formMethod",f.formMethod,f,null),yt(t,r,"formTarget",f.formTarget,f,null)):(yt(t,r,"encType",f.encType,f,null),yt(t,r,"method",f.method,f,null),yt(t,r,"target",f.target,f,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=Al(""+l),t.setAttribute(i,l);break;case"onClick":l!=null&&(t.onclick=vc);break;case"onScroll":l!=null&&Je("scroll",t);break;case"onScrollEnd":l!=null&&Je("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(i=l.__html,i!=null){if(f.children!=null)throw Error(o(60));t.innerHTML=i}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}i=Al(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,""+l):t.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":l===!0?t.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,l):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(i,l):t.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(i):t.setAttribute(i,l);break;case"popover":Je("beforetoggle",t),Je("toggle",t),wl(t,"popover",l);break;case"xlinkActuate":Lr(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Lr(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Lr(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Lr(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Lr(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Lr(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Lr(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Lr(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Lr(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":wl(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=N2.get(i)||i,wl(t,i,l))}}function Vf(t,r,i,l,f,m){switch(i){case"style":eg(t,l,m);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(i=l.__html,i!=null){if(f.children!=null)throw Error(o(60));t.innerHTML=i}}break;case"children":typeof l=="string"?No(t,l):(typeof l=="number"||typeof l=="bigint")&&No(t,""+l);break;case"onScroll":l!=null&&Je("scroll",t);break;case"onScrollEnd":l!=null&&Je("scrollend",t);break;case"onClick":l!=null&&(t.onclick=vc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Hm.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(f=i.endsWith("Capture"),r=i.slice(2,f?i.length-7:void 0),m=t[vn]||null,m=m!=null?m[i]:null,typeof m=="function"&&t.removeEventListener(r,m,f),typeof l=="function")){typeof m!="function"&&m!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(r,l,f);break e}i in t?t[i]=l:l===!0?t.setAttribute(i,""):wl(t,i,l)}}}function an(t,r,i){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Je("error",t),Je("load",t);var l=!1,f=!1,m;for(m in i)if(i.hasOwnProperty(m)){var C=i[m];if(C!=null)switch(m){case"src":l=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,r));default:yt(t,r,m,C,i,null)}}f&&yt(t,r,"srcSet",i.srcSet,i,null),l&&yt(t,r,"src",i.src,i,null);return;case"input":Je("invalid",t);var k=m=C=f=null,P=null,te=null;for(l in i)if(i.hasOwnProperty(l)){var ce=i[l];if(ce!=null)switch(l){case"name":f=ce;break;case"type":C=ce;break;case"checked":P=ce;break;case"defaultChecked":te=ce;break;case"value":m=ce;break;case"defaultValue":k=ce;break;case"children":case"dangerouslySetInnerHTML":if(ce!=null)throw Error(o(137,r));break;default:yt(t,r,l,ce,i,null)}}Qm(t,m,k,P,te,C,f,!1),Rl(t);return;case"select":Je("invalid",t),l=C=m=null;for(f in i)if(i.hasOwnProperty(f)&&(k=i[f],k!=null))switch(f){case"value":m=k;break;case"defaultValue":C=k;break;case"multiple":l=k;default:yt(t,r,f,k,i,null)}r=m,i=C,t.multiple=!!l,r!=null?Oo(t,!!l,r,!1):i!=null&&Oo(t,!!l,i,!0);return;case"textarea":Je("invalid",t),m=f=l=null;for(C in i)if(i.hasOwnProperty(C)&&(k=i[C],k!=null))switch(C){case"value":l=k;break;case"defaultValue":f=k;break;case"children":m=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(o(91));break;default:yt(t,r,C,k,i,null)}Zm(t,l,f,m),Rl(t);return;case"option":for(P in i)if(i.hasOwnProperty(P)&&(l=i[P],l!=null))switch(P){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:yt(t,r,P,l,i,null)}return;case"dialog":Je("beforetoggle",t),Je("toggle",t),Je("cancel",t),Je("close",t);break;case"iframe":case"object":Je("load",t);break;case"video":case"audio":for(l=0;l<ws.length;l++)Je(ws[l],t);break;case"image":Je("error",t),Je("load",t);break;case"details":Je("toggle",t);break;case"embed":case"source":case"link":Je("error",t),Je("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(te in i)if(i.hasOwnProperty(te)&&(l=i[te],l!=null))switch(te){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,r));default:yt(t,r,te,l,i,null)}return;default:if(od(r)){for(ce in i)i.hasOwnProperty(ce)&&(l=i[ce],l!==void 0&&Vf(t,r,ce,l,i,void 0));return}}for(k in i)i.hasOwnProperty(k)&&(l=i[k],l!=null&&yt(t,r,k,l,i,null))}function r5(t,r,i,l){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,m=null,C=null,k=null,P=null,te=null,ce=null;for(re in i){var me=i[re];if(i.hasOwnProperty(re)&&me!=null)switch(re){case"checked":break;case"value":break;case"defaultValue":P=me;default:l.hasOwnProperty(re)||yt(t,r,re,null,l,me)}}for(var ne in l){var re=l[ne];if(me=i[ne],l.hasOwnProperty(ne)&&(re!=null||me!=null))switch(ne){case"type":m=re;break;case"name":f=re;break;case"checked":te=re;break;case"defaultChecked":ce=re;break;case"value":C=re;break;case"defaultValue":k=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(o(137,r));break;default:re!==me&&yt(t,r,ne,re,l,me)}}rd(t,C,k,P,te,ce,m,f);return;case"select":re=C=k=ne=null;for(m in i)if(P=i[m],i.hasOwnProperty(m)&&P!=null)switch(m){case"value":break;case"multiple":re=P;default:l.hasOwnProperty(m)||yt(t,r,m,null,l,P)}for(f in l)if(m=l[f],P=i[f],l.hasOwnProperty(f)&&(m!=null||P!=null))switch(f){case"value":ne=m;break;case"defaultValue":k=m;break;case"multiple":C=m;default:m!==P&&yt(t,r,f,m,l,P)}r=k,i=C,l=re,ne!=null?Oo(t,!!i,ne,!1):!!l!=!!i&&(r!=null?Oo(t,!!i,r,!0):Oo(t,!!i,i?[]:"",!1));return;case"textarea":re=ne=null;for(k in i)if(f=i[k],i.hasOwnProperty(k)&&f!=null&&!l.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:yt(t,r,k,null,l,f)}for(C in l)if(f=l[C],m=i[C],l.hasOwnProperty(C)&&(f!=null||m!=null))switch(C){case"value":ne=f;break;case"defaultValue":re=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(o(91));break;default:f!==m&&yt(t,r,C,f,l,m)}Xm(t,ne,re);return;case"option":for(var Fe in i)if(ne=i[Fe],i.hasOwnProperty(Fe)&&ne!=null&&!l.hasOwnProperty(Fe))switch(Fe){case"selected":t.selected=!1;break;default:yt(t,r,Fe,null,l,ne)}for(P in l)if(ne=l[P],re=i[P],l.hasOwnProperty(P)&&ne!==re&&(ne!=null||re!=null))switch(P){case"selected":t.selected=ne&&typeof ne!="function"&&typeof ne!="symbol";break;default:yt(t,r,P,ne,l,re)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Pe in i)ne=i[Pe],i.hasOwnProperty(Pe)&&ne!=null&&!l.hasOwnProperty(Pe)&&yt(t,r,Pe,null,l,ne);for(te in l)if(ne=l[te],re=i[te],l.hasOwnProperty(te)&&ne!==re&&(ne!=null||re!=null))switch(te){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(o(137,r));break;default:yt(t,r,te,ne,l,re)}return;default:if(od(r)){for(var bt in i)ne=i[bt],i.hasOwnProperty(bt)&&ne!==void 0&&!l.hasOwnProperty(bt)&&Vf(t,r,bt,void 0,l,ne);for(ce in l)ne=l[ce],re=i[ce],!l.hasOwnProperty(ce)||ne===re||ne===void 0&&re===void 0||Vf(t,r,ce,ne,l,re);return}}for(var Q in i)ne=i[Q],i.hasOwnProperty(Q)&&ne!=null&&!l.hasOwnProperty(Q)&&yt(t,r,Q,null,l,ne);for(me in l)ne=l[me],re=i[me],!l.hasOwnProperty(me)||ne===re||ne==null&&re==null||yt(t,r,me,ne,l,re)}var qf=null,Gf=null;function xc(t){return t.nodeType===9?t:t.ownerDocument}function Jb(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 e0(t,r){if(t===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&r==="foreignObject"?0:t}function Wf(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Yf=null;function a5(){var t=window.event;return t&&t.type==="popstate"?t===Yf?!1:(Yf=t,!0):(Yf=null,!1)}var t0=typeof setTimeout=="function"?setTimeout:void 0,o5=typeof clearTimeout=="function"?clearTimeout:void 0,n0=typeof Promise=="function"?Promise:void 0,i5=typeof queueMicrotask=="function"?queueMicrotask:typeof n0<"u"?function(t){return n0.resolve(null).then(t).catch(s5)}:t0;function s5(t){setTimeout(function(){throw t})}function Ra(t){return t==="head"}function r0(t,r){var i=r,l=0,f=0;do{var m=i.nextSibling;if(t.removeChild(i),m&&m.nodeType===8)if(i=m.data,i==="/$"){if(0<l&&8>l){i=l;var C=t.ownerDocument;if(i&1&&Rs(C.documentElement),i&2&&Rs(C.body),i&4)for(i=C.head,Rs(i),C=i.firstChild;C;){var k=C.nextSibling,P=C.nodeName;C[Ii]||P==="SCRIPT"||P==="STYLE"||P==="LINK"&&C.rel.toLowerCase()==="stylesheet"||i.removeChild(C),C=k}}if(f===0){t.removeChild(m),_s(r);return}f--}else i==="$"||i==="$?"||i==="$!"?f++:l=i.charCodeAt(0)-48;else l=0;i=m}while(i);_s(r)}function Kf(t){var r=t.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var i=r;switch(r=r.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Kf(i),Ju(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function l5(t,r,i,l){for(;t.nodeType===1;){var f=i;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Ii])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(m=t.getAttribute("rel"),m==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(m!==f.rel||t.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||t.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||t.getAttribute("title")!==(f.title==null?null:f.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(m=t.getAttribute("src"),(m!==(f.src==null?null:f.src)||t.getAttribute("type")!==(f.type==null?null:f.type)||t.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&m&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var m=f.name==null?null:""+f.name;if(f.type==="hidden"&&t.getAttribute("name")===m)return t}else return t;if(t=dr(t.nextSibling),t===null)break}return null}function c5(t,r,i){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=dr(t.nextSibling),t===null))return null;return t}function Qf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function u5(t,r){var i=t.ownerDocument;if(t.data!=="$?"||i.readyState==="complete")r();else{var l=function(){r(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function dr(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?"||r==="F!"||r==="F")break;if(r==="/$")return null}}return t}var Xf=null;function a0(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"){if(r===0)return t;r--}else i==="/$"&&r++}t=t.previousSibling}return null}function o0(t,r,i){switch(r=xc(i),t){case"html":if(t=r.documentElement,!t)throw Error(o(452));return t;case"head":if(t=r.head,!t)throw Error(o(453));return t;case"body":if(t=r.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function Rs(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Ju(t)}var Yn=new Map,i0=new Set;function Sc(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Qr=I.d;I.d={f:d5,r:f5,D:p5,C:h5,L:m5,m:g5,X:b5,S:y5,M:v5};function d5(){var t=Qr.f(),r=fc();return t||r}function f5(t){var r=Ao(t);r!==null&&r.tag===5&&r.type==="form"?Ty(r):Qr.r(t)}var si=typeof document>"u"?null:document;function s0(t,r,i){var l=si;if(l&&typeof r=="string"&&r){var f=Fn(r);f='link[rel="'+t+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),i0.has(f)||(i0.add(f),t={rel:t,crossOrigin:i,href:r},l.querySelector(f)===null&&(r=l.createElement("link"),an(r,"link",t),Zt(r),l.head.appendChild(r)))}}function p5(t){Qr.D(t),s0("dns-prefetch",t,null)}function h5(t,r){Qr.C(t,r),s0("preconnect",t,r)}function m5(t,r,i){Qr.L(t,r,i);var l=si;if(l&&t&&r){var f='link[rel="preload"][as="'+Fn(r)+'"]';r==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+Fn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+Fn(i.imageSizes)+'"]')):f+='[href="'+Fn(t)+'"]';var m=f;switch(r){case"style":m=li(t);break;case"script":m=ci(t)}Yn.has(m)||(t=y({rel:"preload",href:r==="image"&&i&&i.imageSrcSet?void 0:t,as:r},i),Yn.set(m,t),l.querySelector(f)!==null||r==="style"&&l.querySelector(Ts(m))||r==="script"&&l.querySelector(As(m))||(r=l.createElement("link"),an(r,"link",t),Zt(r),l.head.appendChild(r)))}}function g5(t,r){Qr.m(t,r);var i=si;if(i&&t){var l=r&&typeof r.as=="string"?r.as:"script",f='link[rel="modulepreload"][as="'+Fn(l)+'"][href="'+Fn(t)+'"]',m=f;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=ci(t)}if(!Yn.has(m)&&(t=y({rel:"modulepreload",href:t},r),Yn.set(m,t),i.querySelector(f)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(As(m)))return}l=i.createElement("link"),an(l,"link",t),Zt(l),i.head.appendChild(l)}}}function y5(t,r,i){Qr.S(t,r,i);var l=si;if(l&&t){var f=jo(l).hoistableStyles,m=li(t);r=r||"default";var C=f.get(m);if(!C){var k={loading:0,preload:null};if(C=l.querySelector(Ts(m)))k.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":r},i),(i=Yn.get(m))&&Zf(t,i);var P=C=l.createElement("link");Zt(P),an(P,"link",t),P._p=new Promise(function(te,ce){P.onload=te,P.onerror=ce}),P.addEventListener("load",function(){k.loading|=1}),P.addEventListener("error",function(){k.loading|=2}),k.loading|=4,Cc(C,r,l)}C={type:"stylesheet",instance:C,count:1,state:k},f.set(m,C)}}}function b5(t,r){Qr.X(t,r);var i=si;if(i&&t){var l=jo(i).hoistableScripts,f=ci(t),m=l.get(f);m||(m=i.querySelector(As(f)),m||(t=y({src:t,async:!0},r),(r=Yn.get(f))&&Jf(t,r),m=i.createElement("script"),Zt(m),an(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(f,m))}}function v5(t,r){Qr.M(t,r);var i=si;if(i&&t){var l=jo(i).hoistableScripts,f=ci(t),m=l.get(f);m||(m=i.querySelector(As(f)),m||(t=y({src:t,async:!0,type:"module"},r),(r=Yn.get(f))&&Jf(t,r),m=i.createElement("script"),Zt(m),an(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(f,m))}}function l0(t,r,i,l){var f=(f=ae.current)?Sc(f):null;if(!f)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(r=li(i.href),i=jo(f).hoistableStyles,l=i.get(r),l||(l={type:"style",instance:null,count:0,state:null},i.set(r,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=li(i.href);var m=jo(f).hoistableStyles,C=m.get(t);if(C||(f=f.ownerDocument||f,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(t,C),(m=f.querySelector(Ts(t)))&&!m._p&&(C.instance=m,C.state.loading=5),Yn.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Yn.set(t,i),m||x5(f,t,i,C.state))),r&&l===null)throw Error(o(528,""));return C}if(r&&l!==null)throw Error(o(529,""));return null;case"script":return r=i.async,i=i.src,typeof i=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=ci(i),i=jo(f).hoistableScripts,l=i.get(r),l||(l={type:"script",instance:null,count:0,state:null},i.set(r,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function li(t){return'href="'+Fn(t)+'"'}function Ts(t){return'link[rel="stylesheet"]['+t+"]"}function c0(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function x5(t,r,i,l){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?l.loading=1:(r=t.createElement("link"),l.preload=r,r.addEventListener("load",function(){return l.loading|=1}),r.addEventListener("error",function(){return l.loading|=2}),an(r,"link",i),Zt(r),t.head.appendChild(r))}function ci(t){return'[src="'+Fn(t)+'"]'}function As(t){return"script[async]"+t}function u0(t,r,i){if(r.count++,r.instance===null)switch(r.type){case"style":var l=t.querySelector('style[data-href~="'+Fn(i.href)+'"]');if(l)return r.instance=l,Zt(l),l;var f=y({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),Zt(l),an(l,"style",f),Cc(l,i.precedence,t),r.instance=l;case"stylesheet":f=li(i.href);var m=t.querySelector(Ts(f));if(m)return r.state.loading|=4,r.instance=m,Zt(m),m;l=c0(i),(f=Yn.get(f))&&Zf(l,f),m=(t.ownerDocument||t).createElement("link"),Zt(m);var C=m;return C._p=new Promise(function(k,P){C.onload=k,C.onerror=P}),an(m,"link",l),r.state.loading|=4,Cc(m,i.precedence,t),r.instance=m;case"script":return m=ci(i.src),(f=t.querySelector(As(m)))?(r.instance=f,Zt(f),f):(l=i,(f=Yn.get(m))&&(l=y({},i),Jf(l,f)),t=t.ownerDocument||t,f=t.createElement("script"),Zt(f),an(f,"link",l),t.head.appendChild(f),r.instance=f);case"void":return null;default:throw Error(o(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(l=r.instance,r.state.loading|=4,Cc(l,i.precedence,t));return r.instance}function Cc(t,r,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=l.length?l[l.length-1]:null,m=f,C=0;C<l.length;C++){var k=l[C];if(k.dataset.precedence===r)m=k;else if(m!==f)break}m?m.parentNode.insertBefore(t,m.nextSibling):(r=i.nodeType===9?i.head:i,r.insertBefore(t,r.firstChild))}function Zf(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function Jf(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var wc=null;function d0(t,r,i){if(wc===null){var l=new Map,f=wc=new Map;f.set(i,l)}else f=wc,l=f.get(i),l||(l=new Map,f.set(i,l));if(l.has(t))return l;for(l.set(t,null),i=i.getElementsByTagName(t),f=0;f<i.length;f++){var m=i[f];if(!(m[Ii]||m[ln]||t==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var C=m.getAttribute(r)||"";C=t+C;var k=l.get(C);k?k.push(m):l.set(C,[m])}}return l}function f0(t,r,i){t=t.ownerDocument||t,t.head.insertBefore(i,r==="title"?t.querySelector("head > title"):null)}function S5(t,r,i){if(i===1||r.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return t=r.disabled,typeof r.precedence=="string"&&t==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function p0(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var js=null;function C5(){}function w5(t,r,i){if(js===null)throw Error(o(475));var l=js;if(r.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var f=li(i.href),m=t.querySelector(Ts(f));if(m){t=m._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=Ec.bind(l),t.then(l,l)),r.state.loading|=4,r.instance=m,Zt(m);return}m=t.ownerDocument||t,i=c0(i),(f=Yn.get(f))&&Zf(i,f),m=m.createElement("link"),Zt(m);var C=m;C._p=new Promise(function(k,P){C.onload=k,C.onerror=P}),an(m,"link",i),r.instance=m}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(l.count++,r=Ec.bind(l),t.addEventListener("load",r),t.addEventListener("error",r))}}function E5(){if(js===null)throw Error(o(475));var t=js;return t.stylesheets&&t.count===0&&ep(t,t.stylesheets),0<t.count?function(r){var i=setTimeout(function(){if(t.stylesheets&&ep(t,t.stylesheets),t.unsuspend){var l=t.unsuspend;t.unsuspend=null,l()}},6e4);return t.unsuspend=r,function(){t.unsuspend=null,clearTimeout(i)}}:null}function Ec(){if(this.count--,this.count===0){if(this.stylesheets)ep(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Rc=null;function ep(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Rc=new Map,r.forEach(R5,t),Rc=null,Ec.call(t))}function R5(t,r){if(!(r.state.loading&4)){var i=Rc.get(t);if(i)var l=i.get(null);else{i=new Map,Rc.set(t,i);for(var f=t.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<f.length;m++){var C=f[m];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(i.set(C.dataset.precedence,C),l=C)}l&&i.set(null,l)}f=r.instance,C=f.getAttribute("data-precedence"),m=i.get(C)||l,m===l&&i.set(null,f),i.set(C,f),this.count++,l=Ec.bind(this),f.addEventListener("load",l),f.addEventListener("error",l),m?m.parentNode.insertBefore(f,m.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(f,t.firstChild)),r.state.loading|=4}}var Ms={$$typeof:O,Provider:null,Consumer:null,_currentValue:H,_currentValue2:H,_threadCount:0};function T5(t,r,i,l,f,m,C,k){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=Ku(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ku(0),this.hiddenUpdates=Ku(null),this.identifierPrefix=l,this.onUncaughtError=f,this.onCaughtError=m,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function h0(t,r,i,l,f,m,C,k,P,te,ce,me){return t=new T5(t,r,i,C,k,P,te,me),r=1,m===!0&&(r|=24),m=On(3,null,null,r),t.current=m,m.stateNode=t,r=zd(),r.refCount++,t.pooledCache=r,r.refCount++,m.memoizedState={element:l,isDehydrated:i,cache:r},$d(m),t}function m0(t){return t?(t=Io,t):Io}function g0(t,r,i,l,f,m){f=m0(f),l.context===null?l.context=f:l.pendingContext=f,l=fa(r),l.payload={element:i},m=m===void 0?null:m,m!==null&&(l.callback=m),i=pa(t,l,r),i!==null&&(Ln(i,t,r),os(i,t,r))}function y0(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<r?i:r}}function tp(t,r){y0(t,r),(t=t.alternate)&&y0(t,r)}function b0(t){if(t.tag===13){var r=Bo(t,67108864);r!==null&&Ln(r,t,67108864),tp(t,67108864)}}var Tc=!0;function A5(t,r,i,l){var f=D.T;D.T=null;var m=I.p;try{I.p=2,np(t,r,i,l)}finally{I.p=m,D.T=f}}function j5(t,r,i,l){var f=D.T;D.T=null;var m=I.p;try{I.p=8,np(t,r,i,l)}finally{I.p=m,D.T=f}}function np(t,r,i,l){if(Tc){var f=rp(l);if(f===null)Hf(t,r,l,Ac,i),x0(t,l);else if(k5(f,t,r,i,l))l.stopPropagation();else if(x0(t,l),r&4&&-1<M5.indexOf(t)){for(;f!==null;){var m=Ao(f);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var C=Me(m.pendingLanes);if(C!==0){var k=m;for(k.pendingLanes|=2,k.entangledLanes|=2;C;){var P=1<<31-Ve(C);k.entanglements[1]|=P,C&=~P}Cr(m),(dt&6)===0&&(uc=it()+500,Cs(0))}}break;case 13:k=Bo(m,2),k!==null&&Ln(k,m,2),fc(),tp(m,2)}if(m=rp(l),m===null&&Hf(t,r,l,Ac,i),m===f)break;f=m}f!==null&&l.stopPropagation()}else Hf(t,r,l,null,i)}}function rp(t){return t=sd(t),ap(t)}var Ac=null;function ap(t){if(Ac=null,t=To(t),t!==null){var r=c(t);if(r===null)t=null;else{var i=r.tag;if(i===13){if(t=u(r),t!==null)return t;t=null}else if(i===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null)}}return Ac=t,null}function v0(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(wt()){case mt:return 2;case $:return 8;case Y:case K:return 32;case ve:return 268435456;default:return 32}default:return 32}}var op=!1,Ta=null,Aa=null,ja=null,ks=new Map,Os=new Map,Ma=[],M5="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 x0(t,r){switch(t){case"focusin":case"focusout":Ta=null;break;case"dragenter":case"dragleave":Aa=null;break;case"mouseover":case"mouseout":ja=null;break;case"pointerover":case"pointerout":ks.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Os.delete(r.pointerId)}}function Ns(t,r,i,l,f,m){return t===null||t.nativeEvent!==m?(t={blockedOn:r,domEventName:i,eventSystemFlags:l,nativeEvent:m,targetContainers:[f]},r!==null&&(r=Ao(r),r!==null&&b0(r)),t):(t.eventSystemFlags|=l,r=t.targetContainers,f!==null&&r.indexOf(f)===-1&&r.push(f),t)}function k5(t,r,i,l,f){switch(r){case"focusin":return Ta=Ns(Ta,t,r,i,l,f),!0;case"dragenter":return Aa=Ns(Aa,t,r,i,l,f),!0;case"mouseover":return ja=Ns(ja,t,r,i,l,f),!0;case"pointerover":var m=f.pointerId;return ks.set(m,Ns(ks.get(m)||null,t,r,i,l,f)),!0;case"gotpointercapture":return m=f.pointerId,Os.set(m,Ns(Os.get(m)||null,t,r,i,l,f)),!0}return!1}function S0(t){var r=To(t.target);if(r!==null){var i=c(r);if(i!==null){if(r=i.tag,r===13){if(r=u(i),r!==null){t.blockedOn=r,w2(t.priority,function(){if(i.tag===13){var l=Dn();l=Qu(l);var f=Bo(i,l);f!==null&&Ln(f,i,l),tp(i,l)}});return}}else if(r===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function jc(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var i=rp(t.nativeEvent);if(i===null){i=t.nativeEvent;var l=new i.constructor(i.type,i);id=l,i.target.dispatchEvent(l),id=null}else return r=Ao(i),r!==null&&b0(r),t.blockedOn=i,!1;r.shift()}return!0}function C0(t,r,i){jc(t)&&i.delete(r)}function O5(){op=!1,Ta!==null&&jc(Ta)&&(Ta=null),Aa!==null&&jc(Aa)&&(Aa=null),ja!==null&&jc(ja)&&(ja=null),ks.forEach(C0),Os.forEach(C0)}function Mc(t,r){t.blockedOn===r&&(t.blockedOn=null,op||(op=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,O5)))}var kc=null;function w0(t){kc!==t&&(kc=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){kc===t&&(kc=null);for(var r=0;r<t.length;r+=3){var i=t[r],l=t[r+1],f=t[r+2];if(typeof l!="function"){if(ap(l||i)===null)continue;break}var m=Ao(i);m!==null&&(t.splice(r,3),r-=3,rf(m,{pending:!0,data:f,method:i.method,action:l},l,f))}}))}function _s(t){function r(P){return Mc(P,t)}Ta!==null&&Mc(Ta,t),Aa!==null&&Mc(Aa,t),ja!==null&&Mc(ja,t),ks.forEach(r),Os.forEach(r);for(var i=0;i<Ma.length;i++){var l=Ma[i];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Ma.length&&(i=Ma[0],i.blockedOn===null);)S0(i),i.blockedOn===null&&Ma.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var f=i[l],m=i[l+1],C=f[vn]||null;if(typeof m=="function")C||w0(i);else if(C){var k=null;if(m&&m.hasAttribute("formAction")){if(f=m,C=m[vn]||null)k=C.formAction;else if(ap(f)!==null)continue}else k=C.action;typeof k=="function"?i[l+1]=k:(i.splice(l,3),l-=3),w0(i)}}}function ip(t){this._internalRoot=t}Oc.prototype.render=ip.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(o(409));var i=r.current,l=Dn();g0(i,l,t,r,null,null)},Oc.prototype.unmount=ip.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;g0(t.current,2,null,t,null,null),fc(),r[Ro]=null}};function Oc(t){this._internalRoot=t}Oc.prototype.unstable_scheduleHydration=function(t){if(t){var r=Im();t={blockedOn:null,target:t,priority:r};for(var i=0;i<Ma.length&&r!==0&&r<Ma[i].priority;i++);Ma.splice(i,0,t),i===0&&S0(t)}};var E0=n.version;if(E0!=="19.1.0")throw Error(o(527,E0,"19.1.0"));I.findDOMNode=function(t){var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=h(r),t=t!==null?g(t):null,t=t===null?null:t.stateNode,t};var N5={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nc.isDisabled&&Nc.supportsFiber)try{Se=Nc.inject(N5),Re=Nc}catch{}}return Ds.createRoot=function(t,r){if(!s(t))throw Error(o(299));var i=!1,l="",f=Iy,m=Fy,C=Uy,k=null;return r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(l=r.identifierPrefix),r.onUncaughtError!==void 0&&(f=r.onUncaughtError),r.onCaughtError!==void 0&&(m=r.onCaughtError),r.onRecoverableError!==void 0&&(C=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(k=r.unstable_transitionCallbacks)),r=h0(t,1,!1,null,null,i,l,f,m,C,k,null),t[Ro]=r.current,Uf(t),new ip(r)},Ds.hydrateRoot=function(t,r,i){if(!s(t))throw Error(o(299));var l=!1,f="",m=Iy,C=Fy,k=Uy,P=null,te=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(C=i.onCaughtError),i.onRecoverableError!==void 0&&(k=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(P=i.unstable_transitionCallbacks),i.formState!==void 0&&(te=i.formState)),r=h0(t,1,!0,r,i??null,l,f,m,C,k,P,te),r.context=m0(null),i=r.current,l=Dn(),l=Qu(l),f=fa(l),f.callback=null,pa(i,f,l),i=l,r.current.lanes=i,Bi(r,i),Cr(r),t[Ro]=r.current,Uf(t),new Oc(r)},Ds.version="19.1.0",Ds}var z0;function U5(){if(z0)return cp.exports;z0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),cp.exports=F5(),cp.exports}var H5=U5();/**
 * react-router v7.8.2
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var D0="popstate";function V5(e={}){function n(o,s){let{pathname:c,search:u,hash:d}=o.location;return Wp("",{pathname:c,search:u,hash:d},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function a(o,s){return typeof s=="string"?s:tl(s)}return G5(n,a,null,e)}function kt(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function tr(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function q5(){return Math.random().toString(36).substring(2,10)}function L0(e,n){return{usr:e.state,key:e.key,idx:n}}function Wp(e,n,a=null,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?ji(n):n,state:a,key:n&&n.key||o||q5()}}function tl({pathname:e="/",search:n="",hash:a=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function ji(e){let n={};if(e){let a=e.indexOf("#");a>=0&&(n.hash=e.substring(a),e=e.substring(0,a));let o=e.indexOf("?");o>=0&&(n.search=e.substring(o),e=e.substring(0,o)),e&&(n.pathname=e)}return n}function G5(e,n,a,o={}){let{window:s=document.defaultView,v5Compat:c=!1}=o,u=s.history,d="POP",h=null,g=y();g==null&&(g=0,u.replaceState({...u.state,idx:g},""));function y(){return(u.state||{idx:null}).idx}function b(){d="POP";let T=y(),M=T==null?null:T-g;g=T,h&&h({action:d,location:w.location,delta:M})}function x(T,M){d="PUSH";let j=Wp(w.location,T,M);g=y()+1;let O=L0(j,g),N=w.createHref(j);try{u.pushState(O,"",N)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;s.location.assign(N)}c&&h&&h({action:d,location:w.location,delta:1})}function E(T,M){d="REPLACE";let j=Wp(w.location,T,M);g=y();let O=L0(j,g),N=w.createHref(j);u.replaceState(O,"",N),c&&h&&h({action:d,location:w.location,delta:0})}function S(T){return W5(T)}let w={get action(){return d},get location(){return e(s,u)},listen(T){if(h)throw new Error("A history only accepts one active listener");return s.addEventListener(D0,b),h=T,()=>{s.removeEventListener(D0,b),h=null}},createHref(T){return n(s,T)},createURL:S,encodeLocation(T){let M=S(T);return{pathname:M.pathname,search:M.search,hash:M.hash}},push:x,replace:E,go(T){return u.go(T)}};return w}function W5(e,n=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),kt(a,"No window.location.(origin|href) available to create URL");let o=typeof e=="string"?e:tl(e);return o=o.replace(/ $/,"%20"),!n&&o.startsWith("//")&&(o=a+o),new URL(o,a)}function Bx(e,n,a="/"){return Y5(e,n,a,!1)}function Y5(e,n,a,o){let s=typeof n=="string"?ji(n):n,c=ra(s.pathname||"/",a);if(c==null)return null;let u=Ix(e);K5(u);let d=null;for(let h=0;d==null&&h<u.length;++h){let g=iw(c);d=aw(u[h],g,o)}return d}function Ix(e,n=[],a=[],o="",s=!1){let c=(u,d,h=s,g)=>{let y={relativePath:g===void 0?u.path||"":g,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(o)&&h)return;kt(y.relativePath.startsWith(o),`Absolute route path "${y.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(o.length)}let b=ta([o,y.relativePath]),x=a.concat(y);u.children&&u.children.length>0&&(kt(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),Ix(u.children,n,x,b,h)),!(u.path==null&&!u.index)&&n.push({path:b,score:nw(b,u.index),routesMeta:x})};return e.forEach((u,d)=>{if(u.path===""||!u.path?.includes("?"))c(u,d);else for(let h of Fx(u.path))c(u,d,!0,h)}),n}function Fx(e){let n=e.split("/");if(n.length===0)return[];let[a,...o]=n,s=a.endsWith("?"),c=a.replace(/\?$/,"");if(o.length===0)return s?[c,""]:[c];let u=Fx(o.join("/")),d=[];return d.push(...u.map(h=>h===""?c:[c,h].join("/"))),s&&d.push(...u),d.map(h=>e.startsWith("/")&&h===""?"/":h)}function K5(e){e.sort((n,a)=>n.score!==a.score?a.score-n.score:rw(n.routesMeta.map(o=>o.childrenIndex),a.routesMeta.map(o=>o.childrenIndex)))}var Q5=/^:[\w-]+$/,X5=3,Z5=2,J5=1,ew=10,tw=-2,P0=e=>e==="*";function nw(e,n){let a=e.split("/"),o=a.length;return a.some(P0)&&(o+=tw),n&&(o+=Z5),a.filter(s=>!P0(s)).reduce((s,c)=>s+(Q5.test(c)?X5:c===""?J5:ew),o)}function rw(e,n){return e.length===n.length&&e.slice(0,-1).every((o,s)=>o===n[s])?e[e.length-1]-n[n.length-1]:0}function aw(e,n,a=!1){let{routesMeta:o}=e,s={},c="/",u=[];for(let d=0;d<o.length;++d){let h=o[d],g=d===o.length-1,y=c==="/"?n:n.slice(c.length)||"/",b=Jc({path:h.relativePath,caseSensitive:h.caseSensitive,end:g},y),x=h.route;if(!b&&g&&a&&!o[o.length-1].route.index&&(b=Jc({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},y)),!b)return null;Object.assign(s,b.params),u.push({params:s,pathname:ta([c,b.pathname]),pathnameBase:uw(ta([c,b.pathnameBase])),route:x}),b.pathnameBase!=="/"&&(c=ta([c,b.pathnameBase]))}return u}function Jc(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[a,o]=ow(e.path,e.caseSensitive,e.end),s=n.match(a);if(!s)return null;let c=s[0],u=c.replace(/(.)\/+$/,"$1"),d=s.slice(1);return{params:o.reduce((g,{paramName:y,isOptional:b},x)=>{if(y==="*"){let S=d[x]||"";u=c.slice(0,c.length-S.length).replace(/(.)\/+$/,"$1")}const E=d[x];return b&&!E?g[y]=void 0:g[y]=(E||"").replace(/%2F/g,"/"),g},{}),pathname:c,pathnameBase:u,pattern:e}}function ow(e,n=!1,a=!0){tr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let o=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,d,h)=>(o.push({paramName:d,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(o.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,n?void 0:"i"),o]}function iw(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return tr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function ra(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let a=n.endsWith("/")?n.length-1:n.length,o=e.charAt(a);return o&&o!=="/"?null:e.slice(a)||"/"}function sw(e,n="/"){let{pathname:a,search:o="",hash:s=""}=typeof e=="string"?ji(e):e;return{pathname:a?a.startsWith("/")?a:lw(a,n):n,search:dw(o),hash:fw(s)}}function lw(e,n){let a=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?a.length>1&&a.pop():s!=="."&&a.push(s)}),a.length>1?a.join("/"):"/"}function pp(e,n,a,o){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(o)}].  Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function cw(e){return e.filter((n,a)=>a===0||n.route.path&&n.route.path.length>0)}function _h(e){let n=cw(e);return n.map((a,o)=>o===n.length-1?a.pathname:a.pathnameBase)}function zh(e,n,a,o=!1){let s;typeof e=="string"?s=ji(e):(s={...e},kt(!s.pathname||!s.pathname.includes("?"),pp("?","pathname","search",s)),kt(!s.pathname||!s.pathname.includes("#"),pp("#","pathname","hash",s)),kt(!s.search||!s.search.includes("#"),pp("#","search","hash",s)));let c=e===""||s.pathname==="",u=c?"/":s.pathname,d;if(u==null)d=a;else{let b=n.length-1;if(!o&&u.startsWith("..")){let x=u.split("/");for(;x[0]==="..";)x.shift(),b-=1;s.pathname=x.join("/")}d=b>=0?n[b]:"/"}let h=sw(s,d),g=u&&u!=="/"&&u.endsWith("/"),y=(c||u===".")&&a.endsWith("/");return!h.pathname.endsWith("/")&&(g||y)&&(h.pathname+="/"),h}var ta=e=>e.join("/").replace(/\/\/+/g,"/"),uw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),dw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function pw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Ux=["POST","PUT","PATCH","DELETE"];new Set(Ux);var hw=["GET",...Ux];new Set(hw);var Mi=v.createContext(null);Mi.displayName="DataRouter";var Eu=v.createContext(null);Eu.displayName="DataRouterState";v.createContext(!1);var Hx=v.createContext({isTransitioning:!1});Hx.displayName="ViewTransition";var mw=v.createContext(new Map);mw.displayName="Fetchers";var gw=v.createContext(null);gw.displayName="Await";var mr=v.createContext(null);mr.displayName="Navigation";var cl=v.createContext(null);cl.displayName="Location";var Dr=v.createContext({outlet:null,matches:[],isDataRoute:!1});Dr.displayName="Route";var Dh=v.createContext(null);Dh.displayName="RouteError";function yw(e,{relative:n}={}){kt(ki(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:o}=v.useContext(mr),{hash:s,pathname:c,search:u}=ul(e,{relative:n}),d=c;return a!=="/"&&(d=c==="/"?a:ta([a,c])),o.createHref({pathname:d,search:u,hash:s})}function ki(){return v.useContext(cl)!=null}function rr(){return kt(ki(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(cl).location}var Vx="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function qx(e){v.useContext(mr).static||v.useLayoutEffect(e)}function gr(){let{isDataRoute:e}=v.useContext(Dr);return e?kw():bw()}function bw(){kt(ki(),"useNavigate() may be used only in the context of a <Router> component.");let e=v.useContext(Mi),{basename:n,navigator:a}=v.useContext(mr),{matches:o}=v.useContext(Dr),{pathname:s}=rr(),c=JSON.stringify(_h(o)),u=v.useRef(!1);return qx(()=>{u.current=!0}),v.useCallback((h,g={})=>{if(tr(u.current,Vx),!u.current)return;if(typeof h=="number"){a.go(h);return}let y=zh(h,JSON.parse(c),s,g.relative==="path");e==null&&n!=="/"&&(y.pathname=y.pathname==="/"?n:ta([n,y.pathname])),(g.replace?a.replace:a.push)(y,g.state,g)},[n,a,c,s,e])}v.createContext(null);function ul(e,{relative:n}={}){let{matches:a}=v.useContext(Dr),{pathname:o}=rr(),s=JSON.stringify(_h(a));return v.useMemo(()=>zh(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function vw(e,n){return Gx(e,n)}function Gx(e,n,a,o,s){kt(ki(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=v.useContext(mr),{matches:u}=v.useContext(Dr),d=u[u.length-1],h=d?d.params:{},g=d?d.pathname:"/",y=d?d.pathnameBase:"/",b=d&&d.route;{let j=b&&b.path||"";Wx(g,!b||j.endsWith("*")||j.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${j}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${j}"> to <Route path="${j==="/"?"*":`${j}/*`}">.`)}let x=rr(),E;if(n){let j=typeof n=="string"?ji(n):n;kt(y==="/"||j.pathname?.startsWith(y),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${y}" but pathname "${j.pathname}" was given in the \`location\` prop.`),E=j}else E=x;let S=E.pathname||"/",w=S;if(y!=="/"){let j=y.replace(/^\//,"").split("/");w="/"+S.replace(/^\//,"").split("/").slice(j.length).join("/")}let T=Bx(e,{pathname:w});tr(b||T!=null,`No routes matched location "${E.pathname}${E.search}${E.hash}" `),tr(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${E.pathname}${E.search}${E.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let M=Ew(T&&T.map(j=>Object.assign({},j,{params:Object.assign({},h,j.params),pathname:ta([y,c.encodeLocation?c.encodeLocation(j.pathname).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?y:ta([y,c.encodeLocation?c.encodeLocation(j.pathnameBase).pathname:j.pathnameBase])})),u,a,o,s);return n&&M?v.createElement(cl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...E},navigationType:"POP"}},M):M}function xw(){let e=Mw(),n=pw(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:o},c={padding:"2px 4px",backgroundColor:o},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:c},"ErrorBoundary")," or"," ",v.createElement("code",{style:c},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},n),a?v.createElement("pre",{style:s},a):null,u)}var Sw=v.createElement(xw,null),Cw=class extends v.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){this.props.unstable_onError?this.props.unstable_onError(e,n):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?v.createElement(Dr.Provider,{value:this.props.routeContext},v.createElement(Dh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function ww({routeContext:e,match:n,children:a}){let o=v.useContext(Mi);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(Dr.Provider,{value:e},a)}function Ew(e,n=[],a=null,o=null,s=null){if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(n.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let c=e,u=a?.errors;if(u!=null){let g=c.findIndex(y=>y.route.id&&u?.[y.route.id]!==void 0);kt(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),c=c.slice(0,Math.min(c.length,g+1))}let d=!1,h=-1;if(a)for(let g=0;g<c.length;g++){let y=c[g];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(h=g),y.route.id){let{loaderData:b,errors:x}=a,E=y.route.loader&&!b.hasOwnProperty(y.route.id)&&(!x||x[y.route.id]===void 0);if(y.route.lazy||E){d=!0,h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}return c.reduceRight((g,y,b)=>{let x,E=!1,S=null,w=null;a&&(x=u&&y.route.id?u[y.route.id]:void 0,S=y.route.errorElement||Sw,d&&(h<0&&b===0?(Wx("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,w=null):h===b&&(E=!0,w=y.route.hydrateFallbackElement||null)));let T=n.concat(c.slice(0,b+1)),M=()=>{let j;return x?j=S:E?j=w:y.route.Component?j=v.createElement(y.route.Component,null):y.route.element?j=y.route.element:j=g,v.createElement(ww,{match:y,routeContext:{outlet:g,matches:T,isDataRoute:a!=null},children:j})};return a&&(y.route.ErrorBoundary||y.route.errorElement||b===0)?v.createElement(Cw,{location:a.location,revalidation:a.revalidation,component:S,error:x,children:M(),routeContext:{outlet:null,matches:T,isDataRoute:!0},unstable_onError:o}):M()},null)}function Lh(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Rw(e){let n=v.useContext(Mi);return kt(n,Lh(e)),n}function Tw(e){let n=v.useContext(Eu);return kt(n,Lh(e)),n}function Aw(e){let n=v.useContext(Dr);return kt(n,Lh(e)),n}function Ph(e){let n=Aw(e),a=n.matches[n.matches.length-1];return kt(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function jw(){return Ph("useRouteId")}function Mw(){let e=v.useContext(Dh),n=Tw("useRouteError"),a=Ph("useRouteError");return e!==void 0?e:n.errors?.[a]}function kw(){let{router:e}=Rw("useNavigate"),n=Ph("useNavigate"),a=v.useRef(!1);return qx(()=>{a.current=!0}),v.useCallback(async(s,c={})=>{tr(a.current,Vx),a.current&&(typeof s=="number"?e.navigate(s):await e.navigate(s,{fromRouteId:n,...c}))},[e,n])}var $0={};function Wx(e,n,a){!n&&!$0[e]&&($0[e]=!0,tr(!1,a))}v.memo(Ow);function Ow({routes:e,future:n,state:a,unstable_onError:o}){return Gx(e,void 0,a,o,n)}function Nw({to:e,replace:n,state:a,relative:o}){kt(ki(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=v.useContext(mr);tr(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=v.useContext(Dr),{pathname:u}=rr(),d=gr(),h=zh(e,_h(c),u,o==="path"),g=JSON.stringify(h);return v.useEffect(()=>{d(JSON.parse(g),{replace:n,state:a,relative:o})},[d,g,o,n,a]),null}function _a(e){kt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function _w({basename:e="/",children:n=null,location:a,navigationType:o="POP",navigator:s,static:c=!1}){kt(!ki(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),d=v.useMemo(()=>({basename:u,navigator:s,static:c,future:{}}),[u,s,c]);typeof a=="string"&&(a=ji(a));let{pathname:h="/",search:g="",hash:y="",state:b=null,key:x="default"}=a,E=v.useMemo(()=>{let S=ra(h,u);return S==null?null:{location:{pathname:S,search:g,hash:y,state:b,key:x},navigationType:o}},[u,h,g,y,b,x,o]);return tr(E!=null,`<Router basename="${u}"> is not able to match the URL "${h}${g}${y}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:v.createElement(mr.Provider,{value:d},v.createElement(cl.Provider,{children:n,value:E}))}function zw({children:e,location:n}){return vw(Yp(e),n)}function Yp(e,n=[]){let a=[];return v.Children.forEach(e,(o,s)=>{if(!v.isValidElement(o))return;let c=[...n,s];if(o.type===v.Fragment){a.push.apply(a,Yp(o.props.children,c));return}kt(o.type===_a,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),kt(!o.props.index||!o.props.children,"An index route cannot have child routes.");let u={id:o.props.id||c.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(u.children=Yp(o.props.children,c)),a.push(u)}),a}var Hc="get",Vc="application/x-www-form-urlencoded";function Ru(e){return e!=null&&typeof e.tagName=="string"}function Dw(e){return Ru(e)&&e.tagName.toLowerCase()==="button"}function Lw(e){return Ru(e)&&e.tagName.toLowerCase()==="form"}function Pw(e){return Ru(e)&&e.tagName.toLowerCase()==="input"}function $w(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Bw(e,n){return e.button===0&&(!n||n==="_self")&&!$w(e)}function Kp(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((n,a)=>{let o=e[a];return n.concat(Array.isArray(o)?o.map(s=>[a,s]):[[a,o]])},[]))}function Iw(e,n){let a=Kp(e);return n&&n.forEach((o,s)=>{a.has(s)||n.getAll(s).forEach(c=>{a.append(s,c)})}),a}var _c=null;function Fw(){if(_c===null)try{new FormData(document.createElement("form"),0),_c=!1}catch{_c=!0}return _c}var Uw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function hp(e){return e!=null&&!Uw.has(e)?(tr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Vc}"`),null):e}function Hw(e,n){let a,o,s,c,u;if(Lw(e)){let d=e.getAttribute("action");o=d?ra(d,n):null,a=e.getAttribute("method")||Hc,s=hp(e.getAttribute("enctype"))||Vc,c=new FormData(e)}else if(Dw(e)||Pw(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=e.getAttribute("formaction")||d.getAttribute("action");if(o=h?ra(h,n):null,a=e.getAttribute("formmethod")||d.getAttribute("method")||Hc,s=hp(e.getAttribute("formenctype"))||hp(d.getAttribute("enctype"))||Vc,c=new FormData(d,e),!Fw()){let{name:g,type:y,value:b}=e;if(y==="image"){let x=g?`${g}.`:"";c.append(`${x}x`,"0"),c.append(`${x}y`,"0")}else g&&c.append(g,b)}}else{if(Ru(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=Hc,o=null,s=Vc,u=e}return c&&s==="text/plain"&&(u=c,c=void 0),{action:o,method:a.toLowerCase(),encType:s,formData:c,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function $h(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function Vw(e,n,a){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return o.pathname==="/"?o.pathname=`_root.${a}`:n&&ra(o.pathname,n)==="/"?o.pathname=`${n.replace(/\/$/,"")}/_root.${a}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${a}`,o}async function qw(e,n){if(e.id in n)return n[e.id];try{let a=await import(e.module);return n[e.id]=a,a}catch(a){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Gw(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Ww(e,n,a){let o=await Promise.all(e.map(async s=>{let c=n.routes[s.route.id];if(c){let u=await qw(c,a);return u.links?u.links():[]}return[]}));return Xw(o.flat(1).filter(Gw).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function B0(e,n,a,o,s,c){let u=(h,g)=>a[g]?h.route.id!==a[g].route.id:!0,d=(h,g)=>a[g].pathname!==h.pathname||a[g].route.path?.endsWith("*")&&a[g].params["*"]!==h.params["*"];return c==="assets"?n.filter((h,g)=>u(h,g)||d(h,g)):c==="data"?n.filter((h,g)=>{let y=o.routes[h.route.id];if(!y||!y.hasLoader)return!1;if(u(h,g)||d(h,g))return!0;if(h.route.shouldRevalidate){let b=h.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:a[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function Yw(e,n,{includeHydrateFallback:a}={}){return Kw(e.map(o=>{let s=n.routes[o.route.id];if(!s)return[];let c=[s.module];return s.clientActionModule&&(c=c.concat(s.clientActionModule)),s.clientLoaderModule&&(c=c.concat(s.clientLoaderModule)),a&&s.hydrateFallbackModule&&(c=c.concat(s.hydrateFallbackModule)),s.imports&&(c=c.concat(s.imports)),c}).flat(1))}function Kw(e){return[...new Set(e)]}function Qw(e){let n={},a=Object.keys(e).sort();for(let o of a)n[o]=e[o];return n}function Xw(e,n){let a=new Set;return new Set(n),e.reduce((o,s)=>{let c=JSON.stringify(Qw(s));return a.has(c)||(a.add(c),o.push({key:c,link:s})),o},[])}function Yx(){let e=v.useContext(Mi);return $h(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Zw(){let e=v.useContext(Eu);return $h(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Bh=v.createContext(void 0);Bh.displayName="FrameworkContext";function Kx(){let e=v.useContext(Bh);return $h(e,"You must render this element inside a <HydratedRouter> element"),e}function Jw(e,n){let a=v.useContext(Bh),[o,s]=v.useState(!1),[c,u]=v.useState(!1),{onFocus:d,onBlur:h,onMouseEnter:g,onMouseLeave:y,onTouchStart:b}=n,x=v.useRef(null);v.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let w=M=>{M.forEach(j=>{u(j.isIntersecting)})},T=new IntersectionObserver(w,{threshold:.5});return x.current&&T.observe(x.current),()=>{T.disconnect()}}},[e]),v.useEffect(()=>{if(o){let w=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(w)}}},[o]);let E=()=>{s(!0)},S=()=>{s(!1),u(!1)};return a?e!=="intent"?[c,x,{}]:[c,x,{onFocus:Ls(d,E),onBlur:Ls(h,S),onMouseEnter:Ls(g,E),onMouseLeave:Ls(y,S),onTouchStart:Ls(b,E)}]:[!1,x,{}]}function Ls(e,n){return a=>{e&&e(a),a.defaultPrevented||n(a)}}function eE({page:e,...n}){let{router:a}=Yx(),o=v.useMemo(()=>Bx(a.routes,e,a.basename),[a.routes,e,a.basename]);return o?v.createElement(nE,{page:e,matches:o,...n}):null}function tE(e){let{manifest:n,routeModules:a}=Kx(),[o,s]=v.useState([]);return v.useEffect(()=>{let c=!1;return Ww(e,n,a).then(u=>{c||s(u)}),()=>{c=!0}},[e,n,a]),o}function nE({page:e,matches:n,...a}){let o=rr(),{manifest:s,routeModules:c}=Kx(),{basename:u}=Yx(),{loaderData:d,matches:h}=Zw(),g=v.useMemo(()=>B0(e,n,h,s,o,"data"),[e,n,h,s,o]),y=v.useMemo(()=>B0(e,n,h,s,o,"assets"),[e,n,h,s,o]),b=v.useMemo(()=>{if(e===o.pathname+o.search+o.hash)return[];let S=new Set,w=!1;if(n.forEach(M=>{let j=s.routes[M.route.id];!j||!j.hasLoader||(!g.some(O=>O.route.id===M.route.id)&&M.route.id in d&&c[M.route.id]?.shouldRevalidate||j.hasClientLoader?w=!0:S.add(M.route.id))}),S.size===0)return[];let T=Vw(e,u,"data");return w&&S.size>0&&T.searchParams.set("_routes",n.filter(M=>S.has(M.route.id)).map(M=>M.route.id).join(",")),[T.pathname+T.search]},[u,d,o,s,g,n,e,c]),x=v.useMemo(()=>Yw(y,s),[y,s]),E=tE(y);return v.createElement(v.Fragment,null,b.map(S=>v.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...a})),x.map(S=>v.createElement("link",{key:S,rel:"modulepreload",href:S,...a})),E.map(({key:S,link:w})=>v.createElement("link",{key:S,nonce:a.nonce,...w})))}function rE(...e){return n=>{e.forEach(a=>{typeof a=="function"?a(n):a!=null&&(a.current=n)})}}var Qx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Qx&&(window.__reactRouterVersion="7.8.2")}catch{}function aE({basename:e,children:n,window:a}){let o=v.useRef();o.current==null&&(o.current=V5({window:a,v5Compat:!0}));let s=o.current,[c,u]=v.useState({action:s.action,location:s.location}),d=v.useCallback(h=>{v.startTransition(()=>u(h))},[u]);return v.useLayoutEffect(()=>s.listen(d),[s,d]),v.createElement(_w,{basename:e,children:n,location:c.location,navigationType:c.action,navigator:s})}var Xx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,dl=v.forwardRef(function({onClick:n,discover:a="render",prefetch:o="none",relative:s,reloadDocument:c,replace:u,state:d,target:h,to:g,preventScrollReset:y,viewTransition:b,...x},E){let{basename:S}=v.useContext(mr),w=typeof g=="string"&&Xx.test(g),T,M=!1;if(typeof g=="string"&&w&&(T=g,Qx))try{let V=new URL(window.location.href),X=g.startsWith("//")?new URL(V.protocol+g):new URL(g),Z=ra(X.pathname,S);X.origin===V.origin&&Z!=null?g=Z+X.search+X.hash:M=!0}catch{tr(!1,`<Link to="${g}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let j=yw(g,{relative:s}),[O,N,A]=Jw(o,x),z=lE(g,{replace:u,state:d,target:h,preventScrollReset:y,relative:s,viewTransition:b});function L(V){n&&n(V),V.defaultPrevented||z(V)}let B=v.createElement("a",{...x,...A,href:T||j,onClick:M||c?n:L,ref:rE(E,N),target:h,"data-discover":!w&&a==="render"?"true":void 0});return O&&!w?v.createElement(v.Fragment,null,B,v.createElement(eE,{page:j})):B});dl.displayName="Link";var oE=v.forwardRef(function({"aria-current":n="page",caseSensitive:a=!1,className:o="",end:s=!1,style:c,to:u,viewTransition:d,children:h,...g},y){let b=ul(u,{relative:g.relative}),x=rr(),E=v.useContext(Eu),{navigator:S,basename:w}=v.useContext(mr),T=E!=null&&hE(b)&&d===!0,M=S.encodeLocation?S.encodeLocation(b).pathname:b.pathname,j=x.pathname,O=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;a||(j=j.toLowerCase(),O=O?O.toLowerCase():null,M=M.toLowerCase()),O&&w&&(O=ra(O,w)||O);const N=M!=="/"&&M.endsWith("/")?M.length-1:M.length;let A=j===M||!s&&j.startsWith(M)&&j.charAt(N)==="/",z=O!=null&&(O===M||!s&&O.startsWith(M)&&O.charAt(M.length)==="/"),L={isActive:A,isPending:z,isTransitioning:T},B=A?n:void 0,V;typeof o=="function"?V=o(L):V=[o,A?"active":null,z?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let X=typeof c=="function"?c(L):c;return v.createElement(dl,{...g,"aria-current":B,className:V,ref:y,style:X,to:u,viewTransition:d},typeof h=="function"?h(L):h)});oE.displayName="NavLink";var iE=v.forwardRef(({discover:e="render",fetcherKey:n,navigate:a,reloadDocument:o,replace:s,state:c,method:u=Hc,action:d,onSubmit:h,relative:g,preventScrollReset:y,viewTransition:b,...x},E)=>{let S=fE(),w=pE(d,{relative:g}),T=u.toLowerCase()==="get"?"get":"post",M=typeof d=="string"&&Xx.test(d),j=O=>{if(h&&h(O),O.defaultPrevented)return;O.preventDefault();let N=O.nativeEvent.submitter,A=N?.getAttribute("formmethod")||u;S(N||O.currentTarget,{fetcherKey:n,method:A,navigate:a,replace:s,state:c,relative:g,preventScrollReset:y,viewTransition:b})};return v.createElement("form",{ref:E,method:T,action:w,onSubmit:o?h:j,...x,"data-discover":!M&&e==="render"?"true":void 0})});iE.displayName="Form";function sE(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Zx(e){let n=v.useContext(Mi);return kt(n,sE(e)),n}function lE(e,{target:n,replace:a,state:o,preventScrollReset:s,relative:c,viewTransition:u}={}){let d=gr(),h=rr(),g=ul(e,{relative:c});return v.useCallback(y=>{if(Bw(y,n)){y.preventDefault();let b=a!==void 0?a:tl(h)===tl(g);d(e,{replace:b,state:o,preventScrollReset:s,relative:c,viewTransition:u})}},[h,d,g,a,o,n,e,s,c,u])}function cE(e){tr(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let n=v.useRef(Kp(e)),a=v.useRef(!1),o=rr(),s=v.useMemo(()=>Iw(o.search,a.current?null:n.current),[o.search]),c=gr(),u=v.useCallback((d,h)=>{const g=Kp(typeof d=="function"?d(new URLSearchParams(s)):d);a.current=!0,c("?"+g,h)},[c,s]);return[s,u]}var uE=0,dE=()=>`__${String(++uE)}__`;function fE(){let{router:e}=Zx("useSubmit"),{basename:n}=v.useContext(mr),a=jw();return v.useCallback(async(o,s={})=>{let{action:c,method:u,encType:d,formData:h,body:g}=Hw(o,n);if(s.navigate===!1){let y=s.fetcherKey||dE();await e.fetch(y,a,s.action||c,{preventScrollReset:s.preventScrollReset,formData:h,body:g,formMethod:s.method||u,formEncType:s.encType||d,flushSync:s.flushSync})}else await e.navigate(s.action||c,{preventScrollReset:s.preventScrollReset,formData:h,body:g,formMethod:s.method||u,formEncType:s.encType||d,replace:s.replace,state:s.state,fromRouteId:a,flushSync:s.flushSync,viewTransition:s.viewTransition})},[e,n,a])}function pE(e,{relative:n}={}){let{basename:a}=v.useContext(mr),o=v.useContext(Dr);kt(o,"useFormAction must be used inside a RouteContext");let[s]=o.matches.slice(-1),c={...ul(e||".",{relative:n})},u=rr();if(e==null){c.search=u.search;let d=new URLSearchParams(c.search),h=d.getAll("index");if(h.some(y=>y==="")){d.delete("index"),h.filter(b=>b).forEach(b=>d.append("index",b));let y=d.toString();c.search=y?`?${y}`:""}}return(!e||e===".")&&s.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(c.pathname=c.pathname==="/"?a:ta([a,c.pathname])),tl(c)}function hE(e,{relative:n}={}){let a=v.useContext(Hx);kt(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=Zx("useViewTransitionState"),s=ul(e,{relative:n});if(!a.isTransitioning)return!1;let c=ra(a.currentLocation.pathname,o)||a.currentLocation.pathname,u=ra(a.nextLocation.pathname,o)||a.nextLocation.pathname;return Jc(s.pathname,u)!=null||Jc(s.pathname,c)!=null}var Jx=$x();const qs=Oh(Jx);function aa(e,...n){const a=new URL(`https://mui.com/production-error/?code=${e}`);return n.forEach(o=>a.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${a} for the full message.`}const kr="$$material";function eu(){return eu=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var o in a)({}).hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},eu.apply(null,arguments)}function mE(e){if(e.sheet)return e.sheet;for(var n=0;n<document.styleSheets.length;n++)if(document.styleSheets[n].ownerNode===e)return document.styleSheets[n]}function gE(e){var n=document.createElement("style");return n.setAttribute("data-emotion",e.key),e.nonce!==void 0&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode("")),n.setAttribute("data-s",""),n}var yE=function(){function e(a){var o=this;this._insertTag=function(s){var c;o.tags.length===0?o.insertionPoint?c=o.insertionPoint.nextSibling:o.prepend?c=o.container.firstChild:c=o.before:c=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(s,c),o.tags.push(s)},this.isSpeedy=a.speedy===void 0?!0:a.speedy,this.tags=[],this.ctr=0,this.nonce=a.nonce,this.key=a.key,this.container=a.container,this.prepend=a.prepend,this.insertionPoint=a.insertionPoint,this.before=null}var n=e.prototype;return n.hydrate=function(o){o.forEach(this._insertTag)},n.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(gE(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var c=mE(s);try{c.insertRule(o,c.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(o));this.ctr++},n.flush=function(){this.tags.forEach(function(o){var s;return(s=o.parentNode)==null?void 0:s.removeChild(o)}),this.tags=[],this.ctr=0},e}(),dn="-ms-",tu="-moz-",lt="-webkit-",e1="comm",Ih="rule",Fh="decl",bE="@import",t1="@keyframes",vE="@layer",xE=Math.abs,Tu=String.fromCharCode,SE=Object.assign;function CE(e,n){return on(e,0)^45?(((n<<2^on(e,0))<<2^on(e,1))<<2^on(e,2))<<2^on(e,3):0}function n1(e){return e.trim()}function wE(e,n){return(e=n.exec(e))?e[0]:e}function ct(e,n,a){return e.replace(n,a)}function Qp(e,n){return e.indexOf(n)}function on(e,n){return e.charCodeAt(n)|0}function nl(e,n,a){return e.slice(n,a)}function Rr(e){return e.length}function Uh(e){return e.length}function zc(e,n){return n.push(e),e}function EE(e,n){return e.map(n).join("")}var Au=1,Ei=1,r1=0,Tn=0,Vt=0,Oi="";function ju(e,n,a,o,s,c,u){return{value:e,root:n,parent:a,type:o,props:s,children:c,line:Au,column:Ei,length:u,return:""}}function Ps(e,n){return SE(ju("",null,null,"",null,null,0),e,{length:-e.length},n)}function RE(){return Vt}function TE(){return Vt=Tn>0?on(Oi,--Tn):0,Ei--,Vt===10&&(Ei=1,Au--),Vt}function Bn(){return Vt=Tn<r1?on(Oi,Tn++):0,Ei++,Vt===10&&(Ei=1,Au++),Vt}function Or(){return on(Oi,Tn)}function qc(){return Tn}function fl(e,n){return nl(Oi,e,n)}function rl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function a1(e){return Au=Ei=1,r1=Rr(Oi=e),Tn=0,[]}function o1(e){return Oi="",e}function Gc(e){return n1(fl(Tn-1,Xp(e===91?e+2:e===40?e+1:e)))}function AE(e){for(;(Vt=Or())&&Vt<33;)Bn();return rl(e)>2||rl(Vt)>3?"":" "}function jE(e,n){for(;--n&&Bn()&&!(Vt<48||Vt>102||Vt>57&&Vt<65||Vt>70&&Vt<97););return fl(e,qc()+(n<6&&Or()==32&&Bn()==32))}function Xp(e){for(;Bn();)switch(Vt){case e:return Tn;case 34:case 39:e!==34&&e!==39&&Xp(Vt);break;case 40:e===41&&Xp(e);break;case 92:Bn();break}return Tn}function ME(e,n){for(;Bn()&&e+Vt!==57;)if(e+Vt===84&&Or()===47)break;return"/*"+fl(n,Tn-1)+"*"+Tu(e===47?e:Bn())}function kE(e){for(;!rl(Or());)Bn();return fl(e,Tn)}function OE(e){return o1(Wc("",null,null,null,[""],e=a1(e),0,[0],e))}function Wc(e,n,a,o,s,c,u,d,h){for(var g=0,y=0,b=u,x=0,E=0,S=0,w=1,T=1,M=1,j=0,O="",N=s,A=c,z=o,L=O;T;)switch(S=j,j=Bn()){case 40:if(S!=108&&on(L,b-1)==58){Qp(L+=ct(Gc(j),"&","&\f"),"&\f")!=-1&&(M=-1);break}case 34:case 39:case 91:L+=Gc(j);break;case 9:case 10:case 13:case 32:L+=AE(S);break;case 92:L+=jE(qc()-1,7);continue;case 47:switch(Or()){case 42:case 47:zc(NE(ME(Bn(),qc()),n,a),h);break;default:L+="/"}break;case 123*w:d[g++]=Rr(L)*M;case 125*w:case 59:case 0:switch(j){case 0:case 125:T=0;case 59+y:M==-1&&(L=ct(L,/\f/g,"")),E>0&&Rr(L)-b&&zc(E>32?F0(L+";",o,a,b-1):F0(ct(L," ","")+";",o,a,b-2),h);break;case 59:L+=";";default:if(zc(z=I0(L,n,a,g,y,s,d,O,N=[],A=[],b),c),j===123)if(y===0)Wc(L,n,z,z,N,c,b,d,A);else switch(x===99&&on(L,3)===110?100:x){case 100:case 108:case 109:case 115:Wc(e,z,z,o&&zc(I0(e,z,z,0,0,s,d,O,s,N=[],b),A),s,A,b,d,o?N:A);break;default:Wc(L,z,z,z,[""],A,0,d,A)}}g=y=E=0,w=M=1,O=L="",b=u;break;case 58:b=1+Rr(L),E=S;default:if(w<1){if(j==123)--w;else if(j==125&&w++==0&&TE()==125)continue}switch(L+=Tu(j),j*w){case 38:M=y>0?1:(L+="\f",-1);break;case 44:d[g++]=(Rr(L)-1)*M,M=1;break;case 64:Or()===45&&(L+=Gc(Bn())),x=Or(),y=b=Rr(O=L+=kE(qc())),j++;break;case 45:S===45&&Rr(L)==2&&(w=0)}}return c}function I0(e,n,a,o,s,c,u,d,h,g,y){for(var b=s-1,x=s===0?c:[""],E=Uh(x),S=0,w=0,T=0;S<o;++S)for(var M=0,j=nl(e,b+1,b=xE(w=u[S])),O=e;M<E;++M)(O=n1(w>0?x[M]+" "+j:ct(j,/&\f/g,x[M])))&&(h[T++]=O);return ju(e,n,a,s===0?Ih:d,h,g,y)}function NE(e,n,a){return ju(e,n,a,e1,Tu(RE()),nl(e,2,-2),0)}function F0(e,n,a,o){return ju(e,n,a,Fh,nl(e,0,o),nl(e,o+1,-1),o)}function xi(e,n){for(var a="",o=Uh(e),s=0;s<o;s++)a+=n(e[s],s,e,n)||"";return a}function _E(e,n,a,o){switch(e.type){case vE:if(e.children.length)break;case bE:case Fh:return e.return=e.return||e.value;case e1:return"";case t1:return e.return=e.value+"{"+xi(e.children,o)+"}";case Ih:e.value=e.props.join(",")}return Rr(a=xi(e.children,o))?e.return=e.value+"{"+a+"}":""}function zE(e){var n=Uh(e);return function(a,o,s,c){for(var u="",d=0;d<n;d++)u+=e[d](a,o,s,c)||"";return u}}function DE(e){return function(n){n.root||(n=n.return)&&e(n)}}function i1(e){var n=Object.create(null);return function(a){return n[a]===void 0&&(n[a]=e(a)),n[a]}}var LE=function(n,a,o){for(var s=0,c=0;s=c,c=Or(),s===38&&c===12&&(a[o]=1),!rl(c);)Bn();return fl(n,Tn)},PE=function(n,a){var o=-1,s=44;do switch(rl(s)){case 0:s===38&&Or()===12&&(a[o]=1),n[o]+=LE(Tn-1,a,o);break;case 2:n[o]+=Gc(s);break;case 4:if(s===44){n[++o]=Or()===58?"&\f":"",a[o]=n[o].length;break}default:n[o]+=Tu(s)}while(s=Bn());return n},$E=function(n,a){return o1(PE(a1(n),a))},U0=new WeakMap,BE=function(n){if(!(n.type!=="rule"||!n.parent||n.length<1)){for(var a=n.value,o=n.parent,s=n.column===o.column&&n.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(n.props.length===1&&a.charCodeAt(0)!==58&&!U0.get(o))&&!s){U0.set(n,!0);for(var c=[],u=$E(a,c),d=o.props,h=0,g=0;h<u.length;h++)for(var y=0;y<d.length;y++,g++)n.props[g]=c[h]?u[h].replace(/&\f/g,d[y]):d[y]+" "+u[h]}}},IE=function(n){if(n.type==="decl"){var a=n.value;a.charCodeAt(0)===108&&a.charCodeAt(2)===98&&(n.return="",n.value="")}};function s1(e,n){switch(CE(e,n)){case 5103:return lt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return lt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return lt+e+tu+e+dn+e+e;case 6828:case 4268:return lt+e+dn+e+e;case 6165:return lt+e+dn+"flex-"+e+e;case 5187:return lt+e+ct(e,/(\w+).+(:[^]+)/,lt+"box-$1$2"+dn+"flex-$1$2")+e;case 5443:return lt+e+dn+"flex-item-"+ct(e,/flex-|-self/,"")+e;case 4675:return lt+e+dn+"flex-line-pack"+ct(e,/align-content|flex-|-self/,"")+e;case 5548:return lt+e+dn+ct(e,"shrink","negative")+e;case 5292:return lt+e+dn+ct(e,"basis","preferred-size")+e;case 6060:return lt+"box-"+ct(e,"-grow","")+lt+e+dn+ct(e,"grow","positive")+e;case 4554:return lt+ct(e,/([^-])(transform)/g,"$1"+lt+"$2")+e;case 6187:return ct(ct(ct(e,/(zoom-|grab)/,lt+"$1"),/(image-set)/,lt+"$1"),e,"")+e;case 5495:case 3959:return ct(e,/(image-set\([^]*)/,lt+"$1$`$1");case 4968:return ct(ct(e,/(.+:)(flex-)?(.*)/,lt+"box-pack:$3"+dn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+lt+e+e;case 4095:case 3583:case 4068:case 2532:return ct(e,/(.+)-inline(.+)/,lt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Rr(e)-1-n>6)switch(on(e,n+1)){case 109:if(on(e,n+4)!==45)break;case 102:return ct(e,/(.+:)(.+)-([^]+)/,"$1"+lt+"$2-$3$1"+tu+(on(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~Qp(e,"stretch")?s1(ct(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(on(e,n+1)!==115)break;case 6444:switch(on(e,Rr(e)-3-(~Qp(e,"!important")&&10))){case 107:return ct(e,":",":"+lt)+e;case 101:return ct(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+lt+(on(e,14)===45?"inline-":"")+"box$3$1"+lt+"$2$3$1"+dn+"$2box$3")+e}break;case 5936:switch(on(e,n+11)){case 114:return lt+e+dn+ct(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return lt+e+dn+ct(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return lt+e+dn+ct(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return lt+e+dn+e+e}return e}var FE=function(n,a,o,s){if(n.length>-1&&!n.return)switch(n.type){case Fh:n.return=s1(n.value,n.length);break;case t1:return xi([Ps(n,{value:ct(n.value,"@","@"+lt)})],s);case Ih:if(n.length)return EE(n.props,function(c){switch(wE(c,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xi([Ps(n,{props:[ct(c,/:(read-\w+)/,":"+tu+"$1")]})],s);case"::placeholder":return xi([Ps(n,{props:[ct(c,/:(plac\w+)/,":"+lt+"input-$1")]}),Ps(n,{props:[ct(c,/:(plac\w+)/,":"+tu+"$1")]}),Ps(n,{props:[ct(c,/:(plac\w+)/,dn+"input-$1")]})],s)}return""})}},UE=[FE],HE=function(n){var a=n.key;if(a==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(w){var T=w.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var s=n.stylisPlugins||UE,c={},u,d=[];u=n.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+a+' "]'),function(w){for(var T=w.getAttribute("data-emotion").split(" "),M=1;M<T.length;M++)c[T[M]]=!0;d.push(w)});var h,g=[BE,IE];{var y,b=[_E,DE(function(w){y.insert(w)})],x=zE(g.concat(s,b)),E=function(T){return xi(OE(T),x)};h=function(T,M,j,O){y=j,E(T?T+"{"+M.styles+"}":M.styles),O&&(S.inserted[M.name]=!0)}}var S={key:a,sheet:new yE({key:a,container:u,nonce:n.nonce,speedy:n.speedy,prepend:n.prepend,insertionPoint:n.insertionPoint}),nonce:n.nonce,inserted:c,registered:{},insert:h};return S.sheet.hydrate(d),S},mp={exports:{}},ut={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var H0;function VE(){if(H0)return ut;H0=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,g=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,M=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function O(A){if(typeof A=="object"&&A!==null){var z=A.$$typeof;switch(z){case n:switch(A=A.type,A){case h:case g:case o:case c:case s:case b:return A;default:switch(A=A&&A.$$typeof,A){case d:case y:case S:case E:case u:return A;default:return z}}case a:return z}}}function N(A){return O(A)===g}return ut.AsyncMode=h,ut.ConcurrentMode=g,ut.ContextConsumer=d,ut.ContextProvider=u,ut.Element=n,ut.ForwardRef=y,ut.Fragment=o,ut.Lazy=S,ut.Memo=E,ut.Portal=a,ut.Profiler=c,ut.StrictMode=s,ut.Suspense=b,ut.isAsyncMode=function(A){return N(A)||O(A)===h},ut.isConcurrentMode=N,ut.isContextConsumer=function(A){return O(A)===d},ut.isContextProvider=function(A){return O(A)===u},ut.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===n},ut.isForwardRef=function(A){return O(A)===y},ut.isFragment=function(A){return O(A)===o},ut.isLazy=function(A){return O(A)===S},ut.isMemo=function(A){return O(A)===E},ut.isPortal=function(A){return O(A)===a},ut.isProfiler=function(A){return O(A)===c},ut.isStrictMode=function(A){return O(A)===s},ut.isSuspense=function(A){return O(A)===b},ut.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===o||A===g||A===c||A===s||A===b||A===x||typeof A=="object"&&A!==null&&(A.$$typeof===S||A.$$typeof===E||A.$$typeof===u||A.$$typeof===d||A.$$typeof===y||A.$$typeof===T||A.$$typeof===M||A.$$typeof===j||A.$$typeof===w)},ut.typeOf=O,ut}var V0;function qE(){return V0||(V0=1,mp.exports=VE()),mp.exports}var gp,q0;function GE(){if(q0)return gp;q0=1;var e=qE(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[e.ForwardRef]=o,c[e.Memo]=s;function u(S){return e.isMemo(S)?s:c[S.$$typeof]||n}var d=Object.defineProperty,h=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,x=Object.prototype;function E(S,w,T){if(typeof w!="string"){if(x){var M=b(w);M&&M!==x&&E(S,M,T)}var j=h(w);g&&(j=j.concat(g(w)));for(var O=u(S),N=u(w),A=0;A<j.length;++A){var z=j[A];if(!a[z]&&!(T&&T[z])&&!(N&&N[z])&&!(O&&O[z])){var L=y(w,z);try{d(S,z,L)}catch{}}}}return S}return gp=E,gp}GE();var WE=!0;function l1(e,n,a){var o="";return a.split(" ").forEach(function(s){e[s]!==void 0?n.push(e[s]+";"):s&&(o+=s+" ")}),o}var Hh=function(n,a,o){var s=n.key+"-"+a.name;(o===!1||WE===!1)&&n.registered[s]===void 0&&(n.registered[s]=a.styles)},Vh=function(n,a,o){Hh(n,a,o);var s=n.key+"-"+a.name;if(n.inserted[a.name]===void 0){var c=a;do n.insert(a===c?"."+s:"",c,n.sheet,!0),c=c.next;while(c!==void 0)}};function YE(e){for(var n=0,a,o=0,s=e.length;s>=4;++o,s-=4)a=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,a=(a&65535)*1540483477+((a>>>16)*59797<<16),a^=a>>>24,n=(a&65535)*1540483477+((a>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(s){case 3:n^=(e.charCodeAt(o+2)&255)<<16;case 2:n^=(e.charCodeAt(o+1)&255)<<8;case 1:n^=e.charCodeAt(o)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}var KE={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},QE=/[A-Z]|^ms/g,XE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c1=function(n){return n.charCodeAt(1)===45},G0=function(n){return n!=null&&typeof n!="boolean"},yp=i1(function(e){return c1(e)?e:e.replace(QE,"-$&").toLowerCase()}),W0=function(n,a){switch(n){case"animation":case"animationName":if(typeof a=="string")return a.replace(XE,function(o,s,c){return Tr={name:s,styles:c,next:Tr},s})}return KE[n]!==1&&!c1(n)&&typeof a=="number"&&a!==0?a+"px":a};function al(e,n,a){if(a==null)return"";var o=a;if(o.__emotion_styles!==void 0)return o;switch(typeof a){case"boolean":return"";case"object":{var s=a;if(s.anim===1)return Tr={name:s.name,styles:s.styles,next:Tr},s.name;var c=a;if(c.styles!==void 0){var u=c.next;if(u!==void 0)for(;u!==void 0;)Tr={name:u.name,styles:u.styles,next:Tr},u=u.next;var d=c.styles+";";return d}return ZE(e,n,a)}case"function":{if(e!==void 0){var h=Tr,g=a(e);return Tr=h,al(e,n,g)}break}}var y=a;if(n==null)return y;var b=n[y];return b!==void 0?b:y}function ZE(e,n,a){var o="";if(Array.isArray(a))for(var s=0;s<a.length;s++)o+=al(e,n,a[s])+";";else for(var c in a){var u=a[c];if(typeof u!="object"){var d=u;n!=null&&n[d]!==void 0?o+=c+"{"+n[d]+"}":G0(d)&&(o+=yp(c)+":"+W0(c,d)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(n==null||n[u[0]]===void 0))for(var h=0;h<u.length;h++)G0(u[h])&&(o+=yp(c)+":"+W0(c,u[h])+";");else{var g=al(e,n,u);switch(c){case"animation":case"animationName":{o+=yp(c)+":"+g+";";break}default:o+=c+"{"+g+"}"}}}return o}var Y0=/label:\s*([^\s;{]+)\s*(;|$)/g,Tr;function pl(e,n,a){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,s="";Tr=void 0;var c=e[0];if(c==null||c.raw===void 0)o=!1,s+=al(a,n,c);else{var u=c;s+=u[0]}for(var d=1;d<e.length;d++)if(s+=al(a,n,e[d]),o){var h=c;s+=h[d]}Y0.lastIndex=0;for(var g="",y;(y=Y0.exec(s))!==null;)g+="-"+y[1];var b=YE(s)+g;return{name:b,styles:s,next:Tr}}var JE=function(n){return n()},u1=Gp.useInsertionEffect?Gp.useInsertionEffect:!1,d1=u1||JE,K0=u1||v.useLayoutEffect,f1=v.createContext(typeof HTMLElement<"u"?HE({key:"css"}):null);f1.Provider;var qh=function(n){return v.forwardRef(function(a,o){var s=v.useContext(f1);return n(a,s,o)})},hl=v.createContext({}),Gh={}.hasOwnProperty,Zp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",eR=function(n,a){var o={};for(var s in a)Gh.call(a,s)&&(o[s]=a[s]);return o[Zp]=n,o},tR=function(n){var a=n.cache,o=n.serialized,s=n.isStringTag;return Hh(a,o,s),d1(function(){return Vh(a,o,s)}),null},nR=qh(function(e,n,a){var o=e.css;typeof o=="string"&&n.registered[o]!==void 0&&(o=n.registered[o]);var s=e[Zp],c=[o],u="";typeof e.className=="string"?u=l1(n.registered,c,e.className):e.className!=null&&(u=e.className+" ");var d=pl(c,void 0,v.useContext(hl));u+=n.key+"-"+d.name;var h={};for(var g in e)Gh.call(e,g)&&g!=="css"&&g!==Zp&&(h[g]=e[g]);return h.className=u,a&&(h.ref=a),v.createElement(v.Fragment,null,v.createElement(tR,{cache:n,serialized:d,isStringTag:typeof s=="string"}),v.createElement(s,h))}),rR=nR,Q0=function(n,a){var o=arguments;if(a==null||!Gh.call(a,"css"))return v.createElement.apply(void 0,o);var s=o.length,c=new Array(s);c[0]=rR,c[1]=eR(n,a);for(var u=2;u<s;u++)c[u]=o[u];return v.createElement.apply(null,c)};(function(e){var n;n||(n=e.JSX||(e.JSX={}))})(Q0||(Q0={}));var aR=qh(function(e,n){var a=e.styles,o=pl([a],void 0,v.useContext(hl)),s=v.useRef();return K0(function(){var c=n.key+"-global",u=new n.sheet.constructor({key:c,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),d=!1,h=document.querySelector('style[data-emotion="'+c+" "+o.name+'"]');return n.sheet.tags.length&&(u.before=n.sheet.tags[0]),h!==null&&(d=!0,h.setAttribute("data-emotion",c),u.hydrate([h])),s.current=[u,d],function(){u.flush()}},[n]),K0(function(){var c=s.current,u=c[0],d=c[1];if(d){c[1]=!1;return}if(o.next!==void 0&&Vh(n,o.next,!0),u.tags.length){var h=u.tags[u.tags.length-1].nextElementSibling;u.before=h,u.flush()}n.insert("",o,u,!1)},[n,o.name]),null});function Fa(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return pl(n)}function ar(){var e=Fa.apply(void 0,arguments),n="animation-"+e.name;return{name:n,styles:"@keyframes "+n+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var oR=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,iR=i1(function(e){return oR.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),sR=iR,lR=function(n){return n!=="theme"},X0=function(n){return typeof n=="string"&&n.charCodeAt(0)>96?sR:lR},Z0=function(n,a,o){var s;if(a){var c=a.shouldForwardProp;s=n.__emotion_forwardProp&&c?function(u){return n.__emotion_forwardProp(u)&&c(u)}:c}return typeof s!="function"&&o&&(s=n.__emotion_forwardProp),s},cR=function(n){var a=n.cache,o=n.serialized,s=n.isStringTag;return Hh(a,o,s),d1(function(){return Vh(a,o,s)}),null},uR=function e(n,a){var o=n.__emotion_real===n,s=o&&n.__emotion_base||n,c,u;a!==void 0&&(c=a.label,u=a.target);var d=Z0(n,a,o),h=d||X0(s),g=!h("as");return function(){var y=arguments,b=o&&n.__emotion_styles!==void 0?n.__emotion_styles.slice(0):[];if(c!==void 0&&b.push("label:"+c+";"),y[0]==null||y[0].raw===void 0)b.push.apply(b,y);else{var x=y[0];b.push(x[0]);for(var E=y.length,S=1;S<E;S++)b.push(y[S],x[S])}var w=qh(function(T,M,j){var O=g&&T.as||s,N="",A=[],z=T;if(T.theme==null){z={};for(var L in T)z[L]=T[L];z.theme=v.useContext(hl)}typeof T.className=="string"?N=l1(M.registered,A,T.className):T.className!=null&&(N=T.className+" ");var B=pl(b.concat(A),M.registered,z);N+=M.key+"-"+B.name,u!==void 0&&(N+=" "+u);var V=g&&d===void 0?X0(O):h,X={};for(var Z in T)g&&Z==="as"||V(Z)&&(X[Z]=T[Z]);return X.className=N,j&&(X.ref=j),v.createElement(v.Fragment,null,v.createElement(cR,{cache:M,serialized:B,isStringTag:typeof O=="string"}),v.createElement(O,X))});return w.displayName=c!==void 0?c:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",w.defaultProps=n.defaultProps,w.__emotion_real=w,w.__emotion_base=s,w.__emotion_styles=b,w.__emotion_forwardProp=d,Object.defineProperty(w,"toString",{value:function(){return"."+u}}),w.withComponent=function(T,M){var j=e(T,eu({},a,M,{shouldForwardProp:Z0(w,M,!0)}));return j.apply(void 0,b)},w}},dR=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Jp=uR.bind(null);dR.forEach(function(e){Jp[e]=Jp(e)});var bp={exports:{}},vp,J0;function fR(){if(J0)return vp;J0=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return vp=e,vp}var xp,ev;function pR(){if(ev)return xp;ev=1;var e=fR();function n(){}function a(){}return a.resetWarningCache=n,xp=function(){function o(u,d,h,g,y,b){if(b!==e){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}}o.isRequired=o;function s(){return o}var c={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:s,element:o,elementType:o,instanceOf:s,node:o,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:a,resetWarningCache:n};return c.PropTypes=c,c},xp}var tv;function hR(){return tv||(tv=1,bp.exports=pR()()),bp.exports}var mR=hR();const qe=Oh(mR);function gR(e){return e==null||Object.keys(e).length===0}function p1(e){const{styles:n,defaultTheme:a={}}=e,o=typeof n=="function"?s=>n(gR(s)?a:s):n;return p.jsx(aR,{styles:o})}function h1(e,n){return Jp(e,n)}function yR(e,n){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=n(e.__emotion_styles))}const nv=[];function Da(e){return nv[0]=e,pl(nv)}var Sp={exports:{}},vt={};/**
 * @license React
 * react-is.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 rv;function bR(){if(rv)return vt;rv=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.view_transition"),E=Symbol.for("react.client.reference");function S(w){if(typeof w=="object"&&w!==null){var T=w.$$typeof;switch(T){case e:switch(w=w.type,w){case a:case s:case o:case h:case g:case x:return w;default:switch(w=w&&w.$$typeof,w){case u:case d:case b:case y:return w;case c:return w;default:return T}}case n:return T}}}return vt.ContextConsumer=c,vt.ContextProvider=u,vt.Element=e,vt.ForwardRef=d,vt.Fragment=a,vt.Lazy=b,vt.Memo=y,vt.Portal=n,vt.Profiler=s,vt.StrictMode=o,vt.Suspense=h,vt.SuspenseList=g,vt.isContextConsumer=function(w){return S(w)===c},vt.isContextProvider=function(w){return S(w)===u},vt.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},vt.isForwardRef=function(w){return S(w)===d},vt.isFragment=function(w){return S(w)===a},vt.isLazy=function(w){return S(w)===b},vt.isMemo=function(w){return S(w)===y},vt.isPortal=function(w){return S(w)===n},vt.isProfiler=function(w){return S(w)===s},vt.isStrictMode=function(w){return S(w)===o},vt.isSuspense=function(w){return S(w)===h},vt.isSuspenseList=function(w){return S(w)===g},vt.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===a||w===s||w===o||w===h||w===g||typeof w=="object"&&w!==null&&(w.$$typeof===b||w.$$typeof===y||w.$$typeof===u||w.$$typeof===c||w.$$typeof===d||w.$$typeof===E||w.getModuleId!==void 0)},vt.typeOf=S,vt}var av;function vR(){return av||(av=1,Sp.exports=bR()),Sp.exports}var m1=vR();function jr(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function g1(e){if(v.isValidElement(e)||m1.isValidElementType(e)||!jr(e))return e;const n={};return Object.keys(e).forEach(a=>{n[a]=g1(e[a])}),n}function pn(e,n,a={clone:!0}){const o=a.clone?{...e}:e;return jr(e)&&jr(n)&&Object.keys(n).forEach(s=>{v.isValidElement(n[s])||m1.isValidElementType(n[s])?o[s]=n[s]:jr(n[s])&&Object.prototype.hasOwnProperty.call(e,s)&&jr(e[s])?o[s]=pn(e[s],n[s],a):a.clone?o[s]=jr(n[s])?g1(n[s]):n[s]:o[s]=n[s]}),o}const xR=e=>{const n=Object.keys(e).map(a=>({key:a,val:e[a]}))||[];return n.sort((a,o)=>a.val-o.val),n.reduce((a,o)=>({...a,[o.key]:o.val}),{})};function SR(e){const{values:n={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:a="px",step:o=5,...s}=e,c=xR(n),u=Object.keys(c);function d(x){return`@media (min-width:${typeof n[x]=="number"?n[x]:x}${a})`}function h(x){return`@media (max-width:${(typeof n[x]=="number"?n[x]:x)-o/100}${a})`}function g(x,E){const S=u.indexOf(E);return`@media (min-width:${typeof n[x]=="number"?n[x]:x}${a}) and (max-width:${(S!==-1&&typeof n[u[S]]=="number"?n[u[S]]:E)-o/100}${a})`}function y(x){return u.indexOf(x)+1<u.length?g(x,u[u.indexOf(x)+1]):d(x)}function b(x){const E=u.indexOf(x);return E===0?d(u[1]):E===u.length-1?h(u[E]):g(x,u[u.indexOf(x)+1]).replace("@media","@media not all and")}return{keys:u,values:c,up:d,down:h,between:g,only:y,not:b,unit:a,...s}}function ov(e,n){if(!e.containerQueries)return n;const a=Object.keys(n).filter(o=>o.startsWith("@container")).sort((o,s)=>{const c=/min-width:\s*([0-9.]+)/;return+(o.match(c)?.[1]||0)-+(s.match(c)?.[1]||0)});return a.length?a.reduce((o,s)=>{const c=n[s];return delete o[s],o[s]=c,o},{...n}):n}function CR(e,n){return n==="@"||n.startsWith("@")&&(e.some(a=>n.startsWith(`@${a}`))||!!n.match(/^@\d/))}function wR(e,n){const a=n.match(/^@([^/]+)?\/?(.+)?$/);if(!a)return null;const[,o,s]=a,c=Number.isNaN(+o)?o||0:+o;return e.containerQueries(s).up(c)}function ER(e){const n=(c,u)=>c.replace("@media",u?`@container ${u}`:"@container");function a(c,u){c.up=(...d)=>n(e.breakpoints.up(...d),u),c.down=(...d)=>n(e.breakpoints.down(...d),u),c.between=(...d)=>n(e.breakpoints.between(...d),u),c.only=(...d)=>n(e.breakpoints.only(...d),u),c.not=(...d)=>{const h=n(e.breakpoints.not(...d),u);return h.includes("not all and")?h.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):h}}const o={},s=c=>(a(o,c),o);return a(s),{...e,containerQueries:s}}const RR={borderRadius:4};function Xs(e,n){return n?pn(e,n,{clone:!1}):e}const Mu={xs:0,sm:600,md:900,lg:1200,xl:1536},iv={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Mu[e]}px)`},TR={containerQueries:e=>({up:n=>{let a=typeof n=="number"?n:Mu[n]||n;return typeof a=="number"&&(a=`${a}px`),e?`@container ${e} (min-width:${a})`:`@container (min-width:${a})`}})};function oa(e,n,a){const o=e.theme||{};if(Array.isArray(n)){const c=o.breakpoints||iv;return n.reduce((u,d,h)=>(u[c.up(c.keys[h])]=a(n[h]),u),{})}if(typeof n=="object"){const c=o.breakpoints||iv;return Object.keys(n).reduce((u,d)=>{if(CR(c.keys,d)){const h=wR(o.containerQueries?o:TR,d);h&&(u[h]=a(n[d],d))}else if(Object.keys(c.values||Mu).includes(d)){const h=c.up(d);u[h]=a(n[d],d)}else{const h=d;u[h]=n[h]}return u},{})}return a(n)}function AR(e={}){return e.keys?.reduce((a,o)=>{const s=e.up(o);return a[s]={},a},{})||{}}function sv(e,n){return e.reduce((a,o)=>{const s=a[o];return(!s||Object.keys(s).length===0)&&delete a[o],a},n)}function he(e){if(typeof e!="string")throw new Error(aa(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ar(e,n,a=!0){if(!n||typeof n!="string")return null;if(e&&e.vars&&a){const o=`vars.${n}`.split(".").reduce((s,c)=>s&&s[c]?s[c]:null,e);if(o!=null)return o}return n.split(".").reduce((o,s)=>o&&o[s]!=null?o[s]:null,e)}function nu(e,n,a,o=a){let s;return typeof e=="function"?s=e(a):Array.isArray(e)?s=e[a]||o:s=Ar(e,a)||o,n&&(s=n(s,o,e)),s}function It(e){const{prop:n,cssProperty:a=e.prop,themeKey:o,transform:s}=e,c=u=>{if(u[n]==null)return null;const d=u[n],h=u.theme,g=Ar(h,o)||{};return oa(u,d,b=>{let x=nu(g,s,b);return b===x&&typeof b=="string"&&(x=nu(g,s,`${n}${b==="default"?"":he(b)}`,b)),a===!1?x:{[a]:x}})};return c.propTypes={},c.filterProps=[n],c}function jR(e){const n={};return a=>(n[a]===void 0&&(n[a]=e(a)),n[a])}const MR={m:"margin",p:"padding"},kR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},lv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},OR=jR(e=>{if(e.length>2)if(lv[e])e=lv[e];else return[e];const[n,a]=e.split(""),o=MR[n],s=kR[a]||"";return Array.isArray(s)?s.map(c=>o+c):[o+s]}),Wh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Yh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Wh,...Yh];function ml(e,n,a,o){const s=Ar(e,n,!0)??a;return typeof s=="number"||typeof s=="string"?c=>typeof c=="string"?c:typeof s=="string"?s.startsWith("var(")&&c===0?0:s.startsWith("var(")&&c===1?s:`calc(${c} * ${s})`:s*c:Array.isArray(s)?c=>{if(typeof c=="string")return c;const u=Math.abs(c),d=s[u];return c>=0?d:typeof d=="number"?-d:typeof d=="string"&&d.startsWith("var(")?`calc(-1 * ${d})`:`-${d}`}:typeof s=="function"?s:()=>{}}function Kh(e){return ml(e,"spacing",8)}function gl(e,n){return typeof n=="string"||n==null?n:e(n)}function NR(e,n){return a=>e.reduce((o,s)=>(o[s]=gl(n,a),o),{})}function _R(e,n,a,o){if(!n.includes(a))return null;const s=OR(a),c=NR(s,o),u=e[a];return oa(e,u,c)}function y1(e,n){const a=Kh(e.theme);return Object.keys(e).map(o=>_R(e,n,o,a)).reduce(Xs,{})}function zt(e){return y1(e,Wh)}zt.propTypes={};zt.filterProps=Wh;function Dt(e){return y1(e,Yh)}Dt.propTypes={};Dt.filterProps=Yh;function b1(e=8,n=Kh({spacing:e})){if(e.mui)return e;const a=(...o)=>(o.length===0?[1]:o).map(c=>{const u=n(c);return typeof u=="number"?`${u}px`:u}).join(" ");return a.mui=!0,a}function ku(...e){const n=e.reduce((o,s)=>(s.filterProps.forEach(c=>{o[c]=s}),o),{}),a=o=>Object.keys(o).reduce((s,c)=>n[c]?Xs(s,n[c](o)):s,{});return a.propTypes={},a.filterProps=e.reduce((o,s)=>o.concat(s.filterProps),[]),a}function Zn(e){return typeof e!="number"?e:`${e}px solid`}function or(e,n){return It({prop:e,themeKey:"borders",transform:n})}const zR=or("border",Zn),DR=or("borderTop",Zn),LR=or("borderRight",Zn),PR=or("borderBottom",Zn),$R=or("borderLeft",Zn),BR=or("borderColor"),IR=or("borderTopColor"),FR=or("borderRightColor"),UR=or("borderBottomColor"),HR=or("borderLeftColor"),VR=or("outline",Zn),qR=or("outlineColor"),Ou=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const n=ml(e.theme,"shape.borderRadius",4),a=o=>({borderRadius:gl(n,o)});return oa(e,e.borderRadius,a)}return null};Ou.propTypes={};Ou.filterProps=["borderRadius"];ku(zR,DR,LR,PR,$R,BR,IR,FR,UR,HR,Ou,VR,qR);const Nu=e=>{if(e.gap!==void 0&&e.gap!==null){const n=ml(e.theme,"spacing",8),a=o=>({gap:gl(n,o)});return oa(e,e.gap,a)}return null};Nu.propTypes={};Nu.filterProps=["gap"];const _u=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const n=ml(e.theme,"spacing",8),a=o=>({columnGap:gl(n,o)});return oa(e,e.columnGap,a)}return null};_u.propTypes={};_u.filterProps=["columnGap"];const zu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const n=ml(e.theme,"spacing",8),a=o=>({rowGap:gl(n,o)});return oa(e,e.rowGap,a)}return null};zu.propTypes={};zu.filterProps=["rowGap"];const GR=It({prop:"gridColumn"}),WR=It({prop:"gridRow"}),YR=It({prop:"gridAutoFlow"}),KR=It({prop:"gridAutoColumns"}),QR=It({prop:"gridAutoRows"}),XR=It({prop:"gridTemplateColumns"}),ZR=It({prop:"gridTemplateRows"}),JR=It({prop:"gridTemplateAreas"}),eT=It({prop:"gridArea"});ku(Nu,_u,zu,GR,WR,YR,KR,QR,XR,ZR,JR,eT);function Si(e,n){return n==="grey"?n:e}const tT=It({prop:"color",themeKey:"palette",transform:Si}),nT=It({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Si}),rT=It({prop:"backgroundColor",themeKey:"palette",transform:Si});ku(tT,nT,rT);function $n(e){return e<=1&&e!==0?`${e*100}%`:e}const aT=It({prop:"width",transform:$n}),Qh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const n=a=>{const o=e.theme?.breakpoints?.values?.[a]||Mu[a];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:$n(a)}};return oa(e,e.maxWidth,n)}return null};Qh.filterProps=["maxWidth"];const oT=It({prop:"minWidth",transform:$n}),iT=It({prop:"height",transform:$n}),sT=It({prop:"maxHeight",transform:$n}),lT=It({prop:"minHeight",transform:$n});It({prop:"size",cssProperty:"width",transform:$n});It({prop:"size",cssProperty:"height",transform:$n});const cT=It({prop:"boxSizing"});ku(aT,Qh,oT,iT,sT,lT,cT);const yl={border:{themeKey:"borders",transform:Zn},borderTop:{themeKey:"borders",transform:Zn},borderRight:{themeKey:"borders",transform:Zn},borderBottom:{themeKey:"borders",transform:Zn},borderLeft:{themeKey:"borders",transform:Zn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Zn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ou},color:{themeKey:"palette",transform:Si},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Si},backgroundColor:{themeKey:"palette",transform:Si},p:{style:Dt},pt:{style:Dt},pr:{style:Dt},pb:{style:Dt},pl:{style:Dt},px:{style:Dt},py:{style:Dt},padding:{style:Dt},paddingTop:{style:Dt},paddingRight:{style:Dt},paddingBottom:{style:Dt},paddingLeft:{style:Dt},paddingX:{style:Dt},paddingY:{style:Dt},paddingInline:{style:Dt},paddingInlineStart:{style:Dt},paddingInlineEnd:{style:Dt},paddingBlock:{style:Dt},paddingBlockStart:{style:Dt},paddingBlockEnd:{style:Dt},m:{style:zt},mt:{style:zt},mr:{style:zt},mb:{style:zt},ml:{style:zt},mx:{style:zt},my:{style:zt},margin:{style:zt},marginTop:{style:zt},marginRight:{style:zt},marginBottom:{style:zt},marginLeft:{style:zt},marginX:{style:zt},marginY:{style:zt},marginInline:{style:zt},marginInlineStart:{style:zt},marginInlineEnd:{style:zt},marginBlock:{style:zt},marginBlockStart:{style:zt},marginBlockEnd:{style:zt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Nu},rowGap:{style:zu},columnGap:{style:_u},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:$n},maxWidth:{style:Qh},minWidth:{transform:$n},height:{transform:$n},maxHeight:{transform:$n},minHeight:{transform:$n},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function uT(...e){const n=e.reduce((o,s)=>o.concat(Object.keys(s)),[]),a=new Set(n);return e.every(o=>a.size===Object.keys(o).length)}function dT(e,n){return typeof e=="function"?e(n):e}function fT(){function e(a,o,s,c){const u={[a]:o,theme:s},d=c[a];if(!d)return{[a]:o};const{cssProperty:h=a,themeKey:g,transform:y,style:b}=d;if(o==null)return null;if(g==="typography"&&o==="inherit")return{[a]:o};const x=Ar(s,g)||{};return b?b(u):oa(u,o,S=>{let w=nu(x,y,S);return S===w&&typeof S=="string"&&(w=nu(x,y,`${a}${S==="default"?"":he(S)}`,S)),h===!1?w:{[h]:w}})}function n(a){const{sx:o,theme:s={},nested:c}=a||{};if(!o)return null;const u=s.unstable_sxConfig??yl;function d(h){let g=h;if(typeof h=="function")g=h(s);else if(typeof h!="object")return h;if(!g)return null;const y=AR(s.breakpoints),b=Object.keys(y);let x=y;return Object.keys(g).forEach(E=>{const S=dT(g[E],s);if(S!=null)if(typeof S=="object")if(u[E])x=Xs(x,e(E,S,s,u));else{const w=oa({theme:s},S,T=>({[E]:T}));uT(w,S)?x[E]=n({sx:S,theme:s,nested:!0}):x=Xs(x,w)}else x=Xs(x,e(E,S,s,u))}),!c&&s.modularCssLayers?{"@layer sx":ov(s,sv(b,x))}:ov(s,sv(b,x))}return Array.isArray(o)?o.map(d):d(o)}return n}const Pa=fT();Pa.filterProps=["sx"];function pT(e,n){const a=this;if(a.vars){if(!a.colorSchemes?.[e]||typeof a.getColorSchemeSelector!="function")return{};let o=a.getColorSchemeSelector(e);return o==="&"?n:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:n})}return a.palette.mode===e?n:{}}function bl(e={},...n){const{breakpoints:a={},palette:o={},spacing:s,shape:c={},...u}=e,d=SR(a),h=b1(s);let g=pn({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:h,shape:{...RR,...c}},u);return g=ER(g),g.applyStyles=pT,g=n.reduce((y,b)=>pn(y,b),g),g.unstable_sxConfig={...yl,...u?.unstable_sxConfig},g.unstable_sx=function(b){return Pa({sx:b,theme:this})},g}function hT(e){return Object.keys(e).length===0}function Xh(e=null){const n=v.useContext(hl);return!n||hT(n)?e:n}const mT=bl();function vl(e=mT){return Xh(e)}function Cp(e){const n=Da(e);return e!==n&&n.styles?(n.styles.match(/^@layer\s+[^{]*$/)||(n.styles=`@layer global{${n.styles}}`),n):e}function v1({styles:e,themeId:n,defaultTheme:a={}}){const o=vl(a),s=n&&o[n]||o;let c=typeof e=="function"?e(s):e;return s.modularCssLayers&&(Array.isArray(c)?c=c.map(u=>Cp(typeof u=="function"?u(s):u)):c=Cp(c)),p.jsx(p1,{styles:c})}const gT=e=>{const n={systemProps:{},otherProps:{}},a=e?.theme?.unstable_sxConfig??yl;return Object.keys(e).forEach(o=>{a[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function Zh(e){const{sx:n,...a}=e,{systemProps:o,otherProps:s}=gT(a);let c;return Array.isArray(n)?c=[o,...n]:typeof n=="function"?c=(...u)=>{const d=n(...u);return jr(d)?{...o,...d}:o}:c={...o,...n},{...s,sx:c}}const cv=e=>e,yT=()=>{let e=cv;return{configure(n){e=n},generate(n){return e(n)},reset(){e=cv}}},x1=yT();function S1(e){var n,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(n=0;n<s;n++)e[n]&&(a=S1(e[n]))&&(o&&(o+=" "),o+=a)}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function Ce(){for(var e,n,a=0,o="",s=arguments.length;a<s;a++)(e=arguments[a])&&(n=S1(e))&&(o&&(o+=" "),o+=n);return o}function bT(e={}){const{themeId:n,defaultTheme:a,defaultClassName:o="MuiBox-root",generateClassName:s}=e,c=h1("div",{shouldForwardProp:d=>d!=="theme"&&d!=="sx"&&d!=="as"})(Pa);return v.forwardRef(function(h,g){const y=vl(a),{className:b,component:x="div",...E}=Zh(h);return p.jsx(c,{as:x,ref:g,className:Ce(b,s?s(o):o),theme:n&&y[n]||y,...E})})}const vT={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ke(e,n,a="Mui"){const o=vT[n];return o?`${a}-${o}`:`${x1.generate(e)}-${n}`}function Oe(e,n,a="Mui"){const o={};return n.forEach(s=>{o[s]=ke(e,s,a)}),o}function C1(e){const{variants:n,...a}=e,o={variants:n,style:Da(a),isProcessed:!0};return o.style===a||n&&n.forEach(s=>{typeof s.style!="function"&&(s.style=Da(s.style))}),o}const xT=bl();function wp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function po(e,n){return n&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${n}{${String(e.styles)}}`),e}function ST(e){return e?(n,a)=>a[e]:null}function CT(e,n,a){e.theme=ET(e.theme)?a:e.theme[n]||e.theme}function Yc(e,n,a){const o=typeof n=="function"?n(e):n;if(Array.isArray(o))return o.flatMap(s=>Yc(e,s,a));if(Array.isArray(o?.variants)){let s;if(o.isProcessed)s=a?po(o.style,a):o.style;else{const{variants:c,...u}=o;s=a?po(Da(u),a):u}return w1(e,o.variants,[s],a)}return o?.isProcessed?a?po(Da(o.style),a):o.style:a?po(Da(o),a):o}function w1(e,n,a=[],o=void 0){let s;e:for(let c=0;c<n.length;c+=1){const u=n[c];if(typeof u.props=="function"){if(s??={...e,...e.ownerState,ownerState:e.ownerState},!u.props(s))continue}else for(const d in u.props)if(e[d]!==u.props[d]&&e.ownerState?.[d]!==u.props[d])continue e;typeof u.style=="function"?(s??={...e,...e.ownerState,ownerState:e.ownerState},a.push(o?po(Da(u.style(s)),o):u.style(s))):a.push(o?po(Da(u.style),o):u.style)}return a}function E1(e={}){const{themeId:n,defaultTheme:a=xT,rootShouldForwardProp:o=wp,slotShouldForwardProp:s=wp}=e;function c(d){CT(d,n,a)}return(d,h={})=>{yR(d,z=>z.filter(L=>L!==Pa));const{name:g,slot:y,skipVariantsResolver:b,skipSx:x,overridesResolver:E=ST(TT(y)),...S}=h,w=g&&g.startsWith("Mui")||y?"components":"custom",T=b!==void 0?b:y&&y!=="Root"&&y!=="root"||!1,M=x||!1;let j=wp;y==="Root"||y==="root"?j=o:y?j=s:RT(d)&&(j=void 0);const O=h1(d,{shouldForwardProp:j,label:wT(),...S}),N=z=>{if(z.__emotion_real===z)return z;if(typeof z=="function")return function(B){return Yc(B,z,B.theme.modularCssLayers?w:void 0)};if(jr(z)){const L=C1(z);return function(V){return L.variants?Yc(V,L,V.theme.modularCssLayers?w:void 0):V.theme.modularCssLayers?po(L.style,w):L.style}}return z},A=(...z)=>{const L=[],B=z.map(N),V=[];if(L.push(c),g&&E&&V.push(function(G){const q=G.theme.components?.[g]?.styleOverrides;if(!q)return null;const D={};for(const I in q)D[I]=Yc(G,q[I],G.theme.modularCssLayers?"theme":void 0);return E(G,D)}),g&&!T&&V.push(function(G){const q=G.theme?.components?.[g]?.variants;return q?w1(G,q,[],G.theme.modularCssLayers?"theme":void 0):null}),M||V.push(Pa),Array.isArray(B[0])){const R=B.shift(),G=new Array(L.length).fill(""),F=new Array(V.length).fill("");let q;q=[...G,...R,...F],q.raw=[...G,...R.raw,...F],L.unshift(q)}const X=[...L,...B,...V],Z=O(...X);return d.muiName&&(Z.muiName=d.muiName),Z};return O.withConfig&&(A.withConfig=O.withConfig),A}}function wT(e,n){return void 0}function ET(e){for(const n in e)return!1;return!0}function RT(e){return typeof e=="string"&&e.charCodeAt(0)>96}function TT(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const R1=E1();function ol(e,n,a=!1){const o={...n};for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)){const c=s;if(c==="components"||c==="slots")o[c]={...e[c],...o[c]};else if(c==="componentsProps"||c==="slotProps"){const u=e[c],d=n[c];if(!d)o[c]=u||{};else if(!u)o[c]=d;else{o[c]={...d};for(const h in u)if(Object.prototype.hasOwnProperty.call(u,h)){const g=h;o[c][g]=ol(u[g],d[g],a)}}}else c==="className"&&a&&n.className?o.className=Ce(e?.className,n?.className):c==="style"&&a&&n.style?o.style={...e?.style,...n?.style}:o[c]===void 0&&(o[c]=e[c])}return o}function AT(e){const{theme:n,name:a,props:o}=e;return!n||!n.components||!n.components[a]||!n.components[a].defaultProps?o:ol(n.components[a].defaultProps,o)}function T1({props:e,name:n,defaultTheme:a,themeId:o}){let s=vl(a);return o&&(s=s[o]||s),AT({theme:s,name:n,props:e})}const _r=typeof window<"u"?v.useLayoutEffect:v.useEffect;function jT(e,n=Number.MIN_SAFE_INTEGER,a=Number.MAX_SAFE_INTEGER){return Math.max(n,Math.min(e,a))}function Jh(e,n=0,a=1){return jT(e,n,a)}function MT(e){e=e.slice(1);const n=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let a=e.match(n);return a&&a[0].length===1&&(a=a.map(o=>o+o)),a?`rgb${a.length===4?"a":""}(${a.map((o,s)=>s<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function $a(e){if(e.type)return e;if(e.charAt(0)==="#")return $a(MT(e));const n=e.indexOf("("),a=e.substring(0,n);if(!["rgb","rgba","hsl","hsla","color"].includes(a))throw new Error(aa(9,e));let o=e.substring(n+1,e.length-1),s;if(a==="color"){if(o=o.split(" "),s=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error(aa(10,s))}else o=o.split(",");return o=o.map(c=>parseFloat(c)),{type:a,values:o,colorSpace:s}}const kT=e=>{const n=$a(e);return n.values.slice(0,3).map((a,o)=>n.type.includes("hsl")&&o!==0?`${a}%`:a).join(" ")},Gs=(e,n)=>{try{return kT(e)}catch{return e}};function Du(e){const{type:n,colorSpace:a}=e;let{values:o}=e;return n.includes("rgb")?o=o.map((s,c)=>c<3?parseInt(s,10):s):n.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),n.includes("color")?o=`${a} ${o.join(" ")}`:o=`${o.join(", ")}`,`${n}(${o})`}function A1(e){e=$a(e);const{values:n}=e,a=n[0],o=n[1]/100,s=n[2]/100,c=o*Math.min(s,1-s),u=(g,y=(g+a/30)%12)=>s-c*Math.max(Math.min(y-3,9-y,1),-1);let d="rgb";const h=[Math.round(u(0)*255),Math.round(u(8)*255),Math.round(u(4)*255)];return e.type==="hsla"&&(d+="a",h.push(n[3])),Du({type:d,values:h})}function eh(e){e=$a(e);let n=e.type==="hsl"||e.type==="hsla"?$a(A1(e)).values:e.values;return n=n.map(a=>(e.type!=="color"&&(a/=255),a<=.03928?a/12.92:((a+.055)/1.055)**2.4)),Number((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}function OT(e,n){const a=eh(e),o=eh(n);return(Math.max(a,o)+.05)/(Math.min(a,o)+.05)}function il(e,n){return e=$a(e),n=Jh(n),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${n}`:e.values[3]=n,Du(e)}function io(e,n,a){try{return il(e,n)}catch{return e}}function Lu(e,n){if(e=$a(e),n=Jh(n),e.type.includes("hsl"))e.values[2]*=1-n;else if(e.type.includes("rgb")||e.type.includes("color"))for(let a=0;a<3;a+=1)e.values[a]*=1-n;return Du(e)}function pt(e,n,a){try{return Lu(e,n)}catch{return e}}function Pu(e,n){if(e=$a(e),n=Jh(n),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*n;else if(e.type.includes("rgb"))for(let a=0;a<3;a+=1)e.values[a]+=(255-e.values[a])*n;else if(e.type.includes("color"))for(let a=0;a<3;a+=1)e.values[a]+=(1-e.values[a])*n;return Du(e)}function ht(e,n,a){try{return Pu(e,n)}catch{return e}}function th(e,n=.15){return eh(e)>.5?Lu(e,n):Pu(e,n)}function Dc(e,n,a){try{return th(e,n)}catch{return e}}const j1=v.createContext(null);function em(){return v.useContext(j1)}const NT=typeof Symbol=="function"&&Symbol.for,_T=NT?Symbol.for("mui.nested"):"__THEME_NESTED__";function zT(e,n){return typeof n=="function"?n(e):{...e,...n}}function DT(e){const{children:n,theme:a}=e,o=em(),s=v.useMemo(()=>{const c=o===null?{...a}:zT(o,a);return c!=null&&(c[_T]=o!==null),c},[a,o]);return p.jsx(j1.Provider,{value:s,children:n})}const M1=v.createContext();function LT({value:e,...n}){return p.jsx(M1.Provider,{value:e??!0,...n})}const k1=()=>v.useContext(M1)??!1,O1=v.createContext(void 0);function PT({value:e,children:n}){return p.jsx(O1.Provider,{value:e,children:n})}function $T(e){const{theme:n,name:a,props:o}=e;if(!n||!n.components||!n.components[a])return o;const s=n.components[a];return s.defaultProps?ol(s.defaultProps,o,n.components.mergeClassNameAndStyle):!s.styleOverrides&&!s.variants?ol(s,o,n.components.mergeClassNameAndStyle):o}function BT({props:e,name:n}){const a=v.useContext(O1);return $T({props:e,name:n,theme:{components:a}})}let uv=0;function IT(e){const[n,a]=v.useState(e),o=e||n;return v.useEffect(()=>{n==null&&(uv+=1,a(`mui-${uv}`))},[n]),o}const FT={...Gp},dv=FT.useId;function Ni(e){if(dv!==void 0){const n=dv();return e??n}return IT(e)}function UT(e){const n=Xh(),a=Ni()||"",{modularCssLayers:o}=e;let s="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!o||n!==null?s="":typeof o=="string"?s=o.replace(/mui(?!\.)/g,s):s=`@layer ${s};`,_r(()=>{const c=document.querySelector("head");if(!c)return;const u=c.firstChild;if(s){if(u&&u.hasAttribute?.("data-mui-layer-order")&&u.getAttribute("data-mui-layer-order")===a)return;const d=document.createElement("style");d.setAttribute("data-mui-layer-order",a),d.textContent=s,c.prepend(d)}else c.querySelector(`style[data-mui-layer-order="${a}"]`)?.remove()},[s,a]),s?p.jsx(v1,{styles:s}):null}const fv={};function pv(e,n,a,o=!1){return v.useMemo(()=>{const s=e&&n[e]||n;if(typeof a=="function"){const c=a(s),u=e?{...n,[e]:c}:c;return o?()=>u:u}return e?{...n,[e]:a}:{...n,...a}},[e,n,a,o])}function N1(e){const{children:n,theme:a,themeId:o}=e,s=Xh(fv),c=em()||fv,u=pv(o,s,a),d=pv(o,c,a,!0),h=(o?u[o]:u).direction==="rtl",g=UT(u);return p.jsx(DT,{theme:d,children:p.jsx(hl.Provider,{value:u,children:p.jsx(LT,{value:h,children:p.jsxs(PT,{value:o?u[o].components:u.components,children:[g,n]})})})})}const hv={theme:void 0};function HT(e){let n,a;return function(s){let c=n;return(c===void 0||s.theme!==a)&&(hv.theme=s.theme,c=C1(e(hv)),n=c,a=s.theme),c}}const tm="mode",nm="color-scheme",VT="data-color-scheme";function qT(e){const{defaultMode:n="system",defaultLightColorScheme:a="light",defaultDarkColorScheme:o="dark",modeStorageKey:s=tm,colorSchemeStorageKey:c=nm,attribute:u=VT,colorSchemeNode:d="document.documentElement",nonce:h}=e||{};let g="",y=u;if(u==="class"&&(y=".%s"),u==="data"&&(y="[data-%s]"),y.startsWith(".")){const x=y.substring(1);g+=`${d}.classList.remove('${x}'.replace('%s', light), '${x}'.replace('%s', dark));
      ${d}.classList.add('${x}'.replace('%s', colorScheme));`}const b=y.match(/\[([^[\]]+)\]/);if(b){const[x,E]=b[1].split("=");E||(g+=`${d}.removeAttribute('${x}'.replace('%s', light));
      ${d}.removeAttribute('${x}'.replace('%s', dark));`),g+=`
      ${d}.setAttribute('${x}'.replace('%s', colorScheme), ${E?`${E}.replace('%s', colorScheme)`:'""'});`}else g+=`${d}.setAttribute('${y}', colorScheme);`;return p.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?h:"",dangerouslySetInnerHTML:{__html:`(function() {
try {
  let colorScheme = '';
  const mode = localStorage.getItem('${s}') || '${n}';
  const dark = localStorage.getItem('${c}-dark') || '${o}';
  const light = localStorage.getItem('${c}-light') || '${a}';
  if (mode === 'system') {
    // handle system mode
    const mql = window.matchMedia('(prefers-color-scheme: dark)');
    if (mql.matches) {
      colorScheme = dark
    } else {
      colorScheme = light
    }
  }
  if (mode === 'light') {
    colorScheme = light;
  }
  if (mode === 'dark') {
    colorScheme = dark;
  }
  if (colorScheme) {
    ${g}
  }
} catch(e){}})();`}},"mui-color-scheme-init")}function GT(){}const WT=({key:e,storageWindow:n})=>(!n&&typeof window<"u"&&(n=window),{get(a){if(typeof window>"u")return;if(!n)return a;let o;try{o=n.localStorage.getItem(e)}catch{}return o||a},set:a=>{if(n)try{n.localStorage.setItem(e,a)}catch{}},subscribe:a=>{if(!n)return GT;const o=s=>{const c=s.newValue;s.key===e&&a(c)};return n.addEventListener("storage",o),()=>{n.removeEventListener("storage",o)}}});function Ep(){}function mv(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function _1(e,n){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return n("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return n("dark")}function YT(e){return _1(e,n=>{if(n==="light")return e.lightColorScheme;if(n==="dark")return e.darkColorScheme})}function KT(e){const{defaultMode:n="light",defaultLightColorScheme:a,defaultDarkColorScheme:o,supportedColorSchemes:s=[],modeStorageKey:c=tm,colorSchemeStorageKey:u=nm,storageWindow:d=typeof window>"u"?void 0:window,storageManager:h=WT,noSsr:g=!1}=e,y=s.join(","),b=s.length>1,x=v.useMemo(()=>h?.({key:c,storageWindow:d}),[h,c,d]),E=v.useMemo(()=>h?.({key:`${u}-light`,storageWindow:d}),[h,u,d]),S=v.useMemo(()=>h?.({key:`${u}-dark`,storageWindow:d}),[h,u,d]),[w,T]=v.useState(()=>{const B=x?.get(n)||n,V=E?.get(a)||a,X=S?.get(o)||o;return{mode:B,systemMode:mv(B),lightColorScheme:V,darkColorScheme:X}}),[M,j]=v.useState(g||!b);v.useEffect(()=>{j(!0)},[]);const O=YT(w),N=v.useCallback(B=>{T(V=>{if(B===V.mode)return V;const X=B??n;return x?.set(X),{...V,mode:X,systemMode:mv(X)}})},[x,n]),A=v.useCallback(B=>{B?typeof B=="string"?B&&!y.includes(B)?console.error(`\`${B}\` does not exist in \`theme.colorSchemes\`.`):T(V=>{const X={...V};return _1(V,Z=>{Z==="light"&&(E?.set(B),X.lightColorScheme=B),Z==="dark"&&(S?.set(B),X.darkColorScheme=B)}),X}):T(V=>{const X={...V},Z=B.light===null?a:B.light,R=B.dark===null?o:B.dark;return Z&&(y.includes(Z)?(X.lightColorScheme=Z,E?.set(Z)):console.error(`\`${Z}\` does not exist in \`theme.colorSchemes\`.`)),R&&(y.includes(R)?(X.darkColorScheme=R,S?.set(R)):console.error(`\`${R}\` does not exist in \`theme.colorSchemes\`.`)),X}):T(V=>(E?.set(a),S?.set(o),{...V,lightColorScheme:a,darkColorScheme:o}))},[y,E,S,a,o]),z=v.useCallback(B=>{w.mode==="system"&&T(V=>{const X=B?.matches?"dark":"light";return V.systemMode===X?V:{...V,systemMode:X}})},[w.mode]),L=v.useRef(z);return L.current=z,v.useEffect(()=>{if(typeof window.matchMedia!="function"||!b)return;const B=(...X)=>L.current(...X),V=window.matchMedia("(prefers-color-scheme: dark)");return V.addListener(B),B(V),()=>{V.removeListener(B)}},[b]),v.useEffect(()=>{if(b){const B=x?.subscribe(Z=>{(!Z||["light","dark","system"].includes(Z))&&N(Z||n)})||Ep,V=E?.subscribe(Z=>{(!Z||y.match(Z))&&A({light:Z})})||Ep,X=S?.subscribe(Z=>{(!Z||y.match(Z))&&A({dark:Z})})||Ep;return()=>{B(),V(),X()}}},[A,N,y,n,d,b,x,E,S]),{...w,mode:M?w.mode:void 0,systemMode:M?w.systemMode:void 0,colorScheme:M?O:void 0,setMode:N,setColorScheme:A}}const QT="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function XT(e){const{themeId:n,theme:a={},modeStorageKey:o=tm,colorSchemeStorageKey:s=nm,disableTransitionOnChange:c=!1,defaultColorScheme:u,resolveTheme:d}=e,h={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},g=v.createContext(void 0),y=()=>v.useContext(g)||h,b={},x={};function E(M){const{children:j,theme:O,modeStorageKey:N=o,colorSchemeStorageKey:A=s,disableTransitionOnChange:z=c,storageManager:L,storageWindow:B=typeof window>"u"?void 0:window,documentNode:V=typeof document>"u"?void 0:document,colorSchemeNode:X=typeof document>"u"?void 0:document.documentElement,disableNestedContext:Z=!1,disableStyleSheetGeneration:R=!1,defaultMode:G="system",forceThemeRerender:F=!1,noSsr:q}=M,D=v.useRef(!1),I=em(),H=v.useContext(g),W=!!H&&!Z,_=v.useMemo(()=>O||(typeof a=="function"?a():a),[O]),J=_[n],ue=J||_,{colorSchemes:oe=b,components:pe=x,cssVarPrefix:be}=ue,ae=Object.keys(oe).filter(Se=>!!oe[Se]).join(","),Ee=v.useMemo(()=>ae.split(","),[ae]),Ae=typeof u=="string"?u:u.light,Ie=typeof u=="string"?u:u.dark,je=oe[Ae]&&oe[Ie]?G:oe[ue.defaultColorScheme]?.palette?.mode||ue.palette?.mode,{mode:Ue,setMode:Ge,systemMode:Ye,lightColorScheme:De,darkColorScheme:nt,colorScheme:Yt,setColorScheme:it}=KT({supportedColorSchemes:Ee,defaultLightColorScheme:Ae,defaultDarkColorScheme:Ie,modeStorageKey:N,colorSchemeStorageKey:A,defaultMode:je,storageManager:L,storageWindow:B,noSsr:q});let wt=Ue,mt=Yt;W&&(wt=H.mode,mt=H.colorScheme);let $=mt||ue.defaultColorScheme;ue.vars&&!F&&($=ue.defaultColorScheme);const Y=v.useMemo(()=>{const Se=ue.generateThemeVars?.()||ue.vars,Re={...ue,components:pe,colorSchemes:oe,cssVarPrefix:be,vars:Se};if(typeof Re.generateSpacing=="function"&&(Re.spacing=Re.generateSpacing()),$){const Le=oe[$];Le&&typeof Le=="object"&&Object.keys(Le).forEach(Ve=>{Le[Ve]&&typeof Le[Ve]=="object"?Re[Ve]={...Re[Ve],...Le[Ve]}:Re[Ve]=Le[Ve]})}return d?d(Re):Re},[ue,$,pe,oe,be]),K=ue.colorSchemeSelector;_r(()=>{if(mt&&X&&K&&K!=="media"){const Se=K;let Re=K;if(Se==="class"&&(Re=".%s"),Se==="data"&&(Re="[data-%s]"),Se?.startsWith("data-")&&!Se.includes("%s")&&(Re=`[${Se}="%s"]`),Re.startsWith("."))X.classList.remove(...Ee.map(Le=>Re.substring(1).replace("%s",Le))),X.classList.add(Re.substring(1).replace("%s",mt));else{const Le=Re.replace("%s",mt).match(/\[([^\]]+)\]/);if(Le){const[Ve,Ft]=Le[1].split("=");Ft||Ee.forEach(Xe=>{X.removeAttribute(Ve.replace(mt,Xe))}),X.setAttribute(Ve,Ft?Ft.replace(/"|'/g,""):"")}else X.setAttribute(Re,mt)}}},[mt,K,X,Ee]),v.useEffect(()=>{let Se;if(z&&D.current&&V){const Re=V.createElement("style");Re.appendChild(V.createTextNode(QT)),V.head.appendChild(Re),window.getComputedStyle(V.body),Se=setTimeout(()=>{V.head.removeChild(Re)},1)}return()=>{clearTimeout(Se)}},[mt,z,V]),v.useEffect(()=>(D.current=!0,()=>{D.current=!1}),[]);const ve=v.useMemo(()=>({allColorSchemes:Ee,colorScheme:mt,darkColorScheme:nt,lightColorScheme:De,mode:wt,setColorScheme:it,setMode:Ge,systemMode:Ye}),[Ee,mt,nt,De,wt,it,Ge,Ye,Y.colorSchemeSelector]);let ge=!0;(R||ue.cssVariables===!1||W&&I?.cssVarPrefix===be)&&(ge=!1);const ye=p.jsxs(v.Fragment,{children:[p.jsx(N1,{themeId:J?n:void 0,theme:Y,children:j}),ge&&p.jsx(p1,{styles:Y.generateStyleSheets?.()||[]})]});return W?ye:p.jsx(g.Provider,{value:ve,children:ye})}const S=typeof u=="string"?u:u.light,w=typeof u=="string"?u:u.dark;return{CssVarsProvider:E,useColorScheme:y,getInitColorSchemeScript:M=>qT({colorSchemeStorageKey:s,defaultLightColorScheme:S,defaultDarkColorScheme:w,modeStorageKey:o,...M})}}function ZT(e=""){function n(...o){if(!o.length)return"";const s=o[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${s}${n(...o.slice(1))})`:`, ${s}`}return(o,...s)=>`var(--${e?`${e}-`:""}${o}${n(...s)})`}const gv=(e,n,a,o=[])=>{let s=e;n.forEach((c,u)=>{u===n.length-1?Array.isArray(s)?s[Number(c)]=a:s&&typeof s=="object"&&(s[c]=a):s&&typeof s=="object"&&(s[c]||(s[c]=o.includes(c)?[]:{}),s=s[c])})},JT=(e,n,a)=>{function o(s,c=[],u=[]){Object.entries(s).forEach(([d,h])=>{(!a||a&&!a([...c,d]))&&h!=null&&(typeof h=="object"&&Object.keys(h).length>0?o(h,[...c,d],Array.isArray(h)?[...u,d]:u):n([...c,d],h,u))})}o(e)},e3=(e,n)=>typeof n=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?n:`${n}px`:n;function Rp(e,n){const{prefix:a,shouldSkipGeneratingVar:o}=n||{},s={},c={},u={};return JT(e,(d,h,g)=>{if((typeof h=="string"||typeof h=="number")&&(!o||!o(d,h))){const y=`--${a?`${a}-`:""}${d.join("-")}`,b=e3(d,h);Object.assign(s,{[y]:b}),gv(c,d,`var(${y})`,g),gv(u,d,`var(${y}, ${b})`,g)}},d=>d[0]==="vars"),{css:s,vars:c,varsWithDefaults:u}}function t3(e,n={}){const{getSelector:a=M,disableCssColorScheme:o,colorSchemeSelector:s,enableContrastVars:c}=n,{colorSchemes:u={},components:d,defaultColorScheme:h="light",...g}=e,{vars:y,css:b,varsWithDefaults:x}=Rp(g,n);let E=x;const S={},{[h]:w,...T}=u;if(Object.entries(T||{}).forEach(([N,A])=>{const{vars:z,css:L,varsWithDefaults:B}=Rp(A,n);E=pn(E,B),S[N]={css:L,vars:z}}),w){const{css:N,vars:A,varsWithDefaults:z}=Rp(w,n);E=pn(E,z),S[h]={css:N,vars:A}}function M(N,A){let z=s;if(s==="class"&&(z=".%s"),s==="data"&&(z="[data-%s]"),s?.startsWith("data-")&&!s.includes("%s")&&(z=`[${s}="%s"]`),N){if(z==="media")return e.defaultColorScheme===N?":root":{[`@media (prefers-color-scheme: ${u[N]?.palette?.mode||N})`]:{":root":A}};if(z)return e.defaultColorScheme===N?`:root, ${z.replace("%s",String(N))}`:z.replace("%s",String(N))}return":root"}return{vars:E,generateThemeVars:()=>{let N={...y};return Object.entries(S).forEach(([,{vars:A}])=>{N=pn(N,A)}),N},generateStyleSheets:()=>{const N=[],A=e.defaultColorScheme||"light";function z(V,X){Object.keys(X).length&&N.push(typeof V=="string"?{[V]:{...X}}:V)}z(a(void 0,{...b}),b);const{[A]:L,...B}=S;if(L){const{css:V}=L,X=u[A]?.palette?.mode,Z=!o&&X?{colorScheme:X,...V}:{...V};z(a(A,{...Z}),Z)}return Object.entries(B).forEach(([V,{css:X}])=>{const Z=u[V]?.palette?.mode,R=!o&&Z?{colorScheme:Z,...X}:{...X};z(a(V,{...R}),R)}),c&&N.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),N}}}function n3(e){return function(a){return e==="media"?`@media (prefers-color-scheme: ${a})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${a}"] &`:e==="class"?`.${a} &`:e==="data"?`[data-${a}] &`:`${e.replace("%s",a)} &`:"&"}}function Ne(e,n,a=void 0){const o={};for(const s in e){const c=e[s];let u="",d=!0;for(let h=0;h<c.length;h+=1){const g=c[h];g&&(u+=(d===!0?"":" ")+n(g),d=!1,a&&a[g]&&(u+=" "+a[g]))}o[s]=u}return o}const r3=bl(),a3=R1("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[`maxWidth${he(String(a.maxWidth))}`],a.fixed&&n.fixed,a.disableGutters&&n.disableGutters]}}),o3=e=>T1({props:e,name:"MuiContainer",defaultTheme:r3}),i3=(e,n)=>{const a=h=>ke(n,h),{classes:o,fixed:s,disableGutters:c,maxWidth:u}=e,d={root:["root",u&&`maxWidth${he(String(u))}`,s&&"fixed",c&&"disableGutters"]};return Ne(d,a,o)};function s3(e={}){const{createStyledComponent:n=a3,useThemeProps:a=o3,componentName:o="MuiContainer"}=e,s=n(({theme:u,ownerState:d})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!d.disableGutters&&{paddingLeft:u.spacing(2),paddingRight:u.spacing(2),[u.breakpoints.up("sm")]:{paddingLeft:u.spacing(3),paddingRight:u.spacing(3)}}}),({theme:u,ownerState:d})=>d.fixed&&Object.keys(u.breakpoints.values).reduce((h,g)=>{const y=g,b=u.breakpoints.values[y];return b!==0&&(h[u.breakpoints.up(y)]={maxWidth:`${b}${u.breakpoints.unit}`}),h},{}),({theme:u,ownerState:d})=>({...d.maxWidth==="xs"&&{[u.breakpoints.up("xs")]:{maxWidth:Math.max(u.breakpoints.values.xs,444)}},...d.maxWidth&&d.maxWidth!=="xs"&&{[u.breakpoints.up(d.maxWidth)]:{maxWidth:`${u.breakpoints.values[d.maxWidth]}${u.breakpoints.unit}`}}}));return v.forwardRef(function(d,h){const g=a(d),{className:y,component:b="div",disableGutters:x=!1,fixed:E=!1,maxWidth:S="lg",classes:w,...T}=g,M={...g,component:b,disableGutters:x,fixed:E,maxWidth:S},j=i3(M,o);return p.jsx(s,{as:b,ownerState:M,className:Ce(j.root,y),ref:h,...T})})}function Zs(e,n){return v.isValidElement(e)&&n.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const l3=(e,n)=>e.filter(a=>n.includes(a)),_i=(e,n,a)=>{const o=e.keys[0];Array.isArray(n)?n.forEach((s,c)=>{a((u,d)=>{c<=e.keys.length-1&&(c===0?Object.assign(u,d):u[e.up(e.keys[c])]=d)},s)}):n&&typeof n=="object"?(Object.keys(n).length>e.keys.length?e.keys:l3(e.keys,Object.keys(n))).forEach(c=>{if(e.keys.includes(c)){const u=n[c];u!==void 0&&a((d,h)=>{o===c?Object.assign(d,h):d[e.up(c)]=h},u)}}):(typeof n=="number"||typeof n=="string")&&a((s,c)=>{Object.assign(s,c)},n)};function ru(e){return`--Grid-${e}Spacing`}function $u(e){return`--Grid-parent-${e}Spacing`}const yv="--Grid-columns",Ci="--Grid-parent-columns",c3=({theme:e,ownerState:n})=>{const a={};return _i(e.breakpoints,n.size,(o,s)=>{let c={};s==="grow"&&(c={flexBasis:0,flexGrow:1,maxWidth:"100%"}),s==="auto"&&(c={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof s=="number"&&(c={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${s} / var(${Ci}) - (var(${Ci}) - ${s}) * (var(${$u("column")}) / var(${Ci})))`}),o(a,c)}),a},u3=({theme:e,ownerState:n})=>{const a={};return _i(e.breakpoints,n.offset,(o,s)=>{let c={};s==="auto"&&(c={marginLeft:"auto"}),typeof s=="number"&&(c={marginLeft:s===0?"0px":`calc(100% * ${s} / var(${Ci}) + var(${$u("column")}) * ${s} / var(${Ci}))`}),o(a,c)}),a},d3=({theme:e,ownerState:n})=>{if(!n.container)return{};const a={[yv]:12};return _i(e.breakpoints,n.columns,(o,s)=>{const c=s??12;o(a,{[yv]:c,"> *":{[Ci]:c}})}),a},f3=({theme:e,ownerState:n})=>{if(!n.container)return{};const a={};return _i(e.breakpoints,n.rowSpacing,(o,s)=>{const c=typeof s=="string"?s:e.spacing?.(s);o(a,{[ru("row")]:c,"> *":{[$u("row")]:c}})}),a},p3=({theme:e,ownerState:n})=>{if(!n.container)return{};const a={};return _i(e.breakpoints,n.columnSpacing,(o,s)=>{const c=typeof s=="string"?s:e.spacing?.(s);o(a,{[ru("column")]:c,"> *":{[$u("column")]:c}})}),a},h3=({theme:e,ownerState:n})=>{if(!n.container)return{};const a={};return _i(e.breakpoints,n.direction,(o,s)=>{o(a,{flexDirection:s})}),a},m3=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${ru("row")}) var(${ru("column")})`}}),g3=e=>{const n=[];return Object.entries(e).forEach(([a,o])=>{o!==!1&&o!==void 0&&n.push(`grid-${a}-${String(o)}`)}),n},y3=(e,n="xs")=>{function a(o){return o===void 0?!1:typeof o=="string"&&!Number.isNaN(Number(o))||typeof o=="number"&&o>0}if(a(e))return[`spacing-${n}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const o=[];return Object.entries(e).forEach(([s,c])=>{a(c)&&o.push(`spacing-${s}-${String(c)}`)}),o}return[]},b3=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([n,a])=>`direction-${n}-${a}`):[`direction-xs-${String(e)}`];function v3(e,n){e.item!==void 0&&delete e.item,e.zeroMinWidth!==void 0&&delete e.zeroMinWidth,n.keys.forEach(a=>{e[a]!==void 0&&delete e[a]})}const x3=bl(),S3=R1("div",{name:"MuiGrid",slot:"Root"});function C3(e){return T1({props:e,name:"MuiGrid",defaultTheme:x3})}function w3(e={}){const{createStyledComponent:n=S3,useThemeProps:a=C3,useTheme:o=vl,componentName:s="MuiGrid"}=e,c=(g,y)=>{const{container:b,direction:x,spacing:E,wrap:S,size:w}=g,T={root:["root",b&&"container",S!=="wrap"&&`wrap-xs-${String(S)}`,...b3(x),...g3(w),...b?y3(E,y.breakpoints.keys[0]):[]]};return Ne(T,M=>ke(s,M),{})};function u(g,y,b=()=>!0){const x={};return g===null||(Array.isArray(g)?g.forEach((E,S)=>{E!==null&&b(E)&&y.keys[S]&&(x[y.keys[S]]=E)}):typeof g=="object"?Object.keys(g).forEach(E=>{const S=g[E];S!=null&&b(S)&&(x[E]=S)}):x[y.keys[0]]=g),x}const d=n(d3,p3,f3,c3,h3,m3,u3),h=v.forwardRef(function(y,b){const x=o(),E=a(y),S=Zh(E);v3(S,x.breakpoints);const{className:w,children:T,columns:M=12,container:j=!1,component:O="div",direction:N="row",wrap:A="wrap",size:z={},offset:L={},spacing:B=0,rowSpacing:V=B,columnSpacing:X=B,unstable_level:Z=0,...R}=S,G=u(z,x.breakpoints,J=>J!==!1),F=u(L,x.breakpoints),q=y.columns??(Z?void 0:M),D=y.spacing??(Z?void 0:B),I=y.rowSpacing??y.spacing??(Z?void 0:V),H=y.columnSpacing??y.spacing??(Z?void 0:X),W={...S,level:Z,columns:q,container:j,direction:N,wrap:A,spacing:D,rowSpacing:I,columnSpacing:H,size:G,offset:F},_=c(W,x);return p.jsx(d,{ref:b,as:O,ownerState:W,className:Ce(_.root,w),...R,children:v.Children.map(T,J=>v.isValidElement(J)&&Zs(J,["Grid"])&&j&&J.props.container?v.cloneElement(J,{unstable_level:J.props?.unstable_level??Z+1}):J)})});return h.muiName="Grid",h}const sl={black:"#000",white:"#fff"},E3={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ui={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},di={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},$s={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},fi={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},pi={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},hi={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function z1(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:sl.white,default:sl.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const D1=z1();function L1(){return{text:{primary:sl.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:sl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const nh=L1();function bv(e,n,a,o){const s=o.light||o,c=o.dark||o*1.5;e[n]||(e.hasOwnProperty(a)?e[n]=e[a]:n==="light"?e.light=Pu(e.main,s):n==="dark"&&(e.dark=Lu(e.main,c)))}function vv(e,n,a,o,s){const c=s.light||s,u=s.dark||s*1.5;n[a]||(n.hasOwnProperty(o)?n[a]=n[o]:a==="light"?n.light=`color-mix(in ${e}, ${n.main}, #fff ${(c*100).toFixed(0)}%)`:a==="dark"&&(n.dark=`color-mix(in ${e}, ${n.main}, #000 ${(u*100).toFixed(0)}%)`))}function R3(e="light"){return e==="dark"?{main:fi[200],light:fi[50],dark:fi[400]}:{main:fi[700],light:fi[400],dark:fi[800]}}function T3(e="light"){return e==="dark"?{main:ui[200],light:ui[50],dark:ui[400]}:{main:ui[500],light:ui[300],dark:ui[700]}}function A3(e="light"){return e==="dark"?{main:di[500],light:di[300],dark:di[700]}:{main:di[700],light:di[400],dark:di[800]}}function j3(e="light"){return e==="dark"?{main:pi[400],light:pi[300],dark:pi[700]}:{main:pi[700],light:pi[500],dark:pi[900]}}function M3(e="light"){return e==="dark"?{main:hi[400],light:hi[300],dark:hi[700]}:{main:hi[800],light:hi[500],dark:hi[900]}}function k3(e="light"){return e==="dark"?{main:$s[400],light:$s[300],dark:$s[700]}:{main:"#ed6c02",light:$s[500],dark:$s[900]}}function O3(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function rm(e){const{mode:n="light",contrastThreshold:a=3,tonalOffset:o=.2,colorSpace:s,...c}=e,u=e.primary||R3(n),d=e.secondary||T3(n),h=e.error||A3(n),g=e.info||j3(n),y=e.success||M3(n),b=e.warning||k3(n);function x(T){return s?O3(T):OT(T,nh.text.primary)>=a?nh.text.primary:D1.text.primary}const E=({color:T,name:M,mainShade:j=500,lightShade:O=300,darkShade:N=700})=>{if(T={...T},!T.main&&T[j]&&(T.main=T[j]),!T.hasOwnProperty("main"))throw new Error(aa(11,M?` (${M})`:"",j));if(typeof T.main!="string")throw new Error(aa(12,M?` (${M})`:"",JSON.stringify(T.main)));return s?(vv(s,T,"light",O,o),vv(s,T,"dark",N,o)):(bv(T,"light",O,o),bv(T,"dark",N,o)),T.contrastText||(T.contrastText=x(T.main)),T};let S;return n==="light"?S=z1():n==="dark"&&(S=L1()),pn({common:{...sl},mode:n,primary:E({color:u,name:"primary"}),secondary:E({color:d,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:E({color:h,name:"error"}),warning:E({color:b,name:"warning"}),info:E({color:g,name:"info"}),success:E({color:y,name:"success"}),grey:E3,contrastThreshold:a,getContrastText:x,augmentColor:E,tonalOffset:o,...S},c)}function N3(e){const n={};return Object.entries(e).forEach(o=>{const[s,c]=o;typeof c=="object"&&(n[s]=`${c.fontStyle?`${c.fontStyle} `:""}${c.fontVariant?`${c.fontVariant} `:""}${c.fontWeight?`${c.fontWeight} `:""}${c.fontStretch?`${c.fontStretch} `:""}${c.fontSize||""}${c.lineHeight?`/${c.lineHeight} `:""}${c.fontFamily||""}`)}),n}function _3(e,n){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...n}}function z3(e){return Math.round(e*1e5)/1e5}const xv={textTransform:"uppercase"},Sv='"Roboto", "Helvetica", "Arial", sans-serif';function P1(e,n){const{fontFamily:a=Sv,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:h=16,allVariants:g,pxToRem:y,...b}=typeof n=="function"?n(e):n,x=o/14,E=y||(T=>`${T/h*x}rem`),S=(T,M,j,O,N)=>({fontFamily:a,fontWeight:T,fontSize:E(M),lineHeight:j,...a===Sv?{letterSpacing:`${z3(O/M)}em`}:{},...N,...g}),w={h1:S(s,96,1.167,-1.5),h2:S(s,60,1.2,-.5),h3:S(c,48,1.167,0),h4:S(c,34,1.235,.25),h5:S(c,24,1.334,0),h6:S(u,20,1.6,.15),subtitle1:S(c,16,1.75,.15),subtitle2:S(u,14,1.57,.1),body1:S(c,16,1.5,.15),body2:S(c,14,1.43,.15),button:S(u,14,1.75,.4,xv),caption:S(c,12,1.66,.4),overline:S(c,12,2.66,1,xv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return pn({htmlFontSize:h,pxToRem:E,fontFamily:a,fontSize:o,fontWeightLight:s,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d,...w},b,{clone:!1})}const D3=.2,L3=.14,P3=.12;function Mt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${D3})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${L3})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${P3})`].join(",")}const $3=["none",Mt(0,2,1,-1,0,1,1,0,0,1,3,0),Mt(0,3,1,-2,0,2,2,0,0,1,5,0),Mt(0,3,3,-2,0,3,4,0,0,1,8,0),Mt(0,2,4,-1,0,4,5,0,0,1,10,0),Mt(0,3,5,-1,0,5,8,0,0,1,14,0),Mt(0,3,5,-1,0,6,10,0,0,1,18,0),Mt(0,4,5,-2,0,7,10,1,0,2,16,1),Mt(0,5,5,-3,0,8,10,1,0,3,14,2),Mt(0,5,6,-3,0,9,12,1,0,3,16,2),Mt(0,6,6,-3,0,10,14,1,0,4,18,3),Mt(0,6,7,-4,0,11,15,1,0,4,20,3),Mt(0,7,8,-4,0,12,17,2,0,5,22,4),Mt(0,7,8,-4,0,13,19,2,0,5,24,4),Mt(0,7,9,-4,0,14,21,2,0,5,26,4),Mt(0,8,9,-5,0,15,22,2,0,6,28,5),Mt(0,8,10,-5,0,16,24,2,0,6,30,5),Mt(0,8,11,-5,0,17,26,2,0,6,32,5),Mt(0,9,11,-5,0,18,28,2,0,7,34,6),Mt(0,9,12,-6,0,19,29,2,0,7,36,6),Mt(0,10,13,-6,0,20,31,3,0,8,38,7),Mt(0,10,13,-6,0,21,33,3,0,8,40,7),Mt(0,10,14,-6,0,22,35,3,0,8,42,7),Mt(0,11,14,-7,0,23,36,3,0,9,44,8),Mt(0,11,15,-7,0,24,38,3,0,9,46,8)],B3={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},$1={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Cv(e){return`${Math.round(e)}ms`}function I3(e){if(!e)return 0;const n=e/36;return Math.min(Math.round((4+15*n**.25+n/5)*10),3e3)}function F3(e){const n={...B3,...e.easing},a={...$1,...e.duration};return{getAutoHeightDuration:I3,create:(s=["all"],c={})=>{const{duration:u=a.standard,easing:d=n.easeInOut,delay:h=0,...g}=c;return(Array.isArray(s)?s:[s]).map(y=>`${y} ${typeof u=="string"?u:Cv(u)} ${d} ${typeof h=="string"?h:Cv(h)}`).join(",")},...e,easing:n,duration:a}}const U3={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function H3(e){return jr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function B1(e={}){const n={...e};function a(o){const s=Object.entries(o);for(let c=0;c<s.length;c++){const[u,d]=s[c];!H3(d)||u.startsWith("unstable_")?delete o[u]:jr(d)&&(o[u]={...d},a(o[u]))}}return a(n),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';

const theme = ${JSON.stringify(n,null,2)};

theme.breakpoints = createBreakpoints(theme.breakpoints || {});
theme.transitions = createTransitions(theme.transitions || {});

export default theme;`}function wv(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const V3=e=>{if(!Number.isNaN(+e))return+e;const n=e.match(/\d*\.?\d+/g);if(!n)return 0;let a=0;for(let o=0;o<n.length;o+=1)a+=+n[o];return a};function q3(e){Object.assign(e,{alpha(n,a){const o=this||e;return o.colorSpace?`oklch(from ${n} l c h / ${typeof a=="string"?`calc(${a})`:a})`:o.vars?`rgba(${n.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof a=="string"?`calc(${a})`:a})`:il(n,V3(a))},lighten(n,a){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${n}, #fff ${wv(a)})`:Pu(n,a)},darken(n,a){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${n}, #000 ${wv(a)})`:Lu(n,a)}})}function rh(e={},...n){const{breakpoints:a,mixins:o={},spacing:s,palette:c={},transitions:u={},typography:d={},shape:h,colorSpace:g,...y}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(aa(20));const b=rm({...c,colorSpace:g}),x=bl(e);let E=pn(x,{mixins:_3(x.breakpoints,o),palette:b,shadows:$3.slice(),typography:P1(b,d),transitions:F3(u),zIndex:{...U3}});return E=pn(E,y),E=n.reduce((S,w)=>pn(S,w),E),E.unstable_sxConfig={...yl,...y?.unstable_sxConfig},E.unstable_sx=function(w){return Pa({sx:w,theme:this})},E.toRuntimeSource=B1,q3(E),E}function ah(e){let n;return e<1?n=5.11916*e**2:n=4.5*Math.log(e+1)+2,Math.round(n*10)/1e3}const G3=[...Array(25)].map((e,n)=>{if(n===0)return"none";const a=ah(n);return`linear-gradient(rgba(255 255 255 / ${a}), rgba(255 255 255 / ${a}))`});function I1(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function F1(e){return e==="dark"?G3:[]}function W3(e){const{palette:n={mode:"light"},opacity:a,overlays:o,colorSpace:s,...c}=e,u=rm({...n,colorSpace:s});return{palette:u,opacity:{...I1(u.mode),...a},overlays:o||F1(u.mode),...c}}function Y3(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const K3=e=>[...[...Array(25)].map((n,a)=>`--${e?`${e}-`:""}overlays-${a}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Q3=e=>(n,a)=>{const o=e.rootSelector||":root",s=e.colorSchemeSelector;let c=s;if(s==="class"&&(c=".%s"),s==="data"&&(c="[data-%s]"),s?.startsWith("data-")&&!s.includes("%s")&&(c=`[${s}="%s"]`),e.defaultColorScheme===n){if(n==="dark"){const u={};return K3(e.cssVarPrefix).forEach(d=>{u[d]=a[d],delete a[d]}),c==="media"?{[o]:a,"@media (prefers-color-scheme: dark)":{[o]:u}}:c?{[c.replace("%s",n)]:u,[`${o}, ${c.replace("%s",n)}`]:a}:{[o]:{...a,...u}}}if(c&&c!=="media")return`${o}, ${c.replace("%s",String(n))}`}else if(n){if(c==="media")return{[`@media (prefers-color-scheme: ${String(n)})`]:{[o]:a}};if(c)return c.replace("%s",String(n))}return o};function X3(e,n){n.forEach(a=>{e[a]||(e[a]={})})}function ie(e,n,a){!e[n]&&a&&(e[n]=a)}function Ws(e){return typeof e!="string"||!e.startsWith("hsl")?e:A1(e)}function Xr(e,n){`${n}Channel`in e||(e[`${n}Channel`]=Gs(Ws(e[n])))}function Z3(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const wr=e=>{try{return e()}catch{}},J3=(e="mui")=>ZT(e);function Tp(e,n,a,o,s){if(!a)return;a=a===!0?{}:a;const c=s==="dark"?"dark":"light";if(!o){n[s]=W3({...a,palette:{mode:c,...a?.palette},colorSpace:e});return}const{palette:u,...d}=rh({...o,palette:{mode:c,...a?.palette},colorSpace:e});return n[s]={...a,palette:u,opacity:{...I1(c),...a?.opacity},overlays:a?.overlays||F1(c)},d}function e4(e={},...n){const{colorSchemes:a={light:!0},defaultColorScheme:o,disableCssColorScheme:s=!1,cssVarPrefix:c="mui",nativeColor:u=!1,shouldSkipGeneratingVar:d=Y3,colorSchemeSelector:h=a.light&&a.dark?"media":void 0,rootSelector:g=":root",...y}=e,b=Object.keys(a)[0],x=o||(a.light&&b!=="light"?"light":b),E=J3(c),{[x]:S,light:w,dark:T,...M}=a,j={...M};let O=S;if((x==="dark"&&!("dark"in a)||x==="light"&&!("light"in a))&&(O=!0),!O)throw new Error(aa(21,x));let N;u&&(N="oklch");const A=Tp(N,j,O,y,x);w&&!j.light&&Tp(N,j,w,void 0,"light"),T&&!j.dark&&Tp(N,j,T,void 0,"dark");let z={defaultColorScheme:x,...A,cssVarPrefix:c,colorSchemeSelector:h,rootSelector:g,getCssVar:E,colorSchemes:j,font:{...N3(A.typography),...A.font},spacing:Z3(y.spacing)};Object.keys(z.colorSchemes).forEach(Z=>{const R=z.colorSchemes[Z].palette,G=q=>{const D=q.split("-"),I=D[1],H=D[2];return E(q,R[I][H])};R.mode==="light"&&(ie(R.common,"background","#fff"),ie(R.common,"onBackground","#000")),R.mode==="dark"&&(ie(R.common,"background","#000"),ie(R.common,"onBackground","#fff"));function F(q,D,I){if(N){let H;return q===io&&(H=`transparent ${((1-I)*100).toFixed(0)}%`),q===pt&&(H=`#000 ${(I*100).toFixed(0)}%`),q===ht&&(H=`#fff ${(I*100).toFixed(0)}%`),`color-mix(in ${N}, ${D}, ${H})`}return q(D,I)}if(X3(R,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),R.mode==="light"){ie(R.Alert,"errorColor",F(pt,R.error.light,.6)),ie(R.Alert,"infoColor",F(pt,R.info.light,.6)),ie(R.Alert,"successColor",F(pt,R.success.light,.6)),ie(R.Alert,"warningColor",F(pt,R.warning.light,.6)),ie(R.Alert,"errorFilledBg",G("palette-error-main")),ie(R.Alert,"infoFilledBg",G("palette-info-main")),ie(R.Alert,"successFilledBg",G("palette-success-main")),ie(R.Alert,"warningFilledBg",G("palette-warning-main")),ie(R.Alert,"errorFilledColor",wr(()=>R.getContrastText(R.error.main))),ie(R.Alert,"infoFilledColor",wr(()=>R.getContrastText(R.info.main))),ie(R.Alert,"successFilledColor",wr(()=>R.getContrastText(R.success.main))),ie(R.Alert,"warningFilledColor",wr(()=>R.getContrastText(R.warning.main))),ie(R.Alert,"errorStandardBg",F(ht,R.error.light,.9)),ie(R.Alert,"infoStandardBg",F(ht,R.info.light,.9)),ie(R.Alert,"successStandardBg",F(ht,R.success.light,.9)),ie(R.Alert,"warningStandardBg",F(ht,R.warning.light,.9)),ie(R.Alert,"errorIconColor",G("palette-error-main")),ie(R.Alert,"infoIconColor",G("palette-info-main")),ie(R.Alert,"successIconColor",G("palette-success-main")),ie(R.Alert,"warningIconColor",G("palette-warning-main")),ie(R.AppBar,"defaultBg",G("palette-grey-100")),ie(R.Avatar,"defaultBg",G("palette-grey-400")),ie(R.Button,"inheritContainedBg",G("palette-grey-300")),ie(R.Button,"inheritContainedHoverBg",G("palette-grey-A100")),ie(R.Chip,"defaultBorder",G("palette-grey-400")),ie(R.Chip,"defaultAvatarColor",G("palette-grey-700")),ie(R.Chip,"defaultIconColor",G("palette-grey-700")),ie(R.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ie(R.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ie(R.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ie(R.LinearProgress,"primaryBg",F(ht,R.primary.main,.62)),ie(R.LinearProgress,"secondaryBg",F(ht,R.secondary.main,.62)),ie(R.LinearProgress,"errorBg",F(ht,R.error.main,.62)),ie(R.LinearProgress,"infoBg",F(ht,R.info.main,.62)),ie(R.LinearProgress,"successBg",F(ht,R.success.main,.62)),ie(R.LinearProgress,"warningBg",F(ht,R.warning.main,.62)),ie(R.Skeleton,"bg",N?F(io,R.text.primary,.11):`rgba(${G("palette-text-primaryChannel")} / 0.11)`),ie(R.Slider,"primaryTrack",F(ht,R.primary.main,.62)),ie(R.Slider,"secondaryTrack",F(ht,R.secondary.main,.62)),ie(R.Slider,"errorTrack",F(ht,R.error.main,.62)),ie(R.Slider,"infoTrack",F(ht,R.info.main,.62)),ie(R.Slider,"successTrack",F(ht,R.success.main,.62)),ie(R.Slider,"warningTrack",F(ht,R.warning.main,.62));const q=N?F(pt,R.background.default,.6825):Dc(R.background.default,.8);ie(R.SnackbarContent,"bg",q),ie(R.SnackbarContent,"color",wr(()=>N?nh.text.primary:R.getContrastText(q))),ie(R.SpeedDialAction,"fabHoverBg",Dc(R.background.paper,.15)),ie(R.StepConnector,"border",G("palette-grey-400")),ie(R.StepContent,"border",G("palette-grey-400")),ie(R.Switch,"defaultColor",G("palette-common-white")),ie(R.Switch,"defaultDisabledColor",G("palette-grey-100")),ie(R.Switch,"primaryDisabledColor",F(ht,R.primary.main,.62)),ie(R.Switch,"secondaryDisabledColor",F(ht,R.secondary.main,.62)),ie(R.Switch,"errorDisabledColor",F(ht,R.error.main,.62)),ie(R.Switch,"infoDisabledColor",F(ht,R.info.main,.62)),ie(R.Switch,"successDisabledColor",F(ht,R.success.main,.62)),ie(R.Switch,"warningDisabledColor",F(ht,R.warning.main,.62)),ie(R.TableCell,"border",F(ht,F(io,R.divider,1),.88)),ie(R.Tooltip,"bg",F(io,R.grey[700],.92))}if(R.mode==="dark"){ie(R.Alert,"errorColor",F(ht,R.error.light,.6)),ie(R.Alert,"infoColor",F(ht,R.info.light,.6)),ie(R.Alert,"successColor",F(ht,R.success.light,.6)),ie(R.Alert,"warningColor",F(ht,R.warning.light,.6)),ie(R.Alert,"errorFilledBg",G("palette-error-dark")),ie(R.Alert,"infoFilledBg",G("palette-info-dark")),ie(R.Alert,"successFilledBg",G("palette-success-dark")),ie(R.Alert,"warningFilledBg",G("palette-warning-dark")),ie(R.Alert,"errorFilledColor",wr(()=>R.getContrastText(R.error.dark))),ie(R.Alert,"infoFilledColor",wr(()=>R.getContrastText(R.info.dark))),ie(R.Alert,"successFilledColor",wr(()=>R.getContrastText(R.success.dark))),ie(R.Alert,"warningFilledColor",wr(()=>R.getContrastText(R.warning.dark))),ie(R.Alert,"errorStandardBg",F(pt,R.error.light,.9)),ie(R.Alert,"infoStandardBg",F(pt,R.info.light,.9)),ie(R.Alert,"successStandardBg",F(pt,R.success.light,.9)),ie(R.Alert,"warningStandardBg",F(pt,R.warning.light,.9)),ie(R.Alert,"errorIconColor",G("palette-error-main")),ie(R.Alert,"infoIconColor",G("palette-info-main")),ie(R.Alert,"successIconColor",G("palette-success-main")),ie(R.Alert,"warningIconColor",G("palette-warning-main")),ie(R.AppBar,"defaultBg",G("palette-grey-900")),ie(R.AppBar,"darkBg",G("palette-background-paper")),ie(R.AppBar,"darkColor",G("palette-text-primary")),ie(R.Avatar,"defaultBg",G("palette-grey-600")),ie(R.Button,"inheritContainedBg",G("palette-grey-800")),ie(R.Button,"inheritContainedHoverBg",G("palette-grey-700")),ie(R.Chip,"defaultBorder",G("palette-grey-700")),ie(R.Chip,"defaultAvatarColor",G("palette-grey-300")),ie(R.Chip,"defaultIconColor",G("palette-grey-300")),ie(R.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ie(R.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ie(R.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ie(R.LinearProgress,"primaryBg",F(pt,R.primary.main,.5)),ie(R.LinearProgress,"secondaryBg",F(pt,R.secondary.main,.5)),ie(R.LinearProgress,"errorBg",F(pt,R.error.main,.5)),ie(R.LinearProgress,"infoBg",F(pt,R.info.main,.5)),ie(R.LinearProgress,"successBg",F(pt,R.success.main,.5)),ie(R.LinearProgress,"warningBg",F(pt,R.warning.main,.5)),ie(R.Skeleton,"bg",N?F(io,R.text.primary,.13):`rgba(${G("palette-text-primaryChannel")} / 0.13)`),ie(R.Slider,"primaryTrack",F(pt,R.primary.main,.5)),ie(R.Slider,"secondaryTrack",F(pt,R.secondary.main,.5)),ie(R.Slider,"errorTrack",F(pt,R.error.main,.5)),ie(R.Slider,"infoTrack",F(pt,R.info.main,.5)),ie(R.Slider,"successTrack",F(pt,R.success.main,.5)),ie(R.Slider,"warningTrack",F(pt,R.warning.main,.5));const q=N?F(ht,R.background.default,.985):Dc(R.background.default,.98);ie(R.SnackbarContent,"bg",q),ie(R.SnackbarContent,"color",wr(()=>N?D1.text.primary:R.getContrastText(q))),ie(R.SpeedDialAction,"fabHoverBg",Dc(R.background.paper,.15)),ie(R.StepConnector,"border",G("palette-grey-600")),ie(R.StepContent,"border",G("palette-grey-600")),ie(R.Switch,"defaultColor",G("palette-grey-300")),ie(R.Switch,"defaultDisabledColor",G("palette-grey-600")),ie(R.Switch,"primaryDisabledColor",F(pt,R.primary.main,.55)),ie(R.Switch,"secondaryDisabledColor",F(pt,R.secondary.main,.55)),ie(R.Switch,"errorDisabledColor",F(pt,R.error.main,.55)),ie(R.Switch,"infoDisabledColor",F(pt,R.info.main,.55)),ie(R.Switch,"successDisabledColor",F(pt,R.success.main,.55)),ie(R.Switch,"warningDisabledColor",F(pt,R.warning.main,.55)),ie(R.TableCell,"border",F(pt,F(io,R.divider,1),.68)),ie(R.Tooltip,"bg",F(io,R.grey[700],.92))}Xr(R.background,"default"),Xr(R.background,"paper"),Xr(R.common,"background"),Xr(R.common,"onBackground"),Xr(R,"divider"),Object.keys(R).forEach(q=>{const D=R[q];q!=="tonalOffset"&&D&&typeof D=="object"&&(D.main&&ie(R[q],"mainChannel",Gs(Ws(D.main))),D.light&&ie(R[q],"lightChannel",Gs(Ws(D.light))),D.dark&&ie(R[q],"darkChannel",Gs(Ws(D.dark))),D.contrastText&&ie(R[q],"contrastTextChannel",Gs(Ws(D.contrastText))),q==="text"&&(Xr(R[q],"primary"),Xr(R[q],"secondary")),q==="action"&&(D.active&&Xr(R[q],"active"),D.selected&&Xr(R[q],"selected")))})}),z=n.reduce((Z,R)=>pn(Z,R),z);const L={prefix:c,disableCssColorScheme:s,shouldSkipGeneratingVar:d,getSelector:Q3(z),enableContrastVars:u},{vars:B,generateThemeVars:V,generateStyleSheets:X}=t3(z,L);return z.vars=B,Object.entries(z.colorSchemes[z.defaultColorScheme]).forEach(([Z,R])=>{z[Z]=R}),z.generateThemeVars=V,z.generateStyleSheets=X,z.generateSpacing=function(){return b1(y.spacing,Kh(this))},z.getColorSchemeSelector=n3(h),z.spacing=z.generateSpacing(),z.shouldSkipGeneratingVar=d,z.unstable_sxConfig={...yl,...y?.unstable_sxConfig},z.unstable_sx=function(R){return Pa({sx:R,theme:this})},z.toRuntimeSource=B1,z}function Ev(e,n,a){e.colorSchemes&&a&&(e.colorSchemes[n]={...a!==!0&&a,palette:rm({...a===!0?{}:a.palette,mode:n})})}function Bu(e={},...n){const{palette:a,cssVariables:o=!1,colorSchemes:s=a?void 0:{light:!0},defaultColorScheme:c=a?.mode,...u}=e,d=c||"light",h=s?.[d],g={...s,...a?{[d]:{...typeof h!="boolean"&&h,palette:a}}:void 0};if(o===!1){if(!("colorSchemes"in e))return rh(e,...n);let y=a;"palette"in e||g[d]&&(g[d]!==!0?y=g[d].palette:d==="dark"&&(y={mode:"dark"}));const b=rh({...e,palette:y},...n);return b.defaultColorScheme=d,b.colorSchemes=g,b.palette.mode==="light"&&(b.colorSchemes.light={...g.light!==!0&&g.light,palette:b.palette},Ev(b,"dark",g.dark)),b.palette.mode==="dark"&&(b.colorSchemes.dark={...g.dark!==!0&&g.dark,palette:b.palette},Ev(b,"light",g.light)),b}return!a&&!("light"in g)&&d==="light"&&(g.light=!0),e4({...u,colorSchemes:g,defaultColorScheme:d,...typeof o!="boolean"&&o},...n)}function t4(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n4(e){return parseFloat(e)}const am=Bu();function sa(){const e=vl(am);return e[kr]||e}function U1(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jn=e=>U1(e)&&e!=="classes",fe=E1({themeId:kr,defaultTheme:am,rootShouldForwardProp:jn});function r4({theme:e,...n}){const a=kr in e?e[kr]:void 0;return p.jsx(N1,{...n,themeId:a?kr:void 0,theme:a||e})}const Lc={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:a4}=XT({themeId:kr,theme:()=>Bu({cssVariables:!0}),colorSchemeStorageKey:Lc.colorSchemeStorageKey,modeStorageKey:Lc.modeStorageKey,defaultColorScheme:{light:Lc.defaultLightColorScheme,dark:Lc.defaultDarkColorScheme},resolveTheme:e=>{const n={...e,typography:P1(e.palette,e.typography)};return n.unstable_sx=function(o){return Pa({sx:o,theme:this})},n}}),o4=a4;function i4({theme:e,...n}){const a=v.useMemo(()=>{if(typeof e=="function")return e;const o=kr in e?e[kr]:e;return"colorSchemes"in o?null:"vars"in o?e:{...e,vars:null}},[e]);return a?p.jsx(r4,{theme:a,...n}):p.jsx(o4,{theme:e,...n})}function s4(e){return p.jsx(v1,{...e,defaultTheme:am,themeId:kr})}function om(e){return function(a){return p.jsx(s4,{styles:typeof e=="function"?o=>e({theme:o,...a}):e})}}function l4(){return Zh}function ze(e){return BT(e)}const oh=typeof om({})=="function",c4=(e,n)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...n&&!e.vars&&{colorScheme:e.palette.mode}}),u4=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),H1=(e,n=!1)=>{const a={};n&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([c,u])=>{const d=e.getColorSchemeSelector(c);d.startsWith("@")?a[d]={":root":{colorScheme:u.palette?.mode}}:a[d.replace(/\s*&/,"")]={colorScheme:u.palette?.mode}});let o={html:c4(e,n),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...u4(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...a};const s=e.components?.MuiCssBaseline?.styleOverrides;return s&&(o=[o,s]),o},Kc="mui-ecs",d4=e=>{const n=H1(e,!1),a=Array.isArray(n)?n[0]:n;return!e.vars&&a&&(a.html[`:root:has(${Kc})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([o,s])=>{const c=e.getColorSchemeSelector(o);c.startsWith("@")?a[c]={[`:root:not(:has(.${Kc}))`]:{colorScheme:s.palette?.mode}}:a[c.replace(/\s*&/,"")]={[`&:not(:has(.${Kc}))`]:{colorScheme:s.palette?.mode}}}),n},f4=om(oh?({theme:e,enableColorScheme:n})=>H1(e,n):({theme:e})=>d4(e));function p4(e){const n=ze({props:e,name:"MuiCssBaseline"}),{children:a,enableColorScheme:o=!1}=n;return p.jsxs(v.Fragment,{children:[oh&&p.jsx(f4,{enableColorScheme:o}),!oh&&!o&&p.jsx("span",{className:Kc,style:{display:"none"}}),a]})}const h4="modulepreload",m4=function(e){return"/"+e},Rv={},Ys=function(n,a,o){let s=Promise.resolve();if(a&&a.length>0){let h=function(g){return Promise.all(g.map(y=>Promise.resolve(y).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");s=h(a.map(g=>{if(g=m4(g),g in Rv)return;Rv[g]=!0;const y=g.endsWith(".css"),b=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${b}`))return;const x=document.createElement("link");if(x.rel=y?"stylesheet":h4,y||(x.as="script"),x.crossOrigin="",x.href=g,d&&x.setAttribute("nonce",d),document.head.appendChild(x),y)return new Promise((E,S)=>{x.addEventListener("load",E),x.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${g}`)))})}))}function c(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return s.then(u=>{for(const d of u||[])d.status==="rejected"&&c(d.reason);return n().catch(c)})},Jn={ACCESS_TOKEN:"lomi_access_token",REFRESH_TOKEN:"lomi_refresh_token",USER_DATA:"lomi_user_data",TOKEN_EXPIRES_AT:"lomi_token_expires_at"},im=e=>{try{if(!e)return null;const n=e.split(".");return n.length!==3?null:JSON.parse(atob(n[1]))}catch(n){return console.error("Error decoding JWT:",n),null}},g4=e=>{const n=im(e);if(!n||!n.exp)return!0;const a=Math.floor(Date.now()/1e3);return n.exp<a},y4=e=>{try{if(!e||typeof e!="object")throw new Error("No valid authentication response provided");const n=e.access,a=e.refresh,o=e.user;if(!n||n.trim()==="")throw new Error(`Invalid access token: ${JSON.stringify(n)}`);if((!a||a.trim()==="")&&(console.warn("Refresh token is empty or missing. This might be a backend configuration issue."),console.warn("Attempting to proceed with access token only. Token refresh will not be available.")),!o||typeof o!="object")throw new Error(`Invalid user data: ${JSON.stringify(o)}`);if(typeof n!="string"||n.split(".").length!==3)throw new Error("Invalid access token format - not a valid JWT");if(a&&a.trim()!==""&&(typeof a!="string"||a.split(".").length!==3))throw new Error("Invalid refresh token format - not a valid JWT");localStorage.setItem(Jn.ACCESS_TOKEN,n),a&&a.trim()!==""?localStorage.setItem(Jn.REFRESH_TOKEN,a):localStorage.removeItem(Jn.REFRESH_TOKEN),localStorage.setItem(Jn.USER_DATA,JSON.stringify(o));const s=im(n);return s&&s.exp&&localStorage.setItem(Jn.TOKEN_EXPIRES_AT,s.exp.toString()),!0}catch(n){return console.error("Error storing auth data:",n),!1}},ih=()=>{try{const e=localStorage.getItem(Jn.ACCESS_TOKEN);return e?g4(e)?(console.warn("Access token is expired"),null):e:null}catch(e){return console.error("Error getting access token:",e),null}},Qc=()=>{try{return localStorage.getItem(Jn.REFRESH_TOKEN)}catch(e){return console.error("Error getting refresh token:",e),null}},V1=()=>{try{const e=localStorage.getItem(Jn.USER_DATA);return e?JSON.parse(e):null}catch(e){return console.error("Error getting user data:",e),null}},b4=()=>{try{const e=localStorage.getItem(Jn.ACCESS_TOKEN),n=Qc(),a=V1();return!!(e&&a)}catch(e){return console.error("Error checking authentication status:",e),!1}},Ap=()=>{try{return Object.entries(Jn).forEach(([n,a])=>{const o=localStorage.getItem(a)}),Object.values(Jn).forEach(n=>{localStorage.removeItem(n)}),Object.keys(localStorage).filter(n=>n.startsWith("lomi_")||n.includes("auth")||n.includes("token")||n.includes("user")).forEach(n=>{Object.values(Jn).includes(n)||localStorage.removeItem(n)}),!0}catch(e){return console.error("Error clearing auth data:",e),!1}},Tv=()=>{const e=ih();if(!e)return!1;const n=im(e);if(!n||!n.exp)return!1;const a=Math.floor(Date.now()/1e3);return n.exp-a<300},q1="https://lomi-ai.onrender.com/api/v1",pr="https://lomi-beta-backend.onrender.com",so={public_key:"pub_test_16MQt31oW6tRL5BZT4Rzxai53kYSN3Sx",sandbox_url:"https://checkout.wompi.co/p/",production_url:"https://checkout.wompi.co/p/",is_sandbox:!0,currency:"COP",default_amount:"50000"},G1=async e=>{if(!e||e.length===0)return[];try{const n=await fetch(`${q1}/upload-multiple-images`,{method:"POST",body:e});if(!n.ok)throw new Error("Error en la respuesta del servidor");return await n.json()||[]}catch{throw new Error("Error al procesar las imágenes")}},W1=async e=>{if(!e)return{};try{const n=await fetch(`${q1}/generate-landing`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!n.ok)throw new Error("Error en la respuesta del servidor");return await n.json()||{}}catch{throw new Error("Error al generar el contenido de la plantilla")}},Y1=async e=>{const{username:n,email:a,password1:o,password2:s}=e;try{const c=await fetch(`${pr}/dj-rest-auth/registration/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:a,email:a,password1:o,password2:s})});if(!c.ok){const d=await c.json();throw new Error(d.detail||d.message||"Error en el registro")}return await c.json()}catch(c){throw new Error(c.message||"Error al registrar usuario")}},K1=async e=>{const{username:n,password:a}=e;try{const o=await fetch(`${pr}/dj-rest-auth/login/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:n,password:a})});if(!o.ok){const c=await o.json();throw new Error(c.detail||c.non_field_errors?.[0]||"Error en el login")}return await o.json()}catch(o){throw console.error("Login API error:",o),new Error(o.message||"Error al iniciar sesión")}},Q1=async e=>{try{const n=await fetch(`${pr}/dj-rest-auth/token/refresh/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refresh:e})});if(!n.ok){const o=await n.json();throw new Error(o.detail||"Error refreshing token")}return await n.json()}catch(n){throw new Error(n.message||"Error al refrescar token")}},X1=async e=>{try{const n=await fetch(`${pr}/dj-rest-auth/logout/`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}});if(!n.ok){let o="Error al cerrar sesión";try{const s=await n.json();o=s.detail||s.message||o}catch(s){console.warn("Could not parse error response:",s)}throw new Error(o)}let a=null;try{const o=await n.text();o?a=JSON.parse(o):a={success:!0}}catch(o){console.warn("Could not parse logout response, but status was OK:",o),a={success:!0}}return a}catch(n){throw console.error("Logout API error:",n),new Error(n.message||"Error al cerrar sesión")}},Z1=async(e,n)=>{if(!e)return{};try{const a=await fetch(`${pr}/api/v1/user-templates/`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify(e)});if(!a.ok){const s=await a.json();throw a.status===400?new Error(s.detail):new Error(s.detail||"Error al crear plantilla de usuario")}return await a.json()}catch(a){throw console.error("Create User Template API error:",a),new Error(a.message||"Error al crear plantilla de usuario")}},J1=async e=>{try{const n=await fetch(`${pr}/api/v1/user-templates/attempts/?user_id=${e}`,{method:"GET"});if(!n.ok){const o=await n.json();throw new Error(o.detail||"Error al obtener los intentos del usuario")}return await n.json()}catch(n){throw console.error("Get User Attempts API error:",n),new Error(n.message||"Error al obtener los intentos del usuario")}},eS=async(e,n)=>{try{const a=await fetch(`${pr}/api/v1/user-templates/check-name/?name_project=${encodeURIComponent(e)}&user_id=${n}`,{method:"GET"});if(!a.ok){const s=await a.json();throw new Error(s.detail||"Error al verificar la existencia del proyecto")}return await a.json()}catch(a){throw console.error("Check Project Name Exists API error:",a),new Error(a.message||"Error al verificar la existencia del proyecto")}},tS=async(e,n)=>{try{const a=await fetch(`${pr}/api/v1/user-templates/?user_id=${e}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`}});if(!a.ok){const s=await a.json();throw new Error(s.detail||"Error al obtener las páginas del usuario")}return await a.json()}catch(a){throw new Error(a.message||"Error al obtener las páginas del usuario")}},v4=Object.freeze(Object.defineProperty({__proto__:null,checkProjectNameExists:eS,createImagesUrl:G1,createUserTemplate:Z1,getPagesUser:tS,getUserAttempts:J1,loginUser:K1,logoutUser:X1,refreshToken:Q1,registerUser:Y1,templateContent:W1},Symbol.toStringTag,{value:"Module"})),nS=v.createContext({}),x4=({children:e})=>{const[n,a]=v.useState(!1),[o,s]=v.useState(null),[c,u]=v.useState(!0),d=v.useCallback(async()=>{try{const x=Qc();if(!x)throw console.warn("No refresh token available - user will need to login again when access token expires"),new Error("No refresh token available");const E=await Q1(x);if(E.access)return localStorage.setItem("lomi_access_token",E.access),E.access;throw new Error("Invalid refresh response")}catch(x){throw console.error("Token refresh failed:",x),Ap(),a(!1),s(null),x}},[]);v.useEffect(()=>{(async()=>{try{if(u(!0),b4()){const S=V1();if(a(!0),s(S),Qc()&&Tv())try{await d()}catch(T){console.error("Failed to refresh token on init:",T)}}else a(!1),s(null)}catch(E){console.error("Error initializing auth:",E),a(!1),s(null)}finally{u(!1)}})()},[d]),v.useEffect(()=>{if(!n)return;const x=setInterval(async()=>{if(Qc()&&Tv())try{await d()}catch(S){console.error("Automatic token refresh failed:",S)}},6e5);return()=>clearInterval(x)},[n,d]);const h=v.useCallback(async x=>{try{if(u(!0),y4(x))return a(!0),s(x.user),{success:!0};throw new Error("Failed to store authentication data")}catch(E){return console.error("Login error:",E),{success:!1,error:E.message||"Error al procesar la autenticación"}}finally{u(!1)}},[]),g=v.useCallback(async()=>{try{u(!0);const x=ih();if(x)try{const{logoutUser:E}=await Ys(async()=>{const{logoutUser:S}=await Promise.resolve().then(()=>v4);return{logoutUser:S}},[]);await E(x)}catch(E){console.warn("Server logout failed, proceeding with local logout:",E.message)}return Ap(),a(!1),s(null),{success:!0}}catch(x){console.error("Logout error:",x);try{Ap(),a(!1),s(null)}catch(E){console.error("Failed to clear auth data:",E)}return{success:!1,error:"Error al cerrar sesión"}}finally{u(!1)}},[]),y=v.useCallback(()=>ih(),[]),b={isAuthenticated:n,user:o,loading:c,login:h,logout:g,getToken:y,refreshAccessToken:d};return p.jsx(nS.Provider,{value:b,children:e})},rS=v.createContext({}),aS=({children:e})=>{const[n,a]=v.useState(null),[o,s]=v.useState(null),[c,u]=v.useState(!1),d=(y,b=null)=>{a({template_content:y}),b&&s(b)},h=()=>{a(null),s(null)},g=v.useMemo(()=>({templateContent:n,formData:o,isGenerating:c,setIsGenerating:u,updateTemplateContent:d,clearTemplateContent:h}),[n,o,c]);return p.jsx(rS.Provider,{value:g,children:e})};aS.propTypes={children:qe.node.isRequired};const oS=()=>{const e=v.useContext(rS);if(!e)throw new Error("useTemplate debe ser usado dentro de un TemplateProvider");return e},S4=()=>{function e(){const n=window.open("","_blank");setTimeout(()=>{n.location.href="https://chat.whatsapp.com/HPKs6il6tTZBnvDuTwvXIw?mode=r_t"},500)}return p.jsx("div",{className:"hero",children:p.jsxs("header",{className:"header",children:[p.jsxs("div",{className:"header-nav",children:[p.jsxs("div",{className:"logo-container",children:[p.jsx("img",{src:"../../lomi-icon.png",alt:"Logo LOMI",className:"logo"}),p.jsx("h2",{className:"logo-text",children:"LOMI"})]}),p.jsx(dl,{to:"/login",className:"login-btn",children:"Ingresar"})]}),p.jsxs("div",{className:"info-container",children:[p.jsxs("h1",{className:"info-title",children:[p.jsx("span",{className:"text-white",children:"Tu web lista en minutos, y"}),p.jsx("br",{}),p.jsx("span",{className:"text-black",children:"por sólo $7usd al año."})]}),p.jsx("p",{className:"description",children:"Únete gratis a la comunidad Lomi.Sé de los primeros en LATAM en lanzarla."}),p.jsx("button",{className:"cta",onClick:e,children:"Quiero ya mismo mi sitio web"}),p.jsx("p",{className:"footer-note",children:" ¡Corre el tiempo se acaba!"})]})]})})},C4=()=>p.jsx(p.Fragment,{children:p.jsxs("div",{className:"features-container",children:[p.jsx("div",{className:"feature-card",children:p.jsxs("p",{children:["Sin diseñadores,",p.jsx("br",{}),"sin programar,",p.jsx("br",{}),"sin enredos"]})}),p.jsx("div",{className:"feature-card",children:p.jsxs("p",{children:["Web profesional,",p.jsx("br",{}),"con dominio propio"]})}),p.jsx("div",{className:"feature-card",children:p.jsxs("p",{children:["Precio exclusivo y",p.jsx("br",{}),"acceso ",p.jsx("br",{})," anticipado"]})})]})}),w4=()=>p.jsx(p.Fragment,{children:p.jsxs("footer",{className:"footer",children:[p.jsxs("p",{className:"footer-message",children:["Tu página web no puede seguir siendo un pendiente.",p.jsx("br",{}),"Hazla realidad con LOMI."]}),p.jsxs("div",{className:"footer-logo",children:[p.jsx("img",{src:"../../lomi-icon.png",alt:"Logo LOMI",className:"logo"}),p.jsx("span",{children:"LOMI"})]}),p.jsx("p",{className:"footer-description",children:"Lomi es un producto creado por Staion S.A.S. para que cualquier negocio en LATAM tenga su sitio web en minutos, sin complicaciones y con bajo costo."}),p.jsxs("p",{className:"footer-contact",children:["¿Tienes dudas? Escríbenos a:"," ",p.jsx("a",{href:"mailto:hola@staion.com.co",className:"email-link",children:"info@lomilabs.com"})]}),p.jsx("p",{className:"footer-copy",children:"© 2025 Lomi / Staion S.A.S. Todos los derechos reservados."})]})}),E4=()=>{const[e,n]=v.useState({businessName:"",businessType:"",userName:"",whatsapp:"",privacyPolicy:!1,marketingConsent:!1}),[a,o]=v.useState(!1),[s,c]=v.useState(!1),[u,d]=v.useState(""),[h,g]=v.useState(!1),[y,b]=v.useState(Date.now()),[x,E]=v.useState(""),S=M=>{const{name:j,value:O,type:N,checked:A}=M.target;n(z=>({...z,[j]:N==="checkbox"?A:O}))},w=()=>{n({businessName:"",businessType:"",userName:"",whatsapp:"",privacyPolicy:!1,marketingConsent:!1}),b(Date.now())},T=async M=>{if(M.preventDefault(),g(!0),c(!1),o(!1),!e.businessName||!e.businessType||!e.userName||!e.whatsapp){d("Por favor, completa todos los campos obligatorios."),c(!0),g(!1),setTimeout(()=>c(!1),5e3);return}if(!e.privacyPolicy){d("Debes aceptar la política de privacidad para continuar."),c(!0),g(!1),setTimeout(()=>c(!1),5e3);return}try{const O=await(await fetch("https://staion-api.onrender.com/api/send-lomi-email/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json();O.message==="¡Tu registro ha sido confirmado! Pronto recibirás mas información."?(E(` ${O.message}`),o(!0),c(!1),d(""),setTimeout(()=>o(!1),8e3),setTimeout(()=>{window.open("https://chat.whatsapp.com/HPKs6il6tTZBnvDuTwvXIw?mode=r_t","_blank")},1e3)):(d(O.message||"Error al enviar el formulario."),c(!0),setTimeout(()=>c(!1),5e3)),w()}catch(j){console.error("Error:",j),d("Error de conexión. Por favor, verifica tu conexión a internet."),c(!0),setTimeout(()=>c(!1),5e3),setTimeout(()=>{w()},3e3)}finally{g(!1)}};return p.jsx(p.Fragment,{children:p.jsxs("div",{className:"form-section",id:"formulario",children:[p.jsx("h2",{className:"form-title",children:"Lista de espera"}),p.jsx("p",{className:"form-subtitle",children:"Sé de los primeros en acceder."}),p.jsxs("form",{className:"form-container",id:"businessForm",onSubmit:T,children:[p.jsxs("label",{children:[p.jsx("span",{className:"input-label",children:"Nombre del negocio"}),p.jsx("input",{type:"text",name:"businessName",pattern:"[A-Za-zÁÉÍÓÚáéíóúÑñ ]+",title:"Solo se permiten letras y espacios",value:e.businessName,onChange:S,disabled:h,required:!0})]}),p.jsxs("label",{children:[p.jsx("span",{className:"input-label",children:"Tipo de negocio (Salud, comida, belleza, educación, servicios, etc.)"}),p.jsx("input",{type:"text",name:"businessType",pattern:"[A-Za-zÁÉÍÓÚáéíóúÑñ ]+",title:"Solo se permiten letras y espacios",value:e.businessType,onChange:S,disabled:h,required:!0})]}),p.jsxs("label",{children:[p.jsx("span",{className:"input-label",children:"Tu nombre"}),p.jsx("input",{type:"text",name:"userName",pattern:"[A-Za-zÁÉÍÓÚáéíóúÑñ ]+",title:"Solo se permiten letras y espacios",value:e.userName,onChange:S,disabled:h,required:!0})]}),p.jsxs("label",{children:[p.jsx("span",{className:"input-label",children:"Tu WhatsApp"}),p.jsx("input",{type:"text",name:"whatsapp",pattern:"[\\+\\-\\s\\(\\)0-9]+",title:"Ingresa solo números (mínimo 7, máximo 15)",value:e.whatsapp,onChange:S,disabled:h,required:!0})]}),p.jsxs("div",{className:"checkbox-container",children:[p.jsxs("label",{className:"checkbox-label",children:[p.jsx("input",{type:"checkbox",name:"privacyPolicy",checked:e.privacyPolicy,onChange:S,disabled:h,required:!0}),"Acepto el tratamiento de mis datos personales según la política de privacidad."]}),p.jsxs("label",{className:"checkbox-label",children:[p.jsx("input",{type:"checkbox",name:"marketingConsent",checked:e.marketingConsent,onChange:S,disabled:h,required:!0}),"Autorizo a Lomi a enviarme novedades, actualizaciones e información sobre el producto."]})]}),p.jsx("button",{type:"submit",className:"submit-button",disabled:h,children:h?"Enviando...":"Registrarme ahora"}),a&&p.jsx("div",{className:"success-message",children:x}),s&&p.jsx("div",{className:"error-message",children:u}),p.jsxs("a",{href:"/docs/Politicas_Lomi.pdf",className:"form-legal",target:"_blank",rel:"noopener noreferrer",children:["Consulta nuestra"," ",p.jsx("span",{className:"underline-text",children:"Política de Privacidad"})," y"," ",p.jsx("span",{className:"underline-text",children:"Términos y Condiciones"})]})]},y)]})})};function R4(){return p.jsxs(p.Fragment,{children:[p.jsx(S4,{}),p.jsx(E4,{}),p.jsx(C4,{}),p.jsx(w4,{})]})}function Av(...e){return e.reduce((n,a)=>a==null?n:function(...s){n.apply(this,s),a.apply(this,s)},()=>{})}const $e=HT;function T4(e){return ke("MuiSvgIcon",e)}Oe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const A4=e=>{const{color:n,fontSize:a,classes:o}=e,s={root:["root",n!=="inherit"&&`color${he(n)}`,`fontSize${he(a)}`]};return Ne(s,T4,o)},j4=fe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,a.color!=="inherit"&&n[`color${he(a.color)}`],n[`fontSize${he(a.fontSize)}`]]}})($e(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:n=>!n.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,n])=>n&&n.main).map(([n])=>({props:{color:n},style:{color:(e.vars??e).palette?.[n]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),au=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiSvgIcon"}),{children:s,className:c,color:u="inherit",component:d="svg",fontSize:h="medium",htmlColor:g,inheritViewBox:y=!1,titleAccess:b,viewBox:x="0 0 24 24",...E}=o,S=v.isValidElement(s)&&s.type==="svg",w={...o,color:u,component:d,fontSize:h,instanceFontSize:n.fontSize,inheritViewBox:y,viewBox:x,hasSvgAsChild:S},T={};y||(T.viewBox=x);const M=A4(w);return p.jsxs(j4,{as:d,className:Ce(M.root,c),focusable:"false",color:g,"aria-hidden":b?void 0:!0,role:b?"img":void 0,ref:a,...T,...E,...S&&s.props,ownerState:w,children:[S?s.props.children:s,b?p.jsx("title",{children:b}):null]})});au.muiName="SvgIcon";function tt(e,n){function a(o,s){return p.jsx(au,{"data-testid":void 0,ref:s,...o,children:e})}return a.muiName=au.muiName,v.memo(v.forwardRef(a))}function sm(e,n=166){let a;function o(...s){const c=()=>{e.apply(this,s)};clearTimeout(a),a=setTimeout(c,n)}return o.clear=()=>{clearTimeout(a)},o}function Rn(e){return e&&e.ownerDocument||document}function hr(e){return Rn(e).defaultView||window}function jv(e,n){typeof e=="function"?e(n):e&&(e.current=n)}function sh(e){const{controlled:n,default:a,name:o,state:s="value"}=e,{current:c}=v.useRef(n!==void 0),[u,d]=v.useState(a),h=c?n:u,g=v.useCallback(y=>{c||d(y)},[]);return[h,g]}function Nr(e){const n=v.useRef(e);return _r(()=>{n.current=e}),v.useRef((...a)=>(0,n.current)(...a)).current}function Gt(...e){const n=v.useRef(void 0),a=v.useCallback(o=>{const s=e.map(c=>{if(c==null)return null;if(typeof c=="function"){const u=c,d=u(o);return typeof d=="function"?d:()=>{u(null)}}return c.current=o,()=>{c.current=null}});return()=>{s.forEach(c=>c?.())}},e);return v.useMemo(()=>e.every(o=>o==null)?null:o=>{n.current&&(n.current(),n.current=void 0),o!=null&&(n.current=a(o))},e)}function M4(e,n){const a=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&a>=65&&a<=90&&typeof n=="function"}function iS(e,n){if(!e)return n;function a(u,d){const h={};return Object.keys(d).forEach(g=>{M4(g,d[g])&&typeof u[g]=="function"&&(h[g]=(...y)=>{u[g](...y),d[g](...y)})}),h}if(typeof e=="function"||typeof n=="function")return u=>{const d=typeof n=="function"?n(u):n,h=typeof e=="function"?e({...u,...d}):e,g=Ce(u?.className,d?.className,h?.className),y=a(h,d);return{...d,...h,...y,...!!g&&{className:g},...d?.style&&h?.style&&{style:{...d.style,...h.style}},...d?.sx&&h?.sx&&{sx:[...Array.isArray(d.sx)?d.sx:[d.sx],...Array.isArray(h.sx)?h.sx:[h.sx]]}}};const o=n,s=a(e,o),c=Ce(o?.className,e?.className);return{...n,...e,...s,...!!c&&{className:c},...o?.style&&e?.style&&{style:{...o.style,...e.style}},...o?.sx&&e?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function sS(e,n){if(e==null)return{};var a={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(n.indexOf(o)!==-1)continue;a[o]=e[o]}return a}function lh(e,n){return lh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,o){return a.__proto__=o,a},lh(e,n)}function lS(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,lh(e,n)}const Mv={disabled:!1},ou=we.createContext(null);var k4=function(n){return n.scrollTop},Ks="unmounted",uo="exited",fo="entering",yi="entered",ch="exiting",ir=function(e){lS(n,e);function n(o,s){var c;c=e.call(this,o,s)||this;var u=s,d=u&&!u.isMounting?o.enter:o.appear,h;return c.appearStatus=null,o.in?d?(h=uo,c.appearStatus=fo):h=yi:o.unmountOnExit||o.mountOnEnter?h=Ks:h=uo,c.state={status:h},c.nextCallback=null,c}n.getDerivedStateFromProps=function(s,c){var u=s.in;return u&&c.status===Ks?{status:uo}:null};var a=n.prototype;return a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(s){var c=null;if(s!==this.props){var u=this.state.status;this.props.in?u!==fo&&u!==yi&&(c=fo):(u===fo||u===yi)&&(c=ch)}this.updateStatus(!1,c)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var s=this.props.timeout,c,u,d;return c=u=d=s,s!=null&&typeof s!="number"&&(c=s.exit,u=s.enter,d=s.appear!==void 0?s.appear:u),{exit:c,enter:u,appear:d}},a.updateStatus=function(s,c){if(s===void 0&&(s=!1),c!==null)if(this.cancelNextCallback(),c===fo){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:qs.findDOMNode(this);u&&k4(u)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===uo&&this.setState({status:Ks})},a.performEnter=function(s){var c=this,u=this.props.enter,d=this.context?this.context.isMounting:s,h=this.props.nodeRef?[d]:[qs.findDOMNode(this),d],g=h[0],y=h[1],b=this.getTimeouts(),x=d?b.appear:b.enter;if(!s&&!u||Mv.disabled){this.safeSetState({status:yi},function(){c.props.onEntered(g)});return}this.props.onEnter(g,y),this.safeSetState({status:fo},function(){c.props.onEntering(g,y),c.onTransitionEnd(x,function(){c.safeSetState({status:yi},function(){c.props.onEntered(g,y)})})})},a.performExit=function(){var s=this,c=this.props.exit,u=this.getTimeouts(),d=this.props.nodeRef?void 0:qs.findDOMNode(this);if(!c||Mv.disabled){this.safeSetState({status:uo},function(){s.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:ch},function(){s.props.onExiting(d),s.onTransitionEnd(u.exit,function(){s.safeSetState({status:uo},function(){s.props.onExited(d)})})})},a.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(s,c){c=this.setNextCallback(c),this.setState(s,c)},a.setNextCallback=function(s){var c=this,u=!0;return this.nextCallback=function(d){u&&(u=!1,c.nextCallback=null,s(d))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},a.onTransitionEnd=function(s,c){this.setNextCallback(c);var u=this.props.nodeRef?this.props.nodeRef.current:qs.findDOMNode(this),d=s==null&&!this.props.addEndListener;if(!u||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var h=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],g=h[0],y=h[1];this.props.addEndListener(g,y)}s!=null&&setTimeout(this.nextCallback,s)},a.render=function(){var s=this.state.status;if(s===Ks)return null;var c=this.props,u=c.children;c.in,c.mountOnEnter,c.unmountOnExit,c.appear,c.enter,c.exit,c.timeout,c.addEndListener,c.onEnter,c.onEntering,c.onEntered,c.onExit,c.onExiting,c.onExited,c.nodeRef;var d=sS(c,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return we.createElement(ou.Provider,{value:null},typeof u=="function"?u(s,d):we.cloneElement(we.Children.only(u),d))},n}(we.Component);ir.contextType=ou;ir.propTypes={};function mi(){}ir.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:mi,onEntering:mi,onEntered:mi,onExit:mi,onExiting:mi,onExited:mi};ir.UNMOUNTED=Ks;ir.EXITED=uo;ir.ENTERING=fo;ir.ENTERED=yi;ir.EXITING=ch;function O4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lm(e,n){var a=function(c){return n&&v.isValidElement(c)?n(c):c},o=Object.create(null);return e&&v.Children.map(e,function(s){return s}).forEach(function(s){o[s.key]=a(s)}),o}function N4(e,n){e=e||{},n=n||{};function a(y){return y in n?n[y]:e[y]}var o=Object.create(null),s=[];for(var c in e)c in n?s.length&&(o[c]=s,s=[]):s.push(c);var u,d={};for(var h in n){if(o[h])for(u=0;u<o[h].length;u++){var g=o[h][u];d[o[h][u]]=a(g)}d[h]=a(h)}for(u=0;u<s.length;u++)d[s[u]]=a(s[u]);return d}function ho(e,n,a){return a[n]!=null?a[n]:e.props[n]}function _4(e,n){return lm(e.children,function(a){return v.cloneElement(a,{onExited:n.bind(null,a),in:!0,appear:ho(a,"appear",e),enter:ho(a,"enter",e),exit:ho(a,"exit",e)})})}function z4(e,n,a){var o=lm(e.children),s=N4(n,o);return Object.keys(s).forEach(function(c){var u=s[c];if(v.isValidElement(u)){var d=c in n,h=c in o,g=n[c],y=v.isValidElement(g)&&!g.props.in;h&&(!d||y)?s[c]=v.cloneElement(u,{onExited:a.bind(null,u),in:!0,exit:ho(u,"exit",e),enter:ho(u,"enter",e)}):!h&&d&&!y?s[c]=v.cloneElement(u,{in:!1}):h&&d&&v.isValidElement(g)&&(s[c]=v.cloneElement(u,{onExited:a.bind(null,u),in:g.props.in,exit:ho(u,"exit",e),enter:ho(u,"enter",e)}))}}),s}var D4=Object.values||function(e){return Object.keys(e).map(function(n){return e[n]})},L4={component:"div",childFactory:function(n){return n}},cm=function(e){lS(n,e);function n(o,s){var c;c=e.call(this,o,s)||this;var u=c.handleExited.bind(O4(c));return c.state={contextValue:{isMounting:!0},handleExited:u,firstRender:!0},c}var a=n.prototype;return a.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},a.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(s,c){var u=c.children,d=c.handleExited,h=c.firstRender;return{children:h?_4(s,d):z4(s,u,d),firstRender:!1}},a.handleExited=function(s,c){var u=lm(this.props.children);s.key in u||(s.props.onExited&&s.props.onExited(c),this.mounted&&this.setState(function(d){var h=eu({},d.children);return delete h[s.key],{children:h}}))},a.render=function(){var s=this.props,c=s.component,u=s.childFactory,d=sS(s,["component","childFactory"]),h=this.state.contextValue,g=D4(this.state.children).map(u);return delete d.appear,delete d.enter,delete d.exit,c===null?we.createElement(ou.Provider,{value:h},g):we.createElement(ou.Provider,{value:h},we.createElement(c,d,g))},n}(we.Component);cm.propTypes={};cm.defaultProps=L4;const kv={};function cS(e,n){const a=v.useRef(kv);return a.current===kv&&(a.current=e(n)),a}const P4=[];function $4(e){v.useEffect(e,P4)}class um{static create(){return new um}currentId=null;start(n,a){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,a()},n)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Iu(){const e=cS(um.create).current;return $4(e.disposeEffect),e}const dm=e=>e.scrollTop;function Ba(e,n){const{timeout:a,easing:o,style:s={}}=e;return{duration:s.transitionDuration??(typeof a=="number"?a:a[n.mode]||0),easing:s.transitionTimingFunction??(typeof o=="object"?o[n.mode]:o),delay:s.transitionDelay}}function B4(e){return ke("MuiCollapse",e)}Oe("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const I4=e=>{const{orientation:n,classes:a}=e,o={root:["root",`${n}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${n}`],wrapperInner:["wrapperInner",`${n}`]};return Ne(o,B4,a)},F4=fe("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[a.orientation],a.state==="entered"&&n.entered,a.state==="exited"&&!a.in&&a.collapsedSize==="0px"&&n.hidden]}})($e(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:n})=>n.state==="exited"&&!n.in&&n.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),U4=fe("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),H4=fe("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),iu=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiCollapse"}),{addEndListener:s,children:c,className:u,collapsedSize:d="0px",component:h,easing:g,in:y,onEnter:b,onEntered:x,onEntering:E,onExit:S,onExited:w,onExiting:T,orientation:M="vertical",style:j,timeout:O=$1.standard,TransitionComponent:N=ir,...A}=o,z={...o,orientation:M,collapsedSize:d},L=I4(z),B=sa(),V=Iu(),X=v.useRef(null),Z=v.useRef(),R=typeof d=="number"?`${d}px`:d,G=M==="horizontal",F=G?"width":"height",q=v.useRef(null),D=Gt(a,q),I=ae=>Ee=>{if(ae){const Ae=q.current;Ee===void 0?ae(Ae):ae(Ae,Ee)}},H=()=>X.current?X.current[G?"clientWidth":"clientHeight"]:0,W=I((ae,Ee)=>{X.current&&G&&(X.current.style.position="absolute"),ae.style[F]=R,b&&b(ae,Ee)}),_=I((ae,Ee)=>{const Ae=H();X.current&&G&&(X.current.style.position="");const{duration:Ie,easing:je}=Ba({style:j,timeout:O,easing:g},{mode:"enter"});if(O==="auto"){const Ue=B.transitions.getAutoHeightDuration(Ae);ae.style.transitionDuration=`${Ue}ms`,Z.current=Ue}else ae.style.transitionDuration=typeof Ie=="string"?Ie:`${Ie}ms`;ae.style[F]=`${Ae}px`,ae.style.transitionTimingFunction=je,E&&E(ae,Ee)}),J=I((ae,Ee)=>{ae.style[F]="auto",x&&x(ae,Ee)}),ue=I(ae=>{ae.style[F]=`${H()}px`,S&&S(ae)}),oe=I(w),pe=I(ae=>{const Ee=H(),{duration:Ae,easing:Ie}=Ba({style:j,timeout:O,easing:g},{mode:"exit"});if(O==="auto"){const je=B.transitions.getAutoHeightDuration(Ee);ae.style.transitionDuration=`${je}ms`,Z.current=je}else ae.style.transitionDuration=typeof Ae=="string"?Ae:`${Ae}ms`;ae.style[F]=R,ae.style.transitionTimingFunction=Ie,T&&T(ae)}),be=ae=>{O==="auto"&&V.start(Z.current||0,ae),s&&s(q.current,ae)};return p.jsx(N,{in:y,onEnter:W,onEntered:J,onEntering:_,onExit:ue,onExited:oe,onExiting:pe,addEndListener:be,nodeRef:q,timeout:O==="auto"?null:O,...A,children:(ae,{ownerState:Ee,...Ae})=>p.jsx(F4,{as:h,className:Ce(L.root,u,{entered:L.entered,exited:!y&&R==="0px"&&L.hidden}[ae]),style:{[G?"minWidth":"minHeight"]:R,...j},ref:D,ownerState:{...z,state:ae},...Ae,children:p.jsx(U4,{ownerState:{...z,state:ae},className:L.wrapper,ref:X,children:p.jsx(H4,{ownerState:{...z,state:ae},className:L.wrapperInner,children:c})})})})});iu&&(iu.muiSupportAuto=!0);function V4(e){return ke("MuiPaper",e)}Oe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const q4=e=>{const{square:n,elevation:a,variant:o,classes:s}=e,c={root:["root",o,!n&&"rounded",o==="elevation"&&`elevation${a}`]};return Ne(c,V4,s)},G4=fe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[a.variant],!a.square&&n.rounded,a.variant==="elevation"&&n[`elevation${a.elevation}`]]}})($e(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:n})=>!n.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),An=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiPaper"}),s=sa(),{className:c,component:u="div",elevation:d=1,square:h=!1,variant:g="elevation",...y}=o,b={...o,component:u,elevation:d,square:h,variant:g},x=q4(b);return p.jsx(G4,{as:u,ownerState:b,className:Ce(x.root,c),ref:a,...y,style:{...g==="elevation"&&{"--Paper-shadow":(s.vars||s).shadows[d],...s.vars&&{"--Paper-overlay":s.vars.overlays?.[d]},...!s.vars&&s.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${il("#fff",ah(d))}, ${il("#fff",ah(d))})`}},...y.style}})});function Ri(e){return typeof e=="string"}function uS(e,n,a){return e===void 0||Ri(e)?n:{...n,ownerState:{...n.ownerState,...a}}}function dS(e,n,a){return typeof e=="function"?e(n,a):e}function su(e,n=[]){if(e===void 0)return{};const a={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!n.includes(o)).forEach(o=>{a[o]=e[o]}),a}function Ov(e){if(e===void 0)return{};const n={};return Object.keys(e).filter(a=>!(a.match(/^on[A-Z]/)&&typeof e[a]=="function")).forEach(a=>{n[a]=e[a]}),n}function fS(e){const{getSlotProps:n,additionalProps:a,externalSlotProps:o,externalForwardedProps:s,className:c}=e;if(!n){const E=Ce(a?.className,c,s?.className,o?.className),S={...a?.style,...s?.style,...o?.style},w={...a,...s,...o};return E.length>0&&(w.className=E),Object.keys(S).length>0&&(w.style=S),{props:w,internalRef:void 0}}const u=su({...s,...o}),d=Ov(o),h=Ov(s),g=n(u),y=Ce(g?.className,a?.className,c,s?.className,o?.className),b={...g?.style,...a?.style,...s?.style,...o?.style},x={...g,...a,...h,...d};return y.length>0&&(x.className=y),Object.keys(b).length>0&&(x.style=b),{props:x,internalRef:g.ref}}function He(e,n){const{className:a,elementType:o,ownerState:s,externalForwardedProps:c,internalForwardedProps:u,shouldForwardComponentProp:d=!1,...h}=n,{component:g,slots:y={[e]:void 0},slotProps:b={[e]:void 0},...x}=c,E=y[e]||o,S=dS(b[e],s),{props:{component:w,...T},internalRef:M}=fS({className:a,...h,externalForwardedProps:e==="root"?x:void 0,externalSlotProps:S}),j=Gt(M,S?.ref,n.ref),O=e==="root"?w||g:w,N=uS(E,{...e==="root"&&!g&&!y[e]&&u,...e!=="root"&&!y[e]&&u,...T,...O&&!d&&{as:O},...O&&d&&{component:O},ref:j},s);return[E,N]}function lu(e){try{return e.matches(":focus-visible")}catch{}return!1}class cu{static create(){return new cu}static use(){const n=cS(cu.create).current,[a,o]=v.useState(!1);return n.shouldMount=a,n.setShouldMount=o,v.useEffect(n.mountEffect,[a]),n}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Y4(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...n){this.mount().then(()=>this.ref.current?.start(...n))}stop(...n){this.mount().then(()=>this.ref.current?.stop(...n))}pulsate(...n){this.mount().then(()=>this.ref.current?.pulsate(...n))}}function W4(){return cu.use()}function Y4(){let e,n;const a=new Promise((o,s)=>{e=o,n=s});return a.resolve=e,a.reject=n,a}function K4(e){const{className:n,classes:a,pulsate:o=!1,rippleX:s,rippleY:c,rippleSize:u,in:d,onExited:h,timeout:g}=e,[y,b]=v.useState(!1),x=Ce(n,a.ripple,a.rippleVisible,o&&a.ripplePulsate),E={width:u,height:u,top:-(u/2)+c,left:-(u/2)+s},S=Ce(a.child,y&&a.childLeaving,o&&a.childPulsate);return!d&&!y&&b(!0),v.useEffect(()=>{if(!d&&h!=null){const w=setTimeout(h,g);return()=>{clearTimeout(w)}}},[h,d,g]),p.jsx("span",{className:x,style:E,children:p.jsx("span",{className:S})})}const Qn=Oe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),uh=550,Q4=80,X4=ar`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
`,Z4=ar`
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
`,J4=ar`
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
`,eA=fe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),tA=fe(K4,{name:"MuiTouchRipple",slot:"Ripple"})`
  opacity: 0;
  position: absolute;

  &.${Qn.rippleVisible} {
    opacity: 0.3;
    transform: scale(1);
    animation-name: ${X4};
    animation-duration: ${uh}ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
  }

  &.${Qn.ripplePulsate} {
    animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
  }

  & .${Qn.child} {
    opacity: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: currentColor;
  }

  & .${Qn.childLeaving} {
    opacity: 0;
    animation-name: ${Z4};
    animation-duration: ${uh}ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
  }

  & .${Qn.childPulsate} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${J4};
    animation-duration: 2500ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`,nA=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiTouchRipple"}),{center:s=!1,classes:c={},className:u,...d}=o,[h,g]=v.useState([]),y=v.useRef(0),b=v.useRef(null);v.useEffect(()=>{b.current&&(b.current(),b.current=null)},[h]);const x=v.useRef(!1),E=Iu(),S=v.useRef(null),w=v.useRef(null),T=v.useCallback(N=>{const{pulsate:A,rippleX:z,rippleY:L,rippleSize:B,cb:V}=N;g(X=>[...X,p.jsx(tA,{classes:{ripple:Ce(c.ripple,Qn.ripple),rippleVisible:Ce(c.rippleVisible,Qn.rippleVisible),ripplePulsate:Ce(c.ripplePulsate,Qn.ripplePulsate),child:Ce(c.child,Qn.child),childLeaving:Ce(c.childLeaving,Qn.childLeaving),childPulsate:Ce(c.childPulsate,Qn.childPulsate)},timeout:uh,pulsate:A,rippleX:z,rippleY:L,rippleSize:B},y.current)]),y.current+=1,b.current=V},[c]),M=v.useCallback((N={},A={},z=()=>{})=>{const{pulsate:L=!1,center:B=s||A.pulsate,fakeElement:V=!1}=A;if(N?.type==="mousedown"&&x.current){x.current=!1;return}N?.type==="touchstart"&&(x.current=!0);const X=V?null:w.current,Z=X?X.getBoundingClientRect():{width:0,height:0,left:0,top:0};let R,G,F;if(B||N===void 0||N.clientX===0&&N.clientY===0||!N.clientX&&!N.touches)R=Math.round(Z.width/2),G=Math.round(Z.height/2);else{const{clientX:q,clientY:D}=N.touches&&N.touches.length>0?N.touches[0]:N;R=Math.round(q-Z.left),G=Math.round(D-Z.top)}if(B)F=Math.sqrt((2*Z.width**2+Z.height**2)/3),F%2===0&&(F+=1);else{const q=Math.max(Math.abs((X?X.clientWidth:0)-R),R)*2+2,D=Math.max(Math.abs((X?X.clientHeight:0)-G),G)*2+2;F=Math.sqrt(q**2+D**2)}N?.touches?S.current===null&&(S.current=()=>{T({pulsate:L,rippleX:R,rippleY:G,rippleSize:F,cb:z})},E.start(Q4,()=>{S.current&&(S.current(),S.current=null)})):T({pulsate:L,rippleX:R,rippleY:G,rippleSize:F,cb:z})},[s,T,E]),j=v.useCallback(()=>{M({},{pulsate:!0})},[M]),O=v.useCallback((N,A)=>{if(E.clear(),N?.type==="touchend"&&S.current){S.current(),S.current=null,E.start(0,()=>{O(N,A)});return}S.current=null,g(z=>z.length>0?z.slice(1):z),b.current=A},[E]);return v.useImperativeHandle(a,()=>({pulsate:j,start:M,stop:O}),[j,M,O]),p.jsx(eA,{className:Ce(Qn.root,c.root,u),ref:w,...d,children:p.jsx(cm,{component:null,exit:!0,children:h})})});function rA(e){return ke("MuiButtonBase",e)}const aA=Oe("MuiButtonBase",["root","disabled","focusVisible"]),oA=e=>{const{disabled:n,focusVisible:a,focusVisibleClassName:o,classes:s}=e,u=Ne({root:["root",n&&"disabled",a&&"focusVisible"]},rA,s);return a&&o&&(u.root+=` ${o}`),u},iA=fe("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${aA.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ti=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiButtonBase"}),{action:s,centerRipple:c=!1,children:u,className:d,component:h="button",disabled:g=!1,disableRipple:y=!1,disableTouchRipple:b=!1,focusRipple:x=!1,focusVisibleClassName:E,LinkComponent:S="a",onBlur:w,onClick:T,onContextMenu:M,onDragLeave:j,onFocus:O,onFocusVisible:N,onKeyDown:A,onKeyUp:z,onMouseDown:L,onMouseLeave:B,onMouseUp:V,onTouchEnd:X,onTouchMove:Z,onTouchStart:R,tabIndex:G=0,TouchRippleProps:F,touchRippleRef:q,type:D,...I}=o,H=v.useRef(null),W=W4(),_=Gt(W.ref,q),[J,ue]=v.useState(!1);g&&J&&ue(!1),v.useImperativeHandle(s,()=>({focusVisible:()=>{ue(!0),H.current.focus()}}),[]);const oe=W.shouldMount&&!y&&!g;v.useEffect(()=>{J&&x&&!y&&W.pulsate()},[y,x,J,W]);const pe=Zr(W,"start",L,b),be=Zr(W,"stop",M,b),ae=Zr(W,"stop",j,b),Ee=Zr(W,"stop",V,b),Ae=Zr(W,"stop",K=>{J&&K.preventDefault(),B&&B(K)},b),Ie=Zr(W,"start",R,b),je=Zr(W,"stop",X,b),Ue=Zr(W,"stop",Z,b),Ge=Zr(W,"stop",K=>{lu(K.target)||ue(!1),w&&w(K)},!1),Ye=Nr(K=>{H.current||(H.current=K.currentTarget),lu(K.target)&&(ue(!0),N&&N(K)),O&&O(K)}),De=()=>{const K=H.current;return h&&h!=="button"&&!(K.tagName==="A"&&K.href)},nt=Nr(K=>{x&&!K.repeat&&J&&K.key===" "&&W.stop(K,()=>{W.start(K)}),K.target===K.currentTarget&&De()&&K.key===" "&&K.preventDefault(),A&&A(K),K.target===K.currentTarget&&De()&&K.key==="Enter"&&!g&&(K.preventDefault(),T&&T(K))}),Yt=Nr(K=>{x&&K.key===" "&&J&&!K.defaultPrevented&&W.stop(K,()=>{W.pulsate(K)}),z&&z(K),T&&K.target===K.currentTarget&&De()&&K.key===" "&&!K.defaultPrevented&&T(K)});let it=h;it==="button"&&(I.href||I.to)&&(it=S);const wt={};it==="button"?(wt.type=D===void 0?"button":D,wt.disabled=g):(!I.href&&!I.to&&(wt.role="button"),g&&(wt["aria-disabled"]=g));const mt=Gt(a,H),$={...o,centerRipple:c,component:h,disabled:g,disableRipple:y,disableTouchRipple:b,focusRipple:x,tabIndex:G,focusVisible:J},Y=oA($);return p.jsxs(iA,{as:it,className:Ce(Y.root,d),ownerState:$,onBlur:Ge,onClick:T,onContextMenu:be,onFocus:Ye,onKeyDown:nt,onKeyUp:Yt,onMouseDown:pe,onMouseLeave:Ae,onMouseUp:Ee,onDragLeave:ae,onTouchEnd:je,onTouchMove:Ue,onTouchStart:Ie,ref:mt,tabIndex:g?-1:G,type:D,...wt,...I,children:[u,oe?p.jsx(nA,{ref:_,center:c,...F}):null]})});function Zr(e,n,a,o=!1){return Nr(s=>(a&&a(s),o||e[n](s),!0))}function sA(e){return typeof e.main=="string"}function lA(e,n=[]){if(!sA(e))return!1;for(const a of n)if(!e.hasOwnProperty(a)||typeof e[a]!="string")return!1;return!0}function At(e=[]){return([,n])=>n&&lA(n,e)}function cA(e){return ke("MuiAlert",e)}const Nv=Oe("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function uA(e){return ke("MuiCircularProgress",e)}Oe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Oa=44,dh=ar`
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
`,fh=ar`
  0% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -15px;
  }

  100% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: -126px;
  }
`,dA=typeof dh!="string"?Fa`
        animation: ${dh} 1.4s linear infinite;
      `:null,fA=typeof fh!="string"?Fa`
        animation: ${fh} 1.4s ease-in-out infinite;
      `:null,pA=e=>{const{classes:n,variant:a,color:o,disableShrink:s}=e,c={root:["root",a,`color${he(o)}`],svg:["svg"],circle:["circle",`circle${he(a)}`,s&&"circleDisableShrink"]};return Ne(c,uA,n)},hA=fe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[a.variant],n[`color${he(a.color)}`]]}})($e(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:dA||{animation:`${dh} 1.4s linear infinite`}},...Object.entries(e.palette).filter(At()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}}))]}))),mA=fe("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),gA=fe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.circle,n[`circle${he(a.variant)}`],a.disableShrink&&n.circleDisableShrink]}})($e(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:n})=>n.variant==="indeterminate"&&!n.disableShrink,style:fA||{animation:`${fh} 1.4s ease-in-out infinite`}}]}))),nr=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiCircularProgress"}),{className:s,color:c="primary",disableShrink:u=!1,size:d=40,style:h,thickness:g=3.6,value:y=0,variant:b="indeterminate",...x}=o,E={...o,color:c,disableShrink:u,size:d,thickness:g,value:y,variant:b},S=pA(E),w={},T={},M={};if(b==="determinate"){const j=2*Math.PI*((Oa-g)/2);w.strokeDasharray=j.toFixed(3),M["aria-valuenow"]=Math.round(y),w.strokeDashoffset=`${((100-y)/100*j).toFixed(3)}px`,T.transform="rotate(-90deg)"}return p.jsx(hA,{className:Ce(S.root,s),style:{width:d,height:d,...T,...h},ownerState:E,ref:a,role:"progressbar",...M,...x,children:p.jsx(mA,{className:S.svg,ownerState:E,viewBox:`${Oa/2} ${Oa/2} ${Oa} ${Oa}`,children:p.jsx(gA,{className:S.circle,style:w,ownerState:E,cx:Oa,cy:Oa,r:(Oa-g)/2,fill:"none",strokeWidth:g})})})});function yA(e){return ke("MuiIconButton",e)}const _v=Oe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),bA=e=>{const{classes:n,disabled:a,color:o,edge:s,size:c,loading:u}=e,d={root:["root",u&&"loading",a&&"disabled",o!=="default"&&`color${he(o)}`,s&&`edge${he(s)}`,`size${he(c)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Ne(d,yA,n)},vA=fe(Ti,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,a.loading&&n.loading,a.color!=="default"&&n[`color${he(a.color)}`],a.edge&&n[`edge${he(a.edge)}`],n[`size${he(a.size)}`]]}})($e(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:n=>!n.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),$e(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(At()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(e.palette).filter(At()).map(([n])=>({props:{color:n},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${_v.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${_v.loading}`]:{color:"transparent"}}))),xA=fe("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),zr=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiIconButton"}),{edge:s=!1,children:c,className:u,color:d="default",disabled:h=!1,disableFocusRipple:g=!1,size:y="medium",id:b,loading:x=null,loadingIndicator:E,...S}=o,w=Ni(b),T=E??p.jsx(nr,{"aria-labelledby":w,color:"inherit",size:16}),M={...o,edge:s,color:d,disabled:h,disableFocusRipple:g,loading:x,loadingIndicator:T,size:y},j=bA(M);return p.jsxs(vA,{id:x?w:b,className:Ce(j.root,u),centerRipple:!0,focusRipple:!g,disabled:h||x,ref:a,...S,ownerState:M,children:[typeof x=="boolean"&&p.jsx("span",{className:j.loadingWrapper,style:{display:"contents"},children:p.jsx(xA,{className:j.loadingIndicator,ownerState:M,children:x&&T})}),c]})}),SA=tt(p.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),CA=tt(p.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),wA=tt(p.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),EA=tt(p.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),RA=tt(p.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),TA=e=>{const{variant:n,color:a,severity:o,classes:s}=e,c={root:["root",`color${he(a||o)}`,`${n}${he(a||o)}`,`${n}`],icon:["icon"],message:["message"],action:["action"]};return Ne(c,cA,s)},AA=fe(An,{name:"MuiAlert",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[a.variant],n[`${a.variant}${he(a.color||a.severity)}`]]}})($e(({theme:e})=>{const n=e.palette.mode==="light"?e.darken:e.lighten,a=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(At(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:a(e.palette[o].light,.9),[`& .${Nv.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(At(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${Nv.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(At(["dark"])).map(([o])=>({props:{colorSeverity:o,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}}}))]}})),jA=fe("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),MA=fe("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),kA=fe("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),zv={success:p.jsx(SA,{fontSize:"inherit"}),warning:p.jsx(CA,{fontSize:"inherit"}),error:p.jsx(wA,{fontSize:"inherit"}),info:p.jsx(EA,{fontSize:"inherit"})},sn=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiAlert"}),{action:s,children:c,className:u,closeText:d="Close",color:h,components:g={},componentsProps:y={},icon:b,iconMapping:x=zv,onClose:E,role:S="alert",severity:w="success",slotProps:T={},slots:M={},variant:j="standard",...O}=o,N={...o,color:h,severity:w,variant:j,colorSeverity:h||w},A=TA(N),z={slots:{closeButton:g.CloseButton,closeIcon:g.CloseIcon,...M},slotProps:{...y,...T}},[L,B]=He("root",{ref:a,shouldForwardComponentProp:!0,className:Ce(A.root,u),elementType:AA,externalForwardedProps:{...z,...O},ownerState:N,additionalProps:{role:S,elevation:0}}),[V,X]=He("icon",{className:A.icon,elementType:jA,externalForwardedProps:z,ownerState:N}),[Z,R]=He("message",{className:A.message,elementType:MA,externalForwardedProps:z,ownerState:N}),[G,F]=He("action",{className:A.action,elementType:kA,externalForwardedProps:z,ownerState:N}),[q,D]=He("closeButton",{elementType:zr,externalForwardedProps:z,ownerState:N}),[I,H]=He("closeIcon",{elementType:RA,externalForwardedProps:z,ownerState:N});return p.jsxs(L,{...B,children:[b!==!1?p.jsx(V,{...X,children:b||x[w]||zv[w]}):null,p.jsx(Z,{...R,children:c}),s!=null?p.jsx(G,{...F,children:s}):null,s==null&&E?p.jsx(G,{...F,children:p.jsx(q,{size:"small","aria-label":d,title:d,color:"inherit",onClick:E,...D,children:p.jsx(I,{fontSize:"small",...H})})}):null]})});function OA(e){return ke("MuiTypography",e)}const Dv=Oe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),NA={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},_A=l4(),zA=e=>{const{align:n,gutterBottom:a,noWrap:o,paragraph:s,variant:c,classes:u}=e,d={root:["root",c,e.align!=="inherit"&&`align${he(n)}`,a&&"gutterBottom",o&&"noWrap",s&&"paragraph"]};return Ne(d,OA,u)},DA=fe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,a.variant&&n[a.variant],a.align!=="inherit"&&n[`align${he(a.align)}`],a.noWrap&&n.noWrap,a.gutterBottom&&n.gutterBottom,a.paragraph&&n.paragraph]}})($e(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,a])=>n!=="inherit"&&a&&typeof a=="object").map(([n,a])=>({props:{variant:n},style:a})),...Object.entries(e.palette).filter(At()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(e.palette?.text||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${he(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}))),Lv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},se=v.forwardRef(function(n,a){const{color:o,...s}=ze({props:n,name:"MuiTypography"}),c=!NA[o],u=_A({...s,...c&&{color:o}}),{align:d="inherit",className:h,component:g,gutterBottom:y=!1,noWrap:b=!1,paragraph:x=!1,variant:E="body1",variantMapping:S=Lv,...w}=u,T={...u,align:d,color:o,className:h,component:g,gutterBottom:y,noWrap:b,paragraph:x,variant:E,variantMapping:S},M=g||(x?"p":S[E]||Lv[E])||"span",j=zA(T);return p.jsx(DA,{as:M,ref:a,className:Ce(j.root,h),...w,ownerState:T,style:{...d!=="inherit"&&{"--Typography-textAlign":d},...w.style}})});function LA(e){return ke("MuiAppBar",e)}Oe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const PA=e=>{const{color:n,position:a,classes:o}=e,s={root:["root",`color${he(n)}`,`position${he(a)}`]};return Ne(s,LA,o)},Pv=(e,n)=>e?`${e?.replace(")","")}, ${n})`:n,$A=fe(An,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[`position${he(a.position)}`],n[`color${he(a.color)}`]]}})($e(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(At(["contrastText"])).map(([n])=>({props:{color:n},style:{"--AppBar-background":(e.vars??e).palette[n].main,"--AppBar-color":(e.vars??e).palette[n].contrastText}})),{props:n=>n.enableColorOnDark===!0&&!["inherit","transparent"].includes(n.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:n=>n.enableColorOnDark===!1&&!["inherit","transparent"].includes(n.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?Pv(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?Pv(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),BA=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiAppBar"}),{className:s,color:c="primary",enableColorOnDark:u=!1,position:d="fixed",...h}=o,g={...o,color:c,position:d,enableColorOnDark:u},y=PA(g);return p.jsx($A,{square:!0,component:"header",ownerState:g,elevation:4,className:Ce(y.root,s,d==="fixed"&&"mui-fixed"),ref:a,...h})});function IA(e){const{elementType:n,externalSlotProps:a,ownerState:o,skipResolvingSlotProps:s=!1,...c}=e,u=s?{}:dS(a,o),{props:d,internalRef:h}=fS({...c,externalSlotProps:u}),g=Gt(h,u?.ref,e.additionalProps?.ref);return uS(n,{...d,ref:g},o)}function Co(e){return parseInt(v.version,10)>=19?e?.props?.ref||null:e?.ref||null}function FA(e){return typeof e=="function"?e():e}const UA=v.forwardRef(function(n,a){const{children:o,container:s,disablePortal:c=!1}=n,[u,d]=v.useState(null),h=Gt(v.isValidElement(o)?Co(o):null,a);if(_r(()=>{c||d(FA(s)||document.body)},[s,c]),_r(()=>{if(u&&!c)return jv(a,u),()=>{jv(a,null)}},[a,u,c]),c){if(v.isValidElement(o)){const g={ref:h};return v.cloneElement(o,g)}return o}return u&&Jx.createPortal(o,u)}),HA=tt(p.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function VA(e){return ke("MuiChip",e)}const et=Oe("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),qA=e=>{const{classes:n,disabled:a,size:o,color:s,iconColor:c,onDelete:u,clickable:d,variant:h}=e,g={root:["root",h,a&&"disabled",`size${he(o)}`,`color${he(s)}`,d&&"clickable",d&&`clickableColor${he(s)}`,u&&"deletable",u&&`deletableColor${he(s)}`,`${h}${he(s)}`],label:["label",`label${he(o)}`],avatar:["avatar",`avatar${he(o)}`,`avatarColor${he(s)}`],icon:["icon",`icon${he(o)}`,`iconColor${he(c)}`],deleteIcon:["deleteIcon",`deleteIcon${he(o)}`,`deleteIconColor${he(s)}`,`deleteIcon${he(h)}Color${he(s)}`]};return Ne(g,VA,n)},GA=fe("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e,{color:o,iconColor:s,clickable:c,onDelete:u,size:d,variant:h}=a;return[{[`& .${et.avatar}`]:n.avatar},{[`& .${et.avatar}`]:n[`avatar${he(d)}`]},{[`& .${et.avatar}`]:n[`avatarColor${he(o)}`]},{[`& .${et.icon}`]:n.icon},{[`& .${et.icon}`]:n[`icon${he(d)}`]},{[`& .${et.icon}`]:n[`iconColor${he(s)}`]},{[`& .${et.deleteIcon}`]:n.deleteIcon},{[`& .${et.deleteIcon}`]:n[`deleteIcon${he(d)}`]},{[`& .${et.deleteIcon}`]:n[`deleteIconColor${he(o)}`]},{[`& .${et.deleteIcon}`]:n[`deleteIcon${he(h)}Color${he(o)}`]},n.root,n[`size${he(d)}`],n[`color${he(o)}`],c&&n.clickable,c&&o!=="default"&&n[`clickableColor${he(o)})`],u&&n.deletable,u&&o!=="default"&&n[`deletableColor${he(o)}`],n[h],n[`${h}${he(o)}`]]}})($e(({theme:e})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${et.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${et.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${et.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${et.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${et.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${et.icon}`]:{marginLeft:5,marginRight:-6},[`& .${et.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${et.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${et.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(At(["contrastText"])).map(([a])=>({props:{color:a},style:{backgroundColor:(e.vars||e).palette[a].main,color:(e.vars||e).palette[a].contrastText,[`& .${et.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[a].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[a].contrastText}}}})),{props:a=>a.iconColor===a.color,style:{[`& .${et.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:n}}},{props:a=>a.iconColor===a.color&&a.color!=="default",style:{[`& .${et.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${et.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(At(["dark"])).map(([a])=>({props:{color:a,onDelete:!0},style:{[`&.${et.focusVisible}`]:{background:(e.vars||e).palette[a].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${et.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(At(["dark"])).map(([a])=>({props:{color:a,clickable:!0},style:{[`&:hover, &.${et.focusVisible}`]:{backgroundColor:(e.vars||e).palette[a].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${et.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${et.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${et.avatar}`]:{marginLeft:4},[`& .${et.avatarSmall}`]:{marginLeft:2},[`& .${et.icon}`]:{marginLeft:4},[`& .${et.iconSmall}`]:{marginLeft:2},[`& .${et.deleteIcon}`]:{marginRight:5},[`& .${et.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(At()).map(([a])=>({props:{variant:"outlined",color:a},style:{color:(e.vars||e).palette[a].main,border:`1px solid ${e.alpha((e.vars||e).palette[a].main,.7)}`,[`&.${et.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[a].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${et.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[a].main,(e.vars||e).palette.action.focusOpacity)},[`& .${et.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[a].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[a].main}}}}))]}})),WA=fe("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,n)=>{const{ownerState:a}=e,{size:o}=a;return[n.label,n[`label${he(o)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function $v(e){return e.key==="Backspace"||e.key==="Delete"}const fm=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiChip"}),{avatar:s,className:c,clickable:u,color:d="default",component:h,deleteIcon:g,disabled:y=!1,icon:b,label:x,onClick:E,onDelete:S,onKeyDown:w,onKeyUp:T,size:M="medium",variant:j="filled",tabIndex:O,skipFocusWhenDisabled:N=!1,slots:A={},slotProps:z={},...L}=o,B=v.useRef(null),V=Gt(B,a),X=ae=>{ae.stopPropagation(),S&&S(ae)},Z=ae=>{ae.currentTarget===ae.target&&$v(ae)&&ae.preventDefault(),w&&w(ae)},R=ae=>{ae.currentTarget===ae.target&&S&&$v(ae)&&S(ae),T&&T(ae)},G=u!==!1&&E?!0:u,F=G||S?Ti:h||"div",q={...o,component:F,disabled:y,size:M,color:d,iconColor:v.isValidElement(b)&&b.props.color||d,onDelete:!!S,clickable:G,variant:j},D=qA(q),I=F===Ti?{component:h||"div",focusVisibleClassName:D.focusVisible,...S&&{disableRipple:!0}}:{};let H=null;S&&(H=g&&v.isValidElement(g)?v.cloneElement(g,{className:Ce(g.props.className,D.deleteIcon),onClick:X}):p.jsx(HA,{className:D.deleteIcon,onClick:X}));let W=null;s&&v.isValidElement(s)&&(W=v.cloneElement(s,{className:Ce(D.avatar,s.props.className)}));let _=null;b&&v.isValidElement(b)&&(_=v.cloneElement(b,{className:Ce(D.icon,b.props.className)}));const J={slots:A,slotProps:z},[ue,oe]=He("root",{elementType:GA,externalForwardedProps:{...J,...L},ownerState:q,shouldForwardComponentProp:!0,ref:V,className:Ce(D.root,c),additionalProps:{disabled:G&&y?!0:void 0,tabIndex:N&&y?-1:O,...I},getSlotProps:ae=>({...ae,onClick:Ee=>{ae.onClick?.(Ee),E?.(Ee)},onKeyDown:Ee=>{ae.onKeyDown?.(Ee),Z(Ee)},onKeyUp:Ee=>{ae.onKeyUp?.(Ee),R(Ee)}})}),[pe,be]=He("label",{elementType:WA,externalForwardedProps:J,ownerState:q,className:D.label});return p.jsxs(ue,{as:F,...oe,children:[W||_,p.jsx(pe,{...be,children:x}),H]})});function Pc(e){return parseInt(e,10)||0}const YA={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function KA(e){for(const n in e)return!1;return!0}function Bv(e){return KA(e)||e.outerHeightStyle===0&&!e.overflowing}const QA=v.forwardRef(function(n,a){const{onChange:o,maxRows:s,minRows:c=1,style:u,value:d,...h}=n,{current:g}=v.useRef(d!=null),y=v.useRef(null),b=Gt(a,y),x=v.useRef(null),E=v.useRef(null),S=v.useCallback(()=>{const O=y.current,N=E.current;if(!O||!N)return;const z=hr(O).getComputedStyle(O);if(z.width==="0px")return{outerHeightStyle:0,overflowing:!1};N.style.width=z.width,N.value=O.value||n.placeholder||"x",N.value.slice(-1)===`
`&&(N.value+=" ");const L=z.boxSizing,B=Pc(z.paddingBottom)+Pc(z.paddingTop),V=Pc(z.borderBottomWidth)+Pc(z.borderTopWidth),X=N.scrollHeight;N.value="x";const Z=N.scrollHeight;let R=X;c&&(R=Math.max(Number(c)*Z,R)),s&&(R=Math.min(Number(s)*Z,R)),R=Math.max(R,Z);const G=R+(L==="border-box"?B+V:0),F=Math.abs(R-X)<=1;return{outerHeightStyle:G,overflowing:F}},[s,c,n.placeholder]),w=Nr(()=>{const O=y.current,N=S();if(!O||!N||Bv(N))return!1;const A=N.outerHeightStyle;return x.current!=null&&x.current!==A}),T=v.useCallback(()=>{const O=y.current,N=S();if(!O||!N||Bv(N))return;const A=N.outerHeightStyle;x.current!==A&&(x.current=A,O.style.height=`${A}px`),O.style.overflow=N.overflowing?"hidden":""},[S]),M=v.useRef(-1);_r(()=>{const O=sm(T),N=y?.current;if(!N)return;const A=hr(N);A.addEventListener("resize",O);let z;return typeof ResizeObserver<"u"&&(z=new ResizeObserver(()=>{w()&&(z.unobserve(N),cancelAnimationFrame(M.current),T(),M.current=requestAnimationFrame(()=>{z.observe(N)}))}),z.observe(N)),()=>{O.clear(),cancelAnimationFrame(M.current),A.removeEventListener("resize",O),z&&z.disconnect()}},[S,T,w]),_r(()=>{T()});const j=O=>{g||T();const N=O.target,A=N.value.length,z=N.value.endsWith(`
`),L=N.selectionStart===A;z&&L&&N.setSelectionRange(A,A),o&&o(O)};return p.jsxs(v.Fragment,{children:[p.jsx("textarea",{value:d,onChange:j,ref:b,rows:c,style:u,...h}),p.jsx("textarea",{"aria-hidden":!0,className:n.className,readOnly:!0,ref:E,tabIndex:-1,style:{...YA.shadow,...u,paddingTop:0,paddingBottom:0}})]})});function wo({props:e,states:n,muiFormControl:a}){return n.reduce((o,s)=>(o[s]=e[s],a&&typeof e[s]>"u"&&(o[s]=a[s]),o),{})}const pm=v.createContext(void 0);function Ua(){return v.useContext(pm)}function Iv(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function uu(e,n=!1){return e&&(Iv(e.value)&&e.value!==""||n&&Iv(e.defaultValue)&&e.defaultValue!=="")}function XA(e){return e.startAdornment}function ZA(e){return ke("MuiInputBase",e)}const Ai=Oe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Fv;const Fu=(e,n)=>{const{ownerState:a}=e;return[n.root,a.formControl&&n.formControl,a.startAdornment&&n.adornedStart,a.endAdornment&&n.adornedEnd,a.error&&n.error,a.size==="small"&&n.sizeSmall,a.multiline&&n.multiline,a.color&&n[`color${he(a.color)}`],a.fullWidth&&n.fullWidth,a.hiddenLabel&&n.hiddenLabel]},Uu=(e,n)=>{const{ownerState:a}=e;return[n.input,a.size==="small"&&n.inputSizeSmall,a.multiline&&n.inputMultiline,a.type==="search"&&n.inputTypeSearch,a.startAdornment&&n.inputAdornedStart,a.endAdornment&&n.inputAdornedEnd,a.hiddenLabel&&n.inputHiddenLabel]},JA=e=>{const{classes:n,color:a,disabled:o,error:s,endAdornment:c,focused:u,formControl:d,fullWidth:h,hiddenLabel:g,multiline:y,readOnly:b,size:x,startAdornment:E,type:S}=e,w={root:["root",`color${he(a)}`,o&&"disabled",s&&"error",h&&"fullWidth",u&&"focused",d&&"formControl",x&&x!=="medium"&&`size${he(x)}`,y&&"multiline",E&&"adornedStart",c&&"adornedEnd",g&&"hiddenLabel",b&&"readOnly"],input:["input",o&&"disabled",S==="search"&&"inputTypeSearch",y&&"inputMultiline",x==="small"&&"inputSizeSmall",g&&"inputHiddenLabel",E&&"inputAdornedStart",c&&"inputAdornedEnd",b&&"readOnly"]};return Ne(w,ZA,n)},Hu=fe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Fu})($e(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ai.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:n})=>n.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:n,size:a})=>n.multiline&&a==="small",style:{paddingTop:1}},{props:({ownerState:n})=>n.fullWidth,style:{width:"100%"}}]}))),Vu=fe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Uu})($e(({theme:e})=>{const n=e.palette.mode==="light",a={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},s=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&::-ms-input-placeholder":a,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ai.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${Ai.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:c})=>!c.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:c})=>c.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Uv=om({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),hm=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:c,autoFocus:u,className:d,color:h,components:g={},componentsProps:y={},defaultValue:b,disabled:x,disableInjectingGlobalStyles:E,endAdornment:S,error:w,fullWidth:T=!1,id:M,inputComponent:j="input",inputProps:O={},inputRef:N,margin:A,maxRows:z,minRows:L,multiline:B=!1,name:V,onBlur:X,onChange:Z,onClick:R,onFocus:G,onKeyDown:F,onKeyUp:q,placeholder:D,readOnly:I,renderSuffix:H,rows:W,size:_,slotProps:J={},slots:ue={},startAdornment:oe,type:pe="text",value:be,...ae}=o,Ee=O.value!=null?O.value:be,{current:Ae}=v.useRef(Ee!=null),Ie=v.useRef(),je=v.useCallback(Xe=>{},[]),Ue=Gt(Ie,N,O.ref,je),[Ge,Ye]=v.useState(!1),De=Ua(),nt=wo({props:o,muiFormControl:De,states:["color","disabled","error","hiddenLabel","size","required","filled"]});nt.focused=De?De.focused:Ge,v.useEffect(()=>{!De&&x&&Ge&&(Ye(!1),X&&X())},[De,x,Ge,X]);const Yt=De&&De.onFilled,it=De&&De.onEmpty,wt=v.useCallback(Xe=>{uu(Xe)?Yt&&Yt():it&&it()},[Yt,it]);_r(()=>{Ae&&wt({value:Ee})},[Ee,wt,Ae]);const mt=Xe=>{G&&G(Xe),O.onFocus&&O.onFocus(Xe),De&&De.onFocus?De.onFocus(Xe):Ye(!0)},$=Xe=>{X&&X(Xe),O.onBlur&&O.onBlur(Xe),De&&De.onBlur?De.onBlur(Xe):Ye(!1)},Y=(Xe,...yr)=>{if(!Ae){const Mn=Xe.target||Ie.current;if(Mn==null)throw new Error(aa(1));wt({value:Mn.value})}O.onChange&&O.onChange(Xe,...yr),Z&&Z(Xe,...yr)};v.useEffect(()=>{wt(Ie.current)},[]);const K=Xe=>{Ie.current&&Xe.currentTarget===Xe.target&&Ie.current.focus(),R&&R(Xe)};let ve=j,ge=O;B&&ve==="input"&&(W?ge={type:void 0,minRows:W,maxRows:W,...ge}:ge={type:void 0,maxRows:z,minRows:L,...ge},ve=QA);const ye=Xe=>{wt(Xe.animationName==="mui-auto-fill-cancel"?Ie.current:{value:"x"})};v.useEffect(()=>{De&&De.setAdornedStart(!!oe)},[De,oe]);const Se={...o,color:nt.color||"primary",disabled:nt.disabled,endAdornment:S,error:nt.error,focused:nt.focused,formControl:De,fullWidth:T,hiddenLabel:nt.hiddenLabel,multiline:B,size:nt.size,startAdornment:oe,type:pe},Re=JA(Se),Le=ue.root||g.Root||Hu,Ve=J.root||y.root||{},Ft=ue.input||g.Input||Vu;return ge={...ge,...J.input??y.input},p.jsxs(v.Fragment,{children:[!E&&typeof Uv=="function"&&(Fv||(Fv=p.jsx(Uv,{}))),p.jsxs(Le,{...Ve,ref:a,onClick:K,...ae,...!Ri(Le)&&{ownerState:{...Se,...Ve.ownerState}},className:Ce(Re.root,Ve.className,d,I&&"MuiInputBase-readOnly"),children:[oe,p.jsx(pm.Provider,{value:null,children:p.jsx(Ft,{"aria-invalid":nt.error,"aria-describedby":s,autoComplete:c,autoFocus:u,defaultValue:b,disabled:nt.disabled,id:M,onAnimationStart:ye,name:V,placeholder:D,readOnly:I,required:nt.required,rows:W,value:Ee,onKeyDown:F,onKeyUp:q,type:pe,...ge,...!Ri(Ft)&&{as:ve,ownerState:{...Se,...ge.ownerState}},ref:Ue,className:Ce(Re.input,ge.className,I&&"MuiInputBase-readOnly"),onBlur:$,onChange:Y,onFocus:mt})}),S,H?H({...nt,startAdornment:oe}):null]})]})});function ej(e){return ke("MuiInput",e)}const Bs={...Ai,...Oe("MuiInput",["root","underline","input"])};function tj(e){return ke("MuiOutlinedInput",e)}const Er={...Ai,...Oe("MuiOutlinedInput",["root","notchedOutline","input"])};function nj(e){return ke("MuiFilledInput",e)}const lo={...Ai,...Oe("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},rj=tt(p.jsx("path",{d:"M7 10l5 5 5-5z"})),aj=tt(p.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}));function oj(e){return ke("MuiAvatar",e)}Oe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const ij=e=>{const{classes:n,variant:a,colorDefault:o}=e;return Ne({root:["root",a,o&&"colorDefault"],img:["img"],fallback:["fallback"]},oj,n)},sj=fe("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[a.variant],a.colorDefault&&n.colorDefault]}})($e(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),lj=fe("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),cj=fe(aj,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function uj({crossOrigin:e,referrerPolicy:n,src:a,srcSet:o}){const[s,c]=v.useState(!1);return v.useEffect(()=>{if(!a&&!o)return;c(!1);let u=!0;const d=new Image;return d.onload=()=>{u&&c("loaded")},d.onerror=()=>{u&&c("error")},d.crossOrigin=e,d.referrerPolicy=n,d.src=a,o&&(d.srcset=o),()=>{u=!1}},[e,n,a,o]),s}const pS=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiAvatar"}),{alt:s,children:c,className:u,component:d="div",slots:h={},slotProps:g={},imgProps:y,sizes:b,src:x,srcSet:E,variant:S="circular",...w}=o;let T=null;const M={...o,component:d,variant:S},j=uj({...y,...typeof g.img=="function"?g.img(M):g.img,src:x,srcSet:E}),O=x||E,N=O&&j!=="error";M.colorDefault=!N,delete M.ownerState;const A=ij(M),[z,L]=He("root",{ref:a,className:Ce(A.root,u),elementType:sj,externalForwardedProps:{slots:h,slotProps:g,component:d,...w},ownerState:M}),[B,V]=He("img",{className:A.img,elementType:lj,externalForwardedProps:{slots:h,slotProps:{img:{...y,...g.img}}},additionalProps:{alt:s,src:x,srcSet:E,sizes:b},ownerState:M}),[X,Z]=He("fallback",{className:A.fallback,elementType:cj,externalForwardedProps:{slots:h,slotProps:g},shouldForwardComponentProp:!0,ownerState:M});return N?T=p.jsx(B,{...V}):c||c===0?T=c:O&&s?T=s[0]:T=p.jsx(X,{...Z}),p.jsx(z,{...L,children:T})}),dj={entering:{opacity:1},entered:{opacity:1}},du=v.forwardRef(function(n,a){const o=sa(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:c,appear:u=!0,children:d,easing:h,in:g,onEnter:y,onEntered:b,onEntering:x,onExit:E,onExited:S,onExiting:w,style:T,timeout:M=s,TransitionComponent:j=ir,...O}=n,N=v.useRef(null),A=Gt(N,Co(d),a),z=F=>q=>{if(F){const D=N.current;q===void 0?F(D):F(D,q)}},L=z(x),B=z((F,q)=>{dm(F);const D=Ba({style:T,timeout:M,easing:h},{mode:"enter"});F.style.webkitTransition=o.transitions.create("opacity",D),F.style.transition=o.transitions.create("opacity",D),y&&y(F,q)}),V=z(b),X=z(w),Z=z(F=>{const q=Ba({style:T,timeout:M,easing:h},{mode:"exit"});F.style.webkitTransition=o.transitions.create("opacity",q),F.style.transition=o.transitions.create("opacity",q),E&&E(F)}),R=z(S),G=F=>{c&&c(N.current,F)};return p.jsx(j,{appear:u,in:g,nodeRef:N,onEnter:B,onEntered:V,onEntering:L,onExit:Z,onExited:R,onExiting:X,addEndListener:G,timeout:M,...O,children:(F,{ownerState:q,...D})=>v.cloneElement(d,{style:{opacity:0,visibility:F==="exited"&&!g?"hidden":void 0,...dj[F],...T,...d.props.style},ref:A,...D})})});function fj(e){return ke("MuiBackdrop",e)}Oe("MuiBackdrop",["root","invisible"]);const pj=e=>{const{classes:n,invisible:a}=e;return Ne({root:["root",a&&"invisible"]},fj,n)},hj=fe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,a.invisible&&n.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),mm=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiBackdrop"}),{children:s,className:c,component:u="div",invisible:d=!1,open:h,components:g={},componentsProps:y={},slotProps:b={},slots:x={},TransitionComponent:E,transitionDuration:S,...w}=o,T={...o,component:u,invisible:d},M=pj(T),j={transition:E,root:g.Root,...x},O={...y,...b},N={component:u,slots:j,slotProps:O},[A,z]=He("root",{elementType:hj,externalForwardedProps:N,className:Ce(M.root,c),ownerState:T}),[L,B]=He("transition",{elementType:du,externalForwardedProps:N,ownerState:T});return p.jsx(L,{in:h,timeout:S,...w,...B,children:p.jsx(A,{"aria-hidden":!0,...z,classes:M,ref:a,children:s})})}),mj=Oe("MuiBox",["root"]),gj=Bu(),le=bT({themeId:kr,defaultTheme:gj,defaultClassName:mj.root,generateClassName:x1.generate});function yj(e){return ke("MuiButton",e)}const co=Oe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),bj=v.createContext({}),vj=v.createContext(void 0),xj=e=>{const{color:n,disableElevation:a,fullWidth:o,size:s,variant:c,loading:u,loadingPosition:d,classes:h}=e,g={root:["root",u&&"loading",c,`${c}${he(n)}`,`size${he(s)}`,`${c}Size${he(s)}`,`color${he(n)}`,a&&"disableElevation",o&&"fullWidth",u&&`loadingPosition${he(d)}`],startIcon:["icon","startIcon",`iconSize${he(s)}`],endIcon:["icon","endIcon",`iconSize${he(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},y=Ne(g,yj,h);return{...h,...y}},hS=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Sj=fe(Ti,{shouldForwardProp:e=>jn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[a.variant],n[`${a.variant}${he(a.color)}`],n[`size${he(a.size)}`],n[`${a.variant}Size${he(a.size)}`],a.color==="inherit"&&n.colorInherit,a.disableElevation&&n.disableElevation,a.fullWidth&&n.fullWidth,a.loading&&n.loading]}})($e(({theme:e})=>{const n=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${co.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${co.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${co.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${co.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(At()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:n,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${co.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${co.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${co.loading}`]:{color:"transparent"}}}]}})),Cj=fe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.startIcon,a.loading&&n.startIconLoadingStart,n[`iconSize${he(a.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...hS]})),wj=fe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.endIcon,a.loading&&n.endIconLoadingEnd,n[`iconSize${he(a.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...hS]})),Ej=fe("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Hv=fe("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),qt=v.forwardRef(function(n,a){const o=v.useContext(bj),s=v.useContext(vj),c=ol(o,n),u=ze({props:c,name:"MuiButton"}),{children:d,color:h="primary",component:g="button",className:y,disabled:b=!1,disableElevation:x=!1,disableFocusRipple:E=!1,endIcon:S,focusVisibleClassName:w,fullWidth:T=!1,id:M,loading:j=null,loadingIndicator:O,loadingPosition:N="center",size:A="medium",startIcon:z,type:L,variant:B="text",...V}=u,X=Ni(M),Z=O??p.jsx(nr,{"aria-labelledby":X,color:"inherit",size:16}),R={...u,color:h,component:g,disabled:b,disableElevation:x,disableFocusRipple:E,fullWidth:T,loading:j,loadingIndicator:Z,loadingPosition:N,size:A,type:L,variant:B},G=xj(R),F=(z||j&&N==="start")&&p.jsx(Cj,{className:G.startIcon,ownerState:R,children:z||p.jsx(Hv,{className:G.loadingIconPlaceholder,ownerState:R})}),q=(S||j&&N==="end")&&p.jsx(wj,{className:G.endIcon,ownerState:R,children:S||p.jsx(Hv,{className:G.loadingIconPlaceholder,ownerState:R})}),D=s||"",I=typeof j=="boolean"?p.jsx("span",{className:G.loadingWrapper,style:{display:"contents"},children:j&&p.jsx(Ej,{className:G.loadingIndicator,ownerState:R,children:Z})}):null;return p.jsxs(Sj,{ownerState:R,className:Ce(o.className,G.root,y,D),component:g,disabled:b||j,focusRipple:!E,focusVisibleClassName:Ce(G.focusVisible,w),ref:a,type:L,id:j?X:M,...V,classes:G,children:[F,N!=="end"&&I,d,N==="end"&&I,q]})});function Rj(e){return ke("MuiCard",e)}Oe("MuiCard",["root"]);const Tj=e=>{const{classes:n}=e;return Ne({root:["root"]},Rj,n)},Aj=fe(An,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),yo=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiCard"}),{className:s,raised:c=!1,...u}=o,d={...o,raised:c},h=Tj(d);return p.jsx(Aj,{className:Ce(h.root,s),elevation:c?8:void 0,ref:a,ownerState:d,...u})});function jj(e){return ke("MuiCardActions",e)}Oe("MuiCardActions",["root","spacing"]);const Mj=e=>{const{classes:n,disableSpacing:a}=e;return Ne({root:["root",!a&&"spacing"]},jj,n)},kj=fe("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,!a.disableSpacing&&n.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Xc=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiCardActions"}),{disableSpacing:s=!1,className:c,...u}=o,d={...o,disableSpacing:s},h=Mj(d);return p.jsx(kj,{className:Ce(h.root,c),ownerState:d,ref:a,...u})});function Oj(e){return ke("MuiCardContent",e)}Oe("MuiCardContent",["root"]);const Nj=e=>{const{classes:n}=e;return Ne({root:["root"]},Oj,n)},_j=fe("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),bo=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiCardContent"}),{className:s,component:c="div",...u}=o,d={...o,component:c},h=Nj(d);return p.jsx(_j,{as:c,className:Ce(h.root,s),ownerState:d,ref:a,...u})});function zj(e){return ke("PrivateSwitchBase",e)}Oe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Dj=e=>{const{classes:n,checked:a,disabled:o,edge:s}=e,c={root:["root",a&&"checked",o&&"disabled",s&&`edge${he(s)}`],input:["input"]};return Ne(c,zj,n)},Lj=fe(Ti,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:n})=>e==="start"&&n.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:n})=>e==="end"&&n.size!=="small",style:{marginRight:-12}}]}),Pj=fe("input",{name:"MuiSwitchBase",shouldForwardProp:jn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),$j=v.forwardRef(function(n,a){const{autoFocus:o,checked:s,checkedIcon:c,defaultChecked:u,disabled:d,disableFocusRipple:h=!1,edge:g=!1,icon:y,id:b,inputProps:x,inputRef:E,name:S,onBlur:w,onChange:T,onFocus:M,readOnly:j,required:O=!1,tabIndex:N,type:A,value:z,slots:L={},slotProps:B={},...V}=n,[X,Z]=sh({controlled:s,default:!!u,name:"SwitchBase",state:"checked"}),R=Ua(),G=be=>{M&&M(be),R&&R.onFocus&&R.onFocus(be)},F=be=>{w&&w(be),R&&R.onBlur&&R.onBlur(be)},q=be=>{if(be.nativeEvent.defaultPrevented)return;const ae=be.target.checked;Z(ae),T&&T(be,ae)};let D=d;R&&typeof D>"u"&&(D=R.disabled);const I=A==="checkbox"||A==="radio",H={...n,checked:X,disabled:D,disableFocusRipple:h,edge:g},W=Dj(H),_={slots:L,slotProps:{input:x,...B}},[J,ue]=He("root",{ref:a,elementType:Lj,className:W.root,shouldForwardComponentProp:!0,externalForwardedProps:{..._,component:"span",...V},getSlotProps:be=>({...be,onFocus:ae=>{be.onFocus?.(ae),G(ae)},onBlur:ae=>{be.onBlur?.(ae),F(ae)}}),ownerState:H,additionalProps:{centerRipple:!0,focusRipple:!h,disabled:D,role:void 0,tabIndex:null}}),[oe,pe]=He("input",{ref:E,elementType:Pj,className:W.input,externalForwardedProps:_,getSlotProps:be=>({...be,onChange:ae=>{be.onChange?.(ae),q(ae)}}),ownerState:H,additionalProps:{autoFocus:o,checked:s,defaultChecked:u,disabled:D,id:I?b:void 0,name:S,readOnly:j,required:O,tabIndex:N,type:A,...A==="checkbox"&&z===void 0?{}:{value:z}}});return p.jsxs(J,{...ue,children:[p.jsx(oe,{...pe}),X?c:y]})}),Bj=tt(p.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),Ij=tt(p.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),Fj=tt(p.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function Uj(e){return ke("MuiCheckbox",e)}const jp=Oe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Hj=e=>{const{classes:n,indeterminate:a,color:o,size:s}=e,c={root:["root",a&&"indeterminate",`color${he(o)}`,`size${he(s)}`]},u=Ne(c,Uj,n);return{...n,...u}},Vj=fe($j,{shouldForwardProp:e=>jn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,a.indeterminate&&n.indeterminate,n[`size${he(a.size)}`],a.color!=="default"&&n[`color${he(a.color)}`]]}})($e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(At()).map(([n])=>({props:{color:n,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(At()).map(([n])=>({props:{color:n},style:{[`&.${jp.checked}, &.${jp.indeterminate}`]:{color:(e.vars||e).palette[n].main},[`&.${jp.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),qj=p.jsx(Ij,{}),Gj=p.jsx(Bj,{}),Wj=p.jsx(Fj,{}),Vv=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiCheckbox"}),{checkedIcon:s=qj,color:c="primary",icon:u=Gj,indeterminate:d=!1,indeterminateIcon:h=Wj,inputProps:g,size:y="medium",disableRipple:b=!1,className:x,slots:E={},slotProps:S={},...w}=o,T=d?h:u,M=d?h:s,j={...o,disableRipple:b,color:c,indeterminate:d,size:y},O=Hj(j),N=S.input??g,[A,z]=He("root",{ref:a,elementType:Vj,className:Ce(O.root,x),shouldForwardComponentProp:!0,externalForwardedProps:{slots:E,slotProps:S,...w},ownerState:j,additionalProps:{type:"checkbox",icon:v.cloneElement(T,{fontSize:T.props.fontSize??y}),checkedIcon:v.cloneElement(M,{fontSize:M.props.fontSize??y}),disableRipple:b,slots:E,slotProps:{input:iS(typeof N=="function"?N(j):N,{"data-indeterminate":d})}}});return p.jsx(A,{...z,classes:O})});function qv(e){return e.substring(2).toLowerCase()}function Yj(e,n){return n.documentElement.clientWidth<e.clientX||n.documentElement.clientHeight<e.clientY}function Kj(e){const{children:n,disableReactTree:a=!1,mouseEvent:o="onClick",onClickAway:s,touchEvent:c="onTouchEnd"}=e,u=v.useRef(!1),d=v.useRef(null),h=v.useRef(!1),g=v.useRef(!1);v.useEffect(()=>(setTimeout(()=>{h.current=!0},0),()=>{h.current=!1}),[]);const y=Gt(Co(n),d),b=Nr(S=>{const w=g.current;g.current=!1;const T=Rn(d.current);if(!h.current||!d.current||"clientX"in S&&Yj(S,T))return;if(u.current){u.current=!1;return}let M;S.composedPath?M=S.composedPath().includes(d.current):M=!T.documentElement.contains(S.target)||d.current.contains(S.target),!M&&(a||!w)&&s(S)}),x=S=>w=>{g.current=!0;const T=n.props[S];T&&T(w)},E={ref:y};return c!==!1&&(E[c]=x(c)),v.useEffect(()=>{if(c!==!1){const S=qv(c),w=Rn(d.current),T=()=>{u.current=!0};return w.addEventListener(S,b),w.addEventListener("touchmove",T),()=>{w.removeEventListener(S,b),w.removeEventListener("touchmove",T)}}},[b,c]),o!==!1&&(E[o]=x(o)),v.useEffect(()=>{if(o!==!1){const S=qv(o),w=Rn(d.current);return w.addEventListener(S,b),()=>{w.removeEventListener(S,b)}}},[b,o]),v.cloneElement(n,E)}const vo=s3({createStyledComponent:fe("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[`maxWidth${he(String(a.maxWidth))}`],a.fixed&&n.fixed,a.disableGutters&&n.disableGutters]}}),useThemeProps:e=>ze({props:e,name:"MuiContainer"})});function mS(e=window){const n=e.document.documentElement.clientWidth;return e.innerWidth-n}function Qj(e){const n=Rn(e);return n.body===e?hr(e).innerWidth>n.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Js(e,n){n?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Gv(e){return parseInt(hr(e).getComputedStyle(e).paddingRight,10)||0}function Xj(e){const a=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return a||o}function Wv(e,n,a,o,s){const c=[n,a,...o];[].forEach.call(e.children,u=>{const d=!c.includes(u),h=!Xj(u);d&&h&&Js(u,s)})}function Mp(e,n){let a=-1;return e.some((o,s)=>n(o)?(a=s,!0):!1),a}function Zj(e,n){const a=[],o=e.container;if(!n.disableScrollLock){if(Qj(o)){const u=mS(hr(o));a.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Gv(o)+u}px`;const d=Rn(o).querySelectorAll(".mui-fixed");[].forEach.call(d,h=>{a.push({value:h.style.paddingRight,property:"padding-right",el:h}),h.style.paddingRight=`${Gv(h)+u}px`})}let c;if(o.parentNode instanceof DocumentFragment)c=Rn(o).body;else{const u=o.parentElement,d=hr(o);c=u?.nodeName==="HTML"&&d.getComputedStyle(u).overflowY==="scroll"?u:o}a.push({value:c.style.overflow,property:"overflow",el:c},{value:c.style.overflowX,property:"overflow-x",el:c},{value:c.style.overflowY,property:"overflow-y",el:c}),c.style.overflow="hidden"}return()=>{a.forEach(({value:c,el:u,property:d})=>{c?u.style.setProperty(d,c):u.style.removeProperty(d)})}}function Jj(e){const n=[];return[].forEach.call(e.children,a=>{a.getAttribute("aria-hidden")==="true"&&n.push(a)}),n}class eM{constructor(){this.modals=[],this.containers=[]}add(n,a){let o=this.modals.indexOf(n);if(o!==-1)return o;o=this.modals.length,this.modals.push(n),n.modalRef&&Js(n.modalRef,!1);const s=Jj(a);Wv(a,n.mount,n.modalRef,s,!0);const c=Mp(this.containers,u=>u.container===a);return c!==-1?(this.containers[c].modals.push(n),o):(this.containers.push({modals:[n],container:a,restore:null,hiddenSiblings:s}),o)}mount(n,a){const o=Mp(this.containers,c=>c.modals.includes(n)),s=this.containers[o];s.restore||(s.restore=Zj(s,a))}remove(n,a=!0){const o=this.modals.indexOf(n);if(o===-1)return o;const s=Mp(this.containers,u=>u.modals.includes(n)),c=this.containers[s];if(c.modals.splice(c.modals.indexOf(n),1),this.modals.splice(o,1),c.modals.length===0)c.restore&&c.restore(),n.modalRef&&Js(n.modalRef,a),Wv(c.container,n.mount,n.modalRef,c.hiddenSiblings,!1),this.containers.splice(s,1);else{const u=c.modals[c.modals.length-1];u.modalRef&&Js(u.modalRef,!1)}return o}isTopModal(n){return this.modals.length>0&&this.modals[this.modals.length-1]===n}}const tM=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function nM(e){const n=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(n)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:n}function rM(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const n=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let a=n(`[name="${e.name}"]:checked`);return a||(a=n(`[name="${e.name}"]`)),a!==e}function aM(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||rM(e))}function oM(e){const n=[],a=[];return Array.from(e.querySelectorAll(tM)).forEach((o,s)=>{const c=nM(o);c===-1||!aM(o)||(c===0?n.push(o):a.push({documentOrder:s,tabIndex:c,node:o}))}),a.sort((o,s)=>o.tabIndex===s.tabIndex?o.documentOrder-s.documentOrder:o.tabIndex-s.tabIndex).map(o=>o.node).concat(n)}function iM(){return!0}function sM(e){const{children:n,disableAutoFocus:a=!1,disableEnforceFocus:o=!1,disableRestoreFocus:s=!1,getTabbable:c=oM,isEnabled:u=iM,open:d}=e,h=v.useRef(!1),g=v.useRef(null),y=v.useRef(null),b=v.useRef(null),x=v.useRef(null),E=v.useRef(!1),S=v.useRef(null),w=Gt(Co(n),S),T=v.useRef(null);v.useEffect(()=>{!d||!S.current||(E.current=!a)},[a,d]),v.useEffect(()=>{if(!d||!S.current)return;const O=Rn(S.current);return S.current.contains(O.activeElement)||(S.current.hasAttribute("tabIndex")||S.current.setAttribute("tabIndex","-1"),E.current&&S.current.focus()),()=>{s||(b.current&&b.current.focus&&(h.current=!0,b.current.focus()),b.current=null)}},[d]),v.useEffect(()=>{if(!d||!S.current)return;const O=Rn(S.current),N=L=>{T.current=L,!(o||!u()||L.key!=="Tab")&&O.activeElement===S.current&&L.shiftKey&&(h.current=!0,y.current&&y.current.focus())},A=()=>{const L=S.current;if(L===null)return;if(!O.hasFocus()||!u()||h.current){h.current=!1;return}if(L.contains(O.activeElement)||o&&O.activeElement!==g.current&&O.activeElement!==y.current)return;if(O.activeElement!==x.current)x.current=null;else if(x.current!==null)return;if(!E.current)return;let B=[];if((O.activeElement===g.current||O.activeElement===y.current)&&(B=c(S.current)),B.length>0){const V=!!(T.current?.shiftKey&&T.current?.key==="Tab"),X=B[0],Z=B[B.length-1];typeof X!="string"&&typeof Z!="string"&&(V?Z.focus():X.focus())}else L.focus()};O.addEventListener("focusin",A),O.addEventListener("keydown",N,!0);const z=setInterval(()=>{O.activeElement&&O.activeElement.tagName==="BODY"&&A()},50);return()=>{clearInterval(z),O.removeEventListener("focusin",A),O.removeEventListener("keydown",N,!0)}},[a,o,s,u,d,c]);const M=O=>{b.current===null&&(b.current=O.relatedTarget),E.current=!0,x.current=O.target;const N=n.props.onFocus;N&&N(O)},j=O=>{b.current===null&&(b.current=O.relatedTarget),E.current=!0};return p.jsxs(v.Fragment,{children:[p.jsx("div",{tabIndex:d?0:-1,onFocus:j,ref:g,"data-testid":"sentinelStart"}),v.cloneElement(n,{ref:w,onFocus:M}),p.jsx("div",{tabIndex:d?0:-1,onFocus:j,ref:y,"data-testid":"sentinelEnd"})]})}function lM(e){return typeof e=="function"?e():e}function cM(e){return e?e.props.hasOwnProperty("in"):!1}const Yv=()=>{},$c=new eM;function uM(e){const{container:n,disableEscapeKeyDown:a=!1,disableScrollLock:o=!1,closeAfterTransition:s=!1,onTransitionEnter:c,onTransitionExited:u,children:d,onClose:h,open:g,rootRef:y}=e,b=v.useRef({}),x=v.useRef(null),E=v.useRef(null),S=Gt(E,y),[w,T]=v.useState(!g),M=cM(d);let j=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(j=!1);const O=()=>Rn(x.current),N=()=>(b.current.modalRef=E.current,b.current.mount=x.current,b.current),A=()=>{$c.mount(N(),{disableScrollLock:o}),E.current&&(E.current.scrollTop=0)},z=Nr(()=>{const q=lM(n)||O().body;$c.add(N(),q),E.current&&A()}),L=()=>$c.isTopModal(N()),B=Nr(q=>{x.current=q,q&&(g&&L()?A():E.current&&Js(E.current,j))}),V=v.useCallback(()=>{$c.remove(N(),j)},[j]);v.useEffect(()=>()=>{V()},[V]),v.useEffect(()=>{g?z():(!M||!s)&&V()},[g,V,M,s,z]);const X=q=>D=>{q.onKeyDown?.(D),!(D.key!=="Escape"||D.which===229||!L())&&(a||(D.stopPropagation(),h&&h(D,"escapeKeyDown")))},Z=q=>D=>{q.onClick?.(D),D.target===D.currentTarget&&h&&h(D,"backdropClick")};return{getRootProps:(q={})=>{const D=su(e);delete D.onTransitionEnter,delete D.onTransitionExited;const I={...D,...q};return{role:"presentation",...I,onKeyDown:X(I),ref:S}},getBackdropProps:(q={})=>{const D=q;return{"aria-hidden":!0,...D,onClick:Z(D),open:g}},getTransitionProps:()=>{const q=()=>{T(!1),c&&c()},D=()=>{T(!0),u&&u(),s&&V()};return{onEnter:Av(q,d?.props.onEnter??Yv),onExited:Av(D,d?.props.onExited??Yv)}},rootRef:S,portalRef:B,isTopModal:L,exited:w,hasTransition:M}}function dM(e){return ke("MuiModal",e)}Oe("MuiModal",["root","hidden","backdrop"]);const fM=e=>{const{open:n,exited:a,classes:o}=e;return Ne({root:["root",!n&&a&&"hidden"],backdrop:["backdrop"]},dM,o)},pM=fe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,!a.open&&a.exited&&n.hidden]}})($e(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:n})=>!n.open&&n.exited,style:{visibility:"hidden"}}]}))),hM=fe(mm,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),gS=v.forwardRef(function(n,a){const o=ze({name:"MuiModal",props:n}),{BackdropComponent:s=hM,BackdropProps:c,classes:u,className:d,closeAfterTransition:h=!1,children:g,container:y,component:b,components:x={},componentsProps:E={},disableAutoFocus:S=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:T=!1,disablePortal:M=!1,disableRestoreFocus:j=!1,disableScrollLock:O=!1,hideBackdrop:N=!1,keepMounted:A=!1,onClose:z,onTransitionEnter:L,onTransitionExited:B,open:V,slotProps:X={},slots:Z={},theme:R,...G}=o,F={...o,closeAfterTransition:h,disableAutoFocus:S,disableEnforceFocus:w,disableEscapeKeyDown:T,disablePortal:M,disableRestoreFocus:j,disableScrollLock:O,hideBackdrop:N,keepMounted:A},{getRootProps:q,getBackdropProps:D,getTransitionProps:I,portalRef:H,isTopModal:W,exited:_,hasTransition:J}=uM({...F,rootRef:a}),ue={...F,exited:_},oe=fM(ue),pe={};if(g.props.tabIndex===void 0&&(pe.tabIndex="-1"),J){const{onEnter:je,onExited:Ue}=I();pe.onEnter=je,pe.onExited=Ue}const be={slots:{root:x.Root,backdrop:x.Backdrop,...Z},slotProps:{...E,...X}},[ae,Ee]=He("root",{ref:a,elementType:pM,externalForwardedProps:{...be,...G,component:b},getSlotProps:q,ownerState:ue,className:Ce(d,oe?.root,!ue.open&&ue.exited&&oe?.hidden)}),[Ae,Ie]=He("backdrop",{ref:c?.ref,elementType:s,externalForwardedProps:be,shouldForwardComponentProp:!0,additionalProps:c,getSlotProps:je=>D({...je,onClick:Ue=>{je?.onClick&&je.onClick(Ue)}}),className:Ce(c?.className,oe?.backdrop),ownerState:ue});return!A&&!V&&(!J||_)?null:p.jsx(UA,{ref:H,container:y,disablePortal:M,children:p.jsxs(ae,{...Ee,children:[!N&&s?p.jsx(Ae,{...Ie}):null,p.jsx(sM,{disableEnforceFocus:w,disableAutoFocus:S,disableRestoreFocus:j,isEnabled:W,open:V,children:v.cloneElement(g,pe)})]})})});function mM(e){return ke("MuiDialog",e)}const kp=Oe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),yS=v.createContext({}),gM=fe(mm,{name:"MuiDialog",slot:"Backdrop",overrides:(e,n)=>n.backdrop})({zIndex:-1}),yM=e=>{const{classes:n,scroll:a,maxWidth:o,fullWidth:s,fullScreen:c}=e,u={root:["root"],container:["container",`scroll${he(a)}`],paper:["paper",`paperScroll${he(a)}`,`paperWidth${he(String(o))}`,s&&"paperFullWidth",c&&"paperFullScreen"]};return Ne(u,mM,n)},bM=fe(gS,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),vM=fe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.container,n[`scroll${he(a.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),xM=fe(An,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.paper,n[`scrollPaper${he(a.scroll)}`],n[`paperWidth${he(String(a.maxWidth))}`],a.fullWidth&&n.paperFullWidth,a.fullScreen&&n.paperFullScreen]}})($e(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:n})=>!n.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${kp.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(n=>n!=="xs").map(n=>({props:{maxWidth:n},style:{maxWidth:`${e.breakpoints.values[n]}${e.breakpoints.unit}`,[`&.${kp.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[n]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:n})=>n.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:n})=>n.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${kp.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),bS=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiDialog"}),s=sa(),c={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{"aria-describedby":u,"aria-labelledby":d,"aria-modal":h=!0,BackdropComponent:g,BackdropProps:y,children:b,className:x,disableEscapeKeyDown:E=!1,fullScreen:S=!1,fullWidth:w=!1,maxWidth:T="sm",onClick:M,onClose:j,open:O,PaperComponent:N=An,PaperProps:A={},scroll:z="paper",slots:L={},slotProps:B={},TransitionComponent:V=du,transitionDuration:X=c,TransitionProps:Z,...R}=o,G={...o,disableEscapeKeyDown:E,fullScreen:S,fullWidth:w,maxWidth:T,scroll:z},F=yM(G),q=v.useRef(),D=Ye=>{q.current=Ye.target===Ye.currentTarget},I=Ye=>{M&&M(Ye),q.current&&(q.current=null,j&&j(Ye,"backdropClick"))},H=Ni(d),W=v.useMemo(()=>({titleId:H}),[H]),_={transition:V,...L},J={transition:Z,paper:A,backdrop:y,...B},ue={slots:_,slotProps:J},[oe,pe]=He("root",{elementType:bM,shouldForwardComponentProp:!0,externalForwardedProps:ue,ownerState:G,className:Ce(F.root,x),ref:a}),[be,ae]=He("backdrop",{elementType:gM,shouldForwardComponentProp:!0,externalForwardedProps:ue,ownerState:G}),[Ee,Ae]=He("paper",{elementType:xM,shouldForwardComponentProp:!0,externalForwardedProps:ue,ownerState:G,className:Ce(F.paper,A.className)}),[Ie,je]=He("container",{elementType:vM,externalForwardedProps:ue,ownerState:G,className:F.container}),[Ue,Ge]=He("transition",{elementType:du,externalForwardedProps:ue,ownerState:G,additionalProps:{appear:!0,in:O,timeout:X,role:"presentation"}});return p.jsx(oe,{closeAfterTransition:!0,slots:{backdrop:be},slotProps:{backdrop:{transitionDuration:X,as:g,...ae}},disableEscapeKeyDown:E,onClose:j,open:O,onClick:I,...pe,...R,children:p.jsx(Ue,{...Ge,children:p.jsx(Ie,{onMouseDown:D,...je,children:p.jsx(Ee,{as:N,elevation:24,role:"dialog","aria-describedby":u,"aria-labelledby":H,"aria-modal":h,...Ae,children:p.jsx(yS.Provider,{value:W,children:b})})})})})});function SM(e){return ke("MuiDialogActions",e)}Oe("MuiDialogActions",["root","spacing"]);const CM=e=>{const{classes:n,disableSpacing:a}=e;return Ne({root:["root",!a&&"spacing"]},SM,n)},wM=fe("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,!a.disableSpacing&&n.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),vS=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiDialogActions"}),{className:s,disableSpacing:c=!1,...u}=o,d={...o,disableSpacing:c},h=CM(d);return p.jsx(wM,{className:Ce(h.root,s),ownerState:d,ref:a,...u})});function EM(e){return ke("MuiDialogContent",e)}Oe("MuiDialogContent",["root","dividers"]);function RM(e){return ke("MuiDialogTitle",e)}const TM=Oe("MuiDialogTitle",["root"]),AM=e=>{const{classes:n,dividers:a}=e;return Ne({root:["root",a&&"dividers"]},EM,n)},jM=fe("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,a.dividers&&n.dividers]}})($e(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:n})=>n.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:n})=>!n.dividers,style:{[`.${TM.root} + &`]:{paddingTop:0}}}]}))),xS=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiDialogContent"}),{className:s,dividers:c=!1,...u}=o,d={...o,dividers:c},h=AM(d);return p.jsx(jM,{className:Ce(h.root,s),ownerState:d,ref:a,...u})}),MM=e=>{const{classes:n}=e;return Ne({root:["root"]},RM,n)},kM=fe(se,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),SS=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiDialogTitle"}),{className:s,id:c,...u}=o,d=o,h=MM(d),{titleId:g=c}=v.useContext(yS);return p.jsx(kM,{component:"h2",className:Ce(h.root,s),ownerState:d,ref:a,variant:"h6",id:c??g,...u})});function OM(e){return ke("MuiDivider",e)}const Kv=Oe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),NM=e=>{const{absolute:n,children:a,classes:o,flexItem:s,light:c,orientation:u,textAlign:d,variant:h}=e;return Ne({root:["root",n&&"absolute",h,c&&"light",u==="vertical"&&"vertical",s&&"flexItem",a&&"withChildren",a&&u==="vertical"&&"withChildrenVertical",d==="right"&&u!=="vertical"&&"textAlignRight",d==="left"&&u!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",u==="vertical"&&"wrapperVertical"]},OM,o)},_M=fe("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,a.absolute&&n.absolute,n[a.variant],a.light&&n.light,a.orientation==="vertical"&&n.vertical,a.flexItem&&n.flexItem,a.children&&n.withChildren,a.children&&a.orientation==="vertical"&&n.withChildrenVertical,a.textAlign==="right"&&a.orientation!=="vertical"&&n.textAlignRight,a.textAlign==="left"&&a.orientation!=="vertical"&&n.textAlignLeft]}})($e(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:n})=>!!n.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:n})=>n.children&&n.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:n})=>n.orientation==="vertical"&&n.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:n})=>n.textAlign==="right"&&n.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:n})=>n.textAlign==="left"&&n.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),zM=fe("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.wrapper,a.orientation==="vertical"&&n.wrapperVertical]}})($e(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),ph=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiDivider"}),{absolute:s=!1,children:c,className:u,orientation:d="horizontal",component:h=c||d==="vertical"?"div":"hr",flexItem:g=!1,light:y=!1,role:b=h!=="hr"?"separator":void 0,textAlign:x="center",variant:E="fullWidth",...S}=o,w={...o,absolute:s,component:h,flexItem:g,light:y,orientation:d,role:b,textAlign:x,variant:E},T=NM(w);return p.jsx(_M,{as:h,className:Ce(T.root,u),role:b,ref:a,ownerState:w,"aria-orientation":b==="separator"&&(h!=="hr"||d==="vertical")?d:void 0,...S,children:c?p.jsx(zM,{className:T.wrapper,ownerState:w,children:c}):null})});ph&&(ph.muiSkipListHighlight=!0);function DM(e,n,a){const o=n.getBoundingClientRect(),s=a&&a.getBoundingClientRect(),c=hr(n);let u;if(n.fakeTransform)u=n.fakeTransform;else{const g=c.getComputedStyle(n);u=g.getPropertyValue("-webkit-transform")||g.getPropertyValue("transform")}let d=0,h=0;if(u&&u!=="none"&&typeof u=="string"){const g=u.split("(")[1].split(")")[0].split(",");d=parseInt(g[4],10),h=parseInt(g[5],10)}return e==="left"?s?`translateX(${s.right+d-o.left}px)`:`translateX(${c.innerWidth+d-o.left}px)`:e==="right"?s?`translateX(-${o.right-s.left-d}px)`:`translateX(-${o.left+o.width-d}px)`:e==="up"?s?`translateY(${s.bottom+h-o.top}px)`:`translateY(${c.innerHeight+h-o.top}px)`:s?`translateY(-${o.top-s.top+o.height-h}px)`:`translateY(-${o.top+o.height-h}px)`}function LM(e){return typeof e=="function"?e():e}function Bc(e,n,a){const o=LM(a),s=DM(e,n,o);s&&(n.style.webkitTransform=s,n.style.transform=s)}const PM=v.forwardRef(function(n,a){const o=sa(),s={enter:o.transitions.easing.easeOut,exit:o.transitions.easing.sharp},c={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:u,appear:d=!0,children:h,container:g,direction:y="down",easing:b=s,in:x,onEnter:E,onEntered:S,onEntering:w,onExit:T,onExited:M,onExiting:j,style:O,timeout:N=c,TransitionComponent:A=ir,...z}=n,L=v.useRef(null),B=Gt(Co(h),L,a),V=H=>W=>{H&&(W===void 0?H(L.current):H(L.current,W))},X=V((H,W)=>{Bc(y,H,g),dm(H),E&&E(H,W)}),Z=V((H,W)=>{const _=Ba({timeout:N,style:O,easing:b},{mode:"enter"});H.style.webkitTransition=o.transitions.create("-webkit-transform",{..._}),H.style.transition=o.transitions.create("transform",{..._}),H.style.webkitTransform="none",H.style.transform="none",w&&w(H,W)}),R=V(S),G=V(j),F=V(H=>{const W=Ba({timeout:N,style:O,easing:b},{mode:"exit"});H.style.webkitTransition=o.transitions.create("-webkit-transform",W),H.style.transition=o.transitions.create("transform",W),Bc(y,H,g),T&&T(H)}),q=V(H=>{H.style.webkitTransition="",H.style.transition="",M&&M(H)}),D=H=>{u&&u(L.current,H)},I=v.useCallback(()=>{L.current&&Bc(y,L.current,g)},[y,g]);return v.useEffect(()=>{if(x||y==="down"||y==="right")return;const H=sm(()=>{L.current&&Bc(y,L.current,g)}),W=hr(L.current);return W.addEventListener("resize",H),()=>{H.clear(),W.removeEventListener("resize",H)}},[y,x,g]),v.useEffect(()=>{x||I()},[x,I]),p.jsx(A,{nodeRef:L,onEnter:X,onEntered:R,onEntering:Z,onExit:F,onExited:q,onExiting:G,addEndListener:D,appear:d,in:x,timeout:N,...z,children:(H,{ownerState:W,..._})=>v.cloneElement(h,{ref:B,style:{visibility:H==="exited"&&!x?"hidden":void 0,...O,...h.props.style},..._})})}),$M=e=>{const{classes:n,disableUnderline:a,startAdornment:o,endAdornment:s,size:c,hiddenLabel:u,multiline:d}=e,h={root:["root",!a&&"underline",o&&"adornedStart",s&&"adornedEnd",c==="small"&&`size${he(c)}`,u&&"hiddenLabel",d&&"multiline"],input:["input"]},g=Ne(h,nj,n);return{...n,...g}},BM=fe(Hu,{shouldForwardProp:e=>jn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[...Fu(e,n),!a.disableUnderline&&n.underline]}})($e(({theme:e})=>{const n=e.palette.mode==="light",a=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",c=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${lo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${lo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:c},variants:[{props:({ownerState:u})=>!u.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${lo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${lo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${lo.disabled}, .${lo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${lo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(At()).map(([u])=>({props:{disableUnderline:!1,color:u},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[u]?.main}`}}})),{props:({ownerState:u})=>u.startAdornment,style:{paddingLeft:12}},{props:({ownerState:u})=>u.endAdornment,style:{paddingRight:12}},{props:({ownerState:u})=>u.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:u,size:d})=>u.multiline&&d==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:u})=>u.multiline&&u.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:u})=>u.multiline&&u.hiddenLabel&&u.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),IM=fe(Vu,{name:"MuiFilledInput",slot:"Input",overridesResolver:Uu})($e(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:n})=>n.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:0}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:0}},{props:({ownerState:n})=>n.hiddenLabel&&n.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:n})=>n.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),gm=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiFilledInput"}),{disableUnderline:s=!1,components:c={},componentsProps:u,fullWidth:d=!1,hiddenLabel:h,inputComponent:g="input",multiline:y=!1,slotProps:b,slots:x={},type:E="text",...S}=o,w={...o,disableUnderline:s,fullWidth:d,inputComponent:g,multiline:y,type:E},T=$M(o),M={root:{ownerState:w},input:{ownerState:w}},j=b??u?pn(M,b??u):M,O=x.root??c.Root??BM,N=x.input??c.Input??IM;return p.jsx(hm,{slots:{root:O,input:N},slotProps:j,fullWidth:d,inputComponent:g,multiline:y,ref:a,type:E,...S,classes:T})});gm.muiName="Input";function FM(e){return ke("MuiFormControl",e)}Oe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const UM=e=>{const{classes:n,margin:a,fullWidth:o}=e,s={root:["root",a!=="none"&&`margin${he(a)}`,o&&"fullWidth"]};return Ne(s,FM,n)},HM=fe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[`margin${he(a.margin)}`],a.fullWidth&&n.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),zi=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiFormControl"}),{children:s,className:c,color:u="primary",component:d="div",disabled:h=!1,error:g=!1,focused:y,fullWidth:b=!1,hiddenLabel:x=!1,margin:E="none",required:S=!1,size:w="medium",variant:T="outlined",...M}=o,j={...o,color:u,component:d,disabled:h,error:g,fullWidth:b,hiddenLabel:x,margin:E,required:S,size:w,variant:T},O=UM(j),[N,A]=v.useState(()=>{let q=!1;return s&&v.Children.forEach(s,D=>{if(!Zs(D,["Input","Select"]))return;const I=Zs(D,["Select"])?D.props.input:D;I&&XA(I.props)&&(q=!0)}),q}),[z,L]=v.useState(()=>{let q=!1;return s&&v.Children.forEach(s,D=>{Zs(D,["Input","Select"])&&(uu(D.props,!0)||uu(D.props.inputProps,!0))&&(q=!0)}),q}),[B,V]=v.useState(!1);h&&B&&V(!1);const X=y!==void 0&&!h?y:B;let Z;v.useRef(!1);const R=v.useCallback(()=>{L(!0)},[]),G=v.useCallback(()=>{L(!1)},[]),F=v.useMemo(()=>({adornedStart:N,setAdornedStart:A,color:u,disabled:h,error:g,filled:z,focused:X,fullWidth:b,hiddenLabel:x,size:w,onBlur:()=>{V(!1)},onFocus:()=>{V(!0)},onEmpty:G,onFilled:R,registerEffect:Z,required:S,variant:T}),[N,u,h,g,z,X,b,x,Z,G,R,S,w,T]);return p.jsx(pm.Provider,{value:F,children:p.jsx(HM,{as:d,ownerState:j,className:Ce(O.root,c),ref:a,...M,children:s})})});function VM(e){return ke("MuiFormControlLabel",e)}const Qs=Oe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),qM=e=>{const{classes:n,disabled:a,labelPlacement:o,error:s,required:c}=e,u={root:["root",a&&"disabled",`labelPlacement${he(o)}`,s&&"error",c&&"required"],label:["label",a&&"disabled"],asterisk:["asterisk",s&&"error"]};return Ne(u,VM,n)},GM=fe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[{[`& .${Qs.label}`]:n.label},n.root,n[`labelPlacement${he(a.labelPlacement)}`]]}})($e(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Qs.disabled}`]:{cursor:"default"},[`& .${Qs.label}`]:{[`&.${Qs.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:n})=>n==="start"||n==="top"||n==="bottom",style:{marginLeft:16}}]}))),WM=fe("span",{name:"MuiFormControlLabel",slot:"Asterisk"})($e(({theme:e})=>({[`&.${Qs.error}`]:{color:(e.vars||e).palette.error.main}}))),Qv=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiFormControlLabel"}),{checked:s,className:c,componentsProps:u={},control:d,disabled:h,disableTypography:g,inputRef:y,label:b,labelPlacement:x="end",name:E,onChange:S,required:w,slots:T={},slotProps:M={},value:j,...O}=o,N=Ua(),A=h??d.props.disabled??N?.disabled,z=w??d.props.required,L={disabled:A,required:z};["checked","name","onChange","value","inputRef"].forEach(q=>{typeof d.props[q]>"u"&&typeof o[q]<"u"&&(L[q]=o[q])});const B=wo({props:o,muiFormControl:N,states:["error"]}),V={...o,disabled:A,labelPlacement:x,required:z,error:B.error},X=qM(V),Z={slots:T,slotProps:{...u,...M}},[R,G]=He("typography",{elementType:se,externalForwardedProps:Z,ownerState:V});let F=b;return F!=null&&F.type!==se&&!g&&(F=p.jsx(R,{component:"span",...G,className:Ce(X.label,G?.className),children:F})),p.jsxs(GM,{className:Ce(X.root,c),ownerState:V,ref:a,...O,children:[v.cloneElement(d,L),z?p.jsxs("div",{children:[F,p.jsxs(WM,{ownerState:V,"aria-hidden":!0,className:X.asterisk,children:[" ","*"]})]}):F]})});function YM(e){return ke("MuiFormHelperText",e)}const Xv=Oe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Zv;const KM=e=>{const{classes:n,contained:a,size:o,disabled:s,error:c,filled:u,focused:d,required:h}=e,g={root:["root",s&&"disabled",c&&"error",o&&`size${he(o)}`,a&&"contained",d&&"focused",u&&"filled",h&&"required"]};return Ne(g,YM,n)},QM=fe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,a.size&&n[`size${he(a.size)}`],a.contained&&n.contained,a.filled&&n.filled]}})($e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Xv.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Xv.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:n})=>n.contained,style:{marginLeft:14,marginRight:14}}]}))),CS=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiFormHelperText"}),{children:s,className:c,component:u="p",disabled:d,error:h,filled:g,focused:y,margin:b,required:x,variant:E,...S}=o,w=Ua(),T=wo({props:o,muiFormControl:w,states:["variant","size","disabled","error","filled","focused","required"]}),M={...o,component:u,contained:T.variant==="filled"||T.variant==="outlined",variant:T.variant,size:T.size,disabled:T.disabled,error:T.error,filled:T.filled,focused:T.focused,required:T.required};delete M.ownerState;const j=KM(M);return p.jsx(QM,{as:u,className:Ce(j.root,c),ref:a,...S,ownerState:M,children:s===" "?Zv||(Zv=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});function XM(e){return ke("MuiFormLabel",e)}const el=Oe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ZM=e=>{const{classes:n,color:a,focused:o,disabled:s,error:c,filled:u,required:d}=e,h={root:["root",`color${he(a)}`,s&&"disabled",c&&"error",u&&"filled",o&&"focused",d&&"required"],asterisk:["asterisk",c&&"error"]};return Ne(h,XM,n)},JM=fe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,a.color==="secondary"&&n.colorSecondary,a.filled&&n.filled]}})($e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(At()).map(([n])=>({props:{color:n},style:{[`&.${el.focused}`]:{color:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${el.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${el.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),ek=fe("span",{name:"MuiFormLabel",slot:"Asterisk"})($e(({theme:e})=>({[`&.${el.error}`]:{color:(e.vars||e).palette.error.main}}))),tk=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiFormLabel"}),{children:s,className:c,color:u,component:d="label",disabled:h,error:g,filled:y,focused:b,required:x,...E}=o,S=Ua(),w=wo({props:o,muiFormControl:S,states:["color","required","focused","disabled","error","filled"]}),T={...o,color:w.color||"primary",component:d,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required},M=ZM(T);return p.jsxs(JM,{as:d,ownerState:T,className:Ce(M.root,c),ref:a,...E,children:[s,w.required&&p.jsxs(ek,{ownerState:T,"aria-hidden":!0,className:M.asterisk,children:[" ","*"]})]})}),Kn=w3({createStyledComponent:fe("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,a.container&&n.container]}}),componentName:"MuiGrid",useThemeProps:e=>ze({props:e,name:"MuiGrid"}),useTheme:sa});function hh(e){return`scale(${e}, ${e**2})`}const nk={entering:{opacity:1,transform:hh(1)},entered:{opacity:1,transform:"none"}},Op=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),fu=v.forwardRef(function(n,a){const{addEndListener:o,appear:s=!0,children:c,easing:u,in:d,onEnter:h,onEntered:g,onEntering:y,onExit:b,onExited:x,onExiting:E,style:S,timeout:w="auto",TransitionComponent:T=ir,...M}=n,j=Iu(),O=v.useRef(),N=sa(),A=v.useRef(null),z=Gt(A,Co(c),a),L=q=>D=>{if(q){const I=A.current;D===void 0?q(I):q(I,D)}},B=L(y),V=L((q,D)=>{dm(q);const{duration:I,delay:H,easing:W}=Ba({style:S,timeout:w,easing:u},{mode:"enter"});let _;w==="auto"?(_=N.transitions.getAutoHeightDuration(q.clientHeight),O.current=_):_=I,q.style.transition=[N.transitions.create("opacity",{duration:_,delay:H}),N.transitions.create("transform",{duration:Op?_:_*.666,delay:H,easing:W})].join(","),h&&h(q,D)}),X=L(g),Z=L(E),R=L(q=>{const{duration:D,delay:I,easing:H}=Ba({style:S,timeout:w,easing:u},{mode:"exit"});let W;w==="auto"?(W=N.transitions.getAutoHeightDuration(q.clientHeight),O.current=W):W=D,q.style.transition=[N.transitions.create("opacity",{duration:W,delay:I}),N.transitions.create("transform",{duration:Op?W:W*.666,delay:Op?I:I||W*.333,easing:H})].join(","),q.style.opacity=0,q.style.transform=hh(.75),b&&b(q)}),G=L(x),F=q=>{w==="auto"&&j.start(O.current||0,q),o&&o(A.current,q)};return p.jsx(T,{appear:s,in:d,nodeRef:A,onEnter:V,onEntered:X,onEntering:B,onExit:R,onExited:G,onExiting:Z,addEndListener:F,timeout:w==="auto"?null:w,...M,children:(q,{ownerState:D,...I})=>v.cloneElement(c,{style:{opacity:0,transform:hh(.75),visibility:q==="exited"&&!d?"hidden":void 0,...nk[q],...S,...c.props.style},ref:z,...I})})});fu&&(fu.muiSupportAuto=!0);const rk=e=>{const{classes:n,disableUnderline:a}=e,s=Ne({root:["root",!a&&"underline"],input:["input"]},ej,n);return{...n,...s}},ak=fe(Hu,{shouldForwardProp:e=>jn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[...Fu(e,n),!a.disableUnderline&&n.underline]}})($e(({theme:e})=>{let a=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(a=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:o})=>o.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:o})=>!o.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Bs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Bs.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Bs.disabled}, .${Bs.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${a}`}},[`&.${Bs.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(At()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),ok=fe(Vu,{name:"MuiInput",slot:"Input",overridesResolver:Uu})({}),ym=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiInput"}),{disableUnderline:s=!1,components:c={},componentsProps:u,fullWidth:d=!1,inputComponent:h="input",multiline:g=!1,slotProps:y,slots:b={},type:x="text",...E}=o,S=rk(o),T={root:{ownerState:{disableUnderline:s}}},M=y??u?pn(y??u,T):T,j=b.root??c.Root??ak,O=b.input??c.Input??ok;return p.jsx(hm,{slots:{root:j,input:O},slotProps:M,fullWidth:d,inputComponent:h,multiline:g,ref:a,type:x,...E,classes:S})});ym.muiName="Input";function ik(e){return ke("MuiInputLabel",e)}Oe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const sk=e=>{const{classes:n,formControl:a,size:o,shrink:s,disableAnimation:c,variant:u,required:d}=e,h={root:["root",a&&"formControl",!c&&"animated",s&&"shrink",o&&o!=="medium"&&`size${he(o)}`,u],asterisk:[d&&"asterisk"]},g=Ne(h,ik,n);return{...n,...g}},lk=fe(tk,{shouldForwardProp:e=>jn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[{[`& .${el.asterisk}`]:n.asterisk},n.root,a.formControl&&n.formControl,a.size==="small"&&n.sizeSmall,a.shrink&&n.shrink,!a.disableAnimation&&n.animated,a.focused&&n.focused,n[a.variant]]}})($e(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:n})=>n.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:n})=>n.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:n})=>!n.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:n,ownerState:a})=>n==="filled"&&a.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:n,ownerState:a,size:o})=>n==="filled"&&a.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:n,ownerState:a})=>n==="outlined"&&a.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),bm=v.forwardRef(function(n,a){const o=ze({name:"MuiInputLabel",props:n}),{disableAnimation:s=!1,margin:c,shrink:u,variant:d,className:h,...g}=o,y=Ua();let b=u;typeof b>"u"&&y&&(b=y.filled||y.focused||y.adornedStart);const x=wo({props:o,muiFormControl:y,states:["size","variant","required","focused"]}),E={...o,disableAnimation:s,formControl:y,shrink:b,size:x.size,variant:x.variant,required:x.required,focused:x.focused},S=sk(E);return p.jsx(lk,{"data-shrink":b,ref:a,className:Ce(S.root,h),...g,ownerState:E,classes:S})});function ck(e){return ke("MuiLinearProgress",e)}Oe("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const mh=4,gh=ar`
  0% {
    left: -35%;
    right: 100%;
  }

  60% {
    left: 100%;
    right: -90%;
  }

  100% {
    left: 100%;
    right: -90%;
  }
`,uk=typeof gh!="string"?Fa`
        animation: ${gh} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
      `:null,yh=ar`
  0% {
    left: -200%;
    right: 100%;
  }

  60% {
    left: 107%;
    right: -8%;
  }

  100% {
    left: 107%;
    right: -8%;
  }
`,dk=typeof yh!="string"?Fa`
        animation: ${yh} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
      `:null,bh=ar`
  0% {
    opacity: 1;
    background-position: 0 -23px;
  }

  60% {
    opacity: 0;
    background-position: 0 -23px;
  }

  100% {
    opacity: 1;
    background-position: -200px -23px;
  }
`,fk=typeof bh!="string"?Fa`
        animation: ${bh} 3s infinite linear;
      `:null,pk=e=>{const{classes:n,variant:a,color:o}=e,s={root:["root",`color${he(o)}`,a],dashed:["dashed",`dashedColor${he(o)}`],bar1:["bar","bar1",`barColor${he(o)}`,(a==="indeterminate"||a==="query")&&"bar1Indeterminate",a==="determinate"&&"bar1Determinate",a==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",a!=="buffer"&&`barColor${he(o)}`,a==="buffer"&&`color${he(o)}`,(a==="indeterminate"||a==="query")&&"bar2Indeterminate",a==="buffer"&&"bar2Buffer"]};return Ne(s,ck,n)},vm=(e,n)=>e.vars?e.vars.palette.LinearProgress[`${n}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[n].main,.62):e.darken(e.palette[n].main,.5),hk=fe("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[`color${he(a.color)}`],n[a.variant]]}})($e(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(At()).map(([n])=>({props:{color:n},style:{backgroundColor:vm(e,n)}})),{props:({ownerState:n})=>n.color==="inherit"&&n.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),mk=fe("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.dashed,n[`dashedColor${he(a.color)}`]]}})($e(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(At()).map(([n])=>{const a=vm(e,n);return{props:{color:n},style:{backgroundImage:`radial-gradient(${a} 0%, ${a} 16%, transparent 42%)`}}})]})),fk||{animation:`${bh} 3s infinite linear`}),gk=fe("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.bar,n.bar1,n[`barColor${he(a.color)}`],(a.variant==="indeterminate"||a.variant==="query")&&n.bar1Indeterminate,a.variant==="determinate"&&n.bar1Determinate,a.variant==="buffer"&&n.bar1Buffer]}})($e(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(At()).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main}})),{props:{variant:"determinate"},style:{transition:`transform .${mh}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${mh}s linear`}},{props:({ownerState:n})=>n.variant==="indeterminate"||n.variant==="query",style:{width:"auto"}},{props:({ownerState:n})=>n.variant==="indeterminate"||n.variant==="query",style:uk||{animation:`${gh} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),yk=fe("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.bar,n.bar2,n[`barColor${he(a.color)}`],(a.variant==="indeterminate"||a.variant==="query")&&n.bar2Indeterminate,a.variant==="buffer"&&n.bar2Buffer]}})($e(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(At()).map(([n])=>({props:{color:n},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[n].main}})),{props:({ownerState:n})=>n.variant!=="buffer"&&n.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:n})=>n.variant!=="buffer"&&n.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(At()).map(([n])=>({props:{color:n,variant:"buffer"},style:{backgroundColor:vm(e,n),transition:`transform .${mh}s linear`}})),{props:({ownerState:n})=>n.variant==="indeterminate"||n.variant==="query",style:{width:"auto"}},{props:({ownerState:n})=>n.variant==="indeterminate"||n.variant==="query",style:dk||{animation:`${yh} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),bk=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiLinearProgress"}),{className:s,color:c="primary",value:u,valueBuffer:d,variant:h="indeterminate",...g}=o,y={...o,color:c,variant:h},b=pk(y),x=k1(),E={},S={bar1:{},bar2:{}};if((h==="determinate"||h==="buffer")&&u!==void 0){E["aria-valuenow"]=Math.round(u),E["aria-valuemin"]=0,E["aria-valuemax"]=100;let w=u-100;x&&(w=-w),S.bar1.transform=`translateX(${w}%)`}if(h==="buffer"&&d!==void 0){let w=(d||0)-100;x&&(w=-w),S.bar2.transform=`translateX(${w}%)`}return p.jsxs(hk,{className:Ce(b.root,s),ownerState:y,role:"progressbar",...E,ref:a,...g,children:[h==="buffer"?p.jsx(mk,{className:b.dashed,ownerState:y}):null,p.jsx(gk,{className:b.bar1,ownerState:y,style:S.bar1}),h==="determinate"?null:p.jsx(yk,{className:b.bar2,ownerState:y,style:S.bar2})]})});function vk(e){return ke("MuiLink",e)}const xk=Oe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Sk=({theme:e,ownerState:n})=>{const a=n.color;if("colorSpace"in e&&e.colorSpace){const c=Ar(e,`palette.${a}.main`)||Ar(e,`palette.${a}`)||n.color;return e.alpha(c,.4)}const o=Ar(e,`palette.${a}.main`,!1)||Ar(e,`palette.${a}`,!1)||n.color,s=Ar(e,`palette.${a}.mainChannel`)||Ar(e,`palette.${a}Channel`);return"vars"in e&&s?`rgba(${s} / 0.4)`:il(o,.4)},Jv={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Ck=e=>{const{classes:n,component:a,focusVisible:o,underline:s}=e,c={root:["root",`underline${he(s)}`,a==="button"&&"button",o&&"focusVisible"]};return Ne(c,vk,n)},wk=fe(se,{name:"MuiLink",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[`underline${he(a.underline)}`],a.component==="button"&&n.button]}})($e(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:n,ownerState:a})=>n==="always"&&a.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:({underline:n,ownerState:a})=>n==="always"&&a.color==="inherit",style:e.colorSpace?{textDecorationColor:e.alpha("currentColor",.4)}:null},...Object.entries(e.palette).filter(At()).map(([n])=>({props:{underline:"always",color:n},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette[n].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${xk.focusVisible}`]:{outline:"auto"}}}]}))),ex=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiLink"}),s=sa(),{className:c,color:u="primary",component:d="a",onBlur:h,onFocus:g,TypographyClasses:y,underline:b="always",variant:x="inherit",sx:E,...S}=o,[w,T]=v.useState(!1),M=A=>{lu(A.target)||T(!1),h&&h(A)},j=A=>{lu(A.target)&&T(!0),g&&g(A)},O={...o,color:u,component:d,focusVisible:w,underline:b,variant:x},N=Ck(O);return p.jsx(wk,{color:u,className:Ce(N.root,c),classes:y,component:d,onBlur:M,onFocus:j,ref:a,ownerState:O,variant:x,...S,sx:[...Jv[u]===void 0?[{color:u}]:[],...Array.isArray(E)?E:[E]],style:{...S.style,...b==="always"&&u!=="inherit"&&!Jv[u]&&{"--Link-underlineColor":Sk({theme:s,ownerState:O})}}})}),na=v.createContext({});function Ek(e){return ke("MuiList",e)}Oe("MuiList",["root","padding","dense","subheader"]);const Rk=e=>{const{classes:n,disablePadding:a,dense:o,subheader:s}=e;return Ne({root:["root",!a&&"padding",o&&"dense",s&&"subheader"]},Ek,n)},Tk=fe("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,!a.disablePadding&&n.padding,a.dense&&n.dense,a.subheader&&n.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),wS=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiList"}),{children:s,className:c,component:u="ul",dense:d=!1,disablePadding:h=!1,subheader:g,...y}=o,b=v.useMemo(()=>({dense:d}),[d]),x={...o,component:u,dense:d,disablePadding:h},E=Rk(x);return p.jsx(na.Provider,{value:b,children:p.jsxs(Tk,{as:u,className:Ce(E.root,c),ref:a,ownerState:x,...y,children:[g,s]})})});function Ak(e){return ke("MuiListItem",e)}Oe("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const jk=Oe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Mk(e){return ke("MuiListItemSecondaryAction",e)}Oe("MuiListItemSecondaryAction",["root","disableGutters"]);const kk=e=>{const{disableGutters:n,classes:a}=e;return Ne({root:["root",n&&"disableGutters"]},Mk,a)},Ok=fe("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,a.disableGutters&&n.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),ES=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiListItemSecondaryAction"}),{className:s,...c}=o,u=v.useContext(na),d={...o,disableGutters:u.disableGutters},h=kk(d);return p.jsx(Ok,{className:Ce(h.root,s),ownerState:d,ref:a,...c})});ES.muiName="ListItemSecondaryAction";const Nk=(e,n)=>{const{ownerState:a}=e;return[n.root,a.dense&&n.dense,a.alignItems==="flex-start"&&n.alignItemsFlexStart,a.divider&&n.divider,!a.disableGutters&&n.gutters,!a.disablePadding&&n.padding,a.hasSecondaryAction&&n.secondaryAction]},_k=e=>{const{alignItems:n,classes:a,dense:o,disableGutters:s,disablePadding:c,divider:u,hasSecondaryAction:d}=e;return Ne({root:["root",o&&"dense",!s&&"gutters",!c&&"padding",u&&"divider",n==="flex-start"&&"alignItemsFlexStart",d&&"secondaryAction"],container:["container"]},Ak,a)},zk=fe("div",{name:"MuiListItem",slot:"Root",overridesResolver:Nk})($e(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:n})=>!n.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:n})=>!n.disablePadding&&n.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:n})=>!n.disablePadding&&!n.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:n})=>!n.disablePadding&&!!n.secondaryAction,style:{paddingRight:48}},{props:({ownerState:n})=>!!n.secondaryAction,style:{[`& > .${jk.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:n})=>n.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:n})=>n.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:n})=>n.hasSecondaryAction,style:{paddingRight:48}}]}))),Dk=fe("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),tx=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiListItem"}),{alignItems:s="center",children:c,className:u,component:d,components:h={},componentsProps:g={},ContainerComponent:y="li",ContainerProps:{className:b,...x}={},dense:E=!1,disableGutters:S=!1,disablePadding:w=!1,divider:T=!1,secondaryAction:M,slotProps:j={},slots:O={},...N}=o,A=v.useContext(na),z=v.useMemo(()=>({dense:E||A.dense||!1,alignItems:s,disableGutters:S}),[s,A.dense,E,S]),L=v.useRef(null),B=v.Children.toArray(c),V=B.length&&Zs(B[B.length-1],["ListItemSecondaryAction"]),X={...o,alignItems:s,dense:z.dense,disableGutters:S,disablePadding:w,divider:T,hasSecondaryAction:V},Z=_k(X),R=Gt(L,a),G=O.root||h.Root||zk,F=j.root||g.root||{},q={className:Ce(Z.root,F.className,u),...N};let D=d||"li";return V?(D=!q.component&&!d?"div":D,y==="li"&&(D==="li"?D="div":q.component==="li"&&(q.component="div")),p.jsx(na.Provider,{value:z,children:p.jsxs(Dk,{as:y,className:Ce(Z.container,b),ref:R,ownerState:X,...x,children:[p.jsx(G,{...F,...!Ri(G)&&{as:D,ownerState:{...X,...F.ownerState}},...q,children:B}),B.pop()]})})):p.jsx(na.Provider,{value:z,children:p.jsxs(G,{...F,as:D,ref:R,...!Ri(G)&&{ownerState:{...X,...F.ownerState}},...q,children:[B,M&&p.jsx(ES,{children:M})]})})});function Lk(e){return ke("MuiListItemIcon",e)}const nx=Oe("MuiListItemIcon",["root","alignItemsFlexStart"]),Pk=e=>{const{alignItems:n,classes:a}=e;return Ne({root:["root",n==="flex-start"&&"alignItemsFlexStart"]},Lk,a)},$k=fe("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,a.alignItems==="flex-start"&&n.alignItemsFlexStart]}})($e(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),rx=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiListItemIcon"}),{className:s,...c}=o,u=v.useContext(na),d={...o,alignItems:u.alignItems},h=Pk(d);return p.jsx($k,{className:Ce(h.root,s),ownerState:d,ref:a,...c})});function Bk(e){return ke("MuiListItemText",e)}const bi=Oe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Ik=e=>{const{classes:n,inset:a,primary:o,secondary:s,dense:c}=e;return Ne({root:["root",a&&"inset",c&&"dense",o&&s&&"multiline"],primary:["primary"],secondary:["secondary"]},Bk,n)},Fk=fe("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[{[`& .${bi.primary}`]:n.primary},{[`& .${bi.secondary}`]:n.secondary},n.root,a.inset&&n.inset,a.primary&&a.secondary&&n.multiline,a.dense&&n.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Dv.root}:where(& .${bi.primary})`]:{display:"block"},[`.${Dv.root}:where(& .${bi.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),ax=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiListItemText"}),{children:s,className:c,disableTypography:u=!1,inset:d=!1,primary:h,primaryTypographyProps:g,secondary:y,secondaryTypographyProps:b,slots:x={},slotProps:E={},...S}=o,{dense:w}=v.useContext(na);let T=h??s,M=y;const j={...o,disableTypography:u,inset:d,primary:!!T,secondary:!!M,dense:w},O=Ik(j),N={slots:x,slotProps:{primary:g,secondary:b,...E}},[A,z]=He("root",{className:Ce(O.root,c),elementType:Fk,externalForwardedProps:{...N,...S},ownerState:j,ref:a}),[L,B]=He("primary",{className:O.primary,elementType:se,externalForwardedProps:N,ownerState:j}),[V,X]=He("secondary",{className:O.secondary,elementType:se,externalForwardedProps:N,ownerState:j});return T!=null&&T.type!==se&&!u&&(T=p.jsx(L,{variant:w?"body2":"body1",component:B?.variant?void 0:"span",...B,children:T})),M!=null&&M.type!==se&&!u&&(M=p.jsx(V,{variant:"body2",color:"textSecondary",...X,children:M})),p.jsxs(A,{...z,children:[T,M]})});function Np(e,n,a){return e===n?e.firstChild:n&&n.nextElementSibling?n.nextElementSibling:a?null:e.firstChild}function ox(e,n,a){return e===n?a?e.firstChild:e.lastChild:n&&n.previousElementSibling?n.previousElementSibling:a?null:e.lastChild}function RS(e,n){if(n===void 0)return!0;let a=e.innerText;return a===void 0&&(a=e.textContent),a=a.trim().toLowerCase(),a.length===0?!1:n.repeating?a[0]===n.keys[0]:a.startsWith(n.keys.join(""))}function Is(e,n,a,o,s,c){let u=!1,d=s(e,n,n?a:!1);for(;d;){if(d===e.firstChild){if(u)return!1;u=!0}const h=o?!1:d.disabled||d.getAttribute("aria-disabled")==="true";if(!d.hasAttribute("tabindex")||!RS(d,c)||h)d=s(e,d,a);else return d.focus(),!0}return!1}const Uk=v.forwardRef(function(n,a){const{actions:o,autoFocus:s=!1,autoFocusItem:c=!1,children:u,className:d,disabledItemsFocusable:h=!1,disableListWrap:g=!1,onKeyDown:y,variant:b="selectedMenu",...x}=n,E=v.useRef(null),S=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});_r(()=>{s&&E.current.focus()},[s]),v.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(O,{direction:N})=>{const A=!E.current.style.width;if(O.clientHeight<E.current.clientHeight&&A){const z=`${mS(hr(O))}px`;E.current.style[N==="rtl"?"paddingLeft":"paddingRight"]=z,E.current.style.width=`calc(100% + ${z})`}return E.current}}),[]);const w=O=>{const N=E.current,A=O.key;if(O.ctrlKey||O.metaKey||O.altKey){y&&y(O);return}const L=Rn(N).activeElement;if(A==="ArrowDown")O.preventDefault(),Is(N,L,g,h,Np);else if(A==="ArrowUp")O.preventDefault(),Is(N,L,g,h,ox);else if(A==="Home")O.preventDefault(),Is(N,null,g,h,Np);else if(A==="End")O.preventDefault(),Is(N,null,g,h,ox);else if(A.length===1){const B=S.current,V=A.toLowerCase(),X=performance.now();B.keys.length>0&&(X-B.lastTime>500?(B.keys=[],B.repeating=!0,B.previousKeyMatched=!0):B.repeating&&V!==B.keys[0]&&(B.repeating=!1)),B.lastTime=X,B.keys.push(V);const Z=L&&!B.repeating&&RS(L,B);B.previousKeyMatched&&(Z||Is(N,L,!1,h,Np,B))?O.preventDefault():B.previousKeyMatched=!1}y&&y(O)},T=Gt(E,a);let M=-1;v.Children.forEach(u,(O,N)=>{if(!v.isValidElement(O)){M===N&&(M+=1,M>=u.length&&(M=-1));return}O.props.disabled||(b==="selectedMenu"&&O.props.selected||M===-1)&&(M=N),M===N&&(O.props.disabled||O.props.muiSkipListHighlight||O.type.muiSkipListHighlight)&&(M+=1,M>=u.length&&(M=-1))});const j=v.Children.map(u,(O,N)=>{if(N===M){const A={};return c&&(A.autoFocus=!0),O.props.tabIndex===void 0&&b==="selectedMenu"&&(A.tabIndex=0),v.cloneElement(O,A)}return O});return p.jsx(wS,{role:"menu",ref:T,className:d,onKeyDown:w,tabIndex:s?0:-1,...x,children:j})});function Hk(e){return ke("MuiPopover",e)}Oe("MuiPopover",["root","paper"]);function ix(e,n){let a=0;return typeof n=="number"?a=n:n==="center"?a=e.height/2:n==="bottom"&&(a=e.height),a}function sx(e,n){let a=0;return typeof n=="number"?a=n:n==="center"?a=e.width/2:n==="right"&&(a=e.width),a}function lx(e){return[e.horizontal,e.vertical].map(n=>typeof n=="number"?`${n}px`:n).join(" ")}function Ic(e){return typeof e=="function"?e():e}const Vk=e=>{const{classes:n}=e;return Ne({root:["root"],paper:["paper"]},Hk,n)},qk=fe(gS,{name:"MuiPopover",slot:"Root"})({}),TS=fe(An,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Gk=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiPopover"}),{action:s,anchorEl:c,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:h="anchorEl",children:g,className:y,container:b,elevation:x=8,marginThreshold:E=16,open:S,PaperProps:w={},slots:T={},slotProps:M={},transformOrigin:j={vertical:"top",horizontal:"left"},TransitionComponent:O,transitionDuration:N="auto",TransitionProps:A={},disableScrollLock:z=!1,...L}=o,B=v.useRef(),V={...o,anchorOrigin:u,anchorReference:h,elevation:x,marginThreshold:E,transformOrigin:j,TransitionComponent:O,transitionDuration:N,TransitionProps:A},X=Vk(V),Z=v.useCallback(()=>{if(h==="anchorPosition")return d;const je=Ic(c),Ge=(je&&je.nodeType===1?je:Rn(B.current).body).getBoundingClientRect();return{top:Ge.top+ix(Ge,u.vertical),left:Ge.left+sx(Ge,u.horizontal)}},[c,u.horizontal,u.vertical,d,h]),R=v.useCallback(je=>({vertical:ix(je,j.vertical),horizontal:sx(je,j.horizontal)}),[j.horizontal,j.vertical]),G=v.useCallback(je=>{const Ue={width:je.offsetWidth,height:je.offsetHeight},Ge=R(Ue);if(h==="none")return{top:null,left:null,transformOrigin:lx(Ge)};const Ye=Z();let De=Ye.top-Ge.vertical,nt=Ye.left-Ge.horizontal;const Yt=De+Ue.height,it=nt+Ue.width,wt=hr(Ic(c)),mt=wt.innerHeight-E,$=wt.innerWidth-E;if(E!==null&&De<E){const Y=De-E;De-=Y,Ge.vertical+=Y}else if(E!==null&&Yt>mt){const Y=Yt-mt;De-=Y,Ge.vertical+=Y}if(E!==null&&nt<E){const Y=nt-E;nt-=Y,Ge.horizontal+=Y}else if(it>$){const Y=it-$;nt-=Y,Ge.horizontal+=Y}return{top:`${Math.round(De)}px`,left:`${Math.round(nt)}px`,transformOrigin:lx(Ge)}},[c,h,Z,R,E]),[F,q]=v.useState(S),D=v.useCallback(()=>{const je=B.current;if(!je)return;const Ue=G(je);Ue.top!==null&&je.style.setProperty("top",Ue.top),Ue.left!==null&&(je.style.left=Ue.left),je.style.transformOrigin=Ue.transformOrigin,q(!0)},[G]);v.useEffect(()=>(z&&window.addEventListener("scroll",D),()=>window.removeEventListener("scroll",D)),[c,z,D]);const I=()=>{D()},H=()=>{q(!1)};v.useEffect(()=>{S&&D()}),v.useImperativeHandle(s,()=>S?{updatePosition:()=>{D()}}:null,[S,D]),v.useEffect(()=>{if(!S)return;const je=sm(()=>{D()}),Ue=hr(Ic(c));return Ue.addEventListener("resize",je),()=>{je.clear(),Ue.removeEventListener("resize",je)}},[c,S,D]);let W=N;const _={slots:{transition:O,...T},slotProps:{transition:A,paper:w,...M}},[J,ue]=He("transition",{elementType:fu,externalForwardedProps:_,ownerState:V,getSlotProps:je=>({...je,onEntering:(Ue,Ge)=>{je.onEntering?.(Ue,Ge),I()},onExited:Ue=>{je.onExited?.(Ue),H()}}),additionalProps:{appear:!0,in:S}});N==="auto"&&!J.muiSupportAuto&&(W=void 0);const oe=b||(c?Rn(Ic(c)).body:void 0),[pe,{slots:be,slotProps:ae,...Ee}]=He("root",{ref:a,elementType:qk,externalForwardedProps:{..._,...L},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:T.backdrop},slotProps:{backdrop:iS(typeof M.backdrop=="function"?M.backdrop(V):M.backdrop,{invisible:!0})},container:oe,open:S},ownerState:V,className:Ce(X.root,y)}),[Ae,Ie]=He("paper",{ref:B,className:X.paper,elementType:TS,externalForwardedProps:_,shouldForwardComponentProp:!0,additionalProps:{elevation:x,style:F?void 0:{opacity:0}},ownerState:V});return p.jsx(pe,{...Ee,...!Ri(pe)&&{slots:be,slotProps:ae,disableScrollLock:z},children:p.jsx(J,{...ue,timeout:W,children:p.jsx(Ae,{...Ie,children:g})})})});function Wk(e){return ke("MuiMenu",e)}Oe("MuiMenu",["root","paper","list"]);const Yk={vertical:"top",horizontal:"right"},Kk={vertical:"top",horizontal:"left"},Qk=e=>{const{classes:n}=e;return Ne({root:["root"],paper:["paper"],list:["list"]},Wk,n)},Xk=fe(Gk,{shouldForwardProp:e=>jn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Zk=fe(TS,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Jk=fe(Uk,{name:"MuiMenu",slot:"List"})({outline:0}),e6=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiMenu"}),{autoFocus:s=!0,children:c,className:u,disableAutoFocusItem:d=!1,MenuListProps:h={},onClose:g,open:y,PaperProps:b={},PopoverClasses:x,transitionDuration:E="auto",TransitionProps:{onEntering:S,...w}={},variant:T="selectedMenu",slots:M={},slotProps:j={},...O}=o,N=k1(),A={...o,autoFocus:s,disableAutoFocusItem:d,MenuListProps:h,onEntering:S,PaperProps:b,transitionDuration:E,TransitionProps:w,variant:T},z=Qk(A),L=s&&!d&&y,B=v.useRef(null),V=(W,_)=>{B.current&&B.current.adjustStyleForScrollbar(W,{direction:N?"rtl":"ltr"}),S&&S(W,_)},X=W=>{W.key==="Tab"&&(W.preventDefault(),g&&g(W,"tabKeyDown"))};let Z=-1;v.Children.map(c,(W,_)=>{v.isValidElement(W)&&(W.props.disabled||(T==="selectedMenu"&&W.props.selected||Z===-1)&&(Z=_))});const R={slots:M,slotProps:{list:h,transition:w,paper:b,...j}},G=IA({elementType:M.root,externalSlotProps:j.root,ownerState:A,className:[z.root,u]}),[F,q]=He("paper",{className:z.paper,elementType:Zk,externalForwardedProps:R,shouldForwardComponentProp:!0,ownerState:A}),[D,I]=He("list",{className:Ce(z.list,h.className),elementType:Jk,shouldForwardComponentProp:!0,externalForwardedProps:R,getSlotProps:W=>({...W,onKeyDown:_=>{X(_),W.onKeyDown?.(_)}}),ownerState:A}),H=typeof R.slotProps.transition=="function"?R.slotProps.transition(A):R.slotProps.transition;return p.jsx(Xk,{onClose:g,anchorOrigin:{vertical:"bottom",horizontal:N?"right":"left"},transformOrigin:N?Yk:Kk,slots:{root:M.root,paper:F,backdrop:M.backdrop,...M.transition&&{transition:M.transition}},slotProps:{root:G,paper:q,backdrop:typeof j.backdrop=="function"?j.backdrop(A):j.backdrop,transition:{...H,onEntering:(...W)=>{V(...W),H?.onEntering?.(...W)}}},open:y,ref:a,transitionDuration:E,ownerState:A,...O,classes:x,children:p.jsx(D,{actions:B,autoFocus:s&&(Z===-1||d),autoFocusItem:L,variant:T,...I,children:c})})});function t6(e){return ke("MuiMenuItem",e)}const Fs=Oe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),n6=(e,n)=>{const{ownerState:a}=e;return[n.root,a.dense&&n.dense,a.divider&&n.divider,!a.disableGutters&&n.gutters]},r6=e=>{const{disabled:n,dense:a,divider:o,disableGutters:s,selected:c,classes:u}=e,h=Ne({root:["root",a&&"dense",n&&"disabled",!s&&"gutters",o&&"divider",c&&"selected"]},t6,u);return{...u,...h}},a6=fe(Ti,{shouldForwardProp:e=>jn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:n6})($e(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Fs.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Fs.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Fs.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Fs.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Fs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Kv.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Kv.inset}`]:{marginLeft:52},[`& .${bi.root}`]:{marginTop:0,marginBottom:0},[`& .${bi.inset}`]:{paddingLeft:36},[`& .${nx.root}`]:{minWidth:36},variants:[{props:({ownerState:n})=>!n.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:n})=>n.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:n})=>!n.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:n})=>n.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${nx.root} svg`]:{fontSize:"1.25rem"}}}]}))),Ia=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiMenuItem"}),{autoFocus:s=!1,component:c="li",dense:u=!1,divider:d=!1,disableGutters:h=!1,focusVisibleClassName:g,role:y="menuitem",tabIndex:b,className:x,...E}=o,S=v.useContext(na),w=v.useMemo(()=>({dense:u||S.dense||!1,disableGutters:h}),[S.dense,u,h]),T=v.useRef(null);_r(()=>{s&&T.current&&T.current.focus()},[s]);const M={...o,dense:w.dense,divider:d,disableGutters:h},j=r6(o),O=Gt(T,a);let N;return o.disabled||(N=b!==void 0?b:-1),p.jsx(na.Provider,{value:w,children:p.jsx(a6,{ref:O,role:y,tabIndex:N,component:c,focusVisibleClassName:Ce(j.focusVisible,g),className:Ce(j.root,x),...E,ownerState:M,classes:j})})});function o6(e){return ke("MuiNativeSelect",e)}const xm=Oe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),i6=e=>{const{classes:n,variant:a,disabled:o,multiple:s,open:c,error:u}=e,d={select:["select",a,o&&"disabled",s&&"multiple",u&&"error"],icon:["icon",`icon${he(a)}`,c&&"iconOpen",o&&"disabled"]};return Ne(d,o6,n)},AS=fe("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${xm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:n})=>n.variant!=="filled"&&n.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),s6=fe(AS,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:jn,overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.select,n[a.variant],a.error&&n.error,{[`&.${xm.multiple}`]:n.multiple}]}})({}),jS=fe("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${xm.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:n})=>n.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),l6=fe(jS,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.icon,a.variant&&n[`icon${he(a.variant)}`],a.open&&n.iconOpen]}})({}),c6=v.forwardRef(function(n,a){const{className:o,disabled:s,error:c,IconComponent:u,inputRef:d,variant:h="standard",...g}=n,y={...n,disabled:s,variant:h,error:c},b=i6(y);return p.jsxs(v.Fragment,{children:[p.jsx(s6,{ownerState:y,className:Ce(b.select,o),disabled:s,ref:d||a,...g}),n.multiple?null:p.jsx(l6,{as:u,ownerState:y,className:b.icon})]})});var cx;const u6=fe("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:jn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),d6=fe("legend",{name:"MuiNotchedOutlined",shouldForwardProp:jn})($e(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:n})=>!n.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:n})=>n.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:n})=>n.withLabel&&n.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function f6(e){const{children:n,classes:a,className:o,label:s,notched:c,...u}=e,d=s!=null&&s!=="",h={...e,notched:c,withLabel:d};return p.jsx(u6,{"aria-hidden":!0,className:o,ownerState:h,...u,children:p.jsx(d6,{ownerState:h,children:d?p.jsx("span",{children:s}):cx||(cx=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const p6=e=>{const{classes:n}=e,o=Ne({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},tj,n);return{...n,...o}},h6=fe(Hu,{shouldForwardProp:e=>jn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Fu})($e(({theme:e})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Er.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Er.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):n}},[`&.${Er.focused} .${Er.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(At()).map(([a])=>({props:{color:a},style:{[`&.${Er.focused} .${Er.notchedOutline}`]:{borderColor:(e.vars||e).palette[a].main}}})),{props:{},style:{[`&.${Er.error} .${Er.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Er.disabled} .${Er.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:14}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:14}},{props:({ownerState:a})=>a.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:a,size:o})=>a.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),m6=fe(f6,{name:"MuiOutlinedInput",slot:"NotchedOutline"})($e(({theme:e})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):n}})),g6=fe(Vu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Uu})($e(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:n})=>n.multiline,style:{padding:0}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:0}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:0}}]}))),xl=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiOutlinedInput"}),{components:s={},fullWidth:c=!1,inputComponent:u="input",label:d,multiline:h=!1,notched:g,slots:y={},slotProps:b={},type:x="text",...E}=o,S=p6(o),w=Ua(),T=wo({props:o,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),M={...o,color:T.color||"primary",disabled:T.disabled,error:T.error,focused:T.focused,formControl:w,fullWidth:c,hiddenLabel:T.hiddenLabel,multiline:h,size:T.size,type:x},j=y.root??s.Root??h6,O=y.input??s.Input??g6,[N,A]=He("notchedOutline",{elementType:m6,className:S.notchedOutline,shouldForwardComponentProp:!0,ownerState:M,externalForwardedProps:{slots:y,slotProps:b},additionalProps:{label:d!=null&&d!==""&&T.required?p.jsxs(v.Fragment,{children:[d," ","*"]}):d}});return p.jsx(hm,{slots:{root:j,input:O},slotProps:b,renderSuffix:z=>p.jsx(N,{...A,notched:typeof g<"u"?g:!!(z.startAdornment||z.filled||z.focused)}),fullWidth:c,inputComponent:u,multiline:h,ref:a,type:x,...E,classes:{...S,notchedOutline:null}})});xl.muiName="Input";function MS(e){return ke("MuiSelect",e)}const Us=Oe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var ux;const y6=fe(AS,{name:"MuiSelect",slot:"Select",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[{[`&.${Us.select}`]:n.select},{[`&.${Us.select}`]:n[a.variant]},{[`&.${Us.error}`]:n.error},{[`&.${Us.multiple}`]:n.multiple}]}})({[`&.${Us.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),b6=fe(jS,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.icon,a.variant&&n[`icon${he(a.variant)}`],a.open&&n.iconOpen]}})({}),v6=fe("input",{shouldForwardProp:e=>U1(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function dx(e,n){return typeof n=="object"&&n!==null?e===n:String(e)===String(n)}function x6(e){return e==null||typeof e=="string"&&!e.trim()}const S6=e=>{const{classes:n,variant:a,disabled:o,multiple:s,open:c,error:u}=e,d={select:["select",a,o&&"disabled",s&&"multiple",u&&"error"],icon:["icon",`icon${he(a)}`,c&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return Ne(d,MS,n)},C6=v.forwardRef(function(n,a){const{"aria-describedby":o,"aria-label":s,autoFocus:c,autoWidth:u,children:d,className:h,defaultOpen:g,defaultValue:y,disabled:b,displayEmpty:x,error:E=!1,IconComponent:S,inputRef:w,labelId:T,MenuProps:M={},multiple:j,name:O,onBlur:N,onChange:A,onClose:z,onFocus:L,onOpen:B,open:V,readOnly:X,renderValue:Z,required:R,SelectDisplayProps:G={},tabIndex:F,type:q,value:D,variant:I="standard",...H}=n,[W,_]=sh({controlled:D,default:y,name:"Select"}),[J,ue]=sh({controlled:V,default:g,name:"Select"}),oe=v.useRef(null),pe=v.useRef(null),[be,ae]=v.useState(null),{current:Ee}=v.useRef(V!=null),[Ae,Ie]=v.useState(),je=Gt(a,w),Ue=v.useCallback(Me=>{pe.current=Me,Me&&ae(Me)},[]),Ge=be?.parentNode;v.useImperativeHandle(je,()=>({focus:()=>{pe.current.focus()},node:oe.current,value:W}),[W]),v.useEffect(()=>{g&&J&&be&&!Ee&&(Ie(u?null:Ge.clientWidth),pe.current.focus())},[be,u]),v.useEffect(()=>{c&&pe.current.focus()},[c]),v.useEffect(()=>{if(!T)return;const Me=Rn(pe.current).getElementById(T);if(Me){const at=()=>{getSelection().isCollapsed&&pe.current.focus()};return Me.addEventListener("click",at),()=>{Me.removeEventListener("click",at)}}},[T]);const Ye=(Me,at)=>{Me?B&&B(at):z&&z(at),Ee||(Ie(u?null:Ge.clientWidth),ue(Me))},De=Me=>{Me.button===0&&(Me.preventDefault(),pe.current.focus(),Ye(!0,Me))},nt=Me=>{Ye(!1,Me)},Yt=v.Children.toArray(d),it=Me=>{const at=Yt.find(Et=>Et.props.value===Me.target.value);at!==void 0&&(_(at.props.value),A&&A(Me,at))},wt=Me=>at=>{let Et;if(at.currentTarget.hasAttribute("tabindex")){if(j){Et=Array.isArray(W)?W.slice():[];const lr=W.indexOf(Me.props.value);lr===-1?Et.push(Me.props.value):Et.splice(lr,1)}else Et=Me.props.value;if(Me.props.onClick&&Me.props.onClick(at),W!==Et&&(_(Et),A)){const lr=at.nativeEvent||at,$i=new lr.constructor(lr.type,lr);Object.defineProperty($i,"target",{writable:!0,value:{value:Et,name:O}}),A($i,Me)}j||Ye(!1,at)}},mt=Me=>{X||[" ","ArrowUp","ArrowDown","Enter"].includes(Me.key)&&(Me.preventDefault(),Ye(!0,Me))},$=be!==null&&J,Y=Me=>{!$&&N&&(Object.defineProperty(Me,"target",{writable:!0,value:{value:W,name:O}}),N(Me))};delete H["aria-invalid"];let K,ve;const ge=[];let ye=!1;(uu({value:W})||x)&&(Z?K=Z(W):ye=!0);const Se=Yt.map(Me=>{if(!v.isValidElement(Me))return null;let at;if(j){if(!Array.isArray(W))throw new Error(aa(2));at=W.some(Et=>dx(Et,Me.props.value)),at&&ye&&ge.push(Me.props.children)}else at=dx(W,Me.props.value),at&&ye&&(ve=Me.props.children);return v.cloneElement(Me,{"aria-selected":at?"true":"false",onClick:wt(Me),onKeyUp:Et=>{Et.key===" "&&Et.preventDefault(),Me.props.onKeyUp&&Me.props.onKeyUp(Et)},role:"option",selected:at,value:void 0,"data-value":Me.props.value})});ye&&(j?ge.length===0?K=null:K=ge.reduce((Me,at,Et)=>(Me.push(at),Et<ge.length-1&&Me.push(", "),Me),[]):K=ve);let Re=Ae;!u&&Ee&&be&&(Re=Ge.clientWidth);let Le;typeof F<"u"?Le=F:Le=b?null:0;const Ve=G.id||(O?`mui-component-select-${O}`:void 0),Ft={...n,variant:I,value:W,open:$,error:E},Xe=S6(Ft),yr={...M.PaperProps,...typeof M.slotProps?.paper=="function"?M.slotProps.paper(Ft):M.slotProps?.paper},Mn={...M.MenuListProps,...typeof M.slotProps?.list=="function"?M.slotProps.list(Ft):M.slotProps?.list},sr=Ni();return p.jsxs(v.Fragment,{children:[p.jsx(y6,{as:"div",ref:Ue,tabIndex:Le,role:"combobox","aria-controls":$?sr:void 0,"aria-disabled":b?"true":void 0,"aria-expanded":$?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[T,Ve].filter(Boolean).join(" ")||void 0,"aria-describedby":o,"aria-required":R?"true":void 0,"aria-invalid":E?"true":void 0,onKeyDown:mt,onMouseDown:b||X?null:De,onBlur:Y,onFocus:L,...G,ownerState:Ft,className:Ce(G.className,Xe.select,h),id:Ve,children:x6(K)?ux||(ux=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):K}),p.jsx(v6,{"aria-invalid":E,value:Array.isArray(W)?W.join(","):W,name:O,ref:oe,"aria-hidden":!0,onChange:it,tabIndex:-1,disabled:b,className:Xe.nativeInput,autoFocus:c,required:R,...H,ownerState:Ft}),p.jsx(b6,{as:S,className:Xe.icon,ownerState:Ft}),p.jsx(e6,{id:`menu-${O||""}`,anchorEl:Ge,open:$,onClose:nt,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...M,slotProps:{...M.slotProps,list:{"aria-labelledby":T,role:"listbox","aria-multiselectable":j?"true":void 0,disableListWrap:!0,id:sr,...Mn},paper:{...yr,style:{minWidth:Re,...yr!=null?yr.style:null}}},children:Se})]})}),w6=e=>{const{classes:n}=e,o=Ne({root:["root"]},MS,n);return{...n,...o}},Sm={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>jn(e)&&e!=="variant"},E6=fe(ym,Sm)(""),R6=fe(xl,Sm)(""),T6=fe(gm,Sm)(""),Eo=v.forwardRef(function(n,a){const o=ze({name:"MuiSelect",props:n}),{autoWidth:s=!1,children:c,classes:u={},className:d,defaultOpen:h=!1,displayEmpty:g=!1,IconComponent:y=rj,id:b,input:x,inputProps:E,label:S,labelId:w,MenuProps:T,multiple:M=!1,native:j=!1,onClose:O,onOpen:N,open:A,renderValue:z,SelectDisplayProps:L,variant:B="outlined",...V}=o,X=j?c6:C6,Z=Ua(),R=wo({props:o,muiFormControl:Z,states:["variant","error"]}),G=R.variant||B,F={...o,variant:G,classes:u},q=w6(F),{root:D,...I}=q,H=x||{standard:p.jsx(E6,{ownerState:F}),outlined:p.jsx(R6,{label:S,ownerState:F}),filled:p.jsx(T6,{ownerState:F})}[G],W=Gt(a,Co(H));return p.jsx(v.Fragment,{children:v.cloneElement(H,{inputComponent:X,inputProps:{children:c,error:R.error,IconComponent:y,variant:G,type:void 0,multiple:M,...j?{id:b}:{autoWidth:s,defaultOpen:h,displayEmpty:g,labelId:w,MenuProps:T,onClose:O,onOpen:N,open:A,renderValue:z,SelectDisplayProps:{id:b,...L}},...E,classes:E?pn(I,E.classes):I,...x?x.props.inputProps:{}},...(M&&j||g)&&G==="outlined"?{notched:!0}:{},ref:W,className:Ce(H.props.className,d,q.root),...!x&&{variant:G},...V})})});Eo.muiName="Select";function A6(e){return ke("MuiSkeleton",e)}Oe("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const j6=e=>{const{classes:n,variant:a,animation:o,hasChildren:s,width:c,height:u}=e;return Ne({root:["root",a,o,s&&"withChildren",s&&!c&&"fitContent",s&&!u&&"heightAuto"]},A6,n)},vh=ar`
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
`,xh=ar`
  0% {
    transform: translateX(-100%);
  }

  50% {
    /* +0.5s of delay between each loop */
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
`,M6=typeof vh!="string"?Fa`
        animation: ${vh} 2s ease-in-out 0.5s infinite;
      `:null,k6=typeof xh!="string"?Fa`
        &::after {
          animation: ${xh} 2s linear 0.5s infinite;
        }
      `:null,O6=fe("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[a.variant],a.animation!==!1&&n[a.animation],a.hasChildren&&n.withChildren,a.hasChildren&&!a.width&&n.fitContent,a.hasChildren&&!a.height&&n.heightAuto]}})($e(({theme:e})=>{const n=t4(e.shape.borderRadius)||"px",a=n4(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${a}${n}/${Math.round(a/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:o})=>o.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:o})=>o.hasChildren&&!o.width,style:{maxWidth:"fit-content"}},{props:({ownerState:o})=>o.hasChildren&&!o.height,style:{height:"auto"}},{props:{animation:"pulse"},style:M6||{animation:`${vh} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
                90deg,
                transparent,
                ${(e.vars||e).palette.action.hover},
                transparent
              )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:k6||{"&::after":{animation:`${xh} 2s linear 0.5s infinite`}}}]}})),_p=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiSkeleton"}),{animation:s="pulse",className:c,component:u="span",height:d,style:h,variant:g="text",width:y,...b}=o,x={...o,animation:s,component:u,variant:g,hasChildren:!!b.children},E=j6(x);return p.jsx(O6,{as:u,ref:a,className:Ce(E.root,c),ownerState:x,...b,style:{width:y,height:d,...h}})});function N6(e={}){const{autoHideDuration:n=null,disableWindowBlurListener:a=!1,onClose:o,open:s,resumeHideDuration:c}=e,u=Iu();v.useEffect(()=>{if(!s)return;function M(j){j.defaultPrevented||j.key==="Escape"&&o?.(j,"escapeKeyDown")}return document.addEventListener("keydown",M),()=>{document.removeEventListener("keydown",M)}},[s,o]);const d=Nr((M,j)=>{o?.(M,j)}),h=Nr(M=>{!o||M==null||u.start(M,()=>{d(null,"timeout")})});v.useEffect(()=>(s&&h(n),u.clear),[s,n,h,u]);const g=M=>{o?.(M,"clickaway")},y=u.clear,b=v.useCallback(()=>{n!=null&&h(c??n*.5)},[n,c,h]),x=M=>j=>{const O=M.onBlur;O?.(j),b()},E=M=>j=>{const O=M.onFocus;O?.(j),y()},S=M=>j=>{const O=M.onMouseEnter;O?.(j),y()},w=M=>j=>{const O=M.onMouseLeave;O?.(j),b()};return v.useEffect(()=>{if(!a&&s)return window.addEventListener("focus",b),window.addEventListener("blur",y),()=>{window.removeEventListener("focus",b),window.removeEventListener("blur",y)}},[a,s,b,y]),{getRootProps:(M={})=>{const j={...su(e),...su(M)};return{role:"presentation",...M,...j,onBlur:x(j),onFocus:E(j),onMouseEnter:S(j),onMouseLeave:w(j)}},onClickAway:g}}function _6(e){return ke("MuiSnackbarContent",e)}Oe("MuiSnackbarContent",["root","message","action"]);const z6=e=>{const{classes:n}=e;return Ne({root:["root"],action:["action"],message:["message"]},_6,n)},D6=fe(An,{name:"MuiSnackbarContent",slot:"Root"})($e(({theme:e})=>{const n=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(th(e.palette.background.default,n)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:th(e.palette.background.default,n),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),L6=fe("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),P6=fe("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),$6=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiSnackbarContent"}),{action:s,className:c,message:u,role:d="alert",...h}=o,g=o,y=z6(g);return p.jsxs(D6,{role:d,elevation:6,className:Ce(y.root,c),ownerState:g,ref:a,...h,children:[p.jsx(L6,{className:y.message,ownerState:g,children:u}),s?p.jsx(P6,{className:y.action,ownerState:g,children:s}):null]})});function B6(e){return ke("MuiSnackbar",e)}Oe("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const I6=e=>{const{classes:n,anchorOrigin:a}=e,o={root:["root",`anchorOrigin${he(a.vertical)}${he(a.horizontal)}`]};return Ne(o,B6,n)},F6=fe("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[`anchorOrigin${he(a.anchorOrigin.vertical)}${he(a.anchorOrigin.horizontal)}`]]}})($e(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:n})=>n.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:n})=>n.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:n})=>n.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:n})=>n.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:n})=>n.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),kS=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiSnackbar"}),s=sa(),c={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{action:u,anchorOrigin:{vertical:d,horizontal:h}={vertical:"bottom",horizontal:"left"},autoHideDuration:g=null,children:y,className:b,ClickAwayListenerProps:x,ContentProps:E,disableWindowBlurListener:S=!1,message:w,onBlur:T,onClose:M,onFocus:j,onMouseEnter:O,onMouseLeave:N,open:A,resumeHideDuration:z,slots:L={},slotProps:B={},TransitionComponent:V,transitionDuration:X=c,TransitionProps:{onEnter:Z,onExited:R,...G}={},...F}=o,q={...o,anchorOrigin:{vertical:d,horizontal:h},autoHideDuration:g,disableWindowBlurListener:S,TransitionComponent:V,transitionDuration:X},D=I6(q),{getRootProps:I,onClickAway:H}=N6({...q}),[W,_]=v.useState(!0),J=Ye=>{_(!0),R&&R(Ye)},ue=(Ye,De)=>{_(!1),Z&&Z(Ye,De)},oe={slots:{transition:V,...L},slotProps:{content:E,clickAwayListener:x,transition:G,...B}},[pe,be]=He("root",{ref:a,className:[D.root,b],elementType:F6,getSlotProps:I,externalForwardedProps:{...oe,...F},ownerState:q}),[ae,{ownerState:Ee,...Ae}]=He("clickAwayListener",{elementType:Kj,externalForwardedProps:oe,getSlotProps:Ye=>({onClickAway:(...De)=>{const nt=De[0];Ye.onClickAway?.(...De),!nt?.defaultMuiPrevented&&H(...De)}}),ownerState:q}),[Ie,je]=He("content",{elementType:$6,shouldForwardComponentProp:!0,externalForwardedProps:oe,additionalProps:{message:w,action:u},ownerState:q}),[Ue,Ge]=He("transition",{elementType:fu,externalForwardedProps:oe,getSlotProps:Ye=>({onEnter:(...De)=>{Ye.onEnter?.(...De),ue(...De)},onExited:(...De)=>{Ye.onExited?.(...De),J(...De)}}),additionalProps:{appear:!0,in:A,timeout:X,direction:d==="top"?"down":"up"},ownerState:q});return!A&&W?null:p.jsx(ae,{...Ae,...L.clickAwayListener&&{ownerState:Ee},children:p.jsx(pe,{...be,children:p.jsx(Ue,{...Ge,children:y||p.jsx(Ie,{...je})})})})}),qu=v.createContext({}),Cm=v.createContext({});function U6(e){return ke("MuiStep",e)}Oe("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const H6=e=>{const{classes:n,orientation:a,alternativeLabel:o,completed:s}=e;return Ne({root:["root",a,o&&"alternativeLabel",s&&"completed"]},U6,n)},V6=fe("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[a.orientation],a.alternativeLabel&&n.alternativeLabel,a.completed&&n.completed]}})({variants:[{props:{orientation:"horizontal"},style:{paddingLeft:8,paddingRight:8}},{props:{alternativeLabel:!0},style:{flex:1,position:"relative"}}]}),q6=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiStep"}),{active:s,children:c,className:u,component:d="div",completed:h,disabled:g,expanded:y=!1,index:b,last:x,...E}=o,{activeStep:S,connector:w,alternativeLabel:T,orientation:M,nonLinear:j}=v.useContext(qu);let[O=!1,N=!1,A=!1]=[s,h,g];S===b?O=s!==void 0?s:!0:!j&&S>b?N=h!==void 0?h:!0:!j&&S<b&&(A=g!==void 0?g:!0);const z=v.useMemo(()=>({index:b,last:x,expanded:y,icon:b+1,active:O,completed:N,disabled:A}),[b,x,y,O,N,A]),L={...o,active:O,orientation:M,alternativeLabel:T,completed:N,disabled:A,expanded:y,component:d},B=H6(L),V=p.jsxs(V6,{as:d,className:Ce(B.root,u),ref:a,ownerState:L,...E,children:[w&&T&&b!==0?w:null,c]});return p.jsx(Cm.Provider,{value:z,children:w&&!T&&b!==0?p.jsxs(v.Fragment,{children:[w,V]}):V})}),G6=tt(p.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"})),W6=tt(p.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}));function Y6(e){return ke("MuiStepIcon",e)}const zp=Oe("MuiStepIcon",["root","active","completed","error","text"]);var fx;const K6=e=>{const{classes:n,active:a,completed:o,error:s}=e;return Ne({root:["root",a&&"active",o&&"completed",s&&"error"],text:["text"]},Y6,n)},Dp=fe(au,{name:"MuiStepIcon",slot:"Root"})($e(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${zp.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${zp.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${zp.error}`]:{color:(e.vars||e).palette.error.main}}))),Q6=fe("text",{name:"MuiStepIcon",slot:"Text"})($e(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),X6=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiStepIcon"}),{active:s=!1,className:c,completed:u=!1,error:d=!1,icon:h,...g}=o,y={...o,active:s,completed:u,error:d},b=K6(y);if(typeof h=="number"||typeof h=="string"){const x=Ce(c,b.root);return d?p.jsx(Dp,{as:W6,className:x,ref:a,ownerState:y,...g}):u?p.jsx(Dp,{as:G6,className:x,ref:a,ownerState:y,...g}):p.jsxs(Dp,{className:x,ref:a,ownerState:y,...g,children:[fx||(fx=p.jsx("circle",{cx:"12",cy:"12",r:"12"})),p.jsx(Q6,{className:b.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:y,children:h})]})}return h});function Z6(e){return ke("MuiStepLabel",e)}const za=Oe("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),J6=e=>{const{classes:n,orientation:a,active:o,completed:s,error:c,disabled:u,alternativeLabel:d}=e;return Ne({root:["root",a,c&&"error",u&&"disabled",d&&"alternativeLabel"],label:["label",o&&"active",s&&"completed",c&&"error",u&&"disabled",d&&"alternativeLabel"],iconContainer:["iconContainer",o&&"active",s&&"completed",c&&"error",u&&"disabled",d&&"alternativeLabel"],labelContainer:["labelContainer",d&&"alternativeLabel"]},Z6,n)},eO=fe("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[a.orientation]]}})({display:"flex",alignItems:"center",[`&.${za.alternativeLabel}`]:{flexDirection:"column"},[`&.${za.disabled}`]:{cursor:"default"},variants:[{props:{orientation:"vertical"},style:{textAlign:"left",padding:"8px 0"}}]}),tO=fe("span",{name:"MuiStepLabel",slot:"Label"})($e(({theme:e})=>({...e.typography.body2,display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${za.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${za.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${za.alternativeLabel}`]:{marginTop:16},[`&.${za.error}`]:{color:(e.vars||e).palette.error.main}}))),nO=fe("span",{name:"MuiStepLabel",slot:"IconContainer"})({flexShrink:0,display:"flex",paddingRight:8,[`&.${za.alternativeLabel}`]:{paddingRight:0}}),rO=fe("span",{name:"MuiStepLabel",slot:"LabelContainer"})($e(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${za.alternativeLabel}`]:{textAlign:"center"}}))),OS=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiStepLabel"}),{children:s,className:c,componentsProps:u={},error:d=!1,icon:h,optional:g,slots:y={},slotProps:b={},StepIconComponent:x,StepIconProps:E,...S}=o,{alternativeLabel:w,orientation:T}=v.useContext(qu),{active:M,disabled:j,completed:O,icon:N}=v.useContext(Cm),A=h||N;let z=x;A&&!z&&(z=X6);const L={...o,active:M,alternativeLabel:w,completed:O,disabled:j,error:d,orientation:T},B=J6(L),V={slots:y,slotProps:{stepIcon:E,...u,...b}},[X,Z]=He("root",{elementType:eO,externalForwardedProps:{...V,...S},ownerState:L,ref:a,className:Ce(B.root,c)}),[R,G]=He("label",{elementType:tO,externalForwardedProps:V,ownerState:L}),[F,q]=He("stepIcon",{elementType:z,externalForwardedProps:V,ownerState:L});return p.jsxs(X,{...Z,children:[A||F?p.jsx(nO,{className:B.iconContainer,ownerState:L,children:p.jsx(F,{completed:O,active:M,error:d,icon:A,...q})}):null,p.jsxs(rO,{className:B.labelContainer,ownerState:L,children:[s?p.jsx(R,{...G,className:Ce(B.label,G?.className),children:s}):null,g]})]})});OS.muiName="StepLabel";function aO(e){return ke("MuiStepConnector",e)}Oe("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const oO=e=>{const{classes:n,orientation:a,alternativeLabel:o,active:s,completed:c,disabled:u}=e,d={root:["root",a,o&&"alternativeLabel",s&&"active",c&&"completed",u&&"disabled"],line:["line",`line${he(a)}`]};return Ne(d,aO,n)},iO=fe("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[a.orientation],a.alternativeLabel&&n.alternativeLabel,a.completed&&n.completed]}})({flex:"1 1 auto",variants:[{props:{orientation:"vertical"},style:{marginLeft:12}},{props:{alternativeLabel:!0},style:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}}]}),sO=fe("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.line,n[`line${he(a.orientation)}`]]}})($e(({theme:e})=>{const n=e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600];return{display:"block",borderColor:e.vars?e.vars.palette.StepConnector.border:n,variants:[{props:{orientation:"horizontal"},style:{borderTopStyle:"solid",borderTopWidth:1}},{props:{orientation:"vertical"},style:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}]}})),lO=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiStepConnector"}),{className:s,...c}=o,{alternativeLabel:u,orientation:d="horizontal"}=v.useContext(qu),{active:h,disabled:g,completed:y}=v.useContext(Cm),b={...o,alternativeLabel:u,orientation:d,active:h,completed:y,disabled:g},x=oO(b);return p.jsx(iO,{className:Ce(x.root,s),ref:a,ownerState:b,...c,children:p.jsx(sO,{className:x.line,ownerState:b})})});function cO(e){return ke("MuiStepper",e)}Oe("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const uO=e=>{const{orientation:n,nonLinear:a,alternativeLabel:o,classes:s}=e;return Ne({root:["root",n,a&&"nonLinear",o&&"alternativeLabel"]},cO,s)},dO=fe("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[a.orientation],a.alternativeLabel&&n.alternativeLabel,a.nonLinear&&n.nonLinear]}})({display:"flex",variants:[{props:{orientation:"horizontal"},style:{flexDirection:"row",alignItems:"center"}},{props:{orientation:"vertical"},style:{flexDirection:"column"}},{props:{alternativeLabel:!0},style:{alignItems:"flex-start"}}]}),fO=p.jsx(lO,{}),pO=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiStepper"}),{activeStep:s=0,alternativeLabel:c=!1,children:u,className:d,component:h="div",connector:g=fO,nonLinear:y=!1,orientation:b="horizontal",...x}=o,E={...o,nonLinear:y,alternativeLabel:c,orientation:b,component:h},S=uO(E),w=v.Children.toArray(u).filter(Boolean),T=w.map((j,O)=>v.cloneElement(j,{index:O,last:O+1===w.length,...j.props})),M=v.useMemo(()=>({activeStep:s,alternativeLabel:c,connector:g,nonLinear:y,orientation:b}),[s,c,g,y,b]);return p.jsx(qu.Provider,{value:M,children:p.jsx(dO,{as:h,ownerState:E,className:Ce(S.root,d),ref:a,...x,children:T})})});function hO(e){return ke("MuiToolbar",e)}Oe("MuiToolbar",["root","gutters","regular","dense"]);const mO=e=>{const{classes:n,disableGutters:a,variant:o}=e;return Ne({root:["root",!a&&"gutters",o]},hO,n)},gO=fe("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,!a.disableGutters&&n.gutters,n[a.variant]]}})($e(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:n})=>!n.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),yO=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiToolbar"}),{className:s,component:c="div",disableGutters:u=!1,variant:d="regular",...h}=o,g={...o,component:c,disableGutters:u,variant:d},y=mO(g);return p.jsx(gO,{as:c,className:Ce(y.root,s),ref:a,ownerState:g,...h})});function bO(e){return ke("MuiTextField",e)}Oe("MuiTextField",["root"]);const vO={standard:ym,filled:gm,outlined:xl},xO=e=>{const{classes:n}=e;return Ne({root:["root"]},bO,n)},SO=fe(zi,{name:"MuiTextField",slot:"Root"})({}),fn=v.forwardRef(function(n,a){const o=ze({props:n,name:"MuiTextField"}),{autoComplete:s,autoFocus:c=!1,children:u,className:d,color:h="primary",defaultValue:g,disabled:y=!1,error:b=!1,FormHelperTextProps:x,fullWidth:E=!1,helperText:S,id:w,InputLabelProps:T,inputProps:M,InputProps:j,inputRef:O,label:N,maxRows:A,minRows:z,multiline:L=!1,name:B,onBlur:V,onChange:X,onFocus:Z,placeholder:R,required:G=!1,rows:F,select:q=!1,SelectProps:D,slots:I={},slotProps:H={},type:W,value:_,variant:J="outlined",...ue}=o,oe={...o,autoFocus:c,color:h,disabled:y,error:b,fullWidth:E,multiline:L,required:G,select:q,variant:J},pe=xO(oe),be=Ni(w),ae=S&&be?`${be}-helper-text`:void 0,Ee=N&&be?`${be}-label`:void 0,Ae=vO[J],Ie={slots:I,slotProps:{input:j,inputLabel:T,htmlInput:M,formHelperText:x,select:D,...H}},je={},Ue=Ie.slotProps.inputLabel;J==="outlined"&&(Ue&&typeof Ue.shrink<"u"&&(je.notched=Ue.shrink),je.label=N),q&&((!D||!D.native)&&(je.id=void 0),je["aria-describedby"]=void 0);const[Ge,Ye]=He("root",{elementType:SO,shouldForwardComponentProp:!0,externalForwardedProps:{...Ie,...ue},ownerState:oe,className:Ce(pe.root,d),ref:a,additionalProps:{disabled:y,error:b,fullWidth:E,required:G,color:h,variant:J}}),[De,nt]=He("input",{elementType:Ae,externalForwardedProps:Ie,additionalProps:je,ownerState:oe}),[Yt,it]=He("inputLabel",{elementType:bm,externalForwardedProps:Ie,ownerState:oe}),[wt,mt]=He("htmlInput",{elementType:"input",externalForwardedProps:Ie,ownerState:oe}),[$,Y]=He("formHelperText",{elementType:CS,externalForwardedProps:Ie,ownerState:oe}),[K,ve]=He("select",{elementType:Eo,externalForwardedProps:Ie,ownerState:oe}),ge=p.jsx(De,{"aria-describedby":ae,autoComplete:s,autoFocus:c,defaultValue:g,fullWidth:E,multiline:L,name:B,rows:F,maxRows:A,minRows:z,type:W,value:_,id:be,inputRef:O,onBlur:V,onChange:X,onFocus:Z,placeholder:R,inputProps:mt,slots:{input:I.htmlInput?wt:void 0},...nt});return p.jsxs(Ge,{...Ye,children:[N!=null&&N!==""&&p.jsx(Yt,{htmlFor:be,id:Ee,...it,children:N}),q?p.jsx(K,{"aria-describedby":ae,id:be,labelId:Ee,value:_,input:ge,...ve,children:u}):ge,S&&p.jsx($,{id:ae,...Y,children:S})]})}),wm=tt(p.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),NS=tt(p.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"})),CO=tt(p.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"})),pu=tt(p.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),hu=tt(p.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),wO=tt(p.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),mu=tt(p.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"})),_S=tt(p.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"})),zS=tt(p.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),EO=tt(p.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),DS=tt(p.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),RO=tt(p.jsx("path",{d:"M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2m13 2h-2.5A3.5 3.5 0 0 0 12 8.5V11h-2v3h2v7h3v-7h3v-3h-3V9a1 1 0 0 1 1-1h2V5z"})),LS=tt(p.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"})),TO=tt(p.jsx("path",{d:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z"})),px=tt(p.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2s.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2s.07-1.35.16-2h4.68c.09.65.16 1.32.16 2s-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2s-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z"})),AO=tt(p.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"})),jO=tt(p.jsx("path",{d:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z"})),MO=tt(p.jsx("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"})),kO=tt(p.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"})),OO=tt(p.jsx("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"})),PS=tt(p.jsx("path",{d:"M19 13H5v-2h14z"})),NO=tt(p.jsx("path",{d:"M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z"})),hx=tt(p.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"})),_O=tt(p.jsx("path",{d:"M10 15l5.19-3L10 9v6m11.56-7.83c.13.47.22 1.1.28 1.9.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83-.25.9-.83 1.48-1.73 1.73-.47.13-1.33.22-2.65.28-1.3.07-2.49.1-3.59.1L12 19c-4.19 0-6.8-.16-7.83-.44-.9-.25-1.48-.83-1.73-1.73-.13-.47-.22-1.1-.28-1.9-.07-.8-.1-1.49-.1-2.09L2 12c0-2.19.16-3.8.44-4.83.25-.9.83-1.48 1.73-1.73.47-.13 1.33-.22 2.65-.28 1.3-.07 2.49-.1 3.59-.1L12 5c4.19 0 6.8.16 7.83.44.9.25 1.48.83 1.73 1.73z"})),ia=()=>{const e=v.useContext(nS);if(!e)throw new Error("useAuth debe ser usado dentro de un AuthProvider");return e};var Di=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(){}},zO={setTimeout:(e,n)=>setTimeout(e,n),clearTimeout:e=>clearTimeout(e),setInterval:(e,n)=>setInterval(e,n),clearInterval:e=>clearInterval(e)},DO=class{#e=zO;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,n){return this.#e.setTimeout(e,n)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,n){return this.#e.setInterval(e,n)}clearInterval(e){this.#e.clearInterval(e)}},mo=new DO;function LO(e){setTimeout(e,0)}var xo=typeof window>"u"||"Deno"in globalThis;function yn(){}function PO(e,n){return typeof e=="function"?e(n):e}function Sh(e){return typeof e=="number"&&e>=0&&e!==1/0}function $S(e,n){return Math.max(e+(n||0)-Date.now(),0)}function La(e,n){return typeof e=="function"?e(n):e}function Xn(e,n){return typeof e=="function"?e(n):e}function mx(e,n){const{type:a="all",exact:o,fetchStatus:s,predicate:c,queryKey:u,stale:d}=e;if(u){if(o){if(n.queryHash!==Em(u,n.options))return!1}else if(!ll(n.queryKey,u))return!1}if(a!=="all"){const h=n.isActive();if(a==="active"&&!h||a==="inactive"&&h)return!1}return!(typeof d=="boolean"&&n.isStale()!==d||s&&s!==n.state.fetchStatus||c&&!c(n))}function gx(e,n){const{exact:a,status:o,predicate:s,mutationKey:c}=e;if(c){if(!n.options.mutationKey)return!1;if(a){if(So(n.options.mutationKey)!==So(c))return!1}else if(!ll(n.options.mutationKey,c))return!1}return!(o&&n.state.status!==o||s&&!s(n))}function Em(e,n){return(n?.queryKeyHashFn||So)(e)}function So(e){return JSON.stringify(e,(n,a)=>Ch(a)?Object.keys(a).sort().reduce((o,s)=>(o[s]=a[s],o),{}):a)}function ll(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(a=>ll(e[a],n[a])):!1}var $O=Object.prototype.hasOwnProperty;function BS(e,n){if(e===n)return e;const a=yx(e)&&yx(n);if(!a&&!(Ch(e)&&Ch(n)))return n;const s=(a?e:Object.keys(e)).length,c=a?n:Object.keys(n),u=c.length,d=a?new Array(u):{};let h=0;for(let g=0;g<u;g++){const y=a?g:c[g],b=e[y],x=n[y];if(b===x){d[y]=b,(a?g<s:$O.call(e,y))&&h++;continue}if(b===null||x===null||typeof b!="object"||typeof x!="object"){d[y]=x;continue}const E=BS(b,x);d[y]=E,E===b&&h++}return s===u&&h===s?e:d}function gu(e,n){if(!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const a in e)if(e[a]!==n[a])return!1;return!0}function yx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ch(e){if(!bx(e))return!1;const n=e.constructor;if(n===void 0)return!0;const a=n.prototype;return!(!bx(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function bx(e){return Object.prototype.toString.call(e)==="[object Object]"}function BO(e){return new Promise(n=>{mo.setTimeout(n,e)})}function wh(e,n,a){return typeof a.structuralSharing=="function"?a.structuralSharing(e,n):a.structuralSharing!==!1?BS(e,n):n}function IO(e,n,a=0){const o=[...e,n];return a&&o.length>a?o.slice(1):o}function FO(e,n,a=0){const o=[n,...e];return a&&o.length>a?o.slice(0,-1):o}var Rm=Symbol();function IS(e,n){return!e.queryFn&&n?.initialPromise?()=>n.initialPromise:!e.queryFn||e.queryFn===Rm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function FS(e,n){return typeof e=="function"?e(...n):!!e}var UO=class extends Di{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!xo&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Tm=new UO;function Eh(){let e,n;const a=new Promise((s,c)=>{e=s,n=c});a.status="pending",a.catch(()=>{});function o(s){Object.assign(a,s),delete a.resolve,delete a.reject}return a.resolve=s=>{o({status:"fulfilled",value:s}),e(s)},a.reject=s=>{o({status:"rejected",reason:s}),n(s)},a}var HO=LO;function VO(){let e=[],n=0,a=d=>{d()},o=d=>{d()},s=HO;const c=d=>{n?e.push(d):s(()=>{a(d)})},u=()=>{const d=e;e=[],d.length&&s(()=>{o(()=>{d.forEach(h=>{a(h)})})})};return{batch:d=>{let h;n++;try{h=d()}finally{n--,n||u()}return h},batchCalls:d=>(...h)=>{c(()=>{d(...h)})},schedule:c,setNotifyFunction:d=>{a=d},setBatchNotifyFunction:d=>{o=d},setScheduler:d=>{s=d}}}var Xt=VO(),qO=class extends Di{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!xo&&window.addEventListener){const n=()=>e(!0),a=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",a)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(a=>{a(e)}))}isOnline(){return this.#e}},yu=new qO;function GO(e){return Math.min(1e3*2**e,3e4)}function US(e){return(e??"online")==="online"?yu.isOnline():!0}var Rh=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function HS(e){let n=!1,a=0,o;const s=Eh(),c=()=>s.status!=="pending",u=w=>{if(!c()){const T=new Rh(w);x(T),e.onCancel?.(T)}},d=()=>{n=!0},h=()=>{n=!1},g=()=>Tm.isFocused()&&(e.networkMode==="always"||yu.isOnline())&&e.canRun(),y=()=>US(e.networkMode)&&e.canRun(),b=w=>{c()||(o?.(),s.resolve(w))},x=w=>{c()||(o?.(),s.reject(w))},E=()=>new Promise(w=>{o=T=>{(c()||g())&&w(T)},e.onPause?.()}).then(()=>{o=void 0,c()||e.onContinue?.()}),S=()=>{if(c())return;let w;const T=a===0?e.initialPromise:void 0;try{w=T??e.fn()}catch(M){w=Promise.reject(M)}Promise.resolve(w).then(b).catch(M=>{if(c())return;const j=e.retry??(xo?0:3),O=e.retryDelay??GO,N=typeof O=="function"?O(a,M):O,A=j===!0||typeof j=="number"&&a<j||typeof j=="function"&&j(a,M);if(n||!A){x(M);return}a++,e.onFail?.(a,M),BO(N).then(()=>g()?void 0:E()).then(()=>{n?x(M):S()})})};return{promise:s,status:()=>s.status,cancel:u,continue:()=>(o?.(),s),cancelRetry:d,continueRetry:h,canStart:y,start:()=>(y()?S():E().then(S),s)}}var VS=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Sh(this.gcTime)&&(this.#e=mo.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(xo?1/0:5*60*1e3))}clearGcTimeout(){this.#e&&(mo.clearTimeout(this.#e),this.#e=void 0)}},WO=class extends VS{#e;#t;#n;#r;#a;#i;#s;constructor(e){super(),this.#s=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=vx(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=vx(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),this.#e=n)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,n){const a=wh(this.state.data,e,this.options);return this.#o({data:a,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),a}setState(e,n){this.#o({type:"setState",state:e,setStateOptions:n})}cancel(e){const n=this.#a?.promise;return this.#a?.cancel(e),n?n.then(yn).catch(yn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Xn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Rm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>La(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!$S(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(n=>n.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(n=>n.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(this.#a&&(this.#s?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,n){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&n?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const a=new AbortController,o=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#s=!0,a.signal)})},s=()=>{const d=IS(this.options,n),g=(()=>{const y={client:this.#r,queryKey:this.queryKey,meta:this.meta};return o(y),y})();return this.#s=!1,this.options.persister?this.options.persister(d,g,this):d(g)},u=(()=>{const d={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:s};return o(d),d})();this.options.behavior?.onFetch(u,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#o({type:"fetch",meta:u.fetchOptions?.meta}),this.#a=HS({initialPromise:n?.initialPromise,fn:u.fetchFn,onCancel:d=>{d instanceof Rh&&d.revert&&this.setState({...this.#t,fetchStatus:"idle"}),a.abort()},onFail:(d,h)=>{this.#o({type:"failed",failureCount:d,error:h})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{const d=await this.#a.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof Rh){if(d.silent)return this.#a.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#o({type:"error",error:d}),this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#o(e){const n=a=>{switch(e.type){case"failed":return{...a,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...qS(a.data,this.options),fetchMeta:e.meta??null};case"success":const o={...a,data:e.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?o:void 0,o;case"error":const s=e.error;return{...a,error:s,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...e.state}}};this.state=n(this.state),Xt.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function qS(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:US(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function vx(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,a=n!==void 0,o=a?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:a?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var YO=class extends Di{constructor(e,n){super(),this.options=n,this.#e=e,this.#o=null,this.#s=Eh(),this.bindMethods(),this.setOptions(n)}#e;#t=void 0;#n=void 0;#r=void 0;#a;#i;#s;#o;#m;#f;#p;#c;#u;#l;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),xx(this.#t,this.options)?this.#d():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Th(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Th(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#t.removeObserver(this)}setOptions(e){const n=this.options,a=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Xn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#C(),this.#t.setOptions(this.options),n._defaulted&&!gu(this.options,n)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const o=this.hasListeners();o&&Sx(this.#t,a,this.options,n)&&this.#d(),this.updateResult(),o&&(this.#t!==a||Xn(this.options.enabled,this.#t)!==Xn(n.enabled,this.#t)||La(this.options.staleTime,this.#t)!==La(n.staleTime,this.#t))&&this.#g();const s=this.#y();o&&(this.#t!==a||Xn(this.options.enabled,this.#t)!==Xn(n.enabled,this.#t)||s!==this.#l)&&this.#b(s)}getOptimisticResult(e){const n=this.#e.getQueryCache().build(this.#e,e),a=this.createResult(n,e);return QO(this,a)&&(this.#r=a,this.#i=this.options,this.#a=this.#t.state),a}getCurrentResult(){return this.#r}trackResult(e,n){return new Proxy(e,{get:(a,o)=>(this.trackProp(o),n?.(o),o==="promise"&&!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(a,o))})}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=this.#e.defaultQueryOptions(e),a=this.#e.getQueryCache().build(this.#e,n);return a.fetch().then(()=>this.createResult(a,n))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(e){this.#C();let n=this.#t.fetch(this.options,e);return e?.throwOnError||(n=n.catch(yn)),n}#g(){this.#x();const e=La(this.options.staleTime,this.#t);if(xo||this.#r.isStale||!Sh(e))return;const a=$S(this.#r.dataUpdatedAt,e)+1;this.#c=mo.setTimeout(()=>{this.#r.isStale||this.updateResult()},a)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(e){this.#S(),this.#l=e,!(xo||Xn(this.options.enabled,this.#t)===!1||!Sh(this.#l)||this.#l===0)&&(this.#u=mo.setInterval(()=>{(this.options.refetchIntervalInBackground||Tm.isFocused())&&this.#d()},this.#l))}#v(){this.#g(),this.#b(this.#y())}#x(){this.#c&&(mo.clearTimeout(this.#c),this.#c=void 0)}#S(){this.#u&&(mo.clearInterval(this.#u),this.#u=void 0)}createResult(e,n){const a=this.#t,o=this.options,s=this.#r,c=this.#a,u=this.#i,h=e!==a?e.state:this.#n,{state:g}=e;let y={...g},b=!1,x;if(n._optimisticResults){const B=this.hasListeners(),V=!B&&xx(e,n),X=B&&Sx(e,a,n,o);(V||X)&&(y={...y,...qS(g.data,e.options)}),n._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:E,errorUpdatedAt:S,status:w}=y;x=y.data;let T=!1;if(n.placeholderData!==void 0&&x===void 0&&w==="pending"){let B;s?.isPlaceholderData&&n.placeholderData===u?.placeholderData?(B=s.data,T=!0):B=typeof n.placeholderData=="function"?n.placeholderData(this.#p?.state.data,this.#p):n.placeholderData,B!==void 0&&(w="success",x=wh(s?.data,B,n),b=!0)}if(n.select&&x!==void 0&&!T)if(s&&x===c?.data&&n.select===this.#m)x=this.#f;else try{this.#m=n.select,x=n.select(x),x=wh(s?.data,x,n),this.#f=x,this.#o=null}catch(B){this.#o=B}this.#o&&(E=this.#o,x=this.#f,S=Date.now(),w="error");const M=y.fetchStatus==="fetching",j=w==="pending",O=w==="error",N=j&&M,A=x!==void 0,L={status:w,fetchStatus:y.fetchStatus,isPending:j,isSuccess:w==="success",isError:O,isInitialLoading:N,isLoading:N,data:x,dataUpdatedAt:y.dataUpdatedAt,error:E,errorUpdatedAt:S,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>h.dataUpdateCount||y.errorUpdateCount>h.errorUpdateCount,isFetching:M,isRefetching:M&&!j,isLoadingError:O&&!A,isPaused:y.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:O&&A,isStale:Am(e,n),refetch:this.refetch,promise:this.#s,isEnabled:Xn(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const B=Z=>{L.status==="error"?Z.reject(L.error):L.data!==void 0&&Z.resolve(L.data)},V=()=>{const Z=this.#s=L.promise=Eh();B(Z)},X=this.#s;switch(X.status){case"pending":e.queryHash===a.queryHash&&B(X);break;case"fulfilled":(L.status==="error"||L.data!==X.value)&&V();break;case"rejected":(L.status!=="error"||L.error!==X.reason)&&V();break}}return L}updateResult(){const e=this.#r,n=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#i=this.options,this.#a.data!==void 0&&(this.#p=this.#t),gu(n,e))return;this.#r=n;const a=()=>{if(!e)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!this.#h.size)return!0;const c=new Set(s??this.#h);return this.options.throwOnError&&c.add("error"),Object.keys(this.#r).some(u=>{const d=u;return this.#r[d]!==e[d]&&c.has(d)})};this.#w({listeners:a()})}#C(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const n=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(n?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#w(e){Xt.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function KO(e,n){return Xn(n.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&n.retryOnMount===!1)}function xx(e,n){return KO(e,n)||e.state.data!==void 0&&Th(e,n,n.refetchOnMount)}function Th(e,n,a){if(Xn(n.enabled,e)!==!1&&La(n.staleTime,e)!=="static"){const o=typeof a=="function"?a(e):a;return o==="always"||o!==!1&&Am(e,n)}return!1}function Sx(e,n,a,o){return(e!==n||Xn(o.enabled,e)===!1)&&(!a.suspense||e.state.status!=="error")&&Am(e,a)}function Am(e,n){return Xn(n.enabled,e)!==!1&&e.isStaleByTime(La(n.staleTime,e))}function QO(e,n){return!gu(e.getCurrentResult(),n)}function Cx(e){return{onFetch:(n,a)=>{const o=n.options,s=n.fetchOptions?.meta?.fetchMore?.direction,c=n.state.data?.pages||[],u=n.state.data?.pageParams||[];let d={pages:[],pageParams:[]},h=0;const g=async()=>{let y=!1;const b=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(n.signal.aborted?y=!0:n.signal.addEventListener("abort",()=>{y=!0}),n.signal)})},x=IS(n.options,n.fetchOptions),E=async(S,w,T)=>{if(y)return Promise.reject();if(w==null&&S.pages.length)return Promise.resolve(S);const j=(()=>{const z={client:n.client,queryKey:n.queryKey,pageParam:w,direction:T?"backward":"forward",meta:n.options.meta};return b(z),z})(),O=await x(j),{maxPages:N}=n.options,A=T?FO:IO;return{pages:A(S.pages,O,N),pageParams:A(S.pageParams,w,N)}};if(s&&c.length){const S=s==="backward",w=S?XO:wx,T={pages:c,pageParams:u},M=w(o,T);d=await E(T,M,S)}else{const S=e??c.length;do{const w=h===0?u[0]??o.initialPageParam:wx(o,d);if(h>0&&w==null)break;d=await E(d,w),h++}while(h<S)}return d};n.options.persister?n.fetchFn=()=>n.options.persister?.(g,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},a):n.fetchFn=g}}}function wx(e,{pages:n,pageParams:a}){const o=n.length-1;return n.length>0?e.getNextPageParam(n[o],n,a[o],a):void 0}function XO(e,{pages:n,pageParams:a}){return n.length>0?e.getPreviousPageParam?.(n[0],n,a[0],a):void 0}var ZO=class extends VS{#e;#t;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#e=[],this.state=e.state||GS(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(n=>n!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const n=()=>{this.#r({type:"continue"})};this.#n=HS({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(s,c)=>{this.#r({type:"failed",failureCount:s,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const a=this.state.status==="pending",o=!this.#n.canStart();try{if(a)n();else{this.#r({type:"pending",variables:e,isPaused:o}),await this.#t.config.onMutate?.(e,this);const c=await this.options.onMutate?.(e);c!==this.state.context&&this.#r({type:"pending",context:c,variables:e,isPaused:o})}const s=await this.#n.start();return await this.#t.config.onSuccess?.(s,e,this.state.context,this),await this.options.onSuccess?.(s,e,this.state.context),await this.#t.config.onSettled?.(s,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(s,null,e,this.state.context),this.#r({type:"success",data:s}),s}catch(s){try{throw await this.#t.config.onError?.(s,e,this.state.context,this),await this.options.onError?.(s,e,this.state.context),await this.#t.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,s,e,this.state.context),s}finally{this.#r({type:"error",error:s})}}finally{this.#t.runNext(this)}}#r(e){const n=a=>{switch(e.type){case"failed":return{...a,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,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{...a,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:e.error,failureCount:a.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Xt.batch(()=>{this.#e.forEach(a=>{a.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function GS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var JO=class extends Di{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,n,a){const o=new ZO({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(n),state:a});return this.add(o),o}add(e){this.#e.add(e);const n=Fc(e);if(typeof n=="string"){const a=this.#t.get(n);a?a.push(e):this.#t.set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const n=Fc(e);if(typeof n=="string"){const a=this.#t.get(n);if(a)if(a.length>1){const o=a.indexOf(e);o!==-1&&a.splice(o,1)}else a[0]===e&&this.#t.delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=Fc(e);if(typeof n=="string"){const o=this.#t.get(n)?.find(s=>s.state.status==="pending");return!o||o===e}else return!0}runNext(e){const n=Fc(e);return typeof n=="string"?this.#t.get(n)?.find(o=>o!==e&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Xt.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const n={exact:!0,...e};return this.getAll().find(a=>gx(n,a))}findAll(e={}){return this.getAll().filter(n=>gx(e,n))}notify(e){Xt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return Xt.batch(()=>Promise.all(e.map(n=>n.continue().catch(yn))))}};function Fc(e){return e.options.scope?.id}var e8=class extends Di{#e;#t=void 0;#n;#r;constructor(n,a){super(),this.#e=n,this.setOptions(a),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){const a=this.options;this.options=this.#e.defaultMutationOptions(n),gu(this.options,a)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),a?.mutationKey&&this.options.mutationKey&&So(a.mutationKey)!==So(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(n){this.#a(),this.#i(n)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#i()}mutate(n,a){return this.#r=a,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(n)}#a(){const n=this.#n?.state??GS();this.#t={...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset}}#i(n){Xt.batch(()=>{if(this.#r&&this.hasListeners()){const a=this.#t.variables,o=this.#t.context;n?.type==="success"?(this.#r.onSuccess?.(n.data,a,o),this.#r.onSettled?.(n.data,null,a,o)):n?.type==="error"&&(this.#r.onError?.(n.error,a,o),this.#r.onSettled?.(void 0,n.error,a,o))}this.listeners.forEach(a=>{a(this.#t)})})}},t8=class extends Di{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,n,a){const o=n.queryKey,s=n.queryHash??Em(o,n);let c=this.get(s);return c||(c=new WO({client:e,queryKey:o,queryHash:s,options:e.defaultQueryOptions(n),state:a,defaultOptions:e.getQueryDefaults(o)}),this.add(c)),c}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=this.#e.get(e.queryHash);n&&(e.destroy(),n===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Xt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const n={exact:!0,...e};return this.getAll().find(a=>mx(n,a))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(a=>mx(e,a)):n}notify(e){Xt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Xt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Xt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},n8=class{#e;#t;#n;#r;#a;#i;#s;#o;constructor(e={}){this.#e=e.queryCache||new t8,this.#t=e.mutationCache||new JO,this.#n=e.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=Tm.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=yu.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#s?.(),this.#s=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),a=this.#e.build(this,n),o=a.state.data;return o===void 0?this.fetchQuery(e):(e.revalidateIfStale&&a.isStaleByTime(La(n.staleTime,a))&&this.prefetchQuery(n),Promise.resolve(o))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:n,state:a})=>{const o=a.data;return[n,o]})}setQueryData(e,n,a){const o=this.defaultQueryOptions({queryKey:e}),c=this.#e.get(o.queryHash)?.state.data,u=PO(n,c);if(u!==void 0)return this.#e.build(this,o).setData(u,{...a,manual:!0})}setQueriesData(e,n,a){return Xt.batch(()=>this.#e.findAll(e).map(({queryKey:o})=>[o,this.setQueryData(o,n,a)]))}getQueryState(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state}removeQueries(e){const n=this.#e;Xt.batch(()=>{n.findAll(e).forEach(a=>{n.remove(a)})})}resetQueries(e,n){const a=this.#e;return Xt.batch(()=>(a.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const a={revert:!0,...n},o=Xt.batch(()=>this.#e.findAll(e).map(s=>s.cancel(a)));return Promise.all(o).then(yn).catch(yn)}invalidateQueries(e,n={}){return Xt.batch(()=>(this.#e.findAll(e).forEach(a=>{a.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},n)))}refetchQueries(e,n={}){const a={...n,cancelRefetch:n.cancelRefetch??!0},o=Xt.batch(()=>this.#e.findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let c=s.fetch(void 0,a);return a.throwOnError||(c=c.catch(yn)),s.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(o).then(yn)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const a=this.#e.build(this,n);return a.isStaleByTime(La(n.staleTime,a))?a.fetch(n):Promise.resolve(a.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(yn).catch(yn)}fetchInfiniteQuery(e){return e.behavior=Cx(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(yn).catch(yn)}ensureInfiniteQueryData(e){return e.behavior=Cx(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return yu.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,n){this.#r.set(So(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...this.#r.values()],a={};return n.forEach(o=>{ll(e,o.queryKey)&&Object.assign(a,o.defaultOptions)}),a}setMutationDefaults(e,n){this.#a.set(So(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...this.#a.values()],a={};return n.forEach(o=>{ll(e,o.mutationKey)&&Object.assign(a,o.defaultOptions)}),a}defaultQueryOptions(e){if(e._defaulted)return e;const n={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=Em(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===Rm&&(n.enabled=!1),n}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},WS=v.createContext(void 0),jm=e=>{const n=v.useContext(WS);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},r8=({client:e,children:n})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),p.jsx(WS.Provider,{value:e,children:n})),YS=v.createContext(!1),a8=()=>v.useContext(YS);YS.Provider;function o8(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var i8=v.createContext(o8()),s8=()=>v.useContext(i8),l8=(e,n)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(n.isReset()||(e.retryOnMount=!1))},c8=e=>{v.useEffect(()=>{e.clearReset()},[e])},u8=({result:e,errorResetBoundary:n,throwOnError:a,query:o,suspense:s})=>e.isError&&!n.isReset()&&!e.isFetching&&o&&(s&&e.data===void 0||FS(a,[e.error,o])),d8=e=>{if(e.suspense){const a=s=>s==="static"?s:Math.max(s??1e3,1e3),o=e.staleTime;e.staleTime=typeof o=="function"?(...s)=>a(o(...s)):a(o),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},f8=(e,n)=>e.isLoading&&e.isFetching&&!n,p8=(e,n)=>e?.suspense&&n.isPending,Ex=(e,n,a)=>n.fetchOptimistic(e).catch(()=>{a.clearReset()});function h8(e,n,a){const o=a8(),s=s8(),c=jm(),u=c.defaultQueryOptions(e);c.getDefaultOptions().queries?._experimental_beforeQuery?.(u),u._optimisticResults=o?"isRestoring":"optimistic",d8(u),l8(u,s),c8(s);const d=!c.getQueryCache().get(u.queryHash),[h]=v.useState(()=>new n(c,u)),g=h.getOptimisticResult(u),y=!o&&e.subscribed!==!1;if(v.useSyncExternalStore(v.useCallback(b=>{const x=y?h.subscribe(Xt.batchCalls(b)):yn;return h.updateResult(),x},[h,y]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),v.useEffect(()=>{h.setOptions(u)},[u,h]),p8(u,g))throw Ex(u,h,s);if(u8({result:g,errorResetBoundary:s,throwOnError:u.throwOnError,query:c.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw g.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(u,g),u.experimental_prefetchInRender&&!xo&&f8(g,o)&&(d?Ex(u,h,s):c.getQueryCache().get(u.queryHash)?.promise)?.catch(yn).finally(()=>{h.updateResult()}),u.notifyOnChangeProps?g:h.trackResult(g)}function Mm(e,n){return h8(e,YO)}function Li(e,n){const a=jm(),[o]=v.useState(()=>new e8(a,e));v.useEffect(()=>{o.setOptions(e)},[o,e]);const s=v.useSyncExternalStore(v.useCallback(u=>o.subscribe(Xt.batchCalls(u)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),c=v.useCallback((u,d)=>{o.mutate(u,d).catch(yn)},[o]);if(s.error&&FS(o.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:c,mutateAsync:s.mutate}}function m8(){return Li({mutationFn:e=>K1(e)})}const g8="/assets/icono-BxXOBWXR.png";function y8(){const[e,n]=v.useState({email:"",password:""}),[a,o]=v.useState(""),s=gr();rr();const{login:c,loading:u}=ia(),d=m8(),h="/dashboard",g=u||d.isPending,y=x=>{const{name:E,value:S}=x.target;n(w=>({...w,[E]:S})),a&&o("")},b=async x=>{if(x.preventDefault(),o(""),!e.email||!e.password){o("Por favor complete todos los campos");return}try{const E=await d.mutateAsync({username:e.email,password:e.password}),S=await c(E);S.success?s(h,{replace:!0}):o(S.error||"Error al procesar la autenticación")}catch(E){console.error("API Error:",E),o(E.message||"Error al iniciar sesión. Verifique sus credenciales.")}};return p.jsx(le,{sx:{minHeight:"100vh",background:"linear-gradient(180deg,#F9DCB8, #8783CA 100%)",display:"flex",alignItems:"center",justifyContent:"center",py:3},children:p.jsx(vo,{maxWidth:"sm",children:p.jsx(yo,{elevation:8,sx:{borderRadius:3,overflow:"hidden"},children:p.jsxs(bo,{sx:{p:4},children:[p.jsxs(le,{sx:{textAlign:"center",mb:4},children:[p.jsx(le,{sx:{mb:2},children:p.jsx("img",{src:g8,alt:"LOMI Logo",style:{width:"60px",height:"60px",borderRadius:"12px"}})}),p.jsx(se,{variant:"h4",component:"h1",sx:{fontWeight:"bold",color:"#333",mb:1},children:"LOMI"}),p.jsx(se,{variant:"body1",color:"text.secondary",children:"Ingresa a tu cuenta para continuar"})]}),p.jsx("form",{onSubmit:b,children:p.jsxs(le,{sx:{display:"flex",flexDirection:"column",gap:3},children:[a&&p.jsx(sn,{severity:"error",sx:{borderRadius:2},children:a}),p.jsx(fn,{fullWidth:!0,label:"Correo electrónico",name:"email",type:"email",value:e.email,onChange:y,variant:"outlined",disabled:g,sx:{"& .MuiOutlinedInput-root":{borderRadius:2}}}),p.jsx(fn,{fullWidth:!0,label:"Contraseña",name:"password",type:"password",value:e.password,onChange:y,variant:"outlined",disabled:g,sx:{"& .MuiOutlinedInput-root":{borderRadius:2}}}),p.jsx(qt,{type:"submit",fullWidth:!0,variant:"contained",size:"large",disabled:g,startIcon:g?p.jsx(nr,{size:20}):p.jsx(MO,{}),sx:{borderRadius:2,py:1.5,background:"linear-gradient(45deg, #F9DCB8, #8783CA 100%)","&:hover":{background:"linear-gradient(15deg, #5a6fd8 0%, #6a4190 100%)"},textTransform:"none",fontSize:"1rem",fontWeight:"medium"},children:g?"Iniciando sesión...":"Iniciar Sesión"}),p.jsx(An,{elevation:0,sx:{p:2,backgroundColor:"rgba(249, 220, 184, 0.1)",borderRadius:2,textAlign:"center"},children:p.jsxs(se,{variant:"body2",color:"text.secondary",children:["¿No tienes cuenta?"," ",p.jsx(dl,{to:"/register",style:{color:"#8783CA",textDecoration:"none",fontWeight:"medium"},children:"Regístrate aquí"})]})})]})})]})})})})}function b8(){return Li({mutationFn:e=>Y1(e)})}function v8(){const[e,n]=v.useState({first_name:"",last_name:"",celphone:"",email:"",password1:"",password2:"",privacyPolicy:!1,marketingConsent:!1}),[a,o]=v.useState(""),[s,c]=v.useState(""),u=gr(),d=b8(),{login:h}=ia(),g=x=>{const{name:E,value:S,type:w,checked:T}=x.target;n(M=>({...M,[E]:w==="checkbox"?T:S})),a&&o(""),s&&c("")},y=()=>e.first_name.trim()!==""&&e.last_name.trim()!==""&&e.celphone.trim()!==""&&e.email.trim()!==""&&e.password1.trim()!==""&&e.password2.trim()!==""&&e.privacyPolicy&&e.marketingConsent,b=async x=>{if(x.preventDefault(),o(""),c(""),!e.first_name||!e.last_name||!e.celphone||!e.email||!e.password1||!e.password2){o("Por favor complete todos los campos obligatorios");return}if(!e.privacyPolicy){o("Debes aceptar la política de privacidad para continuar");return}if(!e.marketingConsent){o("Debes autorizar el envío de novedades para continuar");return}if(e.password1!==e.password2){o("Las contraseñas no coinciden");return}if(e.password1.length<8){o("La contraseña debe tener al menos 8 caracteres");return}try{const E=await d.mutateAsync({first_name:e.first_name,last_name:e.last_name,celphone:e.celphone,email:e.email,password1:e.password1,password2:e.password2});E.access&&E.refresh&&E.user?(c("Registro exitoso. Iniciando sesión..."),(await h(E)).success?setTimeout(()=>{u("/dashboard")},1500):(o("Registro exitoso pero error al iniciar sesión automáticamente. Por favor inicie sesión manualmente."),setTimeout(()=>{u("/login")},2e3))):(c("Registro exitoso. Redirigiendo al login..."),setTimeout(()=>{u("/login")},2e3))}catch(E){o(E.message||"Error al registrar usuario")}};return p.jsx(le,{sx:{minHeight:"100vh",background:"linear-gradient(135deg, #F9DCB8 0%, #8783CA 100%)",display:"flex",alignItems:"center",justifyContent:"center",py:2},children:p.jsx(vo,{maxWidth:"sm",sx:{px:{xs:2,sm:3}},children:p.jsx(yo,{elevation:24,sx:{borderRadius:4,overflow:"hidden",backdropFilter:"blur(20px)",backgroundColor:"rgba(255, 255, 255, 0.95)"},children:p.jsxs(bo,{sx:{p:3},children:[p.jsxs(le,{sx:{textAlign:"center",mb:3},children:[p.jsx(se,{variant:"h4",component:"h1",sx:{fontWeight:"bold",color:"#333",mb:.5},children:"LOMI"}),p.jsx(se,{variant:"body1",color:"text.secondary",sx:{fontSize:"0.95rem"},children:"Crea tu cuenta para comenzar"})]}),p.jsx("form",{onSubmit:b,children:p.jsxs(le,{sx:{display:"flex",flexDirection:"column",gap:2.5},children:[a&&p.jsx(sn,{severity:"error",sx:{borderRadius:2},children:a}),s&&p.jsx(sn,{severity:"success",sx:{borderRadius:2},children:s}),p.jsx(se,{variant:"h6",sx:{color:"#333",fontWeight:600,fontSize:"1.1rem",mb:-1},children:"Información personal"}),p.jsxs(le,{sx:{display:"flex",gap:2,alignItems:"flex-start"},children:[p.jsx(fn,{label:"Nombre",name:"first_name",type:"text",value:e.first_name,onChange:g,variant:"outlined",disabled:d.isPending,sx:{flex:1,"& .MuiOutlinedInput-root":{borderRadius:2,height:48}}}),p.jsx(fn,{label:"Apellido",name:"last_name",type:"text",value:e.last_name,onChange:g,variant:"outlined",disabled:d.isPending,sx:{flex:1,"& .MuiOutlinedInput-root":{borderRadius:2,height:48}}})]}),p.jsx(se,{variant:"h6",sx:{color:"#333",fontWeight:600,fontSize:"1.1rem",mb:-1,mt:1},children:"Información de contacto"}),p.jsx(fn,{fullWidth:!0,label:"Correo electrónico",name:"email",type:"email",value:e.email,onChange:g,variant:"outlined",disabled:d.isPending,sx:{"& .MuiOutlinedInput-root":{borderRadius:2}}}),p.jsx(fn,{fullWidth:!0,label:"Número de celular",name:"celphone",type:"tel",placeholder:"Ej: +57 300 123 4567",value:e.celphone,onChange:g,variant:"outlined",disabled:d.isPending,sx:{"& .MuiOutlinedInput-root":{borderRadius:2}}}),p.jsx(se,{variant:"h6",sx:{color:"#333",fontWeight:600,fontSize:"1.1rem",mb:-1,mt:1},children:"Seguridad"}),p.jsxs(le,{sx:{display:"flex",gap:2},children:[p.jsx(fn,{fullWidth:!0,label:"Contraseña",name:"password1",type:"password",value:e.password1,onChange:g,variant:"outlined",disabled:d.isPending,helperText:"Mínimo 8 caracteres",sx:{"& .MuiOutlinedInput-root":{borderRadius:2}}}),p.jsx(fn,{fullWidth:!0,label:"Confirmar contraseña",name:"password2",type:"password",value:e.password2,onChange:g,variant:"outlined",disabled:d.isPending,sx:{"& .MuiOutlinedInput-root":{borderRadius:2}}})]}),p.jsx(se,{variant:"h6",sx:{color:"#333",fontWeight:600,fontSize:"1.1rem",mb:-.5,mt:1},children:"Términos y Condiciones"}),p.jsx(An,{elevation:0,sx:{p:2.5,backgroundColor:"rgba(135, 131, 202, 0.05)",borderRadius:2,border:"1px solid rgba(135, 131, 202, 0.2)"},children:p.jsxs(le,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[p.jsx(Qv,{control:p.jsx(Vv,{name:"privacyPolicy",checked:e.privacyPolicy,onChange:g,disabled:d.isPending,size:"small",sx:{color:"#8783CA","&.Mui-checked":{color:"#8783CA"},"&:hover":{backgroundColor:"rgba(135, 131, 202, 0.1)"}}}),label:p.jsx(se,{variant:"body2",sx:{fontSize:"0.875rem",lineHeight:1.4,color:"#555",fontWeight:400},children:"Acepto el tratamiento de mis datos personales según la política de privacidad."}),sx:{alignItems:"flex-start",margin:0,"& .MuiFormControlLabel-label":{paddingLeft:.5}}}),p.jsx(Qv,{control:p.jsx(Vv,{name:"marketingConsent",checked:e.marketingConsent,onChange:g,disabled:d.isPending,size:"small",sx:{color:"#8783CA","&.Mui-checked":{color:"#8783CA"},"&:hover":{backgroundColor:"rgba(135, 131, 202, 0.1)"}}}),label:p.jsx(se,{variant:"body2",sx:{fontSize:"0.875rem",lineHeight:1.4,color:"#555",fontWeight:400},children:"Autorizo el envío de novedades y actualizaciones sobre el producto."}),sx:{alignItems:"flex-start",margin:0,"& .MuiFormControlLabel-label":{paddingLeft:.5}}})]})}),p.jsx(qt,{type:"submit",fullWidth:!0,variant:"contained",size:"large",disabled:d.isPending||!y(),startIcon:d.isPending?p.jsx(nr,{size:20}):p.jsx(OO,{}),sx:{borderRadius:2,py:1.5,background:"linear-gradient(45deg, #F9DCB8, #8783CA 100%)","&:hover":{background:"linear-gradient(15deg, #5a6fd8 0%, #6a4190 100%)"},textTransform:"none",fontSize:"1rem",fontWeight:"medium"},children:d.isPending?"Registrando...":"Crear cuenta"}),p.jsx(le,{sx:{textAlign:"center",mt:.5,mb:.5},children:p.jsxs(se,{variant:"caption",color:"text.secondary",sx:{fontSize:"0.8rem",lineHeight:1.3},children:["Consulta nuestra"," ",p.jsx(ex,{component:"a",href:"/docs/Politicas_Lomi.pdf",target:"_blank",rel:"noopener noreferrer",sx:{color:"#8783CA",textDecoration:"underline",fontSize:"0.8rem","&:hover":{textDecoration:"none",color:"#6a4190"}},children:"Política de Privacidad"})," y ",p.jsx(ex,{component:"a",href:"/docs/Politicas_Lomi.pdf",target:"_blank",rel:"noopener noreferrer",sx:{color:"#8783CA",textDecoration:"underline",fontSize:"0.8rem","&:hover":{textDecoration:"none",color:"#6a4190"}},children:"Términos y Condiciones"})]})}),p.jsx(An,{elevation:0,sx:{p:1.5,backgroundColor:"rgba(249, 220, 184, 0.1)",borderRadius:2,textAlign:"center"},children:p.jsxs(se,{variant:"body2",color:"text.secondary",children:["¿Ya tienes cuenta?"," ",p.jsx(dl,{to:"/login",style:{color:"#8783CA",textDecoration:"none",fontWeight:"medium"},children:"Inicia sesión aquí"})]})})]})})]})})})})}function x8(){return Li({mutationFn:({token:e})=>X1(e)})}const S8=()=>{const{logout:e,getToken:n,loading:a}=ia(),o=x8(),s=gr(),c=v.useCallback(async(d="/login")=>{try{const h=n();if(h)try{await o.mutateAsync({token:h}),localStorage.removeItem("selected_template_id"),localStorage.removeItem("template_form_data")}catch(y){console.warn("Server logout failed, proceeding with local logout:",y.message)}const g=await e();if(g.success)return d&&s(d,{replace:!0}),{success:!0};throw new Error(g.error||"Failed to complete logout")}catch(h){return console.error("Logout process error:",h),d&&s(d,{replace:!0}),{success:!1,error:h.message||"Error during logout process"}}},[e,n,o,s]),u=a||o.isPending;return{logout:c,isLoading:u,error:o.error?.message}};function C8(e,n,a=!0){return Mm({queryKey:["check-name-project",e,n],queryFn:()=>eS(e,n),enabled:a&&!!e&&!!n&&e.trim().length>=2,retry:!1,refetchOnWindowFocus:!1,staleTime:5*60*1e3})}function w8(e,n){const[a,o]=v.useState(e);return v.useEffect(()=>{const s=setTimeout(()=>{o(e)},n);return()=>{clearTimeout(s)}},[e,n]),a}const km=({title:e="LOMI Dashboard",showBackButton:n=!1})=>{const{user:a}=ia(),{logout:o,isLoading:s}=S8(),c=gr(),u=async()=>{await o("/login")},d=()=>{c("/dashboard")},h=()=>{if(!a)return"Usuario";const y=a.first_name||"",b=a.last_name||"",x=`${y} ${b}`.trim();return x||(a.username&&a.username!==a.email?a.username:a.email?a.email.split("@")[0]:"Usuario")},g=()=>h().charAt(0).toUpperCase();return p.jsx(BA,{position:"static",sx:{background:"#8783CA ",boxShadow:"0 2px 10px rgba(0,0,0,0.1)"},children:p.jsxs(yO,{children:[p.jsxs(le,{sx:{display:"flex",alignItems:"center",flexGrow:1},children:[n&&p.jsx(zr,{color:"inherit",onClick:d,sx:{mr:1,"&:hover":{backgroundColor:"rgba(255,255,255,0.1)"}},children:p.jsx(NS,{})}),p.jsx(pS,{sx:{bgcolor:"rgba(255,255,255,0.2)",mr:2,width:40,height:40},children:g()}),p.jsx(se,{variant:"h6",component:"div",children:e})]}),p.jsxs(le,{sx:{display:"flex",alignItems:"center",gap:2},children:[a&&p.jsxs(se,{variant:"body2",sx:{opacity:.9},children:["Hola, ",h()]}),p.jsx(qt,{color:"inherit",onClick:u,disabled:s,startIcon:s?p.jsx(nr,{size:16,color:"inherit"}):p.jsx(kO,{}),sx:{textTransform:"none",borderRadius:2,"&:hover":{backgroundColor:"rgba(255,255,255,0.1)"},"&:disabled":{color:"rgba(255,255,255,0.5)"}},children:s?"Cerrando...":"Cerrar Sesión"})]})]})})};function E8(e){return Mm({queryKey:["user-attempts"],queryFn:()=>J1(e),enabled:!!e,staleTime:5*60*1e3,cacheTime:30*60*1e3,gcTime:15*60*1e3})}const R8=ar`
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.7);
  }
  
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(25, 118, 210, 0);
  }
  
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(25, 118, 210, 0);
  }
`,T8=fe(le)(({theme:e,color:n})=>({width:40,height:40,borderRadius:"50%",background:e.palette[n]?.main||e.palette.primary.main,animation:`${R8} 2s infinite`})),A8=fe(le)(({theme:e,overlay:n})=>({position:n?"fixed":"relative",top:n?0:"auto",left:n?0:"auto",right:n?0:"auto",bottom:n?0:"auto",backgroundColor:n?"rgba(255, 255, 255, 0.9)":"transparent",backdropFilter:n?"blur(2px)":"none",zIndex:n?9999:"auto",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",gap:2,padding:3})),j8=ar`
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
`,M8=fe(le)({display:"flex",gap:"4px"}),k8=fe(le)(({theme:e,delay:n,color:a})=>({width:8,height:8,borderRadius:"50%",backgroundColor:e.palette[a]?.main||e.palette.primary.main,animation:`${j8} 1.4s infinite ease-in-out both`,animationDelay:`${n}s`})),Om=({variant:e="circular",size:n="medium",color:a="primary",message:o="",overlay:s=!1,fullScreen:c=!1,progress:u=null,timeout:d=null,onTimeout:h=()=>{},children:g=null,customStyles:y={},...b})=>{const[x,E]=we.useState(!1),S={small:{width:20,height:20,fontSize:"0.875rem"},medium:{width:40,height:40,fontSize:"1rem"},large:{width:60,height:60,fontSize:"1.25rem"}},w=S[n]||S.medium;we.useEffect(()=>{if(d){const j=setTimeout(()=>{E(!0),h()},d);return()=>clearTimeout(j)}},[d,h]);const T=()=>{switch(e){case"linear":return p.jsxs(le,{sx:{width:"100%",maxWidth:300},children:[p.jsx(bk,{color:a,variant:u!==null?"determinate":"indeterminate",value:u,sx:{height:6,borderRadius:3}}),u!==null&&p.jsxs(se,{variant:"body2",sx:{textAlign:"center",mt:1},children:[Math.round(u),"%"]})]});case"dots":return p.jsx(M8,{children:[0,1,2].map(j=>p.jsx(k8,{delay:j*.16,color:a},j))});case"pulse":return p.jsx(T8,{color:a});case"skeleton":return p.jsxs(le,{sx:{width:"100%",maxWidth:300},children:[p.jsx(_p,{variant:"text",width:"100%",height:40}),p.jsx(_p,{variant:"text",width:"80%",height:30}),p.jsx(_p,{variant:"text",width:"60%",height:30})]});case"custom":return g;default:return p.jsx(nr,{color:a,size:w.width,thickness:4,variant:u!==null?"determinate":"indeterminate",value:u,...b})}},M=p.jsx(du,{in:!0,timeout:300,children:p.jsxs(A8,{overlay:s||c,sx:{minHeight:c?"100vh":"auto",...y},children:[T(),o&&p.jsx(se,{variant:"body2",color:"text.secondary",sx:{fontSize:w.fontSize,textAlign:"center",maxWidth:300,mt:e==="skeleton"?0:1},children:o}),u!==null&&e==="circular"&&p.jsxs(se,{variant:"caption",color:"text.secondary",sx:{mt:1},children:[Math.round(u),"%"]}),x&&p.jsx(se,{variant:"body2",color:"warning.main",sx:{mt:2,textAlign:"center"},children:"La carga está tomando más tiempo del esperado..."})]})});return c&&typeof document<"u"?qs.createPortal(M,document.body):M};we.createContext();Om.propTypes={variant:qe.oneOf(["circular","linear","dots","pulse","skeleton","custom"]),size:qe.oneOf(["small","medium","large"]),color:qe.oneOf(["primary","secondary","error","warning","info","success"]),message:qe.string,overlay:qe.bool,fullScreen:qe.bool,progress:qe.number,timeout:qe.number,onTimeout:qe.func,children:qe.node,customStyles:qe.object};qe.node.isRequired;function O8(e,n){return Mm({queryKey:["pages-user",e],queryFn:async()=>tS(e),enabled:!!e&&n})}const N8=({open:e,onClose:n,userId:a})=>{const{data:o,isLoading:s,error:c}=O8(a,e),u=g=>{g&&window.open(g,"_blank","noopener,noreferrer")},d=o?o.filter(g=>g.web_url&&g.web_url.trim()!==""):[],h=()=>s?p.jsxs(le,{display:"flex",justifyContent:"center",alignItems:"center",py:4,children:[p.jsx(nr,{size:40}),p.jsx(se,{variant:"body1",sx:{ml:2},children:"Cargando páginas..."})]}):c?p.jsxs(sn,{severity:"error",sx:{my:2},icon:p.jsx(zS,{}),children:["Error al cargar las páginas: ",c.message]}):!o||d.length===0?p.jsxs(le,{display:"flex",flexDirection:"column",alignItems:"center",py:6,px:3,children:[p.jsx(px,{sx:{fontSize:80,color:"#8783CA",mb:3}}),p.jsx(se,{variant:"h5",color:"text.secondary",gutterBottom:!0,fontWeight:500,children:"No tienes páginas desplegadas"}),p.jsx(se,{variant:"body1",color:"text.secondary",textAlign:"center",sx:{mb:3,maxWidth:450},children:"Actualmente no hay páginas web disponibles para mostrar. Las páginas aparecerán aquí una vez que el proceso de despliegue haya finalizado exitosamente."}),p.jsxs(le,{sx:{bgcolor:"#F9DCB8",p:3,borderRadius:2,border:"1px solid #8783CA",maxWidth:500},children:[p.jsx(se,{variant:"body2",sx:{mb:1,fontWeight:600,color:"#8783CA"},children:"💡 ¿Qué puedes hacer?"}),p.jsx(se,{variant:"body2",sx:{mb:1,color:"#8783CA"},children:"• Crear un nuevo proyecto desde el dashboard"}),p.jsx(se,{variant:"body2",sx:{color:"#8783CA"},children:"• Esperar a que tus proyectos en curso terminen de desplegarse"})]})]}):p.jsxs(le,{children:[p.jsx(sn,{severity:"success",icon:p.jsx(hu,{}),sx:{mb:3,borderRadius:2,bgcolor:"#F9DCB8",color:"#8783CA",border:"1px solid #8783CA","& .MuiAlert-icon":{color:"#8783CA"}},children:p.jsx(se,{variant:"body2",fontWeight:600,sx:{color:"#8783CA"},children:d.length===1?"Tienes 1 página web desplegada y funcionando":`Tienes ${d.length} páginas web desplegadas y funcionando`})}),p.jsx(Kn,{container:!0,spacing:3,children:d.map((g,y)=>p.jsx(Kn,{item:!0,xs:12,sm:6,lg:4,children:p.jsxs(yo,{elevation:3,sx:{height:"100%",display:"flex",flexDirection:"column",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",cursor:"pointer","&:hover":{elevation:8,transform:"translateY(-4px)",boxShadow:"0 8px 25px rgba(135, 131, 202, 0.15)","& .launch-button":{bgcolor:"#6e6ab3"}}},children:[p.jsxs(bo,{sx:{flexGrow:1,p:3},children:[p.jsxs(le,{display:"flex",alignItems:"flex-start",justifyContent:"space-between",mb:2,children:[p.jsxs(le,{display:"flex",alignItems:"center",flex:1,mr:1,children:[p.jsx(le,{sx:{p:1,borderRadius:2,bgcolor:"#8783CA",color:"white",mr:2},children:p.jsx(px,{sx:{fontSize:20}})}),p.jsx(le,{flex:1,children:p.jsx(se,{variant:"h6",component:"h3",sx:{fontWeight:600,fontSize:"1.1rem",lineHeight:1.2,mb:.5,overflow:"hidden",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},children:g.name_project||"Proyecto sin nombre"})})]}),p.jsx(fm,{label:"Activo",size:"small",sx:{fontWeight:600,bgcolor:"#F9DCB8",color:"#8783CA",border:"1px solid #8783CA"}})]}),p.jsxs(le,{sx:{bgcolor:"#F9DCB8",p:2,borderRadius:1.5,border:"1px solid #8783CA"},children:[p.jsx(se,{variant:"caption",color:"#8783CA",sx:{fontWeight:600,mb:.5,display:"block"},children:"URL del sitio web:"}),p.jsx(se,{variant:"body2",sx:{color:"#8783CA",fontFamily:"monospace",fontSize:"0.85rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:600},children:g.web_url})]})]}),p.jsx(Xc,{sx:{p:3,pt:0},children:p.jsx(qt,{className:"launch-button",variant:"contained",size:"medium",startIcon:p.jsx(AO,{}),onClick:()=>u(g.web_url),fullWidth:!0,sx:{textTransform:"none",borderRadius:2,py:1.2,fontWeight:600,fontSize:"0.95rem",transition:"all 0.2s ease",bgcolor:"#8783CA",color:"white","&:hover":{bgcolor:"#6e6ab3",transform:"translateY(-1px)",boxShadow:"0 4px 12px rgba(135, 131, 202, 0.3)"}},children:"Abrir sitio web"})})]})},`deployed-${y}`))})]});return p.jsxs(bS,{open:e,onClose:n,maxWidth:"md",fullWidth:!0,PaperProps:{sx:{borderRadius:3,bgcolor:"background.paper"}},children:[p.jsxs(SS,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",pb:2,px:3,pt:3},children:[p.jsxs(le,{children:[p.jsx(se,{variant:"h4",component:"h2",fontWeight:700,sx:{mb:.5},children:"Mis Sitios Web"}),p.jsx(se,{variant:"body1",color:"text.secondary",children:"Páginas desplegadas y funcionando"})]}),p.jsx(zr,{onClick:n,sx:{color:"#8783CA",bgcolor:"#F9DCB8",border:"1px solid #8783CA","&:hover":{bgcolor:"#f0d1a8",transform:"scale(1.05)"},transition:"all 0.2s ease"},children:p.jsx(wO,{})})]}),p.jsx(ph,{}),p.jsx(xS,{sx:{py:3},children:h()}),p.jsx(vS,{sx:{px:3,pb:3},children:p.jsx(qt,{onClick:n,variant:"outlined",sx:{textTransform:"none",borderRadius:2,minWidth:100,borderColor:"#8783CA",color:"#8783CA","&:hover":{borderColor:"#6e6ab3",bgcolor:"#F9DCB8",color:"#6e6ab3"}},children:"Cerrar"})})]})};function _8(){const e=gr(),{user:n}=ia(),{data:a,isLoading:o}=E8(n?.pk),[s,c]=v.useState(!1),u=()=>{e("/form")};return o?p.jsx(Om,{}):p.jsxs(p.Fragment,{children:[p.jsx(km,{title:"Dashboard - Gestión de Proyectos"}),p.jsxs(vo,{maxWidth:"lg",sx:{py:4},children:[p.jsxs(le,{sx:{mb:4,textAlign:"center"},children:[p.jsx(se,{variant:"h3",component:"h1",gutterBottom:!0,sx:{fontWeight:"bold",color:"#333",mb:2},children:"Bienvenido a LOMI"}),p.jsx(se,{variant:"h6",color:"text.secondary",sx:{mb:4},children:"Gestiona tus proyectos y crea contenido increíble"})]}),p.jsxs(An,{elevation:0,sx:{mb:4,p:3,borderRadius:3,background:"linear-gradient(135deg, #F9DCB8 0%, #ffffff 100%)",border:"2px solid #8783CA",position:"relative",overflow:"hidden"},children:[p.jsx(le,{sx:{position:"absolute",top:0,right:0,backgroundColor:"#8783CA",color:"white",px:2,py:.5,fontSize:"0.75rem",fontWeight:"bold",borderBottomLeftRadius:8,textTransform:"uppercase",letterSpacing:"0.5px"},children:"BETA"}),p.jsxs(le,{sx:{display:"flex",alignItems:"center",gap:3,pt:1},children:[p.jsx(le,{sx:{width:60,height:60,borderRadius:"50%",backgroundColor:"#8783CA",display:"flex",alignItems:"center",justifyContent:"center",color:"white",fontWeight:"bold",fontSize:"1.5rem",boxShadow:"0 4px 12px rgba(135, 131, 202, 0.3)",flexShrink:0},children:"1"}),p.jsxs(le,{sx:{flex:1},children:[p.jsx(se,{variant:"h6",component:"h3",gutterBottom:!0,sx:{fontWeight:"bold",mb:1},children:"🎉 Proyecto Gratuito Durante la Beta"}),p.jsxs(se,{variant:"body1",color:"text.secondary",sx:{mb:.5},children:["Durante la beta puedes crear ",p.jsx("strong",{children:"1 proyecto completamente gratis"})]}),p.jsx(se,{variant:"body2",color:"primary",sx:{fontWeight:"medium"},children:"¡Aprovecha esta oportunidad limitada!"})]})]})]}),p.jsxs(Kn,{container:!0,spacing:3,sx:{mb:4},children:[p.jsx(Kn,{item:!0,xs:12,md:4,children:p.jsxs(yo,{sx:{height:"100%",display:"flex",flexDirection:"column",borderRadius:3,boxShadow:"0 4px 12px rgba(0,0,0,0.1)",transition:"transform 0.2s ease-in-out","&:hover":{transform:"translateY(-4px)",boxShadow:"0 6px 20px rgba(0,0,0,0.15)"}},children:[p.jsxs(bo,{sx:{flexGrow:1,textAlign:"center",p:3},children:[p.jsx(le,{sx:{width:80,height:80,borderRadius:"50%",backgroundColor:"#F9DCB8",display:"flex",alignItems:"center",justifyContent:"center",mx:"auto",mb:2},children:p.jsx(wm,{sx:{fontSize:40,color:"#8783CA"}})}),p.jsx(se,{variant:"h5",component:"h2",gutterBottom:!0,children:"Crear Proyecto"}),p.jsx(se,{variant:"body2",color:"text.secondary",children:"Inicia un nuevo proyecto completando el formulario con la información de tu empresa"})]}),p.jsx(Xc,{sx:{p:3,pt:0},children:p.jsx(qt,{variant:"contained",fullWidth:!0,onClick:u,sx:{backgroundColor:"#8783CA",color:"white",py:1.5,fontSize:"1.1rem",borderRadius:2,textTransform:"none",fontWeight:600,"&:hover":{backgroundColor:"#6f6ba3"}},disabled:a?.free_attempts===0,children:a?.free_attempts===0?"Límite de intentos alcanzado":"Crear Nuevo Proyecto"})})]})}),p.jsx(Kn,{item:!0,xs:12,md:4,children:p.jsxs(yo,{sx:{height:"100%",display:"flex",flexDirection:"column",borderRadius:3,boxShadow:"0 4px 12px rgba(0,0,0,0.1)"},children:[p.jsxs(bo,{sx:{flexGrow:1,textAlign:"center",p:3},children:[p.jsx(le,{sx:{width:80,height:80,borderRadius:"50%",backgroundColor:"#F9DCB8",display:"flex",alignItems:"center",justifyContent:"center",mx:"auto",mb:2},children:p.jsx(hx,{sx:{fontSize:40,color:"#8783CA"}})}),p.jsx(se,{variant:"h5",component:"h2",gutterBottom:!0,children:"Mis Proyectos"}),p.jsx(se,{variant:"body2",color:"text.secondary",children:"Ver y gestionar todos tus proyectos existentes"})]}),p.jsx(Xc,{sx:{p:3,pt:0},children:p.jsx(qt,{variant:"outlined",fullWidth:!0,onClick:()=>c(!0),disabled:s,sx:{backgroundColor:"#8783CA",color:"white",py:1.5,fontSize:"1.1rem",borderRadius:2,textTransform:"none",fontWeight:600},children:"Ver Proyectos"})})]})}),p.jsx(Kn,{item:!0,xs:12,md:4,children:p.jsxs(yo,{sx:{height:"100%",display:"flex",flexDirection:"column",borderRadius:3,boxShadow:"0 4px 12px rgba(0,0,0,0.1)",opacity:.6},children:[p.jsxs(bo,{sx:{flexGrow:1,textAlign:"center",p:3},children:[p.jsx(le,{sx:{width:80,height:80,borderRadius:"50%",backgroundColor:"#F9DCB8",display:"flex",alignItems:"center",justifyContent:"center",mx:"auto",mb:2},children:p.jsx(hx,{sx:{fontSize:40,color:"#8783CA"}})}),p.jsx(se,{variant:"h5",component:"h2",gutterBottom:!0,children:"Vista Previa"}),p.jsx(se,{variant:"body2",color:"text.secondary",children:"Visualiza cómo se verán tus plantillas generadas"})]}),p.jsx(Xc,{sx:{p:3,pt:0},children:p.jsx(qt,{variant:"outlined",fullWidth:!0,disabled:!0,sx:{py:1.5,fontSize:"1.1rem",borderRadius:2,textTransform:"none",fontWeight:600},children:"Próximamente"})})]})})]}),p.jsxs(An,{elevation:1,sx:{p:4,borderRadius:3,backgroundColor:"#F9DCB8",border:"1px solid #e0e0e0"},children:[p.jsx(se,{variant:"h5",gutterBottom:!0,sx:{fontWeight:600,color:"#333"},children:"¿Cómo funciona?"}),p.jsx(le,{sx:{mt:3},children:p.jsxs(Kn,{container:!0,spacing:2,children:[p.jsx(Kn,{item:!0,xs:12,md:4,children:p.jsxs(le,{sx:{display:"flex",alignItems:"flex-start",gap:2},children:[p.jsx(le,{sx:{width:32,height:32,borderRadius:"50%",backgroundColor:"#8783CA",color:"white",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",fontSize:"1.1rem",flexShrink:0},children:"1"}),p.jsxs(le,{children:[p.jsx(se,{variant:"h6",gutterBottom:!0,children:"Crear Proyecto"}),p.jsx(se,{variant:"body2",color:"text.secondary",children:'Haz clic en "Crear Nuevo Proyecto" y completa el formulario con la información de tu empresa'})]})]})}),p.jsx(Kn,{item:!0,xs:12,md:4,children:p.jsxs(le,{sx:{display:"flex",alignItems:"flex-start",gap:2},children:[p.jsx(le,{sx:{width:32,height:32,borderRadius:"50%",backgroundColor:"#8783CA",color:"white",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",fontSize:"1.1rem",flexShrink:0},children:"2"}),p.jsxs(le,{children:[p.jsx(se,{variant:"h6",gutterBottom:!0,children:"Completar Formulario"}),p.jsx(se,{variant:"body2",color:"text.secondary",children:"Proporciona información sobre tu empresa, productos y testimonios de clientes"})]})]})}),p.jsx(Kn,{item:!0,xs:12,md:4,children:p.jsxs(le,{sx:{display:"flex",alignItems:"flex-start",gap:2},children:[p.jsx(le,{sx:{width:32,height:32,borderRadius:"50%",backgroundColor:"#8783CA",color:"white",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",fontSize:"1.1rem",flexShrink:0},children:"3"}),p.jsxs(le,{children:[p.jsx(se,{variant:"h6",gutterBottom:!0,children:"Vista Previa"}),p.jsx(se,{variant:"body2",color:"text.secondary",children:"Visualiza automáticamente cómo se ve tu contenido en diferentes plantillas"})]})]})})]})})]}),p.jsx(N8,{open:s,onClose:()=>c(!1),userId:n.pk})]})]})}var Sl=e=>e.type==="checkbox",go=e=>e instanceof Date,bn=e=>e==null;const KS=e=>typeof e=="object";var Bt=e=>!bn(e)&&!Array.isArray(e)&&KS(e)&&!go(e),QS=e=>Bt(e)&&e.target?Sl(e.target)?e.target.checked:e.target.value:e,z8=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,XS=(e,n)=>e.has(z8(n)),D8=e=>{const n=e.constructor&&e.constructor.prototype;return Bt(n)&&n.hasOwnProperty("isPrototypeOf")},Nm=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Rt(e){let n;const a=Array.isArray(e),o=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)n=new Date(e);else if(!(Nm&&(e instanceof Blob||o))&&(a||Bt(e)))if(n=a?[]:Object.create(Object.getPrototypeOf(e)),!a&&!D8(e))n=e;else for(const s in e)e.hasOwnProperty(s)&&(n[s]=Rt(e[s]));else return e;return n}var Gu=e=>/^\w*$/.test(e),Tt=e=>e===void 0,Wu=e=>Array.isArray(e)?e.filter(Boolean):[],_m=e=>Wu(e.replace(/["|']|\]/g,"").split(/\.|\[/)),xe=(e,n,a)=>{if(!n||!Bt(e))return a;const o=(Gu(n)?[n]:_m(n)).reduce((s,c)=>bn(s)?s:s[c],e);return Tt(o)||o===e?Tt(e[n])?a:e[n]:o},Pn=e=>typeof e=="boolean",xt=(e,n,a)=>{let o=-1;const s=Gu(n)?[n]:_m(n),c=s.length,u=c-1;for(;++o<c;){const d=s[o];let h=a;if(o!==u){const g=e[d];h=Bt(g)||Array.isArray(g)?g:isNaN(+s[o+1])?{}:[]}if(d==="__proto__"||d==="constructor"||d==="prototype")return;e[d]=h,e=e[d]}};const bu={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},er={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Jr={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},zm=we.createContext(null);zm.displayName="HookFormContext";const Wt=()=>we.useContext(zm),L8=e=>{const{children:n,...a}=e;return we.createElement(zm.Provider,{value:a},n)};var ZS=(e,n,a,o=!0)=>{const s={defaultValues:n._defaultValues};for(const c in e)Object.defineProperty(s,c,{get:()=>{const u=c;return n._proxyFormState[u]!==er.all&&(n._proxyFormState[u]=!o||er.all),a&&(a[u]=!0),e[u]}});return s};const Yu=typeof window<"u"?we.useLayoutEffect:we.useEffect;function P8(e){const n=Wt(),{control:a=n.control,disabled:o,name:s,exact:c}=e||{},[u,d]=we.useState(a._formState),h=we.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Yu(()=>a._subscribe({name:s,formState:h.current,exact:c,callback:g=>{!o&&d({...a._formState,...g})}}),[s,o,c]),we.useEffect(()=>{h.current.isValid&&a._setValid(!0)},[a]),we.useMemo(()=>ZS(u,a,h.current,!1),[u,a])}var Mr=e=>typeof e=="string",JS=(e,n,a,o,s)=>Mr(e)?(o&&n.watch.add(e),xe(a,e,s)):Array.isArray(e)?e.map(c=>(o&&n.watch.add(c),xe(a,c))):(o&&(n.watchAll=!0),a),Ah=e=>bn(e)||!KS(e);function ea(e,n,a=new WeakSet){if(Ah(e)||Ah(n))return e===n;if(go(e)&&go(n))return e.getTime()===n.getTime();const o=Object.keys(e),s=Object.keys(n);if(o.length!==s.length)return!1;if(a.has(e)||a.has(n))return!0;a.add(e),a.add(n);for(const c of o){const u=e[c];if(!s.includes(c))return!1;if(c!=="ref"){const d=n[c];if(go(u)&&go(d)||Bt(u)&&Bt(d)||Array.isArray(u)&&Array.isArray(d)?!ea(u,d,a):u!==d)return!1}}return!0}function e2(e){const n=Wt(),{control:a=n.control,name:o,defaultValue:s,disabled:c,exact:u,compute:d}=e||{},h=we.useRef(s),g=we.useRef(d),y=we.useRef(void 0);g.current=d;const b=we.useMemo(()=>a._getWatch(o,h.current),[a,o]),[x,E]=we.useState(g.current?g.current(b):b);return Yu(()=>a._subscribe({name:o,formState:{values:!0},exact:u,callback:S=>{if(!c){const w=JS(o,a._names,S.values||a._formValues,!1,h.current);if(g.current){const T=g.current(w);ea(T,y.current)||(E(T),y.current=T)}else E(w)}}}),[a,c,o,u]),we.useEffect(()=>a._removeUnmounted()),x}function $8(e){const n=Wt(),{name:a,disabled:o,control:s=n.control,shouldUnregister:c,defaultValue:u}=e,d=XS(s._names.array,a),h=we.useMemo(()=>xe(s._formValues,a,xe(s._defaultValues,a,u)),[s,a,u]),g=e2({control:s,name:a,defaultValue:h,exact:!0}),y=P8({control:s,name:a,exact:!0}),b=we.useRef(e),x=we.useRef(s.register(a,{...e.rules,value:g,...Pn(e.disabled)?{disabled:e.disabled}:{}}));b.current=e;const E=we.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!xe(y.errors,a)},isDirty:{enumerable:!0,get:()=>!!xe(y.dirtyFields,a)},isTouched:{enumerable:!0,get:()=>!!xe(y.touchedFields,a)},isValidating:{enumerable:!0,get:()=>!!xe(y.validatingFields,a)},error:{enumerable:!0,get:()=>xe(y.errors,a)}}),[y,a]),S=we.useCallback(j=>x.current.onChange({target:{value:QS(j),name:a},type:bu.CHANGE}),[a]),w=we.useCallback(()=>x.current.onBlur({target:{value:xe(s._formValues,a),name:a},type:bu.BLUR}),[a,s._formValues]),T=we.useCallback(j=>{const O=xe(s._fields,a);O&&j&&(O._f.ref={focus:()=>j.focus&&j.focus(),select:()=>j.select&&j.select(),setCustomValidity:N=>j.setCustomValidity(N),reportValidity:()=>j.reportValidity()})},[s._fields,a]),M=we.useMemo(()=>({name:a,value:g,...Pn(o)||y.disabled?{disabled:y.disabled||o}:{},onChange:S,onBlur:w,ref:T}),[a,o,y.disabled,S,w,T,g]);return we.useEffect(()=>{const j=s._options.shouldUnregister||c;s.register(a,{...b.current.rules,...Pn(b.current.disabled)?{disabled:b.current.disabled}:{}});const O=(N,A)=>{const z=xe(s._fields,N);z&&z._f&&(z._f.mount=A)};if(O(a,!0),j){const N=Rt(xe(s._options.defaultValues,a));xt(s._defaultValues,a,N),Tt(xe(s._formValues,a))&&xt(s._formValues,a,N)}return!d&&s.register(a),()=>{(d?j&&!s._state.action:j)?s.unregister(a):O(a,!1)}},[a,s,d,c]),we.useEffect(()=>{s._setDisabledField({disabled:o,name:a})},[o,a,s]),we.useMemo(()=>({field:M,formState:y,fieldState:E}),[M,y,E])}const hn=e=>e.render($8(e));var B8=(e,n,a,o,s)=>n?{...a[e],types:{...a[e]&&a[e].types?a[e].types:{},[o]:s||!0}}:{},En=e=>Array.isArray(e)?e:[e],Rx=()=>{let e=[];return{get observers(){return e},next:s=>{for(const c of e)c.next&&c.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(c=>c!==s)}}),unsubscribe:()=>{e=[]}}},gn=e=>Bt(e)&&!Object.keys(e).length,Dm=e=>e.type==="file",fr=e=>typeof e=="function",vu=e=>{if(!Nm)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},t2=e=>e.type==="select-multiple",Lm=e=>e.type==="radio",I8=e=>Lm(e)||Sl(e),Lp=e=>vu(e)&&e.isConnected;function F8(e,n){const a=n.slice(0,-1).length;let o=0;for(;o<a;)e=Tt(e)?o++:e[n[o++]];return e}function U8(e){for(const n in e)if(e.hasOwnProperty(n)&&!Tt(e[n]))return!1;return!0}function $t(e,n){const a=Array.isArray(n)?n:Gu(n)?[n]:_m(n),o=a.length===1?e:F8(e,a),s=a.length-1,c=a[s];return o&&delete o[c],s!==0&&(Bt(o)&&gn(o)||Array.isArray(o)&&U8(o))&&$t(e,a.slice(0,-1)),e}var n2=e=>{for(const n in e)if(fr(e[n]))return!0;return!1};function xu(e,n={}){const a=Array.isArray(e);if(Bt(e)||a)for(const o in e)Array.isArray(e[o])||Bt(e[o])&&!n2(e[o])?(n[o]=Array.isArray(e[o])?[]:{},xu(e[o],n[o])):bn(e[o])||(n[o]=!0);return n}function r2(e,n,a){const o=Array.isArray(e);if(Bt(e)||o)for(const s in e)Array.isArray(e[s])||Bt(e[s])&&!n2(e[s])?Tt(n)||Ah(a[s])?a[s]=Array.isArray(e[s])?xu(e[s],[]):{...xu(e[s])}:r2(e[s],bn(n)?{}:n[s],a[s]):a[s]=!ea(e[s],n[s]);return a}var Hs=(e,n)=>r2(e,n,xu(n));const Tx={value:!1,isValid:!1},Ax={value:!0,isValid:!0};var a2=e=>{if(Array.isArray(e)){if(e.length>1){const n=e.filter(a=>a&&a.checked&&!a.disabled).map(a=>a.value);return{value:n,isValid:!!n.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Tt(e[0].attributes.value)?Tt(e[0].value)||e[0].value===""?Ax:{value:e[0].value,isValid:!0}:Ax:Tx}return Tx},o2=(e,{valueAsNumber:n,valueAsDate:a,setValueAs:o})=>Tt(e)?e:n?e===""?NaN:e&&+e:a&&Mr(e)?new Date(e):o?o(e):e;const jx={isValid:!1,value:null};var i2=e=>Array.isArray(e)?e.reduce((n,a)=>a&&a.checked&&!a.disabled?{isValid:!0,value:a.value}:n,jx):jx;function Mx(e){const n=e.ref;return Dm(n)?n.files:Lm(n)?i2(e.refs).value:t2(n)?[...n.selectedOptions].map(({value:a})=>a):Sl(n)?a2(e.refs).value:o2(Tt(n.value)?e.ref.value:n.value,e)}var H8=(e,n,a,o)=>{const s={};for(const c of e){const u=xe(n,c);u&&xt(s,c,u._f)}return{criteriaMode:a,names:[...e],fields:s,shouldUseNativeValidation:o}},Su=e=>e instanceof RegExp,Vs=e=>Tt(e)?e:Su(e)?e.source:Bt(e)?Su(e.value)?e.value.source:e.value:e,vi=e=>({isOnSubmit:!e||e===er.onSubmit,isOnBlur:e===er.onBlur,isOnChange:e===er.onChange,isOnAll:e===er.all,isOnTouch:e===er.onTouched});const kx="AsyncFunction";var V8=e=>!!e&&!!e.validate&&!!(fr(e.validate)&&e.validate.constructor.name===kx||Bt(e.validate)&&Object.values(e.validate).find(n=>n.constructor.name===kx)),q8=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),jh=(e,n,a)=>!a&&(n.watchAll||n.watch.has(e)||[...n.watch].some(o=>e.startsWith(o)&&/^\.\w+/.test(e.slice(o.length))));const wi=(e,n,a,o)=>{for(const s of a||Object.keys(e)){const c=xe(e,s);if(c){const{_f:u,...d}=c;if(u){if(u.refs&&u.refs[0]&&n(u.refs[0],s)&&!o)return!0;if(u.ref&&n(u.ref,u.name)&&!o)return!0;if(wi(d,n))break}else if(Bt(d)&&wi(d,n))break}}};function Ox(e,n,a){const o=xe(e,a);if(o||Gu(a))return{error:o,name:a};const s=a.split(".");for(;s.length;){const c=s.join("."),u=xe(n,c),d=xe(e,c);if(u&&!Array.isArray(u)&&a!==c)return{name:a};if(d&&d.type)return{name:c,error:d};if(d&&d.root&&d.root.type)return{name:`${c}.root`,error:d.root};s.pop()}return{name:a}}var G8=(e,n,a,o)=>{a(e);const{name:s,...c}=e;return gn(c)||Object.keys(c).length>=Object.keys(n).length||Object.keys(c).find(u=>n[u]===(!o||er.all))},W8=(e,n,a)=>!e||!n||e===n||En(e).some(o=>o&&(a?o===n:o.startsWith(n)||n.startsWith(o))),Y8=(e,n,a,o,s)=>s.isOnAll?!1:!a&&s.isOnTouch?!(n||e):(a?o.isOnBlur:s.isOnBlur)?!e:(a?o.isOnChange:s.isOnChange)?e:!0,K8=(e,n)=>!Wu(xe(e,n)).length&&$t(e,n),s2=(e,n,a)=>{const o=En(xe(e,a));return xt(o,"root",n[a]),xt(e,a,o),e},Zc=e=>Mr(e);function Nx(e,n,a="validate"){if(Zc(e)||Array.isArray(e)&&e.every(Zc)||Pn(e)&&!e)return{type:a,message:Zc(e)?e:"",ref:n}}var gi=e=>Bt(e)&&!Su(e)?e:{value:e,message:""},Mh=async(e,n,a,o,s,c)=>{const{ref:u,refs:d,required:h,maxLength:g,minLength:y,min:b,max:x,pattern:E,validate:S,name:w,valueAsNumber:T,mount:M}=e._f,j=xe(a,w);if(!M||n.has(w))return{};const O=d?d[0]:u,N=R=>{s&&O.reportValidity&&(O.setCustomValidity(Pn(R)?"":R||""),O.reportValidity())},A={},z=Lm(u),L=Sl(u),B=z||L,V=(T||Dm(u))&&Tt(u.value)&&Tt(j)||vu(u)&&u.value===""||j===""||Array.isArray(j)&&!j.length,X=B8.bind(null,w,o,A),Z=(R,G,F,q=Jr.maxLength,D=Jr.minLength)=>{const I=R?G:F;A[w]={type:R?q:D,message:I,ref:u,...X(R?q:D,I)}};if(c?!Array.isArray(j)||!j.length:h&&(!B&&(V||bn(j))||Pn(j)&&!j||L&&!a2(d).isValid||z&&!i2(d).isValid)){const{value:R,message:G}=Zc(h)?{value:!!h,message:h}:gi(h);if(R&&(A[w]={type:Jr.required,message:G,ref:O,...X(Jr.required,G)},!o))return N(G),A}if(!V&&(!bn(b)||!bn(x))){let R,G;const F=gi(x),q=gi(b);if(!bn(j)&&!isNaN(j)){const D=u.valueAsNumber||j&&+j;bn(F.value)||(R=D>F.value),bn(q.value)||(G=D<q.value)}else{const D=u.valueAsDate||new Date(j),I=_=>new Date(new Date().toDateString()+" "+_),H=u.type=="time",W=u.type=="week";Mr(F.value)&&j&&(R=H?I(j)>I(F.value):W?j>F.value:D>new Date(F.value)),Mr(q.value)&&j&&(G=H?I(j)<I(q.value):W?j<q.value:D<new Date(q.value))}if((R||G)&&(Z(!!R,F.message,q.message,Jr.max,Jr.min),!o))return N(A[w].message),A}if((g||y)&&!V&&(Mr(j)||c&&Array.isArray(j))){const R=gi(g),G=gi(y),F=!bn(R.value)&&j.length>+R.value,q=!bn(G.value)&&j.length<+G.value;if((F||q)&&(Z(F,R.message,G.message),!o))return N(A[w].message),A}if(E&&!V&&Mr(j)){const{value:R,message:G}=gi(E);if(Su(R)&&!j.match(R)&&(A[w]={type:Jr.pattern,message:G,ref:u,...X(Jr.pattern,G)},!o))return N(G),A}if(S){if(fr(S)){const R=await S(j,a),G=Nx(R,O);if(G&&(A[w]={...G,...X(Jr.validate,G.message)},!o))return N(G.message),A}else if(Bt(S)){let R={};for(const G in S){if(!gn(R)&&!o)break;const F=Nx(await S[G](j,a),O,G);F&&(R={...F,...X(G,F.message)},N(F.message),o&&(A[w]=R))}if(!gn(R)&&(A[w]={ref:O,...R},!o))return A}}return N(!0),A};const Q8={mode:er.onSubmit,reValidateMode:er.onChange,shouldFocusError:!0};function X8(e={}){let n={...Q8,...e},a={submitCount:0,isDirty:!1,isReady:!1,isLoading:fr(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},o={},s=Bt(n.defaultValues)||Bt(n.values)?Rt(n.defaultValues||n.values)||{}:{},c=n.shouldUnregister?{}:Rt(s),u={action:!1,mount:!1,watch:!1},d={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},h,g=0;const y={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let b={...y};const x={array:Rx(),state:Rx()},E=n.criteriaMode===er.all,S=$=>Y=>{clearTimeout(g),g=setTimeout($,Y)},w=async $=>{if(!n.disabled&&(y.isValid||b.isValid||$)){const Y=n.resolver?gn((await L()).errors):await V(o,!0);Y!==a.isValid&&x.state.next({isValid:Y})}},T=($,Y)=>{!n.disabled&&(y.isValidating||y.validatingFields||b.isValidating||b.validatingFields)&&(($||Array.from(d.mount)).forEach(K=>{K&&(Y?xt(a.validatingFields,K,Y):$t(a.validatingFields,K))}),x.state.next({validatingFields:a.validatingFields,isValidating:!gn(a.validatingFields)}))},M=($,Y=[],K,ve,ge=!0,ye=!0)=>{if(ve&&K&&!n.disabled){if(u.action=!0,ye&&Array.isArray(xe(o,$))){const Se=K(xe(o,$),ve.argA,ve.argB);ge&&xt(o,$,Se)}if(ye&&Array.isArray(xe(a.errors,$))){const Se=K(xe(a.errors,$),ve.argA,ve.argB);ge&&xt(a.errors,$,Se),K8(a.errors,$)}if((y.touchedFields||b.touchedFields)&&ye&&Array.isArray(xe(a.touchedFields,$))){const Se=K(xe(a.touchedFields,$),ve.argA,ve.argB);ge&&xt(a.touchedFields,$,Se)}(y.dirtyFields||b.dirtyFields)&&(a.dirtyFields=Hs(s,c)),x.state.next({name:$,isDirty:Z($,Y),dirtyFields:a.dirtyFields,errors:a.errors,isValid:a.isValid})}else xt(c,$,Y)},j=($,Y)=>{xt(a.errors,$,Y),x.state.next({errors:a.errors})},O=$=>{a.errors=$,x.state.next({errors:a.errors,isValid:!1})},N=($,Y,K,ve)=>{const ge=xe(o,$);if(ge){const ye=xe(c,$,Tt(K)?xe(s,$):K);Tt(ye)||ve&&ve.defaultChecked||Y?xt(c,$,Y?ye:Mx(ge._f)):F($,ye),u.mount&&w()}},A=($,Y,K,ve,ge)=>{let ye=!1,Se=!1;const Re={name:$};if(!n.disabled){if(!K||ve){(y.isDirty||b.isDirty)&&(Se=a.isDirty,a.isDirty=Re.isDirty=Z(),ye=Se!==Re.isDirty);const Le=ea(xe(s,$),Y);Se=!!xe(a.dirtyFields,$),Le?$t(a.dirtyFields,$):xt(a.dirtyFields,$,!0),Re.dirtyFields=a.dirtyFields,ye=ye||(y.dirtyFields||b.dirtyFields)&&Se!==!Le}if(K){const Le=xe(a.touchedFields,$);Le||(xt(a.touchedFields,$,K),Re.touchedFields=a.touchedFields,ye=ye||(y.touchedFields||b.touchedFields)&&Le!==K)}ye&&ge&&x.state.next(Re)}return ye?Re:{}},z=($,Y,K,ve)=>{const ge=xe(a.errors,$),ye=(y.isValid||b.isValid)&&Pn(Y)&&a.isValid!==Y;if(n.delayError&&K?(h=S(()=>j($,K)),h(n.delayError)):(clearTimeout(g),h=null,K?xt(a.errors,$,K):$t(a.errors,$)),(K?!ea(ge,K):ge)||!gn(ve)||ye){const Se={...ve,...ye&&Pn(Y)?{isValid:Y}:{},errors:a.errors,name:$};a={...a,...Se},x.state.next(Se)}},L=async $=>{T($,!0);const Y=await n.resolver(c,n.context,H8($||d.mount,o,n.criteriaMode,n.shouldUseNativeValidation));return T($),Y},B=async $=>{const{errors:Y}=await L($);if($)for(const K of $){const ve=xe(Y,K);ve?xt(a.errors,K,ve):$t(a.errors,K)}else a.errors=Y;return Y},V=async($,Y,K={valid:!0})=>{for(const ve in $){const ge=$[ve];if(ge){const{_f:ye,...Se}=ge;if(ye){const Re=d.array.has(ye.name),Le=ge._f&&V8(ge._f);Le&&y.validatingFields&&T([ve],!0);const Ve=await Mh(ge,d.disabled,c,E,n.shouldUseNativeValidation&&!Y,Re);if(Le&&y.validatingFields&&T([ve]),Ve[ye.name]&&(K.valid=!1,Y))break;!Y&&(xe(Ve,ye.name)?Re?s2(a.errors,Ve,ye.name):xt(a.errors,ye.name,Ve[ye.name]):$t(a.errors,ye.name))}!gn(Se)&&await V(Se,Y,K)}}return K.valid},X=()=>{for(const $ of d.unMount){const Y=xe(o,$);Y&&(Y._f.refs?Y._f.refs.every(K=>!Lp(K)):!Lp(Y._f.ref))&&Ee($)}d.unMount=new Set},Z=($,Y)=>!n.disabled&&($&&Y&&xt(c,$,Y),!ea(_(),s)),R=($,Y,K)=>JS($,d,{...u.mount?c:Tt(Y)?s:Mr($)?{[$]:Y}:Y},K,Y),G=$=>Wu(xe(u.mount?c:s,$,n.shouldUnregister?xe(s,$,[]):[])),F=($,Y,K={})=>{const ve=xe(o,$);let ge=Y;if(ve){const ye=ve._f;ye&&(!ye.disabled&&xt(c,$,o2(Y,ye)),ge=vu(ye.ref)&&bn(Y)?"":Y,t2(ye.ref)?[...ye.ref.options].forEach(Se=>Se.selected=ge.includes(Se.value)):ye.refs?Sl(ye.ref)?ye.refs.forEach(Se=>{(!Se.defaultChecked||!Se.disabled)&&(Array.isArray(ge)?Se.checked=!!ge.find(Re=>Re===Se.value):Se.checked=ge===Se.value||!!ge)}):ye.refs.forEach(Se=>Se.checked=Se.value===ge):Dm(ye.ref)?ye.ref.value="":(ye.ref.value=ge,ye.ref.type||x.state.next({name:$,values:Rt(c)})))}(K.shouldDirty||K.shouldTouch)&&A($,ge,K.shouldTouch,K.shouldDirty,!0),K.shouldValidate&&W($)},q=($,Y,K)=>{for(const ve in Y){if(!Y.hasOwnProperty(ve))return;const ge=Y[ve],ye=$+"."+ve,Se=xe(o,ye);(d.array.has($)||Bt(ge)||Se&&!Se._f)&&!go(ge)?q(ye,ge,K):F(ye,ge,K)}},D=($,Y,K={})=>{const ve=xe(o,$),ge=d.array.has($),ye=Rt(Y);xt(c,$,ye),ge?(x.array.next({name:$,values:Rt(c)}),(y.isDirty||y.dirtyFields||b.isDirty||b.dirtyFields)&&K.shouldDirty&&x.state.next({name:$,dirtyFields:Hs(s,c),isDirty:Z($,ye)})):ve&&!ve._f&&!bn(ye)?q($,ye,K):F($,ye,K),jh($,d)&&x.state.next({...a,name:$}),x.state.next({name:u.mount?$:void 0,values:Rt(c)})},I=async $=>{u.mount=!0;const Y=$.target;let K=Y.name,ve=!0;const ge=xe(o,K),ye=Le=>{ve=Number.isNaN(Le)||go(Le)&&isNaN(Le.getTime())||ea(Le,xe(c,K,Le))},Se=vi(n.mode),Re=vi(n.reValidateMode);if(ge){let Le,Ve;const Ft=Y.type?Mx(ge._f):QS($),Xe=$.type===bu.BLUR||$.type===bu.FOCUS_OUT,yr=!q8(ge._f)&&!n.resolver&&!xe(a.errors,K)&&!ge._f.deps||Y8(Xe,xe(a.touchedFields,K),a.isSubmitted,Re,Se),Mn=jh(K,d,Xe);xt(c,K,Ft),Xe?(!Y||!Y.readOnly)&&(ge._f.onBlur&&ge._f.onBlur($),h&&h(0)):ge._f.onChange&&ge._f.onChange($);const sr=A(K,Ft,Xe),Me=!gn(sr)||Mn;if(!Xe&&x.state.next({name:K,type:$.type,values:Rt(c)}),yr)return(y.isValid||b.isValid)&&(n.mode==="onBlur"?Xe&&w():Xe||w()),Me&&x.state.next({name:K,...Mn?{}:sr});if(!Xe&&Mn&&x.state.next({...a}),n.resolver){const{errors:at}=await L([K]);if(ye(Ft),ve){const Et=Ox(a.errors,o,K),lr=Ox(at,o,Et.name||K);Le=lr.error,K=lr.name,Ve=gn(at)}}else T([K],!0),Le=(await Mh(ge,d.disabled,c,E,n.shouldUseNativeValidation))[K],T([K]),ye(Ft),ve&&(Le?Ve=!1:(y.isValid||b.isValid)&&(Ve=await V(o,!0)));ve&&(ge._f.deps&&W(ge._f.deps),z(K,Ve,Le,sr))}},H=($,Y)=>{if(xe(a.errors,Y)&&$.focus)return $.focus(),1},W=async($,Y={})=>{let K,ve;const ge=En($);if(n.resolver){const ye=await B(Tt($)?$:ge);K=gn(ye),ve=$?!ge.some(Se=>xe(ye,Se)):K}else $?(ve=(await Promise.all(ge.map(async ye=>{const Se=xe(o,ye);return await V(Se&&Se._f?{[ye]:Se}:Se)}))).every(Boolean),!(!ve&&!a.isValid)&&w()):ve=K=await V(o);return x.state.next({...!Mr($)||(y.isValid||b.isValid)&&K!==a.isValid?{}:{name:$},...n.resolver||!$?{isValid:K}:{},errors:a.errors}),Y.shouldFocus&&!ve&&wi(o,H,$?ge:d.mount),ve},_=$=>{const Y={...u.mount?c:s};return Tt($)?Y:Mr($)?xe(Y,$):$.map(K=>xe(Y,K))},J=($,Y)=>({invalid:!!xe((Y||a).errors,$),isDirty:!!xe((Y||a).dirtyFields,$),error:xe((Y||a).errors,$),isValidating:!!xe(a.validatingFields,$),isTouched:!!xe((Y||a).touchedFields,$)}),ue=$=>{$&&En($).forEach(Y=>$t(a.errors,Y)),x.state.next({errors:$?a.errors:{}})},oe=($,Y,K)=>{const ve=(xe(o,$,{_f:{}})._f||{}).ref,ge=xe(a.errors,$)||{},{ref:ye,message:Se,type:Re,...Le}=ge;xt(a.errors,$,{...Le,...Y,ref:ve}),x.state.next({name:$,errors:a.errors,isValid:!1}),K&&K.shouldFocus&&ve&&ve.focus&&ve.focus()},pe=($,Y)=>fr($)?x.state.subscribe({next:K=>"values"in K&&$(R(void 0,Y),K)}):R($,Y,!0),be=$=>x.state.subscribe({next:Y=>{W8($.name,Y.name,$.exact)&&G8(Y,$.formState||y,it,$.reRenderRoot)&&$.callback({values:{...c},...a,...Y,defaultValues:s})}}).unsubscribe,ae=$=>(u.mount=!0,b={...b,...$.formState},be({...$,formState:b})),Ee=($,Y={})=>{for(const K of $?En($):d.mount)d.mount.delete(K),d.array.delete(K),Y.keepValue||($t(o,K),$t(c,K)),!Y.keepError&&$t(a.errors,K),!Y.keepDirty&&$t(a.dirtyFields,K),!Y.keepTouched&&$t(a.touchedFields,K),!Y.keepIsValidating&&$t(a.validatingFields,K),!n.shouldUnregister&&!Y.keepDefaultValue&&$t(s,K);x.state.next({values:Rt(c)}),x.state.next({...a,...Y.keepDirty?{isDirty:Z()}:{}}),!Y.keepIsValid&&w()},Ae=({disabled:$,name:Y})=>{(Pn($)&&u.mount||$||d.disabled.has(Y))&&($?d.disabled.add(Y):d.disabled.delete(Y))},Ie=($,Y={})=>{let K=xe(o,$);const ve=Pn(Y.disabled)||Pn(n.disabled);return xt(o,$,{...K||{},_f:{...K&&K._f?K._f:{ref:{name:$}},name:$,mount:!0,...Y}}),d.mount.add($),K?Ae({disabled:Pn(Y.disabled)?Y.disabled:n.disabled,name:$}):N($,!0,Y.value),{...ve?{disabled:Y.disabled||n.disabled}:{},...n.progressive?{required:!!Y.required,min:Vs(Y.min),max:Vs(Y.max),minLength:Vs(Y.minLength),maxLength:Vs(Y.maxLength),pattern:Vs(Y.pattern)}:{},name:$,onChange:I,onBlur:I,ref:ge=>{if(ge){Ie($,Y),K=xe(o,$);const ye=Tt(ge.value)&&ge.querySelectorAll&&ge.querySelectorAll("input,select,textarea")[0]||ge,Se=I8(ye),Re=K._f.refs||[];if(Se?Re.find(Le=>Le===ye):ye===K._f.ref)return;xt(o,$,{_f:{...K._f,...Se?{refs:[...Re.filter(Lp),ye,...Array.isArray(xe(s,$))?[{}]:[]],ref:{type:ye.type,name:$}}:{ref:ye}}}),N($,!1,void 0,ye)}else K=xe(o,$,{}),K._f&&(K._f.mount=!1),(n.shouldUnregister||Y.shouldUnregister)&&!(XS(d.array,$)&&u.action)&&d.unMount.add($)}}},je=()=>n.shouldFocusError&&wi(o,H,d.mount),Ue=$=>{Pn($)&&(x.state.next({disabled:$}),wi(o,(Y,K)=>{const ve=xe(o,K);ve&&(Y.disabled=ve._f.disabled||$,Array.isArray(ve._f.refs)&&ve._f.refs.forEach(ge=>{ge.disabled=ve._f.disabled||$}))},0,!1))},Ge=($,Y)=>async K=>{let ve;K&&(K.preventDefault&&K.preventDefault(),K.persist&&K.persist());let ge=Rt(c);if(x.state.next({isSubmitting:!0}),n.resolver){const{errors:ye,values:Se}=await L();a.errors=ye,ge=Rt(Se)}else await V(o);if(d.disabled.size)for(const ye of d.disabled)$t(ge,ye);if($t(a.errors,"root"),gn(a.errors)){x.state.next({errors:{}});try{await $(ge,K)}catch(ye){ve=ye}}else Y&&await Y({...a.errors},K),je(),setTimeout(je);if(x.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:gn(a.errors)&&!ve,submitCount:a.submitCount+1,errors:a.errors}),ve)throw ve},Ye=($,Y={})=>{xe(o,$)&&(Tt(Y.defaultValue)?D($,Rt(xe(s,$))):(D($,Y.defaultValue),xt(s,$,Rt(Y.defaultValue))),Y.keepTouched||$t(a.touchedFields,$),Y.keepDirty||($t(a.dirtyFields,$),a.isDirty=Y.defaultValue?Z($,Rt(xe(s,$))):Z()),Y.keepError||($t(a.errors,$),y.isValid&&w()),x.state.next({...a}))},De=($,Y={})=>{const K=$?Rt($):s,ve=Rt(K),ge=gn($),ye=ge?s:ve;if(Y.keepDefaultValues||(s=K),!Y.keepValues){if(Y.keepDirtyValues){const Se=new Set([...d.mount,...Object.keys(Hs(s,c))]);for(const Re of Array.from(Se))xe(a.dirtyFields,Re)?xt(ye,Re,xe(c,Re)):D(Re,xe(ye,Re))}else{if(Nm&&Tt($))for(const Se of d.mount){const Re=xe(o,Se);if(Re&&Re._f){const Le=Array.isArray(Re._f.refs)?Re._f.refs[0]:Re._f.ref;if(vu(Le)){const Ve=Le.closest("form");if(Ve){Ve.reset();break}}}}if(Y.keepFieldsRef)for(const Se of d.mount)D(Se,xe(ye,Se));else o={}}c=n.shouldUnregister?Y.keepDefaultValues?Rt(s):{}:Rt(ye),x.array.next({values:{...ye}}),x.state.next({values:{...ye}})}d={mount:Y.keepDirtyValues?d.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},u.mount=!y.isValid||!!Y.keepIsValid||!!Y.keepDirtyValues,u.watch=!!n.shouldUnregister,x.state.next({submitCount:Y.keepSubmitCount?a.submitCount:0,isDirty:ge?!1:Y.keepDirty?a.isDirty:!!(Y.keepDefaultValues&&!ea($,s)),isSubmitted:Y.keepIsSubmitted?a.isSubmitted:!1,dirtyFields:ge?{}:Y.keepDirtyValues?Y.keepDefaultValues&&c?Hs(s,c):a.dirtyFields:Y.keepDefaultValues&&$?Hs(s,$):Y.keepDirty?a.dirtyFields:{},touchedFields:Y.keepTouched?a.touchedFields:{},errors:Y.keepErrors?a.errors:{},isSubmitSuccessful:Y.keepIsSubmitSuccessful?a.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:s})},nt=($,Y)=>De(fr($)?$(c):$,Y),Yt=($,Y={})=>{const K=xe(o,$),ve=K&&K._f;if(ve){const ge=ve.refs?ve.refs[0]:ve.ref;ge.focus&&(ge.focus(),Y.shouldSelect&&fr(ge.select)&&ge.select())}},it=$=>{a={...a,...$}},mt={control:{register:Ie,unregister:Ee,getFieldState:J,handleSubmit:Ge,setError:oe,_subscribe:be,_runSchema:L,_focusError:je,_getWatch:R,_getDirty:Z,_setValid:w,_setFieldArray:M,_setDisabledField:Ae,_setErrors:O,_getFieldArray:G,_reset:De,_resetDefaultValues:()=>fr(n.defaultValues)&&n.defaultValues().then($=>{nt($,n.resetOptions),x.state.next({isLoading:!1})}),_removeUnmounted:X,_disableForm:Ue,_subjects:x,_proxyFormState:y,get _fields(){return o},get _formValues(){return c},get _state(){return u},set _state($){u=$},get _defaultValues(){return s},get _names(){return d},set _names($){d=$},get _formState(){return a},get _options(){return n},set _options($){n={...n,...$}}},subscribe:ae,trigger:W,register:Ie,handleSubmit:Ge,watch:pe,setValue:D,getValues:_,reset:nt,resetField:Ye,clearErrors:ue,unregister:Ee,setError:oe,setFocus:Yt,getFieldState:J};return{...mt,formControl:mt}}var Na=()=>{if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{const a=(Math.random()*16+e)%16|0;return(n=="x"?a:a&3|8).toString(16)})},Pp=(e,n,a={})=>a.shouldFocus||Tt(a.shouldFocus)?a.focusName||`${e}.${Tt(a.focusIndex)?n:a.focusIndex}.`:"",$p=(e,n)=>[...e,...En(n)],Bp=e=>Array.isArray(e)?e.map(()=>{}):void 0;function Ip(e,n,a){return[...e.slice(0,n),...En(a),...e.slice(n)]}var Fp=(e,n,a)=>Array.isArray(e)?(Tt(e[a])&&(e[a]=void 0),e.splice(a,0,e.splice(n,1)[0]),e):[],Up=(e,n)=>[...En(n),...En(e)];function Z8(e,n){let a=0;const o=[...e];for(const s of n)o.splice(s-a,1),a++;return Wu(o).length?o:[]}var Hp=(e,n)=>Tt(n)?[]:Z8(e,En(n).sort((a,o)=>a-o)),Vp=(e,n,a)=>{[e[n],e[a]]=[e[a],e[n]]},_x=(e,n,a)=>(e[n]=a,e);function l2(e){const n=Wt(),{control:a=n.control,name:o,keyName:s="id",shouldUnregister:c,rules:u}=e,[d,h]=we.useState(a._getFieldArray(o)),g=we.useRef(a._getFieldArray(o).map(Na)),y=we.useRef(d),b=we.useRef(!1);y.current=d,a._names.array.add(o),we.useMemo(()=>u&&a.register(o,u),[a,u,o]),Yu(()=>a._subjects.array.subscribe({next:({values:A,name:z})=>{if(z===o||!z){const L=xe(A,o);Array.isArray(L)&&(h(L),g.current=L.map(Na))}}}).unsubscribe,[a,o]);const x=we.useCallback(A=>{b.current=!0,a._setFieldArray(o,A)},[a,o]),E=(A,z)=>{const L=En(Rt(A)),B=$p(a._getFieldArray(o),L);a._names.focus=Pp(o,B.length-1,z),g.current=$p(g.current,L.map(Na)),x(B),h(B),a._setFieldArray(o,B,$p,{argA:Bp(A)})},S=(A,z)=>{const L=En(Rt(A)),B=Up(a._getFieldArray(o),L);a._names.focus=Pp(o,0,z),g.current=Up(g.current,L.map(Na)),x(B),h(B),a._setFieldArray(o,B,Up,{argA:Bp(A)})},w=A=>{const z=Hp(a._getFieldArray(o),A);g.current=Hp(g.current,A),x(z),h(z),!Array.isArray(xe(a._fields,o))&&xt(a._fields,o,void 0),a._setFieldArray(o,z,Hp,{argA:A})},T=(A,z,L)=>{const B=En(Rt(z)),V=Ip(a._getFieldArray(o),A,B);a._names.focus=Pp(o,A,L),g.current=Ip(g.current,A,B.map(Na)),x(V),h(V),a._setFieldArray(o,V,Ip,{argA:A,argB:Bp(z)})},M=(A,z)=>{const L=a._getFieldArray(o);Vp(L,A,z),Vp(g.current,A,z),x(L),h(L),a._setFieldArray(o,L,Vp,{argA:A,argB:z},!1)},j=(A,z)=>{const L=a._getFieldArray(o);Fp(L,A,z),Fp(g.current,A,z),x(L),h(L),a._setFieldArray(o,L,Fp,{argA:A,argB:z},!1)},O=(A,z)=>{const L=Rt(z),B=_x(a._getFieldArray(o),A,L);g.current=[...B].map((V,X)=>!V||X===A?Na():g.current[X]),x(B),h([...B]),a._setFieldArray(o,B,_x,{argA:A,argB:L},!0,!1)},N=A=>{const z=En(Rt(A));g.current=z.map(Na),x([...z]),h([...z]),a._setFieldArray(o,[...z],L=>L,{},!0,!1)};return we.useEffect(()=>{if(a._state.action=!1,jh(o,a._names)&&a._subjects.state.next({...a._formState}),b.current&&(!vi(a._options.mode).isOnSubmit||a._formState.isSubmitted)&&!vi(a._options.reValidateMode).isOnSubmit)if(a._options.resolver)a._runSchema([o]).then(A=>{const z=xe(A.errors,o),L=xe(a._formState.errors,o);(L?!z&&L.type||z&&(L.type!==z.type||L.message!==z.message):z&&z.type)&&(z?xt(a._formState.errors,o,z):$t(a._formState.errors,o),a._subjects.state.next({errors:a._formState.errors}))});else{const A=xe(a._fields,o);A&&A._f&&!(vi(a._options.reValidateMode).isOnSubmit&&vi(a._options.mode).isOnSubmit)&&Mh(A,a._names.disabled,a._formValues,a._options.criteriaMode===er.all,a._options.shouldUseNativeValidation,!0).then(z=>!gn(z)&&a._subjects.state.next({errors:s2(a._formState.errors,z,o)}))}a._subjects.state.next({name:o,values:Rt(a._formValues)}),a._names.focus&&wi(a._fields,(A,z)=>{if(a._names.focus&&z.startsWith(a._names.focus)&&A.focus)return A.focus(),1}),a._names.focus="",a._setValid(),b.current=!1},[d,o,a]),we.useEffect(()=>(!xe(a._formValues,o)&&a._setFieldArray(o),()=>{const A=(z,L)=>{const B=xe(a._fields,z);B&&B._f&&(B._f.mount=L)};a._options.shouldUnregister||c?a.unregister(o):A(o,!1)}),[o,a,s,c]),{swap:we.useCallback(M,[x,o,a]),move:we.useCallback(j,[x,o,a]),prepend:we.useCallback(S,[x,o,a]),append:we.useCallback(E,[x,o,a]),remove:we.useCallback(w,[x,o,a]),insert:we.useCallback(T,[x,o,a]),update:we.useCallback(O,[x,o,a]),replace:we.useCallback(N,[x,o,a]),fields:we.useMemo(()=>d.map((A,z)=>({...A,[s]:g.current[z]||Na()})),[d,s])}}function J8(e={}){const n=we.useRef(void 0),a=we.useRef(void 0),[o,s]=we.useState({isDirty:!1,isValidating:!1,isLoading:fr(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:fr(e.defaultValues)?void 0:e.defaultValues});if(!n.current)if(e.formControl)n.current={...e.formControl,formState:o},e.defaultValues&&!fr(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:u,...d}=X8(e);n.current={...d,formState:o}}const c=n.current.control;return c._options=e,Yu(()=>{const u=c._subscribe({formState:c._proxyFormState,callback:()=>s({...c._formState}),reRenderRoot:!0});return s(d=>({...d,isReady:!0})),c._formState.isReady=!0,u},[c]),we.useEffect(()=>c._disableForm(e.disabled),[c,e.disabled]),we.useEffect(()=>{e.mode&&(c._options.mode=e.mode),e.reValidateMode&&(c._options.reValidateMode=e.reValidateMode)},[c,e.mode,e.reValidateMode]),we.useEffect(()=>{e.errors&&(c._setErrors(e.errors),c._focusError())},[c,e.errors]),we.useEffect(()=>{e.shouldUnregister&&c._subjects.state.next({values:c._getWatch()})},[c,e.shouldUnregister]),we.useEffect(()=>{if(c._proxyFormState.isDirty){const u=c._getDirty();u!==o.isDirty&&c._subjects.state.next({isDirty:u})}},[c,o.isDirty]),we.useEffect(()=>{e.values&&!ea(e.values,a.current)?(c._reset(e.values,{keepFieldsRef:!0,...c._options.resetOptions}),a.current=e.values,s(u=>({...u}))):c._resetDefaultValues()},[c,e.values]),we.useEffect(()=>{c._state.mount||(c._setValid(),c._state.mount=!0),c._state.watch&&(c._state.watch=!1,c._subjects.state.next({...c._formState})),c._removeUnmounted()}),n.current.formState=ZS(o,c),n.current}const eN=()=>p.jsxs(vo,{maxWidth:"md",children:[p.jsx(se,{variant:"h2",component:"h1",className:"form-title",children:"Crea tu proyecto"}),p.jsx(se,{variant:"h6",component:"p",className:"form-subtitle",children:"Completa la información de tu empresa en 3 sencillos pasos"})]}),c2=({isStepComplete:e,activeStep:n,steps:a})=>{const o=[0,1,2].filter(s=>e(s)).length;return p.jsxs(le,{sx:{marginTop:"1rem",textAlign:"center",padding:"0.5rem",backgroundColor:"rgba(255, 255, 255, 0.05)",borderRadius:"8px",border:"1px solid rgba(255, 255, 255, 0.1)"},children:[p.jsxs(se,{variant:"caption",sx:{color:"rgba(255, 255, 255, 0.8)",fontSize:"13px",fontWeight:500},children:["Progreso: ",o,"/3 etapas completadas"]}),n===a.length-1&&p.jsx(u2,{allStepsComplete:o===3})]})};c2.propTypes={isStepComplete:qe.func.isRequired,activeStep:qe.number.isRequired,steps:qe.array.isRequired};const u2=({allStepsComplete:e})=>{const n=e?"#4CAF50":"#FF5722",a=e?"✅ Listo para enviar":"⚠️ Revisa las etapas incompletas antes de enviar";return p.jsx(se,{variant:"caption",sx:{display:"block",color:n,fontSize:"12px",marginTop:"4px",fontWeight:600},children:a})};u2.propTypes={allStepsComplete:qe.bool.isRequired};const d2=({activeStep:e,steps:n,isStepComplete:a})=>p.jsxs(le,{className:"stepper-container",children:[p.jsx(pO,{activeStep:e,alternativeLabel:!0,className:"custom-stepper",children:n.map((o,s)=>{const c=a(s),u=e===s;let d="rgba(255, 255, 255, 0.6) !important";return(c||u)&&(d="#000 !important"),p.jsx(q6,{completed:c&&s<e,children:p.jsxs(OS,{className:`custom-step-label ${u?"Mui-active":""} ${c?"Mui-completed":""}`,sx:{"& .MuiStepLabel-label":{color:d}},children:[o,c&&s<e&&p.jsx(tN,{})]})},o)})}),p.jsx(c2,{isStepComplete:a,activeStep:e,steps:n})]});d2.propTypes={activeStep:qe.number.isRequired,steps:qe.array.isRequired,isStepComplete:qe.func.isRequired};const tN=()=>p.jsx(se,{variant:"caption",sx:{display:"block",color:"#4CAF50",fontSize:"11px",marginTop:"2px"},children:"✓ Completo"}),f2=({activeStep:e,steps:n,onBack:a,isStepComplete:o,isSubmitting:s=!1,onShowErrors:c})=>{const u=o(0)&&o(1)&&o(2)&&o(3),d=e===n.length-1,h=()=>{let E="#F9DF88 !important",S="#41475D !important",w="rgba(249, 223, 136, 0.9) !important",T="Siguiente";return d&&(u?(E="#4CAF50 !important",w="#388E3C !important",T="🚀 Finalizar y Enviar"):(E="#FF5722 !important",w="#D84315 !important",T="⚠️ Revisar y Completar"),S="#ffffff !important"),{buttonColor:E,buttonTextColor:S,hoverColor:w,buttonText:T}},{buttonColor:g,buttonTextColor:y,hoverColor:b,buttonText:x}=h();return p.jsxs(le,{className:"form-actions",children:[p.jsx(p2,{disabled:e===0,onClick:a}),p.jsx(h2,{buttonColor:g,buttonTextColor:y,hoverColor:b,buttonText:x,isSubmitting:s,disabled:!o(e),onShowErrors:c,isStepComplete:o(e)})]})};f2.propTypes={activeStep:qe.number.isRequired,steps:qe.array.isRequired,onBack:qe.func.isRequired,isStepComplete:qe.func.isRequired,isSubmitting:qe.bool,onShowErrors:qe.func};const p2=({disabled:e,onClick:n})=>p.jsx(qt,{disabled:e,onClick:n,className:"back-button",variant:"outlined",children:"Anterior"});p2.propTypes={disabled:qe.bool.isRequired,onClick:qe.func.isRequired};const h2=({buttonColor:e,buttonTextColor:n,hoverColor:a,buttonText:o,isSubmitting:s,disabled:c,onShowErrors:u,isStepComplete:d})=>{const h=g=>{if(c&&u)return g.preventDefault(),u(),!1};return p.jsxs(qt,{type:"submit",className:"submit-button",variant:"contained",disabled:s,onClick:h,sx:{backgroundColor:e,color:n,"&:hover":{backgroundColor:a},"&:disabled":{opacity:.6},position:"relative"},children:[s?"Enviando...":o,c&&!s&&p.jsx("span",{style:{position:"absolute",top:"-33px",left:"50%",transform:"translateX(-50%)",fontSize:"12px",backgroundColor:"#fff",padding:"4px 8px",borderRadius:"4px",border:"1px solid #ec1212ff",color:"#ec1212ff",whiteSpace:"nowrap"},children:"⚠️ Faltan campos por completar"})]})};h2.propTypes={buttonColor:qe.string.isRequired,buttonTextColor:qe.string.isRequired,hoverColor:qe.string.isRequired,buttonText:qe.string.isRequired,isSubmitting:qe.bool.isRequired,disabled:qe.bool.isRequired,onShowErrors:qe.func,isStepComplete:qe.bool.isRequired};const m2=v.createContext(),Cl=()=>{const e=v.useContext(m2);if(!e)throw new Error("useStage1Context must be used within a Stage1Provider");return e},g2=({children:e})=>{const[n,a]=v.useState("idle"),o=v.useMemo(()=>({companyNameValidationState:n,setCompanyNameValidationState:a,shouldEnableOtherFields:n==="available"}),[n]);return p.jsx(m2.Provider,{value:o,children:e})};g2.propTypes={children:qe.node.isRequired};function nN(){const{control:e,formState:{errors:n},watch:a}=Wt(),{user:o}=ia(),{setCompanyNameValidationState:s}=Cl(),[c,u]=v.useState(""),[d,h]=v.useState("idle"),g=a("company_name"),y=w8(g,1e3),{data:b,isLoading:x,error:E,refetch:S}=C8(y,o?.pk,!1);v.useEffect(()=>{y&&y.trim().length>=2&&o?.pk?(h("loading"),u("Verificando disponibilidad..."),s("loading"),S()):(h("idle"),u(""),s("idle"))},[y,o?.pk,S,s]),v.useEffect(()=>{g&&g.trim().length>0&&g.trim().length<2&&(h("idle"),u("Mínimo 2 caracteres"),s("idle"))},[g,s]),v.useEffect(()=>{b&&!x&&(b.exists===!1?(h("available"),s("available"),u("✓ Nombre disponible")):(h("unavailable"),s("unavailable"),u("✗ Este nombre ya está en uso"))),E&&!x&&(h("idle"),s("idle"),u("Error al verificar disponibilidad"))},[b,x,E,s]);const w=()=>{if(n.company_name)return"#ff5252";switch(d){case"available":return"#4caf50";case"unavailable":return"#ff5252";case"loading":return"#2196f3";default:return"#666"}},T=()=>{if(n.company_name){const j=n.company_name.message;return typeof j=="string"?j:""}return c||""},M=()=>{if(x)return p.jsx(nr,{size:16,sx:{color:"#2196f3"}});switch(d){case"available":return p.jsx(hu,{sx:{fontSize:16,color:"#4caf50"}});case"unavailable":return p.jsx(zS,{sx:{fontSize:16,color:"#ff5252"}});default:return null}};return p.jsx(hn,{name:"company_name",control:e,rules:{required:"El nombre de la empresa es requerido",minLength:{value:2,message:"Mínimo 2 caracteres"},validate:()=>d==="unavailable"?"Este nombre no está disponible":!0},render:({field:j})=>p.jsxs(le,{className:"form-field",children:[p.jsx("label",{htmlFor:"companyName",className:"input-label",children:"¿Cómo se llama tu empresa o marca? *"}),p.jsx(fn,{...j,id:"companyName",variant:"outlined",placeholder:"Ingresa el nombre de tu empresa",fullWidth:!0,error:!!n.company_name||d==="unavailable",helperText:p.jsxs(le,{sx:{display:"flex",alignItems:"center",gap:1,mt:.5},children:[M(),p.jsx(se,{component:"span",sx:{fontSize:"14px",color:w()},children:T()})]}),sx:{"& .MuiFormHelperText-root":{marginLeft:"15px"}}})]})})}function rN(){const{control:e,formState:{errors:n}}=Wt(),{shouldEnableOtherFields:a}=Cl();return p.jsx(hn,{name:"description",control:e,rules:{required:"La descripción es requerida",minLength:{value:10,message:"Mínimo 10 caracteres"},maxLength:{value:500,message:"Máximo 500 caracteres"}},render:({field:o})=>p.jsxs(le,{className:"form-field",children:[p.jsx("label",{htmlFor:"companyDescription",className:"input-label",children:"Describe qué hace tu empresa y en qué área se desarrolla *"}),p.jsx(fn,{...o,id:"companyDescription",variant:"outlined",placeholder:"Describe tu empresa, productos o servicios...",fullWidth:!0,multiline:!0,rows:4,disabled:!a,error:!!n.description,helperText:n.description?.message,sx:{"& .MuiFormHelperText-root":{color:"#ff5252",marginLeft:"15px",fontSize:"14px"}}})]})})}function aN(){const{control:e,formState:{errors:n}}=Wt(),{shouldEnableOtherFields:a}=Cl(),o=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;return p.jsx(hn,{name:"email",control:e,rules:{required:"El email es requerido",pattern:{value:o,message:"Por favor ingresa un email válido"}},render:({field:s})=>p.jsxs(le,{className:"form-field",children:[p.jsx("label",{htmlFor:"email",className:"input-label",children:"¿Cuál es tu email de contacto? *"}),p.jsx(fn,{...s,id:"email",type:"email",variant:"outlined",placeholder:"ejemplo@empresa.com",fullWidth:!0,disabled:!a,error:!!n.email,helperText:n.email?.message,sx:{"& .MuiFormHelperText-root":{color:"#ff5252",marginLeft:"15px",fontSize:"14px"}}})]})})}function oN(){const{control:e,formState:{errors:n},watch:a}=Wt(),{shouldEnableOtherFields:o}=Cl(),s=[{code:"+57",country:"Colombia",flag:"🇨🇴"}],c=a("phone_country_code"),u=(d,h)=>{if(!d)return"El número de teléfono es requerido";const g=d.replace(/[\s-]/g,"");if(!/^\d+$/.test(g))return"El número solo debe contener dígitos";let y,b;return h==="+1"||h.startsWith("+1-")?(y=10,b=10):["+52","+54","+55","+56","+57"].includes(h)?(y=10,b=11):["+51","+58","+593","+591","+595","+598"].includes(h)?(y=8,b=9):(y=7,b=8),g.length<y?`El número debe tener al menos ${y} dígitos`:g.length>b?`El número debe tener máximo ${b} dígitos`:!0};return p.jsxs(le,{className:"form-field",children:[p.jsx("label",{className:"input-label",children:"¿Cuál es tu número de teléfono de contacto? *"}),p.jsxs(le,{sx:{display:"flex",gap:1,alignItems:"flex-start"},children:[p.jsxs(zi,{sx:{minWidth:200},error:!!n.phone_country_code,children:[p.jsx(bm,{id:"country-code-label",children:"País"}),p.jsx(hn,{name:"phone_country_code",control:e,defaultValue:"+57",rules:{required:"Selecciona un país"},render:({field:d})=>p.jsx(Eo,{...d,labelId:"country-code-label",label:"País",size:"medium",disabled:!o,children:s.map(h=>p.jsx(Ia,{value:h.code,children:p.jsxs(le,{sx:{display:"flex",alignItems:"center",gap:1},children:[p.jsx("span",{children:h.flag}),p.jsx("span",{children:h.code}),p.jsx("span",{style:{fontSize:"0.875rem",color:"#666"},children:h.country})]})},h.code))})}),n.phone_country_code&&p.jsx(CS,{sx:{color:"#ff5252",marginLeft:"15px",fontSize:"14px"},children:n.phone_country_code.message})]}),p.jsx(hn,{name:"phone_number",control:e,rules:{validate:d=>u(d,c)},render:({field:d})=>p.jsx(fn,{...d,variant:"outlined",placeholder:"123 456 7890",fullWidth:!0,disabled:!o,error:!!n.phone_number,helperText:n.phone_number?.message,sx:{"& .MuiFormHelperText-root":{color:"#ff5252",marginLeft:"15px",fontSize:"14px"}},onChange:h=>{const g=h.target.value.replace(/[^\d\s-]/g,"");d.onChange(g)}})})]}),p.jsxs(le,{sx:{mt:1,fontSize:"0.875rem",color:"#666"},children:["El número completo será: ",c," ",a("phone_number")||"XXX XXX XXXX"]})]})}function iN({title:e,description:n}){return p.jsxs(p.Fragment,{children:[p.jsx(se,{variant:"h4",component:"h2",className:"stage-title",children:e}),p.jsx(se,{variant:"body1",className:"stage-description",children:n})]})}const zx={title:"Información de tu Empresa",description:"Cuéntanos sobre tu empresa o marca personal"},sN=()=>({validateCurrentStep:(s,c)=>{const u=[];if(!c)return u.push("No hay datos del formulario disponibles"),u;switch(s){case 0:(!c.company_name||typeof c.company_name!="string"||c.company_name.trim().length<2)&&u.push("El nombre de la empresa es requerido (mínimo 2 caracteres)"),(!c.description||typeof c.description!="string"||c.description.trim().length<10)&&u.push("La descripción de la empresa es requerida (mínimo 10 caracteres)");break;case 1:c.logo||u.push("El logo de la empresa es obligatorio"),c.heroImage||u.push("La imagen del hero es obligatoria"),(!c.colors||!Array.isArray(c.colors)||c.colors.length===0)&&u.push("Debes seleccionar al menos un color para tu marca"),(!c.socialNetworks||!Array.isArray(c.socialNetworks)||c.socialNetworks.length<2)&&u.push("Debes seleccionar al menos 2 redes sociales"),c.socialNetworks&&Array.isArray(c.socialNetworks)&&c.socialNetworks.forEach(d=>{const h=c.socialNetworkLinks?.[d];!h||typeof h!="string"||h.trim().length===0?u.push(`El enlace de ${d} es requerido`):/^https?:\/\/.+/.test(h)||u.push(`El enlace de ${d} debe ser una URL válida`)});break;case 2:!c.products||!Array.isArray(c.products)||c.products.length===0?u.push("Debes agregar al menos un producto o servicio"):c.products.forEach((d,h)=>{if(!d){u.push(`Producto ${h+1}: Datos del producto no encontrados`);return}(!d.name||typeof d.name!="string"||d.name.trim().length<2)&&u.push(`Producto ${h+1}: El nombre es requerido (mínimo 2 caracteres)`),(!d.description||typeof d.description!="string"||d.description.trim().length<10)&&u.push(`Producto ${h+1}: La descripción es requerida (mínimo 10 caracteres)`),d.image||u.push(`Producto ${h+1}: La imagen es requerida`)});break;case 3:!c.testimonials||!Array.isArray(c.testimonials)||c.testimonials.length===0?u.push("Debes agregar al menos un cliente"):c.testimonials.forEach((d,h)=>{if(!d){u.push(`Cliente ${h+1}: Datos del cliente no encontrados`);return}(!d.clientCompany||typeof d.clientCompany!="string"||d.clientCompany.trim().length<2)&&u.push(`Cliente ${h+1}: La compañía es requerida (mínimo 2 caracteres)`)});break}return u},validateAllSteps:s=>{const c=[];return(!s.company_name||s.company_name.trim().length<2)&&c.push("Etapa 1: El nombre de la empresa es requerido"),(!s.description||s.description.trim().length<10)&&c.push("Etapa 1: La descripción de la empresa es requerida"),s.logo||c.push("Etapa 1: El logo de la empresa es obligatorio"),s.heroImage||c.push("Etapa 1: La imagen del hero es obligatoria"),(!s.colors||s.colors.length===0)&&c.push("Etapa 1: Debes seleccionar al menos un color"),(!s.socialNetworks||s.socialNetworks.length<2)&&c.push("Etapa 1: Debes seleccionar al menos 2 redes sociales"),s.socialNetworks&&s.socialNetworks.length>0&&s.socialNetworks.forEach(u=>{const d=s.socialNetworkLinks?.[u];(!d||!/^https?:\/\/.+/.test(d))&&c.push(`Etapa 1: Enlace de ${u} inválido o faltante`)}),!s.products||s.products.length===0?c.push("Etapa 2: Debes agregar al menos un producto o servicio"):s.products.filter(d=>!d.name||!d.image).length>0&&c.push("Etapa 2: Todos los productos deben tener nombre e imagen"),!s.testimonials||s.testimonials.length===0?c.push("Etapa 3: Debes agregar al menos un cliente"):s.testimonials.filter(d=>!d.clientCompany).length>0&&c.push("Etapa 3: Todos los clientes deben tener compañía"),c},isStepComplete:(s,c)=>{if(!c)return!1;switch(s){case 0:return c.company_name&&typeof c.company_name=="string"&&c.company_name.trim().length>=2&&c.description&&typeof c.description=="string"&&c.description.trim().length>=10&&c.email&&typeof c.email=="string"&&/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(c.email)&&c.phone_number;case 1:return c.logo&&c.heroImage&&c.colors&&Array.isArray(c.colors)&&c.colors.length>0;case 2:return c.products&&Array.isArray(c.products)&&c.products.length>0&&c.products.every(u=>u&&u.name&&typeof u.name=="string"&&u.name.trim().length>=2&&u.image);case 3:return c.testimonials&&Array.isArray(c.testimonials)&&c.testimonials.length>0&&c.testimonials.every(u=>u&&u.clientCompany&&typeof u.clientCompany=="string"&&u.clientCompany.trim().length>=2);default:return!1}},showValidationErrors:s=>{if(s.length>0){const c=`Por favor, completa los siguientes campos:

`+s.map(u=>`• ${u}`).join(`
`);return alert(c),!0}return!1}});function lN(){return Li({mutationFn:async e=>await G1(e)})}function cN(){return Li({mutationFn:e=>W1(e)})}const uN=(e,n)=>{const[a,o]=v.useState(0),[s,c]=v.useState({}),[u,d]=v.useState(!1),[h,g]=v.useState({stage2:{},stage3:{}}),[y,b]=v.useState(!1),[x,E]=v.useState(!1),[S,w]=v.useState({open:!1,message:"",severity:"success"}),{updateTemplateContent:T,templateContent:M}=oS(),{mutateAsync:j}=lN(),{mutateAsync:O}=cN(),{validateCurrentStep:N,validateAllSteps:A,isStepComplete:z}=sN(),L=(I,H,W)=>{g(_=>({..._,[I]:{..._[I],[H]:W}}))},B=(I={})=>{const H=new FormData;return H.append("user_id","user_12345"),I.logo&&I.logo instanceof File&&H.append("files",I.logo),I.heroImage&&I.heroImage instanceof File&&H.append("files",I.heroImage),Object.entries(h).forEach(([,W])=>{Object.entries(W).forEach(([,_])=>{_&&H.append("files",_)})}),H},V=(I,H)=>{const W={};H.forEach(pe=>{W[pe.original_filename]=pe.file_url});let _=I.logo;I.logo&&I.logo instanceof File&&W[I.logo.name]&&(_=W[I.logo.name]);let J=I.heroImage;I.heroImage&&I.heroImage instanceof File&&W[I.heroImage.name]&&(J=W[I.heroImage.name]);const ue=I.products.map(pe=>({...pe,image:W[pe.image]||pe.image})),oe=I.testimonials.map(pe=>({...pe,image:W[pe.image]||pe.image}));return{...I,logo:_,heroImage:J,products:ue,testimonials:oe}},X=(I,H)=>{if(!I)return console.warn("No template content available to update hero background"),I;let W=null;if(H?.heroImage&&typeof H.heroImage=="string"&&(H.heroImage.startsWith("http")||H.heroImage.startsWith("https"))&&(W=H.heroImage),!W&&H?.products&&H.products.length>0){const _=H.products.find(J=>J.image&&(J.image.startsWith("http")||J.image.startsWith("https")));_&&(W=_.image)}if(!W&&H?.testimonials&&H.testimonials.length>0){const _=H.testimonials.find(J=>J.image&&(J.image.startsWith("http")||J.image.startsWith("https")));_&&(W=_.image)}return W&&I.hero_section?{...I,hero_section:{...I.hero_section,background_image:W}}:I},Z=(I,H)=>!I||!H?.logo?(console.warn("No template content or logo available to update navbar"),I):typeof H.logo=="string"&&(H.logo.startsWith("http")||H.logo.startsWith("https"))?{...I,navbar:{...I.navbar,logo:{...I.navbar?.logo,image_url:H.logo}},footer:{...I.footer,logo:{...I.footer?.logo,image_url:H.logo}}}:I,R=I=>{const H={...I};return H.logo instanceof File&&delete H.logo,H.heroImage instanceof File&&delete H.heroImage,H.products&&Array.isArray(H.products)&&(H.products=H.products.map(W=>{const _={...W};return(typeof _.image!="string"||_.image instanceof File)&&delete _.image,_})),H.testimonials&&Array.isArray(H.testimonials)&&(H.testimonials=H.testimonials.map(W=>{const _={...W};return(typeof _.image!="string"||_.image instanceof File)&&delete _.image,_})),H};return{activeStep:a,formData:s,filesData:h,isSubmitting:u,isUploadingImages:y,isGeneratingContent:x,notification:S,handleCloseNotification:()=>w({...S,open:!1}),handleSubmit:async I=>{d(!0);try{const H=N(a,I);if(H.length>0){const _=`Por favor, completa los siguientes campos:

`+H.map(J=>`• ${J}`).join(`
`);w({open:!0,message:_,severity:"error"});return}const W={...s,...I};if(c(W),a===e.length-1){if(W.socialNetworks&&W.socialNetworkLinks){const oe={};W.socialNetworks.forEach(pe=>{W.socialNetworkLinks[pe]&&(oe[pe]=W.socialNetworkLinks[pe])}),W.socialNetworkLinks=oe}const _=A(W);if(_.length>0){const oe=`Por favor, completa todos los campos requeridos:

`+_.map(pe=>`• ${pe}`).join(`
`);w({open:!0,message:oe,severity:"error"});return}W.country="Colombia";const J=R(W);localStorage.setItem("template_form_data",JSON.stringify(J));const ue=B(W);b(!0);try{const oe=await j(ue),pe=V(W,oe);c(pe),b(!1),E(!0);const{company_name:be}=pe,ae=await O({...pe,client_name:be});let Ee=X(ae,pe);Ee=Z(Ee,pe),T(Ee,pe),n&&setTimeout(()=>{n(Ee)},2e3)}catch(oe){console.error("Error uploading images or generating content:",oe),w({open:!0,message:"Error al procesar el proyecto. Inténtalo de nuevo.",severity:"error"})}finally{b(!1),E(!1)}}else o(a+1)}finally{d(!1)}},handleBack:()=>{a>0&&o(a-1)},isStepComplete:z,updateStageFiles:L,setActiveStep:o,setFormData:c,showCurrentStepErrors:I=>{const H=N(a,I);if(H.length>0){const W=`Para continuar al siguiente paso, completa:

`+H.map(_=>`• ${_}`).join(`
`);w({open:!0,message:W,severity:"warning"})}},templateContent:M}},y2=()=>{const{watch:e,setValue:n}=Wt(),a=e("socialNetworks",[]),o=e("socialNetworkLinks",{});return v.useEffect(()=>{if(!a||!o)return;const c=Object.keys(o).filter(u=>!a.includes(u));if(c.length>0){const u={...o};c.forEach(d=>{delete u[d]}),n("socialNetworkLinks",u)}},[a,o,n]),{cleanUnusedLinks:()=>{const c=e("socialNetworks",[]),u=e("socialNetworkLinks",{}),d={};return c.forEach(h=>{u[h]&&(d[h]=u[h])}),n("socialNetworkLinks",d),d}}};function dN(){const{shouldEnableOtherFields:e,companyNameValidationState:n}=Cl();return y2(),p.jsxs(le,{className:"stage-container",children:[p.jsx(iN,{title:zx.title,description:zx.description}),!e&&p.jsx(sn,{severity:n==="unavailable"?"warning":"info",sx:{mb:3},children:p.jsx(se,{variant:"body2",children:n==="unavailable"?"❌ El nombre ingresado no está disponible. Ingresa un nombre diferente para continuar.":"📝 Completa el nombre de tu empresa para habilitar los demás campos"})}),e&&p.jsx(sn,{severity:"success",sx:{mb:3},children:p.jsx(se,{variant:"body2",children:"✅ Nombre disponible. ¡Puedes continuar completando el formulario!"})}),p.jsxs(le,{children:[p.jsx(nN,{}),p.jsx(rN,{}),p.jsx(aN,{}),p.jsx(oN,{})]})]})}function fN(){return p.jsx(g2,{children:p.jsx(dN,{})})}function pN(){const{control:e,formState:{errors:n}}=Wt(),[a,o]=v.useState(null),s=u=>d=>{const h=d.target.files[0];if(h){if(!h.type.startsWith("image/")){alert("Por favor, selecciona solo archivos de imagen");return}if(h.size>5*1024*1024){alert("El archivo es demasiado grande. Máximo 5MB permitido");return}const g=new FileReader;g.onload=y=>{o(y.target.result)},g.readAsDataURL(h),u(h)}},c=u=>()=>{u(null),o(null);const d=document.getElementById("logo-upload");d&&(d.value="")};return p.jsx(hn,{name:"logo",control:e,rules:{required:"El logo de la empresa es obligatorio"},render:({field:{value:u,onChange:d}})=>p.jsxs(le,{className:"form-field image-field",children:[p.jsx("label",{htmlFor:"logo-upload",className:"input-label",children:"Logo de la Empresa *"}),p.jsx(se,{variant:"caption",sx:{color:"rgba(255, 255, 255, 0.7)",fontSize:"0.75rem",display:"block",marginBottom:"12px"},children:"Sube el logo de tu empresa (PNG, JPG, SVG - máx. 5MB)"}),p.jsx(An,{variant:"outlined",className:"image-upload-area",sx:{padding:2,textAlign:"center",backgroundColor:"rgba(255, 255, 255, 0.1)",border:n.logo?"2px solid #ff5252":"2px dashed rgba(255, 255, 255, 0.3)",borderRadius:"20px",minHeight:"120px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",position:"relative"},children:a||u?p.jsxs(p.Fragment,{children:[p.jsx(le,{sx:{position:"relative",maxWidth:"100px",maxHeight:"80px",marginBottom:1},children:p.jsx("img",{src:a||(typeof u=="string"?u:""),alt:"Preview del logo",style:{maxWidth:"100%",maxHeight:"80px",objectFit:"contain",borderRadius:"4px"}})}),p.jsx(se,{variant:"caption",sx:{color:"rgba(255, 255, 255, 0.7)",marginBottom:1},children:u?.name||"Logo seleccionado"}),p.jsxs(le,{sx:{display:"flex",gap:1},children:[p.jsxs(qt,{variant:"outlined",size:"small",component:"label",startIcon:p.jsx(mu,{}),sx:{fontSize:"0.75rem",color:"rgba(255, 255, 255, 0.9)",borderColor:"rgba(255, 255, 255, 0.3)","&:hover":{borderColor:"rgba(255, 255, 255, 0.5)",backgroundColor:"rgba(255, 255, 255, 0.1)"}},children:["Cambiar",p.jsx("input",{id:"logo-upload",type:"file",hidden:!0,accept:"image/*",onChange:s(d)})]}),p.jsx(zr,{size:"small",color:"error",onClick:c(d),sx:{padding:"4px",color:"#ff5252","&:hover":{backgroundColor:"rgba(255, 82, 82, 0.1)"}},children:p.jsx(_S,{fontSize:"small"})})]})]}):p.jsxs(p.Fragment,{children:[p.jsx(LS,{sx:{fontSize:40,color:"rgba(255, 255, 255, 0.5)",marginBottom:1}}),p.jsx(se,{variant:"body2",sx:{color:"rgba(255, 255, 255, 0.7)",marginBottom:2},children:"Arrastra tu logo aquí o haz clic para seleccionar"}),p.jsxs(qt,{variant:"contained",component:"label",startIcon:p.jsx(mu,{}),sx:{backgroundColor:"#F9DF88",color:"#41475D",borderRadius:"20px","&:hover":{backgroundColor:"#F7D774"}},children:["Seleccionar Logo",p.jsx("input",{id:"logo-upload",type:"file",hidden:!0,accept:"image/*",onChange:s(d)})]})]})}),n.logo&&p.jsx(se,{variant:"caption",sx:{color:"#ff5252",fontSize:"14px",display:"block",marginTop:"4px",marginLeft:"15px"},children:n.logo.message})]})})}function hN(){const{control:e,formState:{errors:n}}=Wt(),[a,o]=v.useState(null),s=u=>d=>{const h=d.target.files[0];if(h){if(!h.type.startsWith("image/")){alert("Por favor, selecciona solo archivos de imagen");return}if(h.size>5*1024*1024){alert("El archivo es demasiado grande. Máximo 5MB permitido");return}const g=new FileReader;g.onload=y=>{o(y.target.result)},g.readAsDataURL(h),u(h)}},c=u=>()=>{u(null),o(null);const d=document.getElementById("hero-upload");d&&(d.value="")};return p.jsx(hn,{name:"heroImage",control:e,rules:{required:"La imagen del hero es obligatoria"},render:({field:{value:u,onChange:d}})=>p.jsxs(le,{className:"form-field image-field",children:[p.jsx("label",{htmlFor:"hero-upload",className:"input-label",children:"Imagen del Hero *"}),p.jsx(se,{variant:"caption",sx:{color:"rgba(255, 255, 255, 0.7)",fontSize:"0.75rem",display:"block",marginBottom:"12px"},children:"Imagen principal para la sección hero (PNG, JPG - máx. 5MB)"}),p.jsx(An,{variant:"outlined",className:"image-upload-area",sx:{padding:2,textAlign:"center",backgroundColor:"rgba(255, 255, 255, 0.1)",border:n.heroImage?"2px solid #ff5252":"2px dashed rgba(255, 255, 255, 0.3)",borderRadius:"20px",minHeight:"120px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",position:"relative"},children:a||u?p.jsxs(p.Fragment,{children:[p.jsx(le,{sx:{position:"relative",maxWidth:"100px",maxHeight:"80px",marginBottom:1},children:p.jsx("img",{src:a||(typeof u=="string"?u:""),alt:"Preview de imagen hero",style:{maxWidth:"100%",maxHeight:"80px",objectFit:"contain",borderRadius:"4px"}})}),p.jsx(se,{variant:"caption",sx:{color:"rgba(255, 255, 255, 0.7)",marginBottom:1},children:u?.name||"Imagen hero seleccionada"}),p.jsxs(le,{sx:{display:"flex",gap:1},children:[p.jsxs(qt,{variant:"outlined",size:"small",component:"label",startIcon:p.jsx(mu,{}),sx:{fontSize:"0.75rem",color:"rgba(255, 255, 255, 0.9)",borderColor:"rgba(255, 255, 255, 0.3)","&:hover":{borderColor:"rgba(255, 255, 255, 0.5)",backgroundColor:"rgba(255, 255, 255, 0.1)"}},children:["Cambiar",p.jsx("input",{id:"hero-upload",type:"file",hidden:!0,accept:"image/*",onChange:s(d)})]}),p.jsx(zr,{size:"small",color:"error",onClick:c(d),sx:{padding:"4px",color:"#ff5252","&:hover":{backgroundColor:"rgba(255, 82, 82, 0.1)"}},children:p.jsx(_S,{fontSize:"small"})})]})]}):p.jsxs(p.Fragment,{children:[p.jsx(LS,{sx:{fontSize:40,color:"rgba(255, 255, 255, 0.5)",marginBottom:1}}),p.jsx(se,{variant:"body2",sx:{color:"rgba(255, 255, 255, 0.7)",marginBottom:2},children:"Arrastra tu imagen aquí o haz clic para seleccionar"}),p.jsxs(qt,{variant:"contained",component:"label",startIcon:p.jsx(mu,{}),sx:{backgroundColor:"#F9DF88",color:"#41475D",borderRadius:"20px","&:hover":{backgroundColor:"#F7D774"}},children:["Seleccionar Imagen",p.jsx("input",{id:"hero-upload",type:"file",hidden:!0,accept:"image/*",onChange:s(d)})]})]})}),n.heroImage&&p.jsx(se,{variant:"caption",sx:{color:"#ff5252",fontSize:"14px",display:"block",marginTop:"4px",marginLeft:"15px"},children:n.heroImage.message})]})})}const Dx=[{value:"#000000",label:"Negro"},{value:"#FFFFFF",label:"Blanco"},{value:"#E53935",label:"Rojo"},{value:"#43A047",label:"Verde"},{value:"#1E88E5",label:"Azul"},{value:"#FB8C00",label:"Naranja"},{value:"#FDD835",label:"Amarillo"},{value:"#8E24AA",label:"Púrpura"},{value:"#00ACC1",label:"Cian"},{value:"#F06292",label:"Rosa"},{value:"#7CB342",label:"Verde Lima"},{value:"#5C6BC0",label:"Índigo"},{value:"#009688",label:"Turquesa"},{value:"#6D4C41",label:"Marrón"}],mN=["Roboto","Open Sans","Lato","Inter","Source Sans","Noto Sans","Mulish","Work Sans","IBM Plex Sans","DM Sans"],gN=["Facebook","Twitter","Instagram","LinkedIn","YouTube","TikTok"];function yN(){const{control:e,formState:{errors:n}}=Wt(),a=s=>p.jsx(le,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:s.map(c=>{const u=Dx.find(d=>d.value===c);return p.jsx(fm,{label:u?.label||c,size:"small",sx:{backgroundColor:c,color:"#ffffff",fontWeight:600,fontSize:"0.75rem",height:"24px",boxShadow:"0 2px 4px rgba(0,0,0,0.2)","& .MuiChip-label":{paddingLeft:"8px",paddingRight:"8px"}}},c)})}),o=(s,c,u)=>p.jsxs(Ia,{value:s.value,disabled:u,sx:{display:"flex",alignItems:"center",gap:2,padding:"12px 16px",backgroundColor:c?s.value+"15":"transparent",borderLeft:c?`4px solid ${s.value}`:"4px solid transparent","&:hover":{backgroundColor:s.value+"10"},"&.Mui-disabled":{opacity:.5}},children:[p.jsx(le,{sx:{width:32,height:32,backgroundColor:s.value,borderRadius:"50%",border:"3px solid #fff",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:c&&p.jsx(pu,{sx:{color:"#fff",fontSize:20,filter:"drop-shadow(0 1px 2px rgba(0,0,0,0.5))"}})}),p.jsxs(le,{sx:{flex:1},children:[p.jsx(se,{variant:"body1",sx:{fontWeight:c?600:400,color:c?s.value:"#333"},children:s.label}),c&&p.jsx(se,{variant:"caption",sx:{color:s.value,fontSize:"0.7rem"},children:"Seleccionado"})]}),c&&p.jsx(pu,{sx:{color:s.value,fontSize:20}})]},s.value);return p.jsx(hn,{name:"colors",control:e,rules:{required:"Selecciona al menos un color",validate:s=>s.length===0?"Selecciona al menos un color":s.length>3?"Máximo 3 colores permitidos":!0},render:({field:{value:s=[],onChange:c}})=>p.jsxs(le,{className:"form-field",children:[p.jsx("label",{htmlFor:"colors",className:"input-label",children:"Elige los colores que representen tu marca (máximo 3) *"}),p.jsx(se,{variant:"caption",sx:{color:"#666",fontSize:"0.75rem",display:"block",marginBottom:"8px"},children:"Selecciona desde el menú desplegable"}),p.jsxs(zi,{fullWidth:!0,error:!!n.colors,children:[p.jsxs(Eo,{multiple:!0,value:s,onChange:c,input:p.jsx(xl,{}),renderValue:a,displayEmpty:!0,sx:{"& .MuiSelect-select":{padding:"12px 14px",minHeight:"20px"},"& .MuiOutlinedInput-notchedOutline":{borderColor:s.length>0?"#4caf50":"#ddd"}},MenuProps:{PaperProps:{sx:{maxHeight:400,"& .MuiMenuItem-root":{padding:0}}}},children:[s.length===0&&p.jsx(Ia,{disabled:!0,sx:{fontStyle:"italic",color:"#999"},children:"Selecciona hasta 3 colores para tu marca"}),Dx.map(u=>{const d=s.includes(u.value),h=s.length>=3&&!d;return o(u,d,h)})]}),n.colors&&p.jsx(se,{variant:"caption",sx:{color:"#ff5252",marginLeft:"15px",fontSize:"14px",display:"block",marginTop:"4px"},children:n.colors.message})]})]})})}function bN(){const{control:e,formState:{errors:n}}=Wt();return p.jsx(hn,{name:"typography",control:e,rules:{required:"Selecciona una tipografía"},render:({field:a})=>p.jsxs(le,{className:"form-field",children:[p.jsx("label",{htmlFor:"typography",className:"input-label",children:"Selecciona la tipografía principal para tu marca *"}),p.jsxs(zi,{fullWidth:!0,error:!!n.typography,children:[p.jsxs(Eo,{...a,value:a.value||"",displayEmpty:!0,sx:{"& .MuiSelect-select":{padding:"0.6rem 1rem"}},children:[p.jsx(Ia,{value:"",disabled:!0,children:"Selecciona una tipografía"}),mN.map(o=>p.jsx(Ia,{value:o,sx:{fontFamily:o,fontSize:"16px"},children:o},o))]}),n.typography&&p.jsx(se,{variant:"caption",sx:{color:"#ff5252",marginLeft:"15px",fontSize:"14px",display:"block",marginTop:"4px"},children:n.typography.message})]})]})})}var b2={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Lx=we.createContext&&we.createContext(b2),vN=["attr","size","title"];function xN(e,n){if(e==null)return{};var a=SN(e,n),o,s;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(s=0;s<c.length;s++)o=c[s],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(a[o]=e[o])}return a}function SN(e,n){if(e==null)return{};var a={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(n.indexOf(o)>=0)continue;a[o]=e[o]}return a}function Cu(){return Cu=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},Cu.apply(this,arguments)}function Px(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),a.push.apply(a,o)}return a}function wu(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Px(Object(a),!0).forEach(function(o){CN(e,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Px(Object(a)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(a,o))})}return e}function CN(e,n,a){return n=wN(n),n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function wN(e){var n=EN(e,"string");return typeof n=="symbol"?n:n+""}function EN(e,n){if(typeof e!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var o=a.call(e,n);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function v2(e){return e&&e.map((n,a)=>we.createElement(n.tag,wu({key:a},n.attr),v2(n.child)))}function Pi(e){return n=>we.createElement(RN,Cu({attr:wu({},e.attr)},n),v2(e.child))}function RN(e){var n=a=>{var{attr:o,size:s,title:c}=e,u=xN(e,vN),d=s||a.size||"1em",h;return a.className&&(h=a.className),e.className&&(h=(h?h+" ":"")+e.className),we.createElement("svg",Cu({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,o,u,{className:h,style:wu(wu({color:e.color||a.color},a.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),c&&we.createElement("title",null,c),e.children)};return Lx!==void 0?we.createElement(Lx.Consumer,null,a=>n(a)):n(b2)}function u_(e){return Pi({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"},child:[]}]})(e)}function d_(e){return Pi({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},child:[]}]})(e)}function f_(e){return Pi({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"},child:[]}]})(e)}function TN(e){return Pi({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"},child:[]}]})(e)}function p_(e){return Pi({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"},child:[]}]})(e)}function h_(e){return Pi({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"},child:[]}]})(e)}function AN(){const{control:e,formState:{errors:n},setValue:a,watch:o}=Wt(),s=o("socialNetworkLinks")||{},c={Facebook:{icon:RO,color:"#1877F2",bgColor:"#E3F2FD"},Twitter:{icon:NO,color:"#1DA1F2",bgColor:"#E1F5FE"},Instagram:{icon:TO,color:"#E4405F",bgColor:"#FCE4EC"},LinkedIn:{icon:jO,color:"#0A66C2",bgColor:"#E3F2FD"},YouTube:{icon:_O,color:"#FF0000",bgColor:"#FFEBEE"},TikTok:{icon:TN,color:"#000000",bgColor:"#F5F5F5"}},u=h=>p.jsx(le,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:h.map(g=>{const y=c[g],b=y?.icon;return p.jsx(fm,{avatar:p.jsx(pS,{sx:{backgroundColor:y?.color||"#666",color:"#fff",width:20,height:20},children:b?typeof b=="function"&&g==="TikTok"?p.jsx(se,{sx:{fontSize:12},children:b()}):p.jsx(b,{sx:{fontSize:12}}):g[0]}),label:g,size:"small",sx:{backgroundColor:y?.bgColor||"#f0f0f0",color:y?.color||"#333",fontWeight:600,fontSize:"0.75rem",height:"24px",border:`1px solid ${y?.color||"#ddd"}`,"& .MuiChip-avatar":{marginLeft:"4px"},"& .MuiChip-label":{paddingLeft:"4px",paddingRight:"8px"}}},g)})}),d=(h,g,y)=>{const b=c[h],x=b?.icon;return p.jsxs(Ia,{value:h,disabled:y,sx:{display:"flex",alignItems:"center",gap:2,padding:"12px 16px",backgroundColor:g?b?.bgColor:"transparent",borderLeft:g?`4px solid ${b?.color}`:"4px solid transparent","&:hover":{backgroundColor:b?.bgColor||"#f5f5f5"},"&.Mui-disabled":{opacity:.5}},children:[p.jsxs(le,{sx:{width:40,height:40,backgroundColor:b?.color||"#666",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",position:"relative"},children:[x?typeof x=="function"&&h==="TikTok"?p.jsx(se,{sx:{fontSize:20},children:x()}):p.jsx(x,{sx:{fontSize:24}}):p.jsx(se,{sx:{fontSize:18,fontWeight:"bold"},children:h[0]}),g&&p.jsx(le,{sx:{position:"absolute",top:-4,right:-4,width:16,height:16,backgroundColor:"#4caf50",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",border:"2px solid #fff"},children:p.jsx(pu,{sx:{fontSize:10,color:"#fff"}})})]}),p.jsxs(le,{sx:{flex:1},children:[p.jsx(se,{variant:"body1",sx:{fontWeight:g?600:400,color:g?b?.color:"#333"},children:h}),g&&p.jsx(se,{variant:"caption",sx:{color:b?.color,fontSize:"0.7rem"},children:"Seleccionado"})]}),g&&p.jsx(pu,{sx:{color:b?.color,fontSize:20}})]},h)};return p.jsx(hn,{name:"socialNetworks",control:e,rules:{required:"Selecciona al menos 2 redes sociales",validate:h=>!h||h.length<2?"Selecciona al menos 2 redes sociales":h.length>3?"Máximo 3 redes sociales permitidas":!0},render:({field:{value:h=[],onChange:g}})=>{const y=b=>{g(b);const x={...s};Object.keys(x).forEach(E=>{b.includes(E)||delete x[E]}),a("socialNetworkLinks",x)};return p.jsxs(le,{className:"form-field",children:[p.jsx("label",{htmlFor:"socialNetworks",className:"input-label",children:"Selecciona las redes sociales de tu empresa (mínimo 2, máximo 3) *"}),p.jsx(se,{variant:"caption",sx:{color:"#666",fontSize:"0.75rem",display:"block",marginBottom:"8px"},children:"Selecciona desde el menú desplegable. Después podrás agregar los enlaces específicos"}),p.jsxs(zi,{fullWidth:!0,error:!!n.socialNetworks,children:[p.jsxs(Eo,{multiple:!0,value:h,onChange:y,input:p.jsx(xl,{}),renderValue:u,displayEmpty:!0,sx:{"& .MuiSelect-select":{padding:"12px 14px",minHeight:"20px"},"& .MuiOutlinedInput-notchedOutline":{borderColor:h.length>=2?"#4caf50":"#ddd"}},MenuProps:{PaperProps:{sx:{maxHeight:400,"& .MuiMenuItem-root":{padding:0}}}},children:[h.length===0&&p.jsx(Ia,{disabled:!0,sx:{fontStyle:"italic",color:"#999",padding:"12px 16px"},children:"Selecciona entre 2 y 3 redes sociales para tu empresa"}),gN.map(b=>{const x=h.includes(b),E=h.length>=3&&!x;return d(b,x,E)})]}),n.socialNetworks&&p.jsx(se,{variant:"caption",sx:{color:"#ff5252",marginLeft:"15px",fontSize:"14px",display:"block",marginTop:"4px"},children:n.socialNetworks.message})]})]})}})}function jN(){const{control:e,formState:{errors:n}}=Wt(),a=e2({control:e,name:"socialNetworks",defaultValue:[]});return!a||a.length===0?null:p.jsxs(le,{className:"form-field",children:[p.jsx(se,{variant:"h6",component:"h3",sx:{marginBottom:2,fontSize:"1rem",fontWeight:600,color:"#333"},children:"Enlaces de Redes Sociales"}),p.jsx(se,{variant:"body2",sx:{marginBottom:2,color:"#666",fontSize:"0.875rem"},children:"Ingresa los enlaces de las redes sociales que seleccionaste"}),a.map(o=>p.jsx(hn,{name:`socialNetworkLinks.${o}`,control:e,rules:{required:`El enlace de ${o} es obligatorio`,pattern:{value:/^https?:\/\/.+/,message:`El enlace de ${o} debe ser una URL válida (comenzar con http:// o https://)`}},render:({field:{value:s="",onChange:c}})=>p.jsxs(le,{sx:{marginBottom:2},children:[p.jsxs("label",{htmlFor:`socialLink-${o}`,className:"input-label",children:["Enlace de ",o," *"]}),p.jsx(fn,{id:`socialLink-${o}`,fullWidth:!0,value:s,onChange:c,placeholder:`https://www.${o.toLowerCase()}.com/tu-perfil`,error:!!n.socialNetworkLinks?.[o],helperText:n.socialNetworkLinks?.[o]?.message,sx:{"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:"#e0e0e0"},"&:hover fieldset":{borderColor:"#b0b0b0"},"&.Mui-focused fieldset":{borderColor:"#1976d2"}},"& .MuiInputBase-input":{padding:"0.6rem 1rem",fontSize:"0.875rem"}}})]})},o))]})}function MN(){return y2(),p.jsx(le,{className:"stage-container",children:p.jsxs(le,{children:[p.jsx(pN,{}),p.jsx(hN,{}),p.jsx(yN,{}),p.jsx(bN,{}),p.jsx(AN,{}),p.jsx(jN,{})]})})}function kN({index:e,isCollapsed:n,hasErrors:a,hasContent:o,onToggleCollapse:s,onRemove:c}){return p.jsxs(le,{className:"dynamic-section-header",children:[p.jsxs(le,{className:"section-header-left",children:[p.jsx(se,{className:"section-number",children:`Producto/Servicio ${e+1}`}),o&&p.jsxs(le,{className:"card-status-indicators",children:[a&&p.jsx(se,{variant:"caption",className:"error-indicator",children:"⚠ Incompleto"}),!a&&o&&p.jsx(se,{variant:"caption",className:"success-indicator",children:"✓ Completo"})]})]}),p.jsxs(le,{className:"section-header-actions",children:[p.jsx(zr,{onClick:()=>s(e),className:"collapse-button",size:"small",title:n?"Expandir":"Colapsar",children:n?p.jsx(DS,{}):p.jsx(EO,{})}),p.jsx(zr,{onClick:()=>c(e),className:"remove-button",size:"small",title:"Eliminar producto/servicio",children:p.jsx(PS,{})})]})]})}function ON({index:e,value:n,onChange:a,error:o,onImageUpload:s}){const c=u=>{const d=u.target.files[0];d&&(a(d.name),s&&s(e,d))};return p.jsxs(le,{className:"form-field",children:[p.jsx("label",{className:"input-label",children:"Imagen del producto/servicio"}),p.jsxs(le,{className:"image-upload-container",children:[p.jsx("input",{type:"file",accept:"image/*",onChange:c,id:`product-image-${e}`}),p.jsxs("label",{htmlFor:`product-image-${e}`,children:[p.jsx(se,{className:"image-upload-text",children:n?`Imagen seleccionada: ${n}`:"Haz clic para seleccionar una imagen"}),n&&p.jsx(se,{variant:"caption",sx:{display:"block",color:"#F9DF88",marginTop:"0.5rem"},children:"✓ Imagen cargada"})]})]}),o&&p.jsx(se,{variant:"caption",sx:{color:"#ff5252",marginLeft:"15px",fontSize:"14px",display:"block",marginTop:"4px"},children:o.message})]})}function NN({index:e,onImageUpload:n}){const{control:a,formState:{errors:o}}=Wt();return p.jsxs(le,{className:"card-content",children:[p.jsx(hn,{name:`products.${e}.name`,control:a,rules:{required:"El nombre del producto/servicio es requerido",minLength:{value:2,message:"Mínimo 2 caracteres"}},render:({field:s})=>p.jsxs(le,{className:"form-field",children:[p.jsx("label",{className:"input-label",children:"Nombre del producto o servicio"}),p.jsx(fn,{...s,variant:"outlined",placeholder:"Ej: Desarrollo Web, Consultoría, etc.",fullWidth:!0,error:!!o.products?.[e]?.name,helperText:o.products?.[e]?.name?.message,sx:{"& .MuiFormHelperText-root":{color:"#ff5252",marginLeft:"15px",fontSize:"14px"}}})]})}),p.jsx(hn,{name:`products.${e}.description`,control:a,rules:{required:"La descripción es requerida",minLength:{value:10,message:"Mínimo 10 caracteres"}},render:({field:s})=>p.jsxs(le,{className:"form-field",children:[p.jsx("label",{className:"input-label",children:"Descripción del producto o servicio"}),p.jsx(fn,{...s,variant:"outlined",placeholder:"Describe brevemente el producto o servicio...",fullWidth:!0,multiline:!0,rows:4,error:!!o.products?.[e]?.description,helperText:o.products?.[e]?.description?.message,sx:{"& .MuiFormHelperText-root":{color:"#ff5252",marginLeft:"15px",fontSize:"14px"}}})]})}),p.jsx(hn,{name:`products.${e}.image`,control:a,rules:{required:"La imagen es requerida"},render:({field:{onChange:s,value:c}})=>p.jsx(ON,{index:e,value:c,onChange:s,error:o.products?.[e]?.image,onImageUpload:n})})]})}function _N({field:e,index:n,isCollapsed:a,onToggleCollapse:o,onRemove:s,onImageUpload:c}){const{formState:{errors:u}}=Wt(),d=u.products?.[n],h=e.name||e.image;return p.jsxs(le,{className:`dynamic-section ${a?"collapsed":""}`,children:[p.jsx(kN,{index:n,isCollapsed:a,hasErrors:d,hasContent:h,onToggleCollapse:o,onRemove:s}),p.jsx(iu,{in:!a,timeout:300,children:p.jsx(NN,{index:n,onImageUpload:c})})]})}function zN({fieldsLength:e,maxProducts:n=4,onAddProduct:a}){return e<n?p.jsx(qt,{onClick:a,className:"add-more-button",startIcon:p.jsx(wm,{}),variant:"outlined",children:e===0?"Agregar primer producto/servicio":`Agregar otro producto/servicio (${e}/${n})`}):p.jsxs(se,{className:"max-reached-text",children:["Máximo de productos/servicios alcanzado (",e,"/",n,")"]})}function DN({fields:e,collapsedCards:n,onToggleCollapse:a,onRemove:o,onImageUpload:s}){return e.length===0?p.jsxs(p.Fragment,{children:[p.jsx(se,{sx:{color:"rgba(255, 255, 255, 0.6)",textAlign:"center",fontStyle:"italic",marginBottom:"1rem"},children:"Aún no has agregado productos o servicios"}),p.jsx(se,{sx:{backgroundColor:"#fff",color:"rgba(255, 82, 82, 0.8)",borderRadius:"10px",fontSize:"14px",textAlign:"center",marginTop:"1rem"},children:"* Debes agregar al menos un producto o servicio para continuar"})]}):p.jsx(le,{className:"products-container",children:e.map((c,u)=>{const d=n[u]||!1;return p.jsx(_N,{field:c,index:u,isCollapsed:d,onToggleCollapse:a,onRemove:o,onImageUpload:s},c.id)})})}function LN(e){const{control:n}=Wt(),{fields:a,append:o,remove:s}=l2({control:n,name:"products"}),[c,u]=v.useState({});return{fields:a,collapsedCards:c,toggleCardCollapse:b=>{u(x=>({...x,[b]:!x[b]}))},addProduct:()=>{if(a.length<4){const b=a.length;o({name:"",image:null}),u(x=>({...x,[b]:!1}))}},removeProduct:b=>{s(b),u(x=>{const E={...x};delete E[b];const S={};return Object.keys(E).forEach(w=>{const T=parseInt(w);T>b?S[T-1]=E[w]:S[w]=E[w]}),S}),e&&e("stage2",`product_${b}_image`,null)},handleImageUpload:(b,x)=>{e&&x&&e("stage2",`product_${b}_image`,x)}}}function PN({updateStageFiles:e}){const{fields:n,collapsedCards:a,toggleCardCollapse:o,addProduct:s,removeProduct:c,handleImageUpload:u}=LN(e);return p.jsxs(le,{className:"stage-container",children:[p.jsx(se,{variant:"h4",component:"h2",className:"stage-title",children:"Productos y Servicios"}),p.jsx(se,{variant:"body1",className:"stage-description",children:"Agrega hasta 4 productos o servicios que ofrece tu empresa"}),p.jsxs(le,{children:[p.jsx(DN,{fields:n,collapsedCards:a,onToggleCollapse:o,onRemove:c,onImageUpload:u}),p.jsx(zN,{fieldsLength:n.length,maxProducts:4,onAddProduct:s})]})]})}function $N({index:e,updateStageFiles:n}){const{control:a,formState:{errors:o}}=Wt(),s=(c,u,d,h)=>{const g=u.target.files[0];g&&(d(g.name),h&&h("stage3",`testimonial_${c}_image`,g))};return p.jsxs(p.Fragment,{children:[p.jsx(hn,{name:`testimonials.${e}.clientCompany`,control:a,rules:{required:"El nombre de la compañía es requerido",minLength:{value:2,message:"Mínimo 2 caracteres"}},render:({field:c})=>p.jsxs(le,{className:"form-field",children:[p.jsx("label",{className:"input-label",children:"Compañía del cliente"}),p.jsx(fn,{...c,variant:"outlined",placeholder:"Ej: Empresa XYZ, Startup ABC, etc.",fullWidth:!0,size:"small",error:!!o.testimonials?.[e]?.clientCompany,helperText:o.testimonials?.[e]?.clientCompany?.message,sx:{"& .MuiOutlinedInput-root":{borderRadius:"8px"},"& .MuiFormHelperText-root":{color:"#ff5252",marginLeft:"15px",fontSize:"12px"}}})]})}),p.jsx(hn,{name:`testimonials.${e}.image`,control:a,render:({field:{onChange:c,value:u}})=>p.jsxs(le,{className:"form-field",children:[p.jsx("label",{className:"input-label",children:"Foto del cliente (opcional)"}),p.jsxs(le,{className:"image-upload-container",sx:{border:"2px dashed rgba(255, 255, 255, 0.2)",borderRadius:"8px",padding:"1rem",textAlign:"center",cursor:"pointer",transition:"all 0.3s ease","&:hover":{borderColor:"#F9DF88",backgroundColor:"rgba(249, 223, 136, 0.05)"}},children:[p.jsx("input",{type:"file",accept:"image/*",onChange:d=>s(e,d,c,n),id:`testimonial-image-${e}`,style:{display:"none"}}),p.jsxs("label",{htmlFor:`testimonial-image-${e}`,style:{cursor:"pointer",display:"block"},children:[p.jsx(se,{className:"image-upload-text",sx:{fontSize:"14px",color:u?"#F9DF88":"rgba(255, 255, 255, 0.7)"},children:u?`✓ ${u}`:"📸 Seleccionar foto del cliente"}),!u&&p.jsx(se,{variant:"caption",sx:{display:"block",color:"rgba(255, 255, 255, 0.5)",marginTop:"0.5rem",fontSize:"12px"},children:"Haz clic para subir una imagen"})]})]}),o.testimonials?.[e]?.image&&p.jsx(se,{variant:"caption",sx:{color:"#ff5252",marginLeft:"15px",fontSize:"12px",display:"block",marginTop:"4px"},children:o.testimonials?.[e]?.image?.message})]})})]})}function BN({index:e,isExpanded:n,onToggleExpand:a,onRemove:o,hasError:s,updateStageFiles:c}){const u=()=>{a(e)},d=h=>{h.stopPropagation(),o(e)};return p.jsxs(le,{className:"dynamic-section",sx:{height:"fit-content",minHeight:"80px",border:"1px solid rgba(255, 255, 255, 0.12)",borderRadius:"12px",backgroundColor:"rgba(255, 255, 255, 0.02)",transition:"all 0.3s ease","&:hover":{borderColor:"rgba(255, 255, 255, 0.2)",backgroundColor:"rgba(255, 255, 255, 0.04)",transform:"translateY(-2px)",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.1)"}},children:[p.jsxs(le,{className:"dynamic-section-header",sx:{cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"1rem",borderRadius:"12px 12px 0 0",backgroundColor:n?"rgba(249, 223, 136, 0.1)":"transparent",transition:"background-color 0.3s ease","&:hover":{backgroundColor:"rgba(249, 223, 136, 0.15)"}},onClick:u,children:[p.jsxs(le,{sx:{display:"flex",alignItems:"center",gap:2},children:[p.jsx(se,{className:"section-number",sx:{fontSize:"16px",fontWeight:600,color:n?"#F9DF88":"rgba(255, 255, 255, 0.9)"},children:`Cliente ${e+1}`}),s&&p.jsx(le,{sx:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:"#ff5252",animation:"pulse 2s infinite"}}),p.jsx(zr,{size:"small",sx:{color:n?"#F9DF88":"rgba(255, 255, 255, 0.7)",transform:n?"rotate(180deg)":"rotate(0deg)",transition:"all 0.3s ease"},children:p.jsx(DS,{})})]}),p.jsx(zr,{onClick:d,className:"remove-button",size:"small",sx:{color:"#ff5252","&:hover":{backgroundColor:"rgba(255, 82, 82, 0.1)",transform:"scale(1.1)"},transition:"all 0.2s ease"},children:p.jsx(PS,{})})]}),p.jsx(iu,{in:n,timeout:400,unmountOnExit:!0,children:p.jsx(le,{sx:{padding:"0 1rem 1.5rem 1rem","& .form-field":{marginBottom:"1.5rem"}},children:p.jsx($N,{index:e,updateStageFiles:c})})})]})}function IN({fields:e,expandedItems:n,onToggleExpand:a,onRemoveClient:o,errors:s,updateStageFiles:c}){return e.length===0?p.jsx(se,{sx:{color:"rgba(255, 255, 255, 0.6)",textAlign:"center",fontStyle:"italic",marginBottom:"1rem"},children:"Aún no has agregado clientes"}):p.jsx(Kn,{container:!0,spacing:3,sx:{marginBottom:"2rem"},children:e.map((u,d)=>p.jsx(Kn,{item:!0,xs:12,lg:6,children:p.jsx(BN,{index:d,isExpanded:n[d],onToggleExpand:a,onRemove:o,hasError:!!s.testimonials?.[d]?.clientName,updateStageFiles:c})},u.id))})}function FN({clientsCount:e,onAddClient:n,maxClients:a=4}){return e<a?p.jsx(le,{sx:{textAlign:"center",marginTop:"2rem"},children:p.jsx(qt,{onClick:n,className:"add-more-button",startIcon:p.jsx(wm,{}),variant:"outlined",size:"large",sx:{borderColor:"#F9DF88",color:"#F9DF88",borderRadius:"12px",padding:"12px 32px",fontSize:"16px",fontWeight:600,textTransform:"none",minWidth:"280px","&:hover":{borderColor:"#F9DF88",backgroundColor:"rgba(249, 223, 136, 0.1)",transform:"translateY(-2px)",boxShadow:"0 4px 20px rgba(249, 223, 136, 0.2)"},transition:"all 0.3s ease"},children:e===0?"✨ Agregar primer cliente":`Agregar cliente (${e}/${a})`})}):p.jsx(le,{sx:{textAlign:"center",marginTop:"2rem"},children:p.jsx(le,{sx:{padding:"16px 24px",backgroundColor:"rgba(76, 175, 80, 0.1)",border:"1px solid rgba(76, 175, 80, 0.3)",borderRadius:"12px",display:"inline-block"},children:p.jsxs(se,{sx:{color:"#4CAF50",fontWeight:600,fontSize:"16px"},children:["🎉 ¡Perfecto! Has completado todos los clientes (",a,"/",a,")"]})})})}function UN({show:e}){return e?p.jsxs(le,{sx:{textAlign:"center",marginTop:"2rem",padding:"20px",backgroundColor:"#fff",border:"1px solid rgba(255, 152, 0, 0.3)",borderRadius:"12px",maxWidth:"500px",margin:"2rem auto 0"},children:[p.jsx(se,{sx:{color:"#FF9800",fontSize:"14px",fontWeight:500,marginBottom:"8px"},children:"💡 Tip: Mostrar clientes da credibilidad a tu marca"}),p.jsx(se,{sx:{color:"#FF9800",fontSize:"13px",lineHeight:1.5},children:"Agrega al menos un cliente para continuar. Mostrar clientes reales con los que has trabajado aumenta la confianza en tu marca."})]}):null}function HN(){return p.jsxs(p.Fragment,{children:[p.jsx(se,{variant:"h4",component:"h2",className:"stage-title",children:"Clientes"}),p.jsx(se,{variant:"body1",className:"stage-description",children:"Agrega hasta 4 clientes para mostrar en tu portafolio"})]})}function VN(){const{control:e,formState:{errors:n}}=Wt(),{fields:a,append:o,remove:s}=l2({control:e,name:"testimonials"}),[c,u]=v.useState({});return{fields:a,errors:n,expandedItems:c,addClient:()=>{if(a.length<4){const y=a.length;o({clientCompany:"",image:null}),u(b=>({...b,[y]:!0}))}},removeClient:y=>{s(y),u(b=>{const x={...b};return delete x[y],Object.keys(x).forEach(E=>{const S=parseInt(E);S>y&&(x[S-1]=x[S],delete x[S])}),x})},toggleExpand:y=>{u(b=>({...b,[y]:!b[y]}))}}}function qN({updateStageFiles:e}){const{fields:n,errors:a,expandedItems:o,addClient:s,removeClient:c,toggleExpand:u}=VN();return p.jsxs(le,{className:"stage-container",children:[p.jsx(HN,{}),p.jsxs(le,{children:[p.jsx(IN,{fields:n,expandedItems:o,onToggleExpand:u,onRemoveClient:c,errors:a,updateStageFiles:e}),p.jsx(FN,{clientsCount:n.length,onAddClient:s,maxClients:4}),p.jsx(UN,{show:n.length===0})]})]})}const x2=({activeStep:e,updateStageFiles:n})=>{switch(e){case 0:return p.jsx(fN,{});case 1:return p.jsx(MN,{});case 2:return p.jsx(PN,{updateStageFiles:n});case 3:return p.jsx(qN,{updateStageFiles:n});default:return null}};x2.propTypes={activeStep:qe.number.isRequired,updateStageFiles:qe.func};const S2=({open:e,message:n,severity:a,onClose:o})=>{const s=()=>a==="error"||a==="warning"?n.length>100?1e4:8e3:6e3;return p.jsx(kS,{open:e,autoHideDuration:s(),onClose:o,anchorOrigin:{vertical:"top",horizontal:"center"},children:p.jsx(sn,{onClose:o,severity:a,sx:{width:"100%",maxWidth:"500px",whiteSpace:"pre-line","& .MuiAlert-message":{fontSize:"0.9rem",lineHeight:"1.4"}},children:n})})};S2.propTypes={open:qe.bool.isRequired,message:qe.string.isRequired,severity:qe.oneOf(["success","error","warning","info"]).isRequired,onClose:qe.func.isRequired};const qp=["Información de la Empresa","Detalles del Proyecto","Productos y Servicios","Clientes"];function GN(){const e=gr(),n=J8({defaultValues:{company_name:"",description:"",logo:null,heroImage:null,colors:[],socialNetworks:[],socialNetworkLinks:{},products:[],testimonials:[]}}),a=()=>{e("/preview")},{activeStep:o,isSubmitting:s,isUploadingImages:c,isGeneratingContent:u,notification:d,handleCloseNotification:h,handleSubmit:g,handleBack:y,isStepComplete:b,updateStageFiles:x,setFormData:E,showCurrentStepErrors:S}=uN(qp,a),w=M=>{const j=n.watch();return b?b(M,j):!1},T=()=>{const M=n.watch();S(M)};return v.useEffect(()=>{try{const M=localStorage.getItem("template_form_data");if(!M)return;const j=JSON.parse(M);if(!j||typeof j!="object")return;n.reset(j),typeof E=="function"&&E(j)}catch(M){console.warn("Could not load template_form_data from localStorage:",M)}},[]),p.jsxs(p.Fragment,{children:[p.jsx(km,{title:"Dashboard - Crear Proyecto",showBackButton:!0}),p.jsxs("div",{className:"form-section",children:[p.jsx(eN,{}),p.jsxs(vo,{maxWidth:"md",children:[p.jsx(d2,{activeStep:o,steps:qp,isStepComplete:w}),p.jsx(le,{className:"form-container",style:{marginBottom:"2rem"},children:p.jsxs(L8,{...n,children:[p.jsxs("form",{onSubmit:n.handleSubmit(g),children:[p.jsx(x2,{activeStep:o,updateStageFiles:x}),p.jsx(f2,{activeStep:o,steps:qp,onBack:y,isStepComplete:w,isSubmitting:s||c||u,onShowErrors:T})]}),c&&p.jsx("div",{style:{textAlign:"center",marginTop:"1rem"},children:p.jsx("p",{children:"Subiendo imágenes..."})}),u&&p.jsx("div",{style:{textAlign:"center",marginTop:"1rem"},children:p.jsx("p",{children:"Generando contenido personalizado..."})})]})})]})]}),p.jsx(S2,{open:d.open,message:d.message,severity:d.severity,onClose:h})]})}const kh=[{id:"https://github.com/Staion-Startup/lomi-template-1",name:"Template 1",description:"Plantilla moderna con diseño limpio",component:()=>Ys(()=>import("./Template1-B3oAQfCp.js"),__vite__mapDeps([0,1,2]))},{id:"https://github.com/Staion-Startup/lomi-template-2",name:"Template 2",description:"Plantilla elegante con estilo profesional",component:()=>Ys(()=>import("./Template2-ffHTSSGc.js"),__vite__mapDeps([3,1,4]))},{id:"https://github.com/Staion-Startup/lomi-template-3",name:"Template 3",description:"Plantilla creativa con diseño vibrante",component:()=>Ys(()=>import("./Template3-B8wLj6zW.js"),__vite__mapDeps([5,1,6]))},{id:"https://github.com/Staion-Startup/lomi-template-4",name:"Template 4",description:"Plantilla minimalista con enfoque en contenido",component:()=>Ys(()=>import("./Template4-mY3cJqqN.js"),__vite__mapDeps([7,1,8]))}],WN=kh[0],YN=({selectedTemplate:e,onTemplateChange:n})=>{const a=o=>{const s=o.target.value,c=kh.find(u=>u.id===s);n(c)};return p.jsxs(le,{className:"template-selector",sx:{minWidth:300,mb:3},children:[p.jsx(se,{variant:"h6",color:"#000",gutterBottom:!0,children:"Seleccionar Plantilla"}),p.jsxs(zi,{fullWidth:!0,children:[p.jsx(bm,{id:"template-select-label",children:"Plantilla"}),p.jsx(Eo,{labelId:"template-select-label",id:"template-select",value:e?.id||"",label:"Plantilla",onChange:a,children:kh.map(o=>p.jsx(Ia,{value:o.id,children:p.jsxs(le,{children:[p.jsx(se,{variant:"body1",component:"div",children:o.name}),p.jsx(se,{variant:"body2",color:"text.secondary",children:o.description})]})},o.id))})]})]})},KN=({template:e,data:n})=>{const[a,o]=v.useState(null),[s,c]=v.useState(!1),[u,d]=v.useState(null);return v.useEffect(()=>{if(!e){o(null);return}(async()=>{c(!0),d(null);try{const g=await e.component();o(()=>g.default)}catch(g){console.error("Error loading template:",g),d("Error cargando la plantilla")}finally{c(!1)}})()},[e]),s?p.jsx(le,{className:"template-loading",display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",children:p.jsx(nr,{})}):u?p.jsx(le,{className:"template-error",sx:{mt:2},children:p.jsx(sn,{severity:"error",children:u})}):a?p.jsx(le,{className:"template-container",children:p.jsx(v.Suspense,{fallback:p.jsx(le,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",children:p.jsx(nr,{})}),children:p.jsx(a,{data:n})})}):p.jsx(le,{className:"template-placeholder",sx:{mt:2},children:p.jsx(sn,{severity:"info",children:"Selecciona una plantilla para ver la vista previa"})})},QN=e=>p.jsx(PM,{...e,direction:"up"}),XN=({open:e,message:n,severity:a="info",onClose:o,autoHideDuration:s=6e3,position:c={vertical:"bottom",horizontal:"center"}})=>{const u=(g,y)=>{y!=="clickaway"&&o()},h=(g=>{const y={success:{backgroundColor:"#d4edda",color:"#155724",iconColor:"#28a745"},error:{backgroundColor:"#f8d7da",color:"#721c24",iconColor:"#dc3545"},warning:{backgroundColor:"#fff3cd",color:"#856404",iconColor:"#ffc107"},info:{backgroundColor:"#d1ecf1",color:"#0c5460",iconColor:"#17a2b8"}};return y[g]||y.info})(a);return p.jsx(kS,{open:e,autoHideDuration:s,onClose:u,anchorOrigin:c,TransitionComponent:QN,children:p.jsx(sn,{onClose:u,severity:a,variant:"filled",sx:{width:"100%",minWidth:"300px",borderRadius:2,fontSize:"14px",fontWeight:"500",backgroundColor:h.backgroundColor,color:h.color,"& .MuiAlert-icon":{color:h.iconColor},boxShadow:"0 4px 12px rgba(0,0,0,0.15)","& .MuiAlert-action":{color:h.iconColor}},children:n})})},ZN=()=>{const[e,n]=v.useState({open:!1,text:"",severity:"info"}),a=(h,g="info")=>{n({open:!0,text:h,severity:g})};return{message:e,showMessage:a,showSuccess:h=>a(h,"success"),showError:h=>a(h,"error"),showWarning:h=>a(h,"warning"),showInfo:h=>a(h,"info"),hideMessage:()=>{n(h=>({...h,open:!1}))}}};function JN(){const[e,n]=v.useState(!1),[a,o]=v.useState(null),s=v.useCallback(()=>{const d=Date.now(),h=Math.random().toString(36).substring(2,15);return`LOMI_${d}_${h}`},[]),c=v.useCallback(async({amount:d=so.default_amount,description:h="Creación de sitio web",customerData:g={},onError:y})=>{try{n(!0),o(null),so.public_key;const b=s(),x=`${window.location.origin}/payment-success`,E=`${window.location.origin}/preview`,S={public_key:so.public_key,currency:so.currency,amount_in_cents:parseInt(d),reference:b,redirect_url:x,cancel_url:E,customer_data:{phone_number:g.phone||"",full_name:g.name||"",email:g.email||""},payment_description:h},w={reference:b,amount:d,description:h,timestamp:Date.now(),onSuccessCallback:"handleTemplateCreation"};sessionStorage.setItem("wompi_payment_context",JSON.stringify(w));const T=so.is_sandbox?so.sandbox_url:so.production_url,M=new URL(T);Object.entries(S).forEach(([j,O])=>{typeof O=="object"?Object.entries(O).forEach(([N,A])=>{A&&M.searchParams.append(`${j}[${N}]`,A)}):O&&M.searchParams.append(j,O)}),window.location.href=M.toString()}catch(b){console.error("Error initiating Wompi payment:",b),o(b.message||"Error al iniciar el pago"),y&&y(b)}finally{n(!1)}},[s]),u=v.useCallback(()=>{const d=sessionStorage.getItem("wompi_payment_context");if(d)try{const h=JSON.parse(d);return sessionStorage.removeItem("wompi_payment_context"),h}catch(h){return console.error("Error parsing payment context:",h),null}return null},[]);return{isProcessingPayment:e,paymentError:a,initiatePayment:c,handlePaymentReturn:u,generateReference:s}}const e_=fe(le)(({theme:e,direction:n})=>({position:"fixed",top:"50%",transform:"translateY(-50%)",zIndex:1e3,...n==="left"&&{left:e.spacing(2)},...n==="right"&&{right:e.spacing(2)}})),t_=fe(zr)(({theme:e,direction:n})=>({backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,width:56,height:56,boxShadow:e.shadows[4],transition:"all 0.3s ease-in-out","&:hover":{backgroundColor:e.palette.primary.dark,transform:"scale(1.1)",boxShadow:e.shadows[8]},"&:active":{transform:"scale(0.95)"},...n==="left"&&{"&:hover":{backgroundColor:e.palette.primary.dark,transform:"scale(1.1) translateX(-4px)",boxShadow:e.shadows[8]}},...n==="right"&&{"&:hover":{backgroundColor:e.palette.primary.dark,transform:"scale(1.1) translateX(4px)",boxShadow:e.shadows[8]}},[e.breakpoints.down("sm")]:{width:48,height:48},[e.breakpoints.down("xs")]:{width:40,height:40}})),n_=({direction:e="right",onClick:n,visible:a=!0,ariaLabel:o,disabled:s=!1,sx:c={},...u})=>{if(!n||typeof n!="function")return console.warn("ArrowDirection: onClick prop is required and must be a function"),null;if(!["left","right"].includes(e))return console.warn('ArrowDirection: direction prop must be either "left" or "right"'),null;if(!a)return null;const d=e==="left"?NS:CO,h=e==="left"?"Ir hacia atrás":"Ir hacia adelante";return p.jsx(e_,{direction:e,sx:c,...u,children:p.jsx(t_,{direction:e,onClick:n,disabled:s,"aria-label":o||h,size:"large",children:p.jsx(d,{fontSize:"large"})})})};function r_(){const e=jm();return Li({mutationFn:({templateData:n,token:a})=>Z1(n,a),onSuccess:n=>{e.invalidateQueries(["user-templates"])}})}function a_(){const[e,n]=v.useState(!1),{getToken:a}=ia(),o=()=>n(!1),[s,c]=v.useState(!1),u=async Z=>{try{const F=await(await fetch(`${pr}/api/v1/payments/create-checkout/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({amount_in_cents:3232e3})})).json();F.checkout_url&&window.open(F.checkout_url,"_blank")}catch(G){console.error("❌ Error creando checkout:",G)}},d=rr(),h=gr(),[g,y]=v.useState(WN),{templateContent:b,formData:x}=oS(),{user:E}=ia(),{message:S,showError:w,showInfo:T,showSuccess:M,hideMessage:j}=ZN(),{isProcessingPayment:O,paymentError:N}=JN(),{mutate:A,isPending:z}=r_(),[L,B]=v.useState(null);v.useEffect(()=>{d.state?.templateContent&&!b&&(console.warn("Template content received via location state instead of context"),T("Contenido del template recibido desde navegación"))},[d.state,b,T]),v.useEffect(()=>{if(b)B(null);else try{const Z=sessionStorage.getItem("template_form_data")||localStorage.getItem("template_form_data");if(Z){const R=JSON.parse(Z);B(R),T("Contenido del template cargado")}}catch(Z){console.warn("Failed to parse template_content from storage",Z)}},[b,T]);const V=Z=>{y(Z),T(`Plantilla "${Z.name}" seleccionada`)},X=async()=>{const Z=b||L;if(!Z){w("Debes completar el formulario primero para generar el contenido del template.");return}if(!E?.email){w("Usuario no autenticado correctamente.");return}if(!x?.company_name){w("No se pudo obtener el nombre de la empresa del formulario.");return}try{c(!0);const R=g.id,G=x.company_name||"Compañía no especificada";sessionStorage.setItem("selected_template_id",R),T("Creando tu sitio web...");const F=await fetch(`${pr}/api/v1/user-templates/`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a()}`},body:JSON.stringify({user_id:E.pk,repo_url:R,client_name:G,...Z})}),q=await F.json();F.ok?(M("Sitio creado correctamente 🎉"),console.log("✅ UserTemplate creado:",q),localStorage.removeItem("template_form_data"),window.location.href="/dashboard"):(w(q.detail||"Error al crear el sitio web"),console.error("❌ Error en creación:",q))}catch(R){console.error("❌ Error creando sitio:",R),w("Error al crear el sitio. Inténtalo de nuevo.")}finally{c(!1)}};return p.jsxs(p.Fragment,{children:[p.jsx(km,{title:"Preview - Vista de Plantillas",showBackButton:!0}),p.jsxs("div",{className:"preview-container",children:[p.jsx("div",{className:"preview-header",children:p.jsxs(vo,{maxWidth:"lg",children:[p.jsxs(le,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[p.jsxs(le,{children:[p.jsx(se,{variant:"h4",component:"h1",color:"#000",gutterBottom:!0,children:"Vista previa de plantillas"}),p.jsx(se,{variant:"body1",color:"text.secondary",children:"Selecciona una plantilla para ver cómo se ve tu proyecto."})]}),p.jsx(qt,{variant:"contained",onClick:X,disabled:O||z,sx:{backgroundColor:"#8783CA",color:"#FFFFFF",fontWeight:"bold",padding:"12px 24px",borderRadius:"8px",textTransform:"none",fontSize:"16px","&:hover":{backgroundColor:"#6B66B8",color:"#FFFFFF"},"&:active":{backgroundColor:"#5A549F"},"&:disabled":{backgroundColor:"#cccccc",color:"#666666"}},children:z?"Creando sitio web...":"Crea tu web"}),p.jsxs(mm,{sx:{color:"#fff",zIndex:Z=>Z.zIndex.drawer+1,flexDirection:"column"},open:s,children:[p.jsx(nr,{color:"inherit"}),p.jsx(se,{variant:"h6",sx:{mt:2},children:"🚀 Creando tu web, por favor espera..."})]})]}),p.jsxs(bS,{open:e,onClose:o,maxWidth:"sm",fullWidth:!0,children:[p.jsx(SS,{children:"Elige tu plan"}),p.jsx(xS,{dividers:!0,children:p.jsxs(le,{display:"flex",flexDirection:"column",gap:3,children:[p.jsxs(le,{sx:{border:"1px solid #ccc",borderRadius:"8px",p:2,cursor:"pointer"},onClick:()=>u(),children:[p.jsx(se,{children:"Plan Starter - $32,320 COP - Incluye IVA / año"}),p.jsxs(wS,{dense:!0,children:[p.jsxs(tx,{disableGutters:!0,children:[p.jsx(rx,{children:p.jsx(hu,{color:"success",fontSize:"small"})}),p.jsx(ax,{primary:"Incluye subdominio en lomilabs.com"})]}),p.jsxs(tx,{disableGutters:!0,children:[p.jsx(rx,{children:p.jsx(hu,{color:"success",fontSize:"small"})}),p.jsx(ax,{primary:"Soporte básico"})]})]}),p.jsx(se,{variant:"button",sx:{mt:2,display:"block",textAlign:"center",bgcolor:"#8783CA",color:"#fff",fontWeight:"bold",borderRadius:"8px",px:2,py:1,transition:"0.3s","&:hover":{bgcolor:"#6B66B8"}},children:"Comprar"})]}),p.jsxs(le,{sx:{border:"1px solid #ccc",borderRadius:"8px",p:2,cursor:"not-allowed",opacity:.6,pointerEvents:"none"},onClick:()=>u(),children:[p.jsx(se,{children:"Plan Pro - $19 USD"}),p.jsx(se,{variant:"body2",color:"text.secondary",children:"Proximamente"})]})]})}),p.jsx(vS,{children:p.jsx(qt,{onClick:o,color:"secondary",children:"Cerrar"})})]})]})}),p.jsx("div",{className:"preview-content",children:p.jsxs(vo,{maxWidth:"lg",children:[N&&p.jsxs(sn,{severity:"error",sx:{mb:3,borderRadius:2,backgroundColor:"#ffebee",color:"#c62828","& .MuiAlert-icon":{color:"#c62828"}},children:["Error en el pago: ",N]}),(b||L)&&p.jsx(sn,{severity:"success",sx:{mb:3,borderRadius:2,backgroundColor:"#F9DCB8",color:"#333","& .MuiAlert-icon":{color:"#8783CA"}},children:"¡Excelente! Tu proyecto ha sido procesado correctamente. Ahora puedes ver cómo se verá en diferentes plantillas."}),p.jsx(n_,{direction:"left",onClick:()=>h(-1),ariaLabel:"Página anterior"}),p.jsx(YN,{selectedTemplate:g,onTemplateChange:V}),p.jsx(KN,{template:g,data:b||L})]})})]}),z&&p.jsx(Om,{open:z,message:"Creando tu sitio web...",submessage:"Por favor espera mientras procesamos tu solicitud",variant:"overlay",showProgress:!0}),p.jsx(XN,{open:S.open,message:S.text,severity:S.severity,onClose:j})]})}function o_(){gr();const[e,n]=v.useState(null),[a,o]=v.useState("Cargando..."),[s,c]=v.useState(!0),[u]=cE(),d=u.get("id");console.log("Referencia obtenida de la URL:",d),console.log("params actual:",u),v.useEffect(()=>{if(!d)return;console.log("Verificando pago con referencia:",d);const g=async()=>{try{const b=await fetch(`${pr}/api/v1/payments/verify/${d}/`),x=await b.json();b.ok?(console.log("Datos del pago:",x),n(x),o(x.status||"ERROR"),x.status==="APPROVED"&&(localStorage.removeItem("selected_template_id"),localStorage.removeItem("template_form_data")),(x.status==="APPROVED"||x.status==="DECLINED")&&c(!1)):(console.error("Error al obtener el pago:",x),o("ERROR"))}catch{o("ERROR")}};g();let y;return s&&(y=setInterval(g,5e3)),()=>clearInterval(y)},[d,s]);const h={APPROVED:"Aprobado",PENDING:"Pendiente",DECLINED:"Rechazado","Cargando...":"Cargando...",ERROR:"Error"};return e?p.jsx(le,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"80vh",children:p.jsx(yo,{sx:{maxWidth:500,width:"100%",boxShadow:3,borderRadius:3},children:p.jsxs(bo,{children:[a==="APPROVED"&&p.jsx(sn,{severity:"success",sx:{mb:2},children:"✅ ¡Pago aprobado!"}),a==="PENDING"&&p.jsx(sn,{severity:"warning",sx:{mb:2},children:"⏳ El pago está en proceso..."}),a==="DECLINED"&&p.jsx(sn,{severity:"error",sx:{mb:2},children:"❌ El pago fue rechazado."}),a==="ERROR"&&p.jsx(sn,{severity:"error",sx:{mb:2},children:"⚠️ Error al obtener información del pago"}),p.jsxs(se,{variant:"h6",gutterBottom:!0,children:["Estado del pago: ",h[a]||a]}),p.jsxs(se,{children:[p.jsx("b",{children:"Referencia:"})," ",e.reference]}),p.jsxs(se,{children:[p.jsx("b",{children:"Monto:"})," ",e.amount_in_cents/100," ",e.currency]}),e.payment_method_type&&p.jsxs(se,{children:[p.jsx("b",{children:"Método de pago:"})," ",e.payment_method_type]}),e.finalized_at&&p.jsxs(se,{children:[p.jsx("b",{children:"Fecha:"})," ",new Date(e.finalized_at).toLocaleString()]}),a==="APPROVED"&&p.jsx(qt,{href:"/dashboard",variant:"contained",color:"success",sx:{mt:2},children:"Ir a mi perfil"}),a==="DECLINED"&&p.jsx(qt,{href:"/preview",variant:"outlined",color:"error",sx:{mt:2},children:"Reintentar pago"})]})})}):p.jsx("p",{children:"Cargando información del pago..."})}const Uc=({children:e})=>{const{isAuthenticated:n,loading:a}=ia(),o=rr();return a?p.jsxs(le,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"100vh",gap:2},children:[p.jsx(nr,{size:60}),p.jsx(se,{variant:"body1",color:"text.secondary",children:"Verificando autenticación..."})]}):n?e:p.jsx(Nw,{to:"/login",state:{from:o},replace:!0})};function i_(){return p.jsxs(zw,{children:[p.jsx(_a,{path:"/",element:p.jsx(R4,{})}),p.jsx(_a,{path:"/login",element:p.jsx(y8,{})}),p.jsx(_a,{path:"/register",element:p.jsx(v8,{})}),p.jsx(_a,{path:"/dashboard",element:p.jsx(Uc,{children:p.jsx(_8,{})})}),p.jsx(_a,{path:"/form",element:p.jsx(Uc,{children:p.jsx(GN,{})})}),p.jsx(_a,{path:"/preview",element:p.jsx(Uc,{children:p.jsx(a_,{})})}),p.jsx(_a,{path:"/payment-success",element:p.jsx(Uc,{children:p.jsx(o_,{})})})]})}const s_=Bu({palette:{primary:{main:"#667eea"},secondary:{main:"#764ba2"}},typography:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif'}});function l_(){const e=new n8;return p.jsx(aE,{children:p.jsxs(i4,{theme:s_,children:[p.jsx(p4,{}),p.jsx(x4,{children:p.jsx(aS,{children:p.jsx(r8,{client:e,children:p.jsx(i_,{})})})})]})})}H5.createRoot(document.getElementById("root")).render(p.jsx(v.StrictMode,{children:p.jsx(l_,{})}));export{TN as F,h_ as a,f_ as b,d_ as c,p_ as d,u_ as e,p as j,v as r};
