sevago-sso-fe 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1183 @@
1
+ var hB=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var hse=hB((mr,gr)=>{function mB(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const s=Object.getOwnPropertyDescriptor(r,a);s&&Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const gB=Object.freeze(Object.defineProperty({__proto__:null,get changeNotificationCount(){return EP},get changeSidebarCount(){return wP},get getAccount(){return AP},get login(){return xP},get logout(){return eb},get refreshToken(){return tb},get resetPassword(){return TP},get subscribeTopic(){return nb},get unsubscribeTopic(){return rb},get updateAccount(){return CP},get updateCurrentAccess(){return RP},get updatePositionOrgUnit(){return OP}},Symbol.toStringTag,{value:"Module"}));(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();function Ri(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _y={exports:{}},Hc={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Fw;function yB(){if(Fw)return Hc;Fw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,s){var c=null;if(s!==void 0&&(c=""+s),a.key!==void 0&&(c=""+a.key),"key"in a){s={};for(var f in a)f!=="key"&&(s[f]=a[f])}else s=a;return a=s.ref,{$$typeof:e,type:r,key:c,ref:a!==void 0?a:null,props:s}}return Hc.Fragment=t,Hc.jsx=n,Hc.jsxs=n,Hc}var Vw;function vB(){return Vw||(Vw=1,_y.exports=yB()),_y.exports}var D=vB(),My={exports:{}},Fe={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Hw;function bB(){if(Hw)return Fe;Hw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function x($){return $===null||typeof $!="object"?null:($=v&&$[v]||$["@@iterator"],typeof $=="function"?$:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,T={};function w($,W,te){this.props=$,this.context=W,this.refs=T,this.updater=te||b}w.prototype.isReactComponent={},w.prototype.setState=function($,W){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,$,W,"setState")},w.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function R(){}R.prototype=w.prototype;function A($,W,te){this.props=$,this.context=W,this.refs=T,this.updater=te||b}var _=A.prototype=new R;_.constructor=A,S(_,w.prototype),_.isPureReactComponent=!0;var O=Array.isArray;function M(){}var L={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function z($,W,te){var oe=te.ref;return{$$typeof:e,type:$,key:W,ref:oe!==void 0?oe:null,props:te}}function V($,W){return z($.type,W,$.props)}function H($){return typeof $=="object"&&$!==null&&$.$$typeof===e}function P($){var W={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(te){return W[te]})}var K=/\/+/g;function U($,W){return typeof $=="object"&&$!==null&&$.key!=null?P(""+$.key):W.toString(36)}function j($){switch($.status){case"fulfilled":return $.value;case"rejected":throw $.reason;default:switch(typeof $.status=="string"?$.then(M,M):($.status="pending",$.then(function(W){$.status==="pending"&&($.status="fulfilled",$.value=W)},function(W){$.status==="pending"&&($.status="rejected",$.reason=W)})),$.status){case"fulfilled":return $.value;case"rejected":throw $.reason}}throw $}function k($,W,te,oe,le){var he=typeof $;(he==="undefined"||he==="boolean")&&($=null);var ge=!1;if($===null)ge=!0;else switch(he){case"bigint":case"string":case"number":ge=!0;break;case"object":switch($.$$typeof){case e:case t:ge=!0;break;case h:return ge=$._init,k(ge($._payload),W,te,oe,le)}}if(ge)return le=le($),ge=oe===""?"."+U($,0):oe,O(le)?(te="",ge!=null&&(te=ge.replace(K,"$&/")+"/"),k(le,W,te,"",function(ye){return ye})):le!=null&&(H(le)&&(le=V(le,te+(le.key==null||$&&$.key===le.key?"":(""+le.key).replace(K,"$&/")+"/")+ge)),W.push(le)),1;ge=0;var Me=oe===""?".":oe+":";if(O($))for(var ve=0;ve<$.length;ve++)oe=$[ve],he=Me+U(oe,ve),ge+=k(oe,W,te,he,le);else if(ve=x($),typeof ve=="function")for($=ve.call($),ve=0;!(oe=$.next()).done;)oe=oe.value,he=Me+U(oe,ve++),ge+=k(oe,W,te,he,le);else if(he==="object"){if(typeof $.then=="function")return k(j($),W,te,oe,le);throw W=String($),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.")}return ge}function I($,W,te){if($==null)return $;var oe=[],le=0;return k($,oe,"","",function(he){return W.call(te,he,le++)}),oe}function q($){if($._status===-1){var W=$._result;W=W(),W.then(function(te){($._status===0||$._status===-1)&&($._status=1,$._result=te)},function(te){($._status===0||$._status===-1)&&($._status=2,$._result=te)}),$._status===-1&&($._status=0,$._result=W)}if($._status===1)return $._result.default;throw $._result}var X=typeof reportError=="function"?reportError:function($){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var W=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $=="object"&&$!==null&&typeof $.message=="string"?String($.message):String($),error:$});if(!window.dispatchEvent(W))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",$);return}console.error($)},ie={map:I,forEach:function($,W,te){I($,function(){W.apply(this,arguments)},te)},count:function($){var W=0;return I($,function(){W++}),W},toArray:function($){return I($,function(W){return W})||[]},only:function($){if(!H($))throw Error("React.Children.only expected to receive a single React element child.");return $}};return Fe.Activity=g,Fe.Children=ie,Fe.Component=w,Fe.Fragment=n,Fe.Profiler=a,Fe.PureComponent=A,Fe.StrictMode=r,Fe.Suspense=d,Fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,Fe.__COMPILER_RUNTIME={__proto__:null,c:function($){return L.H.useMemoCache($)}},Fe.cache=function($){return function(){return $.apply(null,arguments)}},Fe.cacheSignal=function(){return null},Fe.cloneElement=function($,W,te){if($==null)throw Error("The argument must be a React element, but you passed "+$+".");var oe=S({},$.props),le=$.key;if(W!=null)for(he in W.key!==void 0&&(le=""+W.key),W)!B.call(W,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&W.ref===void 0||(oe[he]=W[he]);var he=arguments.length-2;if(he===1)oe.children=te;else if(1<he){for(var ge=Array(he),Me=0;Me<he;Me++)ge[Me]=arguments[Me+2];oe.children=ge}return z($.type,le,oe)},Fe.createContext=function($){return $={$$typeof:c,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null},$.Provider=$,$.Consumer={$$typeof:s,_context:$},$},Fe.createElement=function($,W,te){var oe,le={},he=null;if(W!=null)for(oe in W.key!==void 0&&(he=""+W.key),W)B.call(W,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(le[oe]=W[oe]);var ge=arguments.length-2;if(ge===1)le.children=te;else if(1<ge){for(var Me=Array(ge),ve=0;ve<ge;ve++)Me[ve]=arguments[ve+2];le.children=Me}if($&&$.defaultProps)for(oe in ge=$.defaultProps,ge)le[oe]===void 0&&(le[oe]=ge[oe]);return z($,he,le)},Fe.createRef=function(){return{current:null}},Fe.forwardRef=function($){return{$$typeof:f,render:$}},Fe.isValidElement=H,Fe.lazy=function($){return{$$typeof:h,_payload:{_status:-1,_result:$},_init:q}},Fe.memo=function($,W){return{$$typeof:p,type:$,compare:W===void 0?null:W}},Fe.startTransition=function($){var W=L.T,te={};L.T=te;try{var oe=$(),le=L.S;le!==null&&le(te,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(M,X)}catch(he){X(he)}finally{W!==null&&te.types!==null&&(W.types=te.types),L.T=W}},Fe.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},Fe.use=function($){return L.H.use($)},Fe.useActionState=function($,W,te){return L.H.useActionState($,W,te)},Fe.useCallback=function($,W){return L.H.useCallback($,W)},Fe.useContext=function($){return L.H.useContext($)},Fe.useDebugValue=function(){},Fe.useDeferredValue=function($,W){return L.H.useDeferredValue($,W)},Fe.useEffect=function($,W){return L.H.useEffect($,W)},Fe.useEffectEvent=function($){return L.H.useEffectEvent($)},Fe.useId=function(){return L.H.useId()},Fe.useImperativeHandle=function($,W,te){return L.H.useImperativeHandle($,W,te)},Fe.useInsertionEffect=function($,W){return L.H.useInsertionEffect($,W)},Fe.useLayoutEffect=function($,W){return L.H.useLayoutEffect($,W)},Fe.useMemo=function($,W){return L.H.useMemo($,W)},Fe.useOptimistic=function($,W){return L.H.useOptimistic($,W)},Fe.useReducer=function($,W,te){return L.H.useReducer($,W,te)},Fe.useRef=function($){return L.H.useRef($)},Fe.useState=function($){return L.H.useState($)},Fe.useSyncExternalStore=function($,W,te){return L.H.useSyncExternalStore($,W,te)},Fe.useTransition=function(){return L.H.useTransition()},Fe.version="19.2.0",Fe}var qw;function bh(){return qw||(qw=1,My.exports=bB()),My.exports}var E=bh();const _n=Ri(E),Y0=mB({__proto__:null,default:_n},[E]);var Dy={exports:{}},qc={},Py={exports:{}},ky={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var Gw;function SB(){return Gw||(Gw=1,(function(e){function t(k,I){var q=k.length;k.push(I);e:for(;0<q;){var X=q-1>>>1,ie=k[X];if(0<a(ie,I))k[X]=I,k[q]=ie,q=X;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var I=k[0],q=k.pop();if(q!==I){k[0]=q;e:for(var X=0,ie=k.length,$=ie>>>1;X<$;){var W=2*(X+1)-1,te=k[W],oe=W+1,le=k[oe];if(0>a(te,q))oe<ie&&0>a(le,te)?(k[X]=le,k[oe]=q,X=oe):(k[X]=te,k[W]=q,X=W);else if(oe<ie&&0>a(le,q))k[X]=le,k[oe]=q,X=oe;else break e}}return I}function a(k,I){var q=k.sortIndex-I.sortIndex;return q!==0?q:k.id-I.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var d=[],p=[],h=1,g=null,v=3,x=!1,b=!1,S=!1,T=!1,w=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function _(k){for(var I=n(p);I!==null;){if(I.callback===null)r(p);else if(I.startTime<=k)r(p),I.sortIndex=I.expirationTime,t(d,I);else break;I=n(p)}}function O(k){if(S=!1,_(k),!b)if(n(d)!==null)b=!0,M||(M=!0,P());else{var I=n(p);I!==null&&j(O,I.startTime-k)}}var M=!1,L=-1,B=5,z=-1;function V(){return T?!0:!(e.unstable_now()-z<B)}function H(){if(T=!1,M){var k=e.unstable_now();z=k;var I=!0;try{e:{b=!1,S&&(S=!1,R(L),L=-1),x=!0;var q=v;try{t:{for(_(k),g=n(d);g!==null&&!(g.expirationTime>k&&V());){var X=g.callback;if(typeof X=="function"){g.callback=null,v=g.priorityLevel;var ie=X(g.expirationTime<=k);if(k=e.unstable_now(),typeof ie=="function"){g.callback=ie,_(k),I=!0;break t}g===n(d)&&r(d),_(k)}else r(d);g=n(d)}if(g!==null)I=!0;else{var $=n(p);$!==null&&j(O,$.startTime-k),I=!1}}break e}finally{g=null,v=q,x=!1}I=void 0}}finally{I?P():M=!1}}}var P;if(typeof A=="function")P=function(){A(H)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,U=K.port2;K.port1.onmessage=H,P=function(){U.postMessage(null)}}else P=function(){w(H,0)};function j(k,I){L=w(function(){k(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(k){k.callback=null},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(k){switch(v){case 1:case 2:case 3:var I=3;break;default:I=v}var q=v;v=I;try{return k()}finally{v=q}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(k,I){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var q=v;v=k;try{return I()}finally{v=q}},e.unstable_scheduleCallback=function(k,I,q){var X=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?X+q:X):q=X,k){case 1:var ie=-1;break;case 2:ie=250;break;case 5:ie=1073741823;break;case 4:ie=1e4;break;default:ie=5e3}return ie=q+ie,k={id:h++,callback:I,priorityLevel:k,startTime:q,expirationTime:ie,sortIndex:-1},q>X?(k.sortIndex=q,t(p,k),n(d)===null&&k===n(p)&&(S?(R(L),L=-1):S=!0,j(O,q-X))):(k.sortIndex=ie,t(d,k),b||x||(b=!0,M||(M=!0,P()))),k},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(k){var I=v;return function(){var q=v;v=I;try{return k.apply(this,arguments)}finally{v=q}}}})(ky)),ky}var Yw;function xB(){return Yw||(Yw=1,Py.exports=SB()),Py.exports}var Ny={exports:{}},Dn={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Ww;function TB(){if(Ww)return Dn;Ww=1;var e=bh();function t(d){var p="https://react.dev/errors/"+d;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)p+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+d+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function s(d,p,h){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:g==null?null:""+g,children:d,containerInfo:p,implementation:h}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,p){if(d==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Dn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Dn.createPortal=function(d,p){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return s(d,p,null,h)},Dn.flushSync=function(d){var p=c.T,h=r.p;try{if(c.T=null,r.p=2,d)return d()}finally{c.T=p,r.p=h,r.d.f()}},Dn.preconnect=function(d,p){typeof d=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(d,p))},Dn.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},Dn.preinit=function(d,p){if(typeof d=="string"&&p&&typeof p.as=="string"){var h=p.as,g=f(h,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,x=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;h==="style"?r.d.S(d,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:x}):h==="script"&&r.d.X(d,{crossOrigin:g,integrity:v,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Dn.preinitModule=function(d,p){if(typeof d=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var h=f(p.as,p.crossOrigin);r.d.M(d,{crossOrigin:h,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(d)},Dn.preload=function(d,p){if(typeof d=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var h=p.as,g=f(h,p.crossOrigin);r.d.L(d,h,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Dn.preloadModule=function(d,p){if(typeof d=="string")if(p){var h=f(p.as,p.crossOrigin);r.d.m(d,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:h,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(d)},Dn.requestFormReset=function(d){r.d.r(d)},Dn.unstable_batchedUpdates=function(d,p){return d(p)},Dn.useFormState=function(d,p,h){return c.H.useFormState(d,p,h)},Dn.useFormStatus=function(){return c.H.useHostTransitionStatus()},Dn.version="19.2.0",Dn}var Kw;function U_(){if(Kw)return Ny.exports;Kw=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(t){console.error(t)}}return e(),Ny.exports=TB(),Ny.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var Xw;function EB(){if(Xw)return qc;Xw=1;var e=xB(),t=bh(),n=U_();function r(i){var o="https://react.dev/errors/"+i;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)o+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+i+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function s(i){var o=i,l=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,(o.flags&4098)!==0&&(l=o.return),i=o.return;while(i)}return o.tag===3?l:null}function c(i){if(i.tag===13){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function f(i){if(i.tag===31){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function d(i){if(s(i)!==i)throw Error(r(188))}function p(i){var o=i.alternate;if(!o){if(o=s(i),o===null)throw Error(r(188));return o!==i?null:i}for(var l=i,u=o;;){var m=l.return;if(m===null)break;var y=m.alternate;if(y===null){if(u=m.return,u!==null){l=u;continue}break}if(m.child===y.child){for(y=m.child;y;){if(y===l)return d(m),i;if(y===u)return d(m),o;y=y.sibling}throw Error(r(188))}if(l.return!==u.return)l=m,u=y;else{for(var C=!1,N=m.child;N;){if(N===l){C=!0,l=m,u=y;break}if(N===u){C=!0,u=m,l=y;break}N=N.sibling}if(!C){for(N=y.child;N;){if(N===l){C=!0,l=y,u=m;break}if(N===u){C=!0,u=y,l=m;break}N=N.sibling}if(!C)throw Error(r(189))}}if(l.alternate!==u)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?i:o}function h(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i;for(i=i.child;i!==null;){if(o=h(i),o!==null)return o;i=i.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),A=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),V=Symbol.for("react.memo_cache_sentinel"),H=Symbol.iterator;function P(i){return i===null||typeof i!="object"?null:(i=H&&i[H]||i["@@iterator"],typeof i=="function"?i:null)}var K=Symbol.for("react.client.reference");function U(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===K?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case S:return"Fragment";case w:return"Profiler";case T:return"StrictMode";case O:return"Suspense";case M:return"SuspenseList";case z:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case b:return"Portal";case A:return i.displayName||"Context";case R:return(i._context.displayName||"Context")+".Consumer";case _:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case L:return o=i.displayName||null,o!==null?o:U(i.type)||"Memo";case B:o=i._payload,i=i._init;try{return U(i(o))}catch{}}return null}var j=Array.isArray,k=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q={pending:!1,data:null,method:null,action:null},X=[],ie=-1;function $(i){return{current:i}}function W(i){0>ie||(i.current=X[ie],X[ie]=null,ie--)}function te(i,o){ie++,X[ie]=i.current,i.current=o}var oe=$(null),le=$(null),he=$(null),ge=$(null);function Me(i,o){switch(te(he,o),te(le,i),te(oe,null),o.nodeType){case 9:case 11:i=(i=o.documentElement)&&(i=i.namespaceURI)?fw(i):0;break;default:if(i=o.tagName,o=o.namespaceURI)o=fw(o),i=dw(o,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}W(oe),te(oe,i)}function ve(){W(oe),W(le),W(he)}function ye(i){i.memoizedState!==null&&te(ge,i);var o=oe.current,l=dw(o,i.type);o!==l&&(te(le,i),te(oe,l))}function Ae(i){le.current===i&&(W(oe),W(le)),ge.current===i&&(W(ge),zc._currentValue=q)}var _e,je;function xe(i){if(_e===void 0)try{throw Error()}catch(l){var o=l.stack.trim().match(/\n( *(at )?)/);_e=o&&o[1]||"",je=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+_e+i+je}var qe=!1;function Ot(i,o){if(!i||qe)return"";qe=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(o){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(re){var ee=re}Reflect.construct(i,[],ue)}else{try{ue.call()}catch(re){ee=re}i.call(ue.prototype)}}else{try{throw Error()}catch(re){ee=re}(ue=i())&&typeof ue.catch=="function"&&ue.catch(function(){})}}catch(re){if(re&&ee&&typeof re.stack=="string")return[re.stack,ee.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=u.DetermineComponentFrameRoot(),C=y[0],N=y[1];if(C&&N){var F=C.split(`
44
+ `),J=N.split(`
45
+ `);for(m=u=0;u<F.length&&!F[u].includes("DetermineComponentFrameRoot");)u++;for(;m<J.length&&!J[m].includes("DetermineComponentFrameRoot");)m++;if(u===F.length||m===J.length)for(u=F.length-1,m=J.length-1;1<=u&&0<=m&&F[u]!==J[m];)m--;for(;1<=u&&0<=m;u--,m--)if(F[u]!==J[m]){if(u!==1||m!==1)do if(u--,m--,0>m||F[u]!==J[m]){var ae=`
46
+ `+F[u].replace(" at new "," at ");return i.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",i.displayName)),ae}while(1<=u&&0<=m);break}}}finally{qe=!1,Error.prepareStackTrace=l}return(l=i?i.displayName||i.name:"")?xe(l):""}function mt(i,o){switch(i.tag){case 26:case 27:case 5:return xe(i.type);case 16:return xe("Lazy");case 13:return i.child!==o&&o!==null?xe("Suspense Fallback"):xe("Suspense");case 19:return xe("SuspenseList");case 0:case 15:return Ot(i.type,!1);case 11:return Ot(i.type.render,!1);case 1:return Ot(i.type,!0);case 31:return xe("Activity");default:return""}}function lt(i){try{var o="",l=null;do o+=mt(i,l),l=i,i=i.return;while(i);return o}catch(u){return`
47
+ Error generating stack: `+u.message+`
48
+ `+u.stack}}var nt=Object.prototype.hasOwnProperty,Qe=e.unstable_scheduleCallback,Je=e.unstable_cancelCallback,G=e.unstable_shouldYield,me=e.unstable_requestPaint,de=e.unstable_now,be=e.unstable_getCurrentPriorityLevel,Te=e.unstable_ImmediatePriority,Se=e.unstable_UserBlockingPriority,ze=e.unstable_NormalPriority,ot=e.unstable_LowPriority,$t=e.unstable_IdlePriority,Ue=e.log,Mn=e.unstable_setDisableYieldValue,Zt=null,Bt=null;function Oe(i){if(typeof Ue=="function"&&Mn(i),Bt&&typeof Bt.setStrictMode=="function")try{Bt.setStrictMode(Zt,i)}catch{}}var He=Math.clz32?Math.clz32:Es,Qt=Math.log,ir=Math.LN2;function Es(i){return i>>>=0,i===0?32:31-(Qt(i)/ir|0)|0}var ws=256,Cs=262144,As=4194304;function ki(i){var o=i&42;if(o!==0)return o;switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function Os(i,o,l){var u=i.pendingLanes;if(u===0)return 0;var m=0,y=i.suspendedLanes,C=i.pingedLanes;i=i.warmLanes;var N=u&134217727;return N!==0?(u=N&~y,u!==0?m=ki(u):(C&=N,C!==0?m=ki(C):l||(l=N&~i,l!==0&&(m=ki(l))))):(N=u&~y,N!==0?m=ki(N):C!==0?m=ki(C):l||(l=u&~i,l!==0&&(m=ki(l)))),m===0?0:o!==0&&o!==m&&(o&y)===0&&(y=m&-m,l=o&-o,y>=l||y===32&&(l&4194048)!==0)?o:m}function ha(i,o){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&o)===0}function ym(i,o){switch(i){case 1:case 2:case 4:case 8:case 64:return o+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 o+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 Ge(){var i=As;return As<<=1,(As&62914560)===0&&(As=4194304),i}function xr(i){for(var o=[],l=0;31>l;l++)o.push(i);return o}function ec(i,o){i.pendingLanes|=o,o!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function nL(i,o,l,u,m,y){var C=i.pendingLanes;i.pendingLanes=l,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=l,i.entangledLanes&=l,i.errorRecoveryDisabledLanes&=l,i.shellSuspendCounter=0;var N=i.entanglements,F=i.expirationTimes,J=i.hiddenUpdates;for(l=C&~l;0<l;){var ae=31-He(l),ue=1<<ae;N[ae]=0,F[ae]=-1;var ee=J[ae];if(ee!==null)for(J[ae]=null,ae=0;ae<ee.length;ae++){var re=ee[ae];re!==null&&(re.lane&=-536870913)}l&=~ue}u!==0&&Yx(i,u,0),y!==0&&m===0&&i.tag!==0&&(i.suspendedLanes|=y&~(C&~o))}function Yx(i,o,l){i.pendingLanes|=o,i.suspendedLanes&=~o;var u=31-He(o);i.entangledLanes|=o,i.entanglements[u]=i.entanglements[u]|1073741824|l&261930}function Wx(i,o){var l=i.entangledLanes|=o;for(i=i.entanglements;l;){var u=31-He(l),m=1<<u;m&o|i[u]&o&&(i[u]|=o),l&=~m}}function Kx(i,o){var l=o&-o;return l=(l&42)!==0?1:vm(l),(l&(i.suspendedLanes|o))!==0?0:l}function vm(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function bm(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function Xx(){var i=I.p;return i!==0?i:(i=window.event,i===void 0?32:Lw(i.type))}function Zx(i,o){var l=I.p;try{return I.p=i,o()}finally{I.p=l}}var To=Math.random().toString(36).slice(2),xn="__reactFiber$"+To,Vn="__reactProps$"+To,Rs="__reactContainer$"+To,Sm="__reactEvents$"+To,rL="__reactListeners$"+To,iL="__reactHandles$"+To,Qx="__reactResources$"+To,tc="__reactMarker$"+To;function xm(i){delete i[xn],delete i[Vn],delete i[Sm],delete i[rL],delete i[iL]}function _s(i){var o=i[xn];if(o)return o;for(var l=i.parentNode;l;){if(o=l[Rs]||l[xn]){if(l=o.alternate,o.child!==null||l!==null&&l.child!==null)for(i=bw(i);i!==null;){if(l=i[xn])return l;i=bw(i)}return o}i=l,l=i.parentNode}return null}function Ms(i){if(i=i[xn]||i[Rs]){var o=i.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return i}return null}function nc(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i.stateNode;throw Error(r(33))}function Ds(i){var o=i[Qx];return o||(o=i[Qx]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function gn(i){i[tc]=!0}var Jx=new Set,e1={};function ma(i,o){Ps(i,o),Ps(i+"Capture",o)}function Ps(i,o){for(e1[i]=o,i=0;i<o.length;i++)Jx.add(o[i])}var oL=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]*$"),t1={},n1={};function aL(i){return nt.call(n1,i)?!0:nt.call(t1,i)?!1:oL.test(i)?n1[i]=!0:(t1[i]=!0,!1)}function Tf(i,o,l){if(aL(o))if(l===null)i.removeAttribute(o);else{switch(typeof l){case"undefined":case"function":case"symbol":i.removeAttribute(o);return;case"boolean":var u=o.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){i.removeAttribute(o);return}}i.setAttribute(o,""+l)}}function Ef(i,o,l){if(l===null)i.removeAttribute(o);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(o);return}i.setAttribute(o,""+l)}}function Ni(i,o,l,u){if(u===null)i.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(l);return}i.setAttributeNS(o,l,""+u)}}function Tr(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function r1(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function sL(i,o,l){var u=Object.getOwnPropertyDescriptor(i.constructor.prototype,o);if(!i.hasOwnProperty(o)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var m=u.get,y=u.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return m.call(this)},set:function(C){l=""+C,y.call(this,C)}}),Object.defineProperty(i,o,{enumerable:u.enumerable}),{getValue:function(){return l},setValue:function(C){l=""+C},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function Tm(i){if(!i._valueTracker){var o=r1(i)?"checked":"value";i._valueTracker=sL(i,o,""+i[o])}}function i1(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var l=o.getValue(),u="";return i&&(u=r1(i)?i.checked?"true":"false":i.value),i=u,i!==l?(o.setValue(i),!0):!1}function wf(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var lL=/[\n"\\]/g;function Er(i){return i.replace(lL,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Em(i,o,l,u,m,y,C,N){i.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?i.type=C:i.removeAttribute("type"),o!=null?C==="number"?(o===0&&i.value===""||i.value!=o)&&(i.value=""+Tr(o)):i.value!==""+Tr(o)&&(i.value=""+Tr(o)):C!=="submit"&&C!=="reset"||i.removeAttribute("value"),o!=null?wm(i,C,Tr(o)):l!=null?wm(i,C,Tr(l)):u!=null&&i.removeAttribute("value"),m==null&&y!=null&&(i.defaultChecked=!!y),m!=null&&(i.checked=m&&typeof m!="function"&&typeof m!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?i.name=""+Tr(N):i.removeAttribute("name")}function o1(i,o,l,u,m,y,C,N){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(i.type=y),o!=null||l!=null){if(!(y!=="submit"&&y!=="reset"||o!=null)){Tm(i);return}l=l!=null?""+Tr(l):"",o=o!=null?""+Tr(o):l,N||o===i.value||(i.value=o),i.defaultValue=o}u=u??m,u=typeof u!="function"&&typeof u!="symbol"&&!!u,i.checked=N?i.checked:!!u,i.defaultChecked=!!u,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(i.name=C),Tm(i)}function wm(i,o,l){o==="number"&&wf(i.ownerDocument)===i||i.defaultValue===""+l||(i.defaultValue=""+l)}function ks(i,o,l,u){if(i=i.options,o){o={};for(var m=0;m<l.length;m++)o["$"+l[m]]=!0;for(l=0;l<i.length;l++)m=o.hasOwnProperty("$"+i[l].value),i[l].selected!==m&&(i[l].selected=m),m&&u&&(i[l].defaultSelected=!0)}else{for(l=""+Tr(l),o=null,m=0;m<i.length;m++){if(i[m].value===l){i[m].selected=!0,u&&(i[m].defaultSelected=!0);return}o!==null||i[m].disabled||(o=i[m])}o!==null&&(o.selected=!0)}}function a1(i,o,l){if(o!=null&&(o=""+Tr(o),o!==i.value&&(i.value=o),l==null)){i.defaultValue!==o&&(i.defaultValue=o);return}i.defaultValue=l!=null?""+Tr(l):""}function s1(i,o,l,u){if(o==null){if(u!=null){if(l!=null)throw Error(r(92));if(j(u)){if(1<u.length)throw Error(r(93));u=u[0]}l=u}l==null&&(l=""),o=l}l=Tr(o),i.defaultValue=l,u=i.textContent,u===l&&u!==""&&u!==null&&(i.value=u),Tm(i)}function Ns(i,o){if(o){var l=i.firstChild;if(l&&l===i.lastChild&&l.nodeType===3){l.nodeValue=o;return}}i.textContent=o}var cL=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 l1(i,o,l){var u=o.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?u?i.setProperty(o,""):o==="float"?i.cssFloat="":i[o]="":u?i.setProperty(o,l):typeof l!="number"||l===0||cL.has(o)?o==="float"?i.cssFloat=l:i[o]=(""+l).trim():i[o]=l+"px"}function c1(i,o,l){if(o!=null&&typeof o!="object")throw Error(r(62));if(i=i.style,l!=null){for(var u in l)!l.hasOwnProperty(u)||o!=null&&o.hasOwnProperty(u)||(u.indexOf("--")===0?i.setProperty(u,""):u==="float"?i.cssFloat="":i[u]="");for(var m in o)u=o[m],o.hasOwnProperty(m)&&l[m]!==u&&l1(i,m,u)}else for(var y in o)o.hasOwnProperty(y)&&l1(i,y,o[y])}function Cm(i){if(i.indexOf("-")===-1)return!1;switch(i){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 uL=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"]]),fL=/^[\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 Cf(i){return fL.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function Li(){}var Am=null;function Om(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Ls=null,$s=null;function u1(i){var o=Ms(i);if(o&&(i=o.stateNode)){var l=i[Vn]||null;e:switch(i=o.stateNode,o.type){case"input":if(Em(i,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),o=l.name,l.type==="radio"&&o!=null){for(l=i;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Er(""+o)+'"][type="radio"]'),o=0;o<l.length;o++){var u=l[o];if(u!==i&&u.form===i.form){var m=u[Vn]||null;if(!m)throw Error(r(90));Em(u,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(o=0;o<l.length;o++)u=l[o],u.form===i.form&&i1(u)}break e;case"textarea":a1(i,l.value,l.defaultValue);break e;case"select":o=l.value,o!=null&&ks(i,!!l.multiple,o,!1)}}}var Rm=!1;function f1(i,o,l){if(Rm)return i(o,l);Rm=!0;try{var u=i(o);return u}finally{if(Rm=!1,(Ls!==null||$s!==null)&&(dd(),Ls&&(o=Ls,i=$s,$s=Ls=null,u1(o),i)))for(o=0;o<i.length;o++)u1(i[o])}}function rc(i,o){var l=i.stateNode;if(l===null)return null;var u=l[Vn]||null;if(u===null)return null;l=u[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(i=i.type,u=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!u;break e;default:i=!1}if(i)return null;if(l&&typeof l!="function")throw Error(r(231,o,typeof l));return l}var $i=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_m=!1;if($i)try{var ic={};Object.defineProperty(ic,"passive",{get:function(){_m=!0}}),window.addEventListener("test",ic,ic),window.removeEventListener("test",ic,ic)}catch{_m=!1}var Eo=null,Mm=null,Af=null;function d1(){if(Af)return Af;var i,o=Mm,l=o.length,u,m="value"in Eo?Eo.value:Eo.textContent,y=m.length;for(i=0;i<l&&o[i]===m[i];i++);var C=l-i;for(u=1;u<=C&&o[l-u]===m[y-u];u++);return Af=m.slice(i,1<u?1-u:void 0)}function Of(i){var o=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&o===13&&(i=13)):i=o,i===10&&(i=13),32<=i||i===13?i:0}function Rf(){return!0}function p1(){return!1}function Hn(i){function o(l,u,m,y,C){this._reactName=l,this._targetInst=m,this.type=u,this.nativeEvent=y,this.target=C,this.currentTarget=null;for(var N in i)i.hasOwnProperty(N)&&(l=i[N],this[N]=l?l(y):y[N]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Rf:p1,this.isPropagationStopped=p1,this}return g(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Rf)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Rf)},persist:function(){},isPersistent:Rf}),o}var ga={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_f=Hn(ga),oc=g({},ga,{view:0,detail:0}),dL=Hn(oc),Dm,Pm,ac,Mf=g({},oc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nm,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==ac&&(ac&&i.type==="mousemove"?(Dm=i.screenX-ac.screenX,Pm=i.screenY-ac.screenY):Pm=Dm=0,ac=i),Dm)},movementY:function(i){return"movementY"in i?i.movementY:Pm}}),h1=Hn(Mf),pL=g({},Mf,{dataTransfer:0}),hL=Hn(pL),mL=g({},oc,{relatedTarget:0}),km=Hn(mL),gL=g({},ga,{animationName:0,elapsedTime:0,pseudoElement:0}),yL=Hn(gL),vL=g({},ga,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),bL=Hn(vL),SL=g({},ga,{data:0}),m1=Hn(SL),xL={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},TL={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"},EL={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wL(i){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(i):(i=EL[i])?!!o[i]:!1}function Nm(){return wL}var CL=g({},oc,{key:function(i){if(i.key){var o=xL[i.key]||i.key;if(o!=="Unidentified")return o}return i.type==="keypress"?(i=Of(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?TL[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nm,charCode:function(i){return i.type==="keypress"?Of(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Of(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),AL=Hn(CL),OL=g({},Mf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),g1=Hn(OL),RL=g({},oc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nm}),_L=Hn(RL),ML=g({},ga,{propertyName:0,elapsedTime:0,pseudoElement:0}),DL=Hn(ML),PL=g({},Mf,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),kL=Hn(PL),NL=g({},ga,{newState:0,oldState:0}),LL=Hn(NL),$L=[9,13,27,32],Lm=$i&&"CompositionEvent"in window,sc=null;$i&&"documentMode"in document&&(sc=document.documentMode);var BL=$i&&"TextEvent"in window&&!sc,y1=$i&&(!Lm||sc&&8<sc&&11>=sc),v1=" ",b1=!1;function S1(i,o){switch(i){case"keyup":return $L.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function x1(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Bs=!1;function IL(i,o){switch(i){case"compositionend":return x1(o);case"keypress":return o.which!==32?null:(b1=!0,v1);case"textInput":return i=o.data,i===v1&&b1?null:i;default:return null}}function jL(i,o){if(Bs)return i==="compositionend"||!Lm&&S1(i,o)?(i=d1(),Af=Mm=Eo=null,Bs=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return y1&&o.locale!=="ko"?null:o.data;default:return null}}var zL={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 T1(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!zL[i.type]:o==="textarea"}function E1(i,o,l,u){Ls?$s?$s.push(u):$s=[u]:Ls=u,o=bd(o,"onChange"),0<o.length&&(l=new _f("onChange","change",null,l,u),i.push({event:l,listeners:o}))}var lc=null,cc=null;function UL(i){ow(i,0)}function Df(i){var o=nc(i);if(i1(o))return i}function w1(i,o){if(i==="change")return o}var C1=!1;if($i){var $m;if($i){var Bm="oninput"in document;if(!Bm){var A1=document.createElement("div");A1.setAttribute("oninput","return;"),Bm=typeof A1.oninput=="function"}$m=Bm}else $m=!1;C1=$m&&(!document.documentMode||9<document.documentMode)}function O1(){lc&&(lc.detachEvent("onpropertychange",R1),cc=lc=null)}function R1(i){if(i.propertyName==="value"&&Df(cc)){var o=[];E1(o,cc,i,Om(i)),f1(UL,o)}}function FL(i,o,l){i==="focusin"?(O1(),lc=o,cc=l,lc.attachEvent("onpropertychange",R1)):i==="focusout"&&O1()}function VL(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Df(cc)}function HL(i,o){if(i==="click")return Df(o)}function qL(i,o){if(i==="input"||i==="change")return Df(o)}function GL(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var or=typeof Object.is=="function"?Object.is:GL;function uc(i,o){if(or(i,o))return!0;if(typeof i!="object"||i===null||typeof o!="object"||o===null)return!1;var l=Object.keys(i),u=Object.keys(o);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var m=l[u];if(!nt.call(o,m)||!or(i[m],o[m]))return!1}return!0}function _1(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function M1(i,o){var l=_1(i);i=0;for(var u;l;){if(l.nodeType===3){if(u=i+l.textContent.length,i<=o&&u>=o)return{node:l,offset:o-i};i=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=_1(l)}}function D1(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?D1(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function P1(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var o=wf(i.document);o instanceof i.HTMLIFrameElement;){try{var l=typeof o.contentWindow.location.href=="string"}catch{l=!1}if(l)i=o.contentWindow;else break;o=wf(i.document)}return o}function Im(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}var YL=$i&&"documentMode"in document&&11>=document.documentMode,Is=null,jm=null,fc=null,zm=!1;function k1(i,o,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;zm||Is==null||Is!==wf(u)||(u=Is,"selectionStart"in u&&Im(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),fc&&uc(fc,u)||(fc=u,u=bd(jm,"onSelect"),0<u.length&&(o=new _f("onSelect","select",null,o,l),i.push({event:o,listeners:u}),o.target=Is)))}function ya(i,o){var l={};return l[i.toLowerCase()]=o.toLowerCase(),l["Webkit"+i]="webkit"+o,l["Moz"+i]="moz"+o,l}var js={animationend:ya("Animation","AnimationEnd"),animationiteration:ya("Animation","AnimationIteration"),animationstart:ya("Animation","AnimationStart"),transitionrun:ya("Transition","TransitionRun"),transitionstart:ya("Transition","TransitionStart"),transitioncancel:ya("Transition","TransitionCancel"),transitionend:ya("Transition","TransitionEnd")},Um={},N1={};$i&&(N1=document.createElement("div").style,"AnimationEvent"in window||(delete js.animationend.animation,delete js.animationiteration.animation,delete js.animationstart.animation),"TransitionEvent"in window||delete js.transitionend.transition);function va(i){if(Um[i])return Um[i];if(!js[i])return i;var o=js[i],l;for(l in o)if(o.hasOwnProperty(l)&&l in N1)return Um[i]=o[l];return i}var L1=va("animationend"),$1=va("animationiteration"),B1=va("animationstart"),WL=va("transitionrun"),KL=va("transitionstart"),XL=va("transitioncancel"),I1=va("transitionend"),j1=new Map,Fm="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(" ");Fm.push("scrollEnd");function Yr(i,o){j1.set(i,o),ma(o,[i])}var Pf=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},wr=[],zs=0,Vm=0;function kf(){for(var i=zs,o=Vm=zs=0;o<i;){var l=wr[o];wr[o++]=null;var u=wr[o];wr[o++]=null;var m=wr[o];wr[o++]=null;var y=wr[o];if(wr[o++]=null,u!==null&&m!==null){var C=u.pending;C===null?m.next=m:(m.next=C.next,C.next=m),u.pending=m}y!==0&&z1(l,m,y)}}function Nf(i,o,l,u){wr[zs++]=i,wr[zs++]=o,wr[zs++]=l,wr[zs++]=u,Vm|=u,i.lanes|=u,i=i.alternate,i!==null&&(i.lanes|=u)}function Hm(i,o,l,u){return Nf(i,o,l,u),Lf(i)}function ba(i,o){return Nf(i,null,null,o),Lf(i)}function z1(i,o,l){i.lanes|=l;var u=i.alternate;u!==null&&(u.lanes|=l);for(var m=!1,y=i.return;y!==null;)y.childLanes|=l,u=y.alternate,u!==null&&(u.childLanes|=l),y.tag===22&&(i=y.stateNode,i===null||i._visibility&1||(m=!0)),i=y,y=y.return;return i.tag===3?(y=i.stateNode,m&&o!==null&&(m=31-He(l),i=y.hiddenUpdates,u=i[m],u===null?i[m]=[o]:u.push(o),o.lane=l|536870912),y):null}function Lf(i){if(50<kc)throw kc=0,Jg=null,Error(r(185));for(var o=i.return;o!==null;)i=o,o=i.return;return i.tag===3?i.stateNode:null}var Us={};function ZL(i,o,l,u){this.tag=i,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ar(i,o,l,u){return new ZL(i,o,l,u)}function qm(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Bi(i,o){var l=i.alternate;return l===null?(l=ar(i.tag,o,i.key,i.mode),l.elementType=i.elementType,l.type=i.type,l.stateNode=i.stateNode,l.alternate=i,i.alternate=l):(l.pendingProps=o,l.type=i.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=i.flags&65011712,l.childLanes=i.childLanes,l.lanes=i.lanes,l.child=i.child,l.memoizedProps=i.memoizedProps,l.memoizedState=i.memoizedState,l.updateQueue=i.updateQueue,o=i.dependencies,l.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},l.sibling=i.sibling,l.index=i.index,l.ref=i.ref,l.refCleanup=i.refCleanup,l}function U1(i,o){i.flags&=65011714;var l=i.alternate;return l===null?(i.childLanes=0,i.lanes=o,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,o=l.dependencies,i.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),i}function $f(i,o,l,u,m,y){var C=0;if(u=i,typeof i=="function")qm(i)&&(C=1);else if(typeof i=="string")C=nB(i,l,oe.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case z:return i=ar(31,l,o,m),i.elementType=z,i.lanes=y,i;case S:return Sa(l.children,m,y,o);case T:C=8,m|=24;break;case w:return i=ar(12,l,o,m|2),i.elementType=w,i.lanes=y,i;case O:return i=ar(13,l,o,m),i.elementType=O,i.lanes=y,i;case M:return i=ar(19,l,o,m),i.elementType=M,i.lanes=y,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case A:C=10;break e;case R:C=9;break e;case _:C=11;break e;case L:C=14;break e;case B:C=16,u=null;break e}C=29,l=Error(r(130,i===null?"null":typeof i,"")),u=null}return o=ar(C,l,o,m),o.elementType=i,o.type=u,o.lanes=y,o}function Sa(i,o,l,u){return i=ar(7,i,u,o),i.lanes=l,i}function Gm(i,o,l){return i=ar(6,i,null,o),i.lanes=l,i}function F1(i){var o=ar(18,null,null,0);return o.stateNode=i,o}function Ym(i,o,l){return o=ar(4,i.children!==null?i.children:[],i.key,o),o.lanes=l,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}var V1=new WeakMap;function Cr(i,o){if(typeof i=="object"&&i!==null){var l=V1.get(i);return l!==void 0?l:(o={value:i,source:o,stack:lt(o)},V1.set(i,o),o)}return{value:i,source:o,stack:lt(o)}}var Fs=[],Vs=0,Bf=null,dc=0,Ar=[],Or=0,wo=null,si=1,li="";function Ii(i,o){Fs[Vs++]=dc,Fs[Vs++]=Bf,Bf=i,dc=o}function H1(i,o,l){Ar[Or++]=si,Ar[Or++]=li,Ar[Or++]=wo,wo=i;var u=si;i=li;var m=32-He(u)-1;u&=~(1<<m),l+=1;var y=32-He(o)+m;if(30<y){var C=m-m%5;y=(u&(1<<C)-1).toString(32),u>>=C,m-=C,si=1<<32-He(o)+m|l<<m|u,li=y+i}else si=1<<y|l<<m|u,li=i}function Wm(i){i.return!==null&&(Ii(i,1),H1(i,1,0))}function Km(i){for(;i===Bf;)Bf=Fs[--Vs],Fs[Vs]=null,dc=Fs[--Vs],Fs[Vs]=null;for(;i===wo;)wo=Ar[--Or],Ar[Or]=null,li=Ar[--Or],Ar[Or]=null,si=Ar[--Or],Ar[Or]=null}function q1(i,o){Ar[Or++]=si,Ar[Or++]=li,Ar[Or++]=wo,si=o.id,li=o.overflow,wo=i}var Tn=null,Pt=null,at=!1,Co=null,Rr=!1,Xm=Error(r(519));function Ao(i){var o=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw pc(Cr(o,i)),Xm}function G1(i){var o=i.stateNode,l=i.type,u=i.memoizedProps;switch(o[xn]=i,o[Vn]=u,l){case"dialog":tt("cancel",o),tt("close",o);break;case"iframe":case"object":case"embed":tt("load",o);break;case"video":case"audio":for(l=0;l<Lc.length;l++)tt(Lc[l],o);break;case"source":tt("error",o);break;case"img":case"image":case"link":tt("error",o),tt("load",o);break;case"details":tt("toggle",o);break;case"input":tt("invalid",o),o1(o,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":tt("invalid",o);break;case"textarea":tt("invalid",o),s1(o,u.value,u.defaultValue,u.children)}l=u.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||o.textContent===""+l||u.suppressHydrationWarning===!0||cw(o.textContent,l)?(u.popover!=null&&(tt("beforetoggle",o),tt("toggle",o)),u.onScroll!=null&&tt("scroll",o),u.onScrollEnd!=null&&tt("scrollend",o),u.onClick!=null&&(o.onclick=Li),o=!0):o=!1,o||Ao(i,!0)}function Y1(i){for(Tn=i.return;Tn;)switch(Tn.tag){case 5:case 31:case 13:Rr=!1;return;case 27:case 3:Rr=!0;return;default:Tn=Tn.return}}function Hs(i){if(i!==Tn)return!1;if(!at)return Y1(i),at=!0,!1;var o=i.tag,l;if((l=o!==3&&o!==27)&&((l=o===5)&&(l=i.type,l=!(l!=="form"&&l!=="button")||hy(i.type,i.memoizedProps)),l=!l),l&&Pt&&Ao(i),Y1(i),o===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));Pt=vw(i)}else if(o===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));Pt=vw(i)}else o===27?(o=Pt,zo(i.type)?(i=by,by=null,Pt=i):Pt=o):Pt=Tn?Mr(i.stateNode.nextSibling):null;return!0}function xa(){Pt=Tn=null,at=!1}function Zm(){var i=Co;return i!==null&&(Wn===null?Wn=i:Wn.push.apply(Wn,i),Co=null),i}function pc(i){Co===null?Co=[i]:Co.push(i)}var Qm=$(null),Ta=null,ji=null;function Oo(i,o,l){te(Qm,o._currentValue),o._currentValue=l}function zi(i){i._currentValue=Qm.current,W(Qm)}function Jm(i,o,l){for(;i!==null;){var u=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,u!==null&&(u.childLanes|=o)):u!==null&&(u.childLanes&o)!==o&&(u.childLanes|=o),i===l)break;i=i.return}}function eg(i,o,l,u){var m=i.child;for(m!==null&&(m.return=i);m!==null;){var y=m.dependencies;if(y!==null){var C=m.child;y=y.firstContext;e:for(;y!==null;){var N=y;y=m;for(var F=0;F<o.length;F++)if(N.context===o[F]){y.lanes|=l,N=y.alternate,N!==null&&(N.lanes|=l),Jm(y.return,l,i),u||(C=null);break e}y=N.next}}else if(m.tag===18){if(C=m.return,C===null)throw Error(r(341));C.lanes|=l,y=C.alternate,y!==null&&(y.lanes|=l),Jm(C,l,i),C=null}else C=m.child;if(C!==null)C.return=m;else for(C=m;C!==null;){if(C===i){C=null;break}if(m=C.sibling,m!==null){m.return=C.return,C=m;break}C=C.return}m=C}}function qs(i,o,l,u){i=null;for(var m=o,y=!1;m!==null;){if(!y){if((m.flags&524288)!==0)y=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var C=m.alternate;if(C===null)throw Error(r(387));if(C=C.memoizedProps,C!==null){var N=m.type;or(m.pendingProps.value,C.value)||(i!==null?i.push(N):i=[N])}}else if(m===ge.current){if(C=m.alternate,C===null)throw Error(r(387));C.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(i!==null?i.push(zc):i=[zc])}m=m.return}i!==null&&eg(o,i,l,u),o.flags|=262144}function If(i){for(i=i.firstContext;i!==null;){if(!or(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Ea(i){Ta=i,ji=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function En(i){return W1(Ta,i)}function jf(i,o){return Ta===null&&Ea(i),W1(i,o)}function W1(i,o){var l=o._currentValue;if(o={context:o,memoizedValue:l,next:null},ji===null){if(i===null)throw Error(r(308));ji=o,i.dependencies={lanes:0,firstContext:o},i.flags|=524288}else ji=ji.next=o;return l}var QL=typeof AbortController<"u"?AbortController:function(){var i=[],o=this.signal={aborted:!1,addEventListener:function(l,u){i.push(u)}};this.abort=function(){o.aborted=!0,i.forEach(function(l){return l()})}},JL=e.unstable_scheduleCallback,e$=e.unstable_NormalPriority,sn={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function tg(){return{controller:new QL,data:new Map,refCount:0}}function hc(i){i.refCount--,i.refCount===0&&JL(e$,function(){i.controller.abort()})}var mc=null,ng=0,Gs=0,Ys=null;function t$(i,o){if(mc===null){var l=mc=[];ng=0,Gs=oy(),Ys={status:"pending",value:void 0,then:function(u){l.push(u)}}}return ng++,o.then(K1,K1),o}function K1(){if(--ng===0&&mc!==null){Ys!==null&&(Ys.status="fulfilled");var i=mc;mc=null,Gs=0,Ys=null;for(var o=0;o<i.length;o++)(0,i[o])()}}function n$(i,o){var l=[],u={status:"pending",value:null,reason:null,then:function(m){l.push(m)}};return i.then(function(){u.status="fulfilled",u.value=o;for(var m=0;m<l.length;m++)(0,l[m])(o)},function(m){for(u.status="rejected",u.reason=m,m=0;m<l.length;m++)(0,l[m])(void 0)}),u}var X1=k.S;k.S=function(i,o){kE=de(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&t$(i,o),X1!==null&&X1(i,o)};var wa=$(null);function rg(){var i=wa.current;return i!==null?i:Rt.pooledCache}function zf(i,o){o===null?te(wa,wa.current):te(wa,o.pool)}function Z1(){var i=rg();return i===null?null:{parent:sn._currentValue,pool:i}}var Ws=Error(r(460)),ig=Error(r(474)),Uf=Error(r(542)),Ff={then:function(){}};function Q1(i){return i=i.status,i==="fulfilled"||i==="rejected"}function J1(i,o,l){switch(l=i[l],l===void 0?i.push(o):l!==o&&(o.then(Li,Li),o=l),o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,tT(i),i;default:if(typeof o.status=="string")o.then(Li,Li);else{if(i=Rt,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=o,i.status="pending",i.then(function(u){if(o.status==="pending"){var m=o;m.status="fulfilled",m.value=u}},function(u){if(o.status==="pending"){var m=o;m.status="rejected",m.reason=u}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,tT(i),i}throw Aa=o,Ws}}function Ca(i){try{var o=i._init;return o(i._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Aa=l,Ws):l}}var Aa=null;function eT(){if(Aa===null)throw Error(r(459));var i=Aa;return Aa=null,i}function tT(i){if(i===Ws||i===Uf)throw Error(r(483))}var Ks=null,gc=0;function Vf(i){var o=gc;return gc+=1,Ks===null&&(Ks=[]),J1(Ks,i,o)}function yc(i,o){o=o.props.ref,i.ref=o!==void 0?o:null}function Hf(i,o){throw o.$$typeof===v?Error(r(525)):(i=Object.prototype.toString.call(o),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":i)))}function nT(i){function o(Z,Y){if(i){var Q=Z.deletions;Q===null?(Z.deletions=[Y],Z.flags|=16):Q.push(Y)}}function l(Z,Y){if(!i)return null;for(;Y!==null;)o(Z,Y),Y=Y.sibling;return null}function u(Z){for(var Y=new Map;Z!==null;)Z.key!==null?Y.set(Z.key,Z):Y.set(Z.index,Z),Z=Z.sibling;return Y}function m(Z,Y){return Z=Bi(Z,Y),Z.index=0,Z.sibling=null,Z}function y(Z,Y,Q){return Z.index=Q,i?(Q=Z.alternate,Q!==null?(Q=Q.index,Q<Y?(Z.flags|=67108866,Y):Q):(Z.flags|=67108866,Y)):(Z.flags|=1048576,Y)}function C(Z){return i&&Z.alternate===null&&(Z.flags|=67108866),Z}function N(Z,Y,Q,ce){return Y===null||Y.tag!==6?(Y=Gm(Q,Z.mode,ce),Y.return=Z,Y):(Y=m(Y,Q),Y.return=Z,Y)}function F(Z,Y,Q,ce){var De=Q.type;return De===S?ae(Z,Y,Q.props.children,ce,Q.key):Y!==null&&(Y.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===B&&Ca(De)===Y.type)?(Y=m(Y,Q.props),yc(Y,Q),Y.return=Z,Y):(Y=$f(Q.type,Q.key,Q.props,null,Z.mode,ce),yc(Y,Q),Y.return=Z,Y)}function J(Z,Y,Q,ce){return Y===null||Y.tag!==4||Y.stateNode.containerInfo!==Q.containerInfo||Y.stateNode.implementation!==Q.implementation?(Y=Ym(Q,Z.mode,ce),Y.return=Z,Y):(Y=m(Y,Q.children||[]),Y.return=Z,Y)}function ae(Z,Y,Q,ce,De){return Y===null||Y.tag!==7?(Y=Sa(Q,Z.mode,ce,De),Y.return=Z,Y):(Y=m(Y,Q),Y.return=Z,Y)}function ue(Z,Y,Q){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Y=Gm(""+Y,Z.mode,Q),Y.return=Z,Y;if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case x:return Q=$f(Y.type,Y.key,Y.props,null,Z.mode,Q),yc(Q,Y),Q.return=Z,Q;case b:return Y=Ym(Y,Z.mode,Q),Y.return=Z,Y;case B:return Y=Ca(Y),ue(Z,Y,Q)}if(j(Y)||P(Y))return Y=Sa(Y,Z.mode,Q,null),Y.return=Z,Y;if(typeof Y.then=="function")return ue(Z,Vf(Y),Q);if(Y.$$typeof===A)return ue(Z,jf(Z,Y),Q);Hf(Z,Y)}return null}function ee(Z,Y,Q,ce){var De=Y!==null?Y.key:null;if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return De!==null?null:N(Z,Y,""+Q,ce);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case x:return Q.key===De?F(Z,Y,Q,ce):null;case b:return Q.key===De?J(Z,Y,Q,ce):null;case B:return Q=Ca(Q),ee(Z,Y,Q,ce)}if(j(Q)||P(Q))return De!==null?null:ae(Z,Y,Q,ce,null);if(typeof Q.then=="function")return ee(Z,Y,Vf(Q),ce);if(Q.$$typeof===A)return ee(Z,Y,jf(Z,Q),ce);Hf(Z,Q)}return null}function re(Z,Y,Q,ce,De){if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return Z=Z.get(Q)||null,N(Y,Z,""+ce,De);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case x:return Z=Z.get(ce.key===null?Q:ce.key)||null,F(Y,Z,ce,De);case b:return Z=Z.get(ce.key===null?Q:ce.key)||null,J(Y,Z,ce,De);case B:return ce=Ca(ce),re(Z,Y,Q,ce,De)}if(j(ce)||P(ce))return Z=Z.get(Q)||null,ae(Y,Z,ce,De,null);if(typeof ce.then=="function")return re(Z,Y,Q,Vf(ce),De);if(ce.$$typeof===A)return re(Z,Y,Q,jf(Y,ce),De);Hf(Y,ce)}return null}function Ee(Z,Y,Q,ce){for(var De=null,ct=null,Ce=Y,Xe=Y=0,it=null;Ce!==null&&Xe<Q.length;Xe++){Ce.index>Xe?(it=Ce,Ce=null):it=Ce.sibling;var ut=ee(Z,Ce,Q[Xe],ce);if(ut===null){Ce===null&&(Ce=it);break}i&&Ce&&ut.alternate===null&&o(Z,Ce),Y=y(ut,Y,Xe),ct===null?De=ut:ct.sibling=ut,ct=ut,Ce=it}if(Xe===Q.length)return l(Z,Ce),at&&Ii(Z,Xe),De;if(Ce===null){for(;Xe<Q.length;Xe++)Ce=ue(Z,Q[Xe],ce),Ce!==null&&(Y=y(Ce,Y,Xe),ct===null?De=Ce:ct.sibling=Ce,ct=Ce);return at&&Ii(Z,Xe),De}for(Ce=u(Ce);Xe<Q.length;Xe++)it=re(Ce,Z,Xe,Q[Xe],ce),it!==null&&(i&&it.alternate!==null&&Ce.delete(it.key===null?Xe:it.key),Y=y(it,Y,Xe),ct===null?De=it:ct.sibling=it,ct=it);return i&&Ce.forEach(function(qo){return o(Z,qo)}),at&&Ii(Z,Xe),De}function ke(Z,Y,Q,ce){if(Q==null)throw Error(r(151));for(var De=null,ct=null,Ce=Y,Xe=Y=0,it=null,ut=Q.next();Ce!==null&&!ut.done;Xe++,ut=Q.next()){Ce.index>Xe?(it=Ce,Ce=null):it=Ce.sibling;var qo=ee(Z,Ce,ut.value,ce);if(qo===null){Ce===null&&(Ce=it);break}i&&Ce&&qo.alternate===null&&o(Z,Ce),Y=y(qo,Y,Xe),ct===null?De=qo:ct.sibling=qo,ct=qo,Ce=it}if(ut.done)return l(Z,Ce),at&&Ii(Z,Xe),De;if(Ce===null){for(;!ut.done;Xe++,ut=Q.next())ut=ue(Z,ut.value,ce),ut!==null&&(Y=y(ut,Y,Xe),ct===null?De=ut:ct.sibling=ut,ct=ut);return at&&Ii(Z,Xe),De}for(Ce=u(Ce);!ut.done;Xe++,ut=Q.next())ut=re(Ce,Z,Xe,ut.value,ce),ut!==null&&(i&&ut.alternate!==null&&Ce.delete(ut.key===null?Xe:ut.key),Y=y(ut,Y,Xe),ct===null?De=ut:ct.sibling=ut,ct=ut);return i&&Ce.forEach(function(pB){return o(Z,pB)}),at&&Ii(Z,Xe),De}function Et(Z,Y,Q,ce){if(typeof Q=="object"&&Q!==null&&Q.type===S&&Q.key===null&&(Q=Q.props.children),typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case x:e:{for(var De=Q.key;Y!==null;){if(Y.key===De){if(De=Q.type,De===S){if(Y.tag===7){l(Z,Y.sibling),ce=m(Y,Q.props.children),ce.return=Z,Z=ce;break e}}else if(Y.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===B&&Ca(De)===Y.type){l(Z,Y.sibling),ce=m(Y,Q.props),yc(ce,Q),ce.return=Z,Z=ce;break e}l(Z,Y);break}else o(Z,Y);Y=Y.sibling}Q.type===S?(ce=Sa(Q.props.children,Z.mode,ce,Q.key),ce.return=Z,Z=ce):(ce=$f(Q.type,Q.key,Q.props,null,Z.mode,ce),yc(ce,Q),ce.return=Z,Z=ce)}return C(Z);case b:e:{for(De=Q.key;Y!==null;){if(Y.key===De)if(Y.tag===4&&Y.stateNode.containerInfo===Q.containerInfo&&Y.stateNode.implementation===Q.implementation){l(Z,Y.sibling),ce=m(Y,Q.children||[]),ce.return=Z,Z=ce;break e}else{l(Z,Y);break}else o(Z,Y);Y=Y.sibling}ce=Ym(Q,Z.mode,ce),ce.return=Z,Z=ce}return C(Z);case B:return Q=Ca(Q),Et(Z,Y,Q,ce)}if(j(Q))return Ee(Z,Y,Q,ce);if(P(Q)){if(De=P(Q),typeof De!="function")throw Error(r(150));return Q=De.call(Q),ke(Z,Y,Q,ce)}if(typeof Q.then=="function")return Et(Z,Y,Vf(Q),ce);if(Q.$$typeof===A)return Et(Z,Y,jf(Z,Q),ce);Hf(Z,Q)}return typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint"?(Q=""+Q,Y!==null&&Y.tag===6?(l(Z,Y.sibling),ce=m(Y,Q),ce.return=Z,Z=ce):(l(Z,Y),ce=Gm(Q,Z.mode,ce),ce.return=Z,Z=ce),C(Z)):l(Z,Y)}return function(Z,Y,Q,ce){try{gc=0;var De=Et(Z,Y,Q,ce);return Ks=null,De}catch(Ce){if(Ce===Ws||Ce===Uf)throw Ce;var ct=ar(29,Ce,null,Z.mode);return ct.lanes=ce,ct.return=Z,ct}finally{}}}var Oa=nT(!0),rT=nT(!1),Ro=!1;function og(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ag(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function _o(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Mo(i,o,l){var u=i.updateQueue;if(u===null)return null;if(u=u.shared,(ft&2)!==0){var m=u.pending;return m===null?o.next=o:(o.next=m.next,m.next=o),u.pending=o,o=Lf(i),z1(i,null,l),o}return Nf(i,u,o,l),Lf(i)}function vc(i,o,l){if(o=o.updateQueue,o!==null&&(o=o.shared,(l&4194048)!==0)){var u=o.lanes;u&=i.pendingLanes,l|=u,o.lanes=l,Wx(i,l)}}function sg(i,o){var l=i.updateQueue,u=i.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var m=null,y=null;if(l=l.firstBaseUpdate,l!==null){do{var C={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};y===null?m=y=C:y=y.next=C,l=l.next}while(l!==null);y===null?m=y=o:y=y.next=o}else m=y=o;l={baseState:u.baseState,firstBaseUpdate:m,lastBaseUpdate:y,shared:u.shared,callbacks:u.callbacks},i.updateQueue=l;return}i=l.lastBaseUpdate,i===null?l.firstBaseUpdate=o:i.next=o,l.lastBaseUpdate=o}var lg=!1;function bc(){if(lg){var i=Ys;if(i!==null)throw i}}function Sc(i,o,l,u){lg=!1;var m=i.updateQueue;Ro=!1;var y=m.firstBaseUpdate,C=m.lastBaseUpdate,N=m.shared.pending;if(N!==null){m.shared.pending=null;var F=N,J=F.next;F.next=null,C===null?y=J:C.next=J,C=F;var ae=i.alternate;ae!==null&&(ae=ae.updateQueue,N=ae.lastBaseUpdate,N!==C&&(N===null?ae.firstBaseUpdate=J:N.next=J,ae.lastBaseUpdate=F))}if(y!==null){var ue=m.baseState;C=0,ae=J=F=null,N=y;do{var ee=N.lane&-536870913,re=ee!==N.lane;if(re?(rt&ee)===ee:(u&ee)===ee){ee!==0&&ee===Gs&&(lg=!0),ae!==null&&(ae=ae.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var Ee=i,ke=N;ee=o;var Et=l;switch(ke.tag){case 1:if(Ee=ke.payload,typeof Ee=="function"){ue=Ee.call(Et,ue,ee);break e}ue=Ee;break e;case 3:Ee.flags=Ee.flags&-65537|128;case 0:if(Ee=ke.payload,ee=typeof Ee=="function"?Ee.call(Et,ue,ee):Ee,ee==null)break e;ue=g({},ue,ee);break e;case 2:Ro=!0}}ee=N.callback,ee!==null&&(i.flags|=64,re&&(i.flags|=8192),re=m.callbacks,re===null?m.callbacks=[ee]:re.push(ee))}else re={lane:ee,tag:N.tag,payload:N.payload,callback:N.callback,next:null},ae===null?(J=ae=re,F=ue):ae=ae.next=re,C|=ee;if(N=N.next,N===null){if(N=m.shared.pending,N===null)break;re=N,N=re.next,re.next=null,m.lastBaseUpdate=re,m.shared.pending=null}}while(!0);ae===null&&(F=ue),m.baseState=F,m.firstBaseUpdate=J,m.lastBaseUpdate=ae,y===null&&(m.shared.lanes=0),Lo|=C,i.lanes=C,i.memoizedState=ue}}function iT(i,o){if(typeof i!="function")throw Error(r(191,i));i.call(o)}function oT(i,o){var l=i.callbacks;if(l!==null)for(i.callbacks=null,i=0;i<l.length;i++)iT(l[i],o)}var Xs=$(null),qf=$(0);function aT(i,o){i=Ki,te(qf,i),te(Xs,o),Ki=i|o.baseLanes}function cg(){te(qf,Ki),te(Xs,Xs.current)}function ug(){Ki=qf.current,W(Xs),W(qf)}var sr=$(null),_r=null;function Do(i){var o=i.alternate;te(Jt,Jt.current&1),te(sr,i),_r===null&&(o===null||Xs.current!==null||o.memoizedState!==null)&&(_r=i)}function fg(i){te(Jt,Jt.current),te(sr,i),_r===null&&(_r=i)}function sT(i){i.tag===22?(te(Jt,Jt.current),te(sr,i),_r===null&&(_r=i)):Po()}function Po(){te(Jt,Jt.current),te(sr,sr.current)}function lr(i){W(sr),_r===i&&(_r=null),W(Jt)}var Jt=$(0);function Gf(i){for(var o=i;o!==null;){if(o.tag===13){var l=o.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||yy(l)||vy(l)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Ui=0,Ye=null,xt=null,ln=null,Yf=!1,Zs=!1,Ra=!1,Wf=0,xc=0,Qs=null,r$=0;function qt(){throw Error(r(321))}function dg(i,o){if(o===null)return!1;for(var l=0;l<o.length&&l<i.length;l++)if(!or(i[l],o[l]))return!1;return!0}function pg(i,o,l,u,m,y){return Ui=y,Ye=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,k.H=i===null||i.memoizedState===null?HT:Rg,Ra=!1,y=l(u,m),Ra=!1,Zs&&(y=cT(o,l,u,m)),lT(i),y}function lT(i){k.H=wc;var o=xt!==null&&xt.next!==null;if(Ui=0,ln=xt=Ye=null,Yf=!1,xc=0,Qs=null,o)throw Error(r(300));i===null||cn||(i=i.dependencies,i!==null&&If(i)&&(cn=!0))}function cT(i,o,l,u){Ye=i;var m=0;do{if(Zs&&(Qs=null),xc=0,Zs=!1,25<=m)throw Error(r(301));if(m+=1,ln=xt=null,i.updateQueue!=null){var y=i.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}k.H=qT,y=o(l,u)}while(Zs);return y}function i$(){var i=k.H,o=i.useState()[0];return o=typeof o.then=="function"?Tc(o):o,i=i.useState()[0],(xt!==null?xt.memoizedState:null)!==i&&(Ye.flags|=1024),o}function hg(){var i=Wf!==0;return Wf=0,i}function mg(i,o,l){o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~l}function gg(i){if(Yf){for(i=i.memoizedState;i!==null;){var o=i.queue;o!==null&&(o.pending=null),i=i.next}Yf=!1}Ui=0,ln=xt=Ye=null,Zs=!1,xc=Wf=0,Qs=null}function $n(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ln===null?Ye.memoizedState=ln=i:ln=ln.next=i,ln}function en(){if(xt===null){var i=Ye.alternate;i=i!==null?i.memoizedState:null}else i=xt.next;var o=ln===null?Ye.memoizedState:ln.next;if(o!==null)ln=o,xt=i;else{if(i===null)throw Ye.alternate===null?Error(r(467)):Error(r(310));xt=i,i={memoizedState:xt.memoizedState,baseState:xt.baseState,baseQueue:xt.baseQueue,queue:xt.queue,next:null},ln===null?Ye.memoizedState=ln=i:ln=ln.next=i}return ln}function Kf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Tc(i){var o=xc;return xc+=1,Qs===null&&(Qs=[]),i=J1(Qs,i,o),o=Ye,(ln===null?o.memoizedState:ln.next)===null&&(o=o.alternate,k.H=o===null||o.memoizedState===null?HT:Rg),i}function Xf(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Tc(i);if(i.$$typeof===A)return En(i)}throw Error(r(438,String(i)))}function yg(i){var o=null,l=Ye.updateQueue;if(l!==null&&(o=l.memoCache),o==null){var u=Ye.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(o={data:u.data.map(function(m){return m.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),l===null&&(l=Kf(),Ye.updateQueue=l),l.memoCache=o,l=o.data[o.index],l===void 0)for(l=o.data[o.index]=Array(i),u=0;u<i;u++)l[u]=V;return o.index++,l}function Fi(i,o){return typeof o=="function"?o(i):o}function Zf(i){var o=en();return vg(o,xt,i)}function vg(i,o,l){var u=i.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=l;var m=i.baseQueue,y=u.pending;if(y!==null){if(m!==null){var C=m.next;m.next=y.next,y.next=C}o.baseQueue=m=y,u.pending=null}if(y=i.baseState,m===null)i.memoizedState=y;else{o=m.next;var N=C=null,F=null,J=o,ae=!1;do{var ue=J.lane&-536870913;if(ue!==J.lane?(rt&ue)===ue:(Ui&ue)===ue){var ee=J.revertLane;if(ee===0)F!==null&&(F=F.next={lane:0,revertLane:0,gesture:null,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null}),ue===Gs&&(ae=!0);else if((Ui&ee)===ee){J=J.next,ee===Gs&&(ae=!0);continue}else ue={lane:0,revertLane:J.revertLane,gesture:null,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null},F===null?(N=F=ue,C=y):F=F.next=ue,Ye.lanes|=ee,Lo|=ee;ue=J.action,Ra&&l(y,ue),y=J.hasEagerState?J.eagerState:l(y,ue)}else ee={lane:ue,revertLane:J.revertLane,gesture:J.gesture,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null},F===null?(N=F=ee,C=y):F=F.next=ee,Ye.lanes|=ue,Lo|=ue;J=J.next}while(J!==null&&J!==o);if(F===null?C=y:F.next=N,!or(y,i.memoizedState)&&(cn=!0,ae&&(l=Ys,l!==null)))throw l;i.memoizedState=y,i.baseState=C,i.baseQueue=F,u.lastRenderedState=y}return m===null&&(u.lanes=0),[i.memoizedState,u.dispatch]}function bg(i){var o=en(),l=o.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=i;var u=l.dispatch,m=l.pending,y=o.memoizedState;if(m!==null){l.pending=null;var C=m=m.next;do y=i(y,C.action),C=C.next;while(C!==m);or(y,o.memoizedState)||(cn=!0),o.memoizedState=y,o.baseQueue===null&&(o.baseState=y),l.lastRenderedState=y}return[y,u]}function uT(i,o,l){var u=Ye,m=en(),y=at;if(y){if(l===void 0)throw Error(r(407));l=l()}else l=o();var C=!or((xt||m).memoizedState,l);if(C&&(m.memoizedState=l,cn=!0),m=m.queue,Tg(pT.bind(null,u,m,i),[i]),m.getSnapshot!==o||C||ln!==null&&ln.memoizedState.tag&1){if(u.flags|=2048,Js(9,{destroy:void 0},dT.bind(null,u,m,l,o),null),Rt===null)throw Error(r(349));y||(Ui&127)!==0||fT(u,o,l)}return l}function fT(i,o,l){i.flags|=16384,i={getSnapshot:o,value:l},o=Ye.updateQueue,o===null?(o=Kf(),Ye.updateQueue=o,o.stores=[i]):(l=o.stores,l===null?o.stores=[i]:l.push(i))}function dT(i,o,l,u){o.value=l,o.getSnapshot=u,hT(o)&&mT(i)}function pT(i,o,l){return l(function(){hT(o)&&mT(i)})}function hT(i){var o=i.getSnapshot;i=i.value;try{var l=o();return!or(i,l)}catch{return!0}}function mT(i){var o=ba(i,2);o!==null&&Kn(o,i,2)}function Sg(i){var o=$n();if(typeof i=="function"){var l=i;if(i=l(),Ra){Oe(!0);try{l()}finally{Oe(!1)}}}return o.memoizedState=o.baseState=i,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fi,lastRenderedState:i},o}function gT(i,o,l,u){return i.baseState=l,vg(i,xt,typeof u=="function"?u:Fi)}function o$(i,o,l,u,m){if(ed(i))throw Error(r(485));if(i=o.action,i!==null){var y={payload:m,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){y.listeners.push(C)}};k.T!==null?l(!0):y.isTransition=!1,u(y),l=o.pending,l===null?(y.next=o.pending=y,yT(o,y)):(y.next=l.next,o.pending=l.next=y)}}function yT(i,o){var l=o.action,u=o.payload,m=i.state;if(o.isTransition){var y=k.T,C={};k.T=C;try{var N=l(m,u),F=k.S;F!==null&&F(C,N),vT(i,o,N)}catch(J){xg(i,o,J)}finally{y!==null&&C.types!==null&&(y.types=C.types),k.T=y}}else try{y=l(m,u),vT(i,o,y)}catch(J){xg(i,o,J)}}function vT(i,o,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(u){bT(i,o,u)},function(u){return xg(i,o,u)}):bT(i,o,l)}function bT(i,o,l){o.status="fulfilled",o.value=l,ST(o),i.state=l,o=i.pending,o!==null&&(l=o.next,l===o?i.pending=null:(l=l.next,o.next=l,yT(i,l)))}function xg(i,o,l){var u=i.pending;if(i.pending=null,u!==null){u=u.next;do o.status="rejected",o.reason=l,ST(o),o=o.next;while(o!==u)}i.action=null}function ST(i){i=i.listeners;for(var o=0;o<i.length;o++)(0,i[o])()}function xT(i,o){return o}function TT(i,o){if(at){var l=Rt.formState;if(l!==null){e:{var u=Ye;if(at){if(Pt){t:{for(var m=Pt,y=Rr;m.nodeType!==8;){if(!y){m=null;break t}if(m=Mr(m.nextSibling),m===null){m=null;break t}}y=m.data,m=y==="F!"||y==="F"?m:null}if(m){Pt=Mr(m.nextSibling),u=m.data==="F!";break e}}Ao(u)}u=!1}u&&(o=l[0])}}return l=$n(),l.memoizedState=l.baseState=o,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xT,lastRenderedState:o},l.queue=u,l=UT.bind(null,Ye,u),u.dispatch=l,u=Sg(!1),y=Og.bind(null,Ye,!1,u.queue),u=$n(),m={state:o,dispatch:null,action:i,pending:null},u.queue=m,l=o$.bind(null,Ye,m,y,l),m.dispatch=l,u.memoizedState=i,[o,l,!1]}function ET(i){var o=en();return wT(o,xt,i)}function wT(i,o,l){if(o=vg(i,o,xT)[0],i=Zf(Fi)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var u=Tc(o)}catch(C){throw C===Ws?Uf:C}else u=o;o=en();var m=o.queue,y=m.dispatch;return l!==o.memoizedState&&(Ye.flags|=2048,Js(9,{destroy:void 0},a$.bind(null,m,l),null)),[u,y,i]}function a$(i,o){i.action=o}function CT(i){var o=en(),l=xt;if(l!==null)return wT(o,l,i);en(),o=o.memoizedState,l=en();var u=l.queue.dispatch;return l.memoizedState=i,[o,u,!1]}function Js(i,o,l,u){return i={tag:i,create:l,deps:u,inst:o,next:null},o=Ye.updateQueue,o===null&&(o=Kf(),Ye.updateQueue=o),l=o.lastEffect,l===null?o.lastEffect=i.next=i:(u=l.next,l.next=i,i.next=u,o.lastEffect=i),i}function AT(){return en().memoizedState}function Qf(i,o,l,u){var m=$n();Ye.flags|=i,m.memoizedState=Js(1|o,{destroy:void 0},l,u===void 0?null:u)}function Jf(i,o,l,u){var m=en();u=u===void 0?null:u;var y=m.memoizedState.inst;xt!==null&&u!==null&&dg(u,xt.memoizedState.deps)?m.memoizedState=Js(o,y,l,u):(Ye.flags|=i,m.memoizedState=Js(1|o,y,l,u))}function OT(i,o){Qf(8390656,8,i,o)}function Tg(i,o){Jf(2048,8,i,o)}function s$(i){Ye.flags|=4;var o=Ye.updateQueue;if(o===null)o=Kf(),Ye.updateQueue=o,o.events=[i];else{var l=o.events;l===null?o.events=[i]:l.push(i)}}function RT(i){var o=en().memoizedState;return s$({ref:o,nextImpl:i}),function(){if((ft&2)!==0)throw Error(r(440));return o.impl.apply(void 0,arguments)}}function _T(i,o){return Jf(4,2,i,o)}function MT(i,o){return Jf(4,4,i,o)}function DT(i,o){if(typeof o=="function"){i=i();var l=o(i);return function(){typeof l=="function"?l():o(null)}}if(o!=null)return i=i(),o.current=i,function(){o.current=null}}function PT(i,o,l){l=l!=null?l.concat([i]):null,Jf(4,4,DT.bind(null,o,i),l)}function Eg(){}function kT(i,o){var l=en();o=o===void 0?null:o;var u=l.memoizedState;return o!==null&&dg(o,u[1])?u[0]:(l.memoizedState=[i,o],i)}function NT(i,o){var l=en();o=o===void 0?null:o;var u=l.memoizedState;if(o!==null&&dg(o,u[1]))return u[0];if(u=i(),Ra){Oe(!0);try{i()}finally{Oe(!1)}}return l.memoizedState=[u,o],u}function wg(i,o,l){return l===void 0||(Ui&1073741824)!==0&&(rt&261930)===0?i.memoizedState=o:(i.memoizedState=l,i=LE(),Ye.lanes|=i,Lo|=i,l)}function LT(i,o,l,u){return or(l,o)?l:Xs.current!==null?(i=wg(i,l,u),or(i,o)||(cn=!0),i):(Ui&42)===0||(Ui&1073741824)!==0&&(rt&261930)===0?(cn=!0,i.memoizedState=l):(i=LE(),Ye.lanes|=i,Lo|=i,o)}function $T(i,o,l,u,m){var y=I.p;I.p=y!==0&&8>y?y:8;var C=k.T,N={};k.T=N,Og(i,!1,o,l);try{var F=m(),J=k.S;if(J!==null&&J(N,F),F!==null&&typeof F=="object"&&typeof F.then=="function"){var ae=n$(F,u);Ec(i,o,ae,fr(i))}else Ec(i,o,u,fr(i))}catch(ue){Ec(i,o,{then:function(){},status:"rejected",reason:ue},fr())}finally{I.p=y,C!==null&&N.types!==null&&(C.types=N.types),k.T=C}}function l$(){}function Cg(i,o,l,u){if(i.tag!==5)throw Error(r(476));var m=BT(i).queue;$T(i,m,o,q,l===null?l$:function(){return IT(i),l(u)})}function BT(i){var o=i.memoizedState;if(o!==null)return o;o={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fi,lastRenderedState:q},next:null};var l={};return o.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fi,lastRenderedState:l},next:null},i.memoizedState=o,i=i.alternate,i!==null&&(i.memoizedState=o),o}function IT(i){var o=BT(i);o.next===null&&(o=i.alternate.memoizedState),Ec(i,o.next.queue,{},fr())}function Ag(){return En(zc)}function jT(){return en().memoizedState}function zT(){return en().memoizedState}function c$(i){for(var o=i.return;o!==null;){switch(o.tag){case 24:case 3:var l=fr();i=_o(l);var u=Mo(o,i,l);u!==null&&(Kn(u,o,l),vc(u,o,l)),o={cache:tg()},i.payload=o;return}o=o.return}}function u$(i,o,l){var u=fr();l={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ed(i)?FT(o,l):(l=Hm(i,o,l,u),l!==null&&(Kn(l,i,u),VT(l,o,u)))}function UT(i,o,l){var u=fr();Ec(i,o,l,u)}function Ec(i,o,l,u){var m={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ed(i))FT(o,m);else{var y=i.alternate;if(i.lanes===0&&(y===null||y.lanes===0)&&(y=o.lastRenderedReducer,y!==null))try{var C=o.lastRenderedState,N=y(C,l);if(m.hasEagerState=!0,m.eagerState=N,or(N,C))return Nf(i,o,m,0),Rt===null&&kf(),!1}catch{}finally{}if(l=Hm(i,o,m,u),l!==null)return Kn(l,i,u),VT(l,o,u),!0}return!1}function Og(i,o,l,u){if(u={lane:2,revertLane:oy(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},ed(i)){if(o)throw Error(r(479))}else o=Hm(i,l,u,2),o!==null&&Kn(o,i,2)}function ed(i){var o=i.alternate;return i===Ye||o!==null&&o===Ye}function FT(i,o){Zs=Yf=!0;var l=i.pending;l===null?o.next=o:(o.next=l.next,l.next=o),i.pending=o}function VT(i,o,l){if((l&4194048)!==0){var u=o.lanes;u&=i.pendingLanes,l|=u,o.lanes=l,Wx(i,l)}}var wc={readContext:En,use:Xf,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useLayoutEffect:qt,useInsertionEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useSyncExternalStore:qt,useId:qt,useHostTransitionStatus:qt,useFormState:qt,useActionState:qt,useOptimistic:qt,useMemoCache:qt,useCacheRefresh:qt};wc.useEffectEvent=qt;var HT={readContext:En,use:Xf,useCallback:function(i,o){return $n().memoizedState=[i,o===void 0?null:o],i},useContext:En,useEffect:OT,useImperativeHandle:function(i,o,l){l=l!=null?l.concat([i]):null,Qf(4194308,4,DT.bind(null,o,i),l)},useLayoutEffect:function(i,o){return Qf(4194308,4,i,o)},useInsertionEffect:function(i,o){Qf(4,2,i,o)},useMemo:function(i,o){var l=$n();o=o===void 0?null:o;var u=i();if(Ra){Oe(!0);try{i()}finally{Oe(!1)}}return l.memoizedState=[u,o],u},useReducer:function(i,o,l){var u=$n();if(l!==void 0){var m=l(o);if(Ra){Oe(!0);try{l(o)}finally{Oe(!1)}}}else m=o;return u.memoizedState=u.baseState=m,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:m},u.queue=i,i=i.dispatch=u$.bind(null,Ye,i),[u.memoizedState,i]},useRef:function(i){var o=$n();return i={current:i},o.memoizedState=i},useState:function(i){i=Sg(i);var o=i.queue,l=UT.bind(null,Ye,o);return o.dispatch=l,[i.memoizedState,l]},useDebugValue:Eg,useDeferredValue:function(i,o){var l=$n();return wg(l,i,o)},useTransition:function(){var i=Sg(!1);return i=$T.bind(null,Ye,i.queue,!0,!1),$n().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,o,l){var u=Ye,m=$n();if(at){if(l===void 0)throw Error(r(407));l=l()}else{if(l=o(),Rt===null)throw Error(r(349));(rt&127)!==0||fT(u,o,l)}m.memoizedState=l;var y={value:l,getSnapshot:o};return m.queue=y,OT(pT.bind(null,u,y,i),[i]),u.flags|=2048,Js(9,{destroy:void 0},dT.bind(null,u,y,l,o),null),l},useId:function(){var i=$n(),o=Rt.identifierPrefix;if(at){var l=li,u=si;l=(u&~(1<<32-He(u)-1)).toString(32)+l,o="_"+o+"R_"+l,l=Wf++,0<l&&(o+="H"+l.toString(32)),o+="_"}else l=r$++,o="_"+o+"r_"+l.toString(32)+"_";return i.memoizedState=o},useHostTransitionStatus:Ag,useFormState:TT,useActionState:TT,useOptimistic:function(i){var o=$n();o.memoizedState=o.baseState=i;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=l,o=Og.bind(null,Ye,!0,l),l.dispatch=o,[i,o]},useMemoCache:yg,useCacheRefresh:function(){return $n().memoizedState=c$.bind(null,Ye)},useEffectEvent:function(i){var o=$n(),l={impl:i};return o.memoizedState=l,function(){if((ft&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Rg={readContext:En,use:Xf,useCallback:kT,useContext:En,useEffect:Tg,useImperativeHandle:PT,useInsertionEffect:_T,useLayoutEffect:MT,useMemo:NT,useReducer:Zf,useRef:AT,useState:function(){return Zf(Fi)},useDebugValue:Eg,useDeferredValue:function(i,o){var l=en();return LT(l,xt.memoizedState,i,o)},useTransition:function(){var i=Zf(Fi)[0],o=en().memoizedState;return[typeof i=="boolean"?i:Tc(i),o]},useSyncExternalStore:uT,useId:jT,useHostTransitionStatus:Ag,useFormState:ET,useActionState:ET,useOptimistic:function(i,o){var l=en();return gT(l,xt,i,o)},useMemoCache:yg,useCacheRefresh:zT};Rg.useEffectEvent=RT;var qT={readContext:En,use:Xf,useCallback:kT,useContext:En,useEffect:Tg,useImperativeHandle:PT,useInsertionEffect:_T,useLayoutEffect:MT,useMemo:NT,useReducer:bg,useRef:AT,useState:function(){return bg(Fi)},useDebugValue:Eg,useDeferredValue:function(i,o){var l=en();return xt===null?wg(l,i,o):LT(l,xt.memoizedState,i,o)},useTransition:function(){var i=bg(Fi)[0],o=en().memoizedState;return[typeof i=="boolean"?i:Tc(i),o]},useSyncExternalStore:uT,useId:jT,useHostTransitionStatus:Ag,useFormState:CT,useActionState:CT,useOptimistic:function(i,o){var l=en();return xt!==null?gT(l,xt,i,o):(l.baseState=i,[i,l.queue.dispatch])},useMemoCache:yg,useCacheRefresh:zT};qT.useEffectEvent=RT;function _g(i,o,l,u){o=i.memoizedState,l=l(u,o),l=l==null?o:g({},o,l),i.memoizedState=l,i.lanes===0&&(i.updateQueue.baseState=l)}var Mg={enqueueSetState:function(i,o,l){i=i._reactInternals;var u=fr(),m=_o(u);m.payload=o,l!=null&&(m.callback=l),o=Mo(i,m,u),o!==null&&(Kn(o,i,u),vc(o,i,u))},enqueueReplaceState:function(i,o,l){i=i._reactInternals;var u=fr(),m=_o(u);m.tag=1,m.payload=o,l!=null&&(m.callback=l),o=Mo(i,m,u),o!==null&&(Kn(o,i,u),vc(o,i,u))},enqueueForceUpdate:function(i,o){i=i._reactInternals;var l=fr(),u=_o(l);u.tag=2,o!=null&&(u.callback=o),o=Mo(i,u,l),o!==null&&(Kn(o,i,l),vc(o,i,l))}};function GT(i,o,l,u,m,y,C){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(u,y,C):o.prototype&&o.prototype.isPureReactComponent?!uc(l,u)||!uc(m,y):!0}function YT(i,o,l,u){i=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(l,u),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(l,u),o.state!==i&&Mg.enqueueReplaceState(o,o.state,null)}function _a(i,o){var l=o;if("ref"in o){l={};for(var u in o)u!=="ref"&&(l[u]=o[u])}if(i=i.defaultProps){l===o&&(l=g({},l));for(var m in i)l[m]===void 0&&(l[m]=i[m])}return l}function WT(i){Pf(i)}function KT(i){console.error(i)}function XT(i){Pf(i)}function td(i,o){try{var l=i.onUncaughtError;l(o.value,{componentStack:o.stack})}catch(u){setTimeout(function(){throw u})}}function ZT(i,o,l){try{var u=i.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function Dg(i,o,l){return l=_o(l),l.tag=3,l.payload={element:null},l.callback=function(){td(i,o)},l}function QT(i){return i=_o(i),i.tag=3,i}function JT(i,o,l,u){var m=l.type.getDerivedStateFromError;if(typeof m=="function"){var y=u.value;i.payload=function(){return m(y)},i.callback=function(){ZT(o,l,u)}}var C=l.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(i.callback=function(){ZT(o,l,u),typeof m!="function"&&($o===null?$o=new Set([this]):$o.add(this));var N=u.stack;this.componentDidCatch(u.value,{componentStack:N!==null?N:""})})}function f$(i,o,l,u,m){if(l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(o=l.alternate,o!==null&&qs(o,l,m,!0),l=sr.current,l!==null){switch(l.tag){case 31:case 13:return _r===null?pd():l.alternate===null&&Gt===0&&(Gt=3),l.flags&=-257,l.flags|=65536,l.lanes=m,u===Ff?l.flags|=16384:(o=l.updateQueue,o===null?l.updateQueue=new Set([u]):o.add(u),ny(i,u,m)),!1;case 22:return l.flags|=65536,u===Ff?l.flags|=16384:(o=l.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([u])},l.updateQueue=o):(l=o.retryQueue,l===null?o.retryQueue=new Set([u]):l.add(u)),ny(i,u,m)),!1}throw Error(r(435,l.tag))}return ny(i,u,m),pd(),!1}if(at)return o=sr.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=m,u!==Xm&&(i=Error(r(422),{cause:u}),pc(Cr(i,l)))):(u!==Xm&&(o=Error(r(423),{cause:u}),pc(Cr(o,l))),i=i.current.alternate,i.flags|=65536,m&=-m,i.lanes|=m,u=Cr(u,l),m=Dg(i.stateNode,u,m),sg(i,m),Gt!==4&&(Gt=2)),!1;var y=Error(r(520),{cause:u});if(y=Cr(y,l),Pc===null?Pc=[y]:Pc.push(y),Gt!==4&&(Gt=2),o===null)return!0;u=Cr(u,l),l=o;do{switch(l.tag){case 3:return l.flags|=65536,i=m&-m,l.lanes|=i,i=Dg(l.stateNode,u,i),sg(l,i),!1;case 1:if(o=l.type,y=l.stateNode,(l.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&($o===null||!$o.has(y))))return l.flags|=65536,m&=-m,l.lanes|=m,m=QT(m),JT(m,i,l,u),sg(l,m),!1}l=l.return}while(l!==null);return!1}var Pg=Error(r(461)),cn=!1;function wn(i,o,l,u){o.child=i===null?rT(o,null,l,u):Oa(o,i.child,l,u)}function eE(i,o,l,u,m){l=l.render;var y=o.ref;if("ref"in u){var C={};for(var N in u)N!=="ref"&&(C[N]=u[N])}else C=u;return Ea(o),u=pg(i,o,l,C,y,m),N=hg(),i!==null&&!cn?(mg(i,o,m),Vi(i,o,m)):(at&&N&&Wm(o),o.flags|=1,wn(i,o,u,m),o.child)}function tE(i,o,l,u,m){if(i===null){var y=l.type;return typeof y=="function"&&!qm(y)&&y.defaultProps===void 0&&l.compare===null?(o.tag=15,o.type=y,nE(i,o,y,u,m)):(i=$f(l.type,null,u,o,o.mode,m),i.ref=o.ref,i.return=o,o.child=i)}if(y=i.child,!zg(i,m)){var C=y.memoizedProps;if(l=l.compare,l=l!==null?l:uc,l(C,u)&&i.ref===o.ref)return Vi(i,o,m)}return o.flags|=1,i=Bi(y,u),i.ref=o.ref,i.return=o,o.child=i}function nE(i,o,l,u,m){if(i!==null){var y=i.memoizedProps;if(uc(y,u)&&i.ref===o.ref)if(cn=!1,o.pendingProps=u=y,zg(i,m))(i.flags&131072)!==0&&(cn=!0);else return o.lanes=i.lanes,Vi(i,o,m)}return kg(i,o,l,u,m)}function rE(i,o,l,u){var m=u.children,y=i!==null?i.memoizedState:null;if(i===null&&o.stateNode===null&&(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((o.flags&128)!==0){if(y=y!==null?y.baseLanes|l:l,i!==null){for(u=o.child=i.child,m=0;u!==null;)m=m|u.lanes|u.childLanes,u=u.sibling;u=m&~y}else u=0,o.child=null;return iE(i,o,y,l,u)}if((l&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},i!==null&&zf(o,y!==null?y.cachePool:null),y!==null?aT(o,y):cg(),sT(o);else return u=o.lanes=536870912,iE(i,o,y!==null?y.baseLanes|l:l,l,u)}else y!==null?(zf(o,y.cachePool),aT(o,y),Po(),o.memoizedState=null):(i!==null&&zf(o,null),cg(),Po());return wn(i,o,m,l),o.child}function Cc(i,o){return i!==null&&i.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function iE(i,o,l,u,m){var y=rg();return y=y===null?null:{parent:sn._currentValue,pool:y},o.memoizedState={baseLanes:l,cachePool:y},i!==null&&zf(o,null),cg(),sT(o),i!==null&&qs(i,o,u,!0),o.childLanes=m,null}function nd(i,o){return o=id({mode:o.mode,children:o.children},i.mode),o.ref=i.ref,i.child=o,o.return=i,o}function oE(i,o,l){return Oa(o,i.child,null,l),i=nd(o,o.pendingProps),i.flags|=2,lr(o),o.memoizedState=null,i}function d$(i,o,l){var u=o.pendingProps,m=(o.flags&128)!==0;if(o.flags&=-129,i===null){if(at){if(u.mode==="hidden")return i=nd(o,u),o.lanes=536870912,Cc(null,i);if(fg(o),(i=Pt)?(i=yw(i,Rr),i=i!==null&&i.data==="&"?i:null,i!==null&&(o.memoizedState={dehydrated:i,treeContext:wo!==null?{id:si,overflow:li}:null,retryLane:536870912,hydrationErrors:null},l=F1(i),l.return=o,o.child=l,Tn=o,Pt=null)):i=null,i===null)throw Ao(o);return o.lanes=536870912,null}return nd(o,u)}var y=i.memoizedState;if(y!==null){var C=y.dehydrated;if(fg(o),m)if(o.flags&256)o.flags&=-257,o=oE(i,o,l);else if(o.memoizedState!==null)o.child=i.child,o.flags|=128,o=null;else throw Error(r(558));else if(cn||qs(i,o,l,!1),m=(l&i.childLanes)!==0,cn||m){if(u=Rt,u!==null&&(C=Kx(u,l),C!==0&&C!==y.retryLane))throw y.retryLane=C,ba(i,C),Kn(u,i,C),Pg;pd(),o=oE(i,o,l)}else i=y.treeContext,Pt=Mr(C.nextSibling),Tn=o,at=!0,Co=null,Rr=!1,i!==null&&q1(o,i),o=nd(o,u),o.flags|=4096;return o}return i=Bi(i.child,{mode:u.mode,children:u.children}),i.ref=o.ref,o.child=i,i.return=o,i}function rd(i,o){var l=o.ref;if(l===null)i!==null&&i.ref!==null&&(o.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(i===null||i.ref!==l)&&(o.flags|=4194816)}}function kg(i,o,l,u,m){return Ea(o),l=pg(i,o,l,u,void 0,m),u=hg(),i!==null&&!cn?(mg(i,o,m),Vi(i,o,m)):(at&&u&&Wm(o),o.flags|=1,wn(i,o,l,m),o.child)}function aE(i,o,l,u,m,y){return Ea(o),o.updateQueue=null,l=cT(o,u,l,m),lT(i),u=hg(),i!==null&&!cn?(mg(i,o,y),Vi(i,o,y)):(at&&u&&Wm(o),o.flags|=1,wn(i,o,l,y),o.child)}function sE(i,o,l,u,m){if(Ea(o),o.stateNode===null){var y=Us,C=l.contextType;typeof C=="object"&&C!==null&&(y=En(C)),y=new l(u,y),o.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=Mg,o.stateNode=y,y._reactInternals=o,y=o.stateNode,y.props=u,y.state=o.memoizedState,y.refs={},og(o),C=l.contextType,y.context=typeof C=="object"&&C!==null?En(C):Us,y.state=o.memoizedState,C=l.getDerivedStateFromProps,typeof C=="function"&&(_g(o,l,C,u),y.state=o.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(C=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),C!==y.state&&Mg.enqueueReplaceState(y,y.state,null),Sc(o,u,y,m),bc(),y.state=o.memoizedState),typeof y.componentDidMount=="function"&&(o.flags|=4194308),u=!0}else if(i===null){y=o.stateNode;var N=o.memoizedProps,F=_a(l,N);y.props=F;var J=y.context,ae=l.contextType;C=Us,typeof ae=="object"&&ae!==null&&(C=En(ae));var ue=l.getDerivedStateFromProps;ae=typeof ue=="function"||typeof y.getSnapshotBeforeUpdate=="function",N=o.pendingProps!==N,ae||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(N||J!==C)&&YT(o,y,u,C),Ro=!1;var ee=o.memoizedState;y.state=ee,Sc(o,u,y,m),bc(),J=o.memoizedState,N||ee!==J||Ro?(typeof ue=="function"&&(_g(o,l,ue,u),J=o.memoizedState),(F=Ro||GT(o,l,F,u,ee,J,C))?(ae||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(o.flags|=4194308)):(typeof y.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=u,o.memoizedState=J),y.props=u,y.state=J,y.context=C,u=F):(typeof y.componentDidMount=="function"&&(o.flags|=4194308),u=!1)}else{y=o.stateNode,ag(i,o),C=o.memoizedProps,ae=_a(l,C),y.props=ae,ue=o.pendingProps,ee=y.context,J=l.contextType,F=Us,typeof J=="object"&&J!==null&&(F=En(J)),N=l.getDerivedStateFromProps,(J=typeof N=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(C!==ue||ee!==F)&&YT(o,y,u,F),Ro=!1,ee=o.memoizedState,y.state=ee,Sc(o,u,y,m),bc();var re=o.memoizedState;C!==ue||ee!==re||Ro||i!==null&&i.dependencies!==null&&If(i.dependencies)?(typeof N=="function"&&(_g(o,l,N,u),re=o.memoizedState),(ae=Ro||GT(o,l,ae,u,ee,re,F)||i!==null&&i.dependencies!==null&&If(i.dependencies))?(J||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(u,re,F),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(u,re,F)),typeof y.componentDidUpdate=="function"&&(o.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof y.componentDidUpdate!="function"||C===i.memoizedProps&&ee===i.memoizedState||(o.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||C===i.memoizedProps&&ee===i.memoizedState||(o.flags|=1024),o.memoizedProps=u,o.memoizedState=re),y.props=u,y.state=re,y.context=F,u=ae):(typeof y.componentDidUpdate!="function"||C===i.memoizedProps&&ee===i.memoizedState||(o.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||C===i.memoizedProps&&ee===i.memoizedState||(o.flags|=1024),u=!1)}return y=u,rd(i,o),u=(o.flags&128)!==0,y||u?(y=o.stateNode,l=u&&typeof l.getDerivedStateFromError!="function"?null:y.render(),o.flags|=1,i!==null&&u?(o.child=Oa(o,i.child,null,m),o.child=Oa(o,null,l,m)):wn(i,o,l,m),o.memoizedState=y.state,i=o.child):i=Vi(i,o,m),i}function lE(i,o,l,u){return xa(),o.flags|=256,wn(i,o,l,u),o.child}var Ng={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Lg(i){return{baseLanes:i,cachePool:Z1()}}function $g(i,o,l){return i=i!==null?i.childLanes&~l:0,o&&(i|=ur),i}function cE(i,o,l){var u=o.pendingProps,m=!1,y=(o.flags&128)!==0,C;if((C=y)||(C=i!==null&&i.memoizedState===null?!1:(Jt.current&2)!==0),C&&(m=!0,o.flags&=-129),C=(o.flags&32)!==0,o.flags&=-33,i===null){if(at){if(m?Do(o):Po(),(i=Pt)?(i=yw(i,Rr),i=i!==null&&i.data!=="&"?i:null,i!==null&&(o.memoizedState={dehydrated:i,treeContext:wo!==null?{id:si,overflow:li}:null,retryLane:536870912,hydrationErrors:null},l=F1(i),l.return=o,o.child=l,Tn=o,Pt=null)):i=null,i===null)throw Ao(o);return vy(i)?o.lanes=32:o.lanes=536870912,null}var N=u.children;return u=u.fallback,m?(Po(),m=o.mode,N=id({mode:"hidden",children:N},m),u=Sa(u,m,l,null),N.return=o,u.return=o,N.sibling=u,o.child=N,u=o.child,u.memoizedState=Lg(l),u.childLanes=$g(i,C,l),o.memoizedState=Ng,Cc(null,u)):(Do(o),Bg(o,N))}var F=i.memoizedState;if(F!==null&&(N=F.dehydrated,N!==null)){if(y)o.flags&256?(Do(o),o.flags&=-257,o=Ig(i,o,l)):o.memoizedState!==null?(Po(),o.child=i.child,o.flags|=128,o=null):(Po(),N=u.fallback,m=o.mode,u=id({mode:"visible",children:u.children},m),N=Sa(N,m,l,null),N.flags|=2,u.return=o,N.return=o,u.sibling=N,o.child=u,Oa(o,i.child,null,l),u=o.child,u.memoizedState=Lg(l),u.childLanes=$g(i,C,l),o.memoizedState=Ng,o=Cc(null,u));else if(Do(o),vy(N)){if(C=N.nextSibling&&N.nextSibling.dataset,C)var J=C.dgst;C=J,u=Error(r(419)),u.stack="",u.digest=C,pc({value:u,source:null,stack:null}),o=Ig(i,o,l)}else if(cn||qs(i,o,l,!1),C=(l&i.childLanes)!==0,cn||C){if(C=Rt,C!==null&&(u=Kx(C,l),u!==0&&u!==F.retryLane))throw F.retryLane=u,ba(i,u),Kn(C,i,u),Pg;yy(N)||pd(),o=Ig(i,o,l)}else yy(N)?(o.flags|=192,o.child=i.child,o=null):(i=F.treeContext,Pt=Mr(N.nextSibling),Tn=o,at=!0,Co=null,Rr=!1,i!==null&&q1(o,i),o=Bg(o,u.children),o.flags|=4096);return o}return m?(Po(),N=u.fallback,m=o.mode,F=i.child,J=F.sibling,u=Bi(F,{mode:"hidden",children:u.children}),u.subtreeFlags=F.subtreeFlags&65011712,J!==null?N=Bi(J,N):(N=Sa(N,m,l,null),N.flags|=2),N.return=o,u.return=o,u.sibling=N,o.child=u,Cc(null,u),u=o.child,N=i.child.memoizedState,N===null?N=Lg(l):(m=N.cachePool,m!==null?(F=sn._currentValue,m=m.parent!==F?{parent:F,pool:F}:m):m=Z1(),N={baseLanes:N.baseLanes|l,cachePool:m}),u.memoizedState=N,u.childLanes=$g(i,C,l),o.memoizedState=Ng,Cc(i.child,u)):(Do(o),l=i.child,i=l.sibling,l=Bi(l,{mode:"visible",children:u.children}),l.return=o,l.sibling=null,i!==null&&(C=o.deletions,C===null?(o.deletions=[i],o.flags|=16):C.push(i)),o.child=l,o.memoizedState=null,l)}function Bg(i,o){return o=id({mode:"visible",children:o},i.mode),o.return=i,i.child=o}function id(i,o){return i=ar(22,i,null,o),i.lanes=0,i}function Ig(i,o,l){return Oa(o,i.child,null,l),i=Bg(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function uE(i,o,l){i.lanes|=o;var u=i.alternate;u!==null&&(u.lanes|=o),Jm(i.return,o,l)}function jg(i,o,l,u,m,y){var C=i.memoizedState;C===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:m,treeForkCount:y}:(C.isBackwards=o,C.rendering=null,C.renderingStartTime=0,C.last=u,C.tail=l,C.tailMode=m,C.treeForkCount=y)}function fE(i,o,l){var u=o.pendingProps,m=u.revealOrder,y=u.tail;u=u.children;var C=Jt.current,N=(C&2)!==0;if(N?(C=C&1|2,o.flags|=128):C&=1,te(Jt,C),wn(i,o,u,l),u=at?dc:0,!N&&i!==null&&(i.flags&128)!==0)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&uE(i,l,o);else if(i.tag===19)uE(i,l,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(m){case"forwards":for(l=o.child,m=null;l!==null;)i=l.alternate,i!==null&&Gf(i)===null&&(m=l),l=l.sibling;l=m,l===null?(m=o.child,o.child=null):(m=l.sibling,l.sibling=null),jg(o,!1,m,l,y,u);break;case"backwards":case"unstable_legacy-backwards":for(l=null,m=o.child,o.child=null;m!==null;){if(i=m.alternate,i!==null&&Gf(i)===null){o.child=m;break}i=m.sibling,m.sibling=l,l=m,m=i}jg(o,!0,l,null,y,u);break;case"together":jg(o,!1,null,null,void 0,u);break;default:o.memoizedState=null}return o.child}function Vi(i,o,l){if(i!==null&&(o.dependencies=i.dependencies),Lo|=o.lanes,(l&o.childLanes)===0)if(i!==null){if(qs(i,o,l,!1),(l&o.childLanes)===0)return null}else return null;if(i!==null&&o.child!==i.child)throw Error(r(153));if(o.child!==null){for(i=o.child,l=Bi(i,i.pendingProps),o.child=l,l.return=o;i.sibling!==null;)i=i.sibling,l=l.sibling=Bi(i,i.pendingProps),l.return=o;l.sibling=null}return o.child}function zg(i,o){return(i.lanes&o)!==0?!0:(i=i.dependencies,!!(i!==null&&If(i)))}function p$(i,o,l){switch(o.tag){case 3:Me(o,o.stateNode.containerInfo),Oo(o,sn,i.memoizedState.cache),xa();break;case 27:case 5:ye(o);break;case 4:Me(o,o.stateNode.containerInfo);break;case 10:Oo(o,o.type,o.memoizedProps.value);break;case 31:if(o.memoizedState!==null)return o.flags|=128,fg(o),null;break;case 13:var u=o.memoizedState;if(u!==null)return u.dehydrated!==null?(Do(o),o.flags|=128,null):(l&o.child.childLanes)!==0?cE(i,o,l):(Do(o),i=Vi(i,o,l),i!==null?i.sibling:null);Do(o);break;case 19:var m=(i.flags&128)!==0;if(u=(l&o.childLanes)!==0,u||(qs(i,o,l,!1),u=(l&o.childLanes)!==0),m){if(u)return fE(i,o,l);o.flags|=128}if(m=o.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),te(Jt,Jt.current),u)break;return null;case 22:return o.lanes=0,rE(i,o,l,o.pendingProps);case 24:Oo(o,sn,i.memoizedState.cache)}return Vi(i,o,l)}function dE(i,o,l){if(i!==null)if(i.memoizedProps!==o.pendingProps)cn=!0;else{if(!zg(i,l)&&(o.flags&128)===0)return cn=!1,p$(i,o,l);cn=(i.flags&131072)!==0}else cn=!1,at&&(o.flags&1048576)!==0&&H1(o,dc,o.index);switch(o.lanes=0,o.tag){case 16:e:{var u=o.pendingProps;if(i=Ca(o.elementType),o.type=i,typeof i=="function")qm(i)?(u=_a(i,u),o.tag=1,o=sE(null,o,i,u,l)):(o.tag=0,o=kg(null,o,i,u,l));else{if(i!=null){var m=i.$$typeof;if(m===_){o.tag=11,o=eE(null,o,i,u,l);break e}else if(m===L){o.tag=14,o=tE(null,o,i,u,l);break e}}throw o=U(i)||i,Error(r(306,o,""))}}return o;case 0:return kg(i,o,o.type,o.pendingProps,l);case 1:return u=o.type,m=_a(u,o.pendingProps),sE(i,o,u,m,l);case 3:e:{if(Me(o,o.stateNode.containerInfo),i===null)throw Error(r(387));u=o.pendingProps;var y=o.memoizedState;m=y.element,ag(i,o),Sc(o,u,null,l);var C=o.memoizedState;if(u=C.cache,Oo(o,sn,u),u!==y.cache&&eg(o,[sn],l,!0),bc(),u=C.element,y.isDehydrated)if(y={element:u,isDehydrated:!1,cache:C.cache},o.updateQueue.baseState=y,o.memoizedState=y,o.flags&256){o=lE(i,o,u,l);break e}else if(u!==m){m=Cr(Error(r(424)),o),pc(m),o=lE(i,o,u,l);break e}else{switch(i=o.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(Pt=Mr(i.firstChild),Tn=o,at=!0,Co=null,Rr=!0,l=rT(o,null,u,l),o.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(xa(),u===m){o=Vi(i,o,l);break e}wn(i,o,u,l)}o=o.child}return o;case 26:return rd(i,o),i===null?(l=Ew(o.type,null,o.pendingProps,null))?o.memoizedState=l:at||(l=o.type,i=o.pendingProps,u=Sd(he.current).createElement(l),u[xn]=o,u[Vn]=i,Cn(u,l,i),gn(u),o.stateNode=u):o.memoizedState=Ew(o.type,i.memoizedProps,o.pendingProps,i.memoizedState),null;case 27:return ye(o),i===null&&at&&(u=o.stateNode=Sw(o.type,o.pendingProps,he.current),Tn=o,Rr=!0,m=Pt,zo(o.type)?(by=m,Pt=Mr(u.firstChild)):Pt=m),wn(i,o,o.pendingProps.children,l),rd(i,o),i===null&&(o.flags|=4194304),o.child;case 5:return i===null&&at&&((m=u=Pt)&&(u=V$(u,o.type,o.pendingProps,Rr),u!==null?(o.stateNode=u,Tn=o,Pt=Mr(u.firstChild),Rr=!1,m=!0):m=!1),m||Ao(o)),ye(o),m=o.type,y=o.pendingProps,C=i!==null?i.memoizedProps:null,u=y.children,hy(m,y)?u=null:C!==null&&hy(m,C)&&(o.flags|=32),o.memoizedState!==null&&(m=pg(i,o,i$,null,null,l),zc._currentValue=m),rd(i,o),wn(i,o,u,l),o.child;case 6:return i===null&&at&&((i=l=Pt)&&(l=H$(l,o.pendingProps,Rr),l!==null?(o.stateNode=l,Tn=o,Pt=null,i=!0):i=!1),i||Ao(o)),null;case 13:return cE(i,o,l);case 4:return Me(o,o.stateNode.containerInfo),u=o.pendingProps,i===null?o.child=Oa(o,null,u,l):wn(i,o,u,l),o.child;case 11:return eE(i,o,o.type,o.pendingProps,l);case 7:return wn(i,o,o.pendingProps,l),o.child;case 8:return wn(i,o,o.pendingProps.children,l),o.child;case 12:return wn(i,o,o.pendingProps.children,l),o.child;case 10:return u=o.pendingProps,Oo(o,o.type,u.value),wn(i,o,u.children,l),o.child;case 9:return m=o.type._context,u=o.pendingProps.children,Ea(o),m=En(m),u=u(m),o.flags|=1,wn(i,o,u,l),o.child;case 14:return tE(i,o,o.type,o.pendingProps,l);case 15:return nE(i,o,o.type,o.pendingProps,l);case 19:return fE(i,o,l);case 31:return d$(i,o,l);case 22:return rE(i,o,l,o.pendingProps);case 24:return Ea(o),u=En(sn),i===null?(m=rg(),m===null&&(m=Rt,y=tg(),m.pooledCache=y,y.refCount++,y!==null&&(m.pooledCacheLanes|=l),m=y),o.memoizedState={parent:u,cache:m},og(o),Oo(o,sn,m)):((i.lanes&l)!==0&&(ag(i,o),Sc(o,null,null,l),bc()),m=i.memoizedState,y=o.memoizedState,m.parent!==u?(m={parent:u,cache:u},o.memoizedState=m,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=m),Oo(o,sn,u)):(u=y.cache,Oo(o,sn,u),u!==m.cache&&eg(o,[sn],l,!0))),wn(i,o,o.pendingProps.children,l),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function Hi(i){i.flags|=4}function Ug(i,o,l,u,m){if((o=(i.mode&32)!==0)&&(o=!1),o){if(i.flags|=16777216,(m&335544128)===m)if(i.stateNode.complete)i.flags|=8192;else if(jE())i.flags|=8192;else throw Aa=Ff,ig}else i.flags&=-16777217}function pE(i,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!Rw(o))if(jE())i.flags|=8192;else throw Aa=Ff,ig}function od(i,o){o!==null&&(i.flags|=4),i.flags&16384&&(o=i.tag!==22?Ge():536870912,i.lanes|=o,rl|=o)}function Ac(i,o){if(!at)switch(i.tailMode){case"hidden":o=i.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?i.tail=null:l.sibling=null;break;case"collapsed":l=i.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:u.sibling=null}}function kt(i){var o=i.alternate!==null&&i.alternate.child===i.child,l=0,u=0;if(o)for(var m=i.child;m!==null;)l|=m.lanes|m.childLanes,u|=m.subtreeFlags&65011712,u|=m.flags&65011712,m.return=i,m=m.sibling;else for(m=i.child;m!==null;)l|=m.lanes|m.childLanes,u|=m.subtreeFlags,u|=m.flags,m.return=i,m=m.sibling;return i.subtreeFlags|=u,i.childLanes=l,o}function h$(i,o,l){var u=o.pendingProps;switch(Km(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return kt(o),null;case 1:return kt(o),null;case 3:return l=o.stateNode,u=null,i!==null&&(u=i.memoizedState.cache),o.memoizedState.cache!==u&&(o.flags|=2048),zi(sn),ve(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(i===null||i.child===null)&&(Hs(o)?Hi(o):i===null||i.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Zm())),kt(o),null;case 26:var m=o.type,y=o.memoizedState;return i===null?(Hi(o),y!==null?(kt(o),pE(o,y)):(kt(o),Ug(o,m,null,u,l))):y?y!==i.memoizedState?(Hi(o),kt(o),pE(o,y)):(kt(o),o.flags&=-16777217):(i=i.memoizedProps,i!==u&&Hi(o),kt(o),Ug(o,m,i,u,l)),null;case 27:if(Ae(o),l=he.current,m=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==u&&Hi(o);else{if(!u){if(o.stateNode===null)throw Error(r(166));return kt(o),null}i=oe.current,Hs(o)?G1(o):(i=Sw(m,u,l),o.stateNode=i,Hi(o))}return kt(o),null;case 5:if(Ae(o),m=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==u&&Hi(o);else{if(!u){if(o.stateNode===null)throw Error(r(166));return kt(o),null}if(y=oe.current,Hs(o))G1(o);else{var C=Sd(he.current);switch(y){case 1:y=C.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:y=C.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":y=C.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":y=C.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":y=C.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof u.is=="string"?C.createElement("select",{is:u.is}):C.createElement("select"),u.multiple?y.multiple=!0:u.size&&(y.size=u.size);break;default:y=typeof u.is=="string"?C.createElement(m,{is:u.is}):C.createElement(m)}}y[xn]=o,y[Vn]=u;e:for(C=o.child;C!==null;){if(C.tag===5||C.tag===6)y.appendChild(C.stateNode);else if(C.tag!==4&&C.tag!==27&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===o)break e;for(;C.sibling===null;){if(C.return===null||C.return===o)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}o.stateNode=y;e:switch(Cn(y,m,u),m){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&Hi(o)}}return kt(o),Ug(o,o.type,i===null?null:i.memoizedProps,o.pendingProps,l),null;case 6:if(i&&o.stateNode!=null)i.memoizedProps!==u&&Hi(o);else{if(typeof u!="string"&&o.stateNode===null)throw Error(r(166));if(i=he.current,Hs(o)){if(i=o.stateNode,l=o.memoizedProps,u=null,m=Tn,m!==null)switch(m.tag){case 27:case 5:u=m.memoizedProps}i[xn]=o,i=!!(i.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||cw(i.nodeValue,l)),i||Ao(o,!0)}else i=Sd(i).createTextNode(u),i[xn]=o,o.stateNode=i}return kt(o),null;case 31:if(l=o.memoizedState,i===null||i.memoizedState!==null){if(u=Hs(o),l!==null){if(i===null){if(!u)throw Error(r(318));if(i=o.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(557));i[xn]=o}else xa(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;kt(o),i=!1}else l=Zm(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=l),i=!0;if(!i)return o.flags&256?(lr(o),o):(lr(o),null);if((o.flags&128)!==0)throw Error(r(558))}return kt(o),null;case 13:if(u=o.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(m=Hs(o),u!==null&&u.dehydrated!==null){if(i===null){if(!m)throw Error(r(318));if(m=o.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(r(317));m[xn]=o}else xa(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;kt(o),m=!1}else m=Zm(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=m),m=!0;if(!m)return o.flags&256?(lr(o),o):(lr(o),null)}return lr(o),(o.flags&128)!==0?(o.lanes=l,o):(l=u!==null,i=i!==null&&i.memoizedState!==null,l&&(u=o.child,m=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(m=u.alternate.memoizedState.cachePool.pool),y=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(y=u.memoizedState.cachePool.pool),y!==m&&(u.flags|=2048)),l!==i&&l&&(o.child.flags|=8192),od(o,o.updateQueue),kt(o),null);case 4:return ve(),i===null&&cy(o.stateNode.containerInfo),kt(o),null;case 10:return zi(o.type),kt(o),null;case 19:if(W(Jt),u=o.memoizedState,u===null)return kt(o),null;if(m=(o.flags&128)!==0,y=u.rendering,y===null)if(m)Ac(u,!1);else{if(Gt!==0||i!==null&&(i.flags&128)!==0)for(i=o.child;i!==null;){if(y=Gf(i),y!==null){for(o.flags|=128,Ac(u,!1),i=y.updateQueue,o.updateQueue=i,od(o,i),o.subtreeFlags=0,i=l,l=o.child;l!==null;)U1(l,i),l=l.sibling;return te(Jt,Jt.current&1|2),at&&Ii(o,u.treeForkCount),o.child}i=i.sibling}u.tail!==null&&de()>ud&&(o.flags|=128,m=!0,Ac(u,!1),o.lanes=4194304)}else{if(!m)if(i=Gf(y),i!==null){if(o.flags|=128,m=!0,i=i.updateQueue,o.updateQueue=i,od(o,i),Ac(u,!0),u.tail===null&&u.tailMode==="hidden"&&!y.alternate&&!at)return kt(o),null}else 2*de()-u.renderingStartTime>ud&&l!==536870912&&(o.flags|=128,m=!0,Ac(u,!1),o.lanes=4194304);u.isBackwards?(y.sibling=o.child,o.child=y):(i=u.last,i!==null?i.sibling=y:o.child=y,u.last=y)}return u.tail!==null?(i=u.tail,u.rendering=i,u.tail=i.sibling,u.renderingStartTime=de(),i.sibling=null,l=Jt.current,te(Jt,m?l&1|2:l&1),at&&Ii(o,u.treeForkCount),i):(kt(o),null);case 22:case 23:return lr(o),ug(),u=o.memoizedState!==null,i!==null?i.memoizedState!==null!==u&&(o.flags|=8192):u&&(o.flags|=8192),u?(l&536870912)!==0&&(o.flags&128)===0&&(kt(o),o.subtreeFlags&6&&(o.flags|=8192)):kt(o),l=o.updateQueue,l!==null&&od(o,l.retryQueue),l=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(l=i.memoizedState.cachePool.pool),u=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(u=o.memoizedState.cachePool.pool),u!==l&&(o.flags|=2048),i!==null&&W(wa),null;case 24:return l=null,i!==null&&(l=i.memoizedState.cache),o.memoizedState.cache!==l&&(o.flags|=2048),zi(sn),kt(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function m$(i,o){switch(Km(o),o.tag){case 1:return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 3:return zi(sn),ve(),i=o.flags,(i&65536)!==0&&(i&128)===0?(o.flags=i&-65537|128,o):null;case 26:case 27:case 5:return Ae(o),null;case 31:if(o.memoizedState!==null){if(lr(o),o.alternate===null)throw Error(r(340));xa()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 13:if(lr(o),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error(r(340));xa()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 19:return W(Jt),null;case 4:return ve(),null;case 10:return zi(o.type),null;case 22:case 23:return lr(o),ug(),i!==null&&W(wa),i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 24:return zi(sn),null;case 25:return null;default:return null}}function hE(i,o){switch(Km(o),o.tag){case 3:zi(sn),ve();break;case 26:case 27:case 5:Ae(o);break;case 4:ve();break;case 31:o.memoizedState!==null&&lr(o);break;case 13:lr(o);break;case 19:W(Jt);break;case 10:zi(o.type);break;case 22:case 23:lr(o),ug(),i!==null&&W(wa);break;case 24:zi(sn)}}function Oc(i,o){try{var l=o.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var m=u.next;l=m;do{if((l.tag&i)===i){u=void 0;var y=l.create,C=l.inst;u=y(),C.destroy=u}l=l.next}while(l!==m)}}catch(N){vt(o,o.return,N)}}function ko(i,o,l){try{var u=o.updateQueue,m=u!==null?u.lastEffect:null;if(m!==null){var y=m.next;u=y;do{if((u.tag&i)===i){var C=u.inst,N=C.destroy;if(N!==void 0){C.destroy=void 0,m=o;var F=l,J=N;try{J()}catch(ae){vt(m,F,ae)}}}u=u.next}while(u!==y)}}catch(ae){vt(o,o.return,ae)}}function mE(i){var o=i.updateQueue;if(o!==null){var l=i.stateNode;try{oT(o,l)}catch(u){vt(i,i.return,u)}}}function gE(i,o,l){l.props=_a(i.type,i.memoizedProps),l.state=i.memoizedState;try{l.componentWillUnmount()}catch(u){vt(i,o,u)}}function Rc(i,o){try{var l=i.ref;if(l!==null){switch(i.tag){case 26:case 27:case 5:var u=i.stateNode;break;case 30:u=i.stateNode;break;default:u=i.stateNode}typeof l=="function"?i.refCleanup=l(u):l.current=u}}catch(m){vt(i,o,m)}}function ci(i,o){var l=i.ref,u=i.refCleanup;if(l!==null)if(typeof u=="function")try{u()}catch(m){vt(i,o,m)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(m){vt(i,o,m)}else l.current=null}function yE(i){var o=i.type,l=i.memoizedProps,u=i.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":l.autoFocus&&u.focus();break e;case"img":l.src?u.src=l.src:l.srcSet&&(u.srcset=l.srcSet)}}catch(m){vt(i,i.return,m)}}function Fg(i,o,l){try{var u=i.stateNode;B$(u,i.type,l,o),u[Vn]=o}catch(m){vt(i,i.return,m)}}function vE(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&zo(i.type)||i.tag===4}function Vg(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||vE(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&zo(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Hg(i,o,l){var u=i.tag;if(u===5||u===6)i=i.stateNode,o?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(i,o):(o=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,o.appendChild(i),l=l._reactRootContainer,l!=null||o.onclick!==null||(o.onclick=Li));else if(u!==4&&(u===27&&zo(i.type)&&(l=i.stateNode,o=null),i=i.child,i!==null))for(Hg(i,o,l),i=i.sibling;i!==null;)Hg(i,o,l),i=i.sibling}function ad(i,o,l){var u=i.tag;if(u===5||u===6)i=i.stateNode,o?l.insertBefore(i,o):l.appendChild(i);else if(u!==4&&(u===27&&zo(i.type)&&(l=i.stateNode),i=i.child,i!==null))for(ad(i,o,l),i=i.sibling;i!==null;)ad(i,o,l),i=i.sibling}function bE(i){var o=i.stateNode,l=i.memoizedProps;try{for(var u=i.type,m=o.attributes;m.length;)o.removeAttributeNode(m[0]);Cn(o,u,l),o[xn]=i,o[Vn]=l}catch(y){vt(i,i.return,y)}}var qi=!1,un=!1,qg=!1,SE=typeof WeakSet=="function"?WeakSet:Set,yn=null;function g$(i,o){if(i=i.containerInfo,dy=Od,i=P1(i),Im(i)){if("selectionStart"in i)var l={start:i.selectionStart,end:i.selectionEnd};else e:{l=(l=i.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var m=u.anchorOffset,y=u.focusNode;u=u.focusOffset;try{l.nodeType,y.nodeType}catch{l=null;break e}var C=0,N=-1,F=-1,J=0,ae=0,ue=i,ee=null;t:for(;;){for(var re;ue!==l||m!==0&&ue.nodeType!==3||(N=C+m),ue!==y||u!==0&&ue.nodeType!==3||(F=C+u),ue.nodeType===3&&(C+=ue.nodeValue.length),(re=ue.firstChild)!==null;)ee=ue,ue=re;for(;;){if(ue===i)break t;if(ee===l&&++J===m&&(N=C),ee===y&&++ae===u&&(F=C),(re=ue.nextSibling)!==null)break;ue=ee,ee=ue.parentNode}ue=re}l=N===-1||F===-1?null:{start:N,end:F}}else l=null}l=l||{start:0,end:0}}else l=null;for(py={focusedElem:i,selectionRange:l},Od=!1,yn=o;yn!==null;)if(o=yn,i=o.child,(o.subtreeFlags&1028)!==0&&i!==null)i.return=o,yn=i;else for(;yn!==null;){switch(o=yn,y=o.alternate,i=o.flags,o.tag){case 0:if((i&4)!==0&&(i=o.updateQueue,i=i!==null?i.events:null,i!==null))for(l=0;l<i.length;l++)m=i[l],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&y!==null){i=void 0,l=o,m=y.memoizedProps,y=y.memoizedState,u=l.stateNode;try{var Ee=_a(l.type,m);i=u.getSnapshotBeforeUpdate(Ee,y),u.__reactInternalSnapshotBeforeUpdate=i}catch(ke){vt(l,l.return,ke)}}break;case 3:if((i&1024)!==0){if(i=o.stateNode.containerInfo,l=i.nodeType,l===9)gy(i);else if(l===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":gy(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=o.sibling,i!==null){i.return=o.return,yn=i;break}yn=o.return}}function xE(i,o,l){var u=l.flags;switch(l.tag){case 0:case 11:case 15:Yi(i,l),u&4&&Oc(5,l);break;case 1:if(Yi(i,l),u&4)if(i=l.stateNode,o===null)try{i.componentDidMount()}catch(C){vt(l,l.return,C)}else{var m=_a(l.type,o.memoizedProps);o=o.memoizedState;try{i.componentDidUpdate(m,o,i.__reactInternalSnapshotBeforeUpdate)}catch(C){vt(l,l.return,C)}}u&64&&mE(l),u&512&&Rc(l,l.return);break;case 3:if(Yi(i,l),u&64&&(i=l.updateQueue,i!==null)){if(o=null,l.child!==null)switch(l.child.tag){case 27:case 5:o=l.child.stateNode;break;case 1:o=l.child.stateNode}try{oT(i,o)}catch(C){vt(l,l.return,C)}}break;case 27:o===null&&u&4&&bE(l);case 26:case 5:Yi(i,l),o===null&&u&4&&yE(l),u&512&&Rc(l,l.return);break;case 12:Yi(i,l);break;case 31:Yi(i,l),u&4&&wE(i,l);break;case 13:Yi(i,l),u&4&&CE(i,l),u&64&&(i=l.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(l=C$.bind(null,l),q$(i,l))));break;case 22:if(u=l.memoizedState!==null||qi,!u){o=o!==null&&o.memoizedState!==null||un,m=qi;var y=un;qi=u,(un=o)&&!y?Wi(i,l,(l.subtreeFlags&8772)!==0):Yi(i,l),qi=m,un=y}break;case 30:break;default:Yi(i,l)}}function TE(i){var o=i.alternate;o!==null&&(i.alternate=null,TE(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&xm(o)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var It=null,qn=!1;function Gi(i,o,l){for(l=l.child;l!==null;)EE(i,o,l),l=l.sibling}function EE(i,o,l){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(Zt,l)}catch{}switch(l.tag){case 26:un||ci(l,o),Gi(i,o,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:un||ci(l,o);var u=It,m=qn;zo(l.type)&&(It=l.stateNode,qn=!1),Gi(i,o,l),Bc(l.stateNode),It=u,qn=m;break;case 5:un||ci(l,o);case 6:if(u=It,m=qn,It=null,Gi(i,o,l),It=u,qn=m,It!==null)if(qn)try{(It.nodeType===9?It.body:It.nodeName==="HTML"?It.ownerDocument.body:It).removeChild(l.stateNode)}catch(y){vt(l,o,y)}else try{It.removeChild(l.stateNode)}catch(y){vt(l,o,y)}break;case 18:It!==null&&(qn?(i=It,mw(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,l.stateNode),fl(i)):mw(It,l.stateNode));break;case 4:u=It,m=qn,It=l.stateNode.containerInfo,qn=!0,Gi(i,o,l),It=u,qn=m;break;case 0:case 11:case 14:case 15:ko(2,l,o),un||ko(4,l,o),Gi(i,o,l);break;case 1:un||(ci(l,o),u=l.stateNode,typeof u.componentWillUnmount=="function"&&gE(l,o,u)),Gi(i,o,l);break;case 21:Gi(i,o,l);break;case 22:un=(u=un)||l.memoizedState!==null,Gi(i,o,l),un=u;break;default:Gi(i,o,l)}}function wE(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{fl(i)}catch(l){vt(o,o.return,l)}}}function CE(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{fl(i)}catch(l){vt(o,o.return,l)}}function y$(i){switch(i.tag){case 31:case 13:case 19:var o=i.stateNode;return o===null&&(o=i.stateNode=new SE),o;case 22:return i=i.stateNode,o=i._retryCache,o===null&&(o=i._retryCache=new SE),o;default:throw Error(r(435,i.tag))}}function sd(i,o){var l=y$(i);o.forEach(function(u){if(!l.has(u)){l.add(u);var m=A$.bind(null,i,u);u.then(m,m)}})}function Gn(i,o){var l=o.deletions;if(l!==null)for(var u=0;u<l.length;u++){var m=l[u],y=i,C=o,N=C;e:for(;N!==null;){switch(N.tag){case 27:if(zo(N.type)){It=N.stateNode,qn=!1;break e}break;case 5:It=N.stateNode,qn=!1;break e;case 3:case 4:It=N.stateNode.containerInfo,qn=!0;break e}N=N.return}if(It===null)throw Error(r(160));EE(y,C,m),It=null,qn=!1,y=m.alternate,y!==null&&(y.return=null),m.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)AE(o,i),o=o.sibling}var Wr=null;function AE(i,o){var l=i.alternate,u=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Gn(o,i),Yn(i),u&4&&(ko(3,i,i.return),Oc(3,i),ko(5,i,i.return));break;case 1:Gn(o,i),Yn(i),u&512&&(un||l===null||ci(l,l.return)),u&64&&qi&&(i=i.updateQueue,i!==null&&(u=i.callbacks,u!==null&&(l=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=l===null?u:l.concat(u))));break;case 26:var m=Wr;if(Gn(o,i),Yn(i),u&512&&(un||l===null||ci(l,l.return)),u&4){var y=l!==null?l.memoizedState:null;if(u=i.memoizedState,l===null)if(u===null)if(i.stateNode===null){e:{u=i.type,l=i.memoizedProps,m=m.ownerDocument||m;t:switch(u){case"title":y=m.getElementsByTagName("title")[0],(!y||y[tc]||y[xn]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=m.createElement(u),m.head.insertBefore(y,m.querySelector("head > title"))),Cn(y,u,l),y[xn]=i,gn(y),u=y;break e;case"link":var C=Aw("link","href",m).get(u+(l.href||""));if(C){for(var N=0;N<C.length;N++)if(y=C[N],y.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&y.getAttribute("rel")===(l.rel==null?null:l.rel)&&y.getAttribute("title")===(l.title==null?null:l.title)&&y.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){C.splice(N,1);break t}}y=m.createElement(u),Cn(y,u,l),m.head.appendChild(y);break;case"meta":if(C=Aw("meta","content",m).get(u+(l.content||""))){for(N=0;N<C.length;N++)if(y=C[N],y.getAttribute("content")===(l.content==null?null:""+l.content)&&y.getAttribute("name")===(l.name==null?null:l.name)&&y.getAttribute("property")===(l.property==null?null:l.property)&&y.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&y.getAttribute("charset")===(l.charSet==null?null:l.charSet)){C.splice(N,1);break t}}y=m.createElement(u),Cn(y,u,l),m.head.appendChild(y);break;default:throw Error(r(468,u))}y[xn]=i,gn(y),u=y}i.stateNode=u}else Ow(m,i.type,i.stateNode);else i.stateNode=Cw(m,u,i.memoizedProps);else y!==u?(y===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):y.count--,u===null?Ow(m,i.type,i.stateNode):Cw(m,u,i.memoizedProps)):u===null&&i.stateNode!==null&&Fg(i,i.memoizedProps,l.memoizedProps)}break;case 27:Gn(o,i),Yn(i),u&512&&(un||l===null||ci(l,l.return)),l!==null&&u&4&&Fg(i,i.memoizedProps,l.memoizedProps);break;case 5:if(Gn(o,i),Yn(i),u&512&&(un||l===null||ci(l,l.return)),i.flags&32){m=i.stateNode;try{Ns(m,"")}catch(Ee){vt(i,i.return,Ee)}}u&4&&i.stateNode!=null&&(m=i.memoizedProps,Fg(i,m,l!==null?l.memoizedProps:m)),u&1024&&(qg=!0);break;case 6:if(Gn(o,i),Yn(i),u&4){if(i.stateNode===null)throw Error(r(162));u=i.memoizedProps,l=i.stateNode;try{l.nodeValue=u}catch(Ee){vt(i,i.return,Ee)}}break;case 3:if(Ed=null,m=Wr,Wr=xd(o.containerInfo),Gn(o,i),Wr=m,Yn(i),u&4&&l!==null&&l.memoizedState.isDehydrated)try{fl(o.containerInfo)}catch(Ee){vt(i,i.return,Ee)}qg&&(qg=!1,OE(i));break;case 4:u=Wr,Wr=xd(i.stateNode.containerInfo),Gn(o,i),Yn(i),Wr=u;break;case 12:Gn(o,i),Yn(i);break;case 31:Gn(o,i),Yn(i),u&4&&(u=i.updateQueue,u!==null&&(i.updateQueue=null,sd(i,u)));break;case 13:Gn(o,i),Yn(i),i.child.flags&8192&&i.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(cd=de()),u&4&&(u=i.updateQueue,u!==null&&(i.updateQueue=null,sd(i,u)));break;case 22:m=i.memoizedState!==null;var F=l!==null&&l.memoizedState!==null,J=qi,ae=un;if(qi=J||m,un=ae||F,Gn(o,i),un=ae,qi=J,Yn(i),u&8192)e:for(o=i.stateNode,o._visibility=m?o._visibility&-2:o._visibility|1,m&&(l===null||F||qi||un||Ma(i)),l=null,o=i;;){if(o.tag===5||o.tag===26){if(l===null){F=l=o;try{if(y=F.stateNode,m)C=y.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none";else{N=F.stateNode;var ue=F.memoizedProps.style,ee=ue!=null&&ue.hasOwnProperty("display")?ue.display:null;N.style.display=ee==null||typeof ee=="boolean"?"":(""+ee).trim()}}catch(Ee){vt(F,F.return,Ee)}}}else if(o.tag===6){if(l===null){F=o;try{F.stateNode.nodeValue=m?"":F.memoizedProps}catch(Ee){vt(F,F.return,Ee)}}}else if(o.tag===18){if(l===null){F=o;try{var re=F.stateNode;m?gw(re,!0):gw(F.stateNode,!1)}catch(Ee){vt(F,F.return,Ee)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===i)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;l===o&&(l=null),o=o.return}l===o&&(l=null),o.sibling.return=o.return,o=o.sibling}u&4&&(u=i.updateQueue,u!==null&&(l=u.retryQueue,l!==null&&(u.retryQueue=null,sd(i,l))));break;case 19:Gn(o,i),Yn(i),u&4&&(u=i.updateQueue,u!==null&&(i.updateQueue=null,sd(i,u)));break;case 30:break;case 21:break;default:Gn(o,i),Yn(i)}}function Yn(i){var o=i.flags;if(o&2){try{for(var l,u=i.return;u!==null;){if(vE(u)){l=u;break}u=u.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var m=l.stateNode,y=Vg(i);ad(i,y,m);break;case 5:var C=l.stateNode;l.flags&32&&(Ns(C,""),l.flags&=-33);var N=Vg(i);ad(i,N,C);break;case 3:case 4:var F=l.stateNode.containerInfo,J=Vg(i);Hg(i,J,F);break;default:throw Error(r(161))}}catch(ae){vt(i,i.return,ae)}i.flags&=-3}o&4096&&(i.flags&=-4097)}function OE(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var o=i;OE(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),i=i.sibling}}function Yi(i,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)xE(i,o.alternate,o),o=o.sibling}function Ma(i){for(i=i.child;i!==null;){var o=i;switch(o.tag){case 0:case 11:case 14:case 15:ko(4,o,o.return),Ma(o);break;case 1:ci(o,o.return);var l=o.stateNode;typeof l.componentWillUnmount=="function"&&gE(o,o.return,l),Ma(o);break;case 27:Bc(o.stateNode);case 26:case 5:ci(o,o.return),Ma(o);break;case 22:o.memoizedState===null&&Ma(o);break;case 30:Ma(o);break;default:Ma(o)}i=i.sibling}}function Wi(i,o,l){for(l=l&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var u=o.alternate,m=i,y=o,C=y.flags;switch(y.tag){case 0:case 11:case 15:Wi(m,y,l),Oc(4,y);break;case 1:if(Wi(m,y,l),u=y,m=u.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(J){vt(u,u.return,J)}if(u=y,m=u.updateQueue,m!==null){var N=u.stateNode;try{var F=m.shared.hiddenCallbacks;if(F!==null)for(m.shared.hiddenCallbacks=null,m=0;m<F.length;m++)iT(F[m],N)}catch(J){vt(u,u.return,J)}}l&&C&64&&mE(y),Rc(y,y.return);break;case 27:bE(y);case 26:case 5:Wi(m,y,l),l&&u===null&&C&4&&yE(y),Rc(y,y.return);break;case 12:Wi(m,y,l);break;case 31:Wi(m,y,l),l&&C&4&&wE(m,y);break;case 13:Wi(m,y,l),l&&C&4&&CE(m,y);break;case 22:y.memoizedState===null&&Wi(m,y,l),Rc(y,y.return);break;case 30:break;default:Wi(m,y,l)}o=o.sibling}}function Gg(i,o){var l=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(l=i.memoizedState.cachePool.pool),i=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(i=o.memoizedState.cachePool.pool),i!==l&&(i!=null&&i.refCount++,l!=null&&hc(l))}function Yg(i,o){i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&hc(i))}function Kr(i,o,l,u){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)RE(i,o,l,u),o=o.sibling}function RE(i,o,l,u){var m=o.flags;switch(o.tag){case 0:case 11:case 15:Kr(i,o,l,u),m&2048&&Oc(9,o);break;case 1:Kr(i,o,l,u);break;case 3:Kr(i,o,l,u),m&2048&&(i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&hc(i)));break;case 12:if(m&2048){Kr(i,o,l,u),i=o.stateNode;try{var y=o.memoizedProps,C=y.id,N=y.onPostCommit;typeof N=="function"&&N(C,o.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(F){vt(o,o.return,F)}}else Kr(i,o,l,u);break;case 31:Kr(i,o,l,u);break;case 13:Kr(i,o,l,u);break;case 23:break;case 22:y=o.stateNode,C=o.alternate,o.memoizedState!==null?y._visibility&2?Kr(i,o,l,u):_c(i,o):y._visibility&2?Kr(i,o,l,u):(y._visibility|=2,el(i,o,l,u,(o.subtreeFlags&10256)!==0||!1)),m&2048&&Gg(C,o);break;case 24:Kr(i,o,l,u),m&2048&&Yg(o.alternate,o);break;default:Kr(i,o,l,u)}}function el(i,o,l,u,m){for(m=m&&((o.subtreeFlags&10256)!==0||!1),o=o.child;o!==null;){var y=i,C=o,N=l,F=u,J=C.flags;switch(C.tag){case 0:case 11:case 15:el(y,C,N,F,m),Oc(8,C);break;case 23:break;case 22:var ae=C.stateNode;C.memoizedState!==null?ae._visibility&2?el(y,C,N,F,m):_c(y,C):(ae._visibility|=2,el(y,C,N,F,m)),m&&J&2048&&Gg(C.alternate,C);break;case 24:el(y,C,N,F,m),m&&J&2048&&Yg(C.alternate,C);break;default:el(y,C,N,F,m)}o=o.sibling}}function _c(i,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var l=i,u=o,m=u.flags;switch(u.tag){case 22:_c(l,u),m&2048&&Gg(u.alternate,u);break;case 24:_c(l,u),m&2048&&Yg(u.alternate,u);break;default:_c(l,u)}o=o.sibling}}var Mc=8192;function tl(i,o,l){if(i.subtreeFlags&Mc)for(i=i.child;i!==null;)_E(i,o,l),i=i.sibling}function _E(i,o,l){switch(i.tag){case 26:tl(i,o,l),i.flags&Mc&&i.memoizedState!==null&&rB(l,Wr,i.memoizedState,i.memoizedProps);break;case 5:tl(i,o,l);break;case 3:case 4:var u=Wr;Wr=xd(i.stateNode.containerInfo),tl(i,o,l),Wr=u;break;case 22:i.memoizedState===null&&(u=i.alternate,u!==null&&u.memoizedState!==null?(u=Mc,Mc=16777216,tl(i,o,l),Mc=u):tl(i,o,l));break;default:tl(i,o,l)}}function ME(i){var o=i.alternate;if(o!==null&&(i=o.child,i!==null)){o.child=null;do o=i.sibling,i.sibling=null,i=o;while(i!==null)}}function Dc(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var l=0;l<o.length;l++){var u=o[l];yn=u,PE(u,i)}ME(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)DE(i),i=i.sibling}function DE(i){switch(i.tag){case 0:case 11:case 15:Dc(i),i.flags&2048&&ko(9,i,i.return);break;case 3:Dc(i);break;case 12:Dc(i);break;case 22:var o=i.stateNode;i.memoizedState!==null&&o._visibility&2&&(i.return===null||i.return.tag!==13)?(o._visibility&=-3,ld(i)):Dc(i);break;default:Dc(i)}}function ld(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var l=0;l<o.length;l++){var u=o[l];yn=u,PE(u,i)}ME(i)}for(i=i.child;i!==null;){switch(o=i,o.tag){case 0:case 11:case 15:ko(8,o,o.return),ld(o);break;case 22:l=o.stateNode,l._visibility&2&&(l._visibility&=-3,ld(o));break;default:ld(o)}i=i.sibling}}function PE(i,o){for(;yn!==null;){var l=yn;switch(l.tag){case 0:case 11:case 15:ko(8,l,o);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var u=l.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:hc(l.memoizedState.cache)}if(u=l.child,u!==null)u.return=l,yn=u;else e:for(l=i;yn!==null;){u=yn;var m=u.sibling,y=u.return;if(TE(u),u===l){yn=null;break e}if(m!==null){m.return=y,yn=m;break e}yn=y}}}var v$={getCacheForType:function(i){var o=En(sn),l=o.data.get(i);return l===void 0&&(l=i(),o.data.set(i,l)),l},cacheSignal:function(){return En(sn).controller.signal}},b$=typeof WeakMap=="function"?WeakMap:Map,ft=0,Rt=null,et=null,rt=0,yt=0,cr=null,No=!1,nl=!1,Wg=!1,Ki=0,Gt=0,Lo=0,Da=0,Kg=0,ur=0,rl=0,Pc=null,Wn=null,Xg=!1,cd=0,kE=0,ud=1/0,fd=null,$o=null,hn=0,Bo=null,il=null,Xi=0,Zg=0,Qg=null,NE=null,kc=0,Jg=null;function fr(){return(ft&2)!==0&&rt!==0?rt&-rt:k.T!==null?oy():Xx()}function LE(){if(ur===0)if((rt&536870912)===0||at){var i=Cs;Cs<<=1,(Cs&3932160)===0&&(Cs=262144),ur=i}else ur=536870912;return i=sr.current,i!==null&&(i.flags|=32),ur}function Kn(i,o,l){(i===Rt&&(yt===2||yt===9)||i.cancelPendingCommit!==null)&&(ol(i,0),Io(i,rt,ur,!1)),ec(i,l),((ft&2)===0||i!==Rt)&&(i===Rt&&((ft&2)===0&&(Da|=l),Gt===4&&Io(i,rt,ur,!1)),ui(i))}function $E(i,o,l){if((ft&6)!==0)throw Error(r(327));var u=!l&&(o&127)===0&&(o&i.expiredLanes)===0||ha(i,o),m=u?T$(i,o):ty(i,o,!0),y=u;do{if(m===0){nl&&!u&&Io(i,o,0,!1);break}else{if(l=i.current.alternate,y&&!S$(l)){m=ty(i,o,!1),y=!1;continue}if(m===2){if(y=o,i.errorRecoveryDisabledLanes&y)var C=0;else C=i.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){o=C;e:{var N=i;m=Pc;var F=N.current.memoizedState.isDehydrated;if(F&&(ol(N,C).flags|=256),C=ty(N,C,!1),C!==2){if(Wg&&!F){N.errorRecoveryDisabledLanes|=y,Da|=y,m=4;break e}y=Wn,Wn=m,y!==null&&(Wn===null?Wn=y:Wn.push.apply(Wn,y))}m=C}if(y=!1,m!==2)continue}}if(m===1){ol(i,0),Io(i,o,0,!0);break}e:{switch(u=i,y=m,y){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:Io(u,o,ur,!No);break e;case 2:Wn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(m=cd+300-de(),10<m)){if(Io(u,o,ur,!No),Os(u,0,!0)!==0)break e;Xi=o,u.timeoutHandle=pw(BE.bind(null,u,l,Wn,fd,Xg,o,ur,Da,rl,No,y,"Throttled",-0,0),m);break e}BE(u,l,Wn,fd,Xg,o,ur,Da,rl,No,y,null,-0,0)}}break}while(!0);ui(i)}function BE(i,o,l,u,m,y,C,N,F,J,ae,ue,ee,re){if(i.timeoutHandle=-1,ue=o.subtreeFlags,ue&8192||(ue&16785408)===16785408){ue={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Li},_E(o,y,ue);var Ee=(y&62914560)===y?cd-de():(y&4194048)===y?kE-de():0;if(Ee=iB(ue,Ee),Ee!==null){Xi=y,i.cancelPendingCommit=Ee(qE.bind(null,i,o,y,l,u,m,C,N,F,ae,ue,null,ee,re)),Io(i,y,C,!J);return}}qE(i,o,y,l,u,m,C,N,F)}function S$(i){for(var o=i;;){var l=o.tag;if((l===0||l===11||l===15)&&o.flags&16384&&(l=o.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var u=0;u<l.length;u++){var m=l[u],y=m.getSnapshot;m=m.value;try{if(!or(y(),m))return!1}catch{return!1}}if(l=o.child,o.subtreeFlags&16384&&l!==null)l.return=o,o=l;else{if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Io(i,o,l,u){o&=~Kg,o&=~Da,i.suspendedLanes|=o,i.pingedLanes&=~o,u&&(i.warmLanes|=o),u=i.expirationTimes;for(var m=o;0<m;){var y=31-He(m),C=1<<y;u[y]=-1,m&=~C}l!==0&&Yx(i,l,o)}function dd(){return(ft&6)===0?(Nc(0),!1):!0}function ey(){if(et!==null){if(yt===0)var i=et.return;else i=et,ji=Ta=null,gg(i),Ks=null,gc=0,i=et;for(;i!==null;)hE(i.alternate,i),i=i.return;et=null}}function ol(i,o){var l=i.timeoutHandle;l!==-1&&(i.timeoutHandle=-1,z$(l)),l=i.cancelPendingCommit,l!==null&&(i.cancelPendingCommit=null,l()),Xi=0,ey(),Rt=i,et=l=Bi(i.current,null),rt=o,yt=0,cr=null,No=!1,nl=ha(i,o),Wg=!1,rl=ur=Kg=Da=Lo=Gt=0,Wn=Pc=null,Xg=!1,(o&8)!==0&&(o|=o&32);var u=i.entangledLanes;if(u!==0)for(i=i.entanglements,u&=o;0<u;){var m=31-He(u),y=1<<m;o|=i[m],u&=~y}return Ki=o,kf(),l}function IE(i,o){Ye=null,k.H=wc,o===Ws||o===Uf?(o=eT(),yt=3):o===ig?(o=eT(),yt=4):yt=o===Pg?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,cr=o,et===null&&(Gt=1,td(i,Cr(o,i.current)))}function jE(){var i=sr.current;return i===null?!0:(rt&4194048)===rt?_r===null:(rt&62914560)===rt||(rt&536870912)!==0?i===_r:!1}function zE(){var i=k.H;return k.H=wc,i===null?wc:i}function UE(){var i=k.A;return k.A=v$,i}function pd(){Gt=4,No||(rt&4194048)!==rt&&sr.current!==null||(nl=!0),(Lo&134217727)===0&&(Da&134217727)===0||Rt===null||Io(Rt,rt,ur,!1)}function ty(i,o,l){var u=ft;ft|=2;var m=zE(),y=UE();(Rt!==i||rt!==o)&&(fd=null,ol(i,o)),o=!1;var C=Gt;e:do try{if(yt!==0&&et!==null){var N=et,F=cr;switch(yt){case 8:ey(),C=6;break e;case 3:case 2:case 9:case 6:sr.current===null&&(o=!0);var J=yt;if(yt=0,cr=null,al(i,N,F,J),l&&nl){C=0;break e}break;default:J=yt,yt=0,cr=null,al(i,N,F,J)}}x$(),C=Gt;break}catch(ae){IE(i,ae)}while(!0);return o&&i.shellSuspendCounter++,ji=Ta=null,ft=u,k.H=m,k.A=y,et===null&&(Rt=null,rt=0,kf()),C}function x$(){for(;et!==null;)FE(et)}function T$(i,o){var l=ft;ft|=2;var u=zE(),m=UE();Rt!==i||rt!==o?(fd=null,ud=de()+500,ol(i,o)):nl=ha(i,o);e:do try{if(yt!==0&&et!==null){o=et;var y=cr;t:switch(yt){case 1:yt=0,cr=null,al(i,o,y,1);break;case 2:case 9:if(Q1(y)){yt=0,cr=null,VE(o);break}o=function(){yt!==2&&yt!==9||Rt!==i||(yt=7),ui(i)},y.then(o,o);break e;case 3:yt=7;break e;case 4:yt=5;break e;case 7:Q1(y)?(yt=0,cr=null,VE(o)):(yt=0,cr=null,al(i,o,y,7));break;case 5:var C=null;switch(et.tag){case 26:C=et.memoizedState;case 5:case 27:var N=et;if(C?Rw(C):N.stateNode.complete){yt=0,cr=null;var F=N.sibling;if(F!==null)et=F;else{var J=N.return;J!==null?(et=J,hd(J)):et=null}break t}}yt=0,cr=null,al(i,o,y,5);break;case 6:yt=0,cr=null,al(i,o,y,6);break;case 8:ey(),Gt=6;break e;default:throw Error(r(462))}}E$();break}catch(ae){IE(i,ae)}while(!0);return ji=Ta=null,k.H=u,k.A=m,ft=l,et!==null?0:(Rt=null,rt=0,kf(),Gt)}function E$(){for(;et!==null&&!G();)FE(et)}function FE(i){var o=dE(i.alternate,i,Ki);i.memoizedProps=i.pendingProps,o===null?hd(i):et=o}function VE(i){var o=i,l=o.alternate;switch(o.tag){case 15:case 0:o=aE(l,o,o.pendingProps,o.type,void 0,rt);break;case 11:o=aE(l,o,o.pendingProps,o.type.render,o.ref,rt);break;case 5:gg(o);default:hE(l,o),o=et=U1(o,Ki),o=dE(l,o,Ki)}i.memoizedProps=i.pendingProps,o===null?hd(i):et=o}function al(i,o,l,u){ji=Ta=null,gg(o),Ks=null,gc=0;var m=o.return;try{if(f$(i,m,o,l,rt)){Gt=1,td(i,Cr(l,i.current)),et=null;return}}catch(y){if(m!==null)throw et=m,y;Gt=1,td(i,Cr(l,i.current)),et=null;return}o.flags&32768?(at||u===1?i=!0:nl||(rt&536870912)!==0?i=!1:(No=i=!0,(u===2||u===9||u===3||u===6)&&(u=sr.current,u!==null&&u.tag===13&&(u.flags|=16384))),HE(o,i)):hd(o)}function hd(i){var o=i;do{if((o.flags&32768)!==0){HE(o,No);return}i=o.return;var l=h$(o.alternate,o,Ki);if(l!==null){et=l;return}if(o=o.sibling,o!==null){et=o;return}et=o=i}while(o!==null);Gt===0&&(Gt=5)}function HE(i,o){do{var l=m$(i.alternate,i);if(l!==null){l.flags&=32767,et=l;return}if(l=i.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!o&&(i=i.sibling,i!==null)){et=i;return}et=i=l}while(i!==null);Gt=6,et=null}function qE(i,o,l,u,m,y,C,N,F){i.cancelPendingCommit=null;do md();while(hn!==0);if((ft&6)!==0)throw Error(r(327));if(o!==null){if(o===i.current)throw Error(r(177));if(y=o.lanes|o.childLanes,y|=Vm,nL(i,l,y,C,N,F),i===Rt&&(et=Rt=null,rt=0),il=o,Bo=i,Xi=l,Zg=y,Qg=m,NE=u,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,O$(ze,function(){return XE(),null})):(i.callbackNode=null,i.callbackPriority=0),u=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||u){u=k.T,k.T=null,m=I.p,I.p=2,C=ft,ft|=4;try{g$(i,o,l)}finally{ft=C,I.p=m,k.T=u}}hn=1,GE(),YE(),WE()}}function GE(){if(hn===1){hn=0;var i=Bo,o=il,l=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||l){l=k.T,k.T=null;var u=I.p;I.p=2;var m=ft;ft|=4;try{AE(o,i);var y=py,C=P1(i.containerInfo),N=y.focusedElem,F=y.selectionRange;if(C!==N&&N&&N.ownerDocument&&D1(N.ownerDocument.documentElement,N)){if(F!==null&&Im(N)){var J=F.start,ae=F.end;if(ae===void 0&&(ae=J),"selectionStart"in N)N.selectionStart=J,N.selectionEnd=Math.min(ae,N.value.length);else{var ue=N.ownerDocument||document,ee=ue&&ue.defaultView||window;if(ee.getSelection){var re=ee.getSelection(),Ee=N.textContent.length,ke=Math.min(F.start,Ee),Et=F.end===void 0?ke:Math.min(F.end,Ee);!re.extend&&ke>Et&&(C=Et,Et=ke,ke=C);var Z=M1(N,ke),Y=M1(N,Et);if(Z&&Y&&(re.rangeCount!==1||re.anchorNode!==Z.node||re.anchorOffset!==Z.offset||re.focusNode!==Y.node||re.focusOffset!==Y.offset)){var Q=ue.createRange();Q.setStart(Z.node,Z.offset),re.removeAllRanges(),ke>Et?(re.addRange(Q),re.extend(Y.node,Y.offset)):(Q.setEnd(Y.node,Y.offset),re.addRange(Q))}}}}for(ue=[],re=N;re=re.parentNode;)re.nodeType===1&&ue.push({element:re,left:re.scrollLeft,top:re.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N<ue.length;N++){var ce=ue[N];ce.element.scrollLeft=ce.left,ce.element.scrollTop=ce.top}}Od=!!dy,py=dy=null}finally{ft=m,I.p=u,k.T=l}}i.current=o,hn=2}}function YE(){if(hn===2){hn=0;var i=Bo,o=il,l=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||l){l=k.T,k.T=null;var u=I.p;I.p=2;var m=ft;ft|=4;try{xE(i,o.alternate,o)}finally{ft=m,I.p=u,k.T=l}}hn=3}}function WE(){if(hn===4||hn===3){hn=0,me();var i=Bo,o=il,l=Xi,u=NE;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?hn=5:(hn=0,il=Bo=null,KE(i,i.pendingLanes));var m=i.pendingLanes;if(m===0&&($o=null),bm(l),o=o.stateNode,Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(Zt,o,void 0,(o.current.flags&128)===128)}catch{}if(u!==null){o=k.T,m=I.p,I.p=2,k.T=null;try{for(var y=i.onRecoverableError,C=0;C<u.length;C++){var N=u[C];y(N.value,{componentStack:N.stack})}}finally{k.T=o,I.p=m}}(Xi&3)!==0&&md(),ui(i),m=i.pendingLanes,(l&261930)!==0&&(m&42)!==0?i===Jg?kc++:(kc=0,Jg=i):kc=0,Nc(0)}}function KE(i,o){(i.pooledCacheLanes&=o)===0&&(o=i.pooledCache,o!=null&&(i.pooledCache=null,hc(o)))}function md(){return GE(),YE(),WE(),XE()}function XE(){if(hn!==5)return!1;var i=Bo,o=Zg;Zg=0;var l=bm(Xi),u=k.T,m=I.p;try{I.p=32>l?32:l,k.T=null,l=Qg,Qg=null;var y=Bo,C=Xi;if(hn=0,il=Bo=null,Xi=0,(ft&6)!==0)throw Error(r(331));var N=ft;if(ft|=4,DE(y.current),RE(y,y.current,C,l),ft=N,Nc(0,!1),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(Zt,y)}catch{}return!0}finally{I.p=m,k.T=u,KE(i,o)}}function ZE(i,o,l){o=Cr(l,o),o=Dg(i.stateNode,o,2),i=Mo(i,o,2),i!==null&&(ec(i,2),ui(i))}function vt(i,o,l){if(i.tag===3)ZE(i,i,l);else for(;o!==null;){if(o.tag===3){ZE(o,i,l);break}else if(o.tag===1){var u=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&($o===null||!$o.has(u))){i=Cr(l,i),l=QT(2),u=Mo(o,l,2),u!==null&&(JT(l,u,o,i),ec(u,2),ui(u));break}}o=o.return}}function ny(i,o,l){var u=i.pingCache;if(u===null){u=i.pingCache=new b$;var m=new Set;u.set(o,m)}else m=u.get(o),m===void 0&&(m=new Set,u.set(o,m));m.has(l)||(Wg=!0,m.add(l),i=w$.bind(null,i,o,l),o.then(i,i))}function w$(i,o,l){var u=i.pingCache;u!==null&&u.delete(o),i.pingedLanes|=i.suspendedLanes&l,i.warmLanes&=~l,Rt===i&&(rt&l)===l&&(Gt===4||Gt===3&&(rt&62914560)===rt&&300>de()-cd?(ft&2)===0&&ol(i,0):Kg|=l,rl===rt&&(rl=0)),ui(i)}function QE(i,o){o===0&&(o=Ge()),i=ba(i,o),i!==null&&(ec(i,o),ui(i))}function C$(i){var o=i.memoizedState,l=0;o!==null&&(l=o.retryLane),QE(i,l)}function A$(i,o){var l=0;switch(i.tag){case 31:case 13:var u=i.stateNode,m=i.memoizedState;m!==null&&(l=m.retryLane);break;case 19:u=i.stateNode;break;case 22:u=i.stateNode._retryCache;break;default:throw Error(r(314))}u!==null&&u.delete(o),QE(i,l)}function O$(i,o){return Qe(i,o)}var gd=null,sl=null,ry=!1,yd=!1,iy=!1,jo=0;function ui(i){i!==sl&&i.next===null&&(sl===null?gd=sl=i:sl=sl.next=i),yd=!0,ry||(ry=!0,_$())}function Nc(i,o){if(!iy&&yd){iy=!0;do for(var l=!1,u=gd;u!==null;){if(i!==0){var m=u.pendingLanes;if(m===0)var y=0;else{var C=u.suspendedLanes,N=u.pingedLanes;y=(1<<31-He(42|i)+1)-1,y&=m&~(C&~N),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(l=!0,nw(u,y))}else y=rt,y=Os(u,u===Rt?y:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(y&3)===0||ha(u,y)||(l=!0,nw(u,y));u=u.next}while(l);iy=!1}}function R$(){JE()}function JE(){yd=ry=!1;var i=0;jo!==0&&j$()&&(i=jo);for(var o=de(),l=null,u=gd;u!==null;){var m=u.next,y=ew(u,o);y===0?(u.next=null,l===null?gd=m:l.next=m,m===null&&(sl=l)):(l=u,(i!==0||(y&3)!==0)&&(yd=!0)),u=m}hn!==0&&hn!==5||Nc(i),jo!==0&&(jo=0)}function ew(i,o){for(var l=i.suspendedLanes,u=i.pingedLanes,m=i.expirationTimes,y=i.pendingLanes&-62914561;0<y;){var C=31-He(y),N=1<<C,F=m[C];F===-1?((N&l)===0||(N&u)!==0)&&(m[C]=ym(N,o)):F<=o&&(i.expiredLanes|=N),y&=~N}if(o=Rt,l=rt,l=Os(i,i===o?l:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),u=i.callbackNode,l===0||i===o&&(yt===2||yt===9)||i.cancelPendingCommit!==null)return u!==null&&u!==null&&Je(u),i.callbackNode=null,i.callbackPriority=0;if((l&3)===0||ha(i,l)){if(o=l&-l,o===i.callbackPriority)return o;switch(u!==null&&Je(u),bm(l)){case 2:case 8:l=Se;break;case 32:l=ze;break;case 268435456:l=$t;break;default:l=ze}return u=tw.bind(null,i),l=Qe(l,u),i.callbackPriority=o,i.callbackNode=l,o}return u!==null&&u!==null&&Je(u),i.callbackPriority=2,i.callbackNode=null,2}function tw(i,o){if(hn!==0&&hn!==5)return i.callbackNode=null,i.callbackPriority=0,null;var l=i.callbackNode;if(md()&&i.callbackNode!==l)return null;var u=rt;return u=Os(i,i===Rt?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),u===0?null:($E(i,u,o),ew(i,de()),i.callbackNode!=null&&i.callbackNode===l?tw.bind(null,i):null)}function nw(i,o){if(md())return null;$E(i,o,!0)}function _$(){U$(function(){(ft&6)!==0?Qe(Te,R$):JE()})}function oy(){if(jo===0){var i=Gs;i===0&&(i=ws,ws<<=1,(ws&261888)===0&&(ws=256)),jo=i}return jo}function rw(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Cf(""+i)}function iw(i,o){var l=o.ownerDocument.createElement("input");return l.name=o.name,l.value=o.value,i.id&&l.setAttribute("form",i.id),o.parentNode.insertBefore(l,o),i=new FormData(i),l.parentNode.removeChild(l),i}function M$(i,o,l,u,m){if(o==="submit"&&l&&l.stateNode===m){var y=rw((m[Vn]||null).action),C=u.submitter;C&&(o=(o=C[Vn]||null)?rw(o.formAction):C.getAttribute("formAction"),o!==null&&(y=o,C=null));var N=new _f("action","action",null,u,m);i.push({event:N,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(jo!==0){var F=C?iw(m,C):new FormData(m);Cg(l,{pending:!0,data:F,method:m.method,action:y},null,F)}}else typeof y=="function"&&(N.preventDefault(),F=C?iw(m,C):new FormData(m),Cg(l,{pending:!0,data:F,method:m.method,action:y},y,F))},currentTarget:m}]})}}for(var ay=0;ay<Fm.length;ay++){var sy=Fm[ay],D$=sy.toLowerCase(),P$=sy[0].toUpperCase()+sy.slice(1);Yr(D$,"on"+P$)}Yr(L1,"onAnimationEnd"),Yr($1,"onAnimationIteration"),Yr(B1,"onAnimationStart"),Yr("dblclick","onDoubleClick"),Yr("focusin","onFocus"),Yr("focusout","onBlur"),Yr(WL,"onTransitionRun"),Yr(KL,"onTransitionStart"),Yr(XL,"onTransitionCancel"),Yr(I1,"onTransitionEnd"),Ps("onMouseEnter",["mouseout","mouseover"]),Ps("onMouseLeave",["mouseout","mouseover"]),Ps("onPointerEnter",["pointerout","pointerover"]),Ps("onPointerLeave",["pointerout","pointerover"]),ma("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ma("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ma("onBeforeInput",["compositionend","keypress","textInput","paste"]),ma("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ma("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ma("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lc="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(" "),k$=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Lc));function ow(i,o){o=(o&4)!==0;for(var l=0;l<i.length;l++){var u=i[l],m=u.event;u=u.listeners;e:{var y=void 0;if(o)for(var C=u.length-1;0<=C;C--){var N=u[C],F=N.instance,J=N.currentTarget;if(N=N.listener,F!==y&&m.isPropagationStopped())break e;y=N,m.currentTarget=J;try{y(m)}catch(ae){Pf(ae)}m.currentTarget=null,y=F}else for(C=0;C<u.length;C++){if(N=u[C],F=N.instance,J=N.currentTarget,N=N.listener,F!==y&&m.isPropagationStopped())break e;y=N,m.currentTarget=J;try{y(m)}catch(ae){Pf(ae)}m.currentTarget=null,y=F}}}}function tt(i,o){var l=o[Sm];l===void 0&&(l=o[Sm]=new Set);var u=i+"__bubble";l.has(u)||(aw(o,i,2,!1),l.add(u))}function ly(i,o,l){var u=0;o&&(u|=4),aw(l,i,u,o)}var vd="_reactListening"+Math.random().toString(36).slice(2);function cy(i){if(!i[vd]){i[vd]=!0,Jx.forEach(function(l){l!=="selectionchange"&&(k$.has(l)||ly(l,!1,i),ly(l,!0,i))});var o=i.nodeType===9?i:i.ownerDocument;o===null||o[vd]||(o[vd]=!0,ly("selectionchange",!1,o))}}function aw(i,o,l,u){switch(Lw(o)){case 2:var m=sB;break;case 8:m=lB;break;default:m=wy}l=m.bind(null,o,l,i),m=void 0,!_m||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(m=!0),u?m!==void 0?i.addEventListener(o,l,{capture:!0,passive:m}):i.addEventListener(o,l,!0):m!==void 0?i.addEventListener(o,l,{passive:m}):i.addEventListener(o,l,!1)}function uy(i,o,l,u,m){var y=u;if((o&1)===0&&(o&2)===0&&u!==null)e:for(;;){if(u===null)return;var C=u.tag;if(C===3||C===4){var N=u.stateNode.containerInfo;if(N===m)break;if(C===4)for(C=u.return;C!==null;){var F=C.tag;if((F===3||F===4)&&C.stateNode.containerInfo===m)return;C=C.return}for(;N!==null;){if(C=_s(N),C===null)return;if(F=C.tag,F===5||F===6||F===26||F===27){u=y=C;continue e}N=N.parentNode}}u=u.return}f1(function(){var J=y,ae=Om(l),ue=[];e:{var ee=j1.get(i);if(ee!==void 0){var re=_f,Ee=i;switch(i){case"keypress":if(Of(l)===0)break e;case"keydown":case"keyup":re=AL;break;case"focusin":Ee="focus",re=km;break;case"focusout":Ee="blur",re=km;break;case"beforeblur":case"afterblur":re=km;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":re=h1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=hL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=_L;break;case L1:case $1:case B1:re=yL;break;case I1:re=DL;break;case"scroll":case"scrollend":re=dL;break;case"wheel":re=kL;break;case"copy":case"cut":case"paste":re=bL;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=g1;break;case"toggle":case"beforetoggle":re=LL}var ke=(o&4)!==0,Et=!ke&&(i==="scroll"||i==="scrollend"),Z=ke?ee!==null?ee+"Capture":null:ee;ke=[];for(var Y=J,Q;Y!==null;){var ce=Y;if(Q=ce.stateNode,ce=ce.tag,ce!==5&&ce!==26&&ce!==27||Q===null||Z===null||(ce=rc(Y,Z),ce!=null&&ke.push($c(Y,ce,Q))),Et)break;Y=Y.return}0<ke.length&&(ee=new re(ee,Ee,null,l,ae),ue.push({event:ee,listeners:ke}))}}if((o&7)===0){e:{if(ee=i==="mouseover"||i==="pointerover",re=i==="mouseout"||i==="pointerout",ee&&l!==Am&&(Ee=l.relatedTarget||l.fromElement)&&(_s(Ee)||Ee[Rs]))break e;if((re||ee)&&(ee=ae.window===ae?ae:(ee=ae.ownerDocument)?ee.defaultView||ee.parentWindow:window,re?(Ee=l.relatedTarget||l.toElement,re=J,Ee=Ee?_s(Ee):null,Ee!==null&&(Et=s(Ee),ke=Ee.tag,Ee!==Et||ke!==5&&ke!==27&&ke!==6)&&(Ee=null)):(re=null,Ee=J),re!==Ee)){if(ke=h1,ce="onMouseLeave",Z="onMouseEnter",Y="mouse",(i==="pointerout"||i==="pointerover")&&(ke=g1,ce="onPointerLeave",Z="onPointerEnter",Y="pointer"),Et=re==null?ee:nc(re),Q=Ee==null?ee:nc(Ee),ee=new ke(ce,Y+"leave",re,l,ae),ee.target=Et,ee.relatedTarget=Q,ce=null,_s(ae)===J&&(ke=new ke(Z,Y+"enter",Ee,l,ae),ke.target=Q,ke.relatedTarget=Et,ce=ke),Et=ce,re&&Ee)t:{for(ke=N$,Z=re,Y=Ee,Q=0,ce=Z;ce;ce=ke(ce))Q++;ce=0;for(var De=Y;De;De=ke(De))ce++;for(;0<Q-ce;)Z=ke(Z),Q--;for(;0<ce-Q;)Y=ke(Y),ce--;for(;Q--;){if(Z===Y||Y!==null&&Z===Y.alternate){ke=Z;break t}Z=ke(Z),Y=ke(Y)}ke=null}else ke=null;re!==null&&sw(ue,ee,re,ke,!1),Ee!==null&&Et!==null&&sw(ue,Et,Ee,ke,!0)}}e:{if(ee=J?nc(J):window,re=ee.nodeName&&ee.nodeName.toLowerCase(),re==="select"||re==="input"&&ee.type==="file")var ct=w1;else if(T1(ee))if(C1)ct=qL;else{ct=VL;var Ce=FL}else re=ee.nodeName,!re||re.toLowerCase()!=="input"||ee.type!=="checkbox"&&ee.type!=="radio"?J&&Cm(J.elementType)&&(ct=w1):ct=HL;if(ct&&(ct=ct(i,J))){E1(ue,ct,l,ae);break e}Ce&&Ce(i,ee,J),i==="focusout"&&J&&ee.type==="number"&&J.memoizedProps.value!=null&&wm(ee,"number",ee.value)}switch(Ce=J?nc(J):window,i){case"focusin":(T1(Ce)||Ce.contentEditable==="true")&&(Is=Ce,jm=J,fc=null);break;case"focusout":fc=jm=Is=null;break;case"mousedown":zm=!0;break;case"contextmenu":case"mouseup":case"dragend":zm=!1,k1(ue,l,ae);break;case"selectionchange":if(YL)break;case"keydown":case"keyup":k1(ue,l,ae)}var Xe;if(Lm)e:{switch(i){case"compositionstart":var it="onCompositionStart";break e;case"compositionend":it="onCompositionEnd";break e;case"compositionupdate":it="onCompositionUpdate";break e}it=void 0}else Bs?S1(i,l)&&(it="onCompositionEnd"):i==="keydown"&&l.keyCode===229&&(it="onCompositionStart");it&&(y1&&l.locale!=="ko"&&(Bs||it!=="onCompositionStart"?it==="onCompositionEnd"&&Bs&&(Xe=d1()):(Eo=ae,Mm="value"in Eo?Eo.value:Eo.textContent,Bs=!0)),Ce=bd(J,it),0<Ce.length&&(it=new m1(it,i,null,l,ae),ue.push({event:it,listeners:Ce}),Xe?it.data=Xe:(Xe=x1(l),Xe!==null&&(it.data=Xe)))),(Xe=BL?IL(i,l):jL(i,l))&&(it=bd(J,"onBeforeInput"),0<it.length&&(Ce=new m1("onBeforeInput","beforeinput",null,l,ae),ue.push({event:Ce,listeners:it}),Ce.data=Xe)),M$(ue,i,J,l,ae)}ow(ue,o)})}function $c(i,o,l){return{instance:i,listener:o,currentTarget:l}}function bd(i,o){for(var l=o+"Capture",u=[];i!==null;){var m=i,y=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||y===null||(m=rc(i,l),m!=null&&u.unshift($c(i,m,y)),m=rc(i,o),m!=null&&u.push($c(i,m,y))),i.tag===3)return u;i=i.return}return[]}function N$(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function sw(i,o,l,u,m){for(var y=o._reactName,C=[];l!==null&&l!==u;){var N=l,F=N.alternate,J=N.stateNode;if(N=N.tag,F!==null&&F===u)break;N!==5&&N!==26&&N!==27||J===null||(F=J,m?(J=rc(l,y),J!=null&&C.unshift($c(l,J,F))):m||(J=rc(l,y),J!=null&&C.push($c(l,J,F)))),l=l.return}C.length!==0&&i.push({event:o,listeners:C})}var L$=/\r\n?/g,$$=/\u0000|\uFFFD/g;function lw(i){return(typeof i=="string"?i:""+i).replace(L$,`
49
+ `).replace($$,"")}function cw(i,o){return o=lw(o),lw(i)===o}function Tt(i,o,l,u,m,y){switch(l){case"children":typeof u=="string"?o==="body"||o==="textarea"&&u===""||Ns(i,u):(typeof u=="number"||typeof u=="bigint")&&o!=="body"&&Ns(i,""+u);break;case"className":Ef(i,"class",u);break;case"tabIndex":Ef(i,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Ef(i,l,u);break;case"style":c1(i,u,y);break;case"data":if(o!=="object"){Ef(i,"data",u);break}case"src":case"href":if(u===""&&(o!=="a"||l!=="href")){i.removeAttribute(l);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){i.removeAttribute(l);break}u=Cf(""+u),i.setAttribute(l,u);break;case"action":case"formAction":if(typeof u=="function"){i.setAttribute(l,"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 y=="function"&&(l==="formAction"?(o!=="input"&&Tt(i,o,"name",m.name,m,null),Tt(i,o,"formEncType",m.formEncType,m,null),Tt(i,o,"formMethod",m.formMethod,m,null),Tt(i,o,"formTarget",m.formTarget,m,null)):(Tt(i,o,"encType",m.encType,m,null),Tt(i,o,"method",m.method,m,null),Tt(i,o,"target",m.target,m,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){i.removeAttribute(l);break}u=Cf(""+u),i.setAttribute(l,u);break;case"onClick":u!=null&&(i.onclick=Li);break;case"onScroll":u!=null&&tt("scroll",i);break;case"onScrollEnd":u!=null&&tt("scrollend",i);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(r(61));if(l=u.__html,l!=null){if(m.children!=null)throw Error(r(60));i.innerHTML=l}}break;case"multiple":i.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":i.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){i.removeAttribute("xlink:href");break}l=Cf(""+u),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?i.setAttribute(l,""+u):i.removeAttribute(l);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":u&&typeof u!="function"&&typeof u!="symbol"?i.setAttribute(l,""):i.removeAttribute(l);break;case"capture":case"download":u===!0?i.setAttribute(l,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?i.setAttribute(l,u):i.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?i.setAttribute(l,u):i.removeAttribute(l);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?i.removeAttribute(l):i.setAttribute(l,u);break;case"popover":tt("beforetoggle",i),tt("toggle",i),Tf(i,"popover",u);break;case"xlinkActuate":Ni(i,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Ni(i,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Ni(i,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Ni(i,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Ni(i,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Ni(i,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Ni(i,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Ni(i,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Ni(i,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Tf(i,"is",u);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=uL.get(l)||l,Tf(i,l,u))}}function fy(i,o,l,u,m,y){switch(l){case"style":c1(i,u,y);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(r(61));if(l=u.__html,l!=null){if(m.children!=null)throw Error(r(60));i.innerHTML=l}}break;case"children":typeof u=="string"?Ns(i,u):(typeof u=="number"||typeof u=="bigint")&&Ns(i,""+u);break;case"onScroll":u!=null&&tt("scroll",i);break;case"onScrollEnd":u!=null&&tt("scrollend",i);break;case"onClick":u!=null&&(i.onclick=Li);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!e1.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(m=l.endsWith("Capture"),o=l.slice(2,m?l.length-7:void 0),y=i[Vn]||null,y=y!=null?y[l]:null,typeof y=="function"&&i.removeEventListener(o,y,m),typeof u=="function")){typeof y!="function"&&y!==null&&(l in i?i[l]=null:i.hasAttribute(l)&&i.removeAttribute(l)),i.addEventListener(o,u,m);break e}l in i?i[l]=u:u===!0?i.setAttribute(l,""):Tf(i,l,u)}}}function Cn(i,o,l){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":tt("error",i),tt("load",i);var u=!1,m=!1,y;for(y in l)if(l.hasOwnProperty(y)){var C=l[y];if(C!=null)switch(y){case"src":u=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:Tt(i,o,y,C,l,null)}}m&&Tt(i,o,"srcSet",l.srcSet,l,null),u&&Tt(i,o,"src",l.src,l,null);return;case"input":tt("invalid",i);var N=y=C=m=null,F=null,J=null;for(u in l)if(l.hasOwnProperty(u)){var ae=l[u];if(ae!=null)switch(u){case"name":m=ae;break;case"type":C=ae;break;case"checked":F=ae;break;case"defaultChecked":J=ae;break;case"value":y=ae;break;case"defaultValue":N=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(r(137,o));break;default:Tt(i,o,u,ae,l,null)}}o1(i,y,N,F,J,C,m,!1);return;case"select":tt("invalid",i),u=C=y=null;for(m in l)if(l.hasOwnProperty(m)&&(N=l[m],N!=null))switch(m){case"value":y=N;break;case"defaultValue":C=N;break;case"multiple":u=N;default:Tt(i,o,m,N,l,null)}o=y,l=C,i.multiple=!!u,o!=null?ks(i,!!u,o,!1):l!=null&&ks(i,!!u,l,!0);return;case"textarea":tt("invalid",i),y=m=u=null;for(C in l)if(l.hasOwnProperty(C)&&(N=l[C],N!=null))switch(C){case"value":u=N;break;case"defaultValue":m=N;break;case"children":y=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(r(91));break;default:Tt(i,o,C,N,l,null)}s1(i,u,m,y);return;case"option":for(F in l)if(l.hasOwnProperty(F)&&(u=l[F],u!=null))switch(F){case"selected":i.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:Tt(i,o,F,u,l,null)}return;case"dialog":tt("beforetoggle",i),tt("toggle",i),tt("cancel",i),tt("close",i);break;case"iframe":case"object":tt("load",i);break;case"video":case"audio":for(u=0;u<Lc.length;u++)tt(Lc[u],i);break;case"image":tt("error",i),tt("load",i);break;case"details":tt("toggle",i);break;case"embed":case"source":case"link":tt("error",i),tt("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(J in l)if(l.hasOwnProperty(J)&&(u=l[J],u!=null))switch(J){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:Tt(i,o,J,u,l,null)}return;default:if(Cm(o)){for(ae in l)l.hasOwnProperty(ae)&&(u=l[ae],u!==void 0&&fy(i,o,ae,u,l,void 0));return}}for(N in l)l.hasOwnProperty(N)&&(u=l[N],u!=null&&Tt(i,o,N,u,l,null))}function B$(i,o,l,u){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,y=null,C=null,N=null,F=null,J=null,ae=null;for(re in l){var ue=l[re];if(l.hasOwnProperty(re)&&ue!=null)switch(re){case"checked":break;case"value":break;case"defaultValue":F=ue;default:u.hasOwnProperty(re)||Tt(i,o,re,null,u,ue)}}for(var ee in u){var re=u[ee];if(ue=l[ee],u.hasOwnProperty(ee)&&(re!=null||ue!=null))switch(ee){case"type":y=re;break;case"name":m=re;break;case"checked":J=re;break;case"defaultChecked":ae=re;break;case"value":C=re;break;case"defaultValue":N=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(r(137,o));break;default:re!==ue&&Tt(i,o,ee,re,u,ue)}}Em(i,C,N,F,J,ae,y,m);return;case"select":re=C=N=ee=null;for(y in l)if(F=l[y],l.hasOwnProperty(y)&&F!=null)switch(y){case"value":break;case"multiple":re=F;default:u.hasOwnProperty(y)||Tt(i,o,y,null,u,F)}for(m in u)if(y=u[m],F=l[m],u.hasOwnProperty(m)&&(y!=null||F!=null))switch(m){case"value":ee=y;break;case"defaultValue":N=y;break;case"multiple":C=y;default:y!==F&&Tt(i,o,m,y,u,F)}o=N,l=C,u=re,ee!=null?ks(i,!!l,ee,!1):!!u!=!!l&&(o!=null?ks(i,!!l,o,!0):ks(i,!!l,l?[]:"",!1));return;case"textarea":re=ee=null;for(N in l)if(m=l[N],l.hasOwnProperty(N)&&m!=null&&!u.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:Tt(i,o,N,null,u,m)}for(C in u)if(m=u[C],y=l[C],u.hasOwnProperty(C)&&(m!=null||y!=null))switch(C){case"value":ee=m;break;case"defaultValue":re=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(r(91));break;default:m!==y&&Tt(i,o,C,m,u,y)}a1(i,ee,re);return;case"option":for(var Ee in l)if(ee=l[Ee],l.hasOwnProperty(Ee)&&ee!=null&&!u.hasOwnProperty(Ee))switch(Ee){case"selected":i.selected=!1;break;default:Tt(i,o,Ee,null,u,ee)}for(F in u)if(ee=u[F],re=l[F],u.hasOwnProperty(F)&&ee!==re&&(ee!=null||re!=null))switch(F){case"selected":i.selected=ee&&typeof ee!="function"&&typeof ee!="symbol";break;default:Tt(i,o,F,ee,u,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 ke in l)ee=l[ke],l.hasOwnProperty(ke)&&ee!=null&&!u.hasOwnProperty(ke)&&Tt(i,o,ke,null,u,ee);for(J in u)if(ee=u[J],re=l[J],u.hasOwnProperty(J)&&ee!==re&&(ee!=null||re!=null))switch(J){case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(137,o));break;default:Tt(i,o,J,ee,u,re)}return;default:if(Cm(o)){for(var Et in l)ee=l[Et],l.hasOwnProperty(Et)&&ee!==void 0&&!u.hasOwnProperty(Et)&&fy(i,o,Et,void 0,u,ee);for(ae in u)ee=u[ae],re=l[ae],!u.hasOwnProperty(ae)||ee===re||ee===void 0&&re===void 0||fy(i,o,ae,ee,u,re);return}}for(var Z in l)ee=l[Z],l.hasOwnProperty(Z)&&ee!=null&&!u.hasOwnProperty(Z)&&Tt(i,o,Z,null,u,ee);for(ue in u)ee=u[ue],re=l[ue],!u.hasOwnProperty(ue)||ee===re||ee==null&&re==null||Tt(i,o,ue,ee,u,re)}function uw(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function I$(){if(typeof performance.getEntriesByType=="function"){for(var i=0,o=0,l=performance.getEntriesByType("resource"),u=0;u<l.length;u++){var m=l[u],y=m.transferSize,C=m.initiatorType,N=m.duration;if(y&&N&&uw(C)){for(C=0,N=m.responseEnd,u+=1;u<l.length;u++){var F=l[u],J=F.startTime;if(J>N)break;var ae=F.transferSize,ue=F.initiatorType;ae&&uw(ue)&&(F=F.responseEnd,C+=ae*(F<N?1:(N-J)/(F-J)))}if(--u,o+=8*(y+C)/(m.duration/1e3),i++,10<i)break}}if(0<i)return o/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var dy=null,py=null;function Sd(i){return i.nodeType===9?i:i.ownerDocument}function fw(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function dw(i,o){if(i===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&o==="foreignObject"?0:i}function hy(i,o){return i==="textarea"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var my=null;function j$(){var i=window.event;return i&&i.type==="popstate"?i===my?!1:(my=i,!0):(my=null,!1)}var pw=typeof setTimeout=="function"?setTimeout:void 0,z$=typeof clearTimeout=="function"?clearTimeout:void 0,hw=typeof Promise=="function"?Promise:void 0,U$=typeof queueMicrotask=="function"?queueMicrotask:typeof hw<"u"?function(i){return hw.resolve(null).then(i).catch(F$)}:pw;function F$(i){setTimeout(function(){throw i})}function zo(i){return i==="head"}function mw(i,o){var l=o,u=0;do{var m=l.nextSibling;if(i.removeChild(l),m&&m.nodeType===8)if(l=m.data,l==="/$"||l==="/&"){if(u===0){i.removeChild(m),fl(o);return}u--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")u++;else if(l==="html")Bc(i.ownerDocument.documentElement);else if(l==="head"){l=i.ownerDocument.head,Bc(l);for(var y=l.firstChild;y;){var C=y.nextSibling,N=y.nodeName;y[tc]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&y.rel.toLowerCase()==="stylesheet"||l.removeChild(y),y=C}}else l==="body"&&Bc(i.ownerDocument.body);l=m}while(l);fl(o)}function gw(i,o){var l=i;i=0;do{var u=l.nextSibling;if(l.nodeType===1?o?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(o?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),u&&u.nodeType===8)if(l=u.data,l==="/$"){if(i===0)break;i--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||i++;l=u}while(l)}function gy(i){var o=i.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var l=o;switch(o=o.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":gy(l),xm(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}i.removeChild(l)}}function V$(i,o,l,u){for(;i.nodeType===1;){var m=l;if(i.nodeName.toLowerCase()!==o.toLowerCase()){if(!u&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(u){if(!i[tc])switch(o){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(y=i.getAttribute("rel"),y==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(y!==m.rel||i.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||i.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||i.getAttribute("title")!==(m.title==null?null:m.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(y=i.getAttribute("src"),(y!==(m.src==null?null:m.src)||i.getAttribute("type")!==(m.type==null?null:m.type)||i.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&y&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(o==="input"&&i.type==="hidden"){var y=m.name==null?null:""+m.name;if(m.type==="hidden"&&i.getAttribute("name")===y)return i}else return i;if(i=Mr(i.nextSibling),i===null)break}return null}function H$(i,o,l){if(o==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!l||(i=Mr(i.nextSibling),i===null))return null;return i}function yw(i,o){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!o||(i=Mr(i.nextSibling),i===null))return null;return i}function yy(i){return i.data==="$?"||i.data==="$~"}function vy(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function q$(i,o){var l=i.ownerDocument;if(i.data==="$~")i._reactRetry=o;else if(i.data!=="$?"||l.readyState!=="loading")o();else{var u=function(){o(),l.removeEventListener("DOMContentLoaded",u)};l.addEventListener("DOMContentLoaded",u),i._reactRetry=u}}function Mr(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===1||o===3)break;if(o===8){if(o=i.data,o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"||o==="F!"||o==="F")break;if(o==="/$"||o==="/&")return null}}return i}var by=null;function vw(i){i=i.nextSibling;for(var o=0;i;){if(i.nodeType===8){var l=i.data;if(l==="/$"||l==="/&"){if(o===0)return Mr(i.nextSibling);o--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||o++}i=i.nextSibling}return null}function bw(i){i=i.previousSibling;for(var o=0;i;){if(i.nodeType===8){var l=i.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(o===0)return i;o--}else l!=="/$"&&l!=="/&"||o++}i=i.previousSibling}return null}function Sw(i,o,l){switch(o=Sd(l),i){case"html":if(i=o.documentElement,!i)throw Error(r(452));return i;case"head":if(i=o.head,!i)throw Error(r(453));return i;case"body":if(i=o.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function Bc(i){for(var o=i.attributes;o.length;)i.removeAttributeNode(o[0]);xm(i)}var Dr=new Map,xw=new Set;function xd(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Zi=I.d;I.d={f:G$,r:Y$,D:W$,C:K$,L:X$,m:Z$,X:J$,S:Q$,M:eB};function G$(){var i=Zi.f(),o=dd();return i||o}function Y$(i){var o=Ms(i);o!==null&&o.tag===5&&o.type==="form"?IT(o):Zi.r(i)}var ll=typeof document>"u"?null:document;function Tw(i,o,l){var u=ll;if(u&&typeof o=="string"&&o){var m=Er(o);m='link[rel="'+i+'"][href="'+m+'"]',typeof l=="string"&&(m+='[crossorigin="'+l+'"]'),xw.has(m)||(xw.add(m),i={rel:i,crossOrigin:l,href:o},u.querySelector(m)===null&&(o=u.createElement("link"),Cn(o,"link",i),gn(o),u.head.appendChild(o)))}}function W$(i){Zi.D(i),Tw("dns-prefetch",i,null)}function K$(i,o){Zi.C(i,o),Tw("preconnect",i,o)}function X$(i,o,l){Zi.L(i,o,l);var u=ll;if(u&&i&&o){var m='link[rel="preload"][as="'+Er(o)+'"]';o==="image"&&l&&l.imageSrcSet?(m+='[imagesrcset="'+Er(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(m+='[imagesizes="'+Er(l.imageSizes)+'"]')):m+='[href="'+Er(i)+'"]';var y=m;switch(o){case"style":y=cl(i);break;case"script":y=ul(i)}Dr.has(y)||(i=g({rel:"preload",href:o==="image"&&l&&l.imageSrcSet?void 0:i,as:o},l),Dr.set(y,i),u.querySelector(m)!==null||o==="style"&&u.querySelector(Ic(y))||o==="script"&&u.querySelector(jc(y))||(o=u.createElement("link"),Cn(o,"link",i),gn(o),u.head.appendChild(o)))}}function Z$(i,o){Zi.m(i,o);var l=ll;if(l&&i){var u=o&&typeof o.as=="string"?o.as:"script",m='link[rel="modulepreload"][as="'+Er(u)+'"][href="'+Er(i)+'"]',y=m;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=ul(i)}if(!Dr.has(y)&&(i=g({rel:"modulepreload",href:i},o),Dr.set(y,i),l.querySelector(m)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(jc(y)))return}u=l.createElement("link"),Cn(u,"link",i),gn(u),l.head.appendChild(u)}}}function Q$(i,o,l){Zi.S(i,o,l);var u=ll;if(u&&i){var m=Ds(u).hoistableStyles,y=cl(i);o=o||"default";var C=m.get(y);if(!C){var N={loading:0,preload:null};if(C=u.querySelector(Ic(y)))N.loading=5;else{i=g({rel:"stylesheet",href:i,"data-precedence":o},l),(l=Dr.get(y))&&Sy(i,l);var F=C=u.createElement("link");gn(F),Cn(F,"link",i),F._p=new Promise(function(J,ae){F.onload=J,F.onerror=ae}),F.addEventListener("load",function(){N.loading|=1}),F.addEventListener("error",function(){N.loading|=2}),N.loading|=4,Td(C,o,u)}C={type:"stylesheet",instance:C,count:1,state:N},m.set(y,C)}}}function J$(i,o){Zi.X(i,o);var l=ll;if(l&&i){var u=Ds(l).hoistableScripts,m=ul(i),y=u.get(m);y||(y=l.querySelector(jc(m)),y||(i=g({src:i,async:!0},o),(o=Dr.get(m))&&xy(i,o),y=l.createElement("script"),gn(y),Cn(y,"link",i),l.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},u.set(m,y))}}function eB(i,o){Zi.M(i,o);var l=ll;if(l&&i){var u=Ds(l).hoistableScripts,m=ul(i),y=u.get(m);y||(y=l.querySelector(jc(m)),y||(i=g({src:i,async:!0,type:"module"},o),(o=Dr.get(m))&&xy(i,o),y=l.createElement("script"),gn(y),Cn(y,"link",i),l.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},u.set(m,y))}}function Ew(i,o,l,u){var m=(m=he.current)?xd(m):null;if(!m)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(o=cl(l.href),l=Ds(m).hoistableStyles,u=l.get(o),u||(u={type:"style",instance:null,count:0,state:null},l.set(o,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){i=cl(l.href);var y=Ds(m).hoistableStyles,C=y.get(i);if(C||(m=m.ownerDocument||m,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(i,C),(y=m.querySelector(Ic(i)))&&!y._p&&(C.instance=y,C.state.loading=5),Dr.has(i)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Dr.set(i,l),y||tB(m,i,l,C.state))),o&&u===null)throw Error(r(528,""));return C}if(o&&u!==null)throw Error(r(529,""));return null;case"script":return o=l.async,l=l.src,typeof l=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=ul(l),l=Ds(m).hoistableScripts,u=l.get(o),u||(u={type:"script",instance:null,count:0,state:null},l.set(o,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function cl(i){return'href="'+Er(i)+'"'}function Ic(i){return'link[rel="stylesheet"]['+i+"]"}function ww(i){return g({},i,{"data-precedence":i.precedence,precedence:null})}function tB(i,o,l,u){i.querySelector('link[rel="preload"][as="style"]['+o+"]")?u.loading=1:(o=i.createElement("link"),u.preload=o,o.addEventListener("load",function(){return u.loading|=1}),o.addEventListener("error",function(){return u.loading|=2}),Cn(o,"link",l),gn(o),i.head.appendChild(o))}function ul(i){return'[src="'+Er(i)+'"]'}function jc(i){return"script[async]"+i}function Cw(i,o,l){if(o.count++,o.instance===null)switch(o.type){case"style":var u=i.querySelector('style[data-href~="'+Er(l.href)+'"]');if(u)return o.instance=u,gn(u),u;var m=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(i.ownerDocument||i).createElement("style"),gn(u),Cn(u,"style",m),Td(u,l.precedence,i),o.instance=u;case"stylesheet":m=cl(l.href);var y=i.querySelector(Ic(m));if(y)return o.state.loading|=4,o.instance=y,gn(y),y;u=ww(l),(m=Dr.get(m))&&Sy(u,m),y=(i.ownerDocument||i).createElement("link"),gn(y);var C=y;return C._p=new Promise(function(N,F){C.onload=N,C.onerror=F}),Cn(y,"link",u),o.state.loading|=4,Td(y,l.precedence,i),o.instance=y;case"script":return y=ul(l.src),(m=i.querySelector(jc(y)))?(o.instance=m,gn(m),m):(u=l,(m=Dr.get(y))&&(u=g({},l),xy(u,m)),i=i.ownerDocument||i,m=i.createElement("script"),gn(m),Cn(m,"link",u),i.head.appendChild(m),o.instance=m);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(u=o.instance,o.state.loading|=4,Td(u,l.precedence,i));return o.instance}function Td(i,o,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=u.length?u[u.length-1]:null,y=m,C=0;C<u.length;C++){var N=u[C];if(N.dataset.precedence===o)y=N;else if(y!==m)break}y?y.parentNode.insertBefore(i,y.nextSibling):(o=l.nodeType===9?l.head:l,o.insertBefore(i,o.firstChild))}function Sy(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.title==null&&(i.title=o.title)}function xy(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.integrity==null&&(i.integrity=o.integrity)}var Ed=null;function Aw(i,o,l){if(Ed===null){var u=new Map,m=Ed=new Map;m.set(l,u)}else m=Ed,u=m.get(l),u||(u=new Map,m.set(l,u));if(u.has(i))return u;for(u.set(i,null),l=l.getElementsByTagName(i),m=0;m<l.length;m++){var y=l[m];if(!(y[tc]||y[xn]||i==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var C=y.getAttribute(o)||"";C=i+C;var N=u.get(C);N?N.push(y):u.set(C,[y])}}return u}function Ow(i,o,l){i=i.ownerDocument||i,i.head.insertBefore(l,o==="title"?i.querySelector("head > title"):null)}function nB(i,o,l){if(l===1||o.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return i=o.disabled,typeof o.precedence=="string"&&i==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function Rw(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function rB(i,o,l,u){if(l.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var m=cl(u.href),y=o.querySelector(Ic(m));if(y){o=y._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(i.count++,i=wd.bind(i),o.then(i,i)),l.state.loading|=4,l.instance=y,gn(y);return}y=o.ownerDocument||o,u=ww(u),(m=Dr.get(m))&&Sy(u,m),y=y.createElement("link"),gn(y);var C=y;C._p=new Promise(function(N,F){C.onload=N,C.onerror=F}),Cn(y,"link",u),l.instance=y}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(l,o),(o=l.state.preload)&&(l.state.loading&3)===0&&(i.count++,l=wd.bind(i),o.addEventListener("load",l),o.addEventListener("error",l))}}var Ty=0;function iB(i,o){return i.stylesheets&&i.count===0&&Ad(i,i.stylesheets),0<i.count||0<i.imgCount?function(l){var u=setTimeout(function(){if(i.stylesheets&&Ad(i,i.stylesheets),i.unsuspend){var y=i.unsuspend;i.unsuspend=null,y()}},6e4+o);0<i.imgBytes&&Ty===0&&(Ty=62500*I$());var m=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&Ad(i,i.stylesheets),i.unsuspend)){var y=i.unsuspend;i.unsuspend=null,y()}},(i.imgBytes>Ty?50:800)+o);return i.unsuspend=l,function(){i.unsuspend=null,clearTimeout(u),clearTimeout(m)}}:null}function wd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ad(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Cd=null;function Ad(i,o){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Cd=new Map,o.forEach(oB,i),Cd=null,wd.call(i))}function oB(i,o){if(!(o.state.loading&4)){var l=Cd.get(i);if(l)var u=l.get(null);else{l=new Map,Cd.set(i,l);for(var m=i.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<m.length;y++){var C=m[y];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(l.set(C.dataset.precedence,C),u=C)}u&&l.set(null,u)}m=o.instance,C=m.getAttribute("data-precedence"),y=l.get(C)||u,y===u&&l.set(null,m),l.set(C,m),this.count++,u=wd.bind(this),m.addEventListener("load",u),m.addEventListener("error",u),y?y.parentNode.insertBefore(m,y.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(m,i.firstChild)),o.state.loading|=4}}var zc={$$typeof:A,Provider:null,Consumer:null,_currentValue:q,_currentValue2:q,_threadCount:0};function aB(i,o,l,u,m,y,C,N,F){this.tag=1,this.containerInfo=i,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=xr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xr(0),this.hiddenUpdates=xr(null),this.identifierPrefix=u,this.onUncaughtError=m,this.onCaughtError=y,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=F,this.incompleteTransitions=new Map}function _w(i,o,l,u,m,y,C,N,F,J,ae,ue){return i=new aB(i,o,l,C,F,J,ae,ue,N),o=1,y===!0&&(o|=24),y=ar(3,null,null,o),i.current=y,y.stateNode=i,o=tg(),o.refCount++,i.pooledCache=o,o.refCount++,y.memoizedState={element:u,isDehydrated:l,cache:o},og(y),i}function Mw(i){return i?(i=Us,i):Us}function Dw(i,o,l,u,m,y){m=Mw(m),u.context===null?u.context=m:u.pendingContext=m,u=_o(o),u.payload={element:l},y=y===void 0?null:y,y!==null&&(u.callback=y),l=Mo(i,u,o),l!==null&&(Kn(l,i,o),vc(l,i,o))}function Pw(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var l=i.retryLane;i.retryLane=l!==0&&l<o?l:o}}function Ey(i,o){Pw(i,o),(i=i.alternate)&&Pw(i,o)}function kw(i){if(i.tag===13||i.tag===31){var o=ba(i,67108864);o!==null&&Kn(o,i,67108864),Ey(i,67108864)}}function Nw(i){if(i.tag===13||i.tag===31){var o=fr();o=vm(o);var l=ba(i,o);l!==null&&Kn(l,i,o),Ey(i,o)}}var Od=!0;function sB(i,o,l,u){var m=k.T;k.T=null;var y=I.p;try{I.p=2,wy(i,o,l,u)}finally{I.p=y,k.T=m}}function lB(i,o,l,u){var m=k.T;k.T=null;var y=I.p;try{I.p=8,wy(i,o,l,u)}finally{I.p=y,k.T=m}}function wy(i,o,l,u){if(Od){var m=Cy(u);if(m===null)uy(i,o,u,Rd,l),$w(i,u);else if(uB(m,i,o,l,u))u.stopPropagation();else if($w(i,u),o&4&&-1<cB.indexOf(i)){for(;m!==null;){var y=Ms(m);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var C=ki(y.pendingLanes);if(C!==0){var N=y;for(N.pendingLanes|=2,N.entangledLanes|=2;C;){var F=1<<31-He(C);N.entanglements[1]|=F,C&=~F}ui(y),(ft&6)===0&&(ud=de()+500,Nc(0))}}break;case 31:case 13:N=ba(y,2),N!==null&&Kn(N,y,2),dd(),Ey(y,2)}if(y=Cy(u),y===null&&uy(i,o,u,Rd,l),y===m)break;m=y}m!==null&&u.stopPropagation()}else uy(i,o,u,null,l)}}function Cy(i){return i=Om(i),Ay(i)}var Rd=null;function Ay(i){if(Rd=null,i=_s(i),i!==null){var o=s(i);if(o===null)i=null;else{var l=o.tag;if(l===13){if(i=c(o),i!==null)return i;i=null}else if(l===31){if(i=f(o),i!==null)return i;i=null}else if(l===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Rd=i,null}function Lw(i){switch(i){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(be()){case Te:return 2;case Se:return 8;case ze:case ot:return 32;case $t:return 268435456;default:return 32}default:return 32}}var Oy=!1,Uo=null,Fo=null,Vo=null,Uc=new Map,Fc=new Map,Ho=[],cB="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 $w(i,o){switch(i){case"focusin":case"focusout":Uo=null;break;case"dragenter":case"dragleave":Fo=null;break;case"mouseover":case"mouseout":Vo=null;break;case"pointerover":case"pointerout":Uc.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fc.delete(o.pointerId)}}function Vc(i,o,l,u,m,y){return i===null||i.nativeEvent!==y?(i={blockedOn:o,domEventName:l,eventSystemFlags:u,nativeEvent:y,targetContainers:[m]},o!==null&&(o=Ms(o),o!==null&&kw(o)),i):(i.eventSystemFlags|=u,o=i.targetContainers,m!==null&&o.indexOf(m)===-1&&o.push(m),i)}function uB(i,o,l,u,m){switch(o){case"focusin":return Uo=Vc(Uo,i,o,l,u,m),!0;case"dragenter":return Fo=Vc(Fo,i,o,l,u,m),!0;case"mouseover":return Vo=Vc(Vo,i,o,l,u,m),!0;case"pointerover":var y=m.pointerId;return Uc.set(y,Vc(Uc.get(y)||null,i,o,l,u,m)),!0;case"gotpointercapture":return y=m.pointerId,Fc.set(y,Vc(Fc.get(y)||null,i,o,l,u,m)),!0}return!1}function Bw(i){var o=_s(i.target);if(o!==null){var l=s(o);if(l!==null){if(o=l.tag,o===13){if(o=c(l),o!==null){i.blockedOn=o,Zx(i.priority,function(){Nw(l)});return}}else if(o===31){if(o=f(l),o!==null){i.blockedOn=o,Zx(i.priority,function(){Nw(l)});return}}else if(o===3&&l.stateNode.current.memoizedState.isDehydrated){i.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}i.blockedOn=null}function _d(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var l=Cy(i.nativeEvent);if(l===null){l=i.nativeEvent;var u=new l.constructor(l.type,l);Am=u,l.target.dispatchEvent(u),Am=null}else return o=Ms(l),o!==null&&kw(o),i.blockedOn=l,!1;o.shift()}return!0}function Iw(i,o,l){_d(i)&&l.delete(o)}function fB(){Oy=!1,Uo!==null&&_d(Uo)&&(Uo=null),Fo!==null&&_d(Fo)&&(Fo=null),Vo!==null&&_d(Vo)&&(Vo=null),Uc.forEach(Iw),Fc.forEach(Iw)}function Md(i,o){i.blockedOn===o&&(i.blockedOn=null,Oy||(Oy=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,fB)))}var Dd=null;function jw(i){Dd!==i&&(Dd=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Dd===i&&(Dd=null);for(var o=0;o<i.length;o+=3){var l=i[o],u=i[o+1],m=i[o+2];if(typeof u!="function"){if(Ay(u||l)===null)continue;break}var y=Ms(l);y!==null&&(i.splice(o,3),o-=3,Cg(y,{pending:!0,data:m,method:l.method,action:u},u,m))}}))}function fl(i){function o(F){return Md(F,i)}Uo!==null&&Md(Uo,i),Fo!==null&&Md(Fo,i),Vo!==null&&Md(Vo,i),Uc.forEach(o),Fc.forEach(o);for(var l=0;l<Ho.length;l++){var u=Ho[l];u.blockedOn===i&&(u.blockedOn=null)}for(;0<Ho.length&&(l=Ho[0],l.blockedOn===null);)Bw(l),l.blockedOn===null&&Ho.shift();if(l=(i.ownerDocument||i).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var m=l[u],y=l[u+1],C=m[Vn]||null;if(typeof y=="function")C||jw(l);else if(C){var N=null;if(y&&y.hasAttribute("formAction")){if(m=y,C=y[Vn]||null)N=C.formAction;else if(Ay(m)!==null)continue}else N=C.action;typeof N=="function"?l[u+1]=N:(l.splice(u,3),u-=3),jw(l)}}}function zw(){function i(y){y.canIntercept&&y.info==="react-transition"&&y.intercept({handler:function(){return new Promise(function(C){return m=C})},focusReset:"manual",scroll:"manual"})}function o(){m!==null&&(m(),m=null),u||setTimeout(l,20)}function l(){if(!u&&!navigation.transition){var y=navigation.currentEntry;y&&y.url!=null&&navigation.navigate(y.url,{state:y.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,m=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(l,100),function(){u=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),m!==null&&(m(),m=null)}}}function Ry(i){this._internalRoot=i}Pd.prototype.render=Ry.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error(r(409));var l=o.current,u=fr();Dw(l,u,i,o,null,null)},Pd.prototype.unmount=Ry.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var o=i.containerInfo;Dw(i.current,2,null,i,null,null),dd(),o[Rs]=null}};function Pd(i){this._internalRoot=i}Pd.prototype.unstable_scheduleHydration=function(i){if(i){var o=Xx();i={blockedOn:null,target:i,priority:o};for(var l=0;l<Ho.length&&o!==0&&o<Ho[l].priority;l++);Ho.splice(l,0,i),l===0&&Bw(i)}};var Uw=t.version;if(Uw!=="19.2.0")throw Error(r(527,Uw,"19.2.0"));I.findDOMNode=function(i){var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=p(o),i=i!==null?h(i):null,i=i===null?null:i.stateNode,i};var dB={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var kd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kd.isDisabled&&kd.supportsFiber)try{Zt=kd.inject(dB),Bt=kd}catch{}}return qc.createRoot=function(i,o){if(!a(i))throw Error(r(299));var l=!1,u="",m=WT,y=KT,C=XT;return o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(u=o.identifierPrefix),o.onUncaughtError!==void 0&&(m=o.onUncaughtError),o.onCaughtError!==void 0&&(y=o.onCaughtError),o.onRecoverableError!==void 0&&(C=o.onRecoverableError)),o=_w(i,1,!1,null,null,l,u,null,m,y,C,zw),i[Rs]=o.current,cy(i),new Ry(o)},qc.hydrateRoot=function(i,o,l){if(!a(i))throw Error(r(299));var u=!1,m="",y=WT,C=KT,N=XT,F=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onUncaughtError!==void 0&&(y=l.onUncaughtError),l.onCaughtError!==void 0&&(C=l.onCaughtError),l.onRecoverableError!==void 0&&(N=l.onRecoverableError),l.formState!==void 0&&(F=l.formState)),o=_w(i,1,!0,o,l??null,u,m,F,y,C,N,zw),o.context=Mw(null),l=o.current,u=fr(),u=vm(u),m=_o(u),m.callback=null,Mo(l,m,u),l=u,o.current.lanes=l,ec(o,l),ui(o),i[Rs]=o.current,cy(i),new Pd(o)},qc.version="19.2.0",qc}var Zw;function wB(){if(Zw)return Dy.exports;Zw=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(t){console.error(t)}}return e(),Dy.exports=EB(),Dy.exports}var CB=wB();const _u={black:"#000",white:"#fff"},dl={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},pl={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},hl={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ml={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},gl={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Gc={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},AB={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"};function co(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const bi="$$material";function Ip(){return Ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ip.apply(null,arguments)}function OB(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function RB(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var _B=(function(){function e(n){var r=this;this._insertTag=function(a){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(a,s),r.tags.push(a)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(RB(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var s=OB(a);try{s.insertRule(r,s.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var a;return(a=r.parentNode)==null?void 0:a.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Pn="-ms-",jp="-moz-",dt="-webkit-",F_="comm",Lb="rule",$b="decl",MB="@import",V_="@keyframes",DB="@layer",PB=Math.abs,Sh=String.fromCharCode,kB=Object.assign;function NB(e,t){return Rn(e,0)^45?(((t<<2^Rn(e,0))<<2^Rn(e,1))<<2^Rn(e,2))<<2^Rn(e,3):0}function H_(e){return e.trim()}function LB(e,t){return(e=t.exec(e))?e[0]:e}function pt(e,t,n){return e.replace(t,n)}function W0(e,t){return e.indexOf(t)}function Rn(e,t){return e.charCodeAt(t)|0}function Mu(e,t,n){return e.slice(t,n)}function gi(e){return e.length}function Bb(e){return e.length}function Nd(e,t){return t.push(e),e}function $B(e,t){return e.map(t).join("")}var xh=1,_l=1,q_=0,rr=0,dn=0,Fl="";function Th(e,t,n,r,a,s,c){return{value:e,root:t,parent:n,type:r,props:a,children:s,line:xh,column:_l,length:c,return:""}}function Yc(e,t){return kB(Th("",null,null,"",null,null,0),e,{length:-e.length},t)}function BB(){return dn}function IB(){return dn=rr>0?Rn(Fl,--rr):0,_l--,dn===10&&(_l=1,xh--),dn}function yr(){return dn=rr<q_?Rn(Fl,rr++):0,_l++,dn===10&&(_l=1,xh++),dn}function Si(){return Rn(Fl,rr)}function lp(){return rr}function Ju(e,t){return Mu(Fl,e,t)}function Du(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 G_(e){return xh=_l=1,q_=gi(Fl=e),rr=0,[]}function Y_(e){return Fl="",e}function cp(e){return H_(Ju(rr-1,K0(e===91?e+2:e===40?e+1:e)))}function jB(e){for(;(dn=Si())&&dn<33;)yr();return Du(e)>2||Du(dn)>3?"":" "}function zB(e,t){for(;--t&&yr()&&!(dn<48||dn>102||dn>57&&dn<65||dn>70&&dn<97););return Ju(e,lp()+(t<6&&Si()==32&&yr()==32))}function K0(e){for(;yr();)switch(dn){case e:return rr;case 34:case 39:e!==34&&e!==39&&K0(dn);break;case 40:e===41&&K0(e);break;case 92:yr();break}return rr}function UB(e,t){for(;yr()&&e+dn!==57;)if(e+dn===84&&Si()===47)break;return"/*"+Ju(t,rr-1)+"*"+Sh(e===47?e:yr())}function FB(e){for(;!Du(Si());)yr();return Ju(e,rr)}function VB(e){return Y_(up("",null,null,null,[""],e=G_(e),0,[0],e))}function up(e,t,n,r,a,s,c,f,d){for(var p=0,h=0,g=c,v=0,x=0,b=0,S=1,T=1,w=1,R=0,A="",_=a,O=s,M=r,L=A;T;)switch(b=R,R=yr()){case 40:if(b!=108&&Rn(L,g-1)==58){W0(L+=pt(cp(R),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:L+=cp(R);break;case 9:case 10:case 13:case 32:L+=jB(b);break;case 92:L+=zB(lp()-1,7);continue;case 47:switch(Si()){case 42:case 47:Nd(HB(UB(yr(),lp()),t,n),d);break;default:L+="/"}break;case 123*S:f[p++]=gi(L)*w;case 125*S:case 59:case 0:switch(R){case 0:case 125:T=0;case 59+h:w==-1&&(L=pt(L,/\f/g,"")),x>0&&gi(L)-g&&Nd(x>32?Jw(L+";",r,n,g-1):Jw(pt(L," ","")+";",r,n,g-2),d);break;case 59:L+=";";default:if(Nd(M=Qw(L,t,n,p,h,a,f,A,_=[],O=[],g),s),R===123)if(h===0)up(L,t,M,M,_,s,g,f,O);else switch(v===99&&Rn(L,3)===110?100:v){case 100:case 108:case 109:case 115:up(e,M,M,r&&Nd(Qw(e,M,M,0,0,a,f,A,a,_=[],g),O),a,O,g,f,r?_:O);break;default:up(L,M,M,M,[""],O,0,f,O)}}p=h=x=0,S=w=1,A=L="",g=c;break;case 58:g=1+gi(L),x=b;default:if(S<1){if(R==123)--S;else if(R==125&&S++==0&&IB()==125)continue}switch(L+=Sh(R),R*S){case 38:w=h>0?1:(L+="\f",-1);break;case 44:f[p++]=(gi(L)-1)*w,w=1;break;case 64:Si()===45&&(L+=cp(yr())),v=Si(),h=g=gi(A=L+=FB(lp())),R++;break;case 45:b===45&&gi(L)==2&&(S=0)}}return s}function Qw(e,t,n,r,a,s,c,f,d,p,h){for(var g=a-1,v=a===0?s:[""],x=Bb(v),b=0,S=0,T=0;b<r;++b)for(var w=0,R=Mu(e,g+1,g=PB(S=c[b])),A=e;w<x;++w)(A=H_(S>0?v[w]+" "+R:pt(R,/&\f/g,v[w])))&&(d[T++]=A);return Th(e,t,n,a===0?Lb:f,d,p,h)}function HB(e,t,n){return Th(e,t,n,F_,Sh(BB()),Mu(e,2,-2),0)}function Jw(e,t,n,r){return Th(e,t,n,$b,Mu(e,0,r),Mu(e,r+1,-1),r)}function Al(e,t){for(var n="",r=Bb(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function qB(e,t,n,r){switch(e.type){case DB:if(e.children.length)break;case MB:case $b:return e.return=e.return||e.value;case F_:return"";case V_:return e.return=e.value+"{"+Al(e.children,r)+"}";case Lb:e.value=e.props.join(",")}return gi(n=Al(e.children,r))?e.return=e.value+"{"+n+"}":""}function GB(e){var t=Bb(e);return function(n,r,a,s){for(var c="",f=0;f<t;f++)c+=e[f](n,r,a,s)||"";return c}}function YB(e){return function(t){t.root||(t=t.return)&&e(t)}}function W_(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var WB=function(t,n,r){for(var a=0,s=0;a=s,s=Si(),a===38&&s===12&&(n[r]=1),!Du(s);)yr();return Ju(t,rr)},KB=function(t,n){var r=-1,a=44;do switch(Du(a)){case 0:a===38&&Si()===12&&(n[r]=1),t[r]+=WB(rr-1,n,r);break;case 2:t[r]+=cp(a);break;case 4:if(a===44){t[++r]=Si()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Sh(a)}while(a=yr());return t},XB=function(t,n){return Y_(KB(G_(t),n))},eC=new WeakMap,ZB=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,a=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!eC.get(r))&&!a){eC.set(t,!0);for(var s=[],c=XB(n,s),f=r.props,d=0,p=0;d<c.length;d++)for(var h=0;h<f.length;h++,p++)t.props[p]=s[d]?c[d].replace(/&\f/g,f[h]):f[h]+" "+c[d]}}},QB=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function K_(e,t){switch(NB(e,t)){case 5103:return dt+"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 dt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return dt+e+jp+e+Pn+e+e;case 6828:case 4268:return dt+e+Pn+e+e;case 6165:return dt+e+Pn+"flex-"+e+e;case 5187:return dt+e+pt(e,/(\w+).+(:[^]+)/,dt+"box-$1$2"+Pn+"flex-$1$2")+e;case 5443:return dt+e+Pn+"flex-item-"+pt(e,/flex-|-self/,"")+e;case 4675:return dt+e+Pn+"flex-line-pack"+pt(e,/align-content|flex-|-self/,"")+e;case 5548:return dt+e+Pn+pt(e,"shrink","negative")+e;case 5292:return dt+e+Pn+pt(e,"basis","preferred-size")+e;case 6060:return dt+"box-"+pt(e,"-grow","")+dt+e+Pn+pt(e,"grow","positive")+e;case 4554:return dt+pt(e,/([^-])(transform)/g,"$1"+dt+"$2")+e;case 6187:return pt(pt(pt(e,/(zoom-|grab)/,dt+"$1"),/(image-set)/,dt+"$1"),e,"")+e;case 5495:case 3959:return pt(e,/(image-set\([^]*)/,dt+"$1$`$1");case 4968:return pt(pt(e,/(.+:)(flex-)?(.*)/,dt+"box-pack:$3"+Pn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+dt+e+e;case 4095:case 3583:case 4068:case 2532:return pt(e,/(.+)-inline(.+)/,dt+"$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(gi(e)-1-t>6)switch(Rn(e,t+1)){case 109:if(Rn(e,t+4)!==45)break;case 102:return pt(e,/(.+:)(.+)-([^]+)/,"$1"+dt+"$2-$3$1"+jp+(Rn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~W0(e,"stretch")?K_(pt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Rn(e,t+1)!==115)break;case 6444:switch(Rn(e,gi(e)-3-(~W0(e,"!important")&&10))){case 107:return pt(e,":",":"+dt)+e;case 101:return pt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dt+(Rn(e,14)===45?"inline-":"")+"box$3$1"+dt+"$2$3$1"+Pn+"$2box$3")+e}break;case 5936:switch(Rn(e,t+11)){case 114:return dt+e+Pn+pt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dt+e+Pn+pt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dt+e+Pn+pt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return dt+e+Pn+e+e}return e}var JB=function(t,n,r,a){if(t.length>-1&&!t.return)switch(t.type){case $b:t.return=K_(t.value,t.length);break;case V_:return Al([Yc(t,{value:pt(t.value,"@","@"+dt)})],a);case Lb:if(t.length)return $B(t.props,function(s){switch(LB(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Al([Yc(t,{props:[pt(s,/:(read-\w+)/,":"+jp+"$1")]})],a);case"::placeholder":return Al([Yc(t,{props:[pt(s,/:(plac\w+)/,":"+dt+"input-$1")]}),Yc(t,{props:[pt(s,/:(plac\w+)/,":"+jp+"$1")]}),Yc(t,{props:[pt(s,/:(plac\w+)/,Pn+"input-$1")]})],a)}return""})}},eI=[JB],tI=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var T=S.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var a=t.stylisPlugins||eI,s={},c,f=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var T=S.getAttribute("data-emotion").split(" "),w=1;w<T.length;w++)s[T[w]]=!0;f.push(S)});var d,p=[ZB,QB];{var h,g=[qB,YB(function(S){h.insert(S)})],v=GB(p.concat(a,g)),x=function(T){return Al(VB(T),v)};d=function(T,w,R,A){h=R,x(T?T+"{"+w.styles+"}":w.styles),A&&(b.inserted[w.name]=!0)}}var b={key:n,sheet:new _B({key:n,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:d};return b.sheet.hydrate(f),b},Ly={exports:{}},gt={};/** @license React v16.13.1
50
+ * react-is.production.min.js
51
+ *
52
+ * Copyright (c) Facebook, Inc. and its affiliates.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE file in the root directory of this source tree.
56
+ */var tC;function nI(){if(tC)return gt;tC=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function A(O){if(typeof O=="object"&&O!==null){var M=O.$$typeof;switch(M){case t:switch(O=O.type,O){case d:case p:case r:case s:case a:case g:return O;default:switch(O=O&&O.$$typeof,O){case f:case h:case b:case x:case c:return O;default:return M}}case n:return M}}}function _(O){return A(O)===p}return gt.AsyncMode=d,gt.ConcurrentMode=p,gt.ContextConsumer=f,gt.ContextProvider=c,gt.Element=t,gt.ForwardRef=h,gt.Fragment=r,gt.Lazy=b,gt.Memo=x,gt.Portal=n,gt.Profiler=s,gt.StrictMode=a,gt.Suspense=g,gt.isAsyncMode=function(O){return _(O)||A(O)===d},gt.isConcurrentMode=_,gt.isContextConsumer=function(O){return A(O)===f},gt.isContextProvider=function(O){return A(O)===c},gt.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},gt.isForwardRef=function(O){return A(O)===h},gt.isFragment=function(O){return A(O)===r},gt.isLazy=function(O){return A(O)===b},gt.isMemo=function(O){return A(O)===x},gt.isPortal=function(O){return A(O)===n},gt.isProfiler=function(O){return A(O)===s},gt.isStrictMode=function(O){return A(O)===a},gt.isSuspense=function(O){return A(O)===g},gt.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===r||O===p||O===s||O===a||O===g||O===v||typeof O=="object"&&O!==null&&(O.$$typeof===b||O.$$typeof===x||O.$$typeof===c||O.$$typeof===f||O.$$typeof===h||O.$$typeof===T||O.$$typeof===w||O.$$typeof===R||O.$$typeof===S)},gt.typeOf=A,gt}var nC;function rI(){return nC||(nC=1,Ly.exports=nI()),Ly.exports}var $y,rC;function iI(){if(rC)return $y;rC=1;var e=rI(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=a;function c(b){return e.isMemo(b)?a:s[b.$$typeof]||t}var f=Object.defineProperty,d=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,v=Object.prototype;function x(b,S,T){if(typeof S!="string"){if(v){var w=g(S);w&&w!==v&&x(b,w,T)}var R=d(S);p&&(R=R.concat(p(S)));for(var A=c(b),_=c(S),O=0;O<R.length;++O){var M=R[O];if(!n[M]&&!(T&&T[M])&&!(_&&_[M])&&!(A&&A[M])){var L=h(S,M);try{f(b,M,L)}catch{}}}}return b}return $y=x,$y}iI();var oI=!0;function X_(e,t,n){var r="";return n.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(r+=a+" ")}),r}var Ib=function(t,n,r){var a=t.key+"-"+n.name;(r===!1||oI===!1)&&t.registered[a]===void 0&&(t.registered[a]=n.styles)},jb=function(t,n,r){Ib(t,n,r);var a=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+a:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function aI(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var sI={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},lI=/[A-Z]|^ms/g,cI=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Z_=function(t){return t.charCodeAt(1)===45},iC=function(t){return t!=null&&typeof t!="boolean"},By=W_(function(e){return Z_(e)?e:e.replace(lI,"-$&").toLowerCase()}),oC=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(cI,function(r,a,s){return yi={name:a,styles:s,next:yi},a})}return sI[t]!==1&&!Z_(t)&&typeof n=="number"&&n!==0?n+"px":n};function Pu(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return yi={name:a.name,styles:a.styles,next:yi},a.name;var s=n;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)yi={name:c.name,styles:c.styles,next:yi},c=c.next;var f=s.styles+";";return f}return uI(e,t,n)}case"function":{if(e!==void 0){var d=yi,p=n(e);return yi=d,Pu(e,t,p)}break}}var h=n;if(t==null)return h;var g=t[h];return g!==void 0?g:h}function uI(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=Pu(e,t,n[a])+";";else for(var s in n){var c=n[s];if(typeof c!="object"){var f=c;t!=null&&t[f]!==void 0?r+=s+"{"+t[f]+"}":iC(f)&&(r+=By(s)+":"+oC(s,f)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var d=0;d<c.length;d++)iC(c[d])&&(r+=By(s)+":"+oC(s,c[d])+";");else{var p=Pu(e,t,c);switch(s){case"animation":case"animationName":{r+=By(s)+":"+p+";";break}default:r+=s+"{"+p+"}"}}}return r}var aC=/label:\s*([^\s;{]+)\s*(;|$)/g,yi;function ef(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,a="";yi=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,a+=Pu(n,t,s);else{var c=s;a+=c[0]}for(var f=1;f<e.length;f++)if(a+=Pu(n,t,e[f]),r){var d=s;a+=d[f]}aC.lastIndex=0;for(var p="",h;(h=aC.exec(a))!==null;)p+="-"+h[1];var g=aI(a)+p;return{name:g,styles:a,next:yi}}var fI=function(t){return t()},Q_=Y0.useInsertionEffect?Y0.useInsertionEffect:!1,J_=Q_||fI,sC=Q_||E.useLayoutEffect,e2=E.createContext(typeof HTMLElement<"u"?tI({key:"css"}):null);e2.Provider;var zb=function(t){return E.forwardRef(function(n,r){var a=E.useContext(e2);return t(n,a,r)})},tf=E.createContext({}),Ub={}.hasOwnProperty,X0="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",dI=function(t,n){var r={};for(var a in n)Ub.call(n,a)&&(r[a]=n[a]);return r[X0]=t,r},pI=function(t){var n=t.cache,r=t.serialized,a=t.isStringTag;return Ib(n,r,a),J_(function(){return jb(n,r,a)}),null},hI=zb(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var a=e[X0],s=[r],c="";typeof e.className=="string"?c=X_(t.registered,s,e.className):e.className!=null&&(c=e.className+" ");var f=ef(s,void 0,E.useContext(tf));c+=t.key+"-"+f.name;var d={};for(var p in e)Ub.call(e,p)&&p!=="css"&&p!==X0&&(d[p]=e[p]);return d.className=c,n&&(d.ref=n),E.createElement(E.Fragment,null,E.createElement(pI,{cache:t,serialized:f,isStringTag:typeof a=="string"}),E.createElement(a,d))}),mI=hI,lC=function(t,n){var r=arguments;if(n==null||!Ub.call(n,"css"))return E.createElement.apply(void 0,r);var a=r.length,s=new Array(a);s[0]=mI,s[1]=dI(t,n);for(var c=2;c<a;c++)s[c]=r[c];return E.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(lC||(lC={}));var gI=zb(function(e,t){var n=e.styles,r=ef([n],void 0,E.useContext(tf)),a=E.useRef();return sC(function(){var s=t.key+"-global",c=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),f=!1,d=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(c.before=t.sheet.tags[0]),d!==null&&(f=!0,d.setAttribute("data-emotion",s),c.hydrate([d])),a.current=[c,f],function(){c.flush()}},[t]),sC(function(){var s=a.current,c=s[0],f=s[1];if(f){s[1]=!1;return}if(r.next!==void 0&&jb(t,r.next,!0),c.tags.length){var d=c.tags[c.tags.length-1].nextElementSibling;c.before=d,c.flush()}t.insert("",r,c,!1)},[t,r.name]),null});function ca(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ef(t)}function _i(){var e=ca.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var yI=/^((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)-.*))$/,vI=W_(function(e){return yI.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),bI=vI,SI=function(t){return t!=="theme"},cC=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?bI:SI},uC=function(t,n,r){var a;if(n){var s=n.shouldForwardProp;a=t.__emotion_forwardProp&&s?function(c){return t.__emotion_forwardProp(c)&&s(c)}:s}return typeof a!="function"&&r&&(a=t.__emotion_forwardProp),a},xI=function(t){var n=t.cache,r=t.serialized,a=t.isStringTag;return Ib(n,r,a),J_(function(){return jb(n,r,a)}),null},TI=function e(t,n){var r=t.__emotion_real===t,a=r&&t.__emotion_base||t,s,c;n!==void 0&&(s=n.label,c=n.target);var f=uC(t,n,r),d=f||cC(a),p=!d("as");return function(){var h=arguments,g=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&g.push("label:"+s+";"),h[0]==null||h[0].raw===void 0)g.push.apply(g,h);else{var v=h[0];g.push(v[0]);for(var x=h.length,b=1;b<x;b++)g.push(h[b],v[b])}var S=zb(function(T,w,R){var A=p&&T.as||a,_="",O=[],M=T;if(T.theme==null){M={};for(var L in T)M[L]=T[L];M.theme=E.useContext(tf)}typeof T.className=="string"?_=X_(w.registered,O,T.className):T.className!=null&&(_=T.className+" ");var B=ef(g.concat(O),w.registered,M);_+=w.key+"-"+B.name,c!==void 0&&(_+=" "+c);var z=p&&f===void 0?cC(A):d,V={};for(var H in T)p&&H==="as"||z(H)&&(V[H]=T[H]);return V.className=_,R&&(V.ref=R),E.createElement(E.Fragment,null,E.createElement(xI,{cache:w,serialized:B,isStringTag:typeof A=="string"}),E.createElement(A,V))});return S.displayName=s!==void 0?s:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=a,S.__emotion_styles=g,S.__emotion_forwardProp=f,Object.defineProperty(S,"toString",{value:function(){return"."+c}}),S.withComponent=function(T,w){var R=e(T,Ip({},n,w,{shouldForwardProp:uC(S,w,!0)}));return R.apply(void 0,g)},S}},EI=["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"],zp=TI.bind(null);EI.forEach(function(e){zp[e]=zp(e)});function wI(e){return e==null||Object.keys(e).length===0}function t2(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?a=>t(wI(a)?n:a):t;return D.jsx(gI,{styles:r})}function n2(e,t){return zp(e,t)}function CI(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const fC=[];function Ko(e){return fC[0]=e,ef(fC)}var Iy={exports:{}},wt={};/**
57
+ * @license React
58
+ * react-is.production.js
59
+ *
60
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
61
+ *
62
+ * This source code is licensed under the MIT license found in the
63
+ * LICENSE file in the root directory of this source tree.
64
+ */var dC;function AI(){if(dC)return wt;dC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");function b(S){if(typeof S=="object"&&S!==null){var T=S.$$typeof;switch(T){case e:switch(S=S.type,S){case n:case a:case r:case d:case p:case v:return S;default:switch(S=S&&S.$$typeof,S){case c:case f:case g:case h:return S;case s:return S;default:return T}}case t:return T}}}return wt.ContextConsumer=s,wt.ContextProvider=c,wt.Element=e,wt.ForwardRef=f,wt.Fragment=n,wt.Lazy=g,wt.Memo=h,wt.Portal=t,wt.Profiler=a,wt.StrictMode=r,wt.Suspense=d,wt.SuspenseList=p,wt.isContextConsumer=function(S){return b(S)===s},wt.isContextProvider=function(S){return b(S)===c},wt.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},wt.isForwardRef=function(S){return b(S)===f},wt.isFragment=function(S){return b(S)===n},wt.isLazy=function(S){return b(S)===g},wt.isMemo=function(S){return b(S)===h},wt.isPortal=function(S){return b(S)===t},wt.isProfiler=function(S){return b(S)===a},wt.isStrictMode=function(S){return b(S)===r},wt.isSuspense=function(S){return b(S)===d},wt.isSuspenseList=function(S){return b(S)===p},wt.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===a||S===r||S===d||S===p||typeof S=="object"&&S!==null&&(S.$$typeof===g||S.$$typeof===h||S.$$typeof===c||S.$$typeof===s||S.$$typeof===f||S.$$typeof===x||S.getModuleId!==void 0)},wt.typeOf=b,wt}var pC;function OI(){return pC||(pC=1,Iy.exports=AI()),Iy.exports}var r2=OI();function vi(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function i2(e){if(E.isValidElement(e)||r2.isValidElementType(e)||!vi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=i2(e[n])}),t}function Sn(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return vi(e)&&vi(t)&&Object.keys(t).forEach(a=>{E.isValidElement(t[a])||r2.isValidElementType(t[a])?r[a]=t[a]:vi(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&vi(e[a])?r[a]=Sn(e[a],t[a],n):n.clone?r[a]=vi(t[a])?i2(t[a]):t[a]:r[a]=t[a]}),r}const RI=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function _I(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...a}=e,s=RI(t),c=Object.keys(s);function f(v){return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n})`}function d(v){return`@media (max-width:${(typeof t[v]=="number"?t[v]:v)-r/100}${n})`}function p(v,x){const b=c.indexOf(x);return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n}) and (max-width:${(b!==-1&&typeof t[c[b]]=="number"?t[c[b]]:x)-r/100}${n})`}function h(v){return c.indexOf(v)+1<c.length?p(v,c[c.indexOf(v)+1]):f(v)}function g(v){const x=c.indexOf(v);return x===0?f(c[1]):x===c.length-1?d(c[x]):p(v,c[c.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:c,values:s,up:f,down:d,between:p,only:h,not:g,unit:n,...a}}function hC(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,a)=>{const s=/min-width:\s*([0-9.]+)/;return+(r.match(s)?.[1]||0)-+(a.match(s)?.[1]||0)});return n.length?n.reduce((r,a)=>{const s=t[a];return delete r[a],r[a]=s,r},{...t}):t}function MI(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function DI(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,a]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(a).up(s)}function PI(e){const t=(s,c)=>s.replace("@media",c?`@container ${c}`:"@container");function n(s,c){s.up=(...f)=>t(e.breakpoints.up(...f),c),s.down=(...f)=>t(e.breakpoints.down(...f),c),s.between=(...f)=>t(e.breakpoints.between(...f),c),s.only=(...f)=>t(e.breakpoints.only(...f),c),s.not=(...f)=>{const d=t(e.breakpoints.not(...f),c);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const r={},a=s=>(n(r,s),r);return n(a),{...e,containerQueries:a}}const kI={borderRadius:4};function mu(e,t){return t?Sn(e,t,{clone:!1}):e}const Eh={xs:0,sm:600,md:900,lg:1200,xl:1536},mC={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Eh[e]}px)`},NI={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Eh[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function ti(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||mC;return t.reduce((c,f,d)=>(c[s.up(s.keys[d])]=n(t[d]),c),{})}if(typeof t=="object"){const s=r.breakpoints||mC;return Object.keys(t).reduce((c,f)=>{if(MI(s.keys,f)){const d=DI(r.containerQueries?r:NI,f);d&&(c[d]=n(t[f],f))}else if(Object.keys(s.values||Eh).includes(f)){const d=s.up(f);c[d]=n(t[f],f)}else{const d=f;c[d]=t[d]}return c},{})}return n(t)}function o2(e={}){return e.keys?.reduce((n,r)=>{const a=e.up(r);return n[a]={},n},{})||{}}function Z0(e,t){return e.reduce((n,r)=>{const a=n[r];return(!a||Object.keys(a).length===0)&&delete n[r],n},t)}function LI(e,...t){const n=o2(e),r=[n,...t].reduce((a,s)=>Sn(a,s),{});return Z0(Object.keys(n),r)}function $I(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((a,s)=>{s<e.length&&(n[a]=!0)}):r.forEach(a=>{e[a]!=null&&(n[a]=!0)}),n}function jy({values:e,breakpoints:t,base:n}){const r=n||$I(e,t),a=Object.keys(r);if(a.length===0)return e;let s;return a.reduce((c,f,d)=>(Array.isArray(e)?(c[f]=e[d]!=null?e[d]:e[s],s=d):typeof e=="object"?(c[f]=e[f]!=null?e[f]:e[s],s=f):c[f]=e,c),{})}function pe(e){if(typeof e!="string")throw new Error(co(7));return e.charAt(0).toUpperCase()+e.slice(1)}function wh(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((a,s)=>a&&a[s]?a[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,a)=>r&&r[a]!=null?r[a]:null,e)}function Up(e,t,n,r=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||r:a=wh(e,n)||r,t&&(a=t(a,r,e)),a}function an(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:a}=e,s=c=>{if(c[t]==null)return null;const f=c[t],d=c.theme,p=wh(d,r)||{};return ti(c,f,g=>{let v=Up(p,a,g);return g===v&&typeof g=="string"&&(v=Up(p,a,`${t}${g==="default"?"":pe(g)}`,g)),n===!1?v:{[n]:v}})};return s.propTypes={},s.filterProps=[t],s}function BI(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const II={m:"margin",p:"padding"},jI={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gC={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zI=BI(e=>{if(e.length>2)if(gC[e])e=gC[e];else return[e];const[t,n]=e.split(""),r=II[t],a=jI[n]||"";return Array.isArray(a)?a.map(s=>r+s):[r+a]}),Fb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Fb,...Vb];function nf(e,t,n,r){const a=wh(e,t,!0)??n;return typeof a=="number"||typeof a=="string"?s=>typeof s=="string"?s:typeof a=="string"?a.startsWith("var(")&&s===0?0:a.startsWith("var(")&&s===1?a:`calc(${s} * ${a})`:a*s:Array.isArray(a)?s=>{if(typeof s=="string")return s;const c=Math.abs(s),f=a[c];return s>=0?f:typeof f=="number"?-f:typeof f=="string"&&f.startsWith("var(")?`calc(-1 * ${f})`:`-${f}`}:typeof a=="function"?a:()=>{}}function Ch(e){return nf(e,"spacing",8)}function os(e,t){return typeof t=="string"||t==null?t:e(t)}function UI(e,t){return n=>e.reduce((r,a)=>(r[a]=os(t,n),r),{})}function FI(e,t,n,r){if(!t.includes(n))return null;const a=zI(n),s=UI(a,r),c=e[n];return ti(e,c,s)}function a2(e,t){const n=Ch(e.theme);return Object.keys(e).map(r=>FI(e,t,r,n)).reduce(mu,{})}function Yt(e){return a2(e,Fb)}Yt.propTypes={};Yt.filterProps=Fb;function Wt(e){return a2(e,Vb)}Wt.propTypes={};Wt.filterProps=Vb;function s2(e=8,t=Ch({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(s=>{const c=t(s);return typeof c=="number"?`${c}px`:c}).join(" ");return n.mui=!0,n}function Ah(...e){const t=e.reduce((r,a)=>(a.filterProps.forEach(s=>{r[s]=a}),r),{}),n=r=>Object.keys(r).reduce((a,s)=>t[s]?mu(a,t[s](r)):a,{});return n.propTypes={},n.filterProps=e.reduce((r,a)=>r.concat(a.filterProps),[]),n}function Br(e){return typeof e!="number"?e:`${e}px solid`}function Gr(e,t){return an({prop:e,themeKey:"borders",transform:t})}const VI=Gr("border",Br),HI=Gr("borderTop",Br),qI=Gr("borderRight",Br),GI=Gr("borderBottom",Br),YI=Gr("borderLeft",Br),WI=Gr("borderColor"),KI=Gr("borderTopColor"),XI=Gr("borderRightColor"),ZI=Gr("borderBottomColor"),QI=Gr("borderLeftColor"),JI=Gr("outline",Br),ej=Gr("outlineColor"),Oh=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=nf(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:os(t,r)});return ti(e,e.borderRadius,n)}return null};Oh.propTypes={};Oh.filterProps=["borderRadius"];Ah(VI,HI,qI,GI,YI,WI,KI,XI,ZI,QI,Oh,JI,ej);const Rh=e=>{if(e.gap!==void 0&&e.gap!==null){const t=nf(e.theme,"spacing",8),n=r=>({gap:os(t,r)});return ti(e,e.gap,n)}return null};Rh.propTypes={};Rh.filterProps=["gap"];const _h=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=nf(e.theme,"spacing",8),n=r=>({columnGap:os(t,r)});return ti(e,e.columnGap,n)}return null};_h.propTypes={};_h.filterProps=["columnGap"];const Mh=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=nf(e.theme,"spacing",8),n=r=>({rowGap:os(t,r)});return ti(e,e.rowGap,n)}return null};Mh.propTypes={};Mh.filterProps=["rowGap"];const tj=an({prop:"gridColumn"}),nj=an({prop:"gridRow"}),rj=an({prop:"gridAutoFlow"}),ij=an({prop:"gridAutoColumns"}),oj=an({prop:"gridAutoRows"}),aj=an({prop:"gridTemplateColumns"}),sj=an({prop:"gridTemplateRows"}),lj=an({prop:"gridTemplateAreas"}),cj=an({prop:"gridArea"});Ah(Rh,_h,Mh,tj,nj,rj,ij,oj,aj,sj,lj,cj);function Ol(e,t){return t==="grey"?t:e}const uj=an({prop:"color",themeKey:"palette",transform:Ol}),fj=an({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ol}),dj=an({prop:"backgroundColor",themeKey:"palette",transform:Ol});Ah(uj,fj,dj);function hr(e){return e<=1&&e!==0?`${e*100}%`:e}const pj=an({prop:"width",transform:hr}),Hb=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Eh[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:hr(n)}};return ti(e,e.maxWidth,t)}return null};Hb.filterProps=["maxWidth"];const hj=an({prop:"minWidth",transform:hr}),mj=an({prop:"height",transform:hr}),gj=an({prop:"maxHeight",transform:hr}),yj=an({prop:"minHeight",transform:hr});an({prop:"size",cssProperty:"width",transform:hr});an({prop:"size",cssProperty:"height",transform:hr});const vj=an({prop:"boxSizing"});Ah(pj,Hb,hj,mj,gj,yj,vj);const rf={border:{themeKey:"borders",transform:Br},borderTop:{themeKey:"borders",transform:Br},borderRight:{themeKey:"borders",transform:Br},borderBottom:{themeKey:"borders",transform:Br},borderLeft:{themeKey:"borders",transform:Br},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Br},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Oh},color:{themeKey:"palette",transform:Ol},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ol},backgroundColor:{themeKey:"palette",transform:Ol},p:{style:Wt},pt:{style:Wt},pr:{style:Wt},pb:{style:Wt},pl:{style:Wt},px:{style:Wt},py:{style:Wt},padding:{style:Wt},paddingTop:{style:Wt},paddingRight:{style:Wt},paddingBottom:{style:Wt},paddingLeft:{style:Wt},paddingX:{style:Wt},paddingY:{style:Wt},paddingInline:{style:Wt},paddingInlineStart:{style:Wt},paddingInlineEnd:{style:Wt},paddingBlock:{style:Wt},paddingBlockStart:{style:Wt},paddingBlockEnd:{style:Wt},m:{style:Yt},mt:{style:Yt},mr:{style:Yt},mb:{style:Yt},ml:{style:Yt},mx:{style:Yt},my:{style:Yt},margin:{style:Yt},marginTop:{style:Yt},marginRight:{style:Yt},marginBottom:{style:Yt},marginLeft:{style:Yt},marginX:{style:Yt},marginY:{style:Yt},marginInline:{style:Yt},marginInlineStart:{style:Yt},marginInlineEnd:{style:Yt},marginBlock:{style:Yt},marginBlockStart:{style:Yt},marginBlockEnd:{style:Yt},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:Rh},rowGap:{style:Mh},columnGap:{style:_h},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:hr},maxWidth:{style:Hb},minWidth:{transform:hr},height:{transform:hr},maxHeight:{transform:hr},minHeight:{transform:hr},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 bj(...e){const t=e.reduce((r,a)=>r.concat(Object.keys(a)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Sj(e,t){return typeof e=="function"?e(t):e}function xj(){function e(n,r,a,s){const c={[n]:r,theme:a},f=s[n];if(!f)return{[n]:r};const{cssProperty:d=n,themeKey:p,transform:h,style:g}=f;if(r==null)return null;if(p==="typography"&&r==="inherit")return{[n]:r};const v=wh(a,p)||{};return g?g(c):ti(c,r,b=>{let S=Up(v,h,b);return b===S&&typeof b=="string"&&(S=Up(v,h,`${n}${b==="default"?"":pe(b)}`,b)),d===!1?S:{[d]:S}})}function t(n){const{sx:r,theme:a={},nested:s}=n||{};if(!r)return null;const c=a.unstable_sxConfig??rf;function f(d){let p=d;if(typeof d=="function")p=d(a);else if(typeof d!="object")return d;if(!p)return null;const h=o2(a.breakpoints),g=Object.keys(h);let v=h;return Object.keys(p).forEach(x=>{const b=Sj(p[x],a);if(b!=null)if(typeof b=="object")if(c[x])v=mu(v,e(x,b,a,c));else{const S=ti({theme:a},b,T=>({[x]:T}));bj(S,b)?v[x]=t({sx:b,theme:a,nested:!0}):v=mu(v,S)}else v=mu(v,e(x,b,a,c))}),!s&&a.modularCssLayers?{"@layer sx":hC(a,Z0(g,v))}:hC(a,Z0(g,v))}return Array.isArray(r)?r.map(f):f(r)}return t}const ta=xj();ta.filterProps=["sx"];function Tj(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Dh(e={},...t){const{breakpoints:n={},palette:r={},spacing:a,shape:s={},...c}=e,f=_I(n),d=s2(a);let p=Sn({breakpoints:f,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...kI,...s}},c);return p=PI(p),p.applyStyles=Tj,p=t.reduce((h,g)=>Sn(h,g),p),p.unstable_sxConfig={...rf,...c?.unstable_sxConfig},p.unstable_sx=function(g){return ta({sx:g,theme:this})},p}function Ej(e){return Object.keys(e).length===0}function qb(e=null){const t=E.useContext(tf);return!t||Ej(t)?e:t}const wj=Dh();function Ph(e=wj){return qb(e)}function zy(e){const t=Ko(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function l2({styles:e,themeId:t,defaultTheme:n={}}){const r=Ph(n),a=t&&r[t]||r;let s=typeof e=="function"?e(a):e;return a.modularCssLayers&&(Array.isArray(s)?s=s.map(c=>zy(typeof c=="function"?c(a):c)):s=zy(s)),D.jsx(t2,{styles:s})}const Cj=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??rf;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Gb(e){const{sx:t,...n}=e,{systemProps:r,otherProps:a}=Cj(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...c)=>{const f=t(...c);return vi(f)?{...r,...f}:r}:s={...r,...t},{...a,sx:s}}const yC=e=>e,Aj=()=>{let e=yC;return{configure(t){e=t},generate(t){return e(t)},reset(){e=yC}}},c2=Aj();function u2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=u2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function we(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=u2(e))&&(r&&(r+=" "),r+=t);return r}function Oj(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:a}=e,s=n2("div",{shouldForwardProp:f=>f!=="theme"&&f!=="sx"&&f!=="as"})(ta);return E.forwardRef(function(d,p){const h=Ph(n),{className:g,component:v="div",...x}=Gb(d);return D.jsx(s,{as:v,ref:p,className:we(g,a?a(r):r),theme:t&&h[t]||h,...x})})}const Rj={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 Be(e,t,n="Mui"){const r=Rj[t];return r?`${n}-${r}`:`${c2.generate(e)}-${t}`}function Ne(e,t,n="Mui"){const r={};return t.forEach(a=>{r[a]=Be(e,a,n)}),r}function f2(e){const{variants:t,...n}=e,r={variants:t,style:Ko(n),isProcessed:!0};return r.style===n||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=Ko(a.style))}),r}const _j=Dh();function Uy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Va(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Mj(e){return e?(t,n)=>n[e]:null}function Dj(e,t,n){e.theme=kj(e.theme)?n:e.theme[t]||e.theme}function fp(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(a=>fp(e,a,n));if(Array.isArray(r?.variants)){let a;if(r.isProcessed)a=n?Va(r.style,n):r.style;else{const{variants:s,...c}=r;a=n?Va(Ko(c),n):c}return d2(e,r.variants,[a],n)}return r?.isProcessed?n?Va(Ko(r.style),n):r.style:n?Va(Ko(r),n):r}function d2(e,t,n=[],r=void 0){let a;e:for(let s=0;s<t.length;s+=1){const c=t[s];if(typeof c.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!c.props(a))continue}else for(const f in c.props)if(e[f]!==c.props[f]&&e.ownerState?.[f]!==c.props[f])continue e;typeof c.style=="function"?(a??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Va(Ko(c.style(a)),r):c.style(a))):n.push(r?Va(Ko(c.style),r):c.style)}return n}function p2(e={}){const{themeId:t,defaultTheme:n=_j,rootShouldForwardProp:r=Uy,slotShouldForwardProp:a=Uy}=e;function s(f){Dj(f,t,n)}return(f,d={})=>{CI(f,M=>M.filter(L=>L!==ta));const{name:p,slot:h,skipVariantsResolver:g,skipSx:v,overridesResolver:x=Mj(Lj(h)),...b}=d,S=p&&p.startsWith("Mui")||h?"components":"custom",T=g!==void 0?g:h&&h!=="Root"&&h!=="root"||!1,w=v||!1;let R=Uy;h==="Root"||h==="root"?R=r:h?R=a:Nj(f)&&(R=void 0);const A=n2(f,{shouldForwardProp:R,label:Pj(),...b}),_=M=>{if(M.__emotion_real===M)return M;if(typeof M=="function")return function(B){return fp(B,M,B.theme.modularCssLayers?S:void 0)};if(vi(M)){const L=f2(M);return function(z){return L.variants?fp(z,L,z.theme.modularCssLayers?S:void 0):z.theme.modularCssLayers?Va(L.style,S):L.style}}return M},O=(...M)=>{const L=[],B=M.map(_),z=[];if(L.push(s),p&&x&&z.push(function(K){const j=K.theme.components?.[p]?.styleOverrides;if(!j)return null;const k={};for(const I in j)k[I]=fp(K,j[I],K.theme.modularCssLayers?"theme":void 0);return x(K,k)}),p&&!T&&z.push(function(K){const j=K.theme?.components?.[p]?.variants;return j?d2(K,j,[],K.theme.modularCssLayers?"theme":void 0):null}),w||z.push(ta),Array.isArray(B[0])){const P=B.shift(),K=new Array(L.length).fill(""),U=new Array(z.length).fill("");let j;j=[...K,...P,...U],j.raw=[...K,...P.raw,...U],L.unshift(j)}const V=[...L,...B,...z],H=A(...V);return f.muiName&&(H.muiName=f.muiName),H};return A.withConfig&&(O.withConfig=A.withConfig),O}}function Pj(e,t){return void 0}function kj(e){for(const t in e)return!1;return!0}function Nj(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Lj(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const $j=p2();function ku(e,t,n=!1){const r={...t};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const s=a;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const c=e[s],f=t[s];if(!f)r[s]=c||{};else if(!c)r[s]=f;else{r[s]={...f};for(const d in c)if(Object.prototype.hasOwnProperty.call(c,d)){const p=d;r[s][p]=ku(c[p],f[p],n)}}}else s==="className"&&n&&t.className?r.className=we(e?.className,t?.className):s==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[s]===void 0&&(r[s]=e[s])}return r}function Bj(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:ku(t.components[n].defaultProps,r)}function Ij({props:e,name:t,defaultTheme:n,themeId:r}){let a=Ph(n);return r&&(a=a[r]||a),Bj({theme:a,name:t,props:e})}const Vr=typeof window<"u"?E.useLayoutEffect:E.useEffect;function jj(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Yb(e,t=0,n=1){return jj(e,t,n)}function zj(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,a)=>a<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function na(e){if(e.type)return e;if(e.charAt(0)==="#")return na(zj(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(co(9,e));let r=e.substring(t+1,e.length-1),a;if(n==="color"){if(r=r.split(" "),a=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(co(10,a))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:a}}const Uj=e=>{const t=na(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},su=(e,t)=>{try{return Uj(e)}catch{return e}};function kh(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((a,s)=>s<3?parseInt(a,10):a):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function h2(e){e=na(e);const{values:t}=e,n=t[0],r=t[1]/100,a=t[2]/100,s=r*Math.min(a,1-a),c=(p,h=(p+n/30)%12)=>a-s*Math.max(Math.min(h-3,9-h,1),-1);let f="rgb";const d=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return e.type==="hsla"&&(f+="a",d.push(t[3])),kh({type:f,values:d})}function Q0(e){e=na(e);let t=e.type==="hsl"||e.type==="hsla"?na(h2(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Fj(e,t){const n=Q0(e),r=Q0(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Fp(e,t){return e=na(e),t=Yb(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,kh(e)}function Pa(e,t,n){try{return Fp(e,t)}catch{return e}}function Nh(e,t){if(e=na(e),t=Yb(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return kh(e)}function bt(e,t,n){try{return Nh(e,t)}catch{return e}}function Lh(e,t){if(e=na(e),t=Yb(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return kh(e)}function St(e,t,n){try{return Lh(e,t)}catch{return e}}function J0(e,t=.15){return Q0(e)>.5?Nh(e,t):Lh(e,t)}function Ld(e,t,n){try{return J0(e,t)}catch{return e}}const m2=E.createContext(null);function Wb(){return E.useContext(m2)}const Vj=typeof Symbol=="function"&&Symbol.for,Hj=Vj?Symbol.for("mui.nested"):"__THEME_NESTED__";function qj(e,t){return typeof t=="function"?t(e):{...e,...t}}function Gj(e){const{children:t,theme:n}=e,r=Wb(),a=E.useMemo(()=>{const s=r===null?{...n}:qj(r,n);return s!=null&&(s[Hj]=r!==null),s},[n,r]);return D.jsx(m2.Provider,{value:a,children:t})}const g2=E.createContext();function Yj({value:e,...t}){return D.jsx(g2.Provider,{value:e??!0,...t})}const $h=()=>E.useContext(g2)??!1,y2=E.createContext(void 0);function Wj({value:e,children:t}){return D.jsx(y2.Provider,{value:e,children:t})}function Kj(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const a=t.components[n];return a.defaultProps?ku(a.defaultProps,r,t.components.mergeClassNameAndStyle):!a.styleOverrides&&!a.variants?ku(a,r,t.components.mergeClassNameAndStyle):r}function Xj({props:e,name:t}){const n=E.useContext(y2);return Kj({props:e,name:t,theme:{components:n}})}let vC=0;function Zj(e){const[t,n]=E.useState(e),r=e||t;return E.useEffect(()=>{t==null&&(vC+=1,n(`mui-${vC}`))},[t]),r}const Qj={...Y0},bC=Qj.useId;function ms(e){if(bC!==void 0){const t=bC();return e??t}return Zj(e)}function Jj(e){const t=qb(),n=ms()||"",{modularCssLayers:r}=e;let a="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!r||t!==null?a="":typeof r=="string"?a=r.replace(/mui(?!\.)/g,a):a=`@layer ${a};`,Vr(()=>{const s=document.querySelector("head");if(!s)return;const c=s.firstChild;if(a){if(c&&c.hasAttribute?.("data-mui-layer-order")&&c.getAttribute("data-mui-layer-order")===n)return;const f=document.createElement("style");f.setAttribute("data-mui-layer-order",n),f.textContent=a,s.prepend(f)}else s.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[a,n]),a?D.jsx(l2,{styles:a}):null}const SC={};function xC(e,t,n,r=!1){return E.useMemo(()=>{const a=e&&t[e]||t;if(typeof n=="function"){const s=n(a),c=e?{...t,[e]:s}:s;return r?()=>c:c}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function v2(e){const{children:t,theme:n,themeId:r}=e,a=qb(SC),s=Wb()||SC,c=xC(r,a,n),f=xC(r,s,n,!0),d=(r?c[r]:c).direction==="rtl",p=Jj(c);return D.jsx(Gj,{theme:f,children:D.jsx(tf.Provider,{value:c,children:D.jsx(Yj,{value:d,children:D.jsxs(Wj,{value:r?c[r].components:c.components,children:[p,t]})})})})}const TC={theme:void 0};function e5(e){let t,n;return function(a){let s=t;return(s===void 0||a.theme!==n)&&(TC.theme=a.theme,s=f2(e(TC)),t=s,n=a.theme),s}}const Kb="mode",Xb="color-scheme",t5="data-color-scheme";function n5(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:a=Kb,colorSchemeStorageKey:s=Xb,attribute:c=t5,colorSchemeNode:f="document.documentElement",nonce:d}=e||{};let p="",h=c;if(c==="class"&&(h=".%s"),c==="data"&&(h="[data-%s]"),h.startsWith(".")){const v=h.substring(1);p+=`${f}.classList.remove('${v}'.replace('%s', light), '${v}'.replace('%s', dark));
65
+ ${f}.classList.add('${v}'.replace('%s', colorScheme));`}const g=h.match(/\[([^[\]]+)\]/);if(g){const[v,x]=g[1].split("=");x||(p+=`${f}.removeAttribute('${v}'.replace('%s', light));
66
+ ${f}.removeAttribute('${v}'.replace('%s', dark));`),p+=`
67
+ ${f}.setAttribute('${v}'.replace('%s', colorScheme), ${x?`${x}.replace('%s', colorScheme)`:'""'});`}else p+=`${f}.setAttribute('${h}', colorScheme);`;return D.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?d:"",dangerouslySetInnerHTML:{__html:`(function() {
68
+ try {
69
+ let colorScheme = '';
70
+ const mode = localStorage.getItem('${a}') || '${t}';
71
+ const dark = localStorage.getItem('${s}-dark') || '${r}';
72
+ const light = localStorage.getItem('${s}-light') || '${n}';
73
+ if (mode === 'system') {
74
+ // handle system mode
75
+ const mql = window.matchMedia('(prefers-color-scheme: dark)');
76
+ if (mql.matches) {
77
+ colorScheme = dark
78
+ } else {
79
+ colorScheme = light
80
+ }
81
+ }
82
+ if (mode === 'light') {
83
+ colorScheme = light;
84
+ }
85
+ if (mode === 'dark') {
86
+ colorScheme = dark;
87
+ }
88
+ if (colorScheme) {
89
+ ${p}
90
+ }
91
+ } catch(e){}})();`}},"mui-color-scheme-init")}function r5(){}const i5=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(n){if(typeof window>"u")return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return r5;const r=a=>{const s=a.newValue;a.key===e&&n(s)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function Fy(){}function EC(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function b2(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function o5(e){return b2(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function a5(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:a=[],modeStorageKey:s=Kb,colorSchemeStorageKey:c=Xb,storageWindow:f=typeof window>"u"?void 0:window,storageManager:d=i5,noSsr:p=!1}=e,h=a.join(","),g=a.length>1,v=E.useMemo(()=>d?.({key:s,storageWindow:f}),[d,s,f]),x=E.useMemo(()=>d?.({key:`${c}-light`,storageWindow:f}),[d,c,f]),b=E.useMemo(()=>d?.({key:`${c}-dark`,storageWindow:f}),[d,c,f]),[S,T]=E.useState(()=>{const B=v?.get(t)||t,z=x?.get(n)||n,V=b?.get(r)||r;return{mode:B,systemMode:EC(B),lightColorScheme:z,darkColorScheme:V}}),[w,R]=E.useState(p||!g);E.useEffect(()=>{R(!0)},[]);const A=o5(S),_=E.useCallback(B=>{T(z=>{if(B===z.mode)return z;const V=B??t;return v?.set(V),{...z,mode:V,systemMode:EC(V)}})},[v,t]),O=E.useCallback(B=>{B?typeof B=="string"?B&&!h.includes(B)?console.error(`\`${B}\` does not exist in \`theme.colorSchemes\`.`):T(z=>{const V={...z};return b2(z,H=>{H==="light"&&(x?.set(B),V.lightColorScheme=B),H==="dark"&&(b?.set(B),V.darkColorScheme=B)}),V}):T(z=>{const V={...z},H=B.light===null?n:B.light,P=B.dark===null?r:B.dark;return H&&(h.includes(H)?(V.lightColorScheme=H,x?.set(H)):console.error(`\`${H}\` does not exist in \`theme.colorSchemes\`.`)),P&&(h.includes(P)?(V.darkColorScheme=P,b?.set(P)):console.error(`\`${P}\` does not exist in \`theme.colorSchemes\`.`)),V}):T(z=>(x?.set(n),b?.set(r),{...z,lightColorScheme:n,darkColorScheme:r}))},[h,x,b,n,r]),M=E.useCallback(B=>{S.mode==="system"&&T(z=>{const V=B?.matches?"dark":"light";return z.systemMode===V?z:{...z,systemMode:V}})},[S.mode]),L=E.useRef(M);return L.current=M,E.useEffect(()=>{if(typeof window.matchMedia!="function"||!g)return;const B=(...V)=>L.current(...V),z=window.matchMedia("(prefers-color-scheme: dark)");return z.addListener(B),B(z),()=>{z.removeListener(B)}},[g]),E.useEffect(()=>{if(g){const B=v?.subscribe(H=>{(!H||["light","dark","system"].includes(H))&&_(H||t)})||Fy,z=x?.subscribe(H=>{(!H||h.match(H))&&O({light:H})})||Fy,V=b?.subscribe(H=>{(!H||h.match(H))&&O({dark:H})})||Fy;return()=>{B(),z(),V()}}},[O,_,h,t,f,g,v,x,b]),{...S,mode:w?S.mode:void 0,systemMode:w?S.systemMode:void 0,colorScheme:w?A:void 0,setMode:_,setColorScheme:O}}const s5="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function l5(e){const{themeId:t,theme:n={},modeStorageKey:r=Kb,colorSchemeStorageKey:a=Xb,disableTransitionOnChange:s=!1,defaultColorScheme:c,resolveTheme:f}=e,d={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},p=E.createContext(void 0),h=()=>E.useContext(p)||d,g={},v={};function x(w){const{children:R,theme:A,modeStorageKey:_=r,colorSchemeStorageKey:O=a,disableTransitionOnChange:M=s,storageManager:L,storageWindow:B=typeof window>"u"?void 0:window,documentNode:z=typeof document>"u"?void 0:document,colorSchemeNode:V=typeof document>"u"?void 0:document.documentElement,disableNestedContext:H=!1,disableStyleSheetGeneration:P=!1,defaultMode:K="system",forceThemeRerender:U=!1,noSsr:j}=w,k=E.useRef(!1),I=Wb(),q=E.useContext(p),X=!!q&&!H,ie=E.useMemo(()=>A||(typeof n=="function"?n():n),[A]),$=ie[t],W=$||ie,{colorSchemes:te=g,components:oe=v,cssVarPrefix:le}=W,he=Object.keys(te).filter(Te=>!!te[Te]).join(","),ge=E.useMemo(()=>he.split(","),[he]),Me=typeof c=="string"?c:c.light,ve=typeof c=="string"?c:c.dark,ye=te[Me]&&te[ve]?K:te[W.defaultColorScheme]?.palette?.mode||W.palette?.mode,{mode:Ae,setMode:_e,systemMode:je,lightColorScheme:xe,darkColorScheme:qe,colorScheme:Ot,setColorScheme:mt}=a5({supportedColorSchemes:ge,defaultLightColorScheme:Me,defaultDarkColorScheme:ve,modeStorageKey:_,colorSchemeStorageKey:O,defaultMode:ye,storageManager:L,storageWindow:B,noSsr:j});let lt=Ae,nt=Ot;X&&(lt=q.mode,nt=q.colorScheme);let Qe=nt||W.defaultColorScheme;W.vars&&!U&&(Qe=W.defaultColorScheme);const Je=E.useMemo(()=>{const Te=W.generateThemeVars?.()||W.vars,Se={...W,components:oe,colorSchemes:te,cssVarPrefix:le,vars:Te};if(typeof Se.generateSpacing=="function"&&(Se.spacing=Se.generateSpacing()),Qe){const ze=te[Qe];ze&&typeof ze=="object"&&Object.keys(ze).forEach(ot=>{ze[ot]&&typeof ze[ot]=="object"?Se[ot]={...Se[ot],...ze[ot]}:Se[ot]=ze[ot]})}return f?f(Se):Se},[W,Qe,oe,te,le]),G=W.colorSchemeSelector;Vr(()=>{if(nt&&V&&G&&G!=="media"){const Te=G;let Se=G;if(Te==="class"&&(Se=".%s"),Te==="data"&&(Se="[data-%s]"),Te?.startsWith("data-")&&!Te.includes("%s")&&(Se=`[${Te}="%s"]`),Se.startsWith("."))V.classList.remove(...ge.map(ze=>Se.substring(1).replace("%s",ze))),V.classList.add(Se.substring(1).replace("%s",nt));else{const ze=Se.replace("%s",nt).match(/\[([^\]]+)\]/);if(ze){const[ot,$t]=ze[1].split("=");$t||ge.forEach(Ue=>{V.removeAttribute(ot.replace(nt,Ue))}),V.setAttribute(ot,$t?$t.replace(/"|'/g,""):"")}else V.setAttribute(Se,nt)}}},[nt,G,V,ge]),E.useEffect(()=>{let Te;if(M&&k.current&&z){const Se=z.createElement("style");Se.appendChild(z.createTextNode(s5)),z.head.appendChild(Se),window.getComputedStyle(z.body),Te=setTimeout(()=>{z.head.removeChild(Se)},1)}return()=>{clearTimeout(Te)}},[nt,M,z]),E.useEffect(()=>(k.current=!0,()=>{k.current=!1}),[]);const me=E.useMemo(()=>({allColorSchemes:ge,colorScheme:nt,darkColorScheme:qe,lightColorScheme:xe,mode:lt,setColorScheme:mt,setMode:_e,systemMode:je}),[ge,nt,qe,xe,lt,mt,_e,je,Je.colorSchemeSelector]);let de=!0;(P||W.cssVariables===!1||X&&I?.cssVarPrefix===le)&&(de=!1);const be=D.jsxs(E.Fragment,{children:[D.jsx(v2,{themeId:$?t:void 0,theme:Je,children:R}),de&&D.jsx(t2,{styles:Je.generateStyleSheets?.()||[]})]});return X?be:D.jsx(p.Provider,{value:me,children:be})}const b=typeof c=="string"?c:c.light,S=typeof c=="string"?c:c.dark;return{CssVarsProvider:x,useColorScheme:h,getInitColorSchemeScript:w=>n5({colorSchemeStorageKey:a,defaultLightColorScheme:b,defaultDarkColorScheme:S,modeStorageKey:r,...w})}}function c5(e=""){function t(...r){if(!r.length)return"";const a=r[0];return typeof a=="string"&&!a.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}-`:""}${a}${t(...r.slice(1))})`:`, ${a}`}return(r,...a)=>`var(--${e?`${e}-`:""}${r}${t(...a)})`}const wC=(e,t,n,r=[])=>{let a=e;t.forEach((s,c)=>{c===t.length-1?Array.isArray(a)?a[Number(s)]=n:a&&typeof a=="object"&&(a[s]=n):a&&typeof a=="object"&&(a[s]||(a[s]=r.includes(s)?[]:{}),a=a[s])})},u5=(e,t,n)=>{function r(a,s=[],c=[]){Object.entries(a).forEach(([f,d])=>{(!n||n&&!n([...s,f]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?r(d,[...s,f],Array.isArray(d)?[...c,f]:c):t([...s,f],d,c))})}r(e)},f5=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Vy(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},a={},s={},c={};return u5(e,(f,d,p)=>{if((typeof d=="string"||typeof d=="number")&&(!r||!r(f,d))){const h=`--${n?`${n}-`:""}${f.join("-")}`,g=f5(f,d);Object.assign(a,{[h]:g}),wC(s,f,`var(${h})`,p),wC(c,f,`var(${h}, ${g})`,p)}},f=>f[0]==="vars"),{css:a,vars:s,varsWithDefaults:c}}function d5(e,t={}){const{getSelector:n=w,disableCssColorScheme:r,colorSchemeSelector:a,enableContrastVars:s}=t,{colorSchemes:c={},components:f,defaultColorScheme:d="light",...p}=e,{vars:h,css:g,varsWithDefaults:v}=Vy(p,t);let x=v;const b={},{[d]:S,...T}=c;if(Object.entries(T||{}).forEach(([_,O])=>{const{vars:M,css:L,varsWithDefaults:B}=Vy(O,t);x=Sn(x,B),b[_]={css:L,vars:M}}),S){const{css:_,vars:O,varsWithDefaults:M}=Vy(S,t);x=Sn(x,M),b[d]={css:_,vars:O}}function w(_,O){let M=a;if(a==="class"&&(M=".%s"),a==="data"&&(M="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(M=`[${a}="%s"]`),_){if(M==="media")return e.defaultColorScheme===_?":root":{[`@media (prefers-color-scheme: ${c[_]?.palette?.mode||_})`]:{":root":O}};if(M)return e.defaultColorScheme===_?`:root, ${M.replace("%s",String(_))}`:M.replace("%s",String(_))}return":root"}return{vars:x,generateThemeVars:()=>{let _={...h};return Object.entries(b).forEach(([,{vars:O}])=>{_=Sn(_,O)}),_},generateStyleSheets:()=>{const _=[],O=e.defaultColorScheme||"light";function M(z,V){Object.keys(V).length&&_.push(typeof z=="string"?{[z]:{...V}}:z)}M(n(void 0,{...g}),g);const{[O]:L,...B}=b;if(L){const{css:z}=L,V=c[O]?.palette?.mode,H=!r&&V?{colorScheme:V,...z}:{...z};M(n(O,{...H}),H)}return Object.entries(B).forEach(([z,{css:V}])=>{const H=c[z]?.palette?.mode,P=!r&&H?{colorScheme:H,...V}:{...V};M(n(z,{...P}),P)}),s&&_.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)"}}),_}}}function p5(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function Ie(e,t,n=void 0){const r={};for(const a in e){const s=e[a];let c="",f=!0;for(let d=0;d<s.length;d+=1){const p=s[d];p&&(c+=(f===!0?"":" ")+t(p),f=!1,n&&n[p]&&(c+=" "+n[p]))}r[a]=c}return r}function dp(e,t){return E.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const h5=Dh(),m5=$j("div",{name:"MuiStack",slot:"Root"});function g5(e){return Ij({props:e,name:"MuiStack",defaultTheme:h5})}function y5(e,t){const n=E.Children.toArray(e).filter(Boolean);return n.reduce((r,a,s)=>(r.push(a),s<n.length-1&&r.push(E.cloneElement(t,{key:`separator-${s}`})),r),[])}const v5=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],b5=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...ti({theme:t},jy({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=Ch(t),a=Object.keys(t.breakpoints.values).reduce((d,p)=>((typeof e.spacing=="object"&&e.spacing[p]!=null||typeof e.direction=="object"&&e.direction[p]!=null)&&(d[p]=!0),d),{}),s=jy({values:e.direction,base:a}),c=jy({values:e.spacing,base:a});typeof s=="object"&&Object.keys(s).forEach((d,p,h)=>{if(!s[d]){const v=p>0?s[h[p-1]]:"column";s[d]=v}}),n=Sn(n,ti({theme:t},c,(d,p)=>e.useFlexGap?{gap:os(r,d)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${v5(p?s[p]:e.direction)}`]:os(r,d)}}))}return n=LI(t.breakpoints,n),n};function S2(e={}){const{createStyledComponent:t=m5,useThemeProps:n=g5,componentName:r="MuiStack"}=e,a=()=>Ie({root:["root"]},d=>Be(r,d),{}),s=t(b5);return E.forwardRef(function(d,p){const h=n(d),g=Gb(h),{component:v="div",direction:x="column",spacing:b=0,divider:S,children:T,className:w,useFlexGap:R=!1,...A}=g,_={direction:x,spacing:b,useFlexGap:R},O=a();return D.jsx(s,{as:v,ownerState:_,ref:p,className:we(O.root,w),...A,children:S?y5(T,S):T})})}const Vp=S2();function x2(){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:_u.white,default:_u.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 T2=x2();function E2(){return{text:{primary:_u.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:_u.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 ev=E2();function CC(e,t,n,r){const a=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Lh(e.main,a):t==="dark"&&(e.dark=Nh(e.main,s)))}function AC(e,t,n,r,a){const s=a.light||a,c=a.dark||a*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(c*100).toFixed(0)}%)`))}function S5(e="light"){return e==="dark"?{main:hl[200],light:hl[50],dark:hl[400]}:{main:hl[700],light:hl[400],dark:hl[800]}}function x5(e="light"){return e==="dark"?{main:pl[200],light:pl[50],dark:pl[400]}:{main:pl[500],light:pl[300],dark:pl[700]}}function T5(e="light"){return e==="dark"?{main:dl[500],light:dl[300],dark:dl[700]}:{main:dl[700],light:dl[400],dark:dl[800]}}function E5(e="light"){return e==="dark"?{main:ml[400],light:ml[300],dark:ml[700]}:{main:ml[700],light:ml[500],dark:ml[900]}}function w5(e="light"){return e==="dark"?{main:gl[400],light:gl[300],dark:gl[700]}:{main:gl[800],light:gl[500],dark:gl[900]}}function C5(e="light"){return e==="dark"?{main:Gc[400],light:Gc[300],dark:Gc[700]}:{main:"#ed6c02",light:Gc[500],dark:Gc[900]}}function A5(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Zb(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:a,...s}=e,c=e.primary||S5(t),f=e.secondary||x5(t),d=e.error||T5(t),p=e.info||E5(t),h=e.success||w5(t),g=e.warning||C5(t);function v(T){return a?A5(T):Fj(T,ev.text.primary)>=n?ev.text.primary:T2.text.primary}const x=({color:T,name:w,mainShade:R=500,lightShade:A=300,darkShade:_=700})=>{if(T={...T},!T.main&&T[R]&&(T.main=T[R]),!T.hasOwnProperty("main"))throw new Error(co(11,w?` (${w})`:"",R));if(typeof T.main!="string")throw new Error(co(12,w?` (${w})`:"",JSON.stringify(T.main)));return a?(AC(a,T,"light",A,r),AC(a,T,"dark",_,r)):(CC(T,"light",A,r),CC(T,"dark",_,r)),T.contrastText||(T.contrastText=v(T.main)),T};let b;return t==="light"?b=x2():t==="dark"&&(b=E2()),Sn({common:{..._u},mode:t,primary:x({color:c,name:"primary"}),secondary:x({color:f,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:x({color:d,name:"error"}),warning:x({color:g,name:"warning"}),info:x({color:p,name:"info"}),success:x({color:h,name:"success"}),grey:AB,contrastThreshold:n,getContrastText:v,augmentColor:x,tonalOffset:r,...b},s)}function O5(e){const t={};return Object.entries(e).forEach(r=>{const[a,s]=r;typeof s=="object"&&(t[a]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function R5(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function _5(e){return Math.round(e*1e5)/1e5}const OC={textTransform:"uppercase"},RC='"Roboto", "Helvetica", "Arial", sans-serif';function w2(e,t){const{fontFamily:n=RC,fontSize:r=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:f=700,htmlFontSize:d=16,allVariants:p,pxToRem:h,...g}=typeof t=="function"?t(e):t,v=r/14,x=h||(T=>`${T/d*v}rem`),b=(T,w,R,A,_)=>({fontFamily:n,fontWeight:T,fontSize:x(w),lineHeight:R,...n===RC?{letterSpacing:`${_5(A/w)}em`}:{},..._,...p}),S={h1:b(a,96,1.167,-1.5),h2:b(a,60,1.2,-.5),h3:b(s,48,1.167,0),h4:b(s,34,1.235,.25),h5:b(s,24,1.334,0),h6:b(c,20,1.6,.15),subtitle1:b(s,16,1.75,.15),subtitle2:b(c,14,1.57,.1),body1:b(s,16,1.5,.15),body2:b(s,14,1.43,.15),button:b(c,14,1.75,.4,OC),caption:b(s,12,1.66,.4),overline:b(s,12,2.66,1,OC),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Sn({htmlFontSize:d,pxToRem:x,fontFamily:n,fontSize:r,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:f,...S},g,{clone:!1})}const M5=.2,D5=.14,P5=.12;function jt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${M5})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${D5})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${P5})`].join(",")}const k5=["none",jt(0,2,1,-1,0,1,1,0,0,1,3,0),jt(0,3,1,-2,0,2,2,0,0,1,5,0),jt(0,3,3,-2,0,3,4,0,0,1,8,0),jt(0,2,4,-1,0,4,5,0,0,1,10,0),jt(0,3,5,-1,0,5,8,0,0,1,14,0),jt(0,3,5,-1,0,6,10,0,0,1,18,0),jt(0,4,5,-2,0,7,10,1,0,2,16,1),jt(0,5,5,-3,0,8,10,1,0,3,14,2),jt(0,5,6,-3,0,9,12,1,0,3,16,2),jt(0,6,6,-3,0,10,14,1,0,4,18,3),jt(0,6,7,-4,0,11,15,1,0,4,20,3),jt(0,7,8,-4,0,12,17,2,0,5,22,4),jt(0,7,8,-4,0,13,19,2,0,5,24,4),jt(0,7,9,-4,0,14,21,2,0,5,26,4),jt(0,8,9,-5,0,15,22,2,0,6,28,5),jt(0,8,10,-5,0,16,24,2,0,6,30,5),jt(0,8,11,-5,0,17,26,2,0,6,32,5),jt(0,9,11,-5,0,18,28,2,0,7,34,6),jt(0,9,12,-6,0,19,29,2,0,7,36,6),jt(0,10,13,-6,0,20,31,3,0,8,38,7),jt(0,10,13,-6,0,21,33,3,0,8,40,7),jt(0,10,14,-6,0,22,35,3,0,8,42,7),jt(0,11,14,-7,0,23,36,3,0,9,44,8),jt(0,11,15,-7,0,24,38,3,0,9,46,8)],N5={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)"},L5={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function _C(e){return`${Math.round(e)}ms`}function $5(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function B5(e){const t={...N5,...e.easing},n={...L5,...e.duration};return{getAutoHeightDuration:$5,create:(a=["all"],s={})=>{const{duration:c=n.standard,easing:f=t.easeInOut,delay:d=0,...p}=s;return(Array.isArray(a)?a:[a]).map(h=>`${h} ${typeof c=="string"?c:_C(c)} ${f} ${typeof d=="string"?d:_C(d)}`).join(",")},...e,easing:t,duration:n}}const I5={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function j5(e){return vi(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function C2(e={}){const t={...e};function n(r){const a=Object.entries(r);for(let s=0;s<a.length;s++){const[c,f]=a[s];!j5(f)||c.startsWith("unstable_")?delete r[c]:vi(f)&&(r[c]={...f},n(r[c]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
92
+
93
+ const theme = ${JSON.stringify(t,null,2)};
94
+
95
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
96
+ theme.transitions = createTransitions(theme.transitions || {});
97
+
98
+ export default theme;`}function MC(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const z5=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function U5(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:Fp(t,z5(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${MC(n)})`:Lh(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${MC(n)})`:Nh(t,n)}})}function tv(e={},...t){const{breakpoints:n,mixins:r={},spacing:a,palette:s={},transitions:c={},typography:f={},shape:d,colorSpace:p,...h}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(co(20));const g=Zb({...s,colorSpace:p}),v=Dh(e);let x=Sn(v,{mixins:R5(v.breakpoints,r),palette:g,shadows:k5.slice(),typography:w2(g,f),transitions:B5(c),zIndex:{...I5}});return x=Sn(x,h),x=t.reduce((b,S)=>Sn(b,S),x),x.unstable_sxConfig={...rf,...h?.unstable_sxConfig},x.unstable_sx=function(S){return ta({sx:S,theme:this})},x.toRuntimeSource=C2,U5(x),x}function nv(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const F5=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=nv(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function A2(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function O2(e){return e==="dark"?F5:[]}function V5(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:a,...s}=e,c=Zb({...t,colorSpace:a});return{palette:c,opacity:{...A2(c.mode),...n},overlays:r||O2(c.mode),...s}}function H5(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 q5=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],G5=e=>(t,n)=>{const r=e.rootSelector||":root",a=e.colorSchemeSelector;let s=a;if(a==="class"&&(s=".%s"),a==="data"&&(s="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(s=`[${a}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const c={};return q5(e.cssVarPrefix).forEach(f=>{c[f]=n[f],delete n[f]}),s==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:c}}:s?{[s.replace("%s",t)]:c,[`${r}, ${s.replace("%s",t)}`]:n}:{[r]:{...n,...c}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(s)return s.replace("%s",String(t))}return r};function Y5(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function se(e,t,n){!e[t]&&n&&(e[t]=n)}function lu(e){return typeof e!="string"||!e.startsWith("hsl")?e:h2(e)}function Qi(e,t){`${t}Channel`in e||(e[`${t}Channel`]=su(lu(e[t])))}function W5(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const fi=e=>{try{return e()}catch{}},K5=(e="mui")=>c5(e);function Hy(e,t,n,r,a){if(!n)return;n=n===!0?{}:n;const s=a==="dark"?"dark":"light";if(!r){t[a]=V5({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:c,...f}=tv({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[a]={...n,palette:c,opacity:{...A2(s),...n?.opacity},overlays:n?.overlays||O2(s)},f}function X5(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:a=!1,cssVarPrefix:s="mui",nativeColor:c=!1,shouldSkipGeneratingVar:f=H5,colorSchemeSelector:d=n.light&&n.dark?"media":void 0,rootSelector:p=":root",...h}=e,g=Object.keys(n)[0],v=r||(n.light&&g!=="light"?"light":g),x=K5(s),{[v]:b,light:S,dark:T,...w}=n,R={...w};let A=b;if((v==="dark"&&!("dark"in n)||v==="light"&&!("light"in n))&&(A=!0),!A)throw new Error(co(21,v));let _;c&&(_="oklch");const O=Hy(_,R,A,h,v);S&&!R.light&&Hy(_,R,S,void 0,"light"),T&&!R.dark&&Hy(_,R,T,void 0,"dark");let M={defaultColorScheme:v,...O,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:p,getCssVar:x,colorSchemes:R,font:{...O5(O.typography),...O.font},spacing:W5(h.spacing)};Object.keys(M.colorSchemes).forEach(H=>{const P=M.colorSchemes[H].palette,K=j=>{const k=j.split("-"),I=k[1],q=k[2];return x(j,P[I][q])};P.mode==="light"&&(se(P.common,"background","#fff"),se(P.common,"onBackground","#000")),P.mode==="dark"&&(se(P.common,"background","#000"),se(P.common,"onBackground","#fff"));function U(j,k,I){if(_){let q;return j===Pa&&(q=`transparent ${((1-I)*100).toFixed(0)}%`),j===bt&&(q=`#000 ${(I*100).toFixed(0)}%`),j===St&&(q=`#fff ${(I*100).toFixed(0)}%`),`color-mix(in ${_}, ${k}, ${q})`}return j(k,I)}if(Y5(P,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),P.mode==="light"){se(P.Alert,"errorColor",U(bt,P.error.light,.6)),se(P.Alert,"infoColor",U(bt,P.info.light,.6)),se(P.Alert,"successColor",U(bt,P.success.light,.6)),se(P.Alert,"warningColor",U(bt,P.warning.light,.6)),se(P.Alert,"errorFilledBg",K("palette-error-main")),se(P.Alert,"infoFilledBg",K("palette-info-main")),se(P.Alert,"successFilledBg",K("palette-success-main")),se(P.Alert,"warningFilledBg",K("palette-warning-main")),se(P.Alert,"errorFilledColor",fi(()=>P.getContrastText(P.error.main))),se(P.Alert,"infoFilledColor",fi(()=>P.getContrastText(P.info.main))),se(P.Alert,"successFilledColor",fi(()=>P.getContrastText(P.success.main))),se(P.Alert,"warningFilledColor",fi(()=>P.getContrastText(P.warning.main))),se(P.Alert,"errorStandardBg",U(St,P.error.light,.9)),se(P.Alert,"infoStandardBg",U(St,P.info.light,.9)),se(P.Alert,"successStandardBg",U(St,P.success.light,.9)),se(P.Alert,"warningStandardBg",U(St,P.warning.light,.9)),se(P.Alert,"errorIconColor",K("palette-error-main")),se(P.Alert,"infoIconColor",K("palette-info-main")),se(P.Alert,"successIconColor",K("palette-success-main")),se(P.Alert,"warningIconColor",K("palette-warning-main")),se(P.AppBar,"defaultBg",K("palette-grey-100")),se(P.Avatar,"defaultBg",K("palette-grey-400")),se(P.Button,"inheritContainedBg",K("palette-grey-300")),se(P.Button,"inheritContainedHoverBg",K("palette-grey-A100")),se(P.Chip,"defaultBorder",K("palette-grey-400")),se(P.Chip,"defaultAvatarColor",K("palette-grey-700")),se(P.Chip,"defaultIconColor",K("palette-grey-700")),se(P.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),se(P.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),se(P.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),se(P.LinearProgress,"primaryBg",U(St,P.primary.main,.62)),se(P.LinearProgress,"secondaryBg",U(St,P.secondary.main,.62)),se(P.LinearProgress,"errorBg",U(St,P.error.main,.62)),se(P.LinearProgress,"infoBg",U(St,P.info.main,.62)),se(P.LinearProgress,"successBg",U(St,P.success.main,.62)),se(P.LinearProgress,"warningBg",U(St,P.warning.main,.62)),se(P.Skeleton,"bg",_?U(Pa,P.text.primary,.11):`rgba(${K("palette-text-primaryChannel")} / 0.11)`),se(P.Slider,"primaryTrack",U(St,P.primary.main,.62)),se(P.Slider,"secondaryTrack",U(St,P.secondary.main,.62)),se(P.Slider,"errorTrack",U(St,P.error.main,.62)),se(P.Slider,"infoTrack",U(St,P.info.main,.62)),se(P.Slider,"successTrack",U(St,P.success.main,.62)),se(P.Slider,"warningTrack",U(St,P.warning.main,.62));const j=_?U(bt,P.background.default,.6825):Ld(P.background.default,.8);se(P.SnackbarContent,"bg",j),se(P.SnackbarContent,"color",fi(()=>_?ev.text.primary:P.getContrastText(j))),se(P.SpeedDialAction,"fabHoverBg",Ld(P.background.paper,.15)),se(P.StepConnector,"border",K("palette-grey-400")),se(P.StepContent,"border",K("palette-grey-400")),se(P.Switch,"defaultColor",K("palette-common-white")),se(P.Switch,"defaultDisabledColor",K("palette-grey-100")),se(P.Switch,"primaryDisabledColor",U(St,P.primary.main,.62)),se(P.Switch,"secondaryDisabledColor",U(St,P.secondary.main,.62)),se(P.Switch,"errorDisabledColor",U(St,P.error.main,.62)),se(P.Switch,"infoDisabledColor",U(St,P.info.main,.62)),se(P.Switch,"successDisabledColor",U(St,P.success.main,.62)),se(P.Switch,"warningDisabledColor",U(St,P.warning.main,.62)),se(P.TableCell,"border",U(St,U(Pa,P.divider,1),.88)),se(P.Tooltip,"bg",U(Pa,P.grey[700],.92))}if(P.mode==="dark"){se(P.Alert,"errorColor",U(St,P.error.light,.6)),se(P.Alert,"infoColor",U(St,P.info.light,.6)),se(P.Alert,"successColor",U(St,P.success.light,.6)),se(P.Alert,"warningColor",U(St,P.warning.light,.6)),se(P.Alert,"errorFilledBg",K("palette-error-dark")),se(P.Alert,"infoFilledBg",K("palette-info-dark")),se(P.Alert,"successFilledBg",K("palette-success-dark")),se(P.Alert,"warningFilledBg",K("palette-warning-dark")),se(P.Alert,"errorFilledColor",fi(()=>P.getContrastText(P.error.dark))),se(P.Alert,"infoFilledColor",fi(()=>P.getContrastText(P.info.dark))),se(P.Alert,"successFilledColor",fi(()=>P.getContrastText(P.success.dark))),se(P.Alert,"warningFilledColor",fi(()=>P.getContrastText(P.warning.dark))),se(P.Alert,"errorStandardBg",U(bt,P.error.light,.9)),se(P.Alert,"infoStandardBg",U(bt,P.info.light,.9)),se(P.Alert,"successStandardBg",U(bt,P.success.light,.9)),se(P.Alert,"warningStandardBg",U(bt,P.warning.light,.9)),se(P.Alert,"errorIconColor",K("palette-error-main")),se(P.Alert,"infoIconColor",K("palette-info-main")),se(P.Alert,"successIconColor",K("palette-success-main")),se(P.Alert,"warningIconColor",K("palette-warning-main")),se(P.AppBar,"defaultBg",K("palette-grey-900")),se(P.AppBar,"darkBg",K("palette-background-paper")),se(P.AppBar,"darkColor",K("palette-text-primary")),se(P.Avatar,"defaultBg",K("palette-grey-600")),se(P.Button,"inheritContainedBg",K("palette-grey-800")),se(P.Button,"inheritContainedHoverBg",K("palette-grey-700")),se(P.Chip,"defaultBorder",K("palette-grey-700")),se(P.Chip,"defaultAvatarColor",K("palette-grey-300")),se(P.Chip,"defaultIconColor",K("palette-grey-300")),se(P.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),se(P.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),se(P.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),se(P.LinearProgress,"primaryBg",U(bt,P.primary.main,.5)),se(P.LinearProgress,"secondaryBg",U(bt,P.secondary.main,.5)),se(P.LinearProgress,"errorBg",U(bt,P.error.main,.5)),se(P.LinearProgress,"infoBg",U(bt,P.info.main,.5)),se(P.LinearProgress,"successBg",U(bt,P.success.main,.5)),se(P.LinearProgress,"warningBg",U(bt,P.warning.main,.5)),se(P.Skeleton,"bg",_?U(Pa,P.text.primary,.13):`rgba(${K("palette-text-primaryChannel")} / 0.13)`),se(P.Slider,"primaryTrack",U(bt,P.primary.main,.5)),se(P.Slider,"secondaryTrack",U(bt,P.secondary.main,.5)),se(P.Slider,"errorTrack",U(bt,P.error.main,.5)),se(P.Slider,"infoTrack",U(bt,P.info.main,.5)),se(P.Slider,"successTrack",U(bt,P.success.main,.5)),se(P.Slider,"warningTrack",U(bt,P.warning.main,.5));const j=_?U(St,P.background.default,.985):Ld(P.background.default,.98);se(P.SnackbarContent,"bg",j),se(P.SnackbarContent,"color",fi(()=>_?T2.text.primary:P.getContrastText(j))),se(P.SpeedDialAction,"fabHoverBg",Ld(P.background.paper,.15)),se(P.StepConnector,"border",K("palette-grey-600")),se(P.StepContent,"border",K("palette-grey-600")),se(P.Switch,"defaultColor",K("palette-grey-300")),se(P.Switch,"defaultDisabledColor",K("palette-grey-600")),se(P.Switch,"primaryDisabledColor",U(bt,P.primary.main,.55)),se(P.Switch,"secondaryDisabledColor",U(bt,P.secondary.main,.55)),se(P.Switch,"errorDisabledColor",U(bt,P.error.main,.55)),se(P.Switch,"infoDisabledColor",U(bt,P.info.main,.55)),se(P.Switch,"successDisabledColor",U(bt,P.success.main,.55)),se(P.Switch,"warningDisabledColor",U(bt,P.warning.main,.55)),se(P.TableCell,"border",U(bt,U(Pa,P.divider,1),.68)),se(P.Tooltip,"bg",U(Pa,P.grey[700],.92))}Qi(P.background,"default"),Qi(P.background,"paper"),Qi(P.common,"background"),Qi(P.common,"onBackground"),Qi(P,"divider"),Object.keys(P).forEach(j=>{const k=P[j];j!=="tonalOffset"&&k&&typeof k=="object"&&(k.main&&se(P[j],"mainChannel",su(lu(k.main))),k.light&&se(P[j],"lightChannel",su(lu(k.light))),k.dark&&se(P[j],"darkChannel",su(lu(k.dark))),k.contrastText&&se(P[j],"contrastTextChannel",su(lu(k.contrastText))),j==="text"&&(Qi(P[j],"primary"),Qi(P[j],"secondary")),j==="action"&&(k.active&&Qi(P[j],"active"),k.selected&&Qi(P[j],"selected")))})}),M=t.reduce((H,P)=>Sn(H,P),M);const L={prefix:s,disableCssColorScheme:a,shouldSkipGeneratingVar:f,getSelector:G5(M),enableContrastVars:c},{vars:B,generateThemeVars:z,generateStyleSheets:V}=d5(M,L);return M.vars=B,Object.entries(M.colorSchemes[M.defaultColorScheme]).forEach(([H,P])=>{M[H]=P}),M.generateThemeVars=z,M.generateStyleSheets=V,M.generateSpacing=function(){return s2(h.spacing,Ch(this))},M.getColorSchemeSelector=p5(d),M.spacing=M.generateSpacing(),M.shouldSkipGeneratingVar=f,M.unstable_sxConfig={...rf,...h?.unstable_sxConfig},M.unstable_sx=function(P){return ta({sx:P,theme:this})},M.toRuntimeSource=C2,M}function DC(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Zb({...n===!0?{}:n.palette,mode:t})})}function Bh(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:a=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...c}=e,f=s||"light",d=a?.[f],p={...a,...n?{[f]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return tv(e,...t);let h=n;"palette"in e||p[f]&&(p[f]!==!0?h=p[f].palette:f==="dark"&&(h={mode:"dark"}));const g=tv({...e,palette:h},...t);return g.defaultColorScheme=f,g.colorSchemes=p,g.palette.mode==="light"&&(g.colorSchemes.light={...p.light!==!0&&p.light,palette:g.palette},DC(g,"dark",p.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:g.palette},DC(g,"light",p.light)),g}return!n&&!("light"in p)&&f==="light"&&(p.light=!0),X5({...c,colorSchemes:p,defaultColorScheme:f,...typeof r!="boolean"&&r},...t)}function Z5(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Q5(e){return parseFloat(e)}const Qb=Bh();function Un(){const e=Ph(Qb);return e[bi]||e}function R2(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Fn=e=>R2(e)&&e!=="classes",fe=p2({themeId:bi,defaultTheme:Qb,rootShouldForwardProp:Fn});function J5({theme:e,...t}){const n=bi in e?e[bi]:void 0;return D.jsx(v2,{...t,themeId:n?bi:void 0,theme:n||e})}const $d={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:ez}=l5({themeId:bi,theme:()=>Bh({cssVariables:!0}),colorSchemeStorageKey:$d.colorSchemeStorageKey,modeStorageKey:$d.modeStorageKey,defaultColorScheme:{light:$d.defaultLightColorScheme,dark:$d.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:w2(e.palette,e.typography)};return t.unstable_sx=function(r){return ta({sx:r,theme:this})},t}}),tz=ez;function nz({theme:e,...t}){const n=E.useMemo(()=>{if(typeof e=="function")return e;const r=bi in e?e[bi]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?D.jsx(J5,{theme:n,...t}):D.jsx(tz,{theme:e,...t})}function rv(...e){return e.reduce((t,n)=>n==null?t:function(...a){t.apply(this,a),n.apply(this,a)},()=>{})}function rz(e){return D.jsx(l2,{...e,defaultTheme:Qb,themeId:bi})}function Jb(e){return function(n){return D.jsx(rz,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function iz(){return Gb}const $e=e5;function Ve(e){return Xj(e)}function oz(e){return Be("MuiSvgIcon",e)}Ne("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const az=e=>{const{color:t,fontSize:n,classes:r}=e,a={root:["root",t!=="inherit"&&`color${pe(t)}`,`fontSize${pe(n)}`]};return Ie(a,oz,r)},sz=fe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${pe(n.color)}`],t[`fontSize${pe(n.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:t=>!t.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(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.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}}]}))),iv=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiSvgIcon"}),{children:a,className:s,color:c="inherit",component:f="svg",fontSize:d="medium",htmlColor:p,inheritViewBox:h=!1,titleAccess:g,viewBox:v="0 0 24 24",...x}=r,b=E.isValidElement(a)&&a.type==="svg",S={...r,color:c,component:f,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:v,hasSvgAsChild:b},T={};h||(T.viewBox=v);const w=az(S);return D.jsxs(sz,{as:f,className:we(w.root,s),focusable:"false",color:p,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:n,...T,...x,...b&&a.props,ownerState:S,children:[b?a.props.children:a,g?D.jsx("title",{children:g}):null]})});iv.muiName="SvgIcon";function bo(e,t){function n(r,a){return D.jsx(iv,{"data-testid":void 0,ref:a,...r,children:e})}return n.muiName=iv.muiName,E.memo(E.forwardRef(n))}function _2(e,t=166){let n;function r(...a){const s=()=>{e.apply(this,a)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function Ln(e){return e&&e.ownerDocument||document}function uo(e){return Ln(e).defaultView||window}function PC(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Nu(e){const{controlled:t,default:n,name:r,state:a="value"}=e,{current:s}=E.useRef(t!==void 0),[c,f]=E.useState(n),d=s?t:c,p=E.useCallback(h=>{s||f(h)},[]);return[d,p]}function zr(e){const t=E.useRef(e);return Vr(()=>{t.current=e}),E.useRef((...n)=>(0,t.current)(...n)).current}function on(...e){const t=E.useRef(void 0),n=E.useCallback(r=>{const a=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const c=s,f=c(r);return typeof f=="function"?f:()=>{c(null)}}return s.current=r,()=>{s.current=null}});return()=>{a.forEach(s=>s?.())}},e);return E.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function lz(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function cz(e,t){if(!e)return t;function n(c,f){const d={};return Object.keys(f).forEach(p=>{lz(p,f[p])&&typeof c[p]=="function"&&(d[p]=(...h)=>{c[p](...h),f[p](...h)})}),d}if(typeof e=="function"||typeof t=="function")return c=>{const f=typeof t=="function"?t(c):t,d=typeof e=="function"?e({...c,...f}):e,p=we(c?.className,f?.className,d?.className),h=n(d,f);return{...f,...d,...h,...!!p&&{className:p},...f?.style&&d?.style&&{style:{...f.style,...d.style}},...f?.sx&&d?.sx&&{sx:[...Array.isArray(f.sx)?f.sx:[f.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const r=t,a=n(e,r),s=we(r?.className,e?.className);return{...t,...e,...a,...!!s&&{className:s},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function M2(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ov(e,t){return ov=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ov(e,t)}function D2(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ov(e,t)}var P2=U_();const Bd=Ri(P2),kC={disabled:!1},Hp=_n.createContext(null);var uz=function(t){return t.scrollTop},cu="unmounted",Ba="exited",Ia="entering",bl="entered",av="exiting",Mi=(function(e){D2(t,e);function t(r,a){var s;s=e.call(this,r,a)||this;var c=a,f=c&&!c.isMounting?r.enter:r.appear,d;return s.appearStatus=null,r.in?f?(d=Ba,s.appearStatus=Ia):d=bl:r.unmountOnExit||r.mountOnEnter?d=cu:d=Ba,s.state={status:d},s.nextCallback=null,s}t.getDerivedStateFromProps=function(a,s){var c=a.in;return c&&s.status===cu?{status:Ba}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var s=null;if(a!==this.props){var c=this.state.status;this.props.in?c!==Ia&&c!==bl&&(s=Ia):(c===Ia||c===bl)&&(s=av)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,s,c,f;return s=c=f=a,a!=null&&typeof a!="number"&&(s=a.exit,c=a.enter,f=a.appear!==void 0?a.appear:c),{exit:s,enter:c,appear:f}},n.updateStatus=function(a,s){if(a===void 0&&(a=!1),s!==null)if(this.cancelNextCallback(),s===Ia){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:Bd.findDOMNode(this);c&&uz(c)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ba&&this.setState({status:cu})},n.performEnter=function(a){var s=this,c=this.props.enter,f=this.context?this.context.isMounting:a,d=this.props.nodeRef?[f]:[Bd.findDOMNode(this),f],p=d[0],h=d[1],g=this.getTimeouts(),v=f?g.appear:g.enter;if(!a&&!c||kC.disabled){this.safeSetState({status:bl},function(){s.props.onEntered(p)});return}this.props.onEnter(p,h),this.safeSetState({status:Ia},function(){s.props.onEntering(p,h),s.onTransitionEnd(v,function(){s.safeSetState({status:bl},function(){s.props.onEntered(p,h)})})})},n.performExit=function(){var a=this,s=this.props.exit,c=this.getTimeouts(),f=this.props.nodeRef?void 0:Bd.findDOMNode(this);if(!s||kC.disabled){this.safeSetState({status:Ba},function(){a.props.onExited(f)});return}this.props.onExit(f),this.safeSetState({status:av},function(){a.props.onExiting(f),a.onTransitionEnd(c.exit,function(){a.safeSetState({status:Ba},function(){a.props.onExited(f)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,s){s=this.setNextCallback(s),this.setState(a,s)},n.setNextCallback=function(a){var s=this,c=!0;return this.nextCallback=function(f){c&&(c=!1,s.nextCallback=null,a(f))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},n.onTransitionEnd=function(a,s){this.setNextCallback(s);var c=this.props.nodeRef?this.props.nodeRef.current:Bd.findDOMNode(this),f=a==null&&!this.props.addEndListener;if(!c||f){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],p=d[0],h=d[1];this.props.addEndListener(p,h)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===cu)return null;var s=this.props,c=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var f=M2(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _n.createElement(Hp.Provider,{value:null},typeof c=="function"?c(a,f):_n.cloneElement(_n.Children.only(c),f))},t})(_n.Component);Mi.contextType=Hp;Mi.propTypes={};function yl(){}Mi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:yl,onEntering:yl,onEntered:yl,onExit:yl,onExiting:yl,onExited:yl};Mi.UNMOUNTED=cu;Mi.EXITED=Ba;Mi.ENTERING=Ia;Mi.ENTERED=bl;Mi.EXITING=av;function fz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eS(e,t){var n=function(s){return t&&E.isValidElement(s)?t(s):s},r=Object.create(null);return e&&E.Children.map(e,function(a){return a}).forEach(function(a){r[a.key]=n(a)}),r}function dz(e,t){e=e||{},t=t||{};function n(h){return h in t?t[h]:e[h]}var r=Object.create(null),a=[];for(var s in e)s in t?a.length&&(r[s]=a,a=[]):a.push(s);var c,f={};for(var d in t){if(r[d])for(c=0;c<r[d].length;c++){var p=r[d][c];f[r[d][c]]=n(p)}f[d]=n(d)}for(c=0;c<a.length;c++)f[a[c]]=n(a[c]);return f}function Ha(e,t,n){return n[t]!=null?n[t]:e.props[t]}function pz(e,t){return eS(e.children,function(n){return E.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ha(n,"appear",e),enter:Ha(n,"enter",e),exit:Ha(n,"exit",e)})})}function hz(e,t,n){var r=eS(e.children),a=dz(t,r);return Object.keys(a).forEach(function(s){var c=a[s];if(E.isValidElement(c)){var f=s in t,d=s in r,p=t[s],h=E.isValidElement(p)&&!p.props.in;d&&(!f||h)?a[s]=E.cloneElement(c,{onExited:n.bind(null,c),in:!0,exit:Ha(c,"exit",e),enter:Ha(c,"enter",e)}):!d&&f&&!h?a[s]=E.cloneElement(c,{in:!1}):d&&f&&E.isValidElement(p)&&(a[s]=E.cloneElement(c,{onExited:n.bind(null,c),in:p.props.in,exit:Ha(c,"exit",e),enter:Ha(c,"enter",e)}))}}),a}var mz=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},gz={component:"div",childFactory:function(t){return t}},tS=(function(e){D2(t,e);function t(r,a){var s;s=e.call(this,r,a)||this;var c=s.handleExited.bind(fz(s));return s.state={contextValue:{isMounting:!0},handleExited:c,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(a,s){var c=s.children,f=s.handleExited,d=s.firstRender;return{children:d?pz(a,f):hz(a,c,f),firstRender:!1}},n.handleExited=function(a,s){var c=eS(this.props.children);a.key in c||(a.props.onExited&&a.props.onExited(s),this.mounted&&this.setState(function(f){var d=Ip({},f.children);return delete d[a.key],{children:d}}))},n.render=function(){var a=this.props,s=a.component,c=a.childFactory,f=M2(a,["component","childFactory"]),d=this.state.contextValue,p=mz(this.state.children).map(c);return delete f.appear,delete f.enter,delete f.exit,s===null?_n.createElement(Hp.Provider,{value:d},p):_n.createElement(Hp.Provider,{value:d},_n.createElement(s,f,p))},t})(_n.Component);tS.propTypes={};tS.defaultProps=gz;const NC={};function k2(e,t){const n=E.useRef(NC);return n.current===NC&&(n.current=e(t)),n}const yz=[];function vz(e){E.useEffect(e,yz)}class Ih{static create(){return new Ih}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function qa(){const e=k2(Ih.create).current;return vz(e.disposeEffect),e}const N2=e=>e.scrollTop;function qp(e,t){const{timeout:n,easing:r,style:a={}}=e;return{duration:a.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:a.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:a.transitionDelay}}function bz(e){return Be("MuiPaper",e)}Ne("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 Sz=e=>{const{square:t,elevation:n,variant:r,classes:a}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ie(s,bz,a)},xz=fe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.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:t})=>!t.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)"}}]}))),nS=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiPaper"}),a=Un(),{className:s,component:c="div",elevation:f=1,square:d=!1,variant:p="elevation",...h}=r,g={...r,component:c,elevation:f,square:d,variant:p},v=Sz(g);return D.jsx(xz,{as:c,ownerState:g,className:we(v.root,s),ref:n,...h,style:{...p==="elevation"&&{"--Paper-shadow":(a.vars||a).shadows[f],...a.vars&&{"--Paper-overlay":a.vars.overlays?.[f]},...!a.vars&&a.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Fp("#fff",nv(f))}, ${Fp("#fff",nv(f))})`}},...h.style}})});function Ml(e){return typeof e=="string"}function L2(e,t,n){return e===void 0||Ml(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function $2(e,t,n){return typeof e=="function"?e(t,n):e}function Gp(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function LC(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function B2(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:s}=e;if(!t){const x=we(n?.className,s,a?.className,r?.className),b={...n?.style,...a?.style,...r?.style},S={...n,...a,...r};return x.length>0&&(S.className=x),Object.keys(b).length>0&&(S.style=b),{props:S,internalRef:void 0}}const c=Gp({...a,...r}),f=LC(r),d=LC(a),p=t(c),h=we(p?.className,n?.className,s,a?.className,r?.className),g={...p?.style,...n?.style,...a?.style,...r?.style},v={...p,...n,...d,...f};return h.length>0&&(v.className=h),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:p.ref}}function Ze(e,t){const{className:n,elementType:r,ownerState:a,externalForwardedProps:s,internalForwardedProps:c,shouldForwardComponentProp:f=!1,...d}=t,{component:p,slots:h={[e]:void 0},slotProps:g={[e]:void 0},...v}=s,x=h[e]||r,b=$2(g[e],a),{props:{component:S,...T},internalRef:w}=B2({className:n,...d,externalForwardedProps:e==="root"?v:void 0,externalSlotProps:b}),R=on(w,b?.ref,t.ref),A=e==="root"?S||p:S,_=L2(x,{...e==="root"&&!p&&!h[e]&&c,...e!=="root"&&!h[e]&&c,...T,...A&&!f&&{as:A},...A&&f&&{component:A},ref:R},a);return[x,_]}function Yp(e){try{return e.matches(":focus-visible")}catch{}return!1}class Wp{static create(){return new Wp}static use(){const t=k2(Wp.create).current,[n,r]=E.useState(!1);return t.shouldMount=n,t.setShouldMount=r,E.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Ez(),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(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function Tz(){return Wp.use()}function Ez(){let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n}function wz(e){const{className:t,classes:n,pulsate:r=!1,rippleX:a,rippleY:s,rippleSize:c,in:f,onExited:d,timeout:p}=e,[h,g]=E.useState(!1),v=we(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),x={width:c,height:c,top:-(c/2)+s,left:-(c/2)+a},b=we(n.child,h&&n.childLeaving,r&&n.childPulsate);return!f&&!h&&g(!0),E.useEffect(()=>{if(!f&&d!=null){const S=setTimeout(d,p);return()=>{clearTimeout(S)}}},[d,f,p]),D.jsx("span",{className:v,style:x,children:D.jsx("span",{className:b})})}const $r=Ne("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),sv=550,Cz=80,Az=_i`
99
+ 0% {
100
+ transform: scale(0);
101
+ opacity: 0.1;
102
+ }
103
+
104
+ 100% {
105
+ transform: scale(1);
106
+ opacity: 0.3;
107
+ }
108
+ `,Oz=_i`
109
+ 0% {
110
+ opacity: 1;
111
+ }
112
+
113
+ 100% {
114
+ opacity: 0;
115
+ }
116
+ `,Rz=_i`
117
+ 0% {
118
+ transform: scale(1);
119
+ }
120
+
121
+ 50% {
122
+ transform: scale(0.92);
123
+ }
124
+
125
+ 100% {
126
+ transform: scale(1);
127
+ }
128
+ `,_z=fe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Mz=fe(wz,{name:"MuiTouchRipple",slot:"Ripple"})`
129
+ opacity: 0;
130
+ position: absolute;
131
+
132
+ &.${$r.rippleVisible} {
133
+ opacity: 0.3;
134
+ transform: scale(1);
135
+ animation-name: ${Az};
136
+ animation-duration: ${sv}ms;
137
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
138
+ }
139
+
140
+ &.${$r.ripplePulsate} {
141
+ animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
142
+ }
143
+
144
+ & .${$r.child} {
145
+ opacity: 1;
146
+ display: block;
147
+ width: 100%;
148
+ height: 100%;
149
+ border-radius: 50%;
150
+ background-color: currentColor;
151
+ }
152
+
153
+ & .${$r.childLeaving} {
154
+ opacity: 0;
155
+ animation-name: ${Oz};
156
+ animation-duration: ${sv}ms;
157
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
158
+ }
159
+
160
+ & .${$r.childPulsate} {
161
+ position: absolute;
162
+ /* @noflip */
163
+ left: 0px;
164
+ top: 0;
165
+ animation-name: ${Rz};
166
+ animation-duration: 2500ms;
167
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
168
+ animation-iteration-count: infinite;
169
+ animation-delay: 200ms;
170
+ }
171
+ `,Dz=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:s={},className:c,...f}=r,[d,p]=E.useState([]),h=E.useRef(0),g=E.useRef(null);E.useEffect(()=>{g.current&&(g.current(),g.current=null)},[d]);const v=E.useRef(!1),x=qa(),b=E.useRef(null),S=E.useRef(null),T=E.useCallback(_=>{const{pulsate:O,rippleX:M,rippleY:L,rippleSize:B,cb:z}=_;p(V=>[...V,D.jsx(Mz,{classes:{ripple:we(s.ripple,$r.ripple),rippleVisible:we(s.rippleVisible,$r.rippleVisible),ripplePulsate:we(s.ripplePulsate,$r.ripplePulsate),child:we(s.child,$r.child),childLeaving:we(s.childLeaving,$r.childLeaving),childPulsate:we(s.childPulsate,$r.childPulsate)},timeout:sv,pulsate:O,rippleX:M,rippleY:L,rippleSize:B},h.current)]),h.current+=1,g.current=z},[s]),w=E.useCallback((_={},O={},M=()=>{})=>{const{pulsate:L=!1,center:B=a||O.pulsate,fakeElement:z=!1}=O;if(_?.type==="mousedown"&&v.current){v.current=!1;return}_?.type==="touchstart"&&(v.current=!0);const V=z?null:S.current,H=V?V.getBoundingClientRect():{width:0,height:0,left:0,top:0};let P,K,U;if(B||_===void 0||_.clientX===0&&_.clientY===0||!_.clientX&&!_.touches)P=Math.round(H.width/2),K=Math.round(H.height/2);else{const{clientX:j,clientY:k}=_.touches&&_.touches.length>0?_.touches[0]:_;P=Math.round(j-H.left),K=Math.round(k-H.top)}if(B)U=Math.sqrt((2*H.width**2+H.height**2)/3),U%2===0&&(U+=1);else{const j=Math.max(Math.abs((V?V.clientWidth:0)-P),P)*2+2,k=Math.max(Math.abs((V?V.clientHeight:0)-K),K)*2+2;U=Math.sqrt(j**2+k**2)}_?.touches?b.current===null&&(b.current=()=>{T({pulsate:L,rippleX:P,rippleY:K,rippleSize:U,cb:M})},x.start(Cz,()=>{b.current&&(b.current(),b.current=null)})):T({pulsate:L,rippleX:P,rippleY:K,rippleSize:U,cb:M})},[a,T,x]),R=E.useCallback(()=>{w({},{pulsate:!0})},[w]),A=E.useCallback((_,O)=>{if(x.clear(),_?.type==="touchend"&&b.current){b.current(),b.current=null,x.start(0,()=>{A(_,O)});return}b.current=null,p(M=>M.length>0?M.slice(1):M),g.current=O},[x]);return E.useImperativeHandle(n,()=>({pulsate:R,start:w,stop:A}),[R,w,A]),D.jsx(_z,{className:we($r.root,s.root,c),ref:S,...f,children:D.jsx(tS,{component:null,exit:!0,children:d})})});function Pz(e){return Be("MuiButtonBase",e)}const kz=Ne("MuiButtonBase",["root","disabled","focusVisible"]),Nz=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:a}=e,c=Ie({root:["root",t&&"disabled",n&&"focusVisible"]},Pz,a);return n&&r&&(c.root+=` ${r}`),c},Lz=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"},[`&.${kz.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),jh=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:s=!1,children:c,className:f,component:d="button",disabled:p=!1,disableRipple:h=!1,disableTouchRipple:g=!1,focusRipple:v=!1,focusVisibleClassName:x,LinkComponent:b="a",onBlur:S,onClick:T,onContextMenu:w,onDragLeave:R,onFocus:A,onFocusVisible:_,onKeyDown:O,onKeyUp:M,onMouseDown:L,onMouseLeave:B,onMouseUp:z,onTouchEnd:V,onTouchMove:H,onTouchStart:P,tabIndex:K=0,TouchRippleProps:U,touchRippleRef:j,type:k,...I}=r,q=E.useRef(null),X=Tz(),ie=on(X.ref,j),[$,W]=E.useState(!1);p&&$&&W(!1),E.useImperativeHandle(a,()=>({focusVisible:()=>{W(!0),q.current.focus()}}),[]);const te=X.shouldMount&&!h&&!p;E.useEffect(()=>{$&&v&&!h&&X.pulsate()},[h,v,$,X]);const oe=Ji(X,"start",L,g),le=Ji(X,"stop",w,g),he=Ji(X,"stop",R,g),ge=Ji(X,"stop",z,g),Me=Ji(X,"stop",G=>{$&&G.preventDefault(),B&&B(G)},g),ve=Ji(X,"start",P,g),ye=Ji(X,"stop",V,g),Ae=Ji(X,"stop",H,g),_e=Ji(X,"stop",G=>{Yp(G.target)||W(!1),S&&S(G)},!1),je=zr(G=>{q.current||(q.current=G.currentTarget),Yp(G.target)&&(W(!0),_&&_(G)),A&&A(G)}),xe=()=>{const G=q.current;return d&&d!=="button"&&!(G.tagName==="A"&&G.href)},qe=zr(G=>{v&&!G.repeat&&$&&G.key===" "&&X.stop(G,()=>{X.start(G)}),G.target===G.currentTarget&&xe()&&G.key===" "&&G.preventDefault(),O&&O(G),G.target===G.currentTarget&&xe()&&G.key==="Enter"&&!p&&(G.preventDefault(),T&&T(G))}),Ot=zr(G=>{v&&G.key===" "&&$&&!G.defaultPrevented&&X.stop(G,()=>{X.pulsate(G)}),M&&M(G),T&&G.target===G.currentTarget&&xe()&&G.key===" "&&!G.defaultPrevented&&T(G)});let mt=d;mt==="button"&&(I.href||I.to)&&(mt=b);const lt={};mt==="button"?(lt.type=k===void 0?"button":k,lt.disabled=p):(!I.href&&!I.to&&(lt.role="button"),p&&(lt["aria-disabled"]=p));const nt=on(n,q),Qe={...r,centerRipple:s,component:d,disabled:p,disableRipple:h,disableTouchRipple:g,focusRipple:v,tabIndex:K,focusVisible:$},Je=Nz(Qe);return D.jsxs(Lz,{as:mt,className:we(Je.root,f),ownerState:Qe,onBlur:_e,onClick:T,onContextMenu:le,onFocus:je,onKeyDown:qe,onKeyUp:Ot,onMouseDown:oe,onMouseLeave:Me,onMouseUp:ge,onDragLeave:he,onTouchEnd:ye,onTouchMove:Ae,onTouchStart:ve,ref:nt,tabIndex:p?-1:K,type:k,...lt,...I,children:[c,te?D.jsx(Dz,{ref:ie,center:s,...U}):null]})});function Ji(e,t,n,r=!1){return zr(a=>(n&&n(a),r||e[t](a),!0))}function $z(e){return typeof e.main=="string"}function Bz(e,t=[]){if(!$z(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function rn(e=[]){return([,t])=>t&&Bz(t,e)}function Iz(e){return Be("MuiAlert",e)}const $C=Ne("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 jz(e){return Be("MuiCircularProgress",e)}Ne("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Xr=44,lv=_i`
172
+ 0% {
173
+ transform: rotate(0deg);
174
+ }
175
+
176
+ 100% {
177
+ transform: rotate(360deg);
178
+ }
179
+ `,cv=_i`
180
+ 0% {
181
+ stroke-dasharray: 1px, 200px;
182
+ stroke-dashoffset: 0;
183
+ }
184
+
185
+ 50% {
186
+ stroke-dasharray: 100px, 200px;
187
+ stroke-dashoffset: -15px;
188
+ }
189
+
190
+ 100% {
191
+ stroke-dasharray: 1px, 200px;
192
+ stroke-dashoffset: -126px;
193
+ }
194
+ `,zz=typeof lv!="string"?ca`
195
+ animation: ${lv} 1.4s linear infinite;
196
+ `:null,Uz=typeof cv!="string"?ca`
197
+ animation: ${cv} 1.4s ease-in-out infinite;
198
+ `:null,Fz=e=>{const{classes:t,variant:n,color:r,disableShrink:a}=e,s={root:["root",n,`color${pe(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${pe(n)}`,a&&"circleDisableShrink"]};return Ie(s,jz,t)},Vz=fe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${pe(n.color)}`]]}})($e(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:zz||{animation:`${lv} 1.4s linear infinite`}},...Object.entries(e.palette).filter(rn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Hz=fe("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),qz=fe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${pe(n.variant)}`],n.disableShrink&&t.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:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Uz||{animation:`${cv} 1.4s ease-in-out infinite`}}]}))),Gz=fe("circle",{name:"MuiCircularProgress",slot:"Track"})($e(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),rS=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiCircularProgress"}),{className:a,color:s="primary",disableShrink:c=!1,enableTrackSlot:f=!1,size:d=40,style:p,thickness:h=3.6,value:g=0,variant:v="indeterminate",...x}=r,b={...r,color:s,disableShrink:c,size:d,thickness:h,value:g,variant:v,enableTrackSlot:f},S=Fz(b),T={},w={},R={};if(v==="determinate"){const A=2*Math.PI*((Xr-h)/2);T.strokeDasharray=A.toFixed(3),R["aria-valuenow"]=Math.round(g),T.strokeDashoffset=`${((100-g)/100*A).toFixed(3)}px`,w.transform="rotate(-90deg)"}return D.jsx(Vz,{className:we(S.root,a),style:{width:d,height:d,...w,...p},ownerState:b,ref:n,role:"progressbar",...R,...x,children:D.jsxs(Hz,{className:S.svg,ownerState:b,viewBox:`${Xr/2} ${Xr/2} ${Xr} ${Xr}`,children:[f?D.jsx(Gz,{className:S.track,ownerState:b,cx:Xr,cy:Xr,r:(Xr-h)/2,fill:"none",strokeWidth:h,"aria-hidden":"true"}):null,D.jsx(qz,{className:S.circle,style:T,ownerState:b,cx:Xr,cy:Xr,r:(Xr-h)/2,fill:"none",strokeWidth:h})]})})});function Yz(e){return Be("MuiIconButton",e)}const BC=Ne("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Wz=e=>{const{classes:t,disabled:n,color:r,edge:a,size:s,loading:c}=e,f={root:["root",c&&"loading",n&&"disabled",r!=="default"&&`color${pe(r)}`,a&&`edge${pe(a)}`,`size${pe(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Ie(f,Yz,t)},Kz=fe(jh,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${pe(n.color)}`],n.edge&&t[`edge${pe(n.edge)}`],t[`size${pe(n.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:t=>!t.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(rn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(rn()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].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)}}],[`&.${BC.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${BC.loading}`]:{color:"transparent"}}))),Xz=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"}}]})),Kp=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiIconButton"}),{edge:a=!1,children:s,className:c,color:f="default",disabled:d=!1,disableFocusRipple:p=!1,size:h="medium",id:g,loading:v=null,loadingIndicator:x,...b}=r,S=ms(g),T=x??D.jsx(rS,{"aria-labelledby":S,color:"inherit",size:16}),w={...r,edge:a,color:f,disabled:d,disableFocusRipple:p,loading:v,loadingIndicator:T,size:h},R=Wz(w);return D.jsxs(Kz,{id:v?S:g,className:we(R.root,c),centerRipple:!0,focusRipple:!p,disabled:d||v,ref:n,...b,ownerState:w,children:[typeof v=="boolean"&&D.jsx("span",{className:R.loadingWrapper,style:{display:"contents"},children:D.jsx(Xz,{className:R.loadingIndicator,ownerState:w,children:v&&T})}),s]})}),Zz=bo(D.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"})),Qz=bo(D.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),Jz=bo(D.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"})),e3=bo(D.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"})),t3=bo(D.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"})),n3=e=>{const{variant:t,color:n,severity:r,classes:a}=e,s={root:["root",`color${pe(n||r)}`,`${t}${pe(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ie(s,Iz,a)},r3=fe(nS,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${pe(n.color||n.severity)}`]]}})($e(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,n=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(rn(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${$C.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(rn(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${$C.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(rn(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),i3=fe("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),o3=fe("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),a3=fe("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),IC={success:D.jsx(Zz,{fontSize:"inherit"}),warning:D.jsx(Qz,{fontSize:"inherit"}),error:D.jsx(Jz,{fontSize:"inherit"}),info:D.jsx(e3,{fontSize:"inherit"})},s3=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiAlert"}),{action:a,children:s,className:c,closeText:f="Close",color:d,components:p={},componentsProps:h={},icon:g,iconMapping:v=IC,onClose:x,role:b="alert",severity:S="success",slotProps:T={},slots:w={},variant:R="standard",...A}=r,_={...r,color:d,severity:S,variant:R,colorSeverity:d||S},O=n3(_),M={slots:{closeButton:p.CloseButton,closeIcon:p.CloseIcon,...w},slotProps:{...h,...T}},[L,B]=Ze("root",{ref:n,shouldForwardComponentProp:!0,className:we(O.root,c),elementType:r3,externalForwardedProps:{...M,...A},ownerState:_,additionalProps:{role:b,elevation:0}}),[z,V]=Ze("icon",{className:O.icon,elementType:i3,externalForwardedProps:M,ownerState:_}),[H,P]=Ze("message",{className:O.message,elementType:o3,externalForwardedProps:M,ownerState:_}),[K,U]=Ze("action",{className:O.action,elementType:a3,externalForwardedProps:M,ownerState:_}),[j,k]=Ze("closeButton",{elementType:Kp,externalForwardedProps:M,ownerState:_}),[I,q]=Ze("closeIcon",{elementType:t3,externalForwardedProps:M,ownerState:_});return D.jsxs(L,{...B,children:[g!==!1?D.jsx(z,{...V,children:g||v[S]||IC[S]}):null,D.jsx(H,{...P,children:s}),a!=null?D.jsx(K,{...U,children:a}):null,a==null&&x?D.jsx(K,{...U,children:D.jsx(j,{size:"small","aria-label":f,title:f,color:"inherit",onClick:x,...k,children:D.jsx(I,{fontSize:"small",...q})})}):null]})});function l3(e){return Be("MuiTypography",e)}Ne("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const c3={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},u3=iz(),f3=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:a,variant:s,classes:c}=e,f={root:["root",s,e.align!=="inherit"&&`align${pe(t)}`,n&&"gutterBottom",r&&"noWrap",a&&"paragraph"]};return Ie(f,l3,c)},d3=fe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${pe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})($e(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(rn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${pe(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),jC={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},_t=E.forwardRef(function(t,n){const{color:r,...a}=Ve({props:t,name:"MuiTypography"}),s=!c3[r],c=u3({...a,...s&&{color:r}}),{align:f="inherit",className:d,component:p,gutterBottom:h=!1,noWrap:g=!1,paragraph:v=!1,variant:x="body1",variantMapping:b=jC,...S}=c,T={...c,align:f,color:r,className:d,component:p,gutterBottom:h,noWrap:g,paragraph:v,variant:x,variantMapping:b},w=p||(v?"p":b[x]||jC[x])||"span",R=f3(T);return D.jsx(d3,{as:w,ref:n,className:we(R.root,d),...S,ownerState:T,style:{...f!=="inherit"&&{"--Typography-textAlign":f},...S.style}})});function I2(e){const t=E.useRef({});return E.useEffect(()=>{t.current=e}),t.current}var Qn="top",Hr="bottom",qr="right",Jn="left",iS="auto",of=[Qn,Hr,qr,Jn],Dl="start",Lu="end",p3="clippingParents",j2="viewport",Wc="popper",h3="reference",zC=of.reduce(function(e,t){return e.concat([t+"-"+Dl,t+"-"+Lu])},[]),z2=[].concat(of,[iS]).reduce(function(e,t){return e.concat([t,t+"-"+Dl,t+"-"+Lu])},[]),m3="beforeRead",g3="read",y3="afterRead",v3="beforeMain",b3="main",S3="afterMain",x3="beforeWrite",T3="write",E3="afterWrite",w3=[m3,g3,y3,v3,b3,S3,x3,T3,E3];function Ci(e){return e?(e.nodeName||"").toLowerCase():null}function vr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function as(e){var t=vr(e).Element;return e instanceof t||e instanceof Element}function Ur(e){var t=vr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function oS(e){if(typeof ShadowRoot>"u")return!1;var t=vr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function C3(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},s=t.elements[n];!Ur(s)||!Ci(s)||(Object.assign(s.style,r),Object.keys(a).forEach(function(c){var f=a[c];f===!1?s.removeAttribute(c):s.setAttribute(c,f===!0?"":f)}))})}function A3(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],s=t.attributes[r]||{},c=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),f=c.reduce(function(d,p){return d[p]="",d},{});!Ur(a)||!Ci(a)||(Object.assign(a.style,f),Object.keys(s).forEach(function(d){a.removeAttribute(d)}))})}}const O3={name:"applyStyles",enabled:!0,phase:"write",fn:C3,effect:A3,requires:["computeStyles"]};function xi(e){return e.split("-")[0]}var Za=Math.max,Xp=Math.min,Pl=Math.round;function uv(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function U2(){return!/^((?!chrome|android).)*safari/i.test(uv())}function kl(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,s=1;t&&Ur(e)&&(a=e.offsetWidth>0&&Pl(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Pl(r.height)/e.offsetHeight||1);var c=as(e)?vr(e):window,f=c.visualViewport,d=!U2()&&n,p=(r.left+(d&&f?f.offsetLeft:0))/a,h=(r.top+(d&&f?f.offsetTop:0))/s,g=r.width/a,v=r.height/s;return{width:g,height:v,top:h,right:p+g,bottom:h+v,left:p,x:p,y:h}}function aS(e){var t=kl(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function F2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&oS(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function fo(e){return vr(e).getComputedStyle(e)}function R3(e){return["table","td","th"].indexOf(Ci(e))>=0}function ua(e){return((as(e)?e.ownerDocument:e.document)||window.document).documentElement}function zh(e){return Ci(e)==="html"?e:e.assignedSlot||e.parentNode||(oS(e)?e.host:null)||ua(e)}function UC(e){return!Ur(e)||fo(e).position==="fixed"?null:e.offsetParent}function _3(e){var t=/firefox/i.test(uv()),n=/Trident/i.test(uv());if(n&&Ur(e)){var r=fo(e);if(r.position==="fixed")return null}var a=zh(e);for(oS(a)&&(a=a.host);Ur(a)&&["html","body"].indexOf(Ci(a))<0;){var s=fo(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function af(e){for(var t=vr(e),n=UC(e);n&&R3(n)&&fo(n).position==="static";)n=UC(n);return n&&(Ci(n)==="html"||Ci(n)==="body"&&fo(n).position==="static")?t:n||_3(e)||t}function sS(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function gu(e,t,n){return Za(e,Xp(t,n))}function M3(e,t,n){var r=gu(e,t,n);return r>n?n:r}function V2(){return{top:0,right:0,bottom:0,left:0}}function H2(e){return Object.assign({},V2(),e)}function q2(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var D3=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,H2(typeof t!="number"?t:q2(t,of))};function P3(e){var t,n=e.state,r=e.name,a=e.options,s=n.elements.arrow,c=n.modifiersData.popperOffsets,f=xi(n.placement),d=sS(f),p=[Jn,qr].indexOf(f)>=0,h=p?"height":"width";if(!(!s||!c)){var g=D3(a.padding,n),v=aS(s),x=d==="y"?Qn:Jn,b=d==="y"?Hr:qr,S=n.rects.reference[h]+n.rects.reference[d]-c[d]-n.rects.popper[h],T=c[d]-n.rects.reference[d],w=af(s),R=w?d==="y"?w.clientHeight||0:w.clientWidth||0:0,A=S/2-T/2,_=g[x],O=R-v[h]-g[b],M=R/2-v[h]/2+A,L=gu(_,M,O),B=d;n.modifiersData[r]=(t={},t[B]=L,t.centerOffset=L-M,t)}}function k3(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||F2(t.elements.popper,a)&&(t.elements.arrow=a))}const N3={name:"arrow",enabled:!0,phase:"main",fn:P3,effect:k3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Nl(e){return e.split("-")[1]}var L3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $3(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:Pl(n*a)/a||0,y:Pl(r*a)/a||0}}function FC(e){var t,n=e.popper,r=e.popperRect,a=e.placement,s=e.variation,c=e.offsets,f=e.position,d=e.gpuAcceleration,p=e.adaptive,h=e.roundOffsets,g=e.isFixed,v=c.x,x=v===void 0?0:v,b=c.y,S=b===void 0?0:b,T=typeof h=="function"?h({x,y:S}):{x,y:S};x=T.x,S=T.y;var w=c.hasOwnProperty("x"),R=c.hasOwnProperty("y"),A=Jn,_=Qn,O=window;if(p){var M=af(n),L="clientHeight",B="clientWidth";if(M===vr(n)&&(M=ua(n),fo(M).position!=="static"&&f==="absolute"&&(L="scrollHeight",B="scrollWidth")),M=M,a===Qn||(a===Jn||a===qr)&&s===Lu){_=Hr;var z=g&&M===O&&O.visualViewport?O.visualViewport.height:M[L];S-=z-r.height,S*=d?1:-1}if(a===Jn||(a===Qn||a===Hr)&&s===Lu){A=qr;var V=g&&M===O&&O.visualViewport?O.visualViewport.width:M[B];x-=V-r.width,x*=d?1:-1}}var H=Object.assign({position:f},p&&L3),P=h===!0?$3({x,y:S},vr(n)):{x,y:S};if(x=P.x,S=P.y,d){var K;return Object.assign({},H,(K={},K[_]=R?"0":"",K[A]=w?"0":"",K.transform=(O.devicePixelRatio||1)<=1?"translate("+x+"px, "+S+"px)":"translate3d("+x+"px, "+S+"px, 0)",K))}return Object.assign({},H,(t={},t[_]=R?S+"px":"",t[A]=w?x+"px":"",t.transform="",t))}function B3(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,s=n.adaptive,c=s===void 0?!0:s,f=n.roundOffsets,d=f===void 0?!0:f,p={placement:xi(t.placement),variation:Nl(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,FC(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,FC(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const I3={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:B3,data:{}};var Id={passive:!0};function j3(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,s=a===void 0?!0:a,c=r.resize,f=c===void 0?!0:c,d=vr(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(h){h.addEventListener("scroll",n.update,Id)}),f&&d.addEventListener("resize",n.update,Id),function(){s&&p.forEach(function(h){h.removeEventListener("scroll",n.update,Id)}),f&&d.removeEventListener("resize",n.update,Id)}}const z3={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:j3,data:{}};var U3={left:"right",right:"left",bottom:"top",top:"bottom"};function pp(e){return e.replace(/left|right|bottom|top/g,function(t){return U3[t]})}var F3={start:"end",end:"start"};function VC(e){return e.replace(/start|end/g,function(t){return F3[t]})}function lS(e){var t=vr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function cS(e){return kl(ua(e)).left+lS(e).scrollLeft}function V3(e,t){var n=vr(e),r=ua(e),a=n.visualViewport,s=r.clientWidth,c=r.clientHeight,f=0,d=0;if(a){s=a.width,c=a.height;var p=U2();(p||!p&&t==="fixed")&&(f=a.offsetLeft,d=a.offsetTop)}return{width:s,height:c,x:f+cS(e),y:d}}function H3(e){var t,n=ua(e),r=lS(e),a=(t=e.ownerDocument)==null?void 0:t.body,s=Za(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),c=Za(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),f=-r.scrollLeft+cS(e),d=-r.scrollTop;return fo(a||n).direction==="rtl"&&(f+=Za(n.clientWidth,a?a.clientWidth:0)-s),{width:s,height:c,x:f,y:d}}function uS(e){var t=fo(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function G2(e){return["html","body","#document"].indexOf(Ci(e))>=0?e.ownerDocument.body:Ur(e)&&uS(e)?e:G2(zh(e))}function yu(e,t){var n;t===void 0&&(t=[]);var r=G2(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),s=vr(r),c=a?[s].concat(s.visualViewport||[],uS(r)?r:[]):r,f=t.concat(c);return a?f:f.concat(yu(zh(c)))}function fv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function q3(e,t){var n=kl(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function HC(e,t,n){return t===j2?fv(V3(e,n)):as(t)?q3(t,n):fv(H3(ua(e)))}function G3(e){var t=yu(zh(e)),n=["absolute","fixed"].indexOf(fo(e).position)>=0,r=n&&Ur(e)?af(e):e;return as(r)?t.filter(function(a){return as(a)&&F2(a,r)&&Ci(a)!=="body"}):[]}function Y3(e,t,n,r){var a=t==="clippingParents"?G3(e):[].concat(t),s=[].concat(a,[n]),c=s[0],f=s.reduce(function(d,p){var h=HC(e,p,r);return d.top=Za(h.top,d.top),d.right=Xp(h.right,d.right),d.bottom=Xp(h.bottom,d.bottom),d.left=Za(h.left,d.left),d},HC(e,c,r));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function Y2(e){var t=e.reference,n=e.element,r=e.placement,a=r?xi(r):null,s=r?Nl(r):null,c=t.x+t.width/2-n.width/2,f=t.y+t.height/2-n.height/2,d;switch(a){case Qn:d={x:c,y:t.y-n.height};break;case Hr:d={x:c,y:t.y+t.height};break;case qr:d={x:t.x+t.width,y:f};break;case Jn:d={x:t.x-n.width,y:f};break;default:d={x:t.x,y:t.y}}var p=a?sS(a):null;if(p!=null){var h=p==="y"?"height":"width";switch(s){case Dl:d[p]=d[p]-(t[h]/2-n[h]/2);break;case Lu:d[p]=d[p]+(t[h]/2-n[h]/2);break}}return d}function $u(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,s=n.strategy,c=s===void 0?e.strategy:s,f=n.boundary,d=f===void 0?p3:f,p=n.rootBoundary,h=p===void 0?j2:p,g=n.elementContext,v=g===void 0?Wc:g,x=n.altBoundary,b=x===void 0?!1:x,S=n.padding,T=S===void 0?0:S,w=H2(typeof T!="number"?T:q2(T,of)),R=v===Wc?h3:Wc,A=e.rects.popper,_=e.elements[b?R:v],O=Y3(as(_)?_:_.contextElement||ua(e.elements.popper),d,h,c),M=kl(e.elements.reference),L=Y2({reference:M,element:A,placement:a}),B=fv(Object.assign({},A,L)),z=v===Wc?B:M,V={top:O.top-z.top+w.top,bottom:z.bottom-O.bottom+w.bottom,left:O.left-z.left+w.left,right:z.right-O.right+w.right},H=e.modifiersData.offset;if(v===Wc&&H){var P=H[a];Object.keys(V).forEach(function(K){var U=[qr,Hr].indexOf(K)>=0?1:-1,j=[Qn,Hr].indexOf(K)>=0?"y":"x";V[K]+=P[j]*U})}return V}function W3(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,s=n.rootBoundary,c=n.padding,f=n.flipVariations,d=n.allowedAutoPlacements,p=d===void 0?z2:d,h=Nl(r),g=h?f?zC:zC.filter(function(b){return Nl(b)===h}):of,v=g.filter(function(b){return p.indexOf(b)>=0});v.length===0&&(v=g);var x=v.reduce(function(b,S){return b[S]=$u(e,{placement:S,boundary:a,rootBoundary:s,padding:c})[xi(S)],b},{});return Object.keys(x).sort(function(b,S){return x[b]-x[S]})}function K3(e){if(xi(e)===iS)return[];var t=pp(e);return[VC(e),t,VC(t)]}function X3(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,s=a===void 0?!0:a,c=n.altAxis,f=c===void 0?!0:c,d=n.fallbackPlacements,p=n.padding,h=n.boundary,g=n.rootBoundary,v=n.altBoundary,x=n.flipVariations,b=x===void 0?!0:x,S=n.allowedAutoPlacements,T=t.options.placement,w=xi(T),R=w===T,A=d||(R||!b?[pp(T)]:K3(T)),_=[T].concat(A).reduce(function(oe,le){return oe.concat(xi(le)===iS?W3(t,{placement:le,boundary:h,rootBoundary:g,padding:p,flipVariations:b,allowedAutoPlacements:S}):le)},[]),O=t.rects.reference,M=t.rects.popper,L=new Map,B=!0,z=_[0],V=0;V<_.length;V++){var H=_[V],P=xi(H),K=Nl(H)===Dl,U=[Qn,Hr].indexOf(P)>=0,j=U?"width":"height",k=$u(t,{placement:H,boundary:h,rootBoundary:g,altBoundary:v,padding:p}),I=U?K?qr:Jn:K?Hr:Qn;O[j]>M[j]&&(I=pp(I));var q=pp(I),X=[];if(s&&X.push(k[P]<=0),f&&X.push(k[I]<=0,k[q]<=0),X.every(function(oe){return oe})){z=H,B=!1;break}L.set(H,X)}if(B)for(var ie=b?3:1,$=function(le){var he=_.find(function(ge){var Me=L.get(ge);if(Me)return Me.slice(0,le).every(function(ve){return ve})});if(he)return z=he,"break"},W=ie;W>0;W--){var te=$(W);if(te==="break")break}t.placement!==z&&(t.modifiersData[r]._skip=!0,t.placement=z,t.reset=!0)}}const Z3={name:"flip",enabled:!0,phase:"main",fn:X3,requiresIfExists:["offset"],data:{_skip:!1}};function qC(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function GC(e){return[Qn,qr,Hr,Jn].some(function(t){return e[t]>=0})}function Q3(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,s=t.modifiersData.preventOverflow,c=$u(t,{elementContext:"reference"}),f=$u(t,{altBoundary:!0}),d=qC(c,r),p=qC(f,a,s),h=GC(d),g=GC(p);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:h,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":g})}const J3={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Q3};function e4(e,t,n){var r=xi(e),a=[Jn,Qn].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,c=s[0],f=s[1];return c=c||0,f=(f||0)*a,[Jn,qr].indexOf(r)>=0?{x:f,y:c}:{x:c,y:f}}function t4(e){var t=e.state,n=e.options,r=e.name,a=n.offset,s=a===void 0?[0,0]:a,c=z2.reduce(function(h,g){return h[g]=e4(g,t.rects,s),h},{}),f=c[t.placement],d=f.x,p=f.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=p),t.modifiersData[r]=c}const n4={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:t4};function r4(e){var t=e.state,n=e.name;t.modifiersData[n]=Y2({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const i4={name:"popperOffsets",enabled:!0,phase:"read",fn:r4,data:{}};function o4(e){return e==="x"?"y":"x"}function a4(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,s=a===void 0?!0:a,c=n.altAxis,f=c===void 0?!1:c,d=n.boundary,p=n.rootBoundary,h=n.altBoundary,g=n.padding,v=n.tether,x=v===void 0?!0:v,b=n.tetherOffset,S=b===void 0?0:b,T=$u(t,{boundary:d,rootBoundary:p,padding:g,altBoundary:h}),w=xi(t.placement),R=Nl(t.placement),A=!R,_=sS(w),O=o4(_),M=t.modifiersData.popperOffsets,L=t.rects.reference,B=t.rects.popper,z=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,V=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(M){if(s){var K,U=_==="y"?Qn:Jn,j=_==="y"?Hr:qr,k=_==="y"?"height":"width",I=M[_],q=I+T[U],X=I-T[j],ie=x?-B[k]/2:0,$=R===Dl?L[k]:B[k],W=R===Dl?-B[k]:-L[k],te=t.elements.arrow,oe=x&&te?aS(te):{width:0,height:0},le=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:V2(),he=le[U],ge=le[j],Me=gu(0,L[k],oe[k]),ve=A?L[k]/2-ie-Me-he-V.mainAxis:$-Me-he-V.mainAxis,ye=A?-L[k]/2+ie+Me+ge+V.mainAxis:W+Me+ge+V.mainAxis,Ae=t.elements.arrow&&af(t.elements.arrow),_e=Ae?_==="y"?Ae.clientTop||0:Ae.clientLeft||0:0,je=(K=H?.[_])!=null?K:0,xe=I+ve-je-_e,qe=I+ye-je,Ot=gu(x?Xp(q,xe):q,I,x?Za(X,qe):X);M[_]=Ot,P[_]=Ot-I}if(f){var mt,lt=_==="x"?Qn:Jn,nt=_==="x"?Hr:qr,Qe=M[O],Je=O==="y"?"height":"width",G=Qe+T[lt],me=Qe-T[nt],de=[Qn,Jn].indexOf(w)!==-1,be=(mt=H?.[O])!=null?mt:0,Te=de?G:Qe-L[Je]-B[Je]-be+V.altAxis,Se=de?Qe+L[Je]+B[Je]-be-V.altAxis:me,ze=x&&de?M3(Te,Qe,Se):gu(x?Te:G,Qe,x?Se:me);M[O]=ze,P[O]=ze-Qe}t.modifiersData[r]=P}}const s4={name:"preventOverflow",enabled:!0,phase:"main",fn:a4,requiresIfExists:["offset"]};function l4(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function c4(e){return e===vr(e)||!Ur(e)?lS(e):l4(e)}function u4(e){var t=e.getBoundingClientRect(),n=Pl(t.width)/e.offsetWidth||1,r=Pl(t.height)/e.offsetHeight||1;return n!==1||r!==1}function f4(e,t,n){n===void 0&&(n=!1);var r=Ur(t),a=Ur(t)&&u4(t),s=ua(t),c=kl(e,a,n),f={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&((Ci(t)!=="body"||uS(s))&&(f=c4(t)),Ur(t)?(d=kl(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=cS(s))),{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}function d4(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function a(s){n.add(s.name);var c=[].concat(s.requires||[],s.requiresIfExists||[]);c.forEach(function(f){if(!n.has(f)){var d=t.get(f);d&&a(d)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||a(s)}),r}function p4(e){var t=d4(e);return w3.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function h4(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function m4(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var YC={placement:"bottom",modifiers:[],strategy:"absolute"};function WC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function g4(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,s=a===void 0?YC:a;return function(f,d,p){p===void 0&&(p=s);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},YC,s),modifiersData:{},elements:{reference:f,popper:d},attributes:{},styles:{}},g=[],v=!1,x={state:h,setOptions:function(w){var R=typeof w=="function"?w(h.options):w;S(),h.options=Object.assign({},s,h.options,R),h.scrollParents={reference:as(f)?yu(f):f.contextElement?yu(f.contextElement):[],popper:yu(d)};var A=p4(m4([].concat(r,h.options.modifiers)));return h.orderedModifiers=A.filter(function(_){return _.enabled}),b(),x.update()},forceUpdate:function(){if(!v){var w=h.elements,R=w.reference,A=w.popper;if(WC(R,A)){h.rects={reference:f4(R,af(A),h.options.strategy==="fixed"),popper:aS(A)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(V){return h.modifiersData[V.name]=Object.assign({},V.data)});for(var _=0;_<h.orderedModifiers.length;_++){if(h.reset===!0){h.reset=!1,_=-1;continue}var O=h.orderedModifiers[_],M=O.fn,L=O.options,B=L===void 0?{}:L,z=O.name;typeof M=="function"&&(h=M({state:h,options:B,name:z,instance:x})||h)}}}},update:h4(function(){return new Promise(function(T){x.forceUpdate(),T(h)})}),destroy:function(){S(),v=!0}};if(!WC(f,d))return x;x.setOptions(p).then(function(T){!v&&p.onFirstUpdate&&p.onFirstUpdate(T)});function b(){h.orderedModifiers.forEach(function(T){var w=T.name,R=T.options,A=R===void 0?{}:R,_=T.effect;if(typeof _=="function"){var O=_({state:h,name:w,instance:x,options:A}),M=function(){};g.push(O||M)}})}function S(){g.forEach(function(T){return T()}),g=[]}return x}}var y4=[z3,i4,I3,O3,n4,Z3,s4,N3,J3],v4=g4({defaultModifiers:y4});function W2(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:a=!1,...s}=e,c=a?{}:$2(n,r),{props:f,internalRef:d}=B2({...s,externalSlotProps:c}),p=on(d,c?.ref,e.additionalProps?.ref);return L2(t,{...f,ref:p},r)}function gs(e){return parseInt(E.version,10)>=19?e?.props?.ref||null:e?.ref||null}function b4(e){return typeof e=="function"?e():e}const K2=E.forwardRef(function(t,n){const{children:r,container:a,disablePortal:s=!1}=t,[c,f]=E.useState(null),d=on(E.isValidElement(r)?gs(r):null,n);if(Vr(()=>{s||f(b4(a)||document.body)},[a,s]),Vr(()=>{if(c&&!s)return PC(n,c),()=>{PC(n,null)}},[n,c,s]),s){if(E.isValidElement(r)){const p={ref:d};return E.cloneElement(r,p)}return r}return c&&P2.createPortal(r,c)});function S4(e){return Be("MuiPopper",e)}Ne("MuiPopper",["root"]);function x4(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function dv(e){return typeof e=="function"?e():e}function T4(e){return e.nodeType!==void 0}const E4=e=>{const{classes:t}=e;return Ie({root:["root"]},S4,t)},w4={},C4=E.forwardRef(function(t,n){const{anchorEl:r,children:a,direction:s,disablePortal:c,modifiers:f,open:d,placement:p,popperOptions:h,popperRef:g,slotProps:v={},slots:x={},TransitionProps:b,ownerState:S,...T}=t,w=E.useRef(null),R=on(w,n),A=E.useRef(null),_=on(A,g),O=E.useRef(_);Vr(()=>{O.current=_},[_]),E.useImperativeHandle(g,()=>A.current,[]);const M=x4(p,s),[L,B]=E.useState(M),[z,V]=E.useState(dv(r));E.useEffect(()=>{A.current&&A.current.forceUpdate()}),E.useEffect(()=>{r&&V(dv(r))},[r]),Vr(()=>{if(!z||!d)return;const j=q=>{B(q.placement)};let k=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:q})=>{j(q)}}];f!=null&&(k=k.concat(f)),h&&h.modifiers!=null&&(k=k.concat(h.modifiers));const I=v4(z,w.current,{placement:M,...h,modifiers:k});return O.current(I),()=>{I.destroy(),O.current(null)}},[z,c,f,d,h,M]);const H={placement:L};b!==null&&(H.TransitionProps=b);const P=E4(t),K=x.root??"div",U=W2({elementType:K,externalSlotProps:v.root,externalForwardedProps:T,additionalProps:{role:"tooltip",ref:R},ownerState:t,className:P.root});return D.jsx(K,{...U,children:typeof a=="function"?a(H):a})}),A4=E.forwardRef(function(t,n){const{anchorEl:r,children:a,container:s,direction:c="ltr",disablePortal:f=!1,keepMounted:d=!1,modifiers:p,open:h,placement:g="bottom",popperOptions:v=w4,popperRef:x,style:b,transition:S=!1,slotProps:T={},slots:w={},...R}=t,[A,_]=E.useState(!0),O=()=>{_(!1)},M=()=>{_(!0)};if(!d&&!h&&(!S||A))return null;let L;if(s)L=s;else if(r){const V=dv(r);L=V&&T4(V)?Ln(V).body:Ln(null).body}const B=!h&&d&&(!S||A)?"none":void 0,z=S?{in:h,onEnter:O,onExited:M}:void 0;return D.jsx(K2,{disablePortal:f,container:L,children:D.jsx(C4,{anchorEl:r,direction:c,disablePortal:f,modifiers:p,ref:n,open:S?!A:h,placement:g,popperOptions:v,popperRef:x,slotProps:T,slots:w,...R,style:{position:"fixed",top:0,left:0,display:B,...b},TransitionProps:z,children:a})})}),O4=fe(A4,{name:"MuiPopper",slot:"Root"})({}),X2=E.forwardRef(function(t,n){const r=$h(),a=Ve({props:t,name:"MuiPopper"}),{anchorEl:s,component:c,components:f,componentsProps:d,container:p,disablePortal:h,keepMounted:g,modifiers:v,open:x,placement:b,popperOptions:S,popperRef:T,transition:w,slots:R,slotProps:A,..._}=a,O=R?.root??f?.Root,M={anchorEl:s,container:p,disablePortal:h,keepMounted:g,modifiers:v,open:x,placement:b,popperOptions:S,popperRef:T,transition:w,..._};return D.jsx(O4,{as:c,direction:r?"rtl":"ltr",slots:{root:O},slotProps:A??d,...M,ref:n})});function jd(e){return parseInt(e,10)||0}const R4={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function _4(e){for(const t in e)return!1;return!0}function KC(e){return _4(e)||e.outerHeightStyle===0&&!e.overflowing}const M4=E.forwardRef(function(t,n){const{onChange:r,maxRows:a,minRows:s=1,style:c,value:f,...d}=t,{current:p}=E.useRef(f!=null),h=E.useRef(null),g=on(n,h),v=E.useRef(null),x=E.useRef(null),b=E.useCallback(()=>{const A=h.current,_=x.current;if(!A||!_)return;const M=uo(A).getComputedStyle(A);if(M.width==="0px")return{outerHeightStyle:0,overflowing:!1};_.style.width=M.width,_.value=A.value||t.placeholder||"x",_.value.slice(-1)===`
199
+ `&&(_.value+=" ");const L=M.boxSizing,B=jd(M.paddingBottom)+jd(M.paddingTop),z=jd(M.borderBottomWidth)+jd(M.borderTopWidth),V=_.scrollHeight;_.value="x";const H=_.scrollHeight;let P=V;s&&(P=Math.max(Number(s)*H,P)),a&&(P=Math.min(Number(a)*H,P)),P=Math.max(P,H);const K=P+(L==="border-box"?B+z:0),U=Math.abs(P-V)<=1;return{outerHeightStyle:K,overflowing:U}},[a,s,t.placeholder]),S=zr(()=>{const A=h.current,_=b();if(!A||!_||KC(_))return!1;const O=_.outerHeightStyle;return v.current!=null&&v.current!==O}),T=E.useCallback(()=>{const A=h.current,_=b();if(!A||!_||KC(_))return;const O=_.outerHeightStyle;v.current!==O&&(v.current=O,A.style.height=`${O}px`),A.style.overflow=_.overflowing?"hidden":""},[b]),w=E.useRef(-1);Vr(()=>{const A=_2(T),_=h?.current;if(!_)return;const O=uo(_);O.addEventListener("resize",A);let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(()=>{S()&&(M.unobserve(_),cancelAnimationFrame(w.current),T(),w.current=requestAnimationFrame(()=>{M.observe(_)}))}),M.observe(_)),()=>{A.clear(),cancelAnimationFrame(w.current),O.removeEventListener("resize",A),M&&M.disconnect()}},[b,T,S]),Vr(()=>{T()});const R=A=>{p||T();const _=A.target,O=_.value.length,M=_.value.endsWith(`
200
+ `),L=_.selectionStart===O;M&&L&&_.setSelectionRange(O,O),r&&r(A)};return D.jsxs(E.Fragment,{children:[D.jsx("textarea",{value:f,onChange:R,ref:g,rows:s,style:c,...d}),D.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:x,tabIndex:-1,style:{...R4.shadow,...c,paddingTop:0,paddingBottom:0}})]})});function fa({props:e,states:t,muiFormControl:n}){return t.reduce((r,a)=>(r[a]=e[a],n&&typeof e[a]>"u"&&(r[a]=n[a]),r),{})}const Uh=E.createContext(void 0);function ri(){return E.useContext(Uh)}function XC(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Zp(e,t=!1){return e&&(XC(e.value)&&e.value!==""||t&&XC(e.defaultValue)&&e.defaultValue!=="")}function D4(e){return e.startAdornment}function P4(e){return Be("MuiInputBase",e)}const Ll=Ne("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var ZC;const Fh=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${pe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Vh=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},k4=e=>{const{classes:t,color:n,disabled:r,error:a,endAdornment:s,focused:c,formControl:f,fullWidth:d,hiddenLabel:p,multiline:h,readOnly:g,size:v,startAdornment:x,type:b}=e,S={root:["root",`color${pe(n)}`,r&&"disabled",a&&"error",d&&"fullWidth",c&&"focused",f&&"formControl",v&&v!=="medium"&&`size${pe(v)}`,h&&"multiline",x&&"adornedStart",s&&"adornedEnd",p&&"hiddenLabel",g&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",h&&"inputMultiline",v==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",x&&"inputAdornedStart",s&&"inputAdornedEnd",g&&"readOnly"]};return Ie(S,P4,t)},Hh=fe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Fh})($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",[`&.${Ll.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),qh=fe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Vh})($e(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.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":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ll.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Ll.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.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:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),QC=Jb({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),fS=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:s,autoFocus:c,className:f,color:d,components:p={},componentsProps:h={},defaultValue:g,disabled:v,disableInjectingGlobalStyles:x,endAdornment:b,error:S,fullWidth:T=!1,id:w,inputComponent:R="input",inputProps:A={},inputRef:_,margin:O,maxRows:M,minRows:L,multiline:B=!1,name:z,onBlur:V,onChange:H,onClick:P,onFocus:K,onKeyDown:U,onKeyUp:j,placeholder:k,readOnly:I,renderSuffix:q,rows:X,size:ie,slotProps:$={},slots:W={},startAdornment:te,type:oe="text",value:le,...he}=r,ge=A.value!=null?A.value:le,{current:Me}=E.useRef(ge!=null),ve=E.useRef(),ye=E.useCallback(Ue=>{},[]),Ae=on(ve,_,A.ref,ye),[_e,je]=E.useState(!1),xe=ri(),qe=fa({props:r,muiFormControl:xe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});qe.focused=xe?xe.focused:_e,E.useEffect(()=>{!xe&&v&&_e&&(je(!1),V&&V())},[xe,v,_e,V]);const Ot=xe&&xe.onFilled,mt=xe&&xe.onEmpty,lt=E.useCallback(Ue=>{Zp(Ue)?Ot&&Ot():mt&&mt()},[Ot,mt]);Vr(()=>{Me&&lt({value:ge})},[ge,lt,Me]);const nt=Ue=>{K&&K(Ue),A.onFocus&&A.onFocus(Ue),xe&&xe.onFocus?xe.onFocus(Ue):je(!0)},Qe=Ue=>{V&&V(Ue),A.onBlur&&A.onBlur(Ue),xe&&xe.onBlur?xe.onBlur(Ue):je(!1)},Je=(Ue,...Mn)=>{if(!Me){const Zt=Ue.target||ve.current;if(Zt==null)throw new Error(co(1));lt({value:Zt.value})}A.onChange&&A.onChange(Ue,...Mn),H&&H(Ue,...Mn)};E.useEffect(()=>{lt(ve.current)},[]);const G=Ue=>{ve.current&&Ue.currentTarget===Ue.target&&ve.current.focus(),P&&P(Ue)};let me=R,de=A;B&&me==="input"&&(X?de={type:void 0,minRows:X,maxRows:X,...de}:de={type:void 0,maxRows:M,minRows:L,...de},me=M4);const be=Ue=>{lt(Ue.animationName==="mui-auto-fill-cancel"?ve.current:{value:"x"})};E.useEffect(()=>{xe&&xe.setAdornedStart(!!te)},[xe,te]);const Te={...r,color:qe.color||"primary",disabled:qe.disabled,endAdornment:b,error:qe.error,focused:qe.focused,formControl:xe,fullWidth:T,hiddenLabel:qe.hiddenLabel,multiline:B,size:qe.size,startAdornment:te,type:oe},Se=k4(Te),ze=W.root||p.Root||Hh,ot=$.root||h.root||{},$t=W.input||p.Input||qh;return de={...de,...$.input??h.input},D.jsxs(E.Fragment,{children:[!x&&typeof QC=="function"&&(ZC||(ZC=D.jsx(QC,{}))),D.jsxs(ze,{...ot,ref:n,onClick:G,...he,...!Ml(ze)&&{ownerState:{...Te,...ot.ownerState}},className:we(Se.root,ot.className,f,I&&"MuiInputBase-readOnly"),children:[te,D.jsx(Uh.Provider,{value:null,children:D.jsx($t,{"aria-invalid":qe.error,"aria-describedby":a,autoComplete:s,autoFocus:c,defaultValue:g,disabled:qe.disabled,id:w,onAnimationStart:be,name:z,placeholder:k,readOnly:I,required:qe.required,rows:X,value:ge,onKeyDown:U,onKeyUp:j,type:oe,...de,...!Ml($t)&&{as:me,ownerState:{...Te,...de.ownerState}},ref:Ae,className:we(Se.input,de.className,I&&"MuiInputBase-readOnly"),onBlur:Qe,onChange:Je,onFocus:nt})}),b,q?q({...qe,startAdornment:te}):null]})]})});function N4(e){return Be("MuiInput",e)}const Kc={...Ll,...Ne("MuiInput",["root","underline","input"])};function L4(e){return Be("MuiOutlinedInput",e)}const di={...Ll,...Ne("MuiOutlinedInput",["root","notchedOutline","input"])};function $4(e){return Be("MuiFilledInput",e)}const ka={...Ll,...Ne("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},B4=bo(D.jsx("path",{d:"M7 10l5 5 5-5z"})),I4=bo(D.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 j4(e){return Be("MuiAvatar",e)}Ne("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const z4=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Ie({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},j4,t)},U4=fe("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.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]})}}}]}))),F4=fe("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),V4=fe(I4,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function H4({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[a,s]=E.useState(!1);return E.useEffect(()=>{if(!n&&!r)return;s(!1);let c=!0;const f=new Image;return f.onload=()=>{c&&s("loaded")},f.onerror=()=>{c&&s("error")},f.crossOrigin=e,f.referrerPolicy=t,f.src=n,r&&(f.srcset=r),()=>{c=!1}},[e,t,n,r]),a}const JC=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiAvatar"}),{alt:a,children:s,className:c,component:f="div",slots:d={},slotProps:p={},imgProps:h,sizes:g,src:v,srcSet:x,variant:b="circular",...S}=r;let T=null;const w={...r,component:f,variant:b},R=H4({...h,...typeof p.img=="function"?p.img(w):p.img,src:v,srcSet:x}),A=v||x,_=A&&R!=="error";w.colorDefault=!_,delete w.ownerState;const O=z4(w),[M,L]=Ze("root",{ref:n,className:we(O.root,c),elementType:U4,externalForwardedProps:{slots:d,slotProps:p,component:f,...S},ownerState:w}),[B,z]=Ze("img",{className:O.img,elementType:F4,externalForwardedProps:{slots:d,slotProps:{img:{...h,...p.img}}},additionalProps:{alt:a,src:v,srcSet:x,sizes:g},ownerState:w}),[V,H]=Ze("fallback",{className:O.fallback,elementType:V4,externalForwardedProps:{slots:d,slotProps:p},shouldForwardComponentProp:!0,ownerState:w});return _?T=D.jsx(B,{...z}):s||s===0?T=s:A&&a?T=a[0]:T=D.jsx(V,{...H}),D.jsx(M,{...L,children:T})}),q4={entering:{opacity:1},entered:{opacity:1}},Z2=E.forwardRef(function(t,n){const r=Un(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:c=!0,children:f,easing:d,in:p,onEnter:h,onEntered:g,onEntering:v,onExit:x,onExited:b,onExiting:S,style:T,timeout:w=a,TransitionComponent:R=Mi,...A}=t,_=E.useRef(null),O=on(_,gs(f),n),M=U=>j=>{if(U){const k=_.current;j===void 0?U(k):U(k,j)}},L=M(v),B=M((U,j)=>{N2(U);const k=qp({style:T,timeout:w,easing:d},{mode:"enter"});U.style.webkitTransition=r.transitions.create("opacity",k),U.style.transition=r.transitions.create("opacity",k),h&&h(U,j)}),z=M(g),V=M(S),H=M(U=>{const j=qp({style:T,timeout:w,easing:d},{mode:"exit"});U.style.webkitTransition=r.transitions.create("opacity",j),U.style.transition=r.transitions.create("opacity",j),x&&x(U)}),P=M(b),K=U=>{s&&s(_.current,U)};return D.jsx(R,{appear:c,in:p,nodeRef:_,onEnter:B,onEntered:z,onEntering:L,onExit:H,onExited:P,onExiting:V,addEndListener:K,timeout:w,...A,children:(U,{ownerState:j,...k})=>E.cloneElement(f,{style:{opacity:0,visibility:U==="exited"&&!p?"hidden":void 0,...q4[U],...T,...f.props.style},ref:O,...k})})});function G4(e){return Be("MuiBackdrop",e)}Ne("MuiBackdrop",["root","invisible"]);const Y4=e=>{const{classes:t,invisible:n}=e;return Ie({root:["root",n&&"invisible"]},G4,t)},W4=fe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.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"}}]}),K4=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiBackdrop"}),{children:a,className:s,component:c="div",invisible:f=!1,open:d,components:p={},componentsProps:h={},slotProps:g={},slots:v={},TransitionComponent:x,transitionDuration:b,...S}=r,T={...r,component:c,invisible:f},w=Y4(T),R={transition:x,root:p.Root,...v},A={...h,...g},_={component:c,slots:R,slotProps:A},[O,M]=Ze("root",{elementType:W4,externalForwardedProps:_,className:we(w.root,s),ownerState:T}),[L,B]=Ze("transition",{elementType:Z2,externalForwardedProps:_,ownerState:T});return D.jsx(L,{in:d,timeout:b,...S,...B,children:D.jsx(O,{"aria-hidden":!0,...M,classes:w,ref:n,children:a})})});function X4(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:a=!1}=e,s=I2({badgeContent:t,max:r});let c=n;n===!1&&t===0&&!a&&(c=!0);const{badgeContent:f,max:d=r}=c?s:e,p=f&&Number(f)>d?`${d}+`:f;return{badgeContent:f,invisible:c,max:d,displayValue:p}}function Z4(e){return Be("MuiBadge",e)}const Go=Ne("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),qy=10,Gy=4,Q4=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:a,variant:s,classes:c={}}=e,f={root:["root"],badge:["badge",s,r&&"invisible",`anchorOrigin${pe(n.vertical)}${pe(n.horizontal)}`,`anchorOrigin${pe(n.vertical)}${pe(n.horizontal)}${pe(a)}`,`overlap${pe(a)}`,t!=="default"&&`color${pe(t)}`]};return Ie(f,Z4,c)},J4=fe("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),e6=fe("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${pe(n.anchorOrigin.vertical)}${pe(n.anchorOrigin.horizontal)}${pe(n.overlap)}`],n.color!=="default"&&t[`color${pe(n.color)}`],n.invisible&&t.invisible]}})($e(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:qy*2,lineHeight:1,padding:"0 6px",height:qy*2,borderRadius:qy,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(rn(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Gy,height:Gy*2,minWidth:Gy*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Go.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Go.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Go.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Go.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Go.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Go.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Go.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Go.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function eA(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const t6=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiBadge"}),{anchorOrigin:a,className:s,classes:c,component:f,components:d={},componentsProps:p={},children:h,overlap:g="rectangular",color:v="default",invisible:x=!1,max:b=99,badgeContent:S,slots:T,slotProps:w,showZero:R=!1,variant:A="standard",..._}=r,{badgeContent:O,invisible:M,max:L,displayValue:B}=X4({max:b,invisible:x,badgeContent:S,showZero:R}),z=I2({anchorOrigin:eA(a),color:v,overlap:g,variant:A,badgeContent:S}),V=M||O==null&&A!=="dot",{color:H=v,overlap:P=g,anchorOrigin:K,variant:U=A}=V?z:r,j=eA(K),k=U!=="dot"?B:void 0,I={...r,badgeContent:O,invisible:V,max:L,displayValue:k,showZero:R,anchorOrigin:j,color:H,overlap:P,variant:U},q=Q4(I),X={slots:{root:T?.root??d.Root,badge:T?.badge??d.Badge},slotProps:{root:w?.root??p.root,badge:w?.badge??p.badge}},[ie,$]=Ze("root",{elementType:J4,externalForwardedProps:{...X,..._},ownerState:I,className:we(q.root,s),ref:n,additionalProps:{as:f}}),[W,te]=Ze("badge",{elementType:e6,externalForwardedProps:X,ownerState:I,className:q.badge});return D.jsxs(ie,{...$,children:[h,D.jsx(W,{...te,children:k})]})}),n6=Ne("MuiBox",["root"]),r6=Bh(),In=Oj({themeId:bi,defaultTheme:r6,defaultClassName:n6.root,generateClassName:c2.generate});function i6(e){return Be("MuiButton",e)}const Na=Ne("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"]),o6=E.createContext({}),a6=E.createContext(void 0),s6=e=>{const{color:t,disableElevation:n,fullWidth:r,size:a,variant:s,loading:c,loadingPosition:f,classes:d}=e,p={root:["root",c&&"loading",s,`${s}${pe(t)}`,`size${pe(a)}`,`${s}Size${pe(a)}`,`color${pe(t)}`,n&&"disableElevation",r&&"fullWidth",c&&`loadingPosition${pe(f)}`],startIcon:["icon","startIcon",`iconSize${pe(a)}`],endIcon:["icon","endIcon",`iconSize${pe(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},h=Ie(p,i6,d);return{...d,...h}},Q2=[{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}}}],l6=fe(jh,{shouldForwardProp:e=>Fn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${pe(n.color)}`],t[`size${pe(n.size)}`],t[`${n.variant}Size${pe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})($e(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=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"},[`&.${Na.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]},[`&.${Na.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Na.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)",[`&.${Na.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(rn()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--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"},[`&.${Na.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Na.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}),[`&.${Na.loading}`]:{color:"transparent"}}}]}})),c6=fe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${pe(n.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}},...Q2]})),u6=fe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${pe(n.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}},...Q2]})),f6=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}}]})),tA=fe("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),d6=E.forwardRef(function(t,n){const r=E.useContext(o6),a=E.useContext(a6),s=ku(r,t),c=Ve({props:s,name:"MuiButton"}),{children:f,color:d="primary",component:p="button",className:h,disabled:g=!1,disableElevation:v=!1,disableFocusRipple:x=!1,endIcon:b,focusVisibleClassName:S,fullWidth:T=!1,id:w,loading:R=null,loadingIndicator:A,loadingPosition:_="center",size:O="medium",startIcon:M,type:L,variant:B="text",...z}=c,V=ms(w),H=A??D.jsx(rS,{"aria-labelledby":V,color:"inherit",size:16}),P={...c,color:d,component:p,disabled:g,disableElevation:v,disableFocusRipple:x,fullWidth:T,loading:R,loadingIndicator:H,loadingPosition:_,size:O,type:L,variant:B},K=s6(P),U=(M||R&&_==="start")&&D.jsx(c6,{className:K.startIcon,ownerState:P,children:M||D.jsx(tA,{className:K.loadingIconPlaceholder,ownerState:P})}),j=(b||R&&_==="end")&&D.jsx(u6,{className:K.endIcon,ownerState:P,children:b||D.jsx(tA,{className:K.loadingIconPlaceholder,ownerState:P})}),k=a||"",I=typeof R=="boolean"?D.jsx("span",{className:K.loadingWrapper,style:{display:"contents"},children:R&&D.jsx(f6,{className:K.loadingIndicator,ownerState:P,children:H})}):null;return D.jsxs(l6,{ownerState:P,className:we(r.className,K.root,h,k),component:p,disabled:g||R,focusRipple:!x,focusVisibleClassName:we(K.focusVisible,S),ref:n,type:L,id:R?V:w,...z,classes:K,children:[U,_!=="end"&&I,f,_==="end"&&I,j]})});function p6(e){return Be("PrivateSwitchBase",e)}Ne("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const h6=e=>{const{classes:t,checked:n,disabled:r,edge:a}=e,s={root:["root",n&&"checked",r&&"disabled",a&&`edge${pe(a)}`],input:["input"]};return Ie(s,p6,t)},m6=fe(jh,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),g6=fe("input",{name:"MuiSwitchBase",shouldForwardProp:Fn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),y6=E.forwardRef(function(t,n){const{autoFocus:r,checked:a,checkedIcon:s,defaultChecked:c,disabled:f,disableFocusRipple:d=!1,edge:p=!1,icon:h,id:g,inputProps:v,inputRef:x,name:b,onBlur:S,onChange:T,onFocus:w,readOnly:R,required:A=!1,tabIndex:_,type:O,value:M,slots:L={},slotProps:B={},...z}=t,[V,H]=Nu({controlled:a,default:!!c,name:"SwitchBase",state:"checked"}),P=ri(),K=le=>{w&&w(le),P&&P.onFocus&&P.onFocus(le)},U=le=>{S&&S(le),P&&P.onBlur&&P.onBlur(le)},j=le=>{if(le.nativeEvent.defaultPrevented)return;const he=le.target.checked;H(he),T&&T(le,he)};let k=f;P&&typeof k>"u"&&(k=P.disabled);const I=O==="checkbox"||O==="radio",q={...t,checked:V,disabled:k,disableFocusRipple:d,edge:p},X=h6(q),ie={slots:L,slotProps:{input:v,...B}},[$,W]=Ze("root",{ref:n,elementType:m6,className:X.root,shouldForwardComponentProp:!0,externalForwardedProps:{...ie,component:"span",...z},getSlotProps:le=>({...le,onFocus:he=>{le.onFocus?.(he),K(he)},onBlur:he=>{le.onBlur?.(he),U(he)}}),ownerState:q,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:k,role:void 0,tabIndex:null}}),[te,oe]=Ze("input",{ref:x,elementType:g6,className:X.input,externalForwardedProps:ie,getSlotProps:le=>({...le,onChange:he=>{le.onChange?.(he),j(he)}}),ownerState:q,additionalProps:{autoFocus:r,checked:a,defaultChecked:c,disabled:k,id:I?g:void 0,name:b,readOnly:R,required:A,tabIndex:_,type:O,...O==="checkbox"&&M===void 0?{}:{value:M}}});return D.jsxs($,{...W,children:[D.jsx(te,{...oe}),V?s:h]})});function nA(e){return e.substring(2).toLowerCase()}function v6(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function J2(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:a,touchEvent:s="onTouchEnd"}=e,c=E.useRef(!1),f=E.useRef(null),d=E.useRef(!1),p=E.useRef(!1);E.useEffect(()=>(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const h=on(gs(t),f),g=zr(b=>{const S=p.current;p.current=!1;const T=Ln(f.current);if(!d.current||!f.current||"clientX"in b&&v6(b,T))return;if(c.current){c.current=!1;return}let w;b.composedPath?w=b.composedPath().includes(f.current):w=!T.documentElement.contains(b.target)||f.current.contains(b.target),!w&&(n||!S)&&a(b)}),v=b=>S=>{p.current=!0;const T=t.props[b];T&&T(S)},x={ref:h};return s!==!1&&(x[s]=v(s)),E.useEffect(()=>{if(s!==!1){const b=nA(s),S=Ln(f.current),T=()=>{c.current=!0};return S.addEventListener(b,g),S.addEventListener("touchmove",T),()=>{S.removeEventListener(b,g),S.removeEventListener("touchmove",T)}}},[g,s]),r!==!1&&(x[r]=v(r)),E.useEffect(()=>{if(r!==!1){const b=nA(r),S=Ln(f.current);return S.addEventListener(b,g),()=>{S.removeEventListener(b,g)}}},[g,r]),E.cloneElement(t,x)}const pv=typeof Jb({})=="function",b6=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),S6=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}}),eM=(e,t=!1)=>{const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([s,c])=>{const f=e.getColorSchemeSelector(s);f.startsWith("@")?n[f]={":root":{colorScheme:c.palette?.mode}}:n[f.replace(/\s*&/,"")]={colorScheme:c.palette?.mode}});let r={html:b6(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...S6(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const a=e.components?.MuiCssBaseline?.styleOverrides;return a&&(r=[r,a]),r},hp="mui-ecs",x6=e=>{const t=eM(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${hp})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,a])=>{const s=e.getColorSchemeSelector(r);s.startsWith("@")?n[s]={[`:root:not(:has(.${hp}))`]:{colorScheme:a.palette?.mode}}:n[s.replace(/\s*&/,"")]={[`&:not(:has(.${hp}))`]:{colorScheme:a.palette?.mode}}}),t},T6=Jb(pv?({theme:e,enableColorScheme:t})=>eM(e,t):({theme:e})=>x6(e));function E6(e){const t=Ve({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return D.jsxs(E.Fragment,{children:[pv&&D.jsx(T6,{enableColorScheme:r}),!pv&&!r&&D.jsx("span",{className:hp,style:{display:"none"}}),n]})}function tM(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function w6(e){const t=Ln(e);return t.body===e?uo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function vu(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function rA(e){return parseInt(uo(e).getComputedStyle(e).paddingRight,10)||0}function C6(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function iA(e,t,n,r,a){const s=[t,n,...r];[].forEach.call(e.children,c=>{const f=!s.includes(c),d=!C6(c);f&&d&&vu(c,a)})}function Yy(e,t){let n=-1;return e.some((r,a)=>t(r)?(n=a,!0):!1),n}function A6(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(w6(r)){const c=tM(uo(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${rA(r)+c}px`;const f=Ln(r).querySelectorAll(".mui-fixed");[].forEach.call(f,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${rA(d)+c}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=Ln(r).body;else{const c=r.parentElement,f=uo(r);s=c?.nodeName==="HTML"&&f.getComputedStyle(c).overflowY==="scroll"?c:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:c,property:f})=>{s?c.style.setProperty(f,s):c.style.removeProperty(f)})}}function O6(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class R6{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&vu(t.modalRef,!1);const a=O6(n);iA(n,t.mount,t.modalRef,a,!0);const s=Yy(this.containers,c=>c.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:a}),r)}mount(t,n){const r=Yy(this.containers,s=>s.modals.includes(t)),a=this.containers[r];a.restore||(a.restore=A6(a,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const a=Yy(this.containers,c=>c.modals.includes(t)),s=this.containers[a];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&vu(t.modalRef,n),iA(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(a,1);else{const c=s.modals[s.modals.length-1];c.modalRef&&vu(c.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const _6=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function M6(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function D6(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function P6(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||D6(e))}function k6(e){const t=[],n=[];return Array.from(e.querySelectorAll(_6)).forEach((r,a)=>{const s=M6(r);s===-1||!P6(r)||(s===0?t.push(r):n.push({documentOrder:a,tabIndex:s,node:r}))}),n.sort((r,a)=>r.tabIndex===a.tabIndex?r.documentOrder-a.documentOrder:r.tabIndex-a.tabIndex).map(r=>r.node).concat(t)}function N6(){return!0}function L6(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:a=!1,getTabbable:s=k6,isEnabled:c=N6,open:f}=e,d=E.useRef(!1),p=E.useRef(null),h=E.useRef(null),g=E.useRef(null),v=E.useRef(null),x=E.useRef(!1),b=E.useRef(null),S=on(gs(t),b),T=E.useRef(null);E.useEffect(()=>{!f||!b.current||(x.current=!n)},[n,f]),E.useEffect(()=>{if(!f||!b.current)return;const A=Ln(b.current);return b.current.contains(A.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),x.current&&b.current.focus()),()=>{a||(g.current&&g.current.focus&&(d.current=!0,g.current.focus()),g.current=null)}},[f]),E.useEffect(()=>{if(!f||!b.current)return;const A=Ln(b.current),_=L=>{T.current=L,!(r||!c()||L.key!=="Tab")&&A.activeElement===b.current&&L.shiftKey&&(d.current=!0,h.current&&h.current.focus())},O=()=>{const L=b.current;if(L===null)return;if(!A.hasFocus()||!c()||d.current){d.current=!1;return}if(L.contains(A.activeElement)||r&&A.activeElement!==p.current&&A.activeElement!==h.current)return;if(A.activeElement!==v.current)v.current=null;else if(v.current!==null)return;if(!x.current)return;let B=[];if((A.activeElement===p.current||A.activeElement===h.current)&&(B=s(b.current)),B.length>0){const z=!!(T.current?.shiftKey&&T.current?.key==="Tab"),V=B[0],H=B[B.length-1];typeof V!="string"&&typeof H!="string"&&(z?H.focus():V.focus())}else L.focus()};A.addEventListener("focusin",O),A.addEventListener("keydown",_,!0);const M=setInterval(()=>{A.activeElement&&A.activeElement.tagName==="BODY"&&O()},50);return()=>{clearInterval(M),A.removeEventListener("focusin",O),A.removeEventListener("keydown",_,!0)}},[n,r,a,c,f,s]);const w=A=>{g.current===null&&(g.current=A.relatedTarget),x.current=!0,v.current=A.target;const _=t.props.onFocus;_&&_(A)},R=A=>{g.current===null&&(g.current=A.relatedTarget),x.current=!0};return D.jsxs(E.Fragment,{children:[D.jsx("div",{tabIndex:f?0:-1,onFocus:R,ref:p,"data-testid":"sentinelStart"}),E.cloneElement(t,{ref:S,onFocus:w}),D.jsx("div",{tabIndex:f?0:-1,onFocus:R,ref:h,"data-testid":"sentinelEnd"})]})}function $6(e){return typeof e=="function"?e():e}function B6(e){return e?e.props.hasOwnProperty("in"):!1}const oA=()=>{},zd=new R6;function I6(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:c,children:f,onClose:d,open:p,rootRef:h}=e,g=E.useRef({}),v=E.useRef(null),x=E.useRef(null),b=on(x,h),[S,T]=E.useState(!p),w=B6(f);let R=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(R=!1);const A=()=>Ln(v.current),_=()=>(g.current.modalRef=x.current,g.current.mount=v.current,g.current),O=()=>{zd.mount(_(),{disableScrollLock:r}),x.current&&(x.current.scrollTop=0)},M=zr(()=>{const j=$6(t)||A().body;zd.add(_(),j),x.current&&O()}),L=()=>zd.isTopModal(_()),B=zr(j=>{v.current=j,j&&(p&&L()?O():x.current&&vu(x.current,R))}),z=E.useCallback(()=>{zd.remove(_(),R)},[R]);E.useEffect(()=>()=>{z()},[z]),E.useEffect(()=>{p?M():(!w||!a)&&z()},[p,z,w,a,M]);const V=j=>k=>{j.onKeyDown?.(k),!(k.key!=="Escape"||k.which===229||!L())&&(n||(k.stopPropagation(),d&&d(k,"escapeKeyDown")))},H=j=>k=>{j.onClick?.(k),k.target===k.currentTarget&&d&&d(k,"backdropClick")};return{getRootProps:(j={})=>{const k=Gp(e);delete k.onTransitionEnter,delete k.onTransitionExited;const I={...k,...j};return{role:"presentation",...I,onKeyDown:V(I),ref:b}},getBackdropProps:(j={})=>{const k=j;return{"aria-hidden":!0,...k,onClick:H(k),open:p}},getTransitionProps:()=>{const j=()=>{T(!1),s&&s()},k=()=>{T(!0),c&&c(),a&&z()};return{onEnter:rv(j,f?.props.onEnter??oA),onExited:rv(k,f?.props.onExited??oA)}},rootRef:b,portalRef:B,isTopModal:L,exited:S,hasTransition:w}}function j6(e){return Be("MuiModal",e)}Ne("MuiModal",["root","hidden","backdrop"]);const z6=e=>{const{open:t,exited:n,classes:r}=e;return Ie({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},j6,r)},U6=fe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})($e(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),F6=fe(K4,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),V6=E.forwardRef(function(t,n){const r=Ve({name:"MuiModal",props:t}),{BackdropComponent:a=F6,BackdropProps:s,classes:c,className:f,closeAfterTransition:d=!1,children:p,container:h,component:g,components:v={},componentsProps:x={},disableAutoFocus:b=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:T=!1,disablePortal:w=!1,disableRestoreFocus:R=!1,disableScrollLock:A=!1,hideBackdrop:_=!1,keepMounted:O=!1,onClose:M,onTransitionEnter:L,onTransitionExited:B,open:z,slotProps:V={},slots:H={},theme:P,...K}=r,U={...r,closeAfterTransition:d,disableAutoFocus:b,disableEnforceFocus:S,disableEscapeKeyDown:T,disablePortal:w,disableRestoreFocus:R,disableScrollLock:A,hideBackdrop:_,keepMounted:O},{getRootProps:j,getBackdropProps:k,getTransitionProps:I,portalRef:q,isTopModal:X,exited:ie,hasTransition:$}=I6({...U,rootRef:n}),W={...U,exited:ie},te=z6(W),oe={};if(p.props.tabIndex===void 0&&(oe.tabIndex="-1"),$){const{onEnter:ye,onExited:Ae}=I();oe.onEnter=ye,oe.onExited=Ae}const le={slots:{root:v.Root,backdrop:v.Backdrop,...H},slotProps:{...x,...V}},[he,ge]=Ze("root",{ref:n,elementType:U6,externalForwardedProps:{...le,...K,component:g},getSlotProps:j,ownerState:W,className:we(f,te?.root,!W.open&&W.exited&&te?.hidden)}),[Me,ve]=Ze("backdrop",{ref:s?.ref,elementType:a,externalForwardedProps:le,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:ye=>k({...ye,onClick:Ae=>{ye?.onClick&&ye.onClick(Ae)}}),className:we(s?.className,te?.backdrop),ownerState:W});return!O&&!z&&(!$||ie)?null:D.jsx(K2,{ref:q,container:h,disablePortal:w,children:D.jsxs(he,{...ge,children:[!_&&a?D.jsx(Me,{...ve}):null,D.jsx(L6,{disableEnforceFocus:S,disableAutoFocus:b,disableRestoreFocus:R,isEnabled:X,open:z,children:E.cloneElement(p,oe)})]})})});function H6(e){return Be("MuiDivider",e)}const aA=Ne("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),q6=e=>{const{absolute:t,children:n,classes:r,flexItem:a,light:s,orientation:c,textAlign:f,variant:d}=e;return Ie({root:["root",t&&"absolute",d,s&&"light",c==="vertical"&&"vertical",a&&"flexItem",n&&"withChildren",n&&c==="vertical"&&"withChildrenVertical",f==="right"&&c!=="vertical"&&"textAlignRight",f==="left"&&c!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",c==="vertical"&&"wrapperVertical"]},H6,r)},G6=fe("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.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:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),Y6=fe("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.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)`}}]}))),hv=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiDivider"}),{absolute:a=!1,children:s,className:c,orientation:f="horizontal",component:d=s||f==="vertical"?"div":"hr",flexItem:p=!1,light:h=!1,role:g=d!=="hr"?"separator":void 0,textAlign:v="center",variant:x="fullWidth",...b}=r,S={...r,absolute:a,component:d,flexItem:p,light:h,orientation:f,role:g,textAlign:v,variant:x},T=q6(S);return D.jsx(G6,{as:d,className:we(T.root,c),role:g,ref:n,ownerState:S,"aria-orientation":g==="separator"&&(d!=="hr"||f==="vertical")?f:void 0,...b,children:s?D.jsx(Y6,{className:T.wrapper,ownerState:S,children:s}):null})});hv&&(hv.muiSkipListHighlight=!0);const W6=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:a,size:s,hiddenLabel:c,multiline:f}=e,d={root:["root",!n&&"underline",r&&"adornedStart",a&&"adornedEnd",s==="small"&&`size${pe(s)}`,c&&"hiddenLabel",f&&"multiline"],input:["input"]},p=Ie(d,$4,t);return{...t,...p}},K6=fe(Hh,{shouldForwardProp:e=>Fn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Fh(e,t),!n.disableUnderline&&t.underline]}})($e(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${ka.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${ka.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:c})=>!c.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"},[`&.${ka.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ka.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):n}`,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(.${ka.disabled}, .${ka.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ka.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(rn()).map(([c])=>({props:{disableUnderline:!1,color:c},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[c]?.main}`}}})),{props:({ownerState:c})=>c.startAdornment,style:{paddingLeft:12}},{props:({ownerState:c})=>c.endAdornment,style:{paddingRight:12}},{props:({ownerState:c})=>c.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:c,size:f})=>c.multiline&&f==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:c})=>c.multiline&&c.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:c})=>c.multiline&&c.hiddenLabel&&c.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),X6=fe(qh,{name:"MuiFilledInput",slot:"Input",overridesResolver:Vh})($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:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),dS=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:s={},componentsProps:c,fullWidth:f=!1,hiddenLabel:d,inputComponent:p="input",multiline:h=!1,slotProps:g,slots:v={},type:x="text",...b}=r,S={...r,disableUnderline:a,fullWidth:f,inputComponent:p,multiline:h,type:x},T=W6(r),w={root:{ownerState:S},input:{ownerState:S}},R=g??c?Sn(w,g??c):w,A=v.root??s.Root??K6,_=v.input??s.Input??X6;return D.jsx(fS,{slots:{root:A,input:_},slotProps:R,fullWidth:f,inputComponent:p,multiline:h,ref:n,type:x,...b,classes:T})});dS.muiName="Input";function Z6(e){return Be("MuiFormControl",e)}Ne("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Q6=e=>{const{classes:t,margin:n,fullWidth:r}=e,a={root:["root",n!=="none"&&`margin${pe(n)}`,r&&"fullWidth"]};return Ie(a,Z6,t)},J6=fe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${pe(n.margin)}`],n.fullWidth&&t.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%"}}]}),nM=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiFormControl"}),{children:a,className:s,color:c="primary",component:f="div",disabled:d=!1,error:p=!1,focused:h,fullWidth:g=!1,hiddenLabel:v=!1,margin:x="none",required:b=!1,size:S="medium",variant:T="outlined",...w}=r,R={...r,color:c,component:f,disabled:d,error:p,fullWidth:g,hiddenLabel:v,margin:x,required:b,size:S,variant:T},A=Q6(R),[_,O]=E.useState(()=>{let j=!1;return a&&E.Children.forEach(a,k=>{if(!dp(k,["Input","Select"]))return;const I=dp(k,["Select"])?k.props.input:k;I&&D4(I.props)&&(j=!0)}),j}),[M,L]=E.useState(()=>{let j=!1;return a&&E.Children.forEach(a,k=>{dp(k,["Input","Select"])&&(Zp(k.props,!0)||Zp(k.props.inputProps,!0))&&(j=!0)}),j}),[B,z]=E.useState(!1);d&&B&&z(!1);const V=h!==void 0&&!d?h:B;let H;E.useRef(!1);const P=E.useCallback(()=>{L(!0)},[]),K=E.useCallback(()=>{L(!1)},[]),U=E.useMemo(()=>({adornedStart:_,setAdornedStart:O,color:c,disabled:d,error:p,filled:M,focused:V,fullWidth:g,hiddenLabel:v,size:S,onBlur:()=>{z(!1)},onFocus:()=>{z(!0)},onEmpty:K,onFilled:P,registerEffect:H,required:b,variant:T}),[_,c,d,p,M,V,g,v,H,K,P,b,S,T]);return D.jsx(Uh.Provider,{value:U,children:D.jsx(J6,{as:f,ownerState:R,className:we(A.root,s),ref:n,...w,children:a})})});function eU(e){return Be("MuiFormControlLabel",e)}const uu=Ne("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),tU=e=>{const{classes:t,disabled:n,labelPlacement:r,error:a,required:s}=e,c={root:["root",n&&"disabled",`labelPlacement${pe(r)}`,a&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",a&&"error"]};return Ie(c,eU,t)},nU=fe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${uu.label}`]:t.label},t.root,t[`labelPlacement${pe(n.labelPlacement)}`]]}})($e(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${uu.disabled}`]:{cursor:"default"},[`& .${uu.label}`]:{[`&.${uu.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:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),rU=fe("span",{name:"MuiFormControlLabel",slot:"Asterisk"})($e(({theme:e})=>({[`&.${uu.error}`]:{color:(e.vars||e).palette.error.main}}))),iU=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiFormControlLabel"}),{checked:a,className:s,componentsProps:c={},control:f,disabled:d,disableTypography:p,inputRef:h,label:g,labelPlacement:v="end",name:x,onChange:b,required:S,slots:T={},slotProps:w={},value:R,...A}=r,_=ri(),O=d??f.props.disabled??_?.disabled,M=S??f.props.required,L={disabled:O,required:M};["checked","name","onChange","value","inputRef"].forEach(j=>{typeof f.props[j]>"u"&&typeof r[j]<"u"&&(L[j]=r[j])});const B=fa({props:r,muiFormControl:_,states:["error"]}),z={...r,disabled:O,labelPlacement:v,required:M,error:B.error},V=tU(z),H={slots:T,slotProps:{...c,...w}},[P,K]=Ze("typography",{elementType:_t,externalForwardedProps:H,ownerState:z});let U=g;return U!=null&&U.type!==_t&&!p&&(U=D.jsx(P,{component:"span",...K,className:we(V.label,K?.className),children:U})),D.jsxs(nU,{className:we(V.root,s),ownerState:z,ref:n,...A,children:[E.cloneElement(f,L),M?D.jsxs("div",{children:[U,D.jsxs(rU,{ownerState:z,"aria-hidden":!0,className:V.asterisk,children:[" ","*"]})]}):U]})});function oU(e){return Be("MuiFormGroup",e)}Ne("MuiFormGroup",["root","row","error"]);const aU=e=>{const{classes:t,row:n,error:r}=e;return Ie({root:["root",n&&"row",r&&"error"]},oU,t)},sU=fe("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),lU=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiFormGroup"}),{className:a,row:s=!1,...c}=r,f=ri(),d=fa({props:r,muiFormControl:f,states:["error"]}),p={...r,row:s,error:d.error},h=aU(p);return D.jsx(sU,{className:we(h.root,a),ownerState:p,ref:n,...c})});function cU(e){return Be("MuiFormHelperText",e)}const sA=Ne("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var lA;const uU=e=>{const{classes:t,contained:n,size:r,disabled:a,error:s,filled:c,focused:f,required:d}=e,p={root:["root",a&&"disabled",s&&"error",r&&`size${pe(r)}`,n&&"contained",f&&"focused",c&&"filled",d&&"required"]};return Ie(p,cU,t)},fU=fe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${pe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})($e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${sA.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${sA.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),dU=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiFormHelperText"}),{children:a,className:s,component:c="p",disabled:f,error:d,filled:p,focused:h,margin:g,required:v,variant:x,...b}=r,S=ri(),T=fa({props:r,muiFormControl:S,states:["variant","size","disabled","error","filled","focused","required"]}),w={...r,component:c,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 w.ownerState;const R=uU(w);return D.jsx(fU,{as:c,className:we(R.root,s),ref:n,...b,ownerState:w,children:a===" "?lA||(lA=D.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):a})});function pU(e){return Be("MuiFormLabel",e)}const bu=Ne("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),hU=e=>{const{classes:t,color:n,focused:r,disabled:a,error:s,filled:c,required:f}=e,d={root:["root",`color${pe(n)}`,a&&"disabled",s&&"error",c&&"filled",r&&"focused",f&&"required"],asterisk:["asterisk",s&&"error"]};return Ie(d,pU,t)},mU=fe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.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(rn()).map(([t])=>({props:{color:t},style:{[`&.${bu.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${bu.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${bu.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),gU=fe("span",{name:"MuiFormLabel",slot:"Asterisk"})($e(({theme:e})=>({[`&.${bu.error}`]:{color:(e.vars||e).palette.error.main}}))),yU=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiFormLabel"}),{children:a,className:s,color:c,component:f="label",disabled:d,error:p,filled:h,focused:g,required:v,...x}=r,b=ri(),S=fa({props:r,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),T={...r,color:S.color||"primary",component:f,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required},w=hU(T);return D.jsxs(mU,{as:f,ownerState:T,className:we(w.root,s),ref:n,...x,children:[a,S.required&&D.jsxs(gU,{ownerState:T,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]})});function mv(e){return`scale(${e}, ${e**2})`}const vU={entering:{opacity:1,transform:mv(1)},entered:{opacity:1,transform:"none"}},Wy=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Bu=E.forwardRef(function(t,n){const{addEndListener:r,appear:a=!0,children:s,easing:c,in:f,onEnter:d,onEntered:p,onEntering:h,onExit:g,onExited:v,onExiting:x,style:b,timeout:S="auto",TransitionComponent:T=Mi,...w}=t,R=qa(),A=E.useRef(),_=Un(),O=E.useRef(null),M=on(O,gs(s),n),L=j=>k=>{if(j){const I=O.current;k===void 0?j(I):j(I,k)}},B=L(h),z=L((j,k)=>{N2(j);const{duration:I,delay:q,easing:X}=qp({style:b,timeout:S,easing:c},{mode:"enter"});let ie;S==="auto"?(ie=_.transitions.getAutoHeightDuration(j.clientHeight),A.current=ie):ie=I,j.style.transition=[_.transitions.create("opacity",{duration:ie,delay:q}),_.transitions.create("transform",{duration:Wy?ie:ie*.666,delay:q,easing:X})].join(","),d&&d(j,k)}),V=L(p),H=L(x),P=L(j=>{const{duration:k,delay:I,easing:q}=qp({style:b,timeout:S,easing:c},{mode:"exit"});let X;S==="auto"?(X=_.transitions.getAutoHeightDuration(j.clientHeight),A.current=X):X=k,j.style.transition=[_.transitions.create("opacity",{duration:X,delay:I}),_.transitions.create("transform",{duration:Wy?X:X*.666,delay:Wy?I:I||X*.333,easing:q})].join(","),j.style.opacity=0,j.style.transform=mv(.75),g&&g(j)}),K=L(v),U=j=>{S==="auto"&&R.start(A.current||0,j),r&&r(O.current,j)};return D.jsx(T,{appear:a,in:f,nodeRef:O,onEnter:z,onEntered:V,onEntering:B,onExit:P,onExited:K,onExiting:H,addEndListener:U,timeout:S==="auto"?null:S,...w,children:(j,{ownerState:k,...I})=>E.cloneElement(s,{style:{opacity:0,transform:mv(.75),visibility:j==="exited"&&!f?"hidden":void 0,...vU[j],...b,...s.props.style},ref:M,...I})})});Bu&&(Bu.muiSupportAuto=!0);function bU(e){return Be("MuiIcon",e)}Ne("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const SU=e=>{const{color:t,fontSize:n,classes:r}=e,a={root:["root",t!=="inherit"&&`color${pe(t)}`,`fontSize${pe(n)}`]};return Ie(a,bU,r)},xU=fe("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${pe(n.color)}`],t[`fontSize${pe(n.fontSize)}`]]}})($e(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,variants:[{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography.pxToRem(20)}},{props:{fontSize:"medium"},style:{fontSize:e.typography.pxToRem(24)}},{props:{fontSize:"large"},style:{fontSize:e.typography.pxToRem(36)}},{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}},...Object.entries(e.palette).filter(rn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),rM=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiIcon"}),{baseClassName:a="material-icons",className:s,color:c="inherit",component:f="span",fontSize:d="medium",...p}=r,h={...r,baseClassName:a,color:c,component:f,fontSize:d},g=SU(h);return D.jsx(xU,{as:f,className:we(a,"notranslate",g.root,s),ownerState:h,"aria-hidden":!0,ref:n,...p})});rM.muiName="Icon";const TU=e=>{const{classes:t,disableUnderline:n}=e,a=Ie({root:["root",!n&&"underline"],input:["input"]},N4,t);return{...t,...a}},EU=fe(Hh,{shouldForwardProp:e=>Fn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Fh(e,t),!n.disableUnderline&&t.underline]}})($e(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.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"},[`&.${Kc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Kc.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,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(.${Kc.disabled}, .${Kc.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Kc.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(rn()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),wU=fe(qh,{name:"MuiInput",slot:"Input",overridesResolver:Vh})({}),pS=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiInput"}),{disableUnderline:a=!1,components:s={},componentsProps:c,fullWidth:f=!1,inputComponent:d="input",multiline:p=!1,slotProps:h,slots:g={},type:v="text",...x}=r,b=TU(r),T={root:{ownerState:{disableUnderline:a}}},w=h??c?Sn(h??c,T):T,R=g.root??s.Root??EU,A=g.input??s.Input??wU;return D.jsx(fS,{slots:{root:R,input:A},slotProps:w,fullWidth:f,inputComponent:d,multiline:p,ref:n,type:v,...x,classes:b})});pS.muiName="Input";function CU(e){return Be("MuiInputAdornment",e)}const cA=Ne("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var uA;const AU=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${pe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},OU=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:a,size:s,variant:c}=e,f={root:["root",n&&"disablePointerEvents",a&&`position${pe(a)}`,c,r&&"hiddenLabel",s&&`size${pe(s)}`]};return Ie(f,CU,t)},RU=fe("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:AU})($e(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${cA.positionStart}&:not(.${cA.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),fA=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiInputAdornment"}),{children:a,className:s,component:c="div",disablePointerEvents:f=!1,disableTypography:d=!1,position:p,variant:h,...g}=r,v=ri()||{};let x=h;h&&v.variant,v&&!x&&(x=v.variant);const b={...r,hiddenLabel:v.hiddenLabel,size:v.size,disablePointerEvents:f,position:p,variant:x},S=OU(b);return D.jsx(Uh.Provider,{value:null,children:D.jsx(RU,{as:c,ownerState:b,className:we(S.root,s),ref:n,...g,children:typeof a=="string"&&!d?D.jsx(_t,{color:"textSecondary",children:a}):D.jsxs(E.Fragment,{children:[p==="start"?uA||(uA=D.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,a]})})})});function _U(e){return Be("MuiInputLabel",e)}Ne("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const MU=e=>{const{classes:t,formControl:n,size:r,shrink:a,disableAnimation:s,variant:c,required:f}=e,d={root:["root",n&&"formControl",!s&&"animated",a&&"shrink",r&&r!=="medium"&&`size${pe(r)}`,c],asterisk:[f&&"asterisk"]},p=Ie(d,_U,t);return{...t,...p}},DU=fe(yU,{shouldForwardProp:e=>Fn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bu.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})($e(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.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:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.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:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="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:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),iM=E.forwardRef(function(t,n){const r=Ve({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,margin:s,shrink:c,variant:f,className:d,...p}=r,h=ri();let g=c;typeof g>"u"&&h&&(g=h.filled||h.focused||h.adornedStart);const v=fa({props:r,muiFormControl:h,states:["size","variant","required","focused"]}),x={...r,disableAnimation:a,formControl:h,shrink:g,size:v.size,variant:v.variant,required:v.required,focused:v.focused},b=MU(x);return D.jsx(DU,{"data-shrink":g,ref:n,className:we(b.root,d),...p,ownerState:x,classes:b})});function PU(e){return Be("MuiLinearProgress",e)}const dA=Ne("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]),gv=4,yv=_i`
201
+ 0% {
202
+ left: -35%;
203
+ right: 100%;
204
+ }
205
+
206
+ 60% {
207
+ left: 100%;
208
+ right: -90%;
209
+ }
210
+
211
+ 100% {
212
+ left: 100%;
213
+ right: -90%;
214
+ }
215
+ `,kU=typeof yv!="string"?ca`
216
+ animation: ${yv} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
217
+ `:null,vv=_i`
218
+ 0% {
219
+ left: -200%;
220
+ right: 100%;
221
+ }
222
+
223
+ 60% {
224
+ left: 107%;
225
+ right: -8%;
226
+ }
227
+
228
+ 100% {
229
+ left: 107%;
230
+ right: -8%;
231
+ }
232
+ `,NU=typeof vv!="string"?ca`
233
+ animation: ${vv} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
234
+ `:null,bv=_i`
235
+ 0% {
236
+ opacity: 1;
237
+ background-position: 0 -23px;
238
+ }
239
+
240
+ 60% {
241
+ opacity: 0;
242
+ background-position: 0 -23px;
243
+ }
244
+
245
+ 100% {
246
+ opacity: 1;
247
+ background-position: -200px -23px;
248
+ }
249
+ `,LU=typeof bv!="string"?ca`
250
+ animation: ${bv} 3s infinite linear;
251
+ `:null,$U=e=>{const{classes:t,variant:n,color:r}=e,a={root:["root",`color${pe(r)}`,n],dashed:["dashed",`dashedColor${pe(r)}`],bar1:["bar","bar1",`barColor${pe(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${pe(r)}`,n==="buffer"&&`color${pe(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Ie(a,PU,t)},hS=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),BU=fe("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${pe(n.color)}`],t[n.variant]]}})($e(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(rn()).map(([t])=>({props:{color:t},style:{backgroundColor:hS(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.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)"}}]}))),IU=fe("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${pe(n.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(rn()).map(([t])=>{const n=hS(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),LU||{animation:`${bv} 3s infinite linear`}),jU=fe("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${pe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.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(rn()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${gv}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${gv}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:kU||{animation:`${yv} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),zU=fe("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${pe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.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(rn()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(rn()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:hS(e,t),transition:`transform .${gv}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:NU||{animation:`${vv} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),UU=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiLinearProgress"}),{className:a,color:s="primary",value:c,valueBuffer:f,variant:d="indeterminate",...p}=r,h={...r,color:s,variant:d},g=$U(h),v=$h(),x={},b={bar1:{},bar2:{}};if((d==="determinate"||d==="buffer")&&c!==void 0){x["aria-valuenow"]=Math.round(c),x["aria-valuemin"]=0,x["aria-valuemax"]=100;let S=c-100;v&&(S=-S),b.bar1.transform=`translateX(${S}%)`}if(d==="buffer"&&f!==void 0){let S=(f||0)-100;v&&(S=-S),b.bar2.transform=`translateX(${S}%)`}return D.jsxs(BU,{className:we(g.root,a),ownerState:h,role:"progressbar",...x,ref:n,...p,children:[d==="buffer"?D.jsx(IU,{className:g.dashed,ownerState:h}):null,D.jsx(jU,{className:g.bar1,ownerState:h,style:b.bar1}),d==="determinate"?null:D.jsx(zU,{className:g.bar2,ownerState:h,style:b.bar2})]})}),Qa=E.createContext({});function FU(e){return Be("MuiList",e)}Ne("MuiList",["root","padding","dense","subheader"]);const VU=e=>{const{classes:t,disablePadding:n,dense:r,subheader:a}=e;return Ie({root:["root",!n&&"padding",r&&"dense",a&&"subheader"]},FU,t)},HU=fe("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.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}}]}),oM=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiList"}),{children:a,className:s,component:c="ul",dense:f=!1,disablePadding:d=!1,subheader:p,...h}=r,g=E.useMemo(()=>({dense:f}),[f]),v={...r,component:c,dense:f,disablePadding:d},x=VU(v);return D.jsx(Qa.Provider,{value:g,children:D.jsxs(HU,{as:c,className:we(x.root,s),ref:n,ownerState:v,...h,children:[p,a]})})});function qU(e){return Be("MuiListItem",e)}Ne("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const GU=Ne("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function YU(e){return Be("MuiListItemSecondaryAction",e)}Ne("MuiListItemSecondaryAction",["root","disableGutters"]);const WU=e=>{const{disableGutters:t,classes:n}=e;return Ie({root:["root",t&&"disableGutters"]},YU,n)},KU=fe("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),aM=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiListItemSecondaryAction"}),{className:a,...s}=r,c=E.useContext(Qa),f={...r,disableGutters:c.disableGutters},d=WU(f);return D.jsx(KU,{className:we(d.root,a),ownerState:f,ref:n,...s})});aM.muiName="ListItemSecondaryAction";const XU=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},ZU=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:a,disablePadding:s,divider:c,hasSecondaryAction:f}=e;return Ie({root:["root",r&&"dense",!a&&"gutters",!s&&"padding",c&&"divider",t==="flex-start"&&"alignItemsFlexStart",f&&"secondaryAction"],container:["container"]},qU,n)},QU=fe("div",{name:"MuiListItem",slot:"Root",overridesResolver:XU})($e(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${GU.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.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:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),JU=fe("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),pA=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiListItem"}),{alignItems:a="center",children:s,className:c,component:f,components:d={},componentsProps:p={},ContainerComponent:h="li",ContainerProps:{className:g,...v}={},dense:x=!1,disableGutters:b=!1,disablePadding:S=!1,divider:T=!1,secondaryAction:w,slotProps:R={},slots:A={},..._}=r,O=E.useContext(Qa),M=E.useMemo(()=>({dense:x||O.dense||!1,alignItems:a,disableGutters:b}),[a,O.dense,x,b]),L=E.useRef(null),B=E.Children.toArray(s),z=B.length&&dp(B[B.length-1],["ListItemSecondaryAction"]),V={...r,alignItems:a,dense:M.dense,disableGutters:b,disablePadding:S,divider:T,hasSecondaryAction:z},H=ZU(V),P=on(L,n),K=A.root||d.Root||QU,U=R.root||p.root||{},j={className:we(H.root,U.className,c),..._};let k=f||"li";return z?(k=!j.component&&!f?"div":k,h==="li"&&(k==="li"?k="div":j.component==="li"&&(j.component="div")),D.jsx(Qa.Provider,{value:M,children:D.jsxs(JU,{as:h,className:we(H.container,g),ref:P,ownerState:V,...v,children:[D.jsx(K,{...U,...!Ml(K)&&{as:k,ownerState:{...V,...U.ownerState}},...j,children:B}),B.pop()]})})):D.jsx(Qa.Provider,{value:M,children:D.jsxs(K,{...U,as:k,ref:P,...!Ml(K)&&{ownerState:{...V,...U.ownerState}},...j,children:[B,w&&D.jsx(aM,{children:w})]})})}),hA=Ne("MuiListItemIcon",["root","alignItemsFlexStart"]),mA=Ne("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Ky(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function gA(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function sM(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Xc(e,t,n,r,a,s){let c=!1,f=a(e,t,t?n:!1);for(;f;){if(f===e.firstChild){if(c)return!1;c=!0}const d=r?!1:f.disabled||f.getAttribute("aria-disabled")==="true";if(!f.hasAttribute("tabindex")||!sM(f,s)||d)f=a(e,f,n);else return f.focus(),!0}return!1}const eF=E.forwardRef(function(t,n){const{actions:r,autoFocus:a=!1,autoFocusItem:s=!1,children:c,className:f,disabledItemsFocusable:d=!1,disableListWrap:p=!1,onKeyDown:h,variant:g="selectedMenu",...v}=t,x=E.useRef(null),b=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Vr(()=>{a&&x.current.focus()},[a]),E.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(A,{direction:_})=>{const O=!x.current.style.width;if(A.clientHeight<x.current.clientHeight&&O){const M=`${tM(uo(A))}px`;x.current.style[_==="rtl"?"paddingLeft":"paddingRight"]=M,x.current.style.width=`calc(100% + ${M})`}return x.current}}),[]);const S=A=>{const _=x.current,O=A.key;if(A.ctrlKey||A.metaKey||A.altKey){h&&h(A);return}const L=Ln(_).activeElement;if(O==="ArrowDown")A.preventDefault(),Xc(_,L,p,d,Ky);else if(O==="ArrowUp")A.preventDefault(),Xc(_,L,p,d,gA);else if(O==="Home")A.preventDefault(),Xc(_,null,p,d,Ky);else if(O==="End")A.preventDefault(),Xc(_,null,p,d,gA);else if(O.length===1){const B=b.current,z=O.toLowerCase(),V=performance.now();B.keys.length>0&&(V-B.lastTime>500?(B.keys=[],B.repeating=!0,B.previousKeyMatched=!0):B.repeating&&z!==B.keys[0]&&(B.repeating=!1)),B.lastTime=V,B.keys.push(z);const H=L&&!B.repeating&&sM(L,B);B.previousKeyMatched&&(H||Xc(_,L,!1,d,Ky,B))?A.preventDefault():B.previousKeyMatched=!1}h&&h(A)},T=on(x,n);let w=-1;E.Children.forEach(c,(A,_)=>{if(!E.isValidElement(A)){w===_&&(w+=1,w>=c.length&&(w=-1));return}A.props.disabled||(g==="selectedMenu"&&A.props.selected||w===-1)&&(w=_),w===_&&(A.props.disabled||A.props.muiSkipListHighlight||A.type.muiSkipListHighlight)&&(w+=1,w>=c.length&&(w=-1))});const R=E.Children.map(c,(A,_)=>{if(_===w){const O={};return s&&(O.autoFocus=!0),A.props.tabIndex===void 0&&g==="selectedMenu"&&(O.tabIndex=0),E.cloneElement(A,O)}return A});return D.jsx(oM,{role:"menu",ref:T,className:f,onKeyDown:S,tabIndex:a?0:-1,...v,children:R})});function tF(e){return Be("MuiPopover",e)}Ne("MuiPopover",["root","paper"]);function yA(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function vA(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function bA(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ud(e){return typeof e=="function"?e():e}const nF=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"]},tF,t)},rF=fe(V6,{name:"MuiPopover",slot:"Root"})({}),lM=fe(nS,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),iF=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:d="anchorEl",children:p,className:h,container:g,elevation:v=8,marginThreshold:x=16,open:b,PaperProps:S={},slots:T={},slotProps:w={},transformOrigin:R={vertical:"top",horizontal:"left"},TransitionComponent:A,transitionDuration:_="auto",TransitionProps:O={},disableScrollLock:M=!1,...L}=r,B=E.useRef(),z={...r,anchorOrigin:c,anchorReference:d,elevation:v,marginThreshold:x,transformOrigin:R,TransitionComponent:A,transitionDuration:_,TransitionProps:O},V=nF(z),H=E.useCallback(()=>{if(d==="anchorPosition")return f;const ye=Ud(s),_e=(ye&&ye.nodeType===1?ye:Ln(B.current).body).getBoundingClientRect();return{top:_e.top+yA(_e,c.vertical),left:_e.left+vA(_e,c.horizontal)}},[s,c.horizontal,c.vertical,f,d]),P=E.useCallback(ye=>({vertical:yA(ye,R.vertical),horizontal:vA(ye,R.horizontal)}),[R.horizontal,R.vertical]),K=E.useCallback(ye=>{const Ae={width:ye.offsetWidth,height:ye.offsetHeight},_e=P(Ae);if(d==="none")return{top:null,left:null,transformOrigin:bA(_e)};const je=H();let xe=je.top-_e.vertical,qe=je.left-_e.horizontal;const Ot=xe+Ae.height,mt=qe+Ae.width,lt=uo(Ud(s)),nt=lt.innerHeight-x,Qe=lt.innerWidth-x;if(x!==null&&xe<x){const Je=xe-x;xe-=Je,_e.vertical+=Je}else if(x!==null&&Ot>nt){const Je=Ot-nt;xe-=Je,_e.vertical+=Je}if(x!==null&&qe<x){const Je=qe-x;qe-=Je,_e.horizontal+=Je}else if(mt>Qe){const Je=mt-Qe;qe-=Je,_e.horizontal+=Je}return{top:`${Math.round(xe)}px`,left:`${Math.round(qe)}px`,transformOrigin:bA(_e)}},[s,d,H,P,x]),[U,j]=E.useState(b),k=E.useCallback(()=>{const ye=B.current;if(!ye)return;const Ae=K(ye);Ae.top!==null&&ye.style.setProperty("top",Ae.top),Ae.left!==null&&(ye.style.left=Ae.left),ye.style.transformOrigin=Ae.transformOrigin,j(!0)},[K]);E.useEffect(()=>(M&&window.addEventListener("scroll",k),()=>window.removeEventListener("scroll",k)),[s,M,k]);const I=()=>{k()},q=()=>{j(!1)};E.useEffect(()=>{b&&k()}),E.useImperativeHandle(a,()=>b?{updatePosition:()=>{k()}}:null,[b,k]),E.useEffect(()=>{if(!b)return;const ye=_2(()=>{k()}),Ae=uo(Ud(s));return Ae.addEventListener("resize",ye),()=>{ye.clear(),Ae.removeEventListener("resize",ye)}},[s,b,k]);let X=_;const ie={slots:{transition:A,...T},slotProps:{transition:O,paper:S,...w}},[$,W]=Ze("transition",{elementType:Bu,externalForwardedProps:ie,ownerState:z,getSlotProps:ye=>({...ye,onEntering:(Ae,_e)=>{ye.onEntering?.(Ae,_e),I()},onExited:Ae=>{ye.onExited?.(Ae),q()}}),additionalProps:{appear:!0,in:b}});_==="auto"&&!$.muiSupportAuto&&(X=void 0);const te=g||(s?Ln(Ud(s)).body:void 0),[oe,{slots:le,slotProps:he,...ge}]=Ze("root",{ref:n,elementType:rF,externalForwardedProps:{...ie,...L},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:T.backdrop},slotProps:{backdrop:cz(typeof w.backdrop=="function"?w.backdrop(z):w.backdrop,{invisible:!0})},container:te,open:b},ownerState:z,className:we(V.root,h)}),[Me,ve]=Ze("paper",{ref:B,className:V.paper,elementType:lM,externalForwardedProps:ie,shouldForwardComponentProp:!0,additionalProps:{elevation:v,style:U?void 0:{opacity:0}},ownerState:z});return D.jsx(oe,{...ge,...!Ml(oe)&&{slots:le,slotProps:he,disableScrollLock:M},children:D.jsx($,{...W,timeout:X,children:D.jsx(Me,{...ve,children:p})})})});function oF(e){return Be("MuiMenu",e)}Ne("MuiMenu",["root","paper","list"]);const aF={vertical:"top",horizontal:"right"},sF={vertical:"top",horizontal:"left"},lF=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"],list:["list"]},oF,t)},cF=fe(iF,{shouldForwardProp:e=>Fn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),uF=fe(lM,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),fF=fe(eF,{name:"MuiMenu",slot:"List"})({outline:0}),cM=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:c,disableAutoFocusItem:f=!1,MenuListProps:d={},onClose:p,open:h,PaperProps:g={},PopoverClasses:v,transitionDuration:x="auto",TransitionProps:{onEntering:b,...S}={},variant:T="selectedMenu",slots:w={},slotProps:R={},...A}=r,_=$h(),O={...r,autoFocus:a,disableAutoFocusItem:f,MenuListProps:d,onEntering:b,PaperProps:g,transitionDuration:x,TransitionProps:S,variant:T},M=lF(O),L=a&&!f&&h,B=E.useRef(null),z=(X,ie)=>{B.current&&B.current.adjustStyleForScrollbar(X,{direction:_?"rtl":"ltr"}),b&&b(X,ie)},V=X=>{X.key==="Tab"&&(X.preventDefault(),p&&p(X,"tabKeyDown"))};let H=-1;E.Children.map(s,(X,ie)=>{E.isValidElement(X)&&(X.props.disabled||(T==="selectedMenu"&&X.props.selected||H===-1)&&(H=ie))});const P={slots:w,slotProps:{list:d,transition:S,paper:g,...R}},K=W2({elementType:w.root,externalSlotProps:R.root,ownerState:O,className:[M.root,c]}),[U,j]=Ze("paper",{className:M.paper,elementType:uF,externalForwardedProps:P,shouldForwardComponentProp:!0,ownerState:O}),[k,I]=Ze("list",{className:we(M.list,d.className),elementType:fF,shouldForwardComponentProp:!0,externalForwardedProps:P,getSlotProps:X=>({...X,onKeyDown:ie=>{V(ie),X.onKeyDown?.(ie)}}),ownerState:O}),q=typeof P.slotProps.transition=="function"?P.slotProps.transition(O):P.slotProps.transition;return D.jsx(cF,{onClose:p,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?aF:sF,slots:{root:w.root,paper:U,backdrop:w.backdrop,...w.transition&&{transition:w.transition}},slotProps:{root:K,paper:j,backdrop:typeof R.backdrop=="function"?R.backdrop(O):R.backdrop,transition:{...q,onEntering:(...X)=>{z(...X),q?.onEntering?.(...X)}}},open:h,ref:n,transitionDuration:x,ownerState:O,...A,classes:v,children:D.jsx(k,{actions:B,autoFocus:a&&(H===-1||f),autoFocusItem:L,variant:T,...I,children:s})})});function dF(e){return Be("MuiMenuItem",e)}const Zc=Ne("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),pF=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},hF=e=>{const{disabled:t,dense:n,divider:r,disableGutters:a,selected:s,classes:c}=e,d=Ie({root:["root",n&&"dense",t&&"disabled",!a&&"gutters",r&&"divider",s&&"selected"]},dF,c);return{...c,...d}},mF=fe(jh,{shouldForwardProp:e=>Fn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:pF})($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"}},[`&.${Zc.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Zc.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Zc.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)}},[`&.${Zc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Zc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${aA.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${aA.inset}`]:{marginLeft:52},[`& .${mA.root}`]:{marginTop:0,marginBottom:0},[`& .${mA.inset}`]:{paddingLeft:36},[`& .${hA.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${hA.root} svg`]:{fontSize:"1.25rem"}}}]}))),gF=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:s="li",dense:c=!1,divider:f=!1,disableGutters:d=!1,focusVisibleClassName:p,role:h="menuitem",tabIndex:g,className:v,...x}=r,b=E.useContext(Qa),S=E.useMemo(()=>({dense:c||b.dense||!1,disableGutters:d}),[b.dense,c,d]),T=E.useRef(null);Vr(()=>{a&&T.current&&T.current.focus()},[a]);const w={...r,dense:S.dense,divider:f,disableGutters:d},R=hF(r),A=on(T,n);let _;return r.disabled||(_=g!==void 0?g:-1),D.jsx(Qa.Provider,{value:S,children:D.jsx(mF,{ref:A,role:h,tabIndex:_,component:s,focusVisibleClassName:we(R.focusVisible,p),className:we(R.root,v),...x,ownerState:w,classes:R})})});function yF(e){return Be("MuiNativeSelect",e)}const mS=Ne("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),vF=e=>{const{classes:t,variant:n,disabled:r,multiple:a,open:s,error:c}=e,f={select:["select",n,r&&"disabled",a&&"multiple",c&&"error"],icon:["icon",`icon${pe(n)}`,s&&"iconOpen",r&&"disabled"]};return Ie(f,yF,t)},uM=fe("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${mS.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.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}}}]})),bF=fe(uM,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Fn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${mS.multiple}`]:t.multiple}]}})({}),fM=fe("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${mS.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),SF=fe(fM,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${pe(n.variant)}`],n.open&&t.iconOpen]}})({}),xF=E.forwardRef(function(t,n){const{className:r,disabled:a,error:s,IconComponent:c,inputRef:f,variant:d="standard",...p}=t,h={...t,disabled:a,variant:d,error:s},g=vF(h);return D.jsxs(E.Fragment,{children:[D.jsx(bF,{ownerState:h,className:we(g.select,r),disabled:a,ref:f||n,...p}),t.multiple?null:D.jsx(SF,{as:c,ownerState:h,className:g.icon})]})});var SA;const TF=fe("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Fn})({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%"}),EF=fe("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Fn})($e(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.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:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function wF(e){const{children:t,classes:n,className:r,label:a,notched:s,...c}=e,f=a!=null&&a!=="",d={...e,notched:s,withLabel:f};return D.jsx(TF,{"aria-hidden":!0,className:r,ownerState:d,...c,children:D.jsx(EF,{ownerState:d,children:f?D.jsx("span",{children:a}):SA||(SA=D.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const CF=e=>{const{classes:t}=e,r=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},L4,t);return{...t,...r}},AF=fe(Hh,{shouldForwardProp:e=>Fn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Fh})($e(({theme:e})=>{const t=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 .${di.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${di.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${di.focused} .${di.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(rn()).map(([n])=>({props:{color:n},style:{[`&.${di.focused} .${di.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${di.error} .${di.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${di.disabled} .${di.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),OF=fe(wF,{name:"MuiOutlinedInput",slot:"NotchedOutline"})($e(({theme:e})=>{const t=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):t}})),RF=fe(qh,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Vh})($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:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),gS=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:s=!1,inputComponent:c="input",label:f,multiline:d=!1,notched:p,slots:h={},slotProps:g={},type:v="text",...x}=r,b=CF(r),S=ri(),T=fa({props:r,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w={...r,color:T.color||"primary",disabled:T.disabled,error:T.error,focused:T.focused,formControl:S,fullWidth:s,hiddenLabel:T.hiddenLabel,multiline:d,size:T.size,type:v},R=h.root??a.Root??AF,A=h.input??a.Input??RF,[_,O]=Ze("notchedOutline",{elementType:OF,className:b.notchedOutline,shouldForwardComponentProp:!0,ownerState:w,externalForwardedProps:{slots:h,slotProps:g},additionalProps:{label:f!=null&&f!==""&&T.required?D.jsxs(E.Fragment,{children:[f," ","*"]}):f}});return D.jsx(fS,{slots:{root:R,input:A},slotProps:g,renderSuffix:M=>D.jsx(_,{...O,notched:typeof p<"u"?p:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:s,inputComponent:c,multiline:d,ref:n,type:v,...x,classes:{...b,notchedOutline:null}})});gS.muiName="Input";const _F=bo(D.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),MF=bo(D.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"})),DF=fe("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Fn})({position:"relative",display:"flex"}),PF=fe(_F,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),kF=fe(MF,{name:"MuiRadioButtonIcon"})($e(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function dM(e){const{checked:t=!1,classes:n={},fontSize:r}=e,a={...e,checked:t};return D.jsxs(DF,{className:n.root,ownerState:a,children:[D.jsx(PF,{fontSize:r,className:n.background,ownerState:a}),D.jsx(kF,{fontSize:r,className:n.dot,ownerState:a})]})}const pM=E.createContext(void 0);function NF(){return E.useContext(pM)}function LF(e){return Be("MuiRadio",e)}const xA=Ne("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),$F=e=>{const{classes:t,color:n,size:r}=e,a={root:["root",`color${pe(n)}`,r!=="medium"&&`size${pe(r)}`]};return{...t,...Ie(a,LF,t)}},BF=fe(y6,{shouldForwardProp:e=>Fn(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${pe(n.size)}`],t[`color${pe(n.color)}`]]}})($e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${xA.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(rn()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(rn()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${xA.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function IF(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const jF=D.jsx(dM,{checked:!0}),zF=D.jsx(dM,{}),UF=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:s=jF,color:c="primary",icon:f=zF,name:d,onChange:p,size:h="medium",className:g,disabled:v,disableRipple:x=!1,slots:b={},slotProps:S={},inputProps:T,...w}=r,R=ri();let A=v;R&&typeof A>"u"&&(A=R.disabled),A??=!1;const _={...r,disabled:A,disableRipple:x,color:c,size:h},O=$F(_),M=NF();let L=a;const B=rv(p,M&&M.onChange);let z=d;M&&(typeof L>"u"&&(L=IF(M.value,r.value)),typeof z>"u"&&(z=M.name));const V=S.input??T,[H,P]=Ze("root",{ref:n,elementType:BF,className:we(O.root,g),shouldForwardComponentProp:!0,externalForwardedProps:{slots:b,slotProps:S,...w},getSlotProps:K=>({...K,onChange:(U,...j)=>{K.onChange?.(U,...j),B(U,...j)}}),ownerState:_,additionalProps:{type:"radio",icon:E.cloneElement(f,{fontSize:f.props.fontSize??h}),checkedIcon:E.cloneElement(s,{fontSize:s.props.fontSize??h}),disabled:A,name:z,checked:L,slots:b,slotProps:{input:typeof V=="function"?V(_):V}}});return D.jsx(H,{...P,classes:O})});function FF(e){return Be("MuiRadioGroup",e)}Ne("MuiRadioGroup",["root","row","error"]);const VF=e=>{const{classes:t,row:n,error:r}=e;return Ie({root:["root",n&&"row",r&&"error"]},FF,t)},HF=E.forwardRef(function(t,n){const{actions:r,children:a,className:s,defaultValue:c,name:f,onChange:d,value:p,...h}=t,g=E.useRef(null),v=VF(t),[x,b]=Nu({controlled:p,default:c,name:"RadioGroup"});E.useImperativeHandle(r,()=>({focus:()=>{let R=g.current.querySelector("input:not(:disabled):checked");R||(R=g.current.querySelector("input:not(:disabled)")),R&&R.focus()}}),[]);const S=on(n,g),T=ms(f),w=E.useMemo(()=>({name:T,onChange(R){b(R.target.value),d&&d(R,R.target.value)},value:x}),[T,d,b,x]);return D.jsx(pM.Provider,{value:w,children:D.jsx(lU,{role:"radiogroup",ref:S,className:we(v.root,s),...h,children:a})})});function hM(e){return Be("MuiSelect",e)}const Qc=Ne("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var TA;const qF=fe(uM,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Qc.select}`]:t.select},{[`&.${Qc.select}`]:t[n.variant]},{[`&.${Qc.error}`]:t.error},{[`&.${Qc.multiple}`]:t.multiple}]}})({[`&.${Qc.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),GF=fe(fM,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${pe(n.variant)}`],n.open&&t.iconOpen]}})({}),YF=fe("input",{shouldForwardProp:e=>R2(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function EA(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function WF(e){return e==null||typeof e=="string"&&!e.trim()}const KF=e=>{const{classes:t,variant:n,disabled:r,multiple:a,open:s,error:c}=e,f={select:["select",n,r&&"disabled",a&&"multiple",c&&"error"],icon:["icon",`icon${pe(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ie(f,hM,t)},XF=E.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":a,autoFocus:s,autoWidth:c,children:f,className:d,defaultOpen:p,defaultValue:h,disabled:g,displayEmpty:v,error:x=!1,IconComponent:b,inputRef:S,labelId:T,MenuProps:w={},multiple:R,name:A,onBlur:_,onChange:O,onClose:M,onFocus:L,onOpen:B,open:z,readOnly:V,renderValue:H,required:P,SelectDisplayProps:K={},tabIndex:U,type:j,value:k,variant:I="standard",...q}=t,[X,ie]=Nu({controlled:k,default:h,name:"Select"}),[$,W]=Nu({controlled:z,default:p,name:"Select"}),te=E.useRef(null),oe=E.useRef(null),[le,he]=E.useState(null),{current:ge}=E.useRef(z!=null),[Me,ve]=E.useState(),ye=on(n,S),Ae=E.useCallback(Oe=>{oe.current=Oe,Oe&&he(Oe)},[]),_e=le?.parentNode;E.useImperativeHandle(ye,()=>({focus:()=>{oe.current.focus()},node:te.current,value:X}),[X]),E.useEffect(()=>{p&&$&&le&&!ge&&(ve(c?null:_e.clientWidth),oe.current.focus())},[le,c]),E.useEffect(()=>{s&&oe.current.focus()},[s]),E.useEffect(()=>{if(!T)return;const Oe=Ln(oe.current).getElementById(T);if(Oe){const He=()=>{getSelection().isCollapsed&&oe.current.focus()};return Oe.addEventListener("click",He),()=>{Oe.removeEventListener("click",He)}}},[T]);const je=(Oe,He)=>{Oe?B&&B(He):M&&M(He),ge||(ve(c?null:_e.clientWidth),W(Oe))},xe=Oe=>{Oe.button===0&&(Oe.preventDefault(),oe.current.focus(),je(!0,Oe))},qe=Oe=>{je(!1,Oe)},Ot=E.Children.toArray(f),mt=Oe=>{const He=Ot.find(Qt=>Qt.props.value===Oe.target.value);He!==void 0&&(ie(He.props.value),O&&O(Oe,He))},lt=Oe=>He=>{let Qt;if(He.currentTarget.hasAttribute("tabindex")){if(R){Qt=Array.isArray(X)?X.slice():[];const ir=X.indexOf(Oe.props.value);ir===-1?Qt.push(Oe.props.value):Qt.splice(ir,1)}else Qt=Oe.props.value;if(Oe.props.onClick&&Oe.props.onClick(He),X!==Qt&&(ie(Qt),O)){const ir=He.nativeEvent||He,Es=new ir.constructor(ir.type,ir);Object.defineProperty(Es,"target",{writable:!0,value:{value:Qt,name:A}}),O(Es,Oe)}R||je(!1,He)}},nt=Oe=>{V||[" ","ArrowUp","ArrowDown","Enter"].includes(Oe.key)&&(Oe.preventDefault(),je(!0,Oe))},Qe=le!==null&&$,Je=Oe=>{!Qe&&_&&(Object.defineProperty(Oe,"target",{writable:!0,value:{value:X,name:A}}),_(Oe))};delete q["aria-invalid"];let G,me;const de=[];let be=!1;(Zp({value:X})||v)&&(H?G=H(X):be=!0);const Te=Ot.map(Oe=>{if(!E.isValidElement(Oe))return null;let He;if(R){if(!Array.isArray(X))throw new Error(co(2));He=X.some(Qt=>EA(Qt,Oe.props.value)),He&&be&&de.push(Oe.props.children)}else He=EA(X,Oe.props.value),He&&be&&(me=Oe.props.children);return E.cloneElement(Oe,{"aria-selected":He?"true":"false",onClick:lt(Oe),onKeyUp:Qt=>{Qt.key===" "&&Qt.preventDefault(),Oe.props.onKeyUp&&Oe.props.onKeyUp(Qt)},role:"option",selected:He,value:void 0,"data-value":Oe.props.value})});be&&(R?de.length===0?G=null:G=de.reduce((Oe,He,Qt)=>(Oe.push(He),Qt<de.length-1&&Oe.push(", "),Oe),[]):G=me);let Se=Me;!c&&ge&&le&&(Se=_e.clientWidth);let ze;typeof U<"u"?ze=U:ze=g?null:0;const ot=K.id||(A?`mui-component-select-${A}`:void 0),$t={...t,variant:I,value:X,open:Qe,error:x},Ue=KF($t),Mn={...w.PaperProps,...typeof w.slotProps?.paper=="function"?w.slotProps.paper($t):w.slotProps?.paper},Zt={...w.MenuListProps,...typeof w.slotProps?.list=="function"?w.slotProps.list($t):w.slotProps?.list},Bt=ms();return D.jsxs(E.Fragment,{children:[D.jsx(qF,{as:"div",ref:Ae,tabIndex:ze,role:"combobox","aria-controls":Qe?Bt:void 0,"aria-disabled":g?"true":void 0,"aria-expanded":Qe?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[T,ot].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":P?"true":void 0,"aria-invalid":x?"true":void 0,onKeyDown:nt,onMouseDown:g||V?null:xe,onBlur:Je,onFocus:L,...K,ownerState:$t,className:we(K.className,Ue.select,d),id:ot,children:WF(G)?TA||(TA=D.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):G}),D.jsx(YF,{"aria-invalid":x,value:Array.isArray(X)?X.join(","):X,name:A,ref:te,"aria-hidden":!0,onChange:mt,tabIndex:-1,disabled:g,className:Ue.nativeInput,autoFocus:s,required:P,...q,ownerState:$t}),D.jsx(GF,{as:b,className:Ue.icon,ownerState:$t}),D.jsx(cM,{id:`menu-${A||""}`,anchorEl:_e,open:Qe,onClose:qe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...w,slotProps:{...w.slotProps,list:{"aria-labelledby":T,role:"listbox","aria-multiselectable":R?"true":void 0,disableListWrap:!0,id:Bt,...Zt},paper:{...Mn,style:{minWidth:Se,...Mn!=null?Mn.style:null}}},children:Te})]})}),ZF=e=>{const{classes:t}=e,r=Ie({root:["root"]},hM,t);return{...t,...r}},yS={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Fn(e)&&e!=="variant"},QF=fe(pS,yS)(""),JF=fe(gS,yS)(""),eV=fe(dS,yS)(""),mM=E.forwardRef(function(t,n){const r=Ve({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:s,classes:c={},className:f,defaultOpen:d=!1,displayEmpty:p=!1,IconComponent:h=B4,id:g,input:v,inputProps:x,label:b,labelId:S,MenuProps:T,multiple:w=!1,native:R=!1,onClose:A,onOpen:_,open:O,renderValue:M,SelectDisplayProps:L,variant:B="outlined",...z}=r,V=R?xF:XF,H=ri(),P=fa({props:r,muiFormControl:H,states:["variant","error"]}),K=P.variant||B,U={...r,variant:K,classes:c},j=ZF(U),{root:k,...I}=j,q=v||{standard:D.jsx(QF,{ownerState:U}),outlined:D.jsx(JF,{label:b,ownerState:U}),filled:D.jsx(eV,{ownerState:U})}[K],X=on(n,gs(q));return D.jsx(E.Fragment,{children:E.cloneElement(q,{inputComponent:V,inputProps:{children:s,error:P.error,IconComponent:h,variant:K,type:void 0,multiple:w,...R?{id:g}:{autoWidth:a,defaultOpen:d,displayEmpty:p,labelId:S,MenuProps:T,onClose:A,onOpen:_,open:O,renderValue:M,SelectDisplayProps:{id:g,...L}},...x,classes:x?Sn(I,x.classes):I,...v?v.props.inputProps:{}},...(w&&R||p)&&K==="outlined"?{notched:!0}:{},ref:X,className:we(q.props.className,f,j.root),...!v&&{variant:K},...z})})});mM.muiName="Select";function tV(e){return Be("MuiSkeleton",e)}Ne("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const nV=e=>{const{classes:t,variant:n,animation:r,hasChildren:a,width:s,height:c}=e;return Ie({root:["root",n,r,a&&"withChildren",a&&!s&&"fitContent",a&&!c&&"heightAuto"]},tV,t)},Sv=_i`
252
+ 0% {
253
+ opacity: 1;
254
+ }
255
+
256
+ 50% {
257
+ opacity: 0.4;
258
+ }
259
+
260
+ 100% {
261
+ opacity: 1;
262
+ }
263
+ `,xv=_i`
264
+ 0% {
265
+ transform: translateX(-100%);
266
+ }
267
+
268
+ 50% {
269
+ /* +0.5s of delay between each loop */
270
+ transform: translateX(100%);
271
+ }
272
+
273
+ 100% {
274
+ transform: translateX(100%);
275
+ }
276
+ `,rV=typeof Sv!="string"?ca`
277
+ animation: ${Sv} 2s ease-in-out 0.5s infinite;
278
+ `:null,iV=typeof xv!="string"?ca`
279
+ &::after {
280
+ animation: ${xv} 2s linear 0.5s infinite;
281
+ }
282
+ `:null,oV=fe("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})($e(({theme:e})=>{const t=Z5(e.shape.borderRadius)||"px",n=Q5(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:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:r})=>r.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:r})=>r.hasChildren&&!r.width,style:{maxWidth:"fit-content"}},{props:({ownerState:r})=>r.hasChildren&&!r.height,style:{height:"auto"}},{props:{animation:"pulse"},style:rV||{animation:`${Sv} 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(
283
+ 90deg,
284
+ transparent,
285
+ ${(e.vars||e).palette.action.hover},
286
+ transparent
287
+ )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:iV||{"&::after":{animation:`${xv} 2s linear 0.5s infinite`}}}]}})),aV=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiSkeleton"}),{animation:a="pulse",className:s,component:c="span",height:f,style:d,variant:p="text",width:h,...g}=r,v={...r,animation:a,component:c,variant:p,hasChildren:!!g.children},x=nV(v);return D.jsx(oV,{as:c,ref:n,className:we(x.root,s),ownerState:v,...g,style:{width:h,height:f,...d}})});function sV(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:a,resumeHideDuration:s}=e,c=qa();E.useEffect(()=>{if(!a)return;function w(R){R.defaultPrevented||R.key==="Escape"&&r?.(R,"escapeKeyDown")}return document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}},[a,r]);const f=zr((w,R)=>{r?.(w,R)}),d=zr(w=>{!r||w==null||c.start(w,()=>{f(null,"timeout")})});E.useEffect(()=>(a&&d(t),c.clear),[a,t,d,c]);const p=w=>{r?.(w,"clickaway")},h=c.clear,g=E.useCallback(()=>{t!=null&&d(s??t*.5)},[t,s,d]),v=w=>R=>{const A=w.onBlur;A?.(R),g()},x=w=>R=>{const A=w.onFocus;A?.(R),h()},b=w=>R=>{const A=w.onMouseEnter;A?.(R),h()},S=w=>R=>{const A=w.onMouseLeave;A?.(R),g()};return E.useEffect(()=>{if(!n&&a)return window.addEventListener("focus",g),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",h)}},[n,a,g,h]),{getRootProps:(w={})=>{const R={...Gp(e),...Gp(w)};return{role:"presentation",...w,...R,onBlur:v(R),onFocus:x(R),onMouseEnter:b(R),onMouseLeave:S(R)}},onClickAway:p}}function lV(e){return Be("MuiSnackbarContent",e)}Ne("MuiSnackbarContent",["root","message","action"]);const cV=e=>{const{classes:t}=e;return Ie({root:["root"],action:["action"],message:["message"]},lV,t)},uV=fe(nS,{name:"MuiSnackbarContent",slot:"Root"})($e(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(J0(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:J0(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),fV=fe("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),dV=fe("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),pV=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiSnackbarContent"}),{action:a,className:s,message:c,role:f="alert",...d}=r,p=r,h=cV(p);return D.jsxs(uV,{role:f,elevation:6,className:we(h.root,s),ownerState:p,ref:n,...d,children:[D.jsx(fV,{className:h.message,ownerState:p,children:c}),a?D.jsx(dV,{className:h.action,ownerState:p,children:a}):null]})});function hV(e){return Be("MuiSnackbar",e)}Ne("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const mV=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${pe(n.vertical)}${pe(n.horizontal)}`]};return Ie(r,hV,t)},gV=fe("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${pe(n.anchorOrigin.vertical)}${pe(n.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:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),yV=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiSnackbar"}),a=Un(),s={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:c,anchorOrigin:{vertical:f,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:p=null,children:h,className:g,ClickAwayListenerProps:v,ContentProps:x,disableWindowBlurListener:b=!1,message:S,onBlur:T,onClose:w,onFocus:R,onMouseEnter:A,onMouseLeave:_,open:O,resumeHideDuration:M,slots:L={},slotProps:B={},TransitionComponent:z,transitionDuration:V=s,TransitionProps:{onEnter:H,onExited:P,...K}={},...U}=r,j={...r,anchorOrigin:{vertical:f,horizontal:d},autoHideDuration:p,disableWindowBlurListener:b,TransitionComponent:z,transitionDuration:V},k=mV(j),{getRootProps:I,onClickAway:q}=sV({...j}),[X,ie]=E.useState(!0),$=je=>{ie(!0),P&&P(je)},W=(je,xe)=>{ie(!1),H&&H(je,xe)},te={slots:{transition:z,...L},slotProps:{content:x,clickAwayListener:v,transition:K,...B}},[oe,le]=Ze("root",{ref:n,className:[k.root,g],elementType:gV,getSlotProps:I,externalForwardedProps:{...te,...U},ownerState:j}),[he,{ownerState:ge,...Me}]=Ze("clickAwayListener",{elementType:J2,externalForwardedProps:te,getSlotProps:je=>({onClickAway:(...xe)=>{const qe=xe[0];je.onClickAway?.(...xe),!qe?.defaultMuiPrevented&&q(...xe)}}),ownerState:j}),[ve,ye]=Ze("content",{elementType:pV,shouldForwardComponentProp:!0,externalForwardedProps:te,additionalProps:{message:S,action:c},ownerState:j}),[Ae,_e]=Ze("transition",{elementType:Bu,externalForwardedProps:te,getSlotProps:je=>({onEnter:(...xe)=>{je.onEnter?.(...xe),W(...xe)},onExited:(...xe)=>{je.onExited?.(...xe),$(...xe)}}),additionalProps:{appear:!0,in:O,timeout:V,direction:f==="top"?"down":"up"},ownerState:j});return!O&&X?null:D.jsx(he,{...Me,...L.clickAwayListener&&{ownerState:ge},children:D.jsx(oe,{...le,children:D.jsx(Ae,{..._e,children:h||D.jsx(ve,{...ye})})})})});function vV(e){return Be("MuiTooltip",e)}const Ft=Ne("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function bV(e){return Math.round(e*1e5)/1e5}const SV=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:a,placement:s}=e,c={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",a&&"touch",`tooltipPlacement${pe(s.split("-")[0])}`],arrow:["arrow"]};return Ie(c,vV,t)},xV=fe(X2,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})($e(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Ft.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ft.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ft.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Ft.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Ft.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Ft.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Ft.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Ft.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),TV=fe("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${pe(n.placement.split("-")[0])}`]]}})($e(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Ft.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Ft.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Ft.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Ft.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${bV(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Ft.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Ft.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Ft.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Ft.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Ft.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Ft.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Ft.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Ft.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Ft.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Ft.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),EV=fe("span",{name:"MuiTooltip",slot:"Arrow"})($e(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Fd=!1;const wA=new Ih;let Jc={x:0,y:0};function Vd(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const gM=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiTooltip"}),{arrow:a=!1,children:s,classes:c,components:f={},componentsProps:d={},describeChild:p=!1,disableFocusListener:h=!1,disableHoverListener:g=!1,disableInteractive:v=!1,disableTouchListener:x=!1,enterDelay:b=100,enterNextDelay:S=0,enterTouchDelay:T=700,followCursor:w=!1,id:R,leaveDelay:A=0,leaveTouchDelay:_=1500,onClose:O,onOpen:M,open:L,placement:B="bottom",PopperComponent:z,PopperProps:V={},slotProps:H={},slots:P={},title:K,TransitionComponent:U,TransitionProps:j,...k}=r,I=E.isValidElement(s)?s:D.jsx("span",{children:s}),q=Un(),X=$h(),[ie,$]=E.useState(),[W,te]=E.useState(null),oe=E.useRef(!1),le=v||w,he=qa(),ge=qa(),Me=qa(),ve=qa(),[ye,Ae]=Nu({controlled:L,default:!1,name:"Tooltip",state:"open"});let _e=ye;const je=ms(R),xe=E.useRef(),qe=zr(()=>{xe.current!==void 0&&(document.body.style.WebkitUserSelect=xe.current,xe.current=void 0),ve.clear()});E.useEffect(()=>qe,[qe]);const Ot=Ge=>{wA.clear(),Fd=!0,Ae(!0),M&&!_e&&M(Ge)},mt=zr(Ge=>{wA.start(800+A,()=>{Fd=!1}),Ae(!1),O&&_e&&O(Ge),he.start(q.transitions.duration.shortest,()=>{oe.current=!1})}),lt=Ge=>{oe.current&&Ge.type!=="touchstart"||(ie&&ie.removeAttribute("title"),ge.clear(),Me.clear(),b||Fd&&S?ge.start(Fd?S:b,()=>{Ot(Ge)}):Ot(Ge))},nt=Ge=>{ge.clear(),Me.start(A,()=>{mt(Ge)})},[,Qe]=E.useState(!1),Je=Ge=>{Yp(Ge.target)||(Qe(!1),nt(Ge))},G=Ge=>{ie||$(Ge.currentTarget),Yp(Ge.target)&&(Qe(!0),lt(Ge))},me=Ge=>{oe.current=!0;const xr=I.props;xr.onTouchStart&&xr.onTouchStart(Ge)},de=Ge=>{me(Ge),Me.clear(),he.clear(),qe(),xe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ve.start(T,()=>{document.body.style.WebkitUserSelect=xe.current,lt(Ge)})},be=Ge=>{I.props.onTouchEnd&&I.props.onTouchEnd(Ge),qe(),Me.start(_,()=>{mt(Ge)})};E.useEffect(()=>{if(!_e)return;function Ge(xr){xr.key==="Escape"&&mt(xr)}return document.addEventListener("keydown",Ge),()=>{document.removeEventListener("keydown",Ge)}},[mt,_e]);const Te=on(gs(I),$,n);!K&&K!==0&&(_e=!1);const Se=E.useRef(),ze=Ge=>{const xr=I.props;xr.onMouseMove&&xr.onMouseMove(Ge),Jc={x:Ge.clientX,y:Ge.clientY},Se.current&&Se.current.update()},ot={},$t=typeof K=="string";p?(ot.title=!_e&&$t&&!g?K:null,ot["aria-describedby"]=_e?je:null):(ot["aria-label"]=$t?K:null,ot["aria-labelledby"]=_e&&!$t?je:null);const Ue={...ot,...k,...I.props,className:we(k.className,I.props.className),onTouchStart:me,ref:Te,...w?{onMouseMove:ze}:{}},Mn={};x||(Ue.onTouchStart=de,Ue.onTouchEnd=be),g||(Ue.onMouseOver=Vd(lt,Ue.onMouseOver),Ue.onMouseLeave=Vd(nt,Ue.onMouseLeave),le||(Mn.onMouseOver=lt,Mn.onMouseLeave=nt)),h||(Ue.onFocus=Vd(G,Ue.onFocus),Ue.onBlur=Vd(Je,Ue.onBlur),le||(Mn.onFocus=G,Mn.onBlur=Je));const Zt={...r,isRtl:X,arrow:a,disableInteractive:le,placement:B,PopperComponentProp:z,touch:oe.current},Bt=typeof H.popper=="function"?H.popper(Zt):H.popper,Oe=E.useMemo(()=>{let Ge=[{name:"arrow",enabled:!!W,options:{element:W,padding:4}}];return V.popperOptions?.modifiers&&(Ge=Ge.concat(V.popperOptions.modifiers)),Bt?.popperOptions?.modifiers&&(Ge=Ge.concat(Bt.popperOptions.modifiers)),{...V.popperOptions,...Bt?.popperOptions,modifiers:Ge}},[W,V.popperOptions,Bt?.popperOptions]),He=SV(Zt),Qt=typeof H.transition=="function"?H.transition(Zt):H.transition,ir={slots:{popper:f.Popper,transition:f.Transition??U,tooltip:f.Tooltip,arrow:f.Arrow,...P},slotProps:{arrow:H.arrow??d.arrow,popper:{...V,...Bt??d.popper},tooltip:H.tooltip??d.tooltip,transition:{...j,...Qt??d.transition}}},[Es,ws]=Ze("popper",{elementType:xV,externalForwardedProps:ir,ownerState:Zt,className:we(He.popper,V?.className)}),[Cs,As]=Ze("transition",{elementType:Bu,externalForwardedProps:ir,ownerState:Zt}),[ki,Os]=Ze("tooltip",{elementType:TV,className:He.tooltip,externalForwardedProps:ir,ownerState:Zt}),[ha,ym]=Ze("arrow",{elementType:EV,className:He.arrow,externalForwardedProps:ir,ownerState:Zt,ref:te});return D.jsxs(E.Fragment,{children:[E.cloneElement(I,Ue),D.jsx(Es,{as:z??X2,placement:B,anchorEl:w?{getBoundingClientRect:()=>({top:Jc.y,left:Jc.x,right:Jc.x,bottom:Jc.y,width:0,height:0})}:ie,popperRef:Se,open:ie?_e:!1,id:je,transition:!0,...Mn,...ws,popperOptions:Oe,children:({TransitionProps:Ge})=>D.jsx(Cs,{timeout:q.transitions.duration.shorter,...Ge,...As,children:D.jsxs(ki,{...Os,children:[K,a?D.jsx(ha,{...ym}):null]})})})]})}),ht=S2({createStyledComponent:fe("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Ve({props:e,name:"MuiStack"})}),wV=E.createContext(),CV=E.createContext();function AV(e){return Be("MuiTableCell",e)}const Tv=Ne("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),OV=e=>{const{classes:t,variant:n,align:r,padding:a,size:s,stickyHeader:c}=e,f={root:["root",n,c&&"stickyHeader",r!=="inherit"&&`align${pe(r)}`,a!=="normal"&&`padding${pe(a)}`,`size${pe(s)}`]};return Ie(f,AV,t)},RV=fe("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${pe(n.size)}`],n.padding!=="normal"&&t[`padding${pe(n.padding)}`],n.align!=="inherit"&&t[`align${pe(n.align)}`],n.stickyHeader&&t.stickyHeader]}})($e(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
288
+ ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${Tv.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),_V=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiTableCell"}),{align:a="inherit",className:s,component:c,padding:f,scope:d,size:p,sortDirection:h,variant:g,...v}=r,x=E.useContext(wV),b=E.useContext(CV),S=b&&b.variant==="head";let T;c?T=c:T=S?"th":"td";let w=d;T==="td"?w=void 0:!w&&S&&(w="col");const R=g||b&&b.variant,A={...r,align:a,component:T,padding:f||(x&&x.padding?x.padding:"normal"),size:p||(x&&x.size?x.size:"medium"),sortDirection:h,stickyHeader:R==="head"&&x&&x.stickyHeader,variant:R},_=OV(A);let O=null;return h&&(O=h==="asc"?"ascending":"descending"),D.jsx(RV,{as:T,ref:n,className:we(_.root,s),"aria-sort":O,scope:w,ownerState:A,...v})});function MV(e){return Be("MuiTextField",e)}Ne("MuiTextField",["root"]);const DV={standard:pS,filled:dS,outlined:gS},PV=e=>{const{classes:t}=e;return Ie({root:["root"]},MV,t)},kV=fe(nM,{name:"MuiTextField",slot:"Root"})({}),NV=E.forwardRef(function(t,n){const r=Ve({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:s=!1,children:c,className:f,color:d="primary",defaultValue:p,disabled:h=!1,error:g=!1,FormHelperTextProps:v,fullWidth:x=!1,helperText:b,id:S,InputLabelProps:T,inputProps:w,InputProps:R,inputRef:A,label:_,maxRows:O,minRows:M,multiline:L=!1,name:B,onBlur:z,onChange:V,onFocus:H,placeholder:P,required:K=!1,rows:U,select:j=!1,SelectProps:k,slots:I={},slotProps:q={},type:X,value:ie,variant:$="outlined",...W}=r,te={...r,autoFocus:s,color:d,disabled:h,error:g,fullWidth:x,multiline:L,required:K,select:j,variant:$},oe=PV(te),le=ms(S),he=b&&le?`${le}-helper-text`:void 0,ge=_&&le?`${le}-label`:void 0,Me=DV[$],ve={slots:I,slotProps:{input:R,inputLabel:T,htmlInput:w,formHelperText:v,select:k,...q}},ye={},Ae=ve.slotProps.inputLabel;$==="outlined"&&(Ae&&typeof Ae.shrink<"u"&&(ye.notched=Ae.shrink),ye.label=_),j&&((!k||!k.native)&&(ye.id=void 0),ye["aria-describedby"]=void 0);const[_e,je]=Ze("root",{elementType:kV,shouldForwardComponentProp:!0,externalForwardedProps:{...ve,...W},ownerState:te,className:we(oe.root,f),ref:n,additionalProps:{disabled:h,error:g,fullWidth:x,required:K,color:d,variant:$}}),[xe,qe]=Ze("input",{elementType:Me,externalForwardedProps:ve,additionalProps:ye,ownerState:te}),[Ot,mt]=Ze("inputLabel",{elementType:iM,externalForwardedProps:ve,ownerState:te}),[lt,nt]=Ze("htmlInput",{elementType:"input",externalForwardedProps:ve,ownerState:te}),[Qe,Je]=Ze("formHelperText",{elementType:dU,externalForwardedProps:ve,ownerState:te}),[G,me]=Ze("select",{elementType:mM,externalForwardedProps:ve,ownerState:te}),de=D.jsx(xe,{"aria-describedby":he,autoComplete:a,autoFocus:s,defaultValue:p,fullWidth:x,multiline:L,name:B,rows:U,maxRows:O,minRows:M,type:X,value:ie,id:le,inputRef:A,onBlur:z,onChange:V,onFocus:H,placeholder:P,inputProps:nt,slots:{input:I.htmlInput?lt:void 0},...qe});return D.jsxs(_e,{...je,children:[_!=null&&_!==""&&D.jsx(Ot,{htmlFor:le,id:ge,...mt,children:_}),j?D.jsx(G,{"aria-describedby":he,id:le,labelId:ge,value:ie,input:de,...me,children:c}):de,b&&D.jsx(Qe,{id:he,...Je,children:b})]})}),LV=()=>{};var CA={};/**
289
+ * @license
290
+ * Copyright 2017 Google LLC
291
+ *
292
+ * Licensed under the Apache License, Version 2.0 (the "License");
293
+ * you may not use this file except in compliance with the License.
294
+ * You may obtain a copy of the License at
295
+ *
296
+ * http://www.apache.org/licenses/LICENSE-2.0
297
+ *
298
+ * Unless required by applicable law or agreed to in writing, software
299
+ * distributed under the License is distributed on an "AS IS" BASIS,
300
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
301
+ * See the License for the specific language governing permissions and
302
+ * limitations under the License.
303
+ */const yM=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let a=e.charCodeAt(r);a<128?t[n++]=a:a<2048?(t[n++]=a>>6|192,t[n++]=a&63|128):(a&64512)===55296&&r+1<e.length&&(e.charCodeAt(r+1)&64512)===56320?(a=65536+((a&1023)<<10)+(e.charCodeAt(++r)&1023),t[n++]=a>>18|240,t[n++]=a>>12&63|128,t[n++]=a>>6&63|128,t[n++]=a&63|128):(t[n++]=a>>12|224,t[n++]=a>>6&63|128,t[n++]=a&63|128)}return t},$V=function(e){const t=[];let n=0,r=0;for(;n<e.length;){const a=e[n++];if(a<128)t[r++]=String.fromCharCode(a);else if(a>191&&a<224){const s=e[n++];t[r++]=String.fromCharCode((a&31)<<6|s&63)}else if(a>239&&a<365){const s=e[n++],c=e[n++],f=e[n++],d=((a&7)<<18|(s&63)<<12|(c&63)<<6|f&63)-65536;t[r++]=String.fromCharCode(55296+(d>>10)),t[r++]=String.fromCharCode(56320+(d&1023))}else{const s=e[n++],c=e[n++];t[r++]=String.fromCharCode((a&15)<<12|(s&63)<<6|c&63)}}return t.join("")},vM={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let a=0;a<e.length;a+=3){const s=e[a],c=a+1<e.length,f=c?e[a+1]:0,d=a+2<e.length,p=d?e[a+2]:0,h=s>>2,g=(s&3)<<4|f>>4;let v=(f&15)<<2|p>>6,x=p&63;d||(x=64,c||(v=64)),r.push(n[h],n[g],n[v],n[x])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(yM(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):$V(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let a=0;a<e.length;){const s=n[e.charAt(a++)],f=a<e.length?n[e.charAt(a)]:0;++a;const p=a<e.length?n[e.charAt(a)]:64;++a;const g=a<e.length?n[e.charAt(a)]:64;if(++a,s==null||f==null||p==null||g==null)throw new BV;const v=s<<2|f>>4;if(r.push(v),p!==64){const x=f<<4&240|p>>2;if(r.push(x),g!==64){const b=p<<6&192|g;r.push(b)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class BV extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const IV=function(e){const t=yM(e);return vM.encodeByteArray(t,!0)},bM=function(e){return IV(e).replace(/\./g,"")},jV=function(e){try{return vM.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/**
304
+ * @license
305
+ * Copyright 2022 Google LLC
306
+ *
307
+ * Licensed under the Apache License, Version 2.0 (the "License");
308
+ * you may not use this file except in compliance with the License.
309
+ * You may obtain a copy of the License at
310
+ *
311
+ * http://www.apache.org/licenses/LICENSE-2.0
312
+ *
313
+ * Unless required by applicable law or agreed to in writing, software
314
+ * distributed under the License is distributed on an "AS IS" BASIS,
315
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
316
+ * See the License for the specific language governing permissions and
317
+ * limitations under the License.
318
+ */function zV(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/**
319
+ * @license
320
+ * Copyright 2022 Google LLC
321
+ *
322
+ * Licensed under the Apache License, Version 2.0 (the "License");
323
+ * you may not use this file except in compliance with the License.
324
+ * You may obtain a copy of the License at
325
+ *
326
+ * http://www.apache.org/licenses/LICENSE-2.0
327
+ *
328
+ * Unless required by applicable law or agreed to in writing, software
329
+ * distributed under the License is distributed on an "AS IS" BASIS,
330
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
331
+ * See the License for the specific language governing permissions and
332
+ * limitations under the License.
333
+ */const UV=()=>zV().__FIREBASE_DEFAULTS__,FV=()=>{if(typeof process>"u"||typeof CA>"u")return;const e=CA.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},VV=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&jV(e[1]);return t&&JSON.parse(t)},HV=()=>{try{return LV()||UV()||FV()||VV()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},SM=()=>HV()?.config;/**
334
+ * @license
335
+ * Copyright 2017 Google LLC
336
+ *
337
+ * Licensed under the Apache License, Version 2.0 (the "License");
338
+ * you may not use this file except in compliance with the License.
339
+ * You may obtain a copy of the License at
340
+ *
341
+ * http://www.apache.org/licenses/LICENSE-2.0
342
+ *
343
+ * Unless required by applicable law or agreed to in writing, software
344
+ * distributed under the License is distributed on an "AS IS" BASIS,
345
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
346
+ * See the License for the specific language governing permissions and
347
+ * limitations under the License.
348
+ */class qV{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,r))}}}function xM(){try{return typeof indexedDB=="object"}catch{return!1}}function TM(){return new Promise((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",a=self.indexedDB.open(r);a.onsuccess=()=>{a.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},a.onupgradeneeded=()=>{n=!1},a.onerror=()=>{t(a.error?.message||"")}}catch(n){t(n)}})}function GV(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/**
349
+ * @license
350
+ * Copyright 2017 Google LLC
351
+ *
352
+ * Licensed under the Apache License, Version 2.0 (the "License");
353
+ * you may not use this file except in compliance with the License.
354
+ * You may obtain a copy of the License at
355
+ *
356
+ * http://www.apache.org/licenses/LICENSE-2.0
357
+ *
358
+ * Unless required by applicable law or agreed to in writing, software
359
+ * distributed under the License is distributed on an "AS IS" BASIS,
360
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
361
+ * See the License for the specific language governing permissions and
362
+ * limitations under the License.
363
+ */const YV="FirebaseError";class Vl extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=YV,Object.setPrototypeOf(this,Vl.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Gh.prototype.create)}}class Gh{constructor(t,n,r){this.service=t,this.serviceName=n,this.errors=r}create(t,...n){const r=n[0]||{},a=`${this.service}/${t}`,s=this.errors[t],c=s?WV(s,r):"Error",f=`${this.serviceName}: ${c} (${a}).`;return new Vl(a,f,r)}}function WV(e,t){return e.replace(KV,(n,r)=>{const a=t[r];return a!=null?String(a):`<${r}?>`})}const KV=/\{\$([^}]+)}/g;function Ev(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const a of n){if(!r.includes(a))return!1;const s=e[a],c=t[a];if(AA(s)&&AA(c)){if(!Ev(s,c))return!1}else if(s!==c)return!1}for(const a of r)if(!n.includes(a))return!1;return!0}function AA(e){return e!==null&&typeof e=="object"}/**
364
+ * @license
365
+ * Copyright 2021 Google LLC
366
+ *
367
+ * Licensed under the Apache License, Version 2.0 (the "License");
368
+ * you may not use this file except in compliance with the License.
369
+ * You may obtain a copy of the License at
370
+ *
371
+ * http://www.apache.org/licenses/LICENSE-2.0
372
+ *
373
+ * Unless required by applicable law or agreed to in writing, software
374
+ * distributed under the License is distributed on an "AS IS" BASIS,
375
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
376
+ * See the License for the specific language governing permissions and
377
+ * limitations under the License.
378
+ */function EM(e){return e&&e._delegate?e._delegate:e}class ra{constructor(t,n,r){this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}/**
379
+ * @license
380
+ * Copyright 2019 Google LLC
381
+ *
382
+ * Licensed under the Apache License, Version 2.0 (the "License");
383
+ * you may not use this file except in compliance with the License.
384
+ * You may obtain a copy of the License at
385
+ *
386
+ * http://www.apache.org/licenses/LICENSE-2.0
387
+ *
388
+ * Unless required by applicable law or agreed to in writing, software
389
+ * distributed under the License is distributed on an "AS IS" BASIS,
390
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
391
+ * See the License for the specific language governing permissions and
392
+ * limitations under the License.
393
+ */const ja="[DEFAULT]";/**
394
+ * @license
395
+ * Copyright 2019 Google LLC
396
+ *
397
+ * Licensed under the Apache License, Version 2.0 (the "License");
398
+ * you may not use this file except in compliance with the License.
399
+ * You may obtain a copy of the License at
400
+ *
401
+ * http://www.apache.org/licenses/LICENSE-2.0
402
+ *
403
+ * Unless required by applicable law or agreed to in writing, software
404
+ * distributed under the License is distributed on an "AS IS" BASIS,
405
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
406
+ * See the License for the specific language governing permissions and
407
+ * limitations under the License.
408
+ */let XV=class{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const r=new qV;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const a=this.getOrInitializeService({instanceIdentifier:n});a&&r.resolve(a)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(t){const n=this.normalizeInstanceIdentifier(t?.identifier),r=t?.optional??!1;if(this.isInitialized(n)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:n})}catch(a){if(r)return null;throw a}else{if(r)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(QV(t))try{this.getOrInitializeService({instanceIdentifier:ja})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(n);try{const s=this.getOrInitializeService({instanceIdentifier:a});r.resolve(s)}catch{}}}}clearInstance(t=ja){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=ja){return this.instances.has(t)}getOptions(t=ja){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,r=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const a=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[s,c]of this.instancesDeferred.entries()){const f=this.normalizeInstanceIdentifier(s);r===f&&c.resolve(a)}return a}onInit(t,n){const r=this.normalizeInstanceIdentifier(n),a=this.onInitCallbacks.get(r)??new Set;a.add(t),this.onInitCallbacks.set(r,a);const s=this.instances.get(r);return s&&t(s,r),()=>{a.delete(t)}}invokeOnInitCallbacks(t,n){const r=this.onInitCallbacks.get(n);if(r)for(const a of r)try{a(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:ZV(t),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch{}return r||null}normalizeInstanceIdentifier(t=ja){return this.component?this.component.multipleInstances?t:ja:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}};function ZV(e){return e===ja?void 0:e}function QV(e){return e.instantiationMode==="EAGER"}/**
409
+ * @license
410
+ * Copyright 2019 Google LLC
411
+ *
412
+ * Licensed under the Apache License, Version 2.0 (the "License");
413
+ * you may not use this file except in compliance with the License.
414
+ * You may obtain a copy of the License at
415
+ *
416
+ * http://www.apache.org/licenses/LICENSE-2.0
417
+ *
418
+ * Unless required by applicable law or agreed to in writing, software
419
+ * distributed under the License is distributed on an "AS IS" BASIS,
420
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
421
+ * See the License for the specific language governing permissions and
422
+ * limitations under the License.
423
+ */class JV{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const n=new XV(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/**
424
+ * @license
425
+ * Copyright 2017 Google LLC
426
+ *
427
+ * Licensed under the Apache License, Version 2.0 (the "License");
428
+ * you may not use this file except in compliance with the License.
429
+ * You may obtain a copy of the License at
430
+ *
431
+ * http://www.apache.org/licenses/LICENSE-2.0
432
+ *
433
+ * Unless required by applicable law or agreed to in writing, software
434
+ * distributed under the License is distributed on an "AS IS" BASIS,
435
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
436
+ * See the License for the specific language governing permissions and
437
+ * limitations under the License.
438
+ */var Lt;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(Lt||(Lt={}));const e8={debug:Lt.DEBUG,verbose:Lt.VERBOSE,info:Lt.INFO,warn:Lt.WARN,error:Lt.ERROR,silent:Lt.SILENT},t8=Lt.INFO,n8={[Lt.DEBUG]:"log",[Lt.VERBOSE]:"log",[Lt.INFO]:"info",[Lt.WARN]:"warn",[Lt.ERROR]:"error"},r8=(e,t,...n)=>{if(t<e.logLevel)return;const r=new Date().toISOString(),a=n8[t];if(a)console[a](`[${r}] ${e.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class i8{constructor(t){this.name=t,this._logLevel=t8,this._logHandler=r8,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in Lt))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?e8[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,Lt.DEBUG,...t),this._logHandler(this,Lt.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,Lt.VERBOSE,...t),this._logHandler(this,Lt.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,Lt.INFO,...t),this._logHandler(this,Lt.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,Lt.WARN,...t),this._logHandler(this,Lt.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,Lt.ERROR,...t),this._logHandler(this,Lt.ERROR,...t)}}const o8=(e,t)=>t.some(n=>e instanceof n);let OA,RA;function a8(){return OA||(OA=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function s8(){return RA||(RA=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const wM=new WeakMap,wv=new WeakMap,CM=new WeakMap,Xy=new WeakMap,vS=new WeakMap;function l8(e){const t=new Promise((n,r)=>{const a=()=>{e.removeEventListener("success",s),e.removeEventListener("error",c)},s=()=>{n(oo(e.result)),a()},c=()=>{r(e.error),a()};e.addEventListener("success",s),e.addEventListener("error",c)});return t.then(n=>{n instanceof IDBCursor&&wM.set(n,e)}).catch(()=>{}),vS.set(t,e),t}function c8(e){if(wv.has(e))return;const t=new Promise((n,r)=>{const a=()=>{e.removeEventListener("complete",s),e.removeEventListener("error",c),e.removeEventListener("abort",c)},s=()=>{n(),a()},c=()=>{r(e.error||new DOMException("AbortError","AbortError")),a()};e.addEventListener("complete",s),e.addEventListener("error",c),e.addEventListener("abort",c)});wv.set(e,t)}let Cv={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return wv.get(e);if(t==="objectStoreNames")return e.objectStoreNames||CM.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return oo(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function u8(e){Cv=e(Cv)}function f8(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(Zy(this),t,...n);return CM.set(r,t.sort?t.sort():[t]),oo(r)}:s8().includes(e)?function(...t){return e.apply(Zy(this),t),oo(wM.get(this))}:function(...t){return oo(e.apply(Zy(this),t))}}function d8(e){return typeof e=="function"?f8(e):(e instanceof IDBTransaction&&c8(e),o8(e,a8())?new Proxy(e,Cv):e)}function oo(e){if(e instanceof IDBRequest)return l8(e);if(Xy.has(e))return Xy.get(e);const t=d8(e);return t!==e&&(Xy.set(e,t),vS.set(t,e)),t}const Zy=e=>vS.get(e);function Yh(e,t,{blocked:n,upgrade:r,blocking:a,terminated:s}={}){const c=indexedDB.open(e,t),f=oo(c);return r&&c.addEventListener("upgradeneeded",d=>{r(oo(c.result),d.oldVersion,d.newVersion,oo(c.transaction),d)}),n&&c.addEventListener("blocked",d=>n(d.oldVersion,d.newVersion,d)),f.then(d=>{s&&d.addEventListener("close",()=>s()),a&&d.addEventListener("versionchange",p=>a(p.oldVersion,p.newVersion,p))}).catch(()=>{}),f}function Qy(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",r=>t(r.oldVersion,r)),oo(n).then(()=>{})}const p8=["get","getKey","getAll","getAllKeys","count"],h8=["put","add","delete","clear"],Jy=new Map;function _A(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Jy.get(t))return Jy.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,a=h8.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(a||p8.includes(n)))return;const s=async function(c,...f){const d=this.transaction(c,a?"readwrite":"readonly");let p=d.store;return r&&(p=p.index(f.shift())),(await Promise.all([p[n](...f),a&&d.done]))[0]};return Jy.set(t,s),s}u8(e=>({...e,get:(t,n,r)=>_A(t,n)||e.get(t,n,r),has:(t,n)=>!!_A(t,n)||e.has(t,n)}));/**
439
+ * @license
440
+ * Copyright 2019 Google LLC
441
+ *
442
+ * Licensed under the Apache License, Version 2.0 (the "License");
443
+ * you may not use this file except in compliance with the License.
444
+ * You may obtain a copy of the License at
445
+ *
446
+ * http://www.apache.org/licenses/LICENSE-2.0
447
+ *
448
+ * Unless required by applicable law or agreed to in writing, software
449
+ * distributed under the License is distributed on an "AS IS" BASIS,
450
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
451
+ * See the License for the specific language governing permissions and
452
+ * limitations under the License.
453
+ */class m8{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(g8(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function g8(e){return e.getComponent()?.type==="VERSION"}const Av="@firebase/app",MA="0.14.3";/**
454
+ * @license
455
+ * Copyright 2019 Google LLC
456
+ *
457
+ * Licensed under the Apache License, Version 2.0 (the "License");
458
+ * you may not use this file except in compliance with the License.
459
+ * You may obtain a copy of the License at
460
+ *
461
+ * http://www.apache.org/licenses/LICENSE-2.0
462
+ *
463
+ * Unless required by applicable law or agreed to in writing, software
464
+ * distributed under the License is distributed on an "AS IS" BASIS,
465
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
466
+ * See the License for the specific language governing permissions and
467
+ * limitations under the License.
468
+ */const po=new i8("@firebase/app"),y8="@firebase/app-compat",v8="@firebase/analytics-compat",b8="@firebase/analytics",S8="@firebase/app-check-compat",x8="@firebase/app-check",T8="@firebase/auth",E8="@firebase/auth-compat",w8="@firebase/database",C8="@firebase/data-connect",A8="@firebase/database-compat",O8="@firebase/functions",R8="@firebase/functions-compat",_8="@firebase/installations",M8="@firebase/installations-compat",D8="@firebase/messaging",P8="@firebase/messaging-compat",k8="@firebase/performance",N8="@firebase/performance-compat",L8="@firebase/remote-config",$8="@firebase/remote-config-compat",B8="@firebase/storage",I8="@firebase/storage-compat",j8="@firebase/firestore",z8="@firebase/ai",U8="@firebase/firestore-compat",F8="firebase";/**
469
+ * @license
470
+ * Copyright 2019 Google LLC
471
+ *
472
+ * Licensed under the Apache License, Version 2.0 (the "License");
473
+ * you may not use this file except in compliance with the License.
474
+ * You may obtain a copy of the License at
475
+ *
476
+ * http://www.apache.org/licenses/LICENSE-2.0
477
+ *
478
+ * Unless required by applicable law or agreed to in writing, software
479
+ * distributed under the License is distributed on an "AS IS" BASIS,
480
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
481
+ * See the License for the specific language governing permissions and
482
+ * limitations under the License.
483
+ */const Ov="[DEFAULT]",V8={[Av]:"fire-core",[y8]:"fire-core-compat",[b8]:"fire-analytics",[v8]:"fire-analytics-compat",[x8]:"fire-app-check",[S8]:"fire-app-check-compat",[T8]:"fire-auth",[E8]:"fire-auth-compat",[w8]:"fire-rtdb",[C8]:"fire-data-connect",[A8]:"fire-rtdb-compat",[O8]:"fire-fn",[R8]:"fire-fn-compat",[_8]:"fire-iid",[M8]:"fire-iid-compat",[D8]:"fire-fcm",[P8]:"fire-fcm-compat",[k8]:"fire-perf",[N8]:"fire-perf-compat",[L8]:"fire-rc",[$8]:"fire-rc-compat",[B8]:"fire-gcs",[I8]:"fire-gcs-compat",[j8]:"fire-fst",[U8]:"fire-fst-compat",[z8]:"fire-vertex","fire-js":"fire-js",[F8]:"fire-js-all"};/**
484
+ * @license
485
+ * Copyright 2019 Google LLC
486
+ *
487
+ * Licensed under the Apache License, Version 2.0 (the "License");
488
+ * you may not use this file except in compliance with the License.
489
+ * You may obtain a copy of the License at
490
+ *
491
+ * http://www.apache.org/licenses/LICENSE-2.0
492
+ *
493
+ * Unless required by applicable law or agreed to in writing, software
494
+ * distributed under the License is distributed on an "AS IS" BASIS,
495
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
496
+ * See the License for the specific language governing permissions and
497
+ * limitations under the License.
498
+ */const Qp=new Map,H8=new Map,Rv=new Map;function DA(e,t){try{e.container.addComponent(t)}catch(n){po.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function ss(e){const t=e.name;if(Rv.has(t))return po.debug(`There were multiple attempts to register component ${t}.`),!1;Rv.set(t,e);for(const n of Qp.values())DA(n,e);for(const n of H8.values())DA(n,e);return!0}function bS(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}/**
499
+ * @license
500
+ * Copyright 2019 Google LLC
501
+ *
502
+ * Licensed under the Apache License, Version 2.0 (the "License");
503
+ * you may not use this file except in compliance with the License.
504
+ * You may obtain a copy of the License at
505
+ *
506
+ * http://www.apache.org/licenses/LICENSE-2.0
507
+ *
508
+ * Unless required by applicable law or agreed to in writing, software
509
+ * distributed under the License is distributed on an "AS IS" BASIS,
510
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
511
+ * See the License for the specific language governing permissions and
512
+ * limitations under the License.
513
+ */const q8={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},Xo=new Gh("app","Firebase",q8);/**
514
+ * @license
515
+ * Copyright 2019 Google LLC
516
+ *
517
+ * Licensed under the Apache License, Version 2.0 (the "License");
518
+ * you may not use this file except in compliance with the License.
519
+ * You may obtain a copy of the License at
520
+ *
521
+ * http://www.apache.org/licenses/LICENSE-2.0
522
+ *
523
+ * Unless required by applicable law or agreed to in writing, software
524
+ * distributed under the License is distributed on an "AS IS" BASIS,
525
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
526
+ * See the License for the specific language governing permissions and
527
+ * limitations under the License.
528
+ */class G8{constructor(t,n,r){this._isDeleted=!1,this._options={...t},this._config={...n},this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new ra("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw Xo.create("app-deleted",{appName:this._name})}}function AM(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r={name:Ov,automaticDataCollectionEnabled:!0,...t},a=r.name;if(typeof a!="string"||!a)throw Xo.create("bad-app-name",{appName:String(a)});if(n||(n=SM()),!n)throw Xo.create("no-options");const s=Qp.get(a);if(s){if(Ev(n,s.options)&&Ev(r,s.config))return s;throw Xo.create("duplicate-app",{appName:a})}const c=new JV(a);for(const d of Rv.values())c.addComponent(d);const f=new G8(n,r,c);return Qp.set(a,f),f}function Y8(e=Ov){const t=Qp.get(e);if(!t&&e===Ov&&SM())return AM();if(!t)throw Xo.create("no-app",{appName:e});return t}function Zo(e,t,n){let r=V8[e]??e;n&&(r+=`-${n}`);const a=r.match(/\s|\//),s=t.match(/\s|\//);if(a||s){const c=[`Unable to register library "${r}" with version "${t}":`];a&&c.push(`library name "${r}" contains illegal characters (whitespace or "/")`),a&&s&&c.push("and"),s&&c.push(`version name "${t}" contains illegal characters (whitespace or "/")`),po.warn(c.join(" "));return}ss(new ra(`${r}-version`,()=>({library:r,version:t}),"VERSION"))}/**
529
+ * @license
530
+ * Copyright 2021 Google LLC
531
+ *
532
+ * Licensed under the Apache License, Version 2.0 (the "License");
533
+ * you may not use this file except in compliance with the License.
534
+ * You may obtain a copy of the License at
535
+ *
536
+ * http://www.apache.org/licenses/LICENSE-2.0
537
+ *
538
+ * Unless required by applicable law or agreed to in writing, software
539
+ * distributed under the License is distributed on an "AS IS" BASIS,
540
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
541
+ * See the License for the specific language governing permissions and
542
+ * limitations under the License.
543
+ */const W8="firebase-heartbeat-database",K8=1,Iu="firebase-heartbeat-store";let e0=null;function OM(){return e0||(e0=Yh(W8,K8,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(Iu)}catch(n){console.warn(n)}}}}).catch(e=>{throw Xo.create("idb-open",{originalErrorMessage:e.message})})),e0}async function X8(e){try{const n=(await OM()).transaction(Iu),r=await n.objectStore(Iu).get(RM(e));return await n.done,r}catch(t){if(t instanceof Vl)po.warn(t.message);else{const n=Xo.create("idb-get",{originalErrorMessage:t?.message});po.warn(n.message)}}}async function PA(e,t){try{const r=(await OM()).transaction(Iu,"readwrite");await r.objectStore(Iu).put(t,RM(e)),await r.done}catch(n){if(n instanceof Vl)po.warn(n.message);else{const r=Xo.create("idb-set",{originalErrorMessage:n?.message});po.warn(r.message)}}}function RM(e){return`${e.name}!${e.options.appId}`}/**
544
+ * @license
545
+ * Copyright 2021 Google LLC
546
+ *
547
+ * Licensed under the Apache License, Version 2.0 (the "License");
548
+ * you may not use this file except in compliance with the License.
549
+ * You may obtain a copy of the License at
550
+ *
551
+ * http://www.apache.org/licenses/LICENSE-2.0
552
+ *
553
+ * Unless required by applicable law or agreed to in writing, software
554
+ * distributed under the License is distributed on an "AS IS" BASIS,
555
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
556
+ * See the License for the specific language governing permissions and
557
+ * limitations under the License.
558
+ */const Z8=1024,Q8=30;class J8{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new tH(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){try{const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=kA();if(this._heartbeatsCache?.heartbeats==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null)||this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some(a=>a.date===r))return;if(this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats.length>Q8){const a=nH(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(a,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(t){po.warn(t)}}async getHeartbeatsHeader(){try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null||this._heartbeatsCache.heartbeats.length===0)return"";const t=kA(),{heartbeatsToSend:n,unsentEntries:r}=eH(this._heartbeatsCache.heartbeats),a=bM(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=t,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),a}catch(t){return po.warn(t),""}}}function kA(){return new Date().toISOString().substring(0,10)}function eH(e,t=Z8){const n=[];let r=e.slice();for(const a of e){const s=n.find(c=>c.agent===a.agent);if(s){if(s.dates.push(a.date),NA(n)>t){s.dates.pop();break}}else if(n.push({agent:a.agent,dates:[a.date]}),NA(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class tH{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return xM()?TM().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await X8(this.app);return n?.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){if(await this._canUseIndexedDBPromise){const r=await this.read();return PA(this.app,{lastSentHeartbeatDate:t.lastSentHeartbeatDate??r.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){if(await this._canUseIndexedDBPromise){const r=await this.read();return PA(this.app,{lastSentHeartbeatDate:t.lastSentHeartbeatDate??r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...t.heartbeats]})}else return}}function NA(e){return bM(JSON.stringify({version:2,heartbeats:e})).length}function nH(e){if(e.length===0)return-1;let t=0,n=e[0].date;for(let r=1;r<e.length;r++)e[r].date<n&&(n=e[r].date,t=r);return t}/**
559
+ * @license
560
+ * Copyright 2019 Google LLC
561
+ *
562
+ * Licensed under the Apache License, Version 2.0 (the "License");
563
+ * you may not use this file except in compliance with the License.
564
+ * You may obtain a copy of the License at
565
+ *
566
+ * http://www.apache.org/licenses/LICENSE-2.0
567
+ *
568
+ * Unless required by applicable law or agreed to in writing, software
569
+ * distributed under the License is distributed on an "AS IS" BASIS,
570
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
571
+ * See the License for the specific language governing permissions and
572
+ * limitations under the License.
573
+ */function rH(e){ss(new ra("platform-logger",t=>new m8(t),"PRIVATE")),ss(new ra("heartbeat",t=>new J8(t),"PRIVATE")),Zo(Av,MA,e),Zo(Av,MA,"esm2020"),Zo("fire-js","")}rH("");const _M="@firebase/installations",SS="0.6.19";/**
574
+ * @license
575
+ * Copyright 2019 Google LLC
576
+ *
577
+ * Licensed under the Apache License, Version 2.0 (the "License");
578
+ * you may not use this file except in compliance with the License.
579
+ * You may obtain a copy of the License at
580
+ *
581
+ * http://www.apache.org/licenses/LICENSE-2.0
582
+ *
583
+ * Unless required by applicable law or agreed to in writing, software
584
+ * distributed under the License is distributed on an "AS IS" BASIS,
585
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
586
+ * See the License for the specific language governing permissions and
587
+ * limitations under the License.
588
+ */const MM=1e4,DM=`w:${SS}`,PM="FIS_v2",iH="https://firebaseinstallations.googleapis.com/v1",oH=3600*1e3,aH="installations",sH="Installations";/**
589
+ * @license
590
+ * Copyright 2019 Google LLC
591
+ *
592
+ * Licensed under the Apache License, Version 2.0 (the "License");
593
+ * you may not use this file except in compliance with the License.
594
+ * You may obtain a copy of the License at
595
+ *
596
+ * http://www.apache.org/licenses/LICENSE-2.0
597
+ *
598
+ * Unless required by applicable law or agreed to in writing, software
599
+ * distributed under the License is distributed on an "AS IS" BASIS,
600
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
601
+ * See the License for the specific language governing permissions and
602
+ * limitations under the License.
603
+ */const lH={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},ls=new Gh(aH,sH,lH);function kM(e){return e instanceof Vl&&e.code.includes("request-failed")}/**
604
+ * @license
605
+ * Copyright 2019 Google LLC
606
+ *
607
+ * Licensed under the Apache License, Version 2.0 (the "License");
608
+ * you may not use this file except in compliance with the License.
609
+ * You may obtain a copy of the License at
610
+ *
611
+ * http://www.apache.org/licenses/LICENSE-2.0
612
+ *
613
+ * Unless required by applicable law or agreed to in writing, software
614
+ * distributed under the License is distributed on an "AS IS" BASIS,
615
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
616
+ * See the License for the specific language governing permissions and
617
+ * limitations under the License.
618
+ */function NM({projectId:e}){return`${iH}/projects/${e}/installations`}function LM(e){return{token:e.token,requestStatus:2,expiresIn:uH(e.expiresIn),creationTime:Date.now()}}async function $M(e,t){const r=(await t.json()).error;return ls.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function BM({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function cH(e,{refreshToken:t}){const n=BM(e);return n.append("Authorization",fH(t)),n}async function IM(e){const t=await e();return t.status>=500&&t.status<600?e():t}function uH(e){return Number(e.replace("s","000"))}function fH(e){return`${PM} ${e}`}/**
619
+ * @license
620
+ * Copyright 2019 Google LLC
621
+ *
622
+ * Licensed under the Apache License, Version 2.0 (the "License");
623
+ * you may not use this file except in compliance with the License.
624
+ * You may obtain a copy of the License at
625
+ *
626
+ * http://www.apache.org/licenses/LICENSE-2.0
627
+ *
628
+ * Unless required by applicable law or agreed to in writing, software
629
+ * distributed under the License is distributed on an "AS IS" BASIS,
630
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
631
+ * See the License for the specific language governing permissions and
632
+ * limitations under the License.
633
+ */async function dH({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const r=NM(e),a=BM(e),s=t.getImmediate({optional:!0});if(s){const p=await s.getHeartbeatsHeader();p&&a.append("x-firebase-client",p)}const c={fid:n,authVersion:PM,appId:e.appId,sdkVersion:DM},f={method:"POST",headers:a,body:JSON.stringify(c)},d=await IM(()=>fetch(r,f));if(d.ok){const p=await d.json();return{fid:p.fid||n,registrationStatus:2,refreshToken:p.refreshToken,authToken:LM(p.authToken)}}else throw await $M("Create Installation",d)}/**
634
+ * @license
635
+ * Copyright 2019 Google LLC
636
+ *
637
+ * Licensed under the Apache License, Version 2.0 (the "License");
638
+ * you may not use this file except in compliance with the License.
639
+ * You may obtain a copy of the License at
640
+ *
641
+ * http://www.apache.org/licenses/LICENSE-2.0
642
+ *
643
+ * Unless required by applicable law or agreed to in writing, software
644
+ * distributed under the License is distributed on an "AS IS" BASIS,
645
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
646
+ * See the License for the specific language governing permissions and
647
+ * limitations under the License.
648
+ */function jM(e){return new Promise(t=>{setTimeout(t,e)})}/**
649
+ * @license
650
+ * Copyright 2019 Google LLC
651
+ *
652
+ * Licensed under the Apache License, Version 2.0 (the "License");
653
+ * you may not use this file except in compliance with the License.
654
+ * You may obtain a copy of the License at
655
+ *
656
+ * http://www.apache.org/licenses/LICENSE-2.0
657
+ *
658
+ * Unless required by applicable law or agreed to in writing, software
659
+ * distributed under the License is distributed on an "AS IS" BASIS,
660
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
661
+ * See the License for the specific language governing permissions and
662
+ * limitations under the License.
663
+ */function pH(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_")}/**
664
+ * @license
665
+ * Copyright 2019 Google LLC
666
+ *
667
+ * Licensed under the Apache License, Version 2.0 (the "License");
668
+ * you may not use this file except in compliance with the License.
669
+ * You may obtain a copy of the License at
670
+ *
671
+ * http://www.apache.org/licenses/LICENSE-2.0
672
+ *
673
+ * Unless required by applicable law or agreed to in writing, software
674
+ * distributed under the License is distributed on an "AS IS" BASIS,
675
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
676
+ * See the License for the specific language governing permissions and
677
+ * limitations under the License.
678
+ */const hH=/^[cdef][\w-]{21}$/,_v="";function mH(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const n=gH(e);return hH.test(n)?n:_v}catch{return _v}}function gH(e){return pH(e).substr(0,22)}/**
679
+ * @license
680
+ * Copyright 2019 Google LLC
681
+ *
682
+ * Licensed under the Apache License, Version 2.0 (the "License");
683
+ * you may not use this file except in compliance with the License.
684
+ * You may obtain a copy of the License at
685
+ *
686
+ * http://www.apache.org/licenses/LICENSE-2.0
687
+ *
688
+ * Unless required by applicable law or agreed to in writing, software
689
+ * distributed under the License is distributed on an "AS IS" BASIS,
690
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
691
+ * See the License for the specific language governing permissions and
692
+ * limitations under the License.
693
+ */function Wh(e){return`${e.appName}!${e.appId}`}/**
694
+ * @license
695
+ * Copyright 2019 Google LLC
696
+ *
697
+ * Licensed under the Apache License, Version 2.0 (the "License");
698
+ * you may not use this file except in compliance with the License.
699
+ * You may obtain a copy of the License at
700
+ *
701
+ * http://www.apache.org/licenses/LICENSE-2.0
702
+ *
703
+ * Unless required by applicable law or agreed to in writing, software
704
+ * distributed under the License is distributed on an "AS IS" BASIS,
705
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
706
+ * See the License for the specific language governing permissions and
707
+ * limitations under the License.
708
+ */const zM=new Map;function UM(e,t){const n=Wh(e);FM(n,t),yH(n,t)}function FM(e,t){const n=zM.get(e);if(n)for(const r of n)r(t)}function yH(e,t){const n=vH();n&&n.postMessage({key:e,fid:t}),bH()}let Ga=null;function vH(){return!Ga&&"BroadcastChannel"in self&&(Ga=new BroadcastChannel("[Firebase] FID Change"),Ga.onmessage=e=>{FM(e.data.key,e.data.fid)}),Ga}function bH(){zM.size===0&&Ga&&(Ga.close(),Ga=null)}/**
709
+ * @license
710
+ * Copyright 2019 Google LLC
711
+ *
712
+ * Licensed under the Apache License, Version 2.0 (the "License");
713
+ * you may not use this file except in compliance with the License.
714
+ * You may obtain a copy of the License at
715
+ *
716
+ * http://www.apache.org/licenses/LICENSE-2.0
717
+ *
718
+ * Unless required by applicable law or agreed to in writing, software
719
+ * distributed under the License is distributed on an "AS IS" BASIS,
720
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
721
+ * See the License for the specific language governing permissions and
722
+ * limitations under the License.
723
+ */const SH="firebase-installations-database",xH=1,cs="firebase-installations-store";let t0=null;function xS(){return t0||(t0=Yh(SH,xH,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(cs)}}})),t0}async function Jp(e,t){const n=Wh(e),a=(await xS()).transaction(cs,"readwrite"),s=a.objectStore(cs),c=await s.get(n);return await s.put(t,n),await a.done,(!c||c.fid!==t.fid)&&UM(e,t.fid),t}async function VM(e){const t=Wh(e),r=(await xS()).transaction(cs,"readwrite");await r.objectStore(cs).delete(t),await r.done}async function Kh(e,t){const n=Wh(e),a=(await xS()).transaction(cs,"readwrite"),s=a.objectStore(cs),c=await s.get(n),f=t(c);return f===void 0?await s.delete(n):await s.put(f,n),await a.done,f&&(!c||c.fid!==f.fid)&&UM(e,f.fid),f}/**
724
+ * @license
725
+ * Copyright 2019 Google LLC
726
+ *
727
+ * Licensed under the Apache License, Version 2.0 (the "License");
728
+ * you may not use this file except in compliance with the License.
729
+ * You may obtain a copy of the License at
730
+ *
731
+ * http://www.apache.org/licenses/LICENSE-2.0
732
+ *
733
+ * Unless required by applicable law or agreed to in writing, software
734
+ * distributed under the License is distributed on an "AS IS" BASIS,
735
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
736
+ * See the License for the specific language governing permissions and
737
+ * limitations under the License.
738
+ */async function TS(e){let t;const n=await Kh(e.appConfig,r=>{const a=TH(r),s=EH(e,a);return t=s.registrationPromise,s.installationEntry});return n.fid===_v?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}function TH(e){const t=e||{fid:mH(),registrationStatus:0};return HM(t)}function EH(e,t){if(t.registrationStatus===0){if(!navigator.onLine){const a=Promise.reject(ls.create("app-offline"));return{installationEntry:t,registrationPromise:a}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=wH(e,n);return{installationEntry:n,registrationPromise:r}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:CH(e)}:{installationEntry:t}}async function wH(e,t){try{const n=await dH(e,t);return Jp(e.appConfig,n)}catch(n){throw kM(n)&&n.customData.serverCode===409?await VM(e.appConfig):await Jp(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function CH(e){let t=await LA(e.appConfig);for(;t.registrationStatus===1;)await jM(100),t=await LA(e.appConfig);if(t.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await TS(e);return r||n}return t}function LA(e){return Kh(e,t=>{if(!t)throw ls.create("installation-not-found");return HM(t)})}function HM(e){return AH(e)?{fid:e.fid,registrationStatus:0}:e}function AH(e){return e.registrationStatus===1&&e.registrationTime+MM<Date.now()}/**
739
+ * @license
740
+ * Copyright 2019 Google LLC
741
+ *
742
+ * Licensed under the Apache License, Version 2.0 (the "License");
743
+ * you may not use this file except in compliance with the License.
744
+ * You may obtain a copy of the License at
745
+ *
746
+ * http://www.apache.org/licenses/LICENSE-2.0
747
+ *
748
+ * Unless required by applicable law or agreed to in writing, software
749
+ * distributed under the License is distributed on an "AS IS" BASIS,
750
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
751
+ * See the License for the specific language governing permissions and
752
+ * limitations under the License.
753
+ */async function OH({appConfig:e,heartbeatServiceProvider:t},n){const r=RH(e,n),a=cH(e,n),s=t.getImmediate({optional:!0});if(s){const p=await s.getHeartbeatsHeader();p&&a.append("x-firebase-client",p)}const c={installation:{sdkVersion:DM,appId:e.appId}},f={method:"POST",headers:a,body:JSON.stringify(c)},d=await IM(()=>fetch(r,f));if(d.ok){const p=await d.json();return LM(p)}else throw await $M("Generate Auth Token",d)}function RH(e,{fid:t}){return`${NM(e)}/${t}/authTokens:generate`}/**
754
+ * @license
755
+ * Copyright 2019 Google LLC
756
+ *
757
+ * Licensed under the Apache License, Version 2.0 (the "License");
758
+ * you may not use this file except in compliance with the License.
759
+ * You may obtain a copy of the License at
760
+ *
761
+ * http://www.apache.org/licenses/LICENSE-2.0
762
+ *
763
+ * Unless required by applicable law or agreed to in writing, software
764
+ * distributed under the License is distributed on an "AS IS" BASIS,
765
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
766
+ * See the License for the specific language governing permissions and
767
+ * limitations under the License.
768
+ */async function ES(e,t=!1){let n;const r=await Kh(e.appConfig,s=>{if(!qM(s))throw ls.create("not-registered");const c=s.authToken;if(!t&&DH(c))return s;if(c.requestStatus===1)return n=_H(e,t),s;{if(!navigator.onLine)throw ls.create("app-offline");const f=kH(s);return n=MH(e,f),f}});return n?await n:r.authToken}async function _H(e,t){let n=await $A(e.appConfig);for(;n.authToken.requestStatus===1;)await jM(100),n=await $A(e.appConfig);const r=n.authToken;return r.requestStatus===0?ES(e,t):r}function $A(e){return Kh(e,t=>{if(!qM(t))throw ls.create("not-registered");const n=t.authToken;return NH(n)?{...t,authToken:{requestStatus:0}}:t})}async function MH(e,t){try{const n=await OH(e,t),r={...t,authToken:n};return await Jp(e.appConfig,r),n}catch(n){if(kM(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await VM(e.appConfig);else{const r={...t,authToken:{requestStatus:0}};await Jp(e.appConfig,r)}throw n}}function qM(e){return e!==void 0&&e.registrationStatus===2}function DH(e){return e.requestStatus===2&&!PH(e)}function PH(e){const t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+oH}function kH(e){const t={requestStatus:1,requestTime:Date.now()};return{...e,authToken:t}}function NH(e){return e.requestStatus===1&&e.requestTime+MM<Date.now()}/**
769
+ * @license
770
+ * Copyright 2019 Google LLC
771
+ *
772
+ * Licensed under the Apache License, Version 2.0 (the "License");
773
+ * you may not use this file except in compliance with the License.
774
+ * You may obtain a copy of the License at
775
+ *
776
+ * http://www.apache.org/licenses/LICENSE-2.0
777
+ *
778
+ * Unless required by applicable law or agreed to in writing, software
779
+ * distributed under the License is distributed on an "AS IS" BASIS,
780
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
781
+ * See the License for the specific language governing permissions and
782
+ * limitations under the License.
783
+ */async function LH(e){const t=e,{installationEntry:n,registrationPromise:r}=await TS(t);return r?r.catch(console.error):ES(t).catch(console.error),n.fid}/**
784
+ * @license
785
+ * Copyright 2019 Google LLC
786
+ *
787
+ * Licensed under the Apache License, Version 2.0 (the "License");
788
+ * you may not use this file except in compliance with the License.
789
+ * You may obtain a copy of the License at
790
+ *
791
+ * http://www.apache.org/licenses/LICENSE-2.0
792
+ *
793
+ * Unless required by applicable law or agreed to in writing, software
794
+ * distributed under the License is distributed on an "AS IS" BASIS,
795
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
796
+ * See the License for the specific language governing permissions and
797
+ * limitations under the License.
798
+ */async function $H(e,t=!1){const n=e;return await BH(n),(await ES(n,t)).token}async function BH(e){const{registrationPromise:t}=await TS(e);t&&await t}/**
799
+ * @license
800
+ * Copyright 2019 Google LLC
801
+ *
802
+ * Licensed under the Apache License, Version 2.0 (the "License");
803
+ * you may not use this file except in compliance with the License.
804
+ * You may obtain a copy of the License at
805
+ *
806
+ * http://www.apache.org/licenses/LICENSE-2.0
807
+ *
808
+ * Unless required by applicable law or agreed to in writing, software
809
+ * distributed under the License is distributed on an "AS IS" BASIS,
810
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
811
+ * See the License for the specific language governing permissions and
812
+ * limitations under the License.
813
+ */function IH(e){if(!e||!e.options)throw n0("App Configuration");if(!e.name)throw n0("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw n0(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}function n0(e){return ls.create("missing-app-config-values",{valueName:e})}/**
814
+ * @license
815
+ * Copyright 2020 Google LLC
816
+ *
817
+ * Licensed under the Apache License, Version 2.0 (the "License");
818
+ * you may not use this file except in compliance with the License.
819
+ * You may obtain a copy of the License at
820
+ *
821
+ * http://www.apache.org/licenses/LICENSE-2.0
822
+ *
823
+ * Unless required by applicable law or agreed to in writing, software
824
+ * distributed under the License is distributed on an "AS IS" BASIS,
825
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
826
+ * See the License for the specific language governing permissions and
827
+ * limitations under the License.
828
+ */const GM="installations",jH="installations-internal",zH=e=>{const t=e.getProvider("app").getImmediate(),n=IH(t),r=bS(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},UH=e=>{const t=e.getProvider("app").getImmediate(),n=bS(t,GM).getImmediate();return{getId:()=>LH(n),getToken:a=>$H(n,a)}};function FH(){ss(new ra(GM,zH,"PUBLIC")),ss(new ra(jH,UH,"PRIVATE"))}FH();Zo(_M,SS);Zo(_M,SS,"esm2020");/**
829
+ * @license
830
+ * Copyright 2019 Google LLC
831
+ *
832
+ * Licensed under the Apache License, Version 2.0 (the "License");
833
+ * you may not use this file except in compliance with the License.
834
+ * You may obtain a copy of the License at
835
+ *
836
+ * http://www.apache.org/licenses/LICENSE-2.0
837
+ *
838
+ * Unless required by applicable law or agreed to in writing, software
839
+ * distributed under the License is distributed on an "AS IS" BASIS,
840
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
841
+ * See the License for the specific language governing permissions and
842
+ * limitations under the License.
843
+ */const VH="/firebase-messaging-sw.js",HH="/firebase-cloud-messaging-push-scope",YM="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",qH="https://fcmregistrations.googleapis.com/v1",WM="google.c.a.c_id",GH="google.c.a.c_l",YH="google.c.a.ts",WH="google.c.a.e",BA=1e4;var IA;(function(e){e[e.DATA_MESSAGE=1]="DATA_MESSAGE",e[e.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(IA||(IA={}));/**
844
+ * @license
845
+ * Copyright 2018 Google LLC
846
+ *
847
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
848
+ * in compliance with the License. You may obtain a copy of the License at
849
+ *
850
+ * http://www.apache.org/licenses/LICENSE-2.0
851
+ *
852
+ * Unless required by applicable law or agreed to in writing, software distributed under the License
853
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
854
+ * or implied. See the License for the specific language governing permissions and limitations under
855
+ * the License.
856
+ */var ju;(function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"})(ju||(ju={}));/**
857
+ * @license
858
+ * Copyright 2017 Google LLC
859
+ *
860
+ * Licensed under the Apache License, Version 2.0 (the "License");
861
+ * you may not use this file except in compliance with the License.
862
+ * You may obtain a copy of the License at
863
+ *
864
+ * http://www.apache.org/licenses/LICENSE-2.0
865
+ *
866
+ * Unless required by applicable law or agreed to in writing, software
867
+ * distributed under the License is distributed on an "AS IS" BASIS,
868
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
869
+ * See the License for the specific language governing permissions and
870
+ * limitations under the License.
871
+ */function ro(e){const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function KH(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/\-/g,"+").replace(/_/g,"/"),r=atob(n),a=new Uint8Array(r.length);for(let s=0;s<r.length;++s)a[s]=r.charCodeAt(s);return a}/**
872
+ * @license
873
+ * Copyright 2019 Google LLC
874
+ *
875
+ * Licensed under the Apache License, Version 2.0 (the "License");
876
+ * you may not use this file except in compliance with the License.
877
+ * You may obtain a copy of the License at
878
+ *
879
+ * http://www.apache.org/licenses/LICENSE-2.0
880
+ *
881
+ * Unless required by applicable law or agreed to in writing, software
882
+ * distributed under the License is distributed on an "AS IS" BASIS,
883
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
884
+ * See the License for the specific language governing permissions and
885
+ * limitations under the License.
886
+ */const r0="fcm_token_details_db",XH=5,jA="fcm_token_object_Store";async function ZH(e){if("databases"in indexedDB&&!(await indexedDB.databases()).map(s=>s.name).includes(r0))return null;let t=null;return(await Yh(r0,XH,{upgrade:async(r,a,s,c)=>{if(a<2||!r.objectStoreNames.contains(jA))return;const f=c.objectStore(jA),d=await f.index("fcmSenderId").get(e);if(await f.clear(),!!d){if(a===2){const p=d;if(!p.auth||!p.p256dh||!p.endpoint)return;t={token:p.fcmToken,createTime:p.createTime??Date.now(),subscriptionOptions:{auth:p.auth,p256dh:p.p256dh,endpoint:p.endpoint,swScope:p.swScope,vapidKey:typeof p.vapidKey=="string"?p.vapidKey:ro(p.vapidKey)}}}else if(a===3){const p=d;t={token:p.fcmToken,createTime:p.createTime,subscriptionOptions:{auth:ro(p.auth),p256dh:ro(p.p256dh),endpoint:p.endpoint,swScope:p.swScope,vapidKey:ro(p.vapidKey)}}}else if(a===4){const p=d;t={token:p.fcmToken,createTime:p.createTime,subscriptionOptions:{auth:ro(p.auth),p256dh:ro(p.p256dh),endpoint:p.endpoint,swScope:p.swScope,vapidKey:ro(p.vapidKey)}}}}}})).close(),await Qy(r0),await Qy("fcm_vapid_details_db"),await Qy("undefined"),QH(t)?t:null}function QH(e){if(!e||!e.subscriptionOptions)return!1;const{subscriptionOptions:t}=e;return typeof e.createTime=="number"&&e.createTime>0&&typeof e.token=="string"&&e.token.length>0&&typeof t.auth=="string"&&t.auth.length>0&&typeof t.p256dh=="string"&&t.p256dh.length>0&&typeof t.endpoint=="string"&&t.endpoint.length>0&&typeof t.swScope=="string"&&t.swScope.length>0&&typeof t.vapidKey=="string"&&t.vapidKey.length>0}/**
887
+ * @license
888
+ * Copyright 2019 Google LLC
889
+ *
890
+ * Licensed under the Apache License, Version 2.0 (the "License");
891
+ * you may not use this file except in compliance with the License.
892
+ * You may obtain a copy of the License at
893
+ *
894
+ * http://www.apache.org/licenses/LICENSE-2.0
895
+ *
896
+ * Unless required by applicable law or agreed to in writing, software
897
+ * distributed under the License is distributed on an "AS IS" BASIS,
898
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
899
+ * See the License for the specific language governing permissions and
900
+ * limitations under the License.
901
+ */const JH="firebase-messaging-database",e7=1,zu="firebase-messaging-store";let i0=null;function KM(){return i0||(i0=Yh(JH,e7,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(zu)}}})),i0}async function t7(e){const t=XM(e),r=await(await KM()).transaction(zu).objectStore(zu).get(t);if(r)return r;{const a=await ZH(e.appConfig.senderId);if(a)return await wS(e,a),a}}async function wS(e,t){const n=XM(e),a=(await KM()).transaction(zu,"readwrite");return await a.objectStore(zu).put(t,n),await a.done,t}function XM({appConfig:e}){return e.appId}/**
902
+ * @license
903
+ * Copyright 2017 Google LLC
904
+ *
905
+ * Licensed under the Apache License, Version 2.0 (the "License");
906
+ * you may not use this file except in compliance with the License.
907
+ * You may obtain a copy of the License at
908
+ *
909
+ * http://www.apache.org/licenses/LICENSE-2.0
910
+ *
911
+ * Unless required by applicable law or agreed to in writing, software
912
+ * distributed under the License is distributed on an "AS IS" BASIS,
913
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
914
+ * See the License for the specific language governing permissions and
915
+ * limitations under the License.
916
+ */const n7={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."},zn=new Gh("messaging","Messaging",n7);/**
917
+ * @license
918
+ * Copyright 2019 Google LLC
919
+ *
920
+ * Licensed under the Apache License, Version 2.0 (the "License");
921
+ * you may not use this file except in compliance with the License.
922
+ * You may obtain a copy of the License at
923
+ *
924
+ * http://www.apache.org/licenses/LICENSE-2.0
925
+ *
926
+ * Unless required by applicable law or agreed to in writing, software
927
+ * distributed under the License is distributed on an "AS IS" BASIS,
928
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
929
+ * See the License for the specific language governing permissions and
930
+ * limitations under the License.
931
+ */async function r7(e,t){const n=await AS(e),r=ZM(t),a={method:"POST",headers:n,body:JSON.stringify(r)};let s;try{s=await(await fetch(CS(e.appConfig),a)).json()}catch(c){throw zn.create("token-subscribe-failed",{errorInfo:c?.toString()})}if(s.error){const c=s.error.message;throw zn.create("token-subscribe-failed",{errorInfo:c})}if(!s.token)throw zn.create("token-subscribe-no-token");return s.token}async function i7(e,t){const n=await AS(e),r=ZM(t.subscriptionOptions),a={method:"PATCH",headers:n,body:JSON.stringify(r)};let s;try{s=await(await fetch(`${CS(e.appConfig)}/${t.token}`,a)).json()}catch(c){throw zn.create("token-update-failed",{errorInfo:c?.toString()})}if(s.error){const c=s.error.message;throw zn.create("token-update-failed",{errorInfo:c})}if(!s.token)throw zn.create("token-update-no-token");return s.token}async function o7(e,t){const r={method:"DELETE",headers:await AS(e)};try{const s=await(await fetch(`${CS(e.appConfig)}/${t}`,r)).json();if(s.error){const c=s.error.message;throw zn.create("token-unsubscribe-failed",{errorInfo:c})}}catch(a){throw zn.create("token-unsubscribe-failed",{errorInfo:a?.toString()})}}function CS({projectId:e}){return`${qH}/projects/${e}/registrations`}async function AS({appConfig:e,installations:t}){const n=await t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function ZM({p256dh:e,auth:t,endpoint:n,vapidKey:r}){const a={web:{endpoint:n,auth:t,p256dh:e}};return r!==YM&&(a.web.applicationPubKey=r),a}/**
932
+ * @license
933
+ * Copyright 2019 Google LLC
934
+ *
935
+ * Licensed under the Apache License, Version 2.0 (the "License");
936
+ * you may not use this file except in compliance with the License.
937
+ * You may obtain a copy of the License at
938
+ *
939
+ * http://www.apache.org/licenses/LICENSE-2.0
940
+ *
941
+ * Unless required by applicable law or agreed to in writing, software
942
+ * distributed under the License is distributed on an "AS IS" BASIS,
943
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
944
+ * See the License for the specific language governing permissions and
945
+ * limitations under the License.
946
+ */const a7=10080*60*1e3;async function s7(e){const t=await c7(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:ro(t.getKey("auth")),p256dh:ro(t.getKey("p256dh"))},r=await t7(e.firebaseDependencies);if(r){if(u7(r.subscriptionOptions,n))return Date.now()>=r.createTime+a7?l7(e,{token:r.token,createTime:Date.now(),subscriptionOptions:n}):r.token;try{await o7(e.firebaseDependencies,r.token)}catch(a){console.warn(a)}return zA(e.firebaseDependencies,n)}else return zA(e.firebaseDependencies,n)}async function l7(e,t){try{const n=await i7(e.firebaseDependencies,t),r={...t,token:n,createTime:Date.now()};return await wS(e.firebaseDependencies,r),n}catch(n){throw n}}async function zA(e,t){const r={token:await r7(e,t),createTime:Date.now(),subscriptionOptions:t};return await wS(e,r),r.token}async function c7(e,t){const n=await e.pushManager.getSubscription();return n||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:KH(t)})}function u7(e,t){const n=t.vapidKey===e.vapidKey,r=t.endpoint===e.endpoint,a=t.auth===e.auth,s=t.p256dh===e.p256dh;return n&&r&&a&&s}/**
947
+ * @license
948
+ * Copyright 2020 Google LLC
949
+ *
950
+ * Licensed under the Apache License, Version 2.0 (the "License");
951
+ * you may not use this file except in compliance with the License.
952
+ * You may obtain a copy of the License at
953
+ *
954
+ * http://www.apache.org/licenses/LICENSE-2.0
955
+ *
956
+ * Unless required by applicable law or agreed to in writing, software
957
+ * distributed under the License is distributed on an "AS IS" BASIS,
958
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
959
+ * See the License for the specific language governing permissions and
960
+ * limitations under the License.
961
+ */function UA(e){const t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return f7(t,e),d7(t,e),p7(t,e),t}function f7(e,t){if(!t.notification)return;e.notification={};const n=t.notification.title;n&&(e.notification.title=n);const r=t.notification.body;r&&(e.notification.body=r);const a=t.notification.image;a&&(e.notification.image=a);const s=t.notification.icon;s&&(e.notification.icon=s)}function d7(e,t){t.data&&(e.data=t.data)}function p7(e,t){if(!t.fcmOptions&&!t.notification?.click_action)return;e.fcmOptions={};const n=t.fcmOptions?.link??t.notification?.click_action;n&&(e.fcmOptions.link=n);const r=t.fcmOptions?.analytics_label;r&&(e.fcmOptions.analyticsLabel=r)}/**
962
+ * @license
963
+ * Copyright 2019 Google LLC
964
+ *
965
+ * Licensed under the Apache License, Version 2.0 (the "License");
966
+ * you may not use this file except in compliance with the License.
967
+ * You may obtain a copy of the License at
968
+ *
969
+ * http://www.apache.org/licenses/LICENSE-2.0
970
+ *
971
+ * Unless required by applicable law or agreed to in writing, software
972
+ * distributed under the License is distributed on an "AS IS" BASIS,
973
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
974
+ * See the License for the specific language governing permissions and
975
+ * limitations under the License.
976
+ */function h7(e){return typeof e=="object"&&!!e&&WM in e}/**
977
+ * @license
978
+ * Copyright 2019 Google LLC
979
+ *
980
+ * Licensed under the Apache License, Version 2.0 (the "License");
981
+ * you may not use this file except in compliance with the License.
982
+ * You may obtain a copy of the License at
983
+ *
984
+ * http://www.apache.org/licenses/LICENSE-2.0
985
+ *
986
+ * Unless required by applicable law or agreed to in writing, software
987
+ * distributed under the License is distributed on an "AS IS" BASIS,
988
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
989
+ * See the License for the specific language governing permissions and
990
+ * limitations under the License.
991
+ */function m7(e){if(!e||!e.options)throw o0("App Configuration Object");if(!e.name)throw o0("App Name");const t=["projectId","apiKey","appId","messagingSenderId"],{options:n}=e;for(const r of t)if(!n[r])throw o0(r);return{appName:e.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}function o0(e){return zn.create("missing-app-config-values",{valueName:e})}/**
992
+ * @license
993
+ * Copyright 2020 Google LLC
994
+ *
995
+ * Licensed under the Apache License, Version 2.0 (the "License");
996
+ * you may not use this file except in compliance with the License.
997
+ * You may obtain a copy of the License at
998
+ *
999
+ * http://www.apache.org/licenses/LICENSE-2.0
1000
+ *
1001
+ * Unless required by applicable law or agreed to in writing, software
1002
+ * distributed under the License is distributed on an "AS IS" BASIS,
1003
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1004
+ * See the License for the specific language governing permissions and
1005
+ * limitations under the License.
1006
+ */class g7{constructor(t,n,r){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const a=m7(t);this.firebaseDependencies={app:t,appConfig:a,installations:n,analyticsProvider:r}}_delete(){return Promise.resolve()}}/**
1007
+ * @license
1008
+ * Copyright 2020 Google LLC
1009
+ *
1010
+ * Licensed under the Apache License, Version 2.0 (the "License");
1011
+ * you may not use this file except in compliance with the License.
1012
+ * You may obtain a copy of the License at
1013
+ *
1014
+ * http://www.apache.org/licenses/LICENSE-2.0
1015
+ *
1016
+ * Unless required by applicable law or agreed to in writing, software
1017
+ * distributed under the License is distributed on an "AS IS" BASIS,
1018
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1019
+ * See the License for the specific language governing permissions and
1020
+ * limitations under the License.
1021
+ */async function y7(e){try{e.swRegistration=await navigator.serviceWorker.register(VH,{scope:HH}),e.swRegistration.update().catch(()=>{}),await v7(e.swRegistration)}catch(t){throw zn.create("failed-service-worker-registration",{browserErrorMessage:t?.message})}}async function v7(e){return new Promise((t,n)=>{const r=setTimeout(()=>n(new Error(`Service worker not registered after ${BA} ms`)),BA),a=e.installing||e.waiting;e.active?(clearTimeout(r),t()):a?a.onstatechange=s=>{s.target?.state==="activated"&&(a.onstatechange=null,clearTimeout(r),t())}:(clearTimeout(r),n(new Error("No incoming service worker found.")))})}/**
1022
+ * @license
1023
+ * Copyright 2020 Google LLC
1024
+ *
1025
+ * Licensed under the Apache License, Version 2.0 (the "License");
1026
+ * you may not use this file except in compliance with the License.
1027
+ * You may obtain a copy of the License at
1028
+ *
1029
+ * http://www.apache.org/licenses/LICENSE-2.0
1030
+ *
1031
+ * Unless required by applicable law or agreed to in writing, software
1032
+ * distributed under the License is distributed on an "AS IS" BASIS,
1033
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1034
+ * See the License for the specific language governing permissions and
1035
+ * limitations under the License.
1036
+ */async function b7(e,t){if(!t&&!e.swRegistration&&await y7(e),!(!t&&e.swRegistration)){if(!(t instanceof ServiceWorkerRegistration))throw zn.create("invalid-sw-registration");e.swRegistration=t}}/**
1037
+ * @license
1038
+ * Copyright 2020 Google LLC
1039
+ *
1040
+ * Licensed under the Apache License, Version 2.0 (the "License");
1041
+ * you may not use this file except in compliance with the License.
1042
+ * You may obtain a copy of the License at
1043
+ *
1044
+ * http://www.apache.org/licenses/LICENSE-2.0
1045
+ *
1046
+ * Unless required by applicable law or agreed to in writing, software
1047
+ * distributed under the License is distributed on an "AS IS" BASIS,
1048
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1049
+ * See the License for the specific language governing permissions and
1050
+ * limitations under the License.
1051
+ */async function S7(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=YM)}/**
1052
+ * @license
1053
+ * Copyright 2020 Google LLC
1054
+ *
1055
+ * Licensed under the Apache License, Version 2.0 (the "License");
1056
+ * you may not use this file except in compliance with the License.
1057
+ * You may obtain a copy of the License at
1058
+ *
1059
+ * http://www.apache.org/licenses/LICENSE-2.0
1060
+ *
1061
+ * Unless required by applicable law or agreed to in writing, software
1062
+ * distributed under the License is distributed on an "AS IS" BASIS,
1063
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1064
+ * See the License for the specific language governing permissions and
1065
+ * limitations under the License.
1066
+ */async function QM(e,t){if(!navigator)throw zn.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw zn.create("permission-blocked");return await S7(e,t?.vapidKey),await b7(e,t?.serviceWorkerRegistration),s7(e)}/**
1067
+ * @license
1068
+ * Copyright 2019 Google LLC
1069
+ *
1070
+ * Licensed under the Apache License, Version 2.0 (the "License");
1071
+ * you may not use this file except in compliance with the License.
1072
+ * You may obtain a copy of the License at
1073
+ *
1074
+ * http://www.apache.org/licenses/LICENSE-2.0
1075
+ *
1076
+ * Unless required by applicable law or agreed to in writing, software
1077
+ * distributed under the License is distributed on an "AS IS" BASIS,
1078
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1079
+ * See the License for the specific language governing permissions and
1080
+ * limitations under the License.
1081
+ */async function x7(e,t,n){const r=T7(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[WM],message_name:n[GH],message_time:n[YH],message_device_time:Math.floor(Date.now()/1e3)})}function T7(e){switch(e){case ju.NOTIFICATION_CLICKED:return"notification_open";case ju.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}/**
1082
+ * @license
1083
+ * Copyright 2017 Google LLC
1084
+ *
1085
+ * Licensed under the Apache License, Version 2.0 (the "License");
1086
+ * you may not use this file except in compliance with the License.
1087
+ * You may obtain a copy of the License at
1088
+ *
1089
+ * http://www.apache.org/licenses/LICENSE-2.0
1090
+ *
1091
+ * Unless required by applicable law or agreed to in writing, software
1092
+ * distributed under the License is distributed on an "AS IS" BASIS,
1093
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1094
+ * See the License for the specific language governing permissions and
1095
+ * limitations under the License.
1096
+ */async function E7(e,t){const n=t.data;if(!n.isFirebaseMessaging)return;e.onMessageHandler&&n.messageType===ju.PUSH_RECEIVED&&(typeof e.onMessageHandler=="function"?e.onMessageHandler(UA(n)):e.onMessageHandler.next(UA(n)));const r=n.data;h7(r)&&r[WH]==="1"&&await x7(e,n.messageType,r)}const FA="@firebase/messaging",VA="0.12.23";/**
1097
+ * @license
1098
+ * Copyright 2020 Google LLC
1099
+ *
1100
+ * Licensed under the Apache License, Version 2.0 (the "License");
1101
+ * you may not use this file except in compliance with the License.
1102
+ * You may obtain a copy of the License at
1103
+ *
1104
+ * http://www.apache.org/licenses/LICENSE-2.0
1105
+ *
1106
+ * Unless required by applicable law or agreed to in writing, software
1107
+ * distributed under the License is distributed on an "AS IS" BASIS,
1108
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1109
+ * See the License for the specific language governing permissions and
1110
+ * limitations under the License.
1111
+ */const w7=e=>{const t=new g7(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=>E7(t,n)),t},C7=e=>{const t=e.getProvider("messaging").getImmediate();return{getToken:r=>QM(t,r)}};function A7(){ss(new ra("messaging",w7,"PUBLIC")),ss(new ra("messaging-internal",C7,"PRIVATE")),Zo(FA,VA),Zo(FA,VA,"esm2020")}/**
1112
+ * @license
1113
+ * Copyright 2020 Google LLC
1114
+ *
1115
+ * Licensed under the Apache License, Version 2.0 (the "License");
1116
+ * you may not use this file except in compliance with the License.
1117
+ * You may obtain a copy of the License at
1118
+ *
1119
+ * http://www.apache.org/licenses/LICENSE-2.0
1120
+ *
1121
+ * Unless required by applicable law or agreed to in writing, software
1122
+ * distributed under the License is distributed on an "AS IS" BASIS,
1123
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1124
+ * See the License for the specific language governing permissions and
1125
+ * limitations under the License.
1126
+ */async function O7(){try{await TM()}catch{return!1}return typeof window<"u"&&xM()&&GV()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}/**
1127
+ * @license
1128
+ * Copyright 2017 Google LLC
1129
+ *
1130
+ * Licensed under the Apache License, Version 2.0 (the "License");
1131
+ * you may not use this file except in compliance with the License.
1132
+ * You may obtain a copy of the License at
1133
+ *
1134
+ * http://www.apache.org/licenses/LICENSE-2.0
1135
+ *
1136
+ * Unless required by applicable law or agreed to in writing, software
1137
+ * distributed under the License is distributed on an "AS IS" BASIS,
1138
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1139
+ * See the License for the specific language governing permissions and
1140
+ * limitations under the License.
1141
+ */function R7(e=Y8()){return O7().then(t=>{if(!t)throw zn.create("unsupported-browser")},t=>{throw zn.create("indexed-db-unsupported")}),bS(EM(e),"messaging").getImmediate()}async function _7(e,t){return e=EM(e),QM(e,t)}A7();var a0={exports:{}},s0={};/**
1142
+ * @license React
1143
+ * use-sync-external-store-with-selector.production.js
1144
+ *
1145
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1146
+ *
1147
+ * This source code is licensed under the MIT license found in the
1148
+ * LICENSE file in the root directory of this source tree.
1149
+ */var HA;function M7(){if(HA)return s0;HA=1;var e=bh();function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,a=e.useRef,s=e.useEffect,c=e.useMemo,f=e.useDebugValue;return s0.useSyncExternalStoreWithSelector=function(d,p,h,g,v){var x=a(null);if(x.current===null){var b={hasValue:!1,value:null};x.current=b}else b=x.current;x=c(function(){function T(O){if(!w){if(w=!0,R=O,O=g(O),v!==void 0&&b.hasValue){var M=b.value;if(v(M,O))return A=M}return A=O}if(M=A,n(R,O))return M;var L=g(O);return v!==void 0&&v(M,L)?(R=O,M):(R=O,A=L)}var w=!1,R,A,_=h===void 0?null:h;return[function(){return T(p())},_===null?void 0:function(){return T(_())}]},[p,h,g,v]);var S=r(d,x[0],x[1]);return s(function(){b.hasValue=!0,b.value=S},[S]),f(S),S},s0}var qA;function D7(){return qA||(qA=1,a0.exports=M7()),a0.exports}var P7=D7();function k7(e){e()}function N7(){let e=null,t=null;return{clear(){e=null,t=null},notify(){k7(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const a=t={callback:n,next:null,prev:t};return a.prev?a.prev.next=a:e=a,function(){!r||e===null||(r=!1,a.next?a.next.prev=a.prev:t=a.prev,a.prev?a.prev.next=a.next:e=a.next)}}}}var GA={notify(){},get:()=>[]};function L7(e,t){let n,r=GA,a=0,s=!1;function c(S){h();const T=r.subscribe(S);let w=!1;return()=>{w||(w=!0,T(),g())}}function f(){r.notify()}function d(){b.onStateChange&&b.onStateChange()}function p(){return s}function h(){a++,n||(n=e.subscribe(d),r=N7())}function g(){a--,n&&a===0&&(n(),n=void 0,r.clear(),r=GA)}function v(){s||(s=!0,h())}function x(){s&&(s=!1,g())}const b={addNestedSub:c,notifyNestedSubs:f,handleChangeWrapper:d,isSubscribed:p,trySubscribe:v,tryUnsubscribe:x,getListeners:()=>r};return b}var $7=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",B7=$7(),I7=()=>typeof navigator<"u"&&navigator.product==="ReactNative",j7=I7(),z7=()=>B7||j7?E.useLayoutEffect:E.useEffect,U7=z7(),F7=Symbol.for("react-redux-context"),V7=typeof globalThis<"u"?globalThis:{};function H7(){if(!E.createContext)return{};const e=V7[F7]??=new Map;let t=e.get(E.createContext);return t||(t=E.createContext(null),e.set(E.createContext,t)),t}var ia=H7();function q7(e){const{children:t,context:n,serverState:r,store:a}=e,s=E.useMemo(()=>{const d=L7(a);return{store:a,subscription:d,getServerState:r?()=>r:void 0}},[a,r]),c=E.useMemo(()=>a.getState(),[a]);U7(()=>{const{subscription:d}=s;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),c!==a.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[s,c]);const f=n||ia;return E.createElement(f.Provider,{value:s},t)}var G7=q7;function OS(e=ia){return function(){return E.useContext(e)}}var JM=OS();function eD(e=ia){const t=e===ia?JM:OS(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var Y7=eD();function W7(e=ia){const t=e===ia?Y7:eD(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var K7=W7(),X7=(e,t)=>e===t;function Z7(e=ia){const t=e===ia?JM:OS(e),n=(r,a={})=>{const{equalityFn:s=X7}=typeof a=="function"?{equalityFn:a}:a,c=t(),{store:f,subscription:d,getServerState:p}=c;E.useRef(!0);const h=E.useCallback({[r.name](v){return r(v)}}[r.name],[r]),g=P7.useSyncExternalStoreWithSelector(d.addNestedSub,f.getState,p||f.getState,h,s);return E.useDebugValue(g),g};return Object.assign(n,{withTypes:()=>n}),n}var oa=Z7();/**
1150
+ * react-router v7.9.4
1151
+ *
1152
+ * Copyright (c) Remix Software Inc.
1153
+ *
1154
+ * This source code is licensed under the MIT license found in the
1155
+ * LICENSE.md file in the root directory of this source tree.
1156
+ *
1157
+ * @license MIT
1158
+ */var YA="popstate";function Q7(e={}){function t(r,a){let{pathname:s,search:c,hash:f}=r.location;return Mv("",{pathname:s,search:c,hash:f},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:Uu(a)}return e9(t,n,null,e)}function Ut(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ni(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function J7(){return Math.random().toString(36).substring(2,10)}function WA(e,t){return{usr:e.state,key:e.key,idx:t}}function Mv(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Hl(t):t,state:n,key:t&&t.key||r||J7()}}function Uu({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Hl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function e9(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:s=!1}=r,c=a.history,f="POP",d=null,p=h();p==null&&(p=0,c.replaceState({...c.state,idx:p},""));function h(){return(c.state||{idx:null}).idx}function g(){f="POP";let T=h(),w=T==null?null:T-p;p=T,d&&d({action:f,location:S.location,delta:w})}function v(T,w){f="PUSH";let R=Mv(S.location,T,w);p=h()+1;let A=WA(R,p),_=S.createHref(R);try{c.pushState(A,"",_)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;a.location.assign(_)}s&&d&&d({action:f,location:S.location,delta:1})}function x(T,w){f="REPLACE";let R=Mv(S.location,T,w);p=h();let A=WA(R,p),_=S.createHref(R);c.replaceState(A,"",_),s&&d&&d({action:f,location:S.location,delta:0})}function b(T){return t9(T)}let S={get action(){return f},get location(){return e(a,c)},listen(T){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(YA,g),d=T,()=>{a.removeEventListener(YA,g),d=null}},createHref(T){return t(a,T)},createURL:b,encodeLocation(T){let w=b(T);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:v,replace:x,go(T){return c.go(T)}};return S}function t9(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Ut(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Uu(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function tD(e,t,n="/"){return n9(e,t,n,!1)}function n9(e,t,n,r){let a=typeof t=="string"?Hl(t):t,s=ho(a.pathname||"/",n);if(s==null)return null;let c=nD(e);r9(c);let f=null;for(let d=0;f==null&&d<c.length;++d){let p=h9(s);f=d9(c[d],p,r)}return f}function nD(e,t=[],n=[],r="",a=!1){let s=(c,f,d=a,p)=>{let h={relativePath:p===void 0?c.path||"":p,caseSensitive:c.caseSensitive===!0,childrenIndex:f,route:c};if(h.relativePath.startsWith("/")){if(!h.relativePath.startsWith(r)&&d)return;Ut(h.relativePath.startsWith(r),`Absolute route path "${h.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(r.length)}let g=ao([r,h.relativePath]),v=n.concat(h);c.children&&c.children.length>0&&(Ut(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),nD(c.children,t,v,g,d)),!(c.path==null&&!c.index)&&t.push({path:g,score:u9(g,c.index),routesMeta:v})};return e.forEach((c,f)=>{if(c.path===""||!c.path?.includes("?"))s(c,f);else for(let d of rD(c.path))s(c,f,!0,d)}),t}function rD(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return a?[s,""]:[s];let c=rD(r.join("/")),f=[];return f.push(...c.map(d=>d===""?s:[s,d].join("/"))),a&&f.push(...c),f.map(d=>e.startsWith("/")&&d===""?"/":d)}function r9(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:f9(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var i9=/^:[\w-]+$/,o9=3,a9=2,s9=1,l9=10,c9=-2,KA=e=>e==="*";function u9(e,t){let n=e.split("/"),r=n.length;return n.some(KA)&&(r+=c9),t&&(r+=a9),n.filter(a=>!KA(a)).reduce((a,s)=>a+(i9.test(s)?o9:s===""?s9:l9),r)}function f9(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function d9(e,t,n=!1){let{routesMeta:r}=e,a={},s="/",c=[];for(let f=0;f<r.length;++f){let d=r[f],p=f===r.length-1,h=s==="/"?t:t.slice(s.length)||"/",g=eh({path:d.relativePath,caseSensitive:d.caseSensitive,end:p},h),v=d.route;if(!g&&p&&n&&!r[r.length-1].route.index&&(g=eh({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},h)),!g)return null;Object.assign(a,g.params),c.push({params:a,pathname:ao([s,g.pathname]),pathnameBase:v9(ao([s,g.pathnameBase])),route:v}),g.pathnameBase!=="/"&&(s=ao([s,g.pathnameBase]))}return c}function eh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=p9(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let s=a[0],c=s.replace(/(.)\/+$/,"$1"),f=a.slice(1);return{params:r.reduce((p,{paramName:h,isOptional:g},v)=>{if(h==="*"){let b=f[v]||"";c=s.slice(0,s.length-b.length).replace(/(.)\/+$/,"$1")}const x=f[v];return g&&!x?p[h]=void 0:p[h]=(x||"").replace(/%2F/g,"/"),p},{}),pathname:s,pathnameBase:c,pattern:e}}function p9(e,t=!1,n=!0){ni(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 r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,f,d)=>(r.push({paramName:f,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function h9(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ni(!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 (${t}).`),e}}function ho(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function m9(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Hl(e):e;return{pathname:n?n.startsWith("/")?n:g9(n,t):t,search:b9(r),hash:S9(a)}}function g9(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function l0(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function y9(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function RS(e){let t=y9(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function _S(e,t,n,r=!1){let a;typeof e=="string"?a=Hl(e):(a={...e},Ut(!a.pathname||!a.pathname.includes("?"),l0("?","pathname","search",a)),Ut(!a.pathname||!a.pathname.includes("#"),l0("#","pathname","hash",a)),Ut(!a.search||!a.search.includes("#"),l0("#","search","hash",a)));let s=e===""||a.pathname==="",c=s?"/":a.pathname,f;if(c==null)f=n;else{let g=t.length-1;if(!r&&c.startsWith("..")){let v=c.split("/");for(;v[0]==="..";)v.shift(),g-=1;a.pathname=v.join("/")}f=g>=0?t[g]:"/"}let d=m9(a,f),p=c&&c!=="/"&&c.endsWith("/"),h=(s||c===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(p||h)&&(d.pathname+="/"),d}var ao=e=>e.join("/").replace(/\/\/+/g,"/"),v9=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),b9=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,S9=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function x9(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var iD=["POST","PUT","PATCH","DELETE"];new Set(iD);var T9=["GET",...iD];new Set(T9);var ql=E.createContext(null);ql.displayName="DataRouter";var Xh=E.createContext(null);Xh.displayName="DataRouterState";E.createContext(!1);var oD=E.createContext({isTransitioning:!1});oD.displayName="ViewTransition";var E9=E.createContext(new Map);E9.displayName="Fetchers";var w9=E.createContext(null);w9.displayName="Await";var ii=E.createContext(null);ii.displayName="Navigation";var sf=E.createContext(null);sf.displayName="Location";var oi=E.createContext({outlet:null,matches:[],isDataRoute:!1});oi.displayName="Route";var MS=E.createContext(null);MS.displayName="RouteError";function C9(e,{relative:t}={}){Ut(Gl(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=E.useContext(ii),{hash:a,pathname:s,search:c}=lf(e,{relative:t}),f=s;return n!=="/"&&(f=s==="/"?n:ao([n,s])),r.createHref({pathname:f,search:c,hash:a})}function Gl(){return E.useContext(sf)!=null}function Di(){return Ut(Gl(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(sf).location}var aD="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function sD(e){E.useContext(ii).static||E.useLayoutEffect(e)}function So(){let{isDataRoute:e}=E.useContext(oi);return e?z9():A9()}function A9(){Ut(Gl(),"useNavigate() may be used only in the context of a <Router> component.");let e=E.useContext(ql),{basename:t,navigator:n}=E.useContext(ii),{matches:r}=E.useContext(oi),{pathname:a}=Di(),s=JSON.stringify(RS(r)),c=E.useRef(!1);return sD(()=>{c.current=!0}),E.useCallback((d,p={})=>{if(ni(c.current,aD),!c.current)return;if(typeof d=="number"){n.go(d);return}let h=_S(d,JSON.parse(s),a,p.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:ao([t,h.pathname])),(p.replace?n.replace:n.push)(h,p.state,p)},[t,n,s,a,e])}var O9=E.createContext(null);function R9(e){let t=E.useContext(oi).outlet;return E.useMemo(()=>t&&E.createElement(O9.Provider,{value:e},t),[t,e])}function lf(e,{relative:t}={}){let{matches:n}=E.useContext(oi),{pathname:r}=Di(),a=JSON.stringify(RS(n));return E.useMemo(()=>_S(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function _9(e,t){return lD(e,t)}function lD(e,t,n,r,a){Ut(Gl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=E.useContext(ii),{matches:c}=E.useContext(oi),f=c[c.length-1],d=f?f.params:{},p=f?f.pathname:"/",h=f?f.pathnameBase:"/",g=f&&f.route;{let R=g&&g.path||"";cD(p,!g||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${R}">) 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.
1159
+
1160
+ Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let v=Di(),x;if(t){let R=typeof t=="string"?Hl(t):t;Ut(h==="/"||R.pathname?.startsWith(h),`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 "${h}" but pathname "${R.pathname}" was given in the \`location\` prop.`),x=R}else x=v;let b=x.pathname||"/",S=b;if(h!=="/"){let R=h.replace(/^\//,"").split("/");S="/"+b.replace(/^\//,"").split("/").slice(R.length).join("/")}let T=tD(e,{pathname:S});ni(g||T!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),ni(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 "${x.pathname}${x.search}${x.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 w=N9(T&&T.map(R=>Object.assign({},R,{params:Object.assign({},d,R.params),pathname:ao([h,s.encodeLocation?s.encodeLocation(R.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?h:ao([h,s.encodeLocation?s.encodeLocation(R.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),c,n,r,a);return t&&w?E.createElement(sf.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},w):w}function M9(){let e=j9(),t=x9(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:s},"ErrorBoundary")," or"," ",E.createElement("code",{style:s},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:a},n):null,c)}var D9=E.createElement(M9,null),P9=class extends E.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,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?E.createElement(oi.Provider,{value:this.props.routeContext},E.createElement(MS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function k9({routeContext:e,match:t,children:n}){let r=E.useContext(ql);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),E.createElement(oi.Provider,{value:e},n)}function N9(e,t=[],n=null,r=null,a=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,c=n?.errors;if(c!=null){let p=s.findIndex(h=>h.route.id&&c?.[h.route.id]!==void 0);Ut(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),s=s.slice(0,Math.min(s.length,p+1))}let f=!1,d=-1;if(n)for(let p=0;p<s.length;p++){let h=s[p];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(d=p),h.route.id){let{loaderData:g,errors:v}=n,x=h.route.loader&&!g.hasOwnProperty(h.route.id)&&(!v||v[h.route.id]===void 0);if(h.route.lazy||x){f=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}return s.reduceRight((p,h,g)=>{let v,x=!1,b=null,S=null;n&&(v=c&&h.route.id?c[h.route.id]:void 0,b=h.route.errorElement||D9,f&&(d<0&&g===0?(cD("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,S=null):d===g&&(x=!0,S=h.route.hydrateFallbackElement||null)));let T=t.concat(s.slice(0,g+1)),w=()=>{let R;return v?R=b:x?R=S:h.route.Component?R=E.createElement(h.route.Component,null):h.route.element?R=h.route.element:R=p,E.createElement(k9,{match:h,routeContext:{outlet:p,matches:T,isDataRoute:n!=null},children:R})};return n&&(h.route.ErrorBoundary||h.route.errorElement||g===0)?E.createElement(P9,{location:n.location,revalidation:n.revalidation,component:b,error:v,children:w(),routeContext:{outlet:null,matches:T,isDataRoute:!0},unstable_onError:r}):w()},null)}function DS(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function L9(e){let t=E.useContext(ql);return Ut(t,DS(e)),t}function $9(e){let t=E.useContext(Xh);return Ut(t,DS(e)),t}function B9(e){let t=E.useContext(oi);return Ut(t,DS(e)),t}function PS(e){let t=B9(e),n=t.matches[t.matches.length-1];return Ut(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function I9(){return PS("useRouteId")}function j9(){let e=E.useContext(MS),t=$9("useRouteError"),n=PS("useRouteError");return e!==void 0?e:t.errors?.[n]}function z9(){let{router:e}=L9("useNavigate"),t=PS("useNavigate"),n=E.useRef(!1);return sD(()=>{n.current=!0}),E.useCallback(async(a,s={})=>{ni(n.current,aD),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...s}))},[e,t])}var XA={};function cD(e,t,n){!t&&!XA[e]&&(XA[e]=!0,ni(!1,n))}E.memo(U9);function U9({routes:e,future:t,state:n,unstable_onError:r}){return lD(e,void 0,n,r,t)}function c0({to:e,replace:t,state:n,relative:r}){Ut(Gl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=E.useContext(ii);ni(!a,"<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:s}=E.useContext(oi),{pathname:c}=Di(),f=So(),d=_S(e,RS(s),c,r==="path"),p=JSON.stringify(d);return E.useEffect(()=>{f(JSON.parse(p),{replace:t,state:n,relative:r})},[f,p,r,t,n]),null}function F9(e){return R9(e.context)}function uD(e){Ut(!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 V9({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:s=!1}){Ut(!Gl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=E.useMemo(()=>({basename:c,navigator:a,static:s,future:{}}),[c,a,s]);typeof n=="string"&&(n=Hl(n));let{pathname:d="/",search:p="",hash:h="",state:g=null,key:v="default"}=n,x=E.useMemo(()=>{let b=ho(d,c);return b==null?null:{location:{pathname:b,search:p,hash:h,state:g,key:v},navigationType:r}},[c,d,p,h,g,v,r]);return ni(x!=null,`<Router basename="${c}"> is not able to match the URL "${d}${p}${h}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:E.createElement(ii.Provider,{value:f},E.createElement(sf.Provider,{children:t,value:x}))}function H9({children:e,location:t}){return _9(Dv(e),t)}function Dv(e,t=[]){let n=[];return E.Children.forEach(e,(r,a)=>{if(!E.isValidElement(r))return;let s=[...t,a];if(r.type===E.Fragment){n.push.apply(n,Dv(r.props.children,s));return}Ut(r.type===uD,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ut(!r.props.index||!r.props.children,"An index route cannot have child routes.");let c={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(c.children=Dv(r.props.children,s)),n.push(c)}),n}var mp="get",gp="application/x-www-form-urlencoded";function Zh(e){return e!=null&&typeof e.tagName=="string"}function q9(e){return Zh(e)&&e.tagName.toLowerCase()==="button"}function G9(e){return Zh(e)&&e.tagName.toLowerCase()==="form"}function Y9(e){return Zh(e)&&e.tagName.toLowerCase()==="input"}function W9(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function K9(e,t){return e.button===0&&(!t||t==="_self")&&!W9(e)}var Hd=null;function X9(){if(Hd===null)try{new FormData(document.createElement("form"),0),Hd=!1}catch{Hd=!0}return Hd}var Z9=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function u0(e){return e!=null&&!Z9.has(e)?(ni(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${gp}"`),null):e}function Q9(e,t){let n,r,a,s,c;if(G9(e)){let f=e.getAttribute("action");r=f?ho(f,t):null,n=e.getAttribute("method")||mp,a=u0(e.getAttribute("enctype"))||gp,s=new FormData(e)}else if(q9(e)||Y9(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||f.getAttribute("action");if(r=d?ho(d,t):null,n=e.getAttribute("formmethod")||f.getAttribute("method")||mp,a=u0(e.getAttribute("formenctype"))||u0(f.getAttribute("enctype"))||gp,s=new FormData(f,e),!X9()){let{name:p,type:h,value:g}=e;if(h==="image"){let v=p?`${p}.`:"";s.append(`${v}x`,"0"),s.append(`${v}y`,"0")}else p&&s.append(p,g)}}else{if(Zh(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=mp,r=null,a=gp,c=e}return s&&a==="text/plain"&&(c=s,s=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:s,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function kS(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function J9(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&ho(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function eq(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function tq(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 nq(e,t,n){let r=await Promise.all(e.map(async a=>{let s=t.routes[a.route.id];if(s){let c=await eq(s,n);return c.links?c.links():[]}return[]}));return aq(r.flat(1).filter(tq).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function ZA(e,t,n,r,a,s){let c=(d,p)=>n[p]?d.route.id!==n[p].route.id:!0,f=(d,p)=>n[p].pathname!==d.pathname||n[p].route.path?.endsWith("*")&&n[p].params["*"]!==d.params["*"];return s==="assets"?t.filter((d,p)=>c(d,p)||f(d,p)):s==="data"?t.filter((d,p)=>{let h=r.routes[d.route.id];if(!h||!h.hasLoader)return!1;if(c(d,p)||f(d,p))return!0;if(d.route.shouldRevalidate){let g=d.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function rq(e,t,{includeHydrateFallback:n}={}){return iq(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let s=[a.module];return a.clientActionModule&&(s=s.concat(a.clientActionModule)),a.clientLoaderModule&&(s=s.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(s=s.concat(a.hydrateFallbackModule)),a.imports&&(s=s.concat(a.imports)),s}).flat(1))}function iq(e){return[...new Set(e)]}function oq(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function aq(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let s=JSON.stringify(oq(a));return n.has(s)||(n.add(s),r.push({key:s,link:a})),r},[])}function fD(){let e=E.useContext(ql);return kS(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function sq(){let e=E.useContext(Xh);return kS(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var NS=E.createContext(void 0);NS.displayName="FrameworkContext";function dD(){let e=E.useContext(NS);return kS(e,"You must render this element inside a <HydratedRouter> element"),e}function lq(e,t){let n=E.useContext(NS),[r,a]=E.useState(!1),[s,c]=E.useState(!1),{onFocus:f,onBlur:d,onMouseEnter:p,onMouseLeave:h,onTouchStart:g}=t,v=E.useRef(null);E.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let S=w=>{w.forEach(R=>{c(R.isIntersecting)})},T=new IntersectionObserver(S,{threshold:.5});return v.current&&T.observe(v.current),()=>{T.disconnect()}}},[e]),E.useEffect(()=>{if(r){let S=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(S)}}},[r]);let x=()=>{a(!0)},b=()=>{a(!1),c(!1)};return n?e!=="intent"?[s,v,{}]:[s,v,{onFocus:eu(f,x),onBlur:eu(d,b),onMouseEnter:eu(p,x),onMouseLeave:eu(h,b),onTouchStart:eu(g,x)}]:[!1,v,{}]}function eu(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function cq({page:e,...t}){let{router:n}=fD(),r=E.useMemo(()=>tD(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?E.createElement(fq,{page:e,matches:r,...t}):null}function uq(e){let{manifest:t,routeModules:n}=dD(),[r,a]=E.useState([]);return E.useEffect(()=>{let s=!1;return nq(e,t,n).then(c=>{s||a(c)}),()=>{s=!0}},[e,t,n]),r}function fq({page:e,matches:t,...n}){let r=Di(),{manifest:a,routeModules:s}=dD(),{basename:c}=fD(),{loaderData:f,matches:d}=sq(),p=E.useMemo(()=>ZA(e,t,d,a,r,"data"),[e,t,d,a,r]),h=E.useMemo(()=>ZA(e,t,d,a,r,"assets"),[e,t,d,a,r]),g=E.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let b=new Set,S=!1;if(t.forEach(w=>{let R=a.routes[w.route.id];!R||!R.hasLoader||(!p.some(A=>A.route.id===w.route.id)&&w.route.id in f&&s[w.route.id]?.shouldRevalidate||R.hasClientLoader?S=!0:b.add(w.route.id))}),b.size===0)return[];let T=J9(e,c,"data");return S&&b.size>0&&T.searchParams.set("_routes",t.filter(w=>b.has(w.route.id)).map(w=>w.route.id).join(",")),[T.pathname+T.search]},[c,f,r,a,p,t,e,s]),v=E.useMemo(()=>rq(h,a),[h,a]),x=uq(h);return E.createElement(E.Fragment,null,g.map(b=>E.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...n})),v.map(b=>E.createElement("link",{key:b,rel:"modulepreload",href:b,...n})),x.map(({key:b,link:S})=>E.createElement("link",{key:b,nonce:n.nonce,...S})))}function dq(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var pD=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{pD&&(window.__reactRouterVersion="7.9.4")}catch{}function pq({basename:e,children:t,window:n}){let r=E.useRef();r.current==null&&(r.current=Q7({window:n,v5Compat:!0}));let a=r.current,[s,c]=E.useState({action:a.action,location:a.location}),f=E.useCallback(d=>{E.startTransition(()=>c(d))},[c]);return E.useLayoutEffect(()=>a.listen(f),[a,f]),E.createElement(V9,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a})}var hD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mD=E.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:s,replace:c,state:f,target:d,to:p,preventScrollReset:h,viewTransition:g,...v},x){let{basename:b}=E.useContext(ii),S=typeof p=="string"&&hD.test(p),T,w=!1;if(typeof p=="string"&&S&&(T=p,pD))try{let z=new URL(window.location.href),V=p.startsWith("//")?new URL(z.protocol+p):new URL(p),H=ho(V.pathname,b);V.origin===z.origin&&H!=null?p=H+V.search+V.hash:w=!0}catch{ni(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let R=C9(p,{relative:a}),[A,_,O]=lq(r,v),M=yq(p,{replace:c,state:f,target:d,preventScrollReset:h,relative:a,viewTransition:g});function L(z){t&&t(z),z.defaultPrevented||M(z)}let B=E.createElement("a",{...v,...O,href:T||R,onClick:w||s?t:L,ref:dq(x,_),target:d,"data-discover":!S&&n==="render"?"true":void 0});return A&&!S?E.createElement(E.Fragment,null,B,E.createElement(cq,{page:R})):B});mD.displayName="Link";var hq=E.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:s,to:c,viewTransition:f,children:d,...p},h){let g=lf(c,{relative:p.relative}),v=Di(),x=E.useContext(Xh),{navigator:b,basename:S}=E.useContext(ii),T=x!=null&&Tq(g)&&f===!0,w=b.encodeLocation?b.encodeLocation(g).pathname:g.pathname,R=v.pathname,A=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;n||(R=R.toLowerCase(),A=A?A.toLowerCase():null,w=w.toLowerCase()),A&&S&&(A=ho(A,S)||A);const _=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let O=R===w||!a&&R.startsWith(w)&&R.charAt(_)==="/",M=A!=null&&(A===w||!a&&A.startsWith(w)&&A.charAt(w.length)==="/"),L={isActive:O,isPending:M,isTransitioning:T},B=O?t:void 0,z;typeof r=="function"?z=r(L):z=[r,O?"active":null,M?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let V=typeof s=="function"?s(L):s;return E.createElement(mD,{...p,"aria-current":B,className:z,ref:h,style:V,to:c,viewTransition:f},typeof d=="function"?d(L):d)});hq.displayName="NavLink";var mq=E.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:s,method:c=mp,action:f,onSubmit:d,relative:p,preventScrollReset:h,viewTransition:g,...v},x)=>{let b=Sq(),S=xq(f,{relative:p}),T=c.toLowerCase()==="get"?"get":"post",w=typeof f=="string"&&hD.test(f),R=A=>{if(d&&d(A),A.defaultPrevented)return;A.preventDefault();let _=A.nativeEvent.submitter,O=_?.getAttribute("formmethod")||c;b(_||A.currentTarget,{fetcherKey:t,method:O,navigate:n,replace:a,state:s,relative:p,preventScrollReset:h,viewTransition:g})};return E.createElement("form",{ref:x,method:T,action:S,onSubmit:r?d:R,...v,"data-discover":!w&&e==="render"?"true":void 0})});mq.displayName="Form";function gq(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function gD(e){let t=E.useContext(ql);return Ut(t,gq(e)),t}function yq(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:s,viewTransition:c}={}){let f=So(),d=Di(),p=lf(e,{relative:s});return E.useCallback(h=>{if(K9(h,t)){h.preventDefault();let g=n!==void 0?n:Uu(d)===Uu(p);f(e,{replace:g,state:r,preventScrollReset:a,relative:s,viewTransition:c})}},[d,f,p,n,r,t,e,a,s,c])}var vq=0,bq=()=>`__${String(++vq)}__`;function Sq(){let{router:e}=gD("useSubmit"),{basename:t}=E.useContext(ii),n=I9();return E.useCallback(async(r,a={})=>{let{action:s,method:c,encType:f,formData:d,body:p}=Q9(r,t);if(a.navigate===!1){let h=a.fetcherKey||bq();await e.fetch(h,n,a.action||s,{preventScrollReset:a.preventScrollReset,formData:d,body:p,formMethod:a.method||c,formEncType:a.encType||f,flushSync:a.flushSync})}else await e.navigate(a.action||s,{preventScrollReset:a.preventScrollReset,formData:d,body:p,formMethod:a.method||c,formEncType:a.encType||f,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function xq(e,{relative:t}={}){let{basename:n}=E.useContext(ii),r=E.useContext(oi);Ut(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),s={...lf(e||".",{relative:t})},c=Di();if(e==null){s.search=c.search;let f=new URLSearchParams(s.search),d=f.getAll("index");if(d.some(h=>h==="")){f.delete("index"),d.filter(g=>g).forEach(g=>f.append("index",g));let h=f.toString();s.search=h?`?${h}`:""}}return(!e||e===".")&&a.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:ao([n,s.pathname])),Uu(s)}function Tq(e,{relative:t}={}){let n=E.useContext(oD);Ut(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=gD("useViewTransitionState"),a=lf(e,{relative:t});if(!n.isTransitioning)return!1;let s=ho(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=ho(n.nextLocation.pathname,r)||n.nextLocation.pathname;return eh(a.pathname,c)!=null||eh(a.pathname,s)!=null}var Eq="firebase",wq="12.3.0";/**
1161
+ * @license
1162
+ * Copyright 2020 Google LLC
1163
+ *
1164
+ * Licensed under the Apache License, Version 2.0 (the "License");
1165
+ * you may not use this file except in compliance with the License.
1166
+ * You may obtain a copy of the License at
1167
+ *
1168
+ * http://www.apache.org/licenses/LICENSE-2.0
1169
+ *
1170
+ * Unless required by applicable law or agreed to in writing, software
1171
+ * distributed under the License is distributed on an "AS IS" BASIS,
1172
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1173
+ * See the License for the specific language governing permissions and
1174
+ * limitations under the License.
1175
+ */Zo(Eq,wq,"app");const Cq={apiKey:"AIzaSyDXrZ73I7V8SPVt3zBgVj5avaMayzgCCoM",authDomain:"fir-f1106.firebaseapp.com",projectId:"fir-f1106",storageBucket:"fir-f1106.firebasestorage.app",messagingSenderId:"813698704964",appId:"1:813698704964:web:b122c75c3e48824449fe11"},Aq=AM(Cq),Oq=R7(Aq);var Pe=(e=>(e.ROOT="Root",e.ADMIN="Admin",e.HR="HR",e.User="User",e.CANDIDATE="Candidate",e.EMPLOYEE="Employee",e.C_B="C&B",e))(Pe||{}),Pv=(e=>(e.MY_PROPOSAL="Đề xuất của tôi",e.NEED_APPROVE="Đề xuất cần phê duyệt",e.ALL="Tất cả",e))(Pv||{}),Re=(e=>(e.PUBLIC="PUBLIC",e.PROTECTED="PROTECTED",e))(Re||{});const dr=[Pe.ADMIN,Pe.HR,Pe.User,Pe.C_B,Pe.ROOT],nn={AUTH:{path:"/",type:Re.PUBLIC,allowUserTypes:[]},ERROR:{path:"/error",type:Re.PUBLIC,allowUserTypes:[]},NOT_FOUND:{path:"/*",type:Re.PUBLIC,allowUserTypes:[]},TEST_COMPONENT:{path:"/test-component",type:Re.PUBLIC,allowUserTypes:[]},DASHBOARD:{path:"/dashboard/",type:Re.PROTECTED,allowUserTypes:dr}},hi={DASHBOARD:{type:Re.PROTECTED},PROJECT_DASHBOARD:{type:Re.PROTECTED},JOB_DASHBOARD:{path:"job-dashboard",type:Re.PROTECTED,allowUserTypes:[Pe.ADMIN,Pe.HR,Pe.ROOT]},PROJECT_TASK_PROCESS:{type:Re.PROTECTED},JOB:{type:Re.PROTECTED,allowUserTypes:[Pe.ADMIN,Pe.HR,Pe.ROOT]},JOB_RECRUITMENT:{type:Re.PROTECTED,allowUserTypes:[Pe.ADMIN,Pe.User,Pe.C_B,Pe.ROOT]},JOB_RECRUITMENT_DETAIL:{type:Re.PROTECTED,allowUserTypes:[Pe.ADMIN,Pe.User,Pe.C_B,Pe.ROOT]},JOB_DETAIL:{type:Re.PROTECTED,allowUserTypes:[Pe.ADMIN,Pe.C_B,Pe.HR,Pe.ROOT]},JOB_TITLE:{type:Re.PROTECTED},JOB_BANNER:{type:Re.PROTECTED,allowUserTypes:[Pe.ADMIN,Pe.HR,Pe.ROOT]},JOB_SOCIAL:{type:Re.PROTECTED,allowUserTypes:[Pe.ADMIN,Pe.HR,Pe.ROOT]},JOB_RECRUITMENT_HISTORY:{type:Re.PROTECTED,allowUserTypes:[Pe.ADMIN,Pe.User,Pe.C_B,Pe.ROOT]},INDUSTRY:{type:Re.PROTECTED},EMAIL_TEMPLATE:{type:Re.PROTECTED,allowUserTypes:[Pe.ADMIN,Pe.HR,Pe.ROOT]},FAQ:{type:Re.PROTECTED,allowUserTypes:[Pe.ADMIN,Pe.HR,Pe.ROOT]},SALARY:{type:Re.PROTECTED},APPLICATION:{type:Re.PROTECTED},APPLICATION_OPERATOR:{type:Re.PROTECTED,allowUserTypes:[Pe.ADMIN,Pe.HR,Pe.ROOT]},PROJECT_TASK:{path:"project-task",type:Re.PROTECTED},CREATE_PROJECT:{type:Re.PROTECTED},DETAIL_PROJECT:{type:Re.PROTECTED},CREATE_TASK:{type:Re.PROTECTED},ALL_PROJECT_OF_DIVISION:{type:Re.PROTECTED},ORG_UNIT_TREE:{type:Re.PROTECTED},ORG_UNIT_RESTORE:{type:Re.PROTECTED},ORG_STRUCTURE:{path:"org-structure",type:Re.PROTECTED},POSITION_TREE:{type:Re.PROTECTED},POSITION_RESTORE:{type:Re.PROTECTED},USER:{path:"user-list",type:Re.PROTECTED},USER_RESTORE:{type:Re.PROTECTED},ACCOUNT:{path:"account",type:Re.PROTECTED},NOTIFICATION:{type:Re.PROTECTED},CHECK_IN:{path:"check-in",type:Re.PROTECTED},PAYROLL:{path:"payroll",type:Re.PROTECTED},TRAINING:{path:"training",type:Re.PROTECTED},INSIDE:{path:"inside",type:Re.PROTECTED},PROPOSAL_SELECTOR:{type:Re.PROTECTED},PROPOSAL_WORKFLOW_PROJECT:{type:Re.PROTECTED},PROPOSAL_WORKFLOW_JOB:{type:Re.PROTECTED},PROPOSAL_WORKFLOW_USER:{type:Re.PROTECTED},CHAT:{path:"chat",type:Re.PROTECTED}},Rq={MEETING_SETTING:{path:"meeting-setting"}},_q={PROPOSAL_JOB_RECRUITMENT:{path:"request-job",type:Re.PROTECTED},PROPOSAL_WORKFLOW:{type:Re.PROTECTED},PROPOSAL_PROJECT_TASK:{type:Re.PROTECTED},PROPOSAL_USER_TRANSFER:{type:Re.PROTECTED},PROPOSAL_USER_APPOINTMENT:{type:Re.PROTECTED},PROPOSAL_USER_EXEMPTION:{type:Re.PROTECTED},PROPOSAL_USER_WORKFLOW_APPOINTMENT:{type:Re.PROTECTED},PROPOSAL_USER_WORKFLOW_TRANSFER:{type:Re.PROTECTED},PROPOSAL_USER_WORKFLOW_DEMOTION:{type:Re.PROTECTED}},Mq={MY_TASK:{path:"my-task",type:Re.PROTECTED},MY_WORK:{type:Re.PROTECTED}};var Vt=(e=>(e.ALL="all",e.HRM="hrm",e.WORKFLOW="workflow",e.PLATFORM_INFO="platform-info",e))(Vt||{});const LS=[{key:"sevago-e-hiring",title:"Sevago E-Hiring",caption:"Tuyển Dụng",icon:"/images/system/sevago-e-hiring.svg",path:hi.JOB_DASHBOARD.path,category:Vt.HRM,allowUserTypes:[Pe.ADMIN,Pe.User,Pe.C_B,Pe.HR,Pe.ROOT]},{key:"sevago-hrm",title:"Sevago HRM",caption:"Nhân Sự",icon:"/images/system/sevago-hrm.svg",path:hi.USER.path,category:Vt.HRM,allowUserTypes:dr},{key:"sevago-payroll",title:"Sevago Payroll",caption:"Tính Lương",icon:"/images/system/sevago-payroll.svg",path:hi.PAYROLL.path,category:Vt.HRM,allowUserTypes:[Pe.ADMIN,Pe.HR,Pe.ROOT]},{key:"sevago-chart",title:"Sevago Sơ đồ",caption:"Sơ đồ",icon:"/images/system/sevago-chart.svg",path:hi.ORG_STRUCTURE.path,category:Vt.HRM,allowUserTypes:dr},{key:"sevago-checkin",title:"Sevago Checkin",caption:"Chấm Công",icon:"/images/system/sevago-checkin.svg",path:hi.CHECK_IN.path,category:Vt.HRM,allowUserTypes:dr},{key:"sevago-project",title:"Sevago Project",caption:"Dự Án",icon:"/images/system/sevago-project.svg",path:hi.PROJECT_TASK.path,category:Vt.WORKFLOW,allowUserTypes:dr},{key:"sevago-request",title:"Sevago Request",caption:"Đề Xuất",icon:"/images/system/sevago-request.svg",path:_q.PROPOSAL_JOB_RECRUITMENT.path,category:Vt.WORKFLOW,allowUserTypes:dr},{key:"sevago-process",title:"Sevago Process",caption:"Quy trình",icon:"/images/system/sevago.svg",path:nn.NOT_FOUND.path,category:Vt.WORKFLOW,allowUserTypes:dr},{key:"sevago-tracking",title:"Sevago Tracking",caption:"Tiến trình",icon:"/images/system/sevago.svg",path:Mq.MY_TASK.path,category:Vt.WORKFLOW,allowUserTypes:dr},{key:"sevago-message",title:"Sevago Message",caption:"Chat nhóm",icon:"/images/system/sevago-message.svg",path:hi.CHAT.path,category:Vt.PLATFORM_INFO,allowUserTypes:dr},{key:"sevago-training",title:"Sevago Training",caption:"Đào Tạo",icon:"/images/system/sevago-training.svg",path:hi.TRAINING.path,category:Vt.PLATFORM_INFO,allowUserTypes:dr},{key:"sevago-form",title:"Sevago Form",caption:"Biểu mẫu",icon:"/images/system/sevago-form.svg",path:nn.NOT_FOUND.path,category:Vt.PLATFORM_INFO,allowUserTypes:dr},{key:"sevago-inside",title:"Sevago Inside",caption:"Truyền Thông và CSNV",icon:"/images/system/sevago-inside.svg",path:hi.INSIDE.path,category:Vt.PLATFORM_INFO,allowUserTypes:dr},{key:"sevago-booking",title:"Sevago Booking",caption:"Cuộc họp",icon:"/images/system/sevago-inside.svg",path:Rq.MEETING_SETTING.path,category:Vt.PLATFORM_INFO,allowUserTypes:dr}];var Ja=(e=>(e.DARK="dark",e.LIGHT="light",e))(Ja||{});const Dq={palette:{mode:Ja.DARK,primary:{main:"#388e8e",light:"#1de9b6",dark:"#00796b",contrastText:"#0c0c0c"},secondary:{main:"#D433FF",light:"#DC4BFF",dark:"#BE29E6",contrastText:"#0c0c0c"},error:{main:"#FF4444",light:"#FF6666",dark:"#CC0000",contrastText:"#0c0c0c"},warning:{main:"#ffc107",light:"#ffc71f",dark:"#e5ad06",contrastText:"#0c0c0c"},info:{main:"#3096F0",light:"#5FAAF0",dark:"#2A88E0",contrastText:"#0c0c0c"},success:{main:"#3DAF42",light:"#3CB353",dark:"#379D3A",contrastText:"#0c0c0c"},text:{primary:"#fdfdfd",secondary:"#b4b4b4",disabled:"#606060"},divider:"#545454",action:{active:"#b4b4b4",hover:"#0c0c0c",hoverOpacity:.05,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:"none",disabled:"#2f2f2f",disabledBackground:"#414141",disabledOpacity:0,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:0,activatedOpacity:0},background:{paper:"#1e1e1e",default:"#010101"}},shadows:["none","rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px","rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px","rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px","rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px","rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px","rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px","rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px","rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px","rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px","rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px","rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px","rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px","rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px","rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px","rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px","rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px","rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px","rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px","rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px","rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px","rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px","rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px","rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px","rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px"]},Pq={palette:{mode:Ja.LIGHT,primary:{main:"#07554b",light:"#018775",dark:"#043731",contrastText:"#fdfdfd"},secondary:{main:"#bf00e0",light:"#c519e3",dark:"#ab00c9",contrastText:"#fdfdfd"},error:{main:"#BB0000",light:"#DD0000",dark:"#9A0000",contrastText:"#fdfdfd"},warning:{main:"#ffc107",light:"#ffc71f",dark:"#e5ad06",contrastText:"#fdfdfd"},info:{main:"#105089",light:"#276194",dark:"#0e487b",contrastText:"#fdfdfd"},success:{main:"#2e7d32",light:"#428a46",dark:"#29702d",contrastText:"#fdfdfd"},text:{primary:"#0c0c0c",secondary:"#242424",disabled:"#a7a7a7"},divider:"#b3b3b3",action:{active:"#242424",hover:"#eaeaea",hoverOpacity:.05,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:"none",disabled:"#d4d4d4",disabledBackground:"#b7b7b7",disabledOpacity:0,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:0,activatedOpacity:0},background:{paper:"#fafafa",default:"#ffffff"}},shadows:["none","rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px","rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px","rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px","rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px","rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px","rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px","rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px","rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px","rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px","rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px","rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px","rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px","rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px","rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px","rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px","rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px","rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px","rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px","rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px","rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px","rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px","rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px","rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px","rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px"]},kq={typography:{fontFamily:"Inter",fontWeightRegular:400,fontWeightMedium:550,fontWeightBold:600,h1:{fontWeight:900,fontSize:40},h2:{fontWeight:700,fontSize:35},h3:{fontWeight:600,fontSize:30},h4:{fontWeight:600,fontSize:25},h5:{fontSize:22,fontWeight:600},h6:{fontSize:18,fontWeight:550},subtitle2:{fontSize:15,fontWeight:550},subtitle1:{fontWeight:550,fontSize:14},body2:{fontWeight:500,fontSize:14},body1:{fontWeight:400,fontSize:14},caption:{fontSize:12,fontWeight:300},overline:{textTransform:"none",fontSize:12,fontWeight:300}}},Yo={dark:Dq,light:Pq,OTHER:kq},yD={80:"CC",30:"4D"},Nq=300,Lq="0.2s",$q="40px",Bq="40px",QA="24px",vD="16px",JA="12px",bD="8px",th="6px",kv="12px",Iq="10px",jq="6px",zq="8px",Uq="3px",Fq="37.13px",Vq={FONT_SIZE_LABEL:15},Hq={large:"22px",medium:"19px",small:"12px"},qq={large:40,medium:22.5,small:16},Gq={large:"h6",medium:"subtitle1",small:"caption"},Nv={large:"12px",medium:"8px",small:"4px"},Yq="rgba(0, 0, 0, 0.12)",We={ANIMATION_TIME:Nq,TRANSITION_TIME:Lq,HEIGHT_LOGO_DEFAULT:$q,HEIGHT_IMAGE_DEFAULT:Bq,PADDING_GAP_LAYOUT:vD,PADDING_GAP_ITEM:bD,PADDING_GAP_ITEM_SMALL:th,BORDER_RADIUS_ELEMENT_WRAPPER:kv,BORDER_RADIUS_ELEMENT:Iq,BORDER_RADIUS_ELEMENT_SMALL:jq,BORDER_RADIUS_ELEMENT_TAG:Uq,HEIGHT_DEFAULT_TEXT_FIELD_BUTTON:Fq,TEXT_FIELD:Vq,FONT_SIZE_ICON:Hq,FONT_SIZE_LOADING:qq,VARIANT_BY_SIZE:Gq,GAP_ICON_CONTENT_BY_SIZE:Nv},SD={textSm:{regular:{fontFamily:'"Inter",sans-serif',fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"22px",letterSpacing:"0%",verticalAlign:"middle"},semiBold:{fontFamily:'"Inter",sans-serif',fontWeight:600,fontStyle:"normal",fontSize:"14px",lineHeight:"22px",letterSpacing:"0%",verticalAlign:"middle"}}},so=e=>({display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical",WebkitLineClamp:e});var $S="persist:",BS="persist/FLUSH",Qh="persist/REHYDRATE",IS="persist/PAUSE",jS="persist/PERSIST",zS="persist/PURGE",US="persist/REGISTER",Wq=-1;function yp(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?yp=function(n){return typeof n}:yp=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},yp(e)}function eO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Kq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eO(n,!0).forEach(function(r){Xq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eO(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zq(e,t,n,r){r.debug;var a=Kq({},n);return e&&yp(e)==="object"&&Object.keys(e).forEach(function(s){s!=="_persist"&&t[s]===n[s]&&(a[s]=e[s])}),a}function Qq(e){var t=e.blacklist||null,n=e.whitelist||null,r=e.transforms||[],a=e.throttle||0,s="".concat(e.keyPrefix!==void 0?e.keyPrefix:$S).concat(e.key),c=e.storage,f;e.serialize===!1?f=function(O){return O}:typeof e.serialize=="function"?f=e.serialize:f=Jq;var d=e.writeFailHandler||null,p={},h={},g=[],v=null,x=null,b=function(O){Object.keys(O).forEach(function(M){w(M)&&p[M]!==O[M]&&g.indexOf(M)===-1&&g.push(M)}),Object.keys(p).forEach(function(M){O[M]===void 0&&w(M)&&g.indexOf(M)===-1&&p[M]!==void 0&&g.push(M)}),v===null&&(v=setInterval(S,a)),p=O};function S(){if(g.length===0){v&&clearInterval(v),v=null;return}var _=g.shift(),O=r.reduce(function(M,L){return L.in(M,_,p)},p[_]);if(O!==void 0)try{h[_]=f(O)}catch(M){console.error("redux-persist/createPersistoid: error serializing state",M)}else delete h[_];g.length===0&&T()}function T(){Object.keys(h).forEach(function(_){p[_]===void 0&&delete h[_]}),x=c.setItem(s,f(h)).catch(R)}function w(_){return!(n&&n.indexOf(_)===-1&&_!=="_persist"||t&&t.indexOf(_)!==-1)}function R(_){d&&d(_)}var A=function(){for(;g.length!==0;)S();return x||Promise.resolve()};return{update:b,flush:A}}function Jq(e){return JSON.stringify(e)}function eG(e){var t=e.transforms||[],n="".concat(e.keyPrefix!==void 0?e.keyPrefix:$S).concat(e.key),r=e.storage;e.debug;var a;return e.deserialize===!1?a=function(c){return c}:typeof e.deserialize=="function"?a=e.deserialize:a=tG,r.getItem(n).then(function(s){if(s)try{var c={},f=a(s);return Object.keys(f).forEach(function(d){c[d]=t.reduceRight(function(p,h){return h.out(p,d,f)},a(f[d]))}),c}catch(d){throw d}else return})}function tG(e){return JSON.parse(e)}function nG(e){var t=e.storage,n="".concat(e.keyPrefix!==void 0?e.keyPrefix:$S).concat(e.key);return t.removeItem(n,rG)}function rG(e){}function tO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function eo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tO(n,!0).forEach(function(r){iG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tO(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oG(e,t){if(e==null)return{};var n=aG(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function aG(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,s;for(s=0;s<r.length;s++)a=r[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}var sG=5e3;function lG(e,t){var n=e.version!==void 0?e.version:Wq;e.debug;var r=e.stateReconciler===void 0?Zq:e.stateReconciler,a=e.getStoredState||eG,s=e.timeout!==void 0?e.timeout:sG,c=null,f=!1,d=!0,p=function(g){return g._persist.rehydrated&&c&&!d&&c.update(g),g};return function(h,g){var v=h||{},x=v._persist,b=oG(v,["_persist"]),S=b;if(g.type===jS){var T=!1,w=function(B,z){T||(g.rehydrate(e.key,B,z),T=!0)};if(s&&setTimeout(function(){!T&&w(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},s),d=!1,c||(c=Qq(e)),x)return eo({},t(S,g),{_persist:x});if(typeof g.rehydrate!="function"||typeof g.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return g.register(e.key),a(e).then(function(L){var B=e.migrate||function(z,V){return Promise.resolve(z)};B(L,n).then(function(z){w(z)},function(z){w(void 0,z)})},function(L){w(void 0,L)}),eo({},t(S,g),{_persist:{version:n,rehydrated:!1}})}else{if(g.type===zS)return f=!0,g.result(nG(e)),eo({},t(S,g),{_persist:x});if(g.type===BS)return g.result(c&&c.flush()),eo({},t(S,g),{_persist:x});if(g.type===IS)d=!0;else if(g.type===Qh){if(f)return eo({},S,{_persist:eo({},x,{rehydrated:!0})});if(g.key===e.key){var R=t(S,g),A=g.payload,_=r!==!1&&A!==void 0?r(A,h,R,e):R,O=eo({},_,{_persist:eo({},x,{rehydrated:!0})});return p(O)}}}if(!x)return t(h,g);var M=t(S,g);return M===S?h:p(eo({},M,{_persist:x}))}}function An(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var cG=typeof Symbol=="function"&&Symbol.observable||"@@observable",nO=cG,f0=()=>Math.random().toString(36).substring(7).split("").join("."),uG={INIT:`@@redux/INIT${f0()}`,REPLACE:`@@redux/REPLACE${f0()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${f0()}`},nh=uG;function FS(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function VS(e,t,n){if(typeof e!="function")throw new Error(An(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(An(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(An(1));return n(VS)(e,t)}let r=e,a=t,s=new Map,c=s,f=0,d=!1;function p(){c===s&&(c=new Map,s.forEach((T,w)=>{c.set(w,T)}))}function h(){if(d)throw new Error(An(3));return a}function g(T){if(typeof T!="function")throw new Error(An(4));if(d)throw new Error(An(5));let w=!0;p();const R=f++;return c.set(R,T),function(){if(w){if(d)throw new Error(An(6));w=!1,p(),c.delete(R),s=null}}}function v(T){if(!FS(T))throw new Error(An(7));if(typeof T.type>"u")throw new Error(An(8));if(typeof T.type!="string")throw new Error(An(17));if(d)throw new Error(An(9));try{d=!0,a=r(a,T)}finally{d=!1}return(s=c).forEach(R=>{R()}),T}function x(T){if(typeof T!="function")throw new Error(An(10));r=T,v({type:nh.REPLACE})}function b(){const T=g;return{subscribe(w){if(typeof w!="object"||w===null)throw new Error(An(11));function R(){const _=w;_.next&&_.next(h())}return R(),{unsubscribe:T(R)}},[nO](){return this}}}return v({type:nh.INIT}),{dispatch:v,subscribe:g,getState:h,replaceReducer:x,[nO]:b}}function fG(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:nh.INIT})>"u")throw new Error(An(12));if(typeof n(void 0,{type:nh.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(An(13))})}function xD(e){const t=Object.keys(e),n={};for(let s=0;s<t.length;s++){const c=t[s];typeof e[c]=="function"&&(n[c]=e[c])}const r=Object.keys(n);let a;try{fG(n)}catch(s){a=s}return function(c={},f){if(a)throw a;let d=!1;const p={};for(let h=0;h<r.length;h++){const g=r[h],v=n[g],x=c[g],b=v(x,f);if(typeof b>"u")throw f&&f.type,new Error(An(14));p[g]=b,d=d||b!==x}return d=d||r.length!==Object.keys(c).length,d?p:c}}function rh(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function dG(...e){return t=>(n,r)=>{const a=t(n,r);let s=()=>{throw new Error(An(15))};const c={getState:a.getState,dispatch:(d,...p)=>s(d,...p)},f=e.map(d=>d(c));return s=rh(...f)(a.dispatch),{...a,dispatch:s}}}function pG(e){return FS(e)&&"type"in e&&typeof e.type=="string"}function rO(e){return gG(e)||mG(e)||hG()}function hG(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function mG(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function gG(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function iO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Lv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iO(n,!0).forEach(function(r){yG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iO(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var TD={registry:[],bootstrapped:!1},vG=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:TD,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case US:return Lv({},t,{registry:[].concat(rO(t.registry),[n.key])});case Qh:var r=t.registry.indexOf(n.key),a=rO(t.registry);return a.splice(r,1),Lv({},t,{registry:a,bootstrapped:a.length===0});default:return t}};function bG(e,t,n){var r=VS(vG,TD,void 0),a=function(d){r.dispatch({type:US,key:d})},s=function(d,p,h){var g={type:Qh,payload:p,err:h,key:d};e.dispatch(g),r.dispatch(g)},c=Lv({},r,{purge:function(){var d=[];return e.dispatch({type:zS,result:function(h){d.push(h)}}),Promise.all(d)},flush:function(){var d=[];return e.dispatch({type:BS,result:function(h){d.push(h)}}),Promise.all(d)},pause:function(){e.dispatch({type:IS})},persist:function(){e.dispatch({type:jS,register:a,rehydrate:s})}});return c.persist(),c}var ED=Symbol.for("immer-nothing"),oO=Symbol.for("immer-draftable"),br=Symbol.for("immer-state");function Jr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var $l=Object.getPrototypeOf;function us(e){return!!e&&!!e[br]}function mo(e){return e?wD(e)||Array.isArray(e)||!!e[oO]||!!e.constructor?.[oO]||cf(e)||em(e):!1}var SG=Object.prototype.constructor.toString();function wD(e){if(!e||typeof e!="object")return!1;const t=$l(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===SG}function ih(e,t){Jh(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Jh(e){const t=e[br];return t?t.type_:Array.isArray(e)?1:cf(e)?2:em(e)?3:0}function $v(e,t){return Jh(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function CD(e,t,n){const r=Jh(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function xG(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function cf(e){return e instanceof Map}function em(e){return e instanceof Set}function za(e){return e.copy_||e.base_}function Bv(e,t){if(cf(e))return new Map(e);if(em(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=wD(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[br];let a=Reflect.ownKeys(r);for(let s=0;s<a.length;s++){const c=a[s],f=r[c];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(r[c]={configurable:!0,writable:!0,enumerable:f.enumerable,value:e[c]})}return Object.create($l(e),r)}else{const r=$l(e);if(r!==null&&n)return{...e};const a=Object.create(r);return Object.assign(a,e)}}function HS(e,t=!1){return tm(e)||us(e)||!mo(e)||(Jh(e)>1&&Object.defineProperties(e,{set:{value:qd},add:{value:qd},clear:{value:qd},delete:{value:qd}}),Object.freeze(e),t&&Object.values(e).forEach(n=>HS(n,!0))),e}function qd(){Jr(2)}function tm(e){return Object.isFrozen(e)}var TG={};function fs(e){const t=TG[e];return t||Jr(0,e),t}var Fu;function AD(){return Fu}function EG(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function aO(e,t){t&&(fs("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Iv(e){jv(e),e.drafts_.forEach(wG),e.drafts_=null}function jv(e){e===Fu&&(Fu=e.parent_)}function sO(e){return Fu=EG(Fu,e)}function wG(e){const t=e[br];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function lO(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[br].modified_&&(Iv(t),Jr(4)),mo(e)&&(e=oh(t,e),t.parent_||ah(t,e)),t.patches_&&fs("Patches").generateReplacementPatches_(n[br].base_,e,t.patches_,t.inversePatches_)):e=oh(t,n,[]),Iv(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ED?e:void 0}function oh(e,t,n){if(tm(t))return t;const r=t[br];if(!r)return ih(t,(a,s)=>cO(e,r,t,a,s,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return ah(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const a=r.copy_;let s=a,c=!1;r.type_===3&&(s=new Set(a),a.clear(),c=!0),ih(s,(f,d)=>cO(e,r,a,f,d,n,c)),ah(e,a,!1),n&&e.patches_&&fs("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function cO(e,t,n,r,a,s,c){if(us(a)){const f=s&&t&&t.type_!==3&&!$v(t.assigned_,r)?s.concat(r):void 0,d=oh(e,a,f);if(CD(n,r,d),us(d))e.canAutoFreeze_=!1;else return}else c&&n.add(a);if(mo(a)&&!tm(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;oh(e,a),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(cf(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&ah(e,a)}}function ah(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&HS(t,n)}function CG(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:AD(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=r,s=qS;n&&(a=[r],s=Vu);const{revoke:c,proxy:f}=Proxy.revocable(a,s);return r.draft_=f,r.revoke_=c,f}var qS={get(e,t){if(t===br)return e;const n=za(e);if(!$v(n,t))return AG(e,n,t);const r=n[t];return e.finalized_||!mo(r)?r:r===d0(e.base_,t)?(p0(e),e.copy_[t]=Uv(r,e)):r},has(e,t){return t in za(e)},ownKeys(e){return Reflect.ownKeys(za(e))},set(e,t,n){const r=OD(za(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const a=d0(za(e),t),s=a?.[br];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(xG(n,a)&&(n!==void 0||$v(e.base_,t)))return!0;p0(e),zv(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return d0(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,p0(e),zv(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=za(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Jr(11)},getPrototypeOf(e){return $l(e.base_)},setPrototypeOf(){Jr(12)}},Vu={};ih(qS,(e,t)=>{Vu[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Vu.deleteProperty=function(e,t){return Vu.set.call(this,e,t,void 0)};Vu.set=function(e,t,n){return qS.set.call(this,e[0],t,n,e[0])};function d0(e,t){const n=e[br];return(n?za(n):e)[t]}function AG(e,t,n){const r=OD(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}function OD(e,t){if(!(t in e))return;let n=$l(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=$l(n)}}function zv(e){e.modified_||(e.modified_=!0,e.parent_&&zv(e.parent_))}function p0(e){e.copy_||(e.copy_=Bv(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var OG=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const s=n;n=t;const c=this;return function(d=s,...p){return c.produce(d,h=>n.call(this,h,...p))}}typeof n!="function"&&Jr(6),r!==void 0&&typeof r!="function"&&Jr(7);let a;if(mo(t)){const s=sO(this),c=Uv(t,void 0);let f=!0;try{a=n(c),f=!1}finally{f?Iv(s):jv(s)}return aO(s,r),lO(a,s)}else if(!t||typeof t!="object"){if(a=n(t),a===void 0&&(a=t),a===ED&&(a=void 0),this.autoFreeze_&&HS(a,!0),r){const s=[],c=[];fs("Patches").generateReplacementPatches_(t,a,s,c),r(s,c)}return a}else Jr(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(c,...f)=>this.produceWithPatches(c,d=>t(d,...f));let r,a;return[this.produce(t,n,(c,f)=>{r=c,a=f}),r,a]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){mo(e)||Jr(8),us(e)&&(e=RG(e));const t=sO(this),n=Uv(e,void 0);return n[br].isManual_=!0,jv(t),n}finishDraft(e,t){const n=e&&e[br];(!n||!n.isManual_)&&Jr(9);const{scope_:r}=n;return aO(r,t),lO(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const a=t[n];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}n>-1&&(t=t.slice(n+1));const r=fs("Patches").applyPatches_;return us(e)?r(e,t):this.produce(e,a=>r(a,t))}};function Uv(e,t){const n=cf(e)?fs("MapSet").proxyMap_(e,t):em(e)?fs("MapSet").proxySet_(e,t):CG(e,t);return(t?t.scope_:AD()).drafts_.push(n),n}function RG(e){return us(e)||Jr(10,e),RD(e)}function RD(e){if(!mo(e)||tm(e))return e;const t=e[br];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Bv(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Bv(e,!0);return ih(n,(r,a)=>{CD(n,r,RD(a))}),t&&(t.finalized_=!1),n}var _G=new OG,_D=_G.produce;function MD(e){return({dispatch:n,getState:r})=>a=>s=>typeof s=="function"?s(n,r,e):a(s)}var MG=MD(),DG=MD,PG=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?rh:rh.apply(null,arguments)},kG=e=>e&&typeof e.match=="function";function Su(e,t){function n(...r){if(t){let a=t(...r);if(!a)throw new Error(lo(0));return{type:e,payload:a.payload,..."meta"in a&&{meta:a.meta},..."error"in a&&{error:a.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>pG(r)&&r.type===e,n}var DD=class fu extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,fu.prototype)}static get[Symbol.species](){return fu}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new fu(...t[0].concat(this)):new fu(...t.concat(this))}};function uO(e){return mo(e)?_D(e,()=>{}):e}function Gd(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function NG(e){return typeof e=="boolean"}var LG=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:a=!0,actionCreatorCheck:s=!0}=t??{};let c=new DD;return n&&(NG(n)?c.push(MG):c.push(DG(n.extraArgument))),c},$G="RTK_autoBatch",fO=e=>t=>{setTimeout(t,e)},BG=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let a=!0,s=!1,c=!1;const f=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:fO(10):e.type==="callback"?e.queueNotification:fO(e.timeout),p=()=>{c=!1,s&&(s=!1,f.forEach(h=>h()))};return Object.assign({},r,{subscribe(h){const g=()=>a&&h(),v=r.subscribe(g);return f.add(h),()=>{v(),f.delete(h)}},dispatch(h){try{return a=!h?.meta?.[$G],s=!a,s&&(c||(c=!0,d(p))),r.dispatch(h)}finally{a=!0}}})},IG=e=>function(n){const{autoBatch:r=!0}=n??{};let a=new DD(e);return r&&a.push(BG(typeof r=="object"?r:void 0)),a};function jG(e){const t=LG(),{reducer:n=void 0,middleware:r,devTools:a=!0,preloadedState:s=void 0,enhancers:c=void 0}=e||{};let f;if(typeof n=="function")f=n;else if(FS(n))f=xD(n);else throw new Error(lo(1));let d;typeof r=="function"?d=r(t):d=t();let p=rh;a&&(p=PG({trace:!1,...typeof a=="object"&&a}));const h=dG(...d),g=IG(h);let v=typeof c=="function"?c(g):g();const x=p(...v);return VS(f,s,x)}function PD(e){const t={},n=[];let r;const a={addCase(s,c){const f=typeof s=="string"?s:s.type;if(!f)throw new Error(lo(28));if(f in t)throw new Error(lo(29));return t[f]=c,a},addAsyncThunk(s,c){return c.pending&&(t[s.pending.type]=c.pending),c.rejected&&(t[s.rejected.type]=c.rejected),c.fulfilled&&(t[s.fulfilled.type]=c.fulfilled),c.settled&&n.push({matcher:s.settled,reducer:c.settled}),a},addMatcher(s,c){return n.push({matcher:s,reducer:c}),a},addDefaultCase(s){return r=s,a}};return e(a),[t,n,r]}function zG(e){return typeof e=="function"}function UG(e,t){let[n,r,a]=PD(t),s;if(zG(e))s=()=>uO(e());else{const f=uO(e);s=()=>f}function c(f=s(),d){let p=[n[d.type],...r.filter(({matcher:h})=>h(d)).map(({reducer:h})=>h)];return p.filter(h=>!!h).length===0&&(p=[a]),p.reduce((h,g)=>{if(g)if(us(h)){const x=g(h,d);return x===void 0?h:x}else{if(mo(h))return _D(h,v=>g(v,d));{const v=g(h,d);if(v===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}}return h},f)}return c.getInitialState=s,c}var FG=(e,t)=>kG(e)?e.match(t):e(t);function VG(...e){return t=>e.some(n=>FG(n,t))}var HG="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",qG=(e=21)=>{let t="",n=e;for(;n--;)t+=HG[Math.random()*64|0];return t},GG=["name","message","stack","code"],h0=class{constructor(e,t){this.payload=e,this.meta=t}_type},dO=class{constructor(e,t){this.payload=e,this.meta=t}_type},YG=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of GG)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},pO="External signal was aborted",Sr=(()=>{function e(t,n,r){const a=Su(t+"/fulfilled",(d,p,h,g)=>({payload:d,meta:{...g||{},arg:h,requestId:p,requestStatus:"fulfilled"}})),s=Su(t+"/pending",(d,p,h)=>({payload:void 0,meta:{...h||{},arg:p,requestId:d,requestStatus:"pending"}})),c=Su(t+"/rejected",(d,p,h,g,v)=>({payload:g,error:(r&&r.serializeError||YG)(d||"Rejected"),meta:{...v||{},arg:h,requestId:p,rejectedWithValue:!!g,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function f(d,{signal:p}={}){return(h,g,v)=>{const x=r?.idGenerator?r.idGenerator(d):qG(),b=new AbortController;let S,T;function w(A){T=A,b.abort()}p&&(p.aborted?w(pO):p.addEventListener("abort",()=>w(pO),{once:!0}));const R=(async function(){let A;try{let O=r?.condition?.(d,{getState:g,extra:v});if(KG(O)&&(O=await O),O===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const M=new Promise((L,B)=>{S=()=>{B({name:"AbortError",message:T||"Aborted"})},b.signal.addEventListener("abort",S)});h(s(x,d,r?.getPendingMeta?.({requestId:x,arg:d},{getState:g,extra:v}))),A=await Promise.race([M,Promise.resolve(n(d,{dispatch:h,getState:g,extra:v,requestId:x,signal:b.signal,abort:w,rejectWithValue:(L,B)=>new h0(L,B),fulfillWithValue:(L,B)=>new dO(L,B)})).then(L=>{if(L instanceof h0)throw L;return L instanceof dO?a(L.payload,x,d,L.meta):a(L,x,d)})])}catch(O){A=O instanceof h0?c(null,x,d,O.payload,O.meta):c(O,x,d)}finally{S&&b.signal.removeEventListener("abort",S)}return r&&!r.dispatchConditionRejection&&c.match(A)&&A.meta.condition||h(A),A})();return Object.assign(R,{abort:w,requestId:x,arg:d,unwrap(){return R.then(WG)}})}}return Object.assign(f,{pending:s,rejected:c,fulfilled:a,settled:VG(c,a),typePrefix:t})}return e.withTypes=()=>e,e})();function WG(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function KG(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var XG=Symbol.for("rtk-slice-createasyncthunk");function ZG(e,t){return`${e}/${t}`}function QG({creators:e}={}){const t=e?.asyncThunk?.[XG];return function(r){const{name:a,reducerPath:s=a}=r;if(!a)throw new Error(lo(11));const c=(typeof r.reducers=="function"?r.reducers(eY()):r.reducers)||{},f=Object.keys(c),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(A,_){const O=typeof A=="string"?A:A.type;if(!O)throw new Error(lo(12));if(O in d.sliceCaseReducersByType)throw new Error(lo(13));return d.sliceCaseReducersByType[O]=_,p},addMatcher(A,_){return d.sliceMatchers.push({matcher:A,reducer:_}),p},exposeAction(A,_){return d.actionCreators[A]=_,p},exposeCaseReducer(A,_){return d.sliceCaseReducersByName[A]=_,p}};f.forEach(A=>{const _=c[A],O={reducerName:A,type:ZG(a,A),createNotation:typeof r.reducers=="function"};nY(_)?iY(O,_,p,t):tY(O,_,p)});function h(){const[A={},_=[],O=void 0]=typeof r.extraReducers=="function"?PD(r.extraReducers):[r.extraReducers],M={...A,...d.sliceCaseReducersByType};return UG(r.initialState,L=>{for(let B in M)L.addCase(B,M[B]);for(let B of d.sliceMatchers)L.addMatcher(B.matcher,B.reducer);for(let B of _)L.addMatcher(B.matcher,B.reducer);O&&L.addDefaultCase(O)})}const g=A=>A,v=new Map,x=new WeakMap;let b;function S(A,_){return b||(b=h()),b(A,_)}function T(){return b||(b=h()),b.getInitialState()}function w(A,_=!1){function O(L){let B=L[A];return typeof B>"u"&&_&&(B=Gd(x,O,T)),B}function M(L=g){const B=Gd(v,_,()=>new WeakMap);return Gd(B,L,()=>{const z={};for(const[V,H]of Object.entries(r.selectors??{}))z[V]=JG(H,L,()=>Gd(x,L,T),_);return z})}return{reducerPath:A,getSelectors:M,get selectors(){return M(O)},selectSlice:O}}const R={name:a,reducer:S,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:T,...w(s),injectInto(A,{reducerPath:_,...O}={}){const M=_??s;return A.inject({reducerPath:M,reducer:S},O),{...R,...w(M,!0)}}};return R}}function JG(e,t,n,r){function a(s,...c){let f=t(s);return typeof f>"u"&&r&&(f=n()),e(f,...c)}return a.unwrapped=e,a}var GS=QG();function eY(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function tY({type:e,reducerName:t,createNotation:n},r,a){let s,c;if("reducer"in r){if(n&&!rY(r))throw new Error(lo(17));s=r.reducer,c=r.prepare}else s=r;a.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,c?Su(e,c):Su(e))}function nY(e){return e._reducerDefinitionType==="asyncThunk"}function rY(e){return e._reducerDefinitionType==="reducerWithPrepare"}function iY({type:e,reducerName:t},n,r,a){if(!a)throw new Error(lo(18));const{payloadCreator:s,fulfilled:c,pending:f,rejected:d,settled:p,options:h}=n,g=a(e,s,h);r.exposeAction(t,g),c&&r.addCase(g.fulfilled,c),f&&r.addCase(g.pending,f),d&&r.addCase(g.rejected,d),p&&r.addMatcher(g.settled,p),r.exposeCaseReducer(t,{fulfilled:c||Yd,pending:f||Yd,rejected:d||Yd,settled:p||Yd})}function Yd(){}function lo(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var tu={},Wd={},Kd={},hO;function oY(){if(hO)return Kd;hO=1,Kd.__esModule=!0,Kd.default=a;function e(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(f){return typeof f}:e=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},e(s)}function t(){}var n={getItem:t,setItem:t,removeItem:t};function r(s){if((typeof self>"u"?"undefined":e(self))!=="object"||!(s in self))return!1;try{var c=self[s],f="redux-persist ".concat(s," test");c.setItem(f,"test"),c.getItem(f),c.removeItem(f)}catch{return!1}return!0}function a(s){var c="".concat(s,"Storage");return r(c)?self[c]:n}return Kd}var mO;function aY(){if(mO)return Wd;mO=1,Wd.__esModule=!0,Wd.default=n;var e=t(oY());function t(r){return r&&r.__esModule?r:{default:r}}function n(r){var a=(0,e.default)(r);return{getItem:function(c){return new Promise(function(f,d){f(a.getItem(c))})},setItem:function(c,f){return new Promise(function(d,p){d(a.setItem(c,f))})},removeItem:function(c){return new Promise(function(f,d){f(a.removeItem(c))})}}}return Wd}var gO;function sY(){if(gO)return tu;gO=1,tu.__esModule=!0,tu.default=void 0;var e=t(aY());function t(r){return r&&r.__esModule?r:{default:r}}var n=(0,e.default)("local");return tu.default=n,tu}var lY=sY();const cY=Ri(lY),uY=Sr("CHANGE_MODE",e=>e===Ja.LIGHT?Ja.DARK:Ja.LIGHT),kD={mode:Ja.LIGHT},fY=GS({name:"system",initialState:kD,reducers:{},extraReducers:e=>{e.addCase(uY.fulfilled,(t,n)=>{t.mode=n.payload})}}),dY=fY.reducer;function ND(e,t){return function(){return e.apply(t,arguments)}}const{toString:pY}=Object.prototype,{getPrototypeOf:YS}=Object,{iterator:nm,toStringTag:LD}=Symbol,rm=(e=>t=>{const n=pY.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ai=e=>(e=e.toLowerCase(),t=>rm(t)===e),im=e=>t=>typeof t===e,{isArray:Yl}=Array,Bl=im("undefined");function uf(e){return e!==null&&!Bl(e)&&e.constructor!==null&&!Bl(e.constructor)&&er(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const $D=ai("ArrayBuffer");function hY(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&$D(e.buffer),t}const mY=im("string"),er=im("function"),BD=im("number"),ff=e=>e!==null&&typeof e=="object",gY=e=>e===!0||e===!1,vp=e=>{if(rm(e)!=="object")return!1;const t=YS(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(LD in e)&&!(nm in e)},yY=e=>{if(!ff(e)||uf(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},vY=ai("Date"),bY=ai("File"),SY=ai("Blob"),xY=ai("FileList"),TY=e=>ff(e)&&er(e.pipe),EY=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||er(e.append)&&((t=rm(e))==="formdata"||t==="object"&&er(e.toString)&&e.toString()==="[object FormData]"))},wY=ai("URLSearchParams"),[CY,AY,OY,RY]=["ReadableStream","Request","Response","Headers"].map(ai),_Y=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function df(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),Yl(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(uf(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),c=s.length;let f;for(r=0;r<c;r++)f=s[r],t.call(null,e[f],f,e)}}function ID(e,t){if(uf(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const Ya=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jD=e=>!Bl(e)&&e!==Ya;function Fv(){const{caseless:e,skipUndefined:t}=jD(this)&&this||{},n={},r=(a,s)=>{const c=e&&ID(n,s)||s;vp(n[c])&&vp(a)?n[c]=Fv(n[c],a):vp(a)?n[c]=Fv({},a):Yl(a)?n[c]=a.slice():(!t||!Bl(a))&&(n[c]=a)};for(let a=0,s=arguments.length;a<s;a++)arguments[a]&&df(arguments[a],r);return n}const MY=(e,t,n,{allOwnKeys:r}={})=>(df(t,(a,s)=>{n&&er(a)?e[s]=ND(a,n):e[s]=a},{allOwnKeys:r}),e),DY=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),PY=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},kY=(e,t,n,r)=>{let a,s,c;const f={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),s=a.length;s-- >0;)c=a[s],(!r||r(c,e,t))&&!f[c]&&(t[c]=e[c],f[c]=!0);e=n!==!1&&YS(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},NY=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},LY=e=>{if(!e)return null;if(Yl(e))return e;let t=e.length;if(!BD(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},$Y=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&YS(Uint8Array)),BY=(e,t)=>{const r=(e&&e[nm]).call(e);let a;for(;(a=r.next())&&!a.done;){const s=a.value;t.call(e,s[0],s[1])}},IY=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},jY=ai("HTMLFormElement"),zY=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),yO=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),UY=ai("RegExp"),zD=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};df(n,(a,s)=>{let c;(c=t(a,s,e))!==!1&&(r[s]=c||a)}),Object.defineProperties(e,r)},FY=e=>{zD(e,(t,n)=>{if(er(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(er(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},VY=(e,t)=>{const n={},r=a=>{a.forEach(s=>{n[s]=!0})};return Yl(e)?r(e):r(String(e).split(t)),n},HY=()=>{},qY=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function GY(e){return!!(e&&er(e.append)&&e[LD]==="FormData"&&e[nm])}const YY=e=>{const t=new Array(10),n=(r,a)=>{if(ff(r)){if(t.indexOf(r)>=0)return;if(uf(r))return r;if(!("toJSON"in r)){t[a]=r;const s=Yl(r)?[]:{};return df(r,(c,f)=>{const d=n(c,a+1);!Bl(d)&&(s[f]=d)}),t[a]=void 0,s}}return r};return n(e,0)},WY=ai("AsyncFunction"),KY=e=>e&&(ff(e)||er(e))&&er(e.then)&&er(e.catch),UD=((e,t)=>e?setImmediate:t?((n,r)=>(Ya.addEventListener("message",({source:a,data:s})=>{a===Ya&&s===n&&r.length&&r.shift()()},!1),a=>{r.push(a),Ya.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",er(Ya.postMessage)),XY=typeof queueMicrotask<"u"?queueMicrotask.bind(Ya):typeof process<"u"&&process.nextTick||UD,ZY=e=>e!=null&&er(e[nm]),ne={isArray:Yl,isArrayBuffer:$D,isBuffer:uf,isFormData:EY,isArrayBufferView:hY,isString:mY,isNumber:BD,isBoolean:gY,isObject:ff,isPlainObject:vp,isEmptyObject:yY,isReadableStream:CY,isRequest:AY,isResponse:OY,isHeaders:RY,isUndefined:Bl,isDate:vY,isFile:bY,isBlob:SY,isRegExp:UY,isFunction:er,isStream:TY,isURLSearchParams:wY,isTypedArray:$Y,isFileList:xY,forEach:df,merge:Fv,extend:MY,trim:_Y,stripBOM:DY,inherits:PY,toFlatObject:kY,kindOf:rm,kindOfTest:ai,endsWith:NY,toArray:LY,forEachEntry:BY,matchAll:IY,isHTMLForm:jY,hasOwnProperty:yO,hasOwnProp:yO,reduceDescriptors:zD,freezeMethods:FY,toObjectSet:VY,toCamelCase:zY,noop:HY,toFiniteNumber:qY,findKey:ID,global:Ya,isContextDefined:jD,isSpecCompliantForm:GY,toJSONObject:YY,isAsyncFn:WY,isThenable:KY,setImmediate:UD,asap:XY,isIterable:ZY};function Ke(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}ne.inherits(Ke,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ne.toJSONObject(this.config),code:this.code,status:this.status}}});const FD=Ke.prototype,VD={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{VD[e]={value:e}});Object.defineProperties(Ke,VD);Object.defineProperty(FD,"isAxiosError",{value:!0});Ke.from=(e,t,n,r,a,s)=>{const c=Object.create(FD);ne.toFlatObject(e,c,function(h){return h!==Error.prototype},p=>p!=="isAxiosError");const f=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return Ke.call(c,f,d,n,r,a),e&&c.cause==null&&Object.defineProperty(c,"cause",{value:e,configurable:!0}),c.name=e&&e.name||"Error",s&&Object.assign(c,s),c};const QY=null;function Vv(e){return ne.isPlainObject(e)||ne.isArray(e)}function HD(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function vO(e,t,n){return e?e.concat(t).map(function(a,s){return a=HD(a),!n&&s?"["+a+"]":a}).join(n?".":""):t}function JY(e){return ne.isArray(e)&&!e.some(Vv)}const eW=ne.toFlatObject(ne,{},null,function(t){return/^is[A-Z]/.test(t)});function om(e,t,n){if(!ne.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,T){return!ne.isUndefined(T[S])});const r=n.metaTokens,a=n.visitor||h,s=n.dots,c=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(a))throw new TypeError("visitor must be a function");function p(b){if(b===null)return"";if(ne.isDate(b))return b.toISOString();if(ne.isBoolean(b))return b.toString();if(!d&&ne.isBlob(b))throw new Ke("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(b)||ne.isTypedArray(b)?d&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function h(b,S,T){let w=b;if(b&&!T&&typeof b=="object"){if(ne.endsWith(S,"{}"))S=r?S:S.slice(0,-2),b=JSON.stringify(b);else if(ne.isArray(b)&&JY(b)||(ne.isFileList(b)||ne.endsWith(S,"[]"))&&(w=ne.toArray(b)))return S=HD(S),w.forEach(function(A,_){!(ne.isUndefined(A)||A===null)&&t.append(c===!0?vO([S],_,s):c===null?S:S+"[]",p(A))}),!1}return Vv(b)?!0:(t.append(vO(T,S,s),p(b)),!1)}const g=[],v=Object.assign(eW,{defaultVisitor:h,convertValue:p,isVisitable:Vv});function x(b,S){if(!ne.isUndefined(b)){if(g.indexOf(b)!==-1)throw Error("Circular reference detected in "+S.join("."));g.push(b),ne.forEach(b,function(w,R){(!(ne.isUndefined(w)||w===null)&&a.call(t,w,ne.isString(R)?R.trim():R,S,v))===!0&&x(w,S?S.concat(R):[R])}),g.pop()}}if(!ne.isObject(e))throw new TypeError("data must be an object");return x(e),t}function bO(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function WS(e,t){this._pairs=[],e&&om(e,this,t)}const qD=WS.prototype;qD.append=function(t,n){this._pairs.push([t,n])};qD.toString=function(t){const n=t?function(r){return t.call(this,r,bO)}:bO;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function tW(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function GD(e,t,n){if(!t)return e;const r=n&&n.encode||tW;ne.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let s;if(a?s=a(t,n):s=ne.isURLSearchParams(t)?t.toString():new WS(t,n).toString(r),s){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class SO{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ne.forEach(this.handlers,function(r){r!==null&&t(r)})}}const YD={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},nW=typeof URLSearchParams<"u"?URLSearchParams:WS,rW=typeof FormData<"u"?FormData:null,iW=typeof Blob<"u"?Blob:null,oW={isBrowser:!0,classes:{URLSearchParams:nW,FormData:rW,Blob:iW},protocols:["http","https","file","blob","url","data"]},KS=typeof window<"u"&&typeof document<"u",Hv=typeof navigator=="object"&&navigator||void 0,aW=KS&&(!Hv||["ReactNative","NativeScript","NS"].indexOf(Hv.product)<0),sW=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",lW=KS&&window.location.href||"http://localhost",cW=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:KS,hasStandardBrowserEnv:aW,hasStandardBrowserWebWorkerEnv:sW,navigator:Hv,origin:lW},Symbol.toStringTag,{value:"Module"})),kn={...cW,...oW};function uW(e,t){return om(e,new kn.classes.URLSearchParams,{visitor:function(n,r,a,s){return kn.isNode&&ne.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function fW(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function dW(e){const t={},n=Object.keys(e);let r;const a=n.length;let s;for(r=0;r<a;r++)s=n[r],t[s]=e[s];return t}function WD(e){function t(n,r,a,s){let c=n[s++];if(c==="__proto__")return!0;const f=Number.isFinite(+c),d=s>=n.length;return c=!c&&ne.isArray(a)?a.length:c,d?(ne.hasOwnProp(a,c)?a[c]=[a[c],r]:a[c]=r,!f):((!a[c]||!ne.isObject(a[c]))&&(a[c]=[]),t(n,r,a[c],s)&&ne.isArray(a[c])&&(a[c]=dW(a[c])),!f)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(r,a)=>{t(fW(r),a,n,0)}),n}return null}function pW(e,t,n){if(ne.isString(e))try{return(t||JSON.parse)(e),ne.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const pf={transitional:YD,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,s=ne.isObject(t);if(s&&ne.isHTMLForm(t)&&(t=new FormData(t)),ne.isFormData(t))return a?JSON.stringify(WD(t)):t;if(ne.isArrayBuffer(t)||ne.isBuffer(t)||ne.isStream(t)||ne.isFile(t)||ne.isBlob(t)||ne.isReadableStream(t))return t;if(ne.isArrayBufferView(t))return t.buffer;if(ne.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return uW(t,this.formSerializer).toString();if((f=ne.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return om(f?{"files[]":t}:t,d&&new d,this.formSerializer)}}return s||a?(n.setContentType("application/json",!1),pW(t)):t}],transformResponse:[function(t){const n=this.transitional||pf.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(ne.isResponse(t)||ne.isReadableStream(t))return t;if(t&&ne.isString(t)&&(r&&!this.responseType||a)){const c=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t,this.parseReviver)}catch(f){if(c)throw f.name==="SyntaxError"?Ke.from(f,Ke.ERR_BAD_RESPONSE,this,null,this.response):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:kn.classes.FormData,Blob:kn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ne.forEach(["delete","get","head","post","put","patch"],e=>{pf.headers[e]={}});const hW=ne.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),mW=e=>{const t={};let n,r,a;return e&&e.split(`
1176
+ `).forEach(function(c){a=c.indexOf(":"),n=c.substring(0,a).trim().toLowerCase(),r=c.substring(a+1).trim(),!(!n||t[n]&&hW[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},xO=Symbol("internals");function nu(e){return e&&String(e).trim().toLowerCase()}function bp(e){return e===!1||e==null?e:ne.isArray(e)?e.map(bp):String(e)}function gW(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const yW=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function m0(e,t,n,r,a){if(ne.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!ne.isString(t)){if(ne.isString(r))return t.indexOf(r)!==-1;if(ne.isRegExp(r))return r.test(t)}}function vW(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function bW(e,t){const n=ne.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,s,c){return this[r].call(this,t,a,s,c)},configurable:!0})})}let tr=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function s(f,d,p){const h=nu(d);if(!h)throw new Error("header name must be a non-empty string");const g=ne.findKey(a,h);(!g||a[g]===void 0||p===!0||p===void 0&&a[g]!==!1)&&(a[g||d]=bp(f))}const c=(f,d)=>ne.forEach(f,(p,h)=>s(p,h,d));if(ne.isPlainObject(t)||t instanceof this.constructor)c(t,n);else if(ne.isString(t)&&(t=t.trim())&&!yW(t))c(mW(t),n);else if(ne.isObject(t)&&ne.isIterable(t)){let f={},d,p;for(const h of t){if(!ne.isArray(h))throw TypeError("Object iterator must return a key-value pair");f[p=h[0]]=(d=f[p])?ne.isArray(d)?[...d,h[1]]:[d,h[1]]:h[1]}c(f,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=nu(t),t){const r=ne.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return gW(a);if(ne.isFunction(n))return n.call(this,a,r);if(ne.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=nu(t),t){const r=ne.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||m0(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function s(c){if(c=nu(c),c){const f=ne.findKey(r,c);f&&(!n||m0(r,r[f],f,n))&&(delete r[f],a=!0)}}return ne.isArray(t)?t.forEach(s):s(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const s=n[r];(!t||m0(this,this[s],s,t,!0))&&(delete this[s],a=!0)}return a}normalize(t){const n=this,r={};return ne.forEach(this,(a,s)=>{const c=ne.findKey(r,s);if(c){n[c]=bp(a),delete n[s];return}const f=t?vW(s):String(s).trim();f!==s&&delete n[s],n[f]=bp(a),r[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ne.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&ne.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
1177
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[xO]=this[xO]={accessors:{}}).accessors,a=this.prototype;function s(c){const f=nu(c);r[f]||(bW(a,c),r[f]=!0)}return ne.isArray(t)?t.forEach(s):s(t),this}};tr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ne.reduceDescriptors(tr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ne.freezeMethods(tr);function g0(e,t){const n=this||pf,r=t||n,a=tr.from(r.headers);let s=r.data;return ne.forEach(e,function(f){s=f.call(n,s,a.normalize(),t?t.status:void 0)}),a.normalize(),s}function KD(e){return!!(e&&e.__CANCEL__)}function Wl(e,t,n){Ke.call(this,e??"canceled",Ke.ERR_CANCELED,t,n),this.name="CanceledError"}ne.inherits(Wl,Ke,{__CANCEL__:!0});function XD(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ke("Request failed with status code "+n.status,[Ke.ERR_BAD_REQUEST,Ke.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function SW(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xW(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,s=0,c;return t=t!==void 0?t:1e3,function(d){const p=Date.now(),h=r[s];c||(c=p),n[a]=d,r[a]=p;let g=s,v=0;for(;g!==a;)v+=n[g++],g=g%e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),p-c<t)return;const x=h&&p-h;return x?Math.round(v*1e3/x):void 0}}function TW(e,t){let n=0,r=1e3/t,a,s;const c=(p,h=Date.now())=>{n=h,a=null,s&&(clearTimeout(s),s=null),e(...p)};return[(...p)=>{const h=Date.now(),g=h-n;g>=r?c(p,h):(a=p,s||(s=setTimeout(()=>{s=null,c(a)},r-g)))},()=>a&&c(a)]}const sh=(e,t,n=3)=>{let r=0;const a=xW(50,250);return TW(s=>{const c=s.loaded,f=s.lengthComputable?s.total:void 0,d=c-r,p=a(d),h=c<=f;r=c;const g={loaded:c,total:f,progress:f?c/f:void 0,bytes:d,rate:p||void 0,estimated:p&&f&&h?(f-c)/p:void 0,event:s,lengthComputable:f!=null,[t?"download":"upload"]:!0};e(g)},n)},TO=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},EO=e=>(...t)=>ne.asap(()=>e(...t)),EW=kn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,kn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(kn.origin),kn.navigator&&/(msie|trident)/i.test(kn.navigator.userAgent)):()=>!0,wW=kn.hasStandardBrowserEnv?{write(e,t,n,r,a,s){const c=[e+"="+encodeURIComponent(t)];ne.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),ne.isString(r)&&c.push("path="+r),ne.isString(a)&&c.push("domain="+a),s===!0&&c.push("secure"),document.cookie=c.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function CW(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function AW(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ZD(e,t,n){let r=!CW(t);return e&&(r||n==!1)?AW(e,t):t}const wO=e=>e instanceof tr?{...e}:e;function ds(e,t){t=t||{};const n={};function r(p,h,g,v){return ne.isPlainObject(p)&&ne.isPlainObject(h)?ne.merge.call({caseless:v},p,h):ne.isPlainObject(h)?ne.merge({},h):ne.isArray(h)?h.slice():h}function a(p,h,g,v){if(ne.isUndefined(h)){if(!ne.isUndefined(p))return r(void 0,p,g,v)}else return r(p,h,g,v)}function s(p,h){if(!ne.isUndefined(h))return r(void 0,h)}function c(p,h){if(ne.isUndefined(h)){if(!ne.isUndefined(p))return r(void 0,p)}else return r(void 0,h)}function f(p,h,g){if(g in t)return r(p,h);if(g in e)return r(void 0,p)}const d={url:s,method:s,data:s,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:f,headers:(p,h,g)=>a(wO(p),wO(h),g,!0)};return ne.forEach(Object.keys({...e,...t}),function(h){const g=d[h]||a,v=g(e[h],t[h],h);ne.isUndefined(v)&&g!==f||(n[h]=v)}),n}const QD=e=>{const t=ds({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:s,headers:c,auth:f}=t;if(t.headers=c=tr.from(c),t.url=GD(ZD(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),f&&c.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):""))),ne.isFormData(n)){if(kn.hasStandardBrowserEnv||kn.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if(ne.isFunction(n.getHeaders)){const d=n.getHeaders(),p=["content-type","content-length"];Object.entries(d).forEach(([h,g])=>{p.includes(h.toLowerCase())&&c.set(h,g)})}}if(kn.hasStandardBrowserEnv&&(r&&ne.isFunction(r)&&(r=r(t)),r||r!==!1&&EW(t.url))){const d=a&&s&&wW.read(s);d&&c.set(a,d)}return t},OW=typeof XMLHttpRequest<"u",RW=OW&&function(e){return new Promise(function(n,r){const a=QD(e);let s=a.data;const c=tr.from(a.headers).normalize();let{responseType:f,onUploadProgress:d,onDownloadProgress:p}=a,h,g,v,x,b;function S(){x&&x(),b&&b(),a.cancelToken&&a.cancelToken.unsubscribe(h),a.signal&&a.signal.removeEventListener("abort",h)}let T=new XMLHttpRequest;T.open(a.method.toUpperCase(),a.url,!0),T.timeout=a.timeout;function w(){if(!T)return;const A=tr.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),O={data:!f||f==="text"||f==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:A,config:e,request:T};XD(function(L){n(L),S()},function(L){r(L),S()},O),T=null}"onloadend"in T?T.onloadend=w:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(w)},T.onabort=function(){T&&(r(new Ke("Request aborted",Ke.ECONNABORTED,e,T)),T=null)},T.onerror=function(_){const O=_&&_.message?_.message:"Network Error",M=new Ke(O,Ke.ERR_NETWORK,e,T);M.event=_||null,r(M),T=null},T.ontimeout=function(){let _=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const O=a.transitional||YD;a.timeoutErrorMessage&&(_=a.timeoutErrorMessage),r(new Ke(_,O.clarifyTimeoutError?Ke.ETIMEDOUT:Ke.ECONNABORTED,e,T)),T=null},s===void 0&&c.setContentType(null),"setRequestHeader"in T&&ne.forEach(c.toJSON(),function(_,O){T.setRequestHeader(O,_)}),ne.isUndefined(a.withCredentials)||(T.withCredentials=!!a.withCredentials),f&&f!=="json"&&(T.responseType=a.responseType),p&&([v,b]=sh(p,!0),T.addEventListener("progress",v)),d&&T.upload&&([g,x]=sh(d),T.upload.addEventListener("progress",g),T.upload.addEventListener("loadend",x)),(a.cancelToken||a.signal)&&(h=A=>{T&&(r(!A||A.type?new Wl(null,e,T):A),T.abort(),T=null)},a.cancelToken&&a.cancelToken.subscribe(h),a.signal&&(a.signal.aborted?h():a.signal.addEventListener("abort",h)));const R=SW(a.url);if(R&&kn.protocols.indexOf(R)===-1){r(new Ke("Unsupported protocol "+R+":",Ke.ERR_BAD_REQUEST,e));return}T.send(s||null)})},_W=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const s=function(p){if(!a){a=!0,f();const h=p instanceof Error?p:this.reason;r.abort(h instanceof Ke?h:new Wl(h instanceof Error?h.message:h))}};let c=t&&setTimeout(()=>{c=null,s(new Ke(`timeout ${t} of ms exceeded`,Ke.ETIMEDOUT))},t);const f=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(s):p.removeEventListener("abort",s)}),e=null)};e.forEach(p=>p.addEventListener("abort",s));const{signal:d}=r;return d.unsubscribe=()=>ne.asap(f),d}},MW=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},DW=async function*(e,t){for await(const n of PW(e))yield*MW(n,t)},PW=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},CO=(e,t,n,r)=>{const a=DW(e,t);let s=0,c,f=d=>{c||(c=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:p,value:h}=await a.next();if(p){f(),d.close();return}let g=h.byteLength;if(n){let v=s+=g;n(v)}d.enqueue(new Uint8Array(h))}catch(p){throw f(p),p}},cancel(d){return f(d),a.return()}},{highWaterMark:2})},AO=64*1024,{isFunction:Xd}=ne,kW=(({Request:e,Response:t})=>({Request:e,Response:t}))(ne.global),{ReadableStream:OO,TextEncoder:RO}=ne.global,_O=(e,...t)=>{try{return!!e(...t)}catch{return!1}},NW=e=>{e=ne.merge.call({skipUndefined:!0},kW,e);const{fetch:t,Request:n,Response:r}=e,a=t?Xd(t):typeof fetch=="function",s=Xd(n),c=Xd(r);if(!a)return!1;const f=a&&Xd(OO),d=a&&(typeof RO=="function"?(b=>S=>b.encode(S))(new RO):async b=>new Uint8Array(await new n(b).arrayBuffer())),p=s&&f&&_O(()=>{let b=!1;const S=new n(kn.origin,{body:new OO,method:"POST",get duplex(){return b=!0,"half"}}).headers.has("Content-Type");return b&&!S}),h=c&&f&&_O(()=>ne.isReadableStream(new r("").body)),g={stream:h&&(b=>b.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!g[b]&&(g[b]=(S,T)=>{let w=S&&S[b];if(w)return w.call(S);throw new Ke(`Response type '${b}' is not supported`,Ke.ERR_NOT_SUPPORT,T)})});const v=async b=>{if(b==null)return 0;if(ne.isBlob(b))return b.size;if(ne.isSpecCompliantForm(b))return(await new n(kn.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(ne.isArrayBufferView(b)||ne.isArrayBuffer(b))return b.byteLength;if(ne.isURLSearchParams(b)&&(b=b+""),ne.isString(b))return(await d(b)).byteLength},x=async(b,S)=>{const T=ne.toFiniteNumber(b.getContentLength());return T??v(S)};return async b=>{let{url:S,method:T,data:w,signal:R,cancelToken:A,timeout:_,onDownloadProgress:O,onUploadProgress:M,responseType:L,headers:B,withCredentials:z="same-origin",fetchOptions:V}=QD(b),H=t||fetch;L=L?(L+"").toLowerCase():"text";let P=_W([R,A&&A.toAbortSignal()],_),K=null;const U=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let j;try{if(M&&p&&T!=="get"&&T!=="head"&&(j=await x(B,w))!==0){let $=new n(S,{method:"POST",body:w,duplex:"half"}),W;if(ne.isFormData(w)&&(W=$.headers.get("content-type"))&&B.setContentType(W),$.body){const[te,oe]=TO(j,sh(EO(M)));w=CO($.body,AO,te,oe)}}ne.isString(z)||(z=z?"include":"omit");const k=s&&"credentials"in n.prototype,I={...V,signal:P,method:T.toUpperCase(),headers:B.normalize().toJSON(),body:w,duplex:"half",credentials:k?z:void 0};K=s&&new n(S,I);let q=await(s?H(K,V):H(S,I));const X=h&&(L==="stream"||L==="response");if(h&&(O||X&&U)){const $={};["status","statusText","headers"].forEach(le=>{$[le]=q[le]});const W=ne.toFiniteNumber(q.headers.get("content-length")),[te,oe]=O&&TO(W,sh(EO(O),!0))||[];q=new r(CO(q.body,AO,te,()=>{oe&&oe(),U&&U()}),$)}L=L||"text";let ie=await g[ne.findKey(g,L)||"text"](q,b);return!X&&U&&U(),await new Promise(($,W)=>{XD($,W,{data:ie,headers:tr.from(q.headers),status:q.status,statusText:q.statusText,config:b,request:K})})}catch(k){throw U&&U(),k&&k.name==="TypeError"&&/Load failed|fetch/i.test(k.message)?Object.assign(new Ke("Network Error",Ke.ERR_NETWORK,b,K),{cause:k.cause||k}):Ke.from(k,k&&k.code,b,K)}}},LW=new Map,JD=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:a}=t,s=[r,a,n];let c=s.length,f=c,d,p,h=LW;for(;f--;)d=s[f],p=h.get(d),p===void 0&&h.set(d,p=f?new Map:NW(t)),h=p;return p};JD();const qv={http:QY,xhr:RW,fetch:{get:JD}};ne.forEach(qv,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const MO=e=>`- ${e}`,$W=e=>ne.isFunction(e)||e===null||e===!1,eP={getAdapter:(e,t)=>{e=ne.isArray(e)?e:[e];const{length:n}=e;let r,a;const s={};for(let c=0;c<n;c++){r=e[c];let f;if(a=r,!$W(r)&&(a=qv[(f=String(r)).toLowerCase()],a===void 0))throw new Ke(`Unknown adapter '${f}'`);if(a&&(ne.isFunction(a)||(a=a.get(t))))break;s[f||"#"+c]=a}if(!a){const c=Object.entries(s).map(([d,p])=>`adapter ${d} `+(p===!1?"is not supported by the environment":"is not available in the build"));let f=n?c.length>1?`since :
1178
+ `+c.map(MO).join(`
1179
+ `):" "+MO(c[0]):"as no adapter specified";throw new Ke("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return a},adapters:qv};function y0(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Wl(null,e)}function DO(e){return y0(e),e.headers=tr.from(e.headers),e.data=g0.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),eP.getAdapter(e.adapter||pf.adapter,e)(e).then(function(r){return y0(e),r.data=g0.call(e,e.transformResponse,r),r.headers=tr.from(r.headers),r},function(r){return KD(r)||(y0(e),r&&r.response&&(r.response.data=g0.call(e,e.transformResponse,r.response),r.response.headers=tr.from(r.response.headers))),Promise.reject(r)})}const tP="1.12.2",am={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{am[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const PO={};am.transitional=function(t,n,r){function a(s,c){return"[Axios v"+tP+"] Transitional option '"+s+"'"+c+(r?". "+r:"")}return(s,c,f)=>{if(t===!1)throw new Ke(a(c," has been removed"+(n?" in "+n:"")),Ke.ERR_DEPRECATED);return n&&!PO[c]&&(PO[c]=!0,console.warn(a(c," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,c,f):!0}};am.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function BW(e,t,n){if(typeof e!="object")throw new Ke("options must be an object",Ke.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const s=r[a],c=t[s];if(c){const f=e[s],d=f===void 0||c(f,s,e);if(d!==!0)throw new Ke("option "+s+" must be "+d,Ke.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ke("Unknown option "+s,Ke.ERR_BAD_OPTION)}}const Sp={assertOptions:BW,validators:am},pi=Sp.validators;let es=class{constructor(t){this.defaults=t||{},this.interceptors={request:new SO,response:new SO}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const s=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
1180
+ `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ds(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:s}=n;r!==void 0&&Sp.assertOptions(r,{silentJSONParsing:pi.transitional(pi.boolean),forcedJSONParsing:pi.transitional(pi.boolean),clarifyTimeoutError:pi.transitional(pi.boolean)},!1),a!=null&&(ne.isFunction(a)?n.paramsSerializer={serialize:a}:Sp.assertOptions(a,{encode:pi.function,serialize:pi.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Sp.assertOptions(n,{baseUrl:pi.spelling("baseURL"),withXsrfToken:pi.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let c=s&&ne.merge(s.common,s[n.method]);s&&ne.forEach(["delete","get","head","post","put","patch","common"],b=>{delete s[b]}),n.headers=tr.concat(c,s);const f=[];let d=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(d=d&&S.synchronous,f.unshift(S.fulfilled,S.rejected))});const p=[];this.interceptors.response.forEach(function(S){p.push(S.fulfilled,S.rejected)});let h,g=0,v;if(!d){const b=[DO.bind(this),void 0];for(b.unshift(...f),b.push(...p),v=b.length,h=Promise.resolve(n);g<v;)h=h.then(b[g++],b[g++]);return h}v=f.length;let x=n;for(;g<v;){const b=f[g++],S=f[g++];try{x=b(x)}catch(T){S.call(this,T);break}}try{h=DO.call(this,x)}catch(b){return Promise.reject(b)}for(g=0,v=p.length;g<v;)h=h.then(p[g++],p[g++]);return h}getUri(t){t=ds(this.defaults,t);const n=ZD(t.baseURL,t.url,t.allowAbsoluteUrls);return GD(n,t.params,t.paramsSerializer)}};ne.forEach(["delete","get","head","options"],function(t){es.prototype[t]=function(n,r){return this.request(ds(r||{},{method:t,url:n,data:(r||{}).data}))}});ne.forEach(["post","put","patch"],function(t){function n(r){return function(s,c,f){return this.request(ds(f||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:c}))}}es.prototype[t]=n(),es.prototype[t+"Form"]=n(!0)});let IW=class nP{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(a=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](a);r._listeners=null}),this.promise.then=a=>{let s;const c=new Promise(f=>{r.subscribe(f),s=f}).then(a);return c.cancel=function(){r.unsubscribe(s)},c},t(function(s,c,f){r.reason||(r.reason=new Wl(s,c,f),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new nP(function(a){t=a}),cancel:t}}};function jW(e){return function(n){return e.apply(null,n)}}function zW(e){return ne.isObject(e)&&e.isAxiosError===!0}const Gv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Gv).forEach(([e,t])=>{Gv[t]=e});function rP(e){const t=new es(e),n=ND(es.prototype.request,t);return ne.extend(n,es.prototype,t,{allOwnKeys:!0}),ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return rP(ds(e,a))},n}const Xt=rP(pf);Xt.Axios=es;Xt.CanceledError=Wl;Xt.CancelToken=IW;Xt.isCancel=KD;Xt.VERSION=tP;Xt.toFormData=om;Xt.AxiosError=Ke;Xt.Cancel=Xt.CanceledError;Xt.all=function(t){return Promise.all(t)};Xt.spread=jW;Xt.isAxiosError=zW;Xt.mergeConfig=ds;Xt.AxiosHeaders=tr;Xt.formToJSON=e=>WD(ne.isHTMLForm(e)?new FormData(e):e);Xt.getAdapter=eP.getAdapter;Xt.HttpStatusCode=Gv;Xt.default=Xt;const{Axios:bse,AxiosError:Sse,CanceledError:xse,isCancel:Tse,CancelToken:Ese,VERSION:wse,all:Cse,Cancel:Ase,isAxiosError:Ose,spread:Rse,toFormData:_se,AxiosHeaders:Mse,HttpStatusCode:Dse,formToJSON:Pse,getAdapter:kse,mergeConfig:Nse}=Xt,iP={weight:0},oP=GS({name:"remainingWeight",initialState:iP,reducers:{setRemainingWeight:(e,t)=>{e.weight=t.payload},updateRemainingWeight:(e,t)=>{const n=t.payload;e.weight=Math.max(0,e.weight-n)},resetRemainingWeight:e=>{e.weight=0}}}),{setRemainingWeight:Lse,updateRemainingWeight:$se,resetRemainingWeight:Bse}=oP.actions,UW=oP.reducer,bn=gB,At=Xt.create({baseURL:"https://dev.be.office.sevago.local",timeout:2e4,headers:{"Content-Type":"application/json","X-CSRF-TOKEN":"CSRF-Token"},withCredentials:!0});At.interceptors.request.use(async e=>{const{userUnitPositionId:t,accessToken:n}=ps.getState().account;return n&&(e.headers.Authorization=`Bearer ${n}`),t&&(e.headers.userUnitPositionId=t),e});let Zd=null;At.interceptors.response.use(e=>e.data,async e=>{const t=e.config,n=e.response?.data;if(n.statusCode===777){const r=ps.getState().account.refreshToken;Zd=Zd||ps.dispatch(bn.refreshToken({refreshToken:r})).unwrap();const a=await Zd;return Zd=null,a.accessToken&&(t.headers.Authorization=`Bearer ${a.accessToken}`),(await Xt.request(t)).data}return n.statusCode===888&&(localStorage.setItem("account",JSON.stringify(Ct)),window.location.href="http://localhost:6003"+nn.AUTH.path),Promise.reject(n)});const Ai=Object.create(null);Ai.open="0";Ai.close="1";Ai.ping="2";Ai.pong="3";Ai.message="4";Ai.upgrade="5";Ai.noop="6";const xp=Object.create(null);Object.keys(Ai).forEach(e=>{xp[Ai[e]]=e});const Yv={type:"error",data:"parser error"},aP=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",sP=typeof ArrayBuffer=="function",lP=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,XS=({type:e,data:t},n,r)=>aP&&t instanceof Blob?n?r(t):kO(t,r):sP&&(t instanceof ArrayBuffer||lP(t))?n?r(t):kO(new Blob([t]),r):r(Ai[e]+(t||"")),kO=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function NO(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let v0;function FW(e,t){if(aP&&e.data instanceof Blob)return e.data.arrayBuffer().then(NO).then(t);if(sP&&(e.data instanceof ArrayBuffer||lP(e.data)))return t(NO(e.data));XS(e,!1,n=>{v0||(v0=new TextEncoder),t(v0.encode(n))})}const LO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",du=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<LO.length;e++)du[LO.charCodeAt(e)]=e;const VW=e=>{let t=e.length*.75,n=e.length,r,a=0,s,c,f,d;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const p=new ArrayBuffer(t),h=new Uint8Array(p);for(r=0;r<n;r+=4)s=du[e.charCodeAt(r)],c=du[e.charCodeAt(r+1)],f=du[e.charCodeAt(r+2)],d=du[e.charCodeAt(r+3)],h[a++]=s<<2|c>>4,h[a++]=(c&15)<<4|f>>2,h[a++]=(f&3)<<6|d&63;return p},HW=typeof ArrayBuffer=="function",ZS=(e,t)=>{if(typeof e!="string")return{type:"message",data:cP(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:qW(e.substring(1),t)}:xp[n]?e.length>1?{type:xp[n],data:e.substring(1)}:{type:xp[n]}:Yv},qW=(e,t)=>{if(HW){const n=VW(e);return cP(n,t)}else return{base64:!0,data:e}},cP=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},uP="",GW=(e,t)=>{const n=e.length,r=new Array(n);let a=0;e.forEach((s,c)=>{XS(s,!1,f=>{r[c]=f,++a===n&&t(r.join(uP))})})},YW=(e,t)=>{const n=e.split(uP),r=[];for(let a=0;a<n.length;a++){const s=ZS(n[a],t);if(r.push(s),s.type==="error")break}return r};function WW(){return new TransformStream({transform(e,t){FW(e,n=>{const r=n.length;let a;if(r<126)a=new Uint8Array(1),new DataView(a.buffer).setUint8(0,r);else if(r<65536){a=new Uint8Array(3);const s=new DataView(a.buffer);s.setUint8(0,126),s.setUint16(1,r)}else{a=new Uint8Array(9);const s=new DataView(a.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(a[0]|=128),t.enqueue(a),t.enqueue(n)})}})}let b0;function Qd(e){return e.reduce((t,n)=>t+n.length,0)}function Jd(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let a=0;a<t;a++)n[a]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function KW(e,t){b0||(b0=new TextDecoder);const n=[];let r=0,a=-1,s=!1;return new TransformStream({transform(c,f){for(n.push(c);;){if(r===0){if(Qd(n)<1)break;const d=Jd(n,1);s=(d[0]&128)===128,a=d[0]&127,a<126?r=3:a===126?r=1:r=2}else if(r===1){if(Qd(n)<2)break;const d=Jd(n,2);a=new DataView(d.buffer,d.byteOffset,d.length).getUint16(0),r=3}else if(r===2){if(Qd(n)<8)break;const d=Jd(n,8),p=new DataView(d.buffer,d.byteOffset,d.length),h=p.getUint32(0);if(h>Math.pow(2,21)-1){f.enqueue(Yv);break}a=h*Math.pow(2,32)+p.getUint32(4),r=3}else{if(Qd(n)<a)break;const d=Jd(n,a);f.enqueue(ZS(s?d:b0.decode(d),t)),r=0}if(a===0||a>e){f.enqueue(Yv);break}}}})}const fP=4;function pn(e){if(e)return XW(e)}function XW(e){for(var t in pn.prototype)e[t]=pn.prototype[t];return e}pn.prototype.on=pn.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};pn.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};pn.prototype.off=pn.prototype.removeListener=pn.prototype.removeAllListeners=pn.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,a=0;a<n.length;a++)if(r=n[a],r===t||r.fn===t){n.splice(a,1);break}return n.length===0&&delete this._callbacks["$"+e],this};pn.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,a=n.length;r<a;++r)n[r].apply(this,t)}return this};pn.prototype.emitReserved=pn.prototype.emit;pn.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};pn.prototype.hasListeners=function(e){return!!this.listeners(e).length};const sm=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Ir=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),ZW="arraybuffer";function dP(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const QW=Ir.setTimeout,JW=Ir.clearTimeout;function lm(e,t){t.useNativeTimers?(e.setTimeoutFn=QW.bind(Ir),e.clearTimeoutFn=JW.bind(Ir)):(e.setTimeoutFn=Ir.setTimeout.bind(Ir),e.clearTimeoutFn=Ir.clearTimeout.bind(Ir))}const eK=1.33;function tK(e){return typeof e=="string"?nK(e):Math.ceil((e.byteLength||e.size)*eK)}function nK(e){let t=0,n=0;for(let r=0,a=e.length;r<a;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function pP(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function rK(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function iK(e){let t={},n=e.split("&");for(let r=0,a=n.length;r<a;r++){let s=n[r].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}class oK extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class QS extends pn{constructor(t){super(),this.writable=!1,lm(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new oK(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=ZS(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=rK(t);return n.length?"?"+n:""}}class aK extends QS{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};YW(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,GW(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=pP()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let hP=!1;try{hP=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const sK=hP;function lK(){}class cK extends aK{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(a,s)=>{this.onError("xhr post error",a,s)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Ti extends pn{constructor(t,n,r){super(),this.createRequest=t,lm(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=dP(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let a in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(a)&&r.setRequestHeader(a,this._opts.extraHeaders[a])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var a;r.readyState===3&&((a=this._opts.cookieJar)===null||a===void 0||a.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(a){this.setTimeoutFn(()=>{this._onError(a)},0);return}typeof document<"u"&&(this._index=Ti.requestsCount++,Ti.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=lK,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Ti.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Ti.requestsCount=0;Ti.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",$O);else if(typeof addEventListener=="function"){const e="onpagehide"in Ir?"pagehide":"unload";addEventListener(e,$O,!1)}}function $O(){for(let e in Ti.requests)Ti.requests.hasOwnProperty(e)&&Ti.requests[e].abort()}const uK=(function(){const e=mP({xdomain:!1});return e&&e.responseType!==null})();class fK extends cK{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=uK&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Ti(mP,this.uri(),t)}}function mP(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||sK))return new XMLHttpRequest}catch{}if(!t)try{return new Ir[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const gP=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class dK extends QS{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=gP?{}:dP(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(a){return this.emitReserved("error",a)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],a=n===t.length-1;XS(r,this.supportsBinary,s=>{try{this.doWrite(r,s)}catch{}a&&sm(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=pP()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const S0=Ir.WebSocket||Ir.MozWebSocket;class pK extends dK{createSocket(t,n,r){return gP?new S0(t,n,r):n?new S0(t,n):new S0(t)}doWrite(t,n){this.ws.send(n)}}class hK extends QS{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=KW(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),a=WW();a.readable.pipeTo(t.writable),this._writer=a.writable.getWriter();const s=()=>{r.read().then(({done:f,value:d})=>{f||(this.onPacket(d),s())}).catch(f=>{})};s();const c={type:"open"};this.query.sid&&(c.data=`{"sid":"${this.query.sid}"}`),this._writer.write(c).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],a=n===t.length-1;this._writer.write(r).then(()=>{a&&sm(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const mK={websocket:pK,webtransport:hK,polling:fK},gK=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,yK=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Wv(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let a=gK.exec(e||""),s={},c=14;for(;c--;)s[yK[c]]=a[c]||"";return n!=-1&&r!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=vK(s,s.path),s.queryKey=bK(s,s.query),s}function vK(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function bK(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,a,s){a&&(n[a]=s)}),n}const Kv=typeof addEventListener=="function"&&typeof removeEventListener=="function",Tp=[];Kv&&addEventListener("offline",()=>{Tp.forEach(e=>e())},!1);class Qo extends pn{constructor(t,n){if(super(),this.binaryType=ZW,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=Wv(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=Wv(n.host).host);lm(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const a=r.prototype.name;this.transports.push(a),this._transportsByName[a]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=iK(this.opts.query)),Kv&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Tp.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=fP,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Qo.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Qo.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const a=this.writeBuffer[r].data;if(a&&(n+=tK(a)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,sm(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,a){if(typeof n=="function"&&(a=n,n=void 0),typeof r=="function"&&(a=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const s={type:t,data:n,options:r};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),a&&this.once("flush",a),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(Qo.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Kv&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Tp.indexOf(this._offlineEventListener);r!==-1&&Tp.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Qo.protocol=fP;class SK extends Qo{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;Qo.priorWebsocketSuccess=!1;const a=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",g=>{if(!r)if(g.type==="pong"&&g.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Qo.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(h(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const v=new Error("probe error");v.transport=n.name,this.emitReserved("upgradeError",v)}}))};function s(){r||(r=!0,h(),n.close(),n=null)}const c=g=>{const v=new Error("probe error: "+g);v.transport=n.name,s(),this.emitReserved("upgradeError",v)};function f(){c("transport closed")}function d(){c("socket closed")}function p(g){n&&g.name!==n.name&&s()}const h=()=>{n.removeListener("open",a),n.removeListener("error",c),n.removeListener("close",f),this.off("close",d),this.off("upgrading",p)};n.once("open",a),n.once("error",c),n.once("close",f),this.once("close",d),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let xK=class extends SK{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(a=>mK[a]).filter(a=>!!a)),super(t,r)}};function TK(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=Wv(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const s=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port+t,r.href=r.protocol+"://"+s+(n&&n.port===r.port?"":":"+r.port),r}const EK=typeof ArrayBuffer=="function",wK=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,yP=Object.prototype.toString,CK=typeof Blob=="function"||typeof Blob<"u"&&yP.call(Blob)==="[object BlobConstructor]",AK=typeof File=="function"||typeof File<"u"&&yP.call(File)==="[object FileConstructor]";function JS(e){return EK&&(e instanceof ArrayBuffer||wK(e))||CK&&e instanceof Blob||AK&&e instanceof File}function Ep(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Ep(e[n]))return!0;return!1}if(JS(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Ep(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Ep(e[n]))return!0;return!1}function OK(e){const t=[],n=e.data,r=e;return r.data=Xv(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Xv(e,t){if(!e)return e;if(JS(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=Xv(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=Xv(e[r],t));return n}return e}function RK(e,t){return e.data=Zv(e.data,t),delete e.attachments,e}function Zv(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Zv(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Zv(e[n],t));return e}const _K=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],MK=5;var st;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(st||(st={}));class DK{constructor(t){this.replacer=t}encode(t){return(t.type===st.EVENT||t.type===st.ACK)&&Ep(t)?this.encodeAsBinary({type:t.type===st.EVENT?st.BINARY_EVENT:st.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===st.BINARY_EVENT||t.type===st.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=OK(t),r=this.encodeAsString(n.packet),a=n.buffers;return a.unshift(r),a}}function BO(e){return Object.prototype.toString.call(e)==="[object Object]"}class ex extends pn{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===st.BINARY_EVENT;r||n.type===st.BINARY_ACK?(n.type=r?st.EVENT:st.ACK,this.reconstructor=new PK(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(JS(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(st[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===st.BINARY_EVENT||r.type===st.BINARY_ACK){const s=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const c=t.substring(s,n);if(c!=Number(c)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(c)}if(t.charAt(n+1)==="/"){const s=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(s,n)}else r.nsp="/";const a=t.charAt(n+1);if(a!==""&&Number(a)==a){const s=n+1;for(;++n;){const c=t.charAt(n);if(c==null||Number(c)!=c){--n;break}if(n===t.length)break}r.id=Number(t.substring(s,n+1))}if(t.charAt(++n)){const s=this.tryParse(t.substr(n));if(ex.isPayloadValid(r.type,s))r.data=s;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case st.CONNECT:return BO(n);case st.DISCONNECT:return n===void 0;case st.CONNECT_ERROR:return typeof n=="string"||BO(n);case st.EVENT:case st.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&_K.indexOf(n[0])===-1);case st.ACK:case st.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class PK{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=RK(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const kK=Object.freeze(Object.defineProperty({__proto__:null,Decoder:ex,Encoder:DK,get PacketType(){return st},protocol:MK},Symbol.toStringTag,{value:"Module"}));function Qr(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const NK=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class vP extends pn{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Qr(t,"open",this.onopen.bind(this)),Qr(t,"packet",this.onpacket.bind(this)),Qr(t,"error",this.onerror.bind(this)),Qr(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,a,s;if(NK.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const c={type:st.EVENT,data:n};if(c.options={},c.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const h=this.ids++,g=n.pop();this._registerAckCallback(h,g),c.id=h}const f=(a=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||a===void 0?void 0:a.writable,d=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!f||(d?(this.notifyOutgoingListeners(c),this.packet(c)):this.sendBuffer.push(c)),this.flags={},this}_registerAckCallback(t,n){var r;const a=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(a===void 0){this.acks[t]=n;return}const s=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let f=0;f<this.sendBuffer.length;f++)this.sendBuffer[f].id===t&&this.sendBuffer.splice(f,1);n.call(this,new Error("operation has timed out"))},a),c=(...f)=>{this.io.clearTimeoutFn(s),n.apply(this,f)};c.withError=!0,this.acks[t]=c}emitWithAck(t,...n){return new Promise((r,a)=>{const s=(c,f)=>c?a(c):r(f);s.withError=!0,n.push(s),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((a,...s)=>r!==this._queue[0]?void 0:(a!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(a)):(this._queue.shift(),n&&n(null,...s)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:st.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case st.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case st.EVENT:case st.BINARY_EVENT:this.onevent(t);break;case st.ACK:case st.BINARY_ACK:this.onack(t);break;case st.DISCONNECT:this.ondisconnect();break;case st.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...a){r||(r=!0,n.packet({type:st.ACK,id:t,data:a}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:st.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function Kl(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Kl.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};Kl.prototype.reset=function(){this.attempts=0};Kl.prototype.setMin=function(e){this.ms=e};Kl.prototype.setMax=function(e){this.max=e};Kl.prototype.setJitter=function(e){this.jitter=e};class lh extends pn{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,lm(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Kl({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const a=n.parser||kK;this.encoder=new a.Encoder,this.decoder=new a.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new xK(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const a=Qr(n,"open",function(){r.onopen(),t&&t()}),s=f=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",f),t?t(f):this.maybeReconnectOnOpen()},c=Qr(n,"error",s);if(this._timeout!==!1){const f=this._timeout,d=this.setTimeoutFn(()=>{a(),s(new Error("timeout")),n.close()},f);this.opts.autoUnref&&d.unref(),this.subs.push(()=>{this.clearTimeoutFn(d)})}return this.subs.push(a),this.subs.push(c),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Qr(t,"ping",this.onping.bind(this)),Qr(t,"data",this.ondata.bind(this)),Qr(t,"error",this.onerror.bind(this)),Qr(t,"close",this.onclose.bind(this)),Qr(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){sm(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new vP(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(a=>{a?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",a)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const ru={};function x0(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=TK(e,t.path||"/socket.io"),r=n.source,a=n.id,s=n.path,c=ru[a]&&s in ru[a].nsps,f=t.forceNew||t["force new connection"]||t.multiplex===!1||c;let d;return f?d=new lh(r,t):(ru[a]||(ru[a]=new lh(r,t)),d=ru[a]),n.query&&!t.query&&(t.query=n.queryKey),d.socket(n.path,t)}Object.assign(x0,{Manager:lh,Socket:vP,io:x0,connect:x0});var LK=(e=>(e[e.ROOT=Pe.ROOT]="ROOT",e[e.CUSTOMER=Pe.HR]="CUSTOMER",e[e.ADMIN=Pe.ADMIN]="ADMIN",e))(LK||{});let IO=null;const $K={};let iu="";const BK=e=>{if(IO)return;const t="https://dev.be.office.sevago.localchat".replace(/\/api\/?$/,"");IO=new lh(t,{transports:["websocket"],withCredentials:!0,autoConnect:!1}),iu=e.getState().account.accessToken,e.subscribe(()=>{const n=e.getState().account.accessToken;n!==iu&&(iu=n,Object.values($K).forEach(r=>{r&&(r.auth={token:iu},r.connected&&r.emit("auth:refresh",iu))}))})},IK=async e=>await At.post("auth/login",e),jK=async e=>await At.post("auth/logout",e),zK=async e=>await At.post("auth/forgot-password",e),UK=async e=>await At.post("auth/verify-otp",e),FK=async e=>await At.post("auth/reset-password",e),VK=async e=>await At.post("auth/refresh-token",e),HK=async e=>await At.post("auth/subscribe-topic",e),qK=async e=>await At.post("auth/unsubscribe-topic",e),GK=Object.freeze(Object.defineProperty({__proto__:null,forgotPassword:zK,login:IK,logout:jK,refreshToken:VK,resetPassword:FK,subscribeTopic:HK,unsubscribeTopic:qK,verifyOtp:UK},Symbol.toStringTag,{value:"Module"}));var ch=(e=>(e.THIS_DEVICE="Thiết bị",e.ALL_DEVICES="Tất cả thiết bị",e))(ch||{}),bP=(e=>(e.OTP="Otp",e.EMAIL="Email",e))(bP||{}),tx=(e=>(e.PHONE="Phone",e.EMAIL="Email",e))(tx||{});const go=GK,YK=async e=>await At.post("user",e),WK=async(e,t)=>await At.put("user/"+e,t),KK=async e=>await At.patch("user",e),XK=async e=>await At.delete("user/"+e),ZK=async e=>await At.post("user/list",e),QK=async e=>await At.post("user/list/relations",e),JK=async e=>await At.get("user/"+e),eX=async e=>await At.get("user/user-history/"+e),tX=async e=>await At.get("user/user-org-unit-position/"+e),nX=async()=>await At.get("user/generate-next-user-code"),rX=async()=>await At.get("user/nearest-managers/current"),iX=async e=>await At.post("/org-unit/users-by-org-units",e),oX=Object.freeze(Object.defineProperty({__proto__:null,createUser:YK,deleteUser:XK,getListUser:ZK,getListUserRelations:QK,getUser:JK,getUserByOrgUnit:iX,getUserGenerateNextUserCode:nX,getUserInformationHistory:eX,getUserNearestManagers:rX,getUserOrgUnitPositionById:tX,updateAccount:KK,updateUser:WK},Symbol.toStringTag,{value:"Module"})),Qv=oX,aX=async e=>await At.put("notification",e),sX=async e=>await At.get("notification",{params:e}),lX=async(e,t)=>await At.put("notification-setting/"+e,t),cX=async e=>await At.get("notification-setting",{params:e}),uX=async e=>await At.post("notification/subscribe-topic",{token:e}),fX=async e=>await At.post("notification/un-subscribe-topic",{token:e}),dX=Object.freeze(Object.defineProperty({__proto__:null,getListNotification:sX,getListNotificationSetting:cX,subscribeTopicByToken:uX,unSubscribeTopicByToken:fX,updateNotification:aX,updateNotificationSetting:lX},Symbol.toStringTag,{value:"Module"}));var Jv=(e=>(e.VIEW_ONE="View one",e.VIEW_ALL="View all",e.DELETE_VIEWED="Delete viewed",e.DELETE_ALL="Delete all",e.DELETE_ONE="Delete one",e))(Jv||{}),SP=(e=>(e.VIEWED="Đã xem",e.NOT_VIEWED="Chưa xem",e))(SP||{});const T0=dX,xP=Sr("LOGIN",async(e,{rejectWithValue:t})=>{try{return await go.login(e)}catch(n){return t(n)}}),eb=Sr("LOGOUT",async(e,{rejectWithValue:t})=>{try{return await go.logout(e)}catch(n){return t(n)}}),TP=Sr("RESET_PASSWORD",async(e,{rejectWithValue:t})=>{try{return await go.resetPassword(e)}catch(n){return t(n)}}),tb=Sr("REFRESH_TOKEN",async(e,{rejectWithValue:t})=>{try{return await go.refreshToken(e)}catch(n){return t(n)}}),nb=Sr("SUBSCRIBE_TOPIC",async(e,{rejectWithValue:t})=>{try{return await go.subscribeTopic(e),{fcmToken:e.fcmToken}}catch(n){return t(n)}}),rb=Sr("UNSUBSCRIBE_TOPIC",async(e,{rejectWithValue:t})=>{try{return await go.unsubscribeTopic(e)}catch(n){return t(n)}}),EP=Sr("CHANGE_NOTIFICATION_COUNT",e=>e),wP=Sr("CHANGE_SIDEBAR_COUNT",e=>e),CP=Sr("UPDATE_ACCOUNT",async(e,{rejectWithValue:t,getState:n})=>{try{await Qv.updateAccount(e);const r=n();if(!r.account.user)throw new Error("User not found");return await Qv.getUser(r.account.user.id)}catch(r){return t(r)}}),AP=Sr("GET_ACCOUNT",async(e,{rejectWithValue:t})=>{try{return await Qv.getUser(e)}catch(n){return t(n)}}),OP=Sr("UPDATE_POSITION_ORG_UNIT",e=>e),RP=Sr("UPDATE_CURRENT_ACCESS",e=>e),Ct={isLogin:!1,user:null,accessToken:"",refreshToken:"",fcmToken:"",notificationCount:0,userUnitPositionId:"",sidebarCountObj:{},current_access:"recruitment"},pX=GS({name:"account",initialState:Ct,reducers:{},extraReducers:e=>{e.addCase(xP.fulfilled,(t,n)=>{t.isLogin=!0,t.user=n.payload.user,t.accessToken=n.payload.accessToken,t.refreshToken=n.payload.refreshToken,t.userUnitPositionId=t.userUnitPositionId||n.payload.user.userOrgUnitPositions[0].id,t.sidebarCountObj=n.payload.sidebarCountObj}),e.addCase(eb.fulfilled,t=>{t.isLogin=Ct.isLogin,t.user=Ct.user,t.accessToken=Ct.accessToken,t.refreshToken=Ct.refreshToken,t.fcmToken=Ct.fcmToken,t.userUnitPositionId=Ct.userUnitPositionId,t.sidebarCountObj=Ct.sidebarCountObj}),e.addCase(eb.rejected,t=>{t.isLogin=Ct.isLogin,t.user=Ct.user,t.accessToken=Ct.accessToken,t.refreshToken=Ct.refreshToken,t.fcmToken=Ct.fcmToken,t.userUnitPositionId=Ct.userUnitPositionId,t.sidebarCountObj=Ct.sidebarCountObj}),e.addCase(TP.fulfilled,(t,n)=>{t.isLogin=!0,t.user=n.payload.user,t.accessToken=n.payload.accessToken,t.refreshToken=n.payload.refreshToken,t.userUnitPositionId=t.userUnitPositionId||n.payload.user.userOrgUnitPositions[0].id,t.sidebarCountObj=Ct.sidebarCountObj}),e.addCase(tb.fulfilled,(t,n)=>{t.accessToken=n.payload.accessToken,t.refreshToken=n.payload.refreshToken}),e.addCase(tb.rejected,t=>{t.isLogin=Ct.isLogin,t.user=Ct.user,t.accessToken=Ct.accessToken,t.refreshToken=Ct.refreshToken,t.fcmToken=Ct.fcmToken,t.userUnitPositionId=Ct.userUnitPositionId,t.sidebarCountObj=Ct.sidebarCountObj}),e.addCase(nb.fulfilled,(t,n)=>{t.fcmToken=n.payload.fcmToken}),e.addCase(nb.rejected,t=>{t.fcmToken=Ct.fcmToken}),e.addCase(rb.fulfilled,t=>{t.fcmToken=Ct.fcmToken}),e.addCase(rb.rejected,t=>{t.fcmToken=Ct.fcmToken}),e.addCase(EP.fulfilled,(t,n)=>{t.notificationCount=n.payload}),e.addCase(wP.fulfilled,(t,n)=>{t.sidebarCountObj={...t.sidebarCountObj,[n.payload.sidebarPath]:(t.sidebarCountObj[n.payload.sidebarPath]||0)+n.payload.count}}),e.addCase(CP.fulfilled,(t,n)=>{t.user=n.payload}),e.addCase(AP.fulfilled,(t,n)=>{t.user=n.payload,t.userUnitPositionId=t.userUnitPositionId||n.payload.userOrgUnitPositions[0].id}),e.addCase(OP.fulfilled,(t,n)=>{t.userUnitPositionId=n.payload}),e.addCase(RP.fulfilled,(t,n)=>{t.current_access=n.payload})}}),hX=pX.reducer,mX={key:"root",storage:cY,version:1,migrate:e=>e?(e.account={...Ct,...e.account},e.system={...kD,...e.system},e.remainingWeight={...iP,...e.remainingWeight},Promise.resolve(e)):Promise.resolve(void 0)},gX=xD({system:dY,account:hX,remainingWeight:UW}),yX=lG(mX,gX),ps=jG({reducer:yX,middleware:e=>e({serializableCheck:{ignoredActions:[BS,Qh,IS,jS,zS,US]}})}),ys=()=>K7(),vX=bG(ps);var ei=(e=>(e.INFO="info",e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e))(ei||{});const _P=E.createContext(void 0),bX=({children:e})=>{const[t,n]=E.useState({open:!1,message:"",type:"info"}),r=s=>{n({open:!0,...s})},a=()=>{n({...t,open:!1})};return D.jsxs(_P.Provider,{value:{showSnackbar:r},children:[e,D.jsx(yV,{anchorOrigin:{vertical:"bottom",horizontal:"right"},sx:{"&.MuiSnackbar-root":{bottom:We.PADDING_GAP_LAYOUT,right:We.PADDING_GAP_LAYOUT}},open:t.open,autoHideDuration:6e3,onClose:a,children:D.jsx(s3,{sx:{borderRadius:We.BORDER_RADIUS_ELEMENT,boxShadow:1},onClose:a,severity:t.type,children:t.message})})]})},hf=()=>{const e=E.useContext(_P);if(!e)throw new Error("useSnackbar must be used within a SnackbarProvider");return e},SX=({children:e})=>D.jsx(ht,{sx:{height:"100vh",width:"100%",backgroundImage:"url(/images/login.jpg)",backgroundSize:"cover",backgroundPosition:"center"},children:e}),xX=e=>{const t=(n,r)=>{if(r)for(const a of r){if(a.path&&e.includes(a.path))return n.key;if(a.children){const s=t(n,a.children);if(s)return s}}};for(const n of LS){if(n.path&&e.includes(n.path))return n.key;if(n.children){const r=t(n,n.children);if(r)return r}}},TX=()=>{const e=ys(),t=Di(),n=E.useCallback(async r=>{const a=xX(r);a&&await e(bn.updateCurrentAccess(a)).unwrap()},[e]);return E.useEffect(()=>{n(t.pathname)},[t.pathname,n]),n},mf=fe(ht)(()=>({flexDirection:"row"}));fe(ht)(()=>({flexDirection:"row",flexWrap:"wrap"}));const Il=fe(ht)(()=>({flexDirection:"row",alignItems:"center"}));fe(ht)(()=>({flexDirection:"row",alignItems:"flex-end"}));fe(ht)(()=>({flexDirection:"row",justifyContent:"center"}));fe(ht)(()=>({flexDirection:"row",justifyContent:"space-around"}));fe(ht)(()=>({flexDirection:"row",alignItems:"center",justifyContent:"center"}));fe(ht)(()=>({flexDirection:"row",alignItems:"center",justifyContent:"flex-end"}));fe(ht)(()=>({flexDirection:"row",justifyContent:"flex-end"}));const EX=fe(ht)(()=>({flexDirection:"row",justifyContent:"space-between"}));fe(ht)(()=>({flexDirection:"row",alignItems:"center",justifyContent:"space-between"}));const wX=fe(ht)(()=>({flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between"}));fe(ht)(({theme:e})=>({backgroundColor:e.palette.background.default,padding:We.PADDING_GAP_LAYOUT,borderRadius:We.BORDER_RADIUS_ELEMENT}));fe(ht)(({theme:e})=>({backgroundColor:e.palette.background.paper,padding:We.PADDING_GAP_LAYOUT,borderRadius:We.BORDER_RADIUS_ELEMENT}));const CX=fe(ht)(()=>({flexDirection:"row",alignItems:"center",marginRight:We.PADDING_GAP_ITEM_SMALL,gap:We.PADDING_GAP_ITEM_SMALL}));fe(ht)(({theme:e})=>({border:`1px solid ${e.palette.common.white}`,borderRadius:"50%",display:"flex",justifyContent:"center",alignItems:"center",background:e.palette.background.paper,width:16,height:16}));fe(ht)(({theme:e})=>({borderRadius:We.BORDER_RADIUS_ELEMENT_TAG,backgroundColor:e.palette.background.paper,boxShadow:e.shadows[1],width:"fit-content",gap:"unset"}));fe(_V)(({theme:e})=>({[`&.${Tv.head}`]:{backgroundColor:"#008A77",color:e.palette.common.white,fontWeight:600},[`&.${Tv.body}`]:{fontSize:14},"&:first-of-type":{borderBottomLeftRadius:"0 !important"},"&:last-child":{borderBottomRightRadius:"0 !important"}}));fe(UU)(({theme:e})=>({height:10,borderRadius:5,[`&.${dA.colorPrimary}`]:{backgroundColor:e.palette.grey[200],...e.applyStyles("dark",{backgroundColor:e.palette.grey[800]})},[`& .${dA.bar}`]:{borderRadius:5,backgroundColor:e.palette.primary}}));var xu=(e=>(e.CIRCLE="CIRCLE",e.SQUARE="SQUARE",e.FULL_WIDTH="FULL_WIDTH",e))(xu||{});const jO=32,zO=26,UO=18,FO=20,uh={large:{width:jO,height:jO},medium:{width:zO,height:zO},small:{width:UO,height:UO},extra_small:{width:FO,height:FO}},AX=({isWrap:e=!1,children:t})=>e?D.jsx(mf,{alignItems:"center",className:"jsdsdj",children:t}):D.jsx(D.Fragment,{children:t}),MP=({url:e,onClick:t,sx:n={},isBorder:r=!1,isWrap:a=!1,sizeType:s=xu.CIRCLE,size:c="medium",...f})=>{const{palette:d}=Un(),[p,h]=E.useState(!1);t&&(n={...n,cursor:"pointer"});const g=s===xu.CIRCLE?"50%":s===xu.SQUARE?We.BORDER_RADIUS_ELEMENT_SMALL:0;return D.jsxs(AX,{isWrap:a,children:[!p&&D.jsx(aV,{variant:"rectangular",sx:{...uh[c],borderRadius:g}}),D.jsx(In,{...f,component:"img",src:e,onClick:t,onLoad:()=>h(!0),onError:v=>{v.currentTarget.src="/images/diamond.png"},sx:{display:p?"block":"none",...uh[c],objectFit:"cover",borderRadius:g,border:r?`1px solid ${d.divider}`:"none",...n}})]})},DP=({url:e,height:t=We.HEIGHT_LOGO_DEFAULT,sx:n={},fillColor:r})=>{const a=So(),s=()=>a(nn.DASHBOARD.path);return D.jsx(In,{onClick:s,sx:{cursor:"pointer",height:t,...n},children:D.jsx(MP,{url:e,sx:{height:t,borderRadius:"unset",width:"auto",...r==="white"&&{filter:"brightness(0) invert(1)"}}})})},Jo=e=>e?.message??"Đã xảy ra lỗi không xác định!",nr=({icon:e,size:t="medium",color:n,disabled:r,onClick:a,sx:s,fill:c=0})=>{const{palette:f}=Un();return r&&(a=void 0,n="disabled"),a&&(s={cursor:"pointer","&:hover":{color:n?"none":f.primary.main},...s}),D.jsx(rM,{onClick:a,color:n,sx:{cursor:"inherit",fontSize:We.FONT_SIZE_ICON[t],fontVariationSettings:`'FILL' ${c}, 'wght' 100, 'GRAD' 200, 'opsz' 24`,...s},component:"span",className:"material-symbols-rounded",children:e})},OX=zp(({className:e,...t})=>D.jsx(gM,{...t,arrow:!0,classes:{popper:e}}))(()=>({[`& .${Ft.arrow}`]:{color:"white"}})),PP=({url:e,sx:t={},size:n="medium",tooltipContent:r,...a})=>r?D.jsx(OX,{title:r,arrow:!0,children:D.jsx(JC,{...a,src:e||"",sx:{...uh[n],bgcolor:"primary.main",...t,cursor:"pointer"}})}):D.jsx(JC,{...a,src:e||"",sx:{...uh[n],bgcolor:"primary.main",...t,cursor:"pointer"}});var wp={exports:{}},RX=wp.exports,VO;function _X(){return VO||(VO=1,(function(e,t){(function(n,r){e.exports=r()})(RX,(function(){var n=1e3,r=6e4,a=36e5,s="millisecond",c="second",f="minute",d="hour",p="day",h="week",g="month",v="quarter",x="year",b="date",S="Invalid Date",T=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,R={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(U){var j=["th","st","nd","rd"],k=U%100;return"["+U+(j[(k-20)%10]||j[k]||j[0])+"]"}},A=function(U,j,k){var I=String(U);return!I||I.length>=j?U:""+Array(j+1-I.length).join(k)+U},_={s:A,z:function(U){var j=-U.utcOffset(),k=Math.abs(j),I=Math.floor(k/60),q=k%60;return(j<=0?"+":"-")+A(I,2,"0")+":"+A(q,2,"0")},m:function U(j,k){if(j.date()<k.date())return-U(k,j);var I=12*(k.year()-j.year())+(k.month()-j.month()),q=j.clone().add(I,g),X=k-q<0,ie=j.clone().add(I+(X?-1:1),g);return+(-(I+(k-q)/(X?q-ie:ie-q))||0)},a:function(U){return U<0?Math.ceil(U)||0:Math.floor(U)},p:function(U){return{M:g,y:x,w:h,d:p,D:b,h:d,m:f,s:c,ms:s,Q:v}[U]||String(U||"").toLowerCase().replace(/s$/,"")},u:function(U){return U===void 0}},O="en",M={};M[O]=R;var L="$isDayjsObject",B=function(U){return U instanceof P||!(!U||!U[L])},z=function U(j,k,I){var q;if(!j)return O;if(typeof j=="string"){var X=j.toLowerCase();M[X]&&(q=X),k&&(M[X]=k,q=X);var ie=j.split("-");if(!q&&ie.length>1)return U(ie[0])}else{var $=j.name;M[$]=j,q=$}return!I&&q&&(O=q),q||!I&&O},V=function(U,j){if(B(U))return U.clone();var k=typeof j=="object"?j:{};return k.date=U,k.args=arguments,new P(k)},H=_;H.l=z,H.i=B,H.w=function(U,j){return V(U,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var P=(function(){function U(k){this.$L=z(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[L]=!0}var j=U.prototype;return j.parse=function(k){this.$d=(function(I){var q=I.date,X=I.utc;if(q===null)return new Date(NaN);if(H.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var ie=q.match(T);if(ie){var $=ie[2]-1||0,W=(ie[7]||"0").substring(0,3);return X?new Date(Date.UTC(ie[1],$,ie[3]||1,ie[4]||0,ie[5]||0,ie[6]||0,W)):new Date(ie[1],$,ie[3]||1,ie[4]||0,ie[5]||0,ie[6]||0,W)}}return new Date(q)})(k),this.init()},j.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},j.$utils=function(){return H},j.isValid=function(){return this.$d.toString()!==S},j.isSame=function(k,I){var q=V(k);return this.startOf(I)<=q&&q<=this.endOf(I)},j.isAfter=function(k,I){return V(k)<this.startOf(I)},j.isBefore=function(k,I){return this.endOf(I)<V(k)},j.$g=function(k,I,q){return H.u(k)?this[I]:this.set(q,k)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(k,I){var q=this,X=!!H.u(I)||I,ie=H.p(k),$=function(ve,ye){var Ae=H.w(q.$u?Date.UTC(q.$y,ye,ve):new Date(q.$y,ye,ve),q);return X?Ae:Ae.endOf(p)},W=function(ve,ye){return H.w(q.toDate()[ve].apply(q.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(ye)),q)},te=this.$W,oe=this.$M,le=this.$D,he="set"+(this.$u?"UTC":"");switch(ie){case x:return X?$(1,0):$(31,11);case g:return X?$(1,oe):$(0,oe+1);case h:var ge=this.$locale().weekStart||0,Me=(te<ge?te+7:te)-ge;return $(X?le-Me:le+(6-Me),oe);case p:case b:return W(he+"Hours",0);case d:return W(he+"Minutes",1);case f:return W(he+"Seconds",2);case c:return W(he+"Milliseconds",3);default:return this.clone()}},j.endOf=function(k){return this.startOf(k,!1)},j.$set=function(k,I){var q,X=H.p(k),ie="set"+(this.$u?"UTC":""),$=(q={},q[p]=ie+"Date",q[b]=ie+"Date",q[g]=ie+"Month",q[x]=ie+"FullYear",q[d]=ie+"Hours",q[f]=ie+"Minutes",q[c]=ie+"Seconds",q[s]=ie+"Milliseconds",q)[X],W=X===p?this.$D+(I-this.$W):I;if(X===g||X===x){var te=this.clone().set(b,1);te.$d[$](W),te.init(),this.$d=te.set(b,Math.min(this.$D,te.daysInMonth())).$d}else $&&this.$d[$](W);return this.init(),this},j.set=function(k,I){return this.clone().$set(k,I)},j.get=function(k){return this[H.p(k)]()},j.add=function(k,I){var q,X=this;k=Number(k);var ie=H.p(I),$=function(oe){var le=V(X);return H.w(le.date(le.date()+Math.round(oe*k)),X)};if(ie===g)return this.set(g,this.$M+k);if(ie===x)return this.set(x,this.$y+k);if(ie===p)return $(1);if(ie===h)return $(7);var W=(q={},q[f]=r,q[d]=a,q[c]=n,q)[ie]||1,te=this.$d.getTime()+k*W;return H.w(te,this)},j.subtract=function(k,I){return this.add(-1*k,I)},j.format=function(k){var I=this,q=this.$locale();if(!this.isValid())return q.invalidDate||S;var X=k||"YYYY-MM-DDTHH:mm:ssZ",ie=H.z(this),$=this.$H,W=this.$m,te=this.$M,oe=q.weekdays,le=q.months,he=q.meridiem,ge=function(ye,Ae,_e,je){return ye&&(ye[Ae]||ye(I,X))||_e[Ae].slice(0,je)},Me=function(ye){return H.s($%12||12,ye,"0")},ve=he||function(ye,Ae,_e){var je=ye<12?"AM":"PM";return _e?je.toLowerCase():je};return X.replace(w,(function(ye,Ae){return Ae||(function(_e){switch(_e){case"YY":return String(I.$y).slice(-2);case"YYYY":return H.s(I.$y,4,"0");case"M":return te+1;case"MM":return H.s(te+1,2,"0");case"MMM":return ge(q.monthsShort,te,le,3);case"MMMM":return ge(le,te);case"D":return I.$D;case"DD":return H.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return ge(q.weekdaysMin,I.$W,oe,2);case"ddd":return ge(q.weekdaysShort,I.$W,oe,3);case"dddd":return oe[I.$W];case"H":return String($);case"HH":return H.s($,2,"0");case"h":return Me(1);case"hh":return Me(2);case"a":return ve($,W,!0);case"A":return ve($,W,!1);case"m":return String(W);case"mm":return H.s(W,2,"0");case"s":return String(I.$s);case"ss":return H.s(I.$s,2,"0");case"SSS":return H.s(I.$ms,3,"0");case"Z":return ie}return null})(ye)||ie.replace(":","")}))},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(k,I,q){var X,ie=this,$=H.p(I),W=V(k),te=(W.utcOffset()-this.utcOffset())*r,oe=this-W,le=function(){return H.m(ie,W)};switch($){case x:X=le()/12;break;case g:X=le();break;case v:X=le()/3;break;case h:X=(oe-te)/6048e5;break;case p:X=(oe-te)/864e5;break;case d:X=oe/a;break;case f:X=oe/r;break;case c:X=oe/n;break;default:X=oe}return q?X:H.a(X)},j.daysInMonth=function(){return this.endOf(g).$D},j.$locale=function(){return M[this.$L]},j.locale=function(k,I){if(!k)return this.$L;var q=this.clone(),X=z(k,I,!0);return X&&(q.$L=X),q},j.clone=function(){return H.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},U})(),K=P.prototype;return V.prototype=K,[["$ms",s],["$s",c],["$m",f],["$H",d],["$W",p],["$M",g],["$y",x],["$D",b]].forEach((function(U){K[U[1]]=function(j){return this.$g(j,U[0],U[1])}})),V.extend=function(U,j){return U.$i||(U(j,P,V),U.$i=!0),V},V.locale=z,V.isDayjs=B,V.unix=function(U){return V(1e3*U)},V.en=M[O],V.Ls=M,V.p={},V}))})(wp)),wp.exports}var MX=_X();const mn=Ri(MX);var Cp={exports:{}},DX=Cp.exports,HO;function PX(){return HO||(HO=1,(function(e,t){(function(n,r){e.exports=r()})(DX,(function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(s,c,f){var d=c.prototype;f.utc=function(S){var T={date:S,utc:!0,args:arguments};return new c(T)},d.utc=function(S){var T=f(this.toDate(),{locale:this.$L,utc:!0});return S?T.add(this.utcOffset(),n):T},d.local=function(){return f(this.toDate(),{locale:this.$L,utc:!1})};var p=d.parse;d.parse=function(S){S.utc&&(this.$u=!0),this.$utils().u(S.$offset)||(this.$offset=S.$offset),p.call(this,S)};var h=d.init;d.init=function(){if(this.$u){var S=this.$d;this.$y=S.getUTCFullYear(),this.$M=S.getUTCMonth(),this.$D=S.getUTCDate(),this.$W=S.getUTCDay(),this.$H=S.getUTCHours(),this.$m=S.getUTCMinutes(),this.$s=S.getUTCSeconds(),this.$ms=S.getUTCMilliseconds()}else h.call(this)};var g=d.utcOffset;d.utcOffset=function(S,T){var w=this.$utils().u;if(w(S))return this.$u?0:w(this.$offset)?g.call(this):this.$offset;if(typeof S=="string"&&(S=(function(O){O===void 0&&(O="");var M=O.match(r);if(!M)return null;var L=(""+M[0]).match(a)||["-",0,0],B=L[0],z=60*+L[1]+ +L[2];return z===0?0:B==="+"?z:-z})(S),S===null))return this;var R=Math.abs(S)<=16?60*S:S;if(R===0)return this.utc(T);var A=this.clone();if(T)return A.$offset=R,A.$u=!1,A;var _=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(A=this.local().add(R+_,n)).$offset=R,A.$x.$localOffset=_,A};var v=d.format;d.format=function(S){var T=S||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return v.call(this,T)},d.valueOf=function(){var S=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*S},d.isUTC=function(){return!!this.$u},d.toISOString=function(){return this.toDate().toISOString()},d.toString=function(){return this.toDate().toUTCString()};var x=d.toDate;d.toDate=function(S){return S==="s"&&this.$offset?f(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():x.call(this)};var b=d.diff;d.diff=function(S,T,w){if(S&&this.$u===S.$u)return b.call(this,S,T,w);var R=this.local(),A=f(S).local();return b.call(R,A,T,w)}}}))})(Cp)),Cp.exports}var kX=PX();const NX=Ri(kX);var Ap={exports:{}},LX=Ap.exports,qO;function $X(){return qO||(qO=1,(function(e,t){(function(n,r){e.exports=r()})(LX,(function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(a,s,c){var f,d=function(v,x,b){b===void 0&&(b={});var S=new Date(v),T=(function(w,R){R===void 0&&(R={});var A=R.timeZoneName||"short",_=w+"|"+A,O=r[_];return O||(O=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:w,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:A}),r[_]=O),O})(x,b);return T.formatToParts(S)},p=function(v,x){for(var b=d(v,x),S=[],T=0;T<b.length;T+=1){var w=b[T],R=w.type,A=w.value,_=n[R];_>=0&&(S[_]=parseInt(A,10))}var O=S[3],M=O===24?0:O,L=S[0]+"-"+S[1]+"-"+S[2]+" "+M+":"+S[4]+":"+S[5]+":000",B=+v;return(c.utc(L).valueOf()-(B-=B%1e3))/6e4},h=s.prototype;h.tz=function(v,x){v===void 0&&(v=f);var b,S=this.utcOffset(),T=this.toDate(),w=T.toLocaleString("en-US",{timeZone:v}),R=Math.round((T-new Date(w))/1e3/60),A=15*-Math.round(T.getTimezoneOffset()/15)-R;if(!Number(A))b=this.utcOffset(0,x);else if(b=c(w,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(A,!0),x){var _=b.utcOffset();b=b.add(S-_,"minute")}return b.$x.$timezone=v,b},h.offsetName=function(v){var x=this.$x.$timezone||c.tz.guess(),b=d(this.valueOf(),x,{timeZoneName:v}).find((function(S){return S.type.toLowerCase()==="timezonename"}));return b&&b.value};var g=h.startOf;h.startOf=function(v,x){if(!this.$x||!this.$x.$timezone)return g.call(this,v,x);var b=c(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return g.call(b,v,x).tz(this.$x.$timezone,!0)},c.tz=function(v,x,b){var S=b&&x,T=b||x||f,w=p(+c(),T);if(typeof v!="string")return c(v).tz(T);var R=(function(M,L,B){var z=M-60*L*1e3,V=p(z,B);if(L===V)return[z,L];var H=p(z-=60*(V-L)*1e3,B);return V===H?[z,V]:[M-60*Math.min(V,H)*1e3,Math.max(V,H)]})(c.utc(v,S).valueOf(),w,T),A=R[0],_=R[1],O=c(A).utcOffset(_);return O.$x.$timezone=T,O},c.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},c.tz.setDefault=function(v){f=v}}}))})(Ap)),Ap.exports}var BX=$X();const IX=Ri(BX);var Op={exports:{}},jX=Op.exports,GO;function zX(){return GO||(GO=1,(function(e,t){(function(n,r){e.exports=r()})(jX,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,a,s){var c=a.prototype,f=c.format;s.en.formats=n,c.format=function(d){d===void 0&&(d="YYYY-MM-DDTHH:mm:ssZ");var p=this.$locale().formats,h=(function(g,v){return g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(x,b,S){var T=S&&S.toUpperCase();return b||v[S]||n[S]||v[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(w,R,A){return R||A.slice(1)}))}))})(d,p===void 0?{}:p);return f.call(this,h)}}}))})(Op)),Op.exports}var UX=zX();const FX=Ri(UX);var Rp={exports:{}},VX=Rp.exports,YO;function HX(){return YO||(YO=1,(function(e,t){(function(n,r){e.exports=r()})(VX,(function(){return function(n,r,a){n=n||{};var s=r.prototype,c={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function f(p,h,g,v){return s.fromToBase(p,h,g,v)}a.en.relativeTime=c,s.fromToBase=function(p,h,g,v,x){for(var b,S,T,w=g.$locale().relativeTime||c,R=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],A=R.length,_=0;_<A;_+=1){var O=R[_];O.d&&(b=v?a(p).diff(g,O.d,!0):g.diff(p,O.d,!0));var M=(n.rounding||Math.round)(Math.abs(b));if(T=b>0,M<=O.r||!O.r){M<=1&&_>0&&(O=R[_-1]);var L=w[O.l];x&&(M=x(""+M)),S=typeof L=="string"?L.replace("%d",M):L(M,h,O.l,T);break}}if(h)return S;var B=T?w.future:w.past;return typeof B=="function"?B(S):B.replace("%s",S)},s.to=function(p,h){return f(p,h,this,!0)},s.from=function(p,h){return f(p,h,this)};var d=function(p){return p.$u?a.utc():a()};s.toNow=function(p){return this.to(d(this),p)},s.fromNow=function(p){return this.from(d(this),p)}}}))})(Rp)),Rp.exports}var qX=HX();const GX=Ri(qX);mn.extend(NX);mn.extend(IX);mn.extend(FX);mn.extend(GX);mn.tz.setDefault("Asia/Ho_Chi_Minh");const YX={name:"vi",weekdays:"Chủ Nhật_Thứ Hai_Thứ Ba_Thứ Tư_Thứ Năm_Thứ Sáu_Thứ Bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),months:"Tháng 1_Tháng 2_Tháng 3_Tháng 4_Tháng 5_Tháng 6_Tháng 7_Tháng 8_Tháng 9_Tháng 10_Tháng 11_Tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekStart:1,ordinal:e=>`${e}`,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"}};mn.locale(YX,null,!0);mn.locale("vi");const WX=e=>{const t=mn.utc(e).tz();return mn().diff(t,"day")>7?t.format("DD/MM/YYYY"):t.fromNow()},KX=(e,t)=>e?t?mn(e).format("DD/MM/YYYY hh:mm"):mn(e).format("DD/MM/YYYY hh:mm A"):"",XX=e=>e?mn(e).format("DD/MM/YYYY"):"",ZX=(e,t)=>{const n=e?mn(e):mn();return!(!n.isValid()||n.year()!==t)},QX=(e,t,n)=>{const r=mn(e),a=mn(t);if(n<r.year()||n>a.year())return{start:0,end:0};const s=r.year()===n?r.month():0,c=a.year()===n?a.month():11;return{start:s,end:c}};function JX(e,t,n){const r=e.month(),a=e.date();return t.slice(0,r).reduce((c,f)=>c+f,0)+(a-1)*n}const eZ=(e,t)=>{const n=mn(e),r=mn(t);return n.isSame(r)},tZ=e=>e?mn(e).format("hh:mm DD/MM/YYYY"):"",nZ=e=>typeof e!="string"?!1:[/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?$/,/^\d{4}-\d{2}-\d{2}$/,/^\d{2}\/\d{2}\/\d{4}$/,/^\d{2}-\d{2}-\d{4}$/].some(n=>n.test(e)),rZ=Object.freeze(Object.defineProperty({__proto__:null,checkNowYear:ZX,getDate:XX,getDateTime:KX,getDayOffsetPx:JX,getMonthRangeForYear:QX,getTimeAgo:WX,getTimeDate:tZ,isDateString:nZ,isSameDateTime:eZ},Symbol.toStringTag,{value:"Module"})),iZ=e=>{switch(e){case Vt.HRM:return"linear-gradient(180deg, #09D47B 0%, #07554B 100%)";case Vt.WORKFLOW:return"linear-gradient(180deg, #3990FF 0%, #2662FF 100%)";default:return"linear-gradient(180deg, #FF9A56 0%, #FF6A43 100%)"}},oZ=rZ,aZ=({time:e,hasText:t})=>D.jsx(_t,{variant:"caption",sx:{...so(1),color:"text.disabled",lineHeight:1.2},children:(t?"Cập nhật lúc ":"")+oZ.getTimeAgo(e)}),sZ=({time:e,content:t,height:n=We.HEIGHT_IMAGE_DEFAULT})=>D.jsxs(Vp,{sx:{height:n,gap:0,justifyContent:"space-between",alignItems:"flex-start"},children:[D.jsx(_t,{sx:{...so(1)},children:t}),D.jsx(aZ,{time:e})]}),lZ=({url:e,content:t,time:n,sizeType:r="medium"})=>D.jsxs(mf,{alignItems:"center",children:[D.jsx(PP,{url:e,size:r}),D.jsx(sZ,{content:t,time:n})]}),cZ=({open:e,placement:t="top",content:n,children:r,onOpen:a,onClose:s,onClickAway:c,...f})=>D.jsx(J2,{onClickAway:c,children:D.jsx(gM,{PopperProps:{disablePortal:!0},open:e,onOpen:a,onClose:s,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,placement:t,title:n,...f,children:D.jsx("span",{children:r})})}),uZ=({})=>D.jsx(Z2,{in:!0,timeout:We.ANIMATION_TIME,children:D.jsx(ht,{direction:"column",sx:{flex:1,height:"100%",alignItems:"center",justifyContent:"center",padding:We.PADDING_GAP_ITEM},children:D.jsx(In,{component:"img",sx:{width:70},src:"/images/empty.svg"})})}),kP=({color:e,size:t="medium",sx:n={}})=>D.jsx(ht,{sx:{...n,flex:1,alignItems:"center",justifyContent:"center"},children:D.jsx(rS,{size:We.FONT_SIZE_LOADING[t],sx:{color:e}})}),fZ=e=>{const t=oa(r=>r.account.user?.type);return E.useMemo(()=>{let r=LS.filter(a=>a.allowUserTypes.includes(t));return e!==Vt.ALL&&(r=r.filter(a=>a.category===e)),r},[e,t])},NP=()=>{const e=Di(),t=n=>n.replace(/\/+$/,"");return t(e.pathname)===t(nn.DASHBOARD.path)},dZ=()=>{const{user:e,current_access:t}=oa(r=>r.account);return E.useMemo(()=>LS.find(r=>r.key===t&&e&&(r.allowUserTypes?r.allowUserTypes.includes(e?.type):!0)),[t,e])},pZ=({})=>{const e=NP(),{notificationCount:t}=oa(S=>S.account),n=oa(S=>S.account),r=ys(),a=So(),{palette:s}=Un(),{showSnackbar:c}=hf(),[f,d]=E.useState(!1),[p,h]=E.useState([]),[g,v]=E.useState(!1),x=async()=>{v(!0);try{const S=await T0.getListNotification({status:SP.NOT_VIEWED,page:0,take:0});h(S.list),r(bn.changeNotificationCount(S.total))}catch(S){c({message:Jo(S),type:ei.ERROR})}finally{v(!1)}};E.useEffect(()=>{(async()=>await x())()},[]);const b=async S=>{d(!1);const T=S?.createdById===n.user.id;try{await T0.updateNotification({updateNotificationAction:Jv.VIEW_ONE,id:S.id}),r(bn.changeNotificationCount(t-1)),a(S.path||nn.DASHBOARD.path,{state:{searchType:T?Pv.MY_PROPOSAL:Pv.NEED_APPROVE}})}catch(w){c({message:Jo(w),type:ei.ERROR})}};return D.jsx(cZ,{open:f,onClickAway:()=>d(!1),placement:"bottom-end",content:D.jsxs(oM,{sx:{display:"flex",flexDirection:"column",padding:0,maxHeight:500,overflowY:"auto",flex:1,width:"300px"},children:[D.jsxs(pA,{sx:{padding:We.PADDING_GAP_ITEM,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",position:"sticky",top:0,backgroundColor:s.background.paper,zIndex:1},children:[D.jsx(_t,{variant:"subtitle1",children:"Thông báo"}),D.jsxs(mf,{children:[D.jsx(nr,{sx:{cursor:"pointer"},icon:"mark_email_read",onClick:async S=>{S.stopPropagation();try{await T0.updateNotification({updateNotificationAction:Jv.VIEW_ALL}),r(bn.changeNotificationCount(0))}catch(T){c({message:Jo(T),type:ei.ERROR})}}}),D.jsx(nr,{icon:"settings",onClick:S=>{S.stopPropagation()}})]})]}),g?D.jsx(Il,{sx:{height:50},children:D.jsx(kP,{})}):p.length===0?D.jsx(uZ,{}):p.map(S=>D.jsx(pA,{onClick:()=>b(S),id:S.id,sx:{borderRadius:We.BORDER_RADIUS_ELEMENT,padding:We.PADDING_GAP_ITEM,display:"flex",flexDirection:"row",alignItems:"center",cursor:"pointer",transition:We.TRANSITION_TIME,"&:hover":{backgroundColor:s.action.hover,color:s.primary.main}},children:D.jsxs(ht,{gap:1,children:[D.jsx(lZ,{url:S.createdBy?.url||"",content:S.title,time:S.createdAt}),D.jsx(_t,{variant:"caption",sx:{...so(2)},children:S.content})]})},S.id))]}),children:D.jsx(t6,{onClick:async()=>{d(!f),await x()},badgeContent:t,color:"error",sx:{cursor:"pointer"},children:D.jsx(nr,{icon:"notifications",onClick:()=>d(!f),size:"large",sx:{color:e?s.background.default:s.primary.main,"&:hover":{color:e?s.background.default:s.primary.main}}})})})},hZ=({name:e,url:t,positions:n=[],maxWidth:r="440px",isTag:a=!1,sxName:s,sxPosition:c,sizeAvatar:f="large"})=>{const{palette:d}=Un(),p=NP();return D.jsxs(mf,{sx:{alignItems:"center",gap:We.PADDING_GAP_ITEM},children:[D.jsx(PP,{url:t,size:f}),n.length>0?D.jsxs(ht,{sx:{gap:0},children:[D.jsx(_t,{sx:{color:p?d.primary.contrastText:d.text.secondary,fontWeight:"600",fontSize:"14px",lineHeight:"20px",...so(1),...s},children:e}),D.jsx(_t,{variant:"caption",sx:{...so(1),color:d.text.disabled,maxWidth:r,...a&&{display:"flex",padding:"2px 4px",justifyContent:"center",alignItems:"center",gap:"10px",borderRadius:"4px",background:" #EFF8FF",color:" #035388",width:"fit-content",...c}},children:n.join(" / ")})]}):D.jsx(_t,{sx:{...SD.textSm.semiBold,...so(1),...s},children:e})]})},nx=({icon:e,content:t,size:n,color:r="inherit",onClick:a,sx:s={},sxIcon:c={},sxText:f={},fill:d=0,applyCssOnClick:p,id:h,isNowrap:g=!1})=>((a||p)&&(s={...s,cursor:"pointer"}),D.jsxs(Il,{onClick:a,sx:{gap:We.GAP_ICON_CONTENT_BY_SIZE[n||"medium"],...s},id:h,children:[e&&D.jsx(nr,{icon:e,sx:c,color:r,fill:d}),t&&D.jsx(_t,{color:r,variant:n?We.VARIANT_BY_SIZE[n]:"body1",sx:{...g?{whiteSpace:"nowrap"}:so(1),transform:"translateY(0.5px)",...f},children:t})]})),mZ=({name:e,direction:t="row",label:n,disabled:r,iconLabel:a="event_list",defaultValue:s,value:c,onChange:f,children:d,required:p=!1,sx:h={}})=>{const g=v=>{f&&f({target:{name:e,value:v.target.value||void 0}})};return D.jsxs(nM,{disabled:r,sx:{gap:We.PADDING_GAP_ITEM},onChange:g,children:[n&&D.jsx(iM,{shrink:!0,required:p,sx:{transform:"translate(0px , -9px) scale(0.75)",zIndex:2,display:"flex"},children:D.jsxs(CX,{children:[D.jsx(nr,{icon:a,sx:{fontSize:We.TEXT_FIELD.FONT_SIZE_LABEL}}),n]})}),D.jsx(HF,{name:e,defaultValue:s,value:c,sx:{flexDirection:t,paddingTop:n?"calc(8.5px + 1.5px)":0,gap:We.PADDING_GAP_LAYOUT,...h},children:d})]})},gZ=({name:e,label:t,...n})=>D.jsx(iU,{name:e,label:t,sx:{alignItems:"center",mr:0},control:D.jsx(UF,{...n,sx:{paddingTop:0,paddingBottom:0,paddingRight:We.PADDING_GAP_ITEM,marginLeft:"2px","&:hover":{backgroundColor:"unset"},"& .MuiSvgIcon-root":{fontSize:"18px"}}})}),yZ=({})=>{const e=oa(h=>h.account),{showSnackbar:t}=hf(),n=ys(),r=So(),[a,s]=E.useState(null),c=e?.user?.managedOrgUnits?.map(h=>h.name)||[],f=[{content:"Đăng xuất khỏi thiết bị",icon:"logout",onClick:async()=>{try{await Promise.all([n(bn.logout({type:ch.THIS_DEVICE,refreshToken:e.refreshToken})).unwrap(),n(bn.unsubscribeTopic({fcmToken:e.fcmToken})).unwrap()]),r(nn.AUTH.path)}catch(h){t({message:Jo(h),type:ei.ERROR})}}},{content:"Đăng xuất khỏi tất cả thiết bị",icon:"exit_to_app",onClick:async()=>{"serviceWorker"in navigator?navigator.serviceWorker.getRegistrations().then(h=>{h.forEach(g=>{g.unregister()})}).catch(h=>{console.error("Error unregistering Service Workers: ",h)}):console.warn("Service Worker is not supported in this browser."),await Promise.all([n(bn.logout({type:ch.THIS_DEVICE,refreshToken:e.refreshToken})).unwrap(),n(bn.unsubscribeTopic({fcmToken:e.fcmToken})).unwrap()]),r(nn.AUTH.path)}}],d=h=>{s(h.currentTarget)},p=()=>{s(null)};return D.jsxs(D.Fragment,{children:[D.jsxs(In,{onClick:d,sx:{cursor:"pointer",display:"flex",alignItems:"center",gap:1},children:[D.jsx(hZ,{url:e.user?.url,name:e.user?.name??"",positions:c,isTag:!0}),D.jsx(nr,{icon:"arrow_drop_down",size:"medium",sx:{color:"text.secondary",transition:"transform 0.2s ease-in-out",transform:a?"rotate(180deg)":"rotate(0deg)",fontVariationSettings:"'wght' 600, 'FILL' 0",willChange:"transform",backfaceVisibility:"hidden"}})]}),D.jsxs(cM,{anchorEl:a,open:!!a,onClose:p,onClick:p,disableScrollLock:!0,PaperProps:{elevation:0,sx:{overflow:"visible",filter:"drop-shadow(0px 2px 8px rgba(0,0,0,0.32))",mt:1.5,transform:"translate3d(0, 0, 0)",willChange:"transform","& .MuiAvatar-root":{width:32,height:32,ml:-.5,mr:1},"&:before":{content:'""',display:"block",position:"absolute",top:0,right:14,width:10,height:10,bgcolor:"background.paper",transform:"translateY(-50%) rotate(45deg)",zIndex:0}}},transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},children:[D.jsxs(In,{sx:{p:2},children:[D.jsxs(wX,{children:[D.jsx(_t,{variant:"subtitle1",sx:{lineHeight:1},children:e.user?.name}),D.jsx(nr,{icon:"settings",onClick:()=>r(nn.DASHBOARD.path+hi.ACCOUNT.path)})]}),e.user?.userOrgUnitPositions&&e.user.userOrgUnitPositions.length>0&&D.jsxs(_n.Fragment,{children:[D.jsx(nx,{icon:"admin_panel_settings",content:"Vai trò"}),D.jsx(mZ,{direction:"column",sx:{paddingLeft:"20px"},value:e.userUnitPositionId,onChange:h=>{n(bn.updatePositionOrgUnit(h.target.value)),window.location.reload()},children:e.user.userOrgUnitPositions.map(h=>D.jsx(gZ,{value:h.id,size:"small",label:D.jsxs(Vp,{gap:0,children:[D.jsx(_t,{children:h.orgUnit.name}),D.jsx(_t,{variant:"caption",sx:{...so(1),color:"text.disabled"},children:h.position.name})]})},h.id))})]})]}),D.jsx(hv,{}),f.map((h,g)=>D.jsxs(gF,{onClick:h.onClick,children:[D.jsx(nr,{icon:h.icon,size:"small",sx:{mr:1}}),D.jsx(_t,{children:h.content})]},g))]})]})},vZ=({children:e})=>D.jsx(Vp,{sx:{minHeight:"100vh",width:"100%",overflowY:"auto",backgroundImage:"url('/images/image-dashboard.jpg')",backgroundSize:"cover",backgroundPosition:"top",backgroundRepeat:"no-repeat"},children:D.jsxs(Vp,{p:{padding:We.PADDING_GAP_LAYOUT},children:[D.jsxs(EX,{children:[D.jsx(Il,{children:D.jsx(DP,{url:"/images/logo/logo-sub-3.svg",fillColor:"white"})}),D.jsxs(Il,{children:[D.jsx(pZ,{}),D.jsx(yZ,{})]})]}),e]})}),bZ=({children:e})=>(TX(),D.jsx(vZ,{children:e})),WO=({children:e})=>D.jsx(ht,{sx:{backgroundColor:"background.default",minHeight:"100vh",width:"100%",overflowY:"auto"},children:D.jsx(ht,{sx:{flex:1,alignItems:"center",py:We.PADDING_GAP_LAYOUT,justifyContent:"center"},children:e})});var SZ=function(t){return xZ(t)&&!TZ(t)};function xZ(e){return!!e&&typeof e=="object"}function TZ(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||CZ(e)}var EZ=typeof Symbol=="function"&&Symbol.for,wZ=EZ?Symbol.for("react.element"):60103;function CZ(e){return e.$$typeof===wZ}function AZ(e){return Array.isArray(e)?[]:{}}function fh(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Hu(AZ(e),e,t):e}function OZ(e,t,n){return e.concat(t).map(function(r){return fh(r,n)})}function RZ(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(a){r[a]=fh(e[a],n)}),Object.keys(t).forEach(function(a){!n.isMergeableObject(t[a])||!e[a]?r[a]=fh(t[a],n):r[a]=Hu(e[a],t[a],n)}),r}function Hu(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||OZ,n.isMergeableObject=n.isMergeableObject||SZ;var r=Array.isArray(t),a=Array.isArray(e),s=r===a;return s?r?n.arrayMerge(e,t,n):RZ(e,t,n):fh(t,n)}Hu.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return Hu(r,a,n)},{})};var ib=Hu,LP=typeof global=="object"&&global&&global.Object===Object&&global,_Z=typeof self=="object"&&self&&self.Object===Object&&self,Pi=LP||_Z||Function("return this")(),aa=Pi.Symbol,$P=Object.prototype,MZ=$P.hasOwnProperty,DZ=$P.toString,ou=aa?aa.toStringTag:void 0;function PZ(e){var t=MZ.call(e,ou),n=e[ou];try{e[ou]=void 0;var r=!0}catch{}var a=DZ.call(e);return r&&(t?e[ou]=n:delete e[ou]),a}var kZ=Object.prototype,NZ=kZ.toString;function LZ(e){return NZ.call(e)}var $Z="[object Null]",BZ="[object Undefined]",KO=aa?aa.toStringTag:void 0;function vs(e){return e==null?e===void 0?BZ:$Z:KO&&KO in Object(e)?PZ(e):LZ(e)}function BP(e,t){return function(n){return e(t(n))}}var rx=BP(Object.getPrototypeOf,Object);function bs(e){return e!=null&&typeof e=="object"}var IZ="[object Object]",jZ=Function.prototype,zZ=Object.prototype,IP=jZ.toString,UZ=zZ.hasOwnProperty,FZ=IP.call(Object);function XO(e){if(!bs(e)||vs(e)!=IZ)return!1;var t=rx(e);if(t===null)return!0;var n=UZ.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&IP.call(n)==FZ}function VZ(){this.__data__=[],this.size=0}function jP(e,t){return e===t||e!==e&&t!==t}function cm(e,t){for(var n=e.length;n--;)if(jP(e[n][0],t))return n;return-1}var HZ=Array.prototype,qZ=HZ.splice;function GZ(e){var t=this.__data__,n=cm(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():qZ.call(t,n,1),--this.size,!0}function YZ(e){var t=this.__data__,n=cm(t,e);return n<0?void 0:t[n][1]}function WZ(e){return cm(this.__data__,e)>-1}function KZ(e,t){var n=this.__data__,r=cm(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function xo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}xo.prototype.clear=VZ;xo.prototype.delete=GZ;xo.prototype.get=YZ;xo.prototype.has=WZ;xo.prototype.set=KZ;function XZ(){this.__data__=new xo,this.size=0}function ZZ(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function QZ(e){return this.__data__.get(e)}function JZ(e){return this.__data__.has(e)}function gf(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var eQ="[object AsyncFunction]",tQ="[object Function]",nQ="[object GeneratorFunction]",rQ="[object Proxy]";function zP(e){if(!gf(e))return!1;var t=vs(e);return t==tQ||t==nQ||t==eQ||t==rQ}var E0=Pi["__core-js_shared__"],ZO=(function(){var e=/[^.]+$/.exec(E0&&E0.keys&&E0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function iQ(e){return!!ZO&&ZO in e}var oQ=Function.prototype,aQ=oQ.toString;function Ss(e){if(e!=null){try{return aQ.call(e)}catch{}try{return e+""}catch{}}return""}var sQ=/[\\^$.*+?()[\]{}|]/g,lQ=/^\[object .+?Constructor\]$/,cQ=Function.prototype,uQ=Object.prototype,fQ=cQ.toString,dQ=uQ.hasOwnProperty,pQ=RegExp("^"+fQ.call(dQ).replace(sQ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function hQ(e){if(!gf(e)||iQ(e))return!1;var t=zP(e)?pQ:lQ;return t.test(Ss(e))}function mQ(e,t){return e?.[t]}function xs(e,t){var n=mQ(e,t);return hQ(n)?n:void 0}var qu=xs(Pi,"Map"),Gu=xs(Object,"create");function gQ(){this.__data__=Gu?Gu(null):{},this.size=0}function yQ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var vQ="__lodash_hash_undefined__",bQ=Object.prototype,SQ=bQ.hasOwnProperty;function xQ(e){var t=this.__data__;if(Gu){var n=t[e];return n===vQ?void 0:n}return SQ.call(t,e)?t[e]:void 0}var TQ=Object.prototype,EQ=TQ.hasOwnProperty;function wQ(e){var t=this.__data__;return Gu?t[e]!==void 0:EQ.call(t,e)}var CQ="__lodash_hash_undefined__";function AQ(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Gu&&t===void 0?CQ:t,this}function hs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}hs.prototype.clear=gQ;hs.prototype.delete=yQ;hs.prototype.get=xQ;hs.prototype.has=wQ;hs.prototype.set=AQ;function OQ(){this.size=0,this.__data__={hash:new hs,map:new(qu||xo),string:new hs}}function RQ(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function um(e,t){var n=e.__data__;return RQ(t)?n[typeof t=="string"?"string":"hash"]:n.map}function _Q(e){var t=um(this,e).delete(e);return this.size-=t?1:0,t}function MQ(e){return um(this,e).get(e)}function DQ(e){return um(this,e).has(e)}function PQ(e,t){var n=um(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function da(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}da.prototype.clear=OQ;da.prototype.delete=_Q;da.prototype.get=MQ;da.prototype.has=DQ;da.prototype.set=PQ;var kQ=200;function NQ(e,t){var n=this.__data__;if(n instanceof xo){var r=n.__data__;if(!qu||r.length<kQ-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new da(r)}return n.set(e,t),this.size=n.size,this}function Xl(e){var t=this.__data__=new xo(e);this.size=t.size}Xl.prototype.clear=XZ;Xl.prototype.delete=ZZ;Xl.prototype.get=QZ;Xl.prototype.has=JZ;Xl.prototype.set=NQ;function LQ(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var QO=(function(){try{var e=xs(Object,"defineProperty");return e({},"",{}),e}catch{}})();function UP(e,t,n){t=="__proto__"&&QO?QO(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var $Q=Object.prototype,BQ=$Q.hasOwnProperty;function FP(e,t,n){var r=e[t];(!(BQ.call(e,t)&&jP(r,n))||n===void 0&&!(t in e))&&UP(e,t,n)}function fm(e,t,n,r){var a=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var f=t[s],d=void 0;d===void 0&&(d=e[f]),a?UP(n,f,d):FP(n,f,d)}return n}function IQ(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var jQ="[object Arguments]";function JO(e){return bs(e)&&vs(e)==jQ}var VP=Object.prototype,zQ=VP.hasOwnProperty,UQ=VP.propertyIsEnumerable,FQ=JO((function(){return arguments})())?JO:function(e){return bs(e)&&zQ.call(e,"callee")&&!UQ.call(e,"callee")},yf=Array.isArray;function VQ(){return!1}var HP=typeof mr=="object"&&mr&&!mr.nodeType&&mr,eR=HP&&typeof gr=="object"&&gr&&!gr.nodeType&&gr,HQ=eR&&eR.exports===HP,tR=HQ?Pi.Buffer:void 0,qQ=tR?tR.isBuffer:void 0,qP=qQ||VQ,GQ=9007199254740991,YQ=/^(?:0|[1-9]\d*)$/;function WQ(e,t){var n=typeof e;return t=t??GQ,!!t&&(n=="number"||n!="symbol"&&YQ.test(e))&&e>-1&&e%1==0&&e<t}var KQ=9007199254740991;function GP(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=KQ}var XQ="[object Arguments]",ZQ="[object Array]",QQ="[object Boolean]",JQ="[object Date]",eJ="[object Error]",tJ="[object Function]",nJ="[object Map]",rJ="[object Number]",iJ="[object Object]",oJ="[object RegExp]",aJ="[object Set]",sJ="[object String]",lJ="[object WeakMap]",cJ="[object ArrayBuffer]",uJ="[object DataView]",fJ="[object Float32Array]",dJ="[object Float64Array]",pJ="[object Int8Array]",hJ="[object Int16Array]",mJ="[object Int32Array]",gJ="[object Uint8Array]",yJ="[object Uint8ClampedArray]",vJ="[object Uint16Array]",bJ="[object Uint32Array]",Nt={};Nt[fJ]=Nt[dJ]=Nt[pJ]=Nt[hJ]=Nt[mJ]=Nt[gJ]=Nt[yJ]=Nt[vJ]=Nt[bJ]=!0;Nt[XQ]=Nt[ZQ]=Nt[cJ]=Nt[QQ]=Nt[uJ]=Nt[JQ]=Nt[eJ]=Nt[tJ]=Nt[nJ]=Nt[rJ]=Nt[iJ]=Nt[oJ]=Nt[aJ]=Nt[sJ]=Nt[lJ]=!1;function SJ(e){return bs(e)&&GP(e.length)&&!!Nt[vs(e)]}function ix(e){return function(t){return e(t)}}var YP=typeof mr=="object"&&mr&&!mr.nodeType&&mr,Tu=YP&&typeof gr=="object"&&gr&&!gr.nodeType&&gr,xJ=Tu&&Tu.exports===YP,w0=xJ&&LP.process,jl=(function(){try{var e=Tu&&Tu.require&&Tu.require("util").types;return e||w0&&w0.binding&&w0.binding("util")}catch{}})(),nR=jl&&jl.isTypedArray,TJ=nR?ix(nR):SJ,EJ=Object.prototype,wJ=EJ.hasOwnProperty;function WP(e,t){var n=yf(e),r=!n&&FQ(e),a=!n&&!r&&qP(e),s=!n&&!r&&!a&&TJ(e),c=n||r||a||s,f=c?IQ(e.length,String):[],d=f.length;for(var p in e)(t||wJ.call(e,p))&&!(c&&(p=="length"||a&&(p=="offset"||p=="parent")||s&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||WQ(p,d)))&&f.push(p);return f}var CJ=Object.prototype;function ox(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||CJ;return e===n}var AJ=BP(Object.keys,Object),OJ=Object.prototype,RJ=OJ.hasOwnProperty;function _J(e){if(!ox(e))return AJ(e);var t=[];for(var n in Object(e))RJ.call(e,n)&&n!="constructor"&&t.push(n);return t}function KP(e){return e!=null&&GP(e.length)&&!zP(e)}function ax(e){return KP(e)?WP(e):_J(e)}function MJ(e,t){return e&&fm(t,ax(t),e)}function DJ(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var PJ=Object.prototype,kJ=PJ.hasOwnProperty;function NJ(e){if(!gf(e))return DJ(e);var t=ox(e),n=[];for(var r in e)r=="constructor"&&(t||!kJ.call(e,r))||n.push(r);return n}function sx(e){return KP(e)?WP(e,!0):NJ(e)}function LJ(e,t){return e&&fm(t,sx(t),e)}var XP=typeof mr=="object"&&mr&&!mr.nodeType&&mr,rR=XP&&typeof gr=="object"&&gr&&!gr.nodeType&&gr,$J=rR&&rR.exports===XP,iR=$J?Pi.Buffer:void 0,oR=iR?iR.allocUnsafe:void 0;function BJ(e,t){if(t)return e.slice();var n=e.length,r=oR?oR(n):new e.constructor(n);return e.copy(r),r}function ZP(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function IJ(e,t){for(var n=-1,r=e==null?0:e.length,a=0,s=[];++n<r;){var c=e[n];t(c,n,e)&&(s[a++]=c)}return s}function QP(){return[]}var jJ=Object.prototype,zJ=jJ.propertyIsEnumerable,aR=Object.getOwnPropertySymbols,lx=aR?function(e){return e==null?[]:(e=Object(e),IJ(aR(e),function(t){return zJ.call(e,t)}))}:QP;function UJ(e,t){return fm(e,lx(e),t)}function JP(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var FJ=Object.getOwnPropertySymbols,ek=FJ?function(e){for(var t=[];e;)JP(t,lx(e)),e=rx(e);return t}:QP;function VJ(e,t){return fm(e,ek(e),t)}function tk(e,t,n){var r=t(e);return yf(e)?r:JP(r,n(e))}function HJ(e){return tk(e,ax,lx)}function qJ(e){return tk(e,sx,ek)}var ob=xs(Pi,"DataView"),ab=xs(Pi,"Promise"),sb=xs(Pi,"Set"),lb=xs(Pi,"WeakMap"),sR="[object Map]",GJ="[object Object]",lR="[object Promise]",cR="[object Set]",uR="[object WeakMap]",fR="[object DataView]",YJ=Ss(ob),WJ=Ss(qu),KJ=Ss(ab),XJ=Ss(sb),ZJ=Ss(lb),io=vs;(ob&&io(new ob(new ArrayBuffer(1)))!=fR||qu&&io(new qu)!=sR||ab&&io(ab.resolve())!=lR||sb&&io(new sb)!=cR||lb&&io(new lb)!=uR)&&(io=function(e){var t=vs(e),n=t==GJ?e.constructor:void 0,r=n?Ss(n):"";if(r)switch(r){case YJ:return fR;case WJ:return sR;case KJ:return lR;case XJ:return cR;case ZJ:return uR}return t});var QJ=Object.prototype,JJ=QJ.hasOwnProperty;function eee(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&JJ.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var dR=Pi.Uint8Array;function cx(e){var t=new e.constructor(e.byteLength);return new dR(t).set(new dR(e)),t}function tee(e,t){var n=t?cx(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var nee=/\w*$/;function ree(e){var t=new e.constructor(e.source,nee.exec(e));return t.lastIndex=e.lastIndex,t}var pR=aa?aa.prototype:void 0,hR=pR?pR.valueOf:void 0;function iee(e){return hR?Object(hR.call(e)):{}}function oee(e,t){var n=t?cx(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var aee="[object Boolean]",see="[object Date]",lee="[object Map]",cee="[object Number]",uee="[object RegExp]",fee="[object Set]",dee="[object String]",pee="[object Symbol]",hee="[object ArrayBuffer]",mee="[object DataView]",gee="[object Float32Array]",yee="[object Float64Array]",vee="[object Int8Array]",bee="[object Int16Array]",See="[object Int32Array]",xee="[object Uint8Array]",Tee="[object Uint8ClampedArray]",Eee="[object Uint16Array]",wee="[object Uint32Array]";function Cee(e,t,n){var r=e.constructor;switch(t){case hee:return cx(e);case aee:case see:return new r(+e);case mee:return tee(e,n);case gee:case yee:case vee:case bee:case See:case xee:case Tee:case Eee:case wee:return oee(e,n);case lee:return new r;case cee:case dee:return new r(e);case uee:return ree(e);case fee:return new r;case pee:return iee(e)}}var mR=Object.create,Aee=(function(){function e(){}return function(t){if(!gf(t))return{};if(mR)return mR(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();function Oee(e){return typeof e.constructor=="function"&&!ox(e)?Aee(rx(e)):{}}var Ree="[object Map]";function _ee(e){return bs(e)&&io(e)==Ree}var gR=jl&&jl.isMap,Mee=gR?ix(gR):_ee,Dee="[object Set]";function Pee(e){return bs(e)&&io(e)==Dee}var yR=jl&&jl.isSet,kee=yR?ix(yR):Pee,Nee=1,Lee=2,$ee=4,nk="[object Arguments]",Bee="[object Array]",Iee="[object Boolean]",jee="[object Date]",zee="[object Error]",rk="[object Function]",Uee="[object GeneratorFunction]",Fee="[object Map]",Vee="[object Number]",ik="[object Object]",Hee="[object RegExp]",qee="[object Set]",Gee="[object String]",Yee="[object Symbol]",Wee="[object WeakMap]",Kee="[object ArrayBuffer]",Xee="[object DataView]",Zee="[object Float32Array]",Qee="[object Float64Array]",Jee="[object Int8Array]",ete="[object Int16Array]",tte="[object Int32Array]",nte="[object Uint8Array]",rte="[object Uint8ClampedArray]",ite="[object Uint16Array]",ote="[object Uint32Array]",Mt={};Mt[nk]=Mt[Bee]=Mt[Kee]=Mt[Xee]=Mt[Iee]=Mt[jee]=Mt[Zee]=Mt[Qee]=Mt[Jee]=Mt[ete]=Mt[tte]=Mt[Fee]=Mt[Vee]=Mt[ik]=Mt[Hee]=Mt[qee]=Mt[Gee]=Mt[Yee]=Mt[nte]=Mt[rte]=Mt[ite]=Mt[ote]=!0;Mt[zee]=Mt[rk]=Mt[Wee]=!1;function Eu(e,t,n,r,a,s){var c,f=t&Nee,d=t&Lee,p=t&$ee;if(c!==void 0)return c;if(!gf(e))return e;var h=yf(e);if(h){if(c=eee(e),!f)return ZP(e,c)}else{var g=io(e),v=g==rk||g==Uee;if(qP(e))return BJ(e,f);if(g==ik||g==nk||v&&!a){if(c=d||v?{}:Oee(e),!f)return d?VJ(e,LJ(c,e)):UJ(e,MJ(c,e))}else{if(!Mt[g])return a?e:{};c=Cee(e,g,f)}}s||(s=new Xl);var x=s.get(e);if(x)return x;s.set(e,c),kee(e)?e.forEach(function(T){c.add(Eu(T,t,n,T,e,s))}):Mee(e)&&e.forEach(function(T,w){c.set(w,Eu(T,t,n,w,e,s))});var b=p?d?qJ:HJ:d?sx:ax,S=h?void 0:b(e);return LQ(S||e,function(T,w){S&&(w=T,T=e[w]),FP(c,w,Eu(T,t,n,w,e,s))}),c}var ate=1,ste=4;function ep(e){return Eu(e,ate|ste)}var C0,vR;function lte(){if(vR)return C0;vR=1;var e=Array.isArray,t=Object.keys,n=Object.prototype.hasOwnProperty,r=typeof Element<"u";function a(s,c){if(s===c)return!0;if(s&&c&&typeof s=="object"&&typeof c=="object"){var f=e(s),d=e(c),p,h,g;if(f&&d){if(h=s.length,h!=c.length)return!1;for(p=h;p--!==0;)if(!a(s[p],c[p]))return!1;return!0}if(f!=d)return!1;var v=s instanceof Date,x=c instanceof Date;if(v!=x)return!1;if(v&&x)return s.getTime()==c.getTime();var b=s instanceof RegExp,S=c instanceof RegExp;if(b!=S)return!1;if(b&&S)return s.toString()==c.toString();var T=t(s);if(h=T.length,h!==t(c).length)return!1;for(p=h;p--!==0;)if(!n.call(c,T[p]))return!1;if(r&&s instanceof Element&&c instanceof Element)return s===c;for(p=h;p--!==0;)if(g=T[p],!(g==="_owner"&&s.$$typeof)&&!a(s[g],c[g]))return!1;return!0}return s!==s&&c!==c}return C0=function(c,f){try{return a(c,f)}catch(d){if(d.message&&d.message.match(/stack|recursion/i)||d.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",d.name,d.message),!1;throw d}},C0}var cte=lte();const Ua=Ri(cte);var ute=4;function bR(e){return Eu(e,ute)}function ok(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var fte="[object Symbol]";function ux(e){return typeof e=="symbol"||bs(e)&&vs(e)==fte}var dte="Expected a function";function fx(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(dte);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],s=n.cache;if(s.has(a))return s.get(a);var c=e.apply(this,r);return n.cache=s.set(a,c)||s,c};return n.cache=new(fx.Cache||da),n}fx.Cache=da;var pte=500;function hte(e){var t=fx(e,function(r){return n.size===pte&&n.clear(),r}),n=t.cache;return t}var mte=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gte=/\\(\\)?/g,yte=hte(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(mte,function(n,r,a,s){t.push(a?s.replace(gte,"$1"):r||n)}),t});function vte(e){if(typeof e=="string"||ux(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var SR=aa?aa.prototype:void 0,xR=SR?SR.toString:void 0;function ak(e){if(typeof e=="string")return e;if(yf(e))return ok(e,ak)+"";if(ux(e))return xR?xR.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function bte(e){return e==null?"":ak(e)}function sk(e){return yf(e)?ok(e,vte):ux(e)?[e]:ZP(yte(bte(e)))}function vn(){return vn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vn.apply(this,arguments)}function lk(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,s;for(s=0;s<r.length;s++)a=r[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}var dm=E.createContext(void 0);dm.displayName="FormikContext";var Ste=dm.Provider;dm.Consumer;function ck(){var e=E.useContext(dm);return e}var Nr=function(t){return typeof t=="function"},pm=function(t){return t!==null&&typeof t=="object"},xte=function(t){return String(Math.floor(Number(t)))===t},A0=function(t){return Object.prototype.toString.call(t)==="[object String]"},Tte=function(t){return E.Children.count(t)===0},O0=function(t){return pm(t)&&Nr(t.then)};function pr(e,t,n,r){r===void 0&&(r=0);for(var a=sk(t);e&&r<a.length;)e=e[a[r++]];return r!==a.length&&!e||e===void 0?n:e}function ts(e,t,n){for(var r=bR(e),a=r,s=0,c=sk(t);s<c.length-1;s++){var f=c[s],d=pr(e,c.slice(0,s+1));if(d&&(pm(d)||Array.isArray(d)))a=a[f]=bR(d);else{var p=c[s+1];a=a[f]=xte(p)&&Number(p)>=0?[]:{}}}return(s===0?e:a)[c[s]]===n?e:(n===void 0?delete a[c[s]]:a[c[s]]=n,s===0&&n===void 0&&delete r[c[s]],r)}function uk(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var a=0,s=Object.keys(e);a<s.length;a++){var c=s[a],f=e[c];pm(f)?n.get(f)||(n.set(f,!0),r[c]=Array.isArray(f)?[]:{},uk(f,t,n,r[c])):r[c]=t}return r}function Ete(e,t){switch(t.type){case"SET_VALUES":return vn({},e,{values:t.payload});case"SET_TOUCHED":return vn({},e,{touched:t.payload});case"SET_ERRORS":return Ua(e.errors,t.payload)?e:vn({},e,{errors:t.payload});case"SET_STATUS":return vn({},e,{status:t.payload});case"SET_ISSUBMITTING":return vn({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return vn({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return vn({},e,{values:ts(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return vn({},e,{touched:ts(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return vn({},e,{errors:ts(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return vn({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return vn({},e,{touched:uk(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return vn({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return vn({},e,{isSubmitting:!1});default:return e}}var La={},tp={};function wte(e){var t=e.validateOnChange,n=t===void 0?!0:t,r=e.validateOnBlur,a=r===void 0?!0:r,s=e.validateOnMount,c=s===void 0?!1:s,f=e.isInitialValid,d=e.enableReinitialize,p=d===void 0?!1:d,h=e.onSubmit,g=lk(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),v=vn({validateOnChange:n,validateOnBlur:a,validateOnMount:c,onSubmit:h},g),x=E.useRef(v.initialValues),b=E.useRef(v.initialErrors||La),S=E.useRef(v.initialTouched||tp),T=E.useRef(v.initialStatus),w=E.useRef(!1),R=E.useRef({});E.useEffect(function(){return w.current=!0,function(){w.current=!1}},[]);var A=E.useState(0),_=A[1],O=E.useRef({values:ep(v.initialValues),errors:ep(v.initialErrors)||La,touched:ep(v.initialTouched)||tp,status:ep(v.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),M=O.current,L=E.useCallback(function(G){var me=O.current;O.current=Ete(me,G),me!==O.current&&_(function(de){return de+1})},[]),B=E.useCallback(function(G,me){return new Promise(function(de,be){var Te=v.validate(G,me);Te==null?de(La):O0(Te)?Te.then(function(Se){de(Se||La)},function(Se){be(Se)}):de(Te)})},[v.validate]),z=E.useCallback(function(G,me){var de=v.validationSchema,be=Nr(de)?de(me):de,Te=me&&be.validateAt?be.validateAt(me,G):Ote(G,be);return new Promise(function(Se,ze){Te.then(function(){Se(La)},function(ot){ot.name==="ValidationError"?Se(Ate(ot)):ze(ot)})})},[v.validationSchema]),V=E.useCallback(function(G,me){return new Promise(function(de){return de(R.current[G].validate(me))})},[]),H=E.useCallback(function(G){var me=Object.keys(R.current).filter(function(be){return Nr(R.current[be].validate)}),de=me.length>0?me.map(function(be){return V(be,pr(G,be))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(de).then(function(be){return be.reduce(function(Te,Se,ze){return Se==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Se&&(Te=ts(Te,me[ze],Se)),Te},{})})},[V]),P=E.useCallback(function(G){return Promise.all([H(G),v.validationSchema?z(G):{},v.validate?B(G):{}]).then(function(me){var de=me[0],be=me[1],Te=me[2],Se=ib.all([de,be,Te],{arrayMerge:Rte});return Se})},[v.validate,v.validationSchema,H,B,z]),K=Pr(function(G){return G===void 0&&(G=M.values),L({type:"SET_ISVALIDATING",payload:!0}),P(G).then(function(me){return w.current&&(L({type:"SET_ISVALIDATING",payload:!1}),L({type:"SET_ERRORS",payload:me})),me})});E.useEffect(function(){c&&w.current===!0&&Ua(x.current,v.initialValues)&&K(x.current)},[c,K]);var U=E.useCallback(function(G){var me=G&&G.values?G.values:x.current,de=G&&G.errors?G.errors:b.current?b.current:v.initialErrors||{},be=G&&G.touched?G.touched:S.current?S.current:v.initialTouched||{},Te=G&&G.status?G.status:T.current?T.current:v.initialStatus;x.current=me,b.current=de,S.current=be,T.current=Te;var Se=function(){L({type:"RESET_FORM",payload:{isSubmitting:!!G&&!!G.isSubmitting,errors:de,touched:be,status:Te,values:me,isValidating:!!G&&!!G.isValidating,submitCount:G&&G.submitCount&&typeof G.submitCount=="number"?G.submitCount:0}})};if(v.onReset){var ze=v.onReset(M.values,je);O0(ze)?ze.then(Se):Se()}else Se()},[v.initialErrors,v.initialStatus,v.initialTouched,v.onReset]);E.useEffect(function(){w.current===!0&&!Ua(x.current,v.initialValues)&&p&&(x.current=v.initialValues,U(),c&&K(x.current))},[p,v.initialValues,U,c,K]),E.useEffect(function(){p&&w.current===!0&&!Ua(b.current,v.initialErrors)&&(b.current=v.initialErrors||La,L({type:"SET_ERRORS",payload:v.initialErrors||La}))},[p,v.initialErrors]),E.useEffect(function(){p&&w.current===!0&&!Ua(S.current,v.initialTouched)&&(S.current=v.initialTouched||tp,L({type:"SET_TOUCHED",payload:v.initialTouched||tp}))},[p,v.initialTouched]),E.useEffect(function(){p&&w.current===!0&&!Ua(T.current,v.initialStatus)&&(T.current=v.initialStatus,L({type:"SET_STATUS",payload:v.initialStatus}))},[p,v.initialStatus,v.initialTouched]);var j=Pr(function(G){if(R.current[G]&&Nr(R.current[G].validate)){var me=pr(M.values,G),de=R.current[G].validate(me);return O0(de)?(L({type:"SET_ISVALIDATING",payload:!0}),de.then(function(be){return be}).then(function(be){L({type:"SET_FIELD_ERROR",payload:{field:G,value:be}}),L({type:"SET_ISVALIDATING",payload:!1})})):(L({type:"SET_FIELD_ERROR",payload:{field:G,value:de}}),Promise.resolve(de))}else if(v.validationSchema)return L({type:"SET_ISVALIDATING",payload:!0}),z(M.values,G).then(function(be){return be}).then(function(be){L({type:"SET_FIELD_ERROR",payload:{field:G,value:pr(be,G)}}),L({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),k=E.useCallback(function(G,me){var de=me.validate;R.current[G]={validate:de}},[]),I=E.useCallback(function(G){delete R.current[G]},[]),q=Pr(function(G,me){L({type:"SET_TOUCHED",payload:G});var de=me===void 0?a:me;return de?K(M.values):Promise.resolve()}),X=E.useCallback(function(G){L({type:"SET_ERRORS",payload:G})},[]),ie=Pr(function(G,me){var de=Nr(G)?G(M.values):G;L({type:"SET_VALUES",payload:de});var be=me===void 0?n:me;return be?K(de):Promise.resolve()}),$=E.useCallback(function(G,me){L({type:"SET_FIELD_ERROR",payload:{field:G,value:me}})},[]),W=Pr(function(G,me,de){L({type:"SET_FIELD_VALUE",payload:{field:G,value:me}});var be=de===void 0?n:de;return be?K(ts(M.values,G,me)):Promise.resolve()}),te=E.useCallback(function(G,me){var de=me,be=G,Te;if(!A0(G)){G.persist&&G.persist();var Se=G.target?G.target:G.currentTarget,ze=Se.type,ot=Se.name,$t=Se.id,Ue=Se.value,Mn=Se.checked;Se.outerHTML;var Zt=Se.options,Bt=Se.multiple;de=me||ot||$t,be=/number|range/.test(ze)?(Te=parseFloat(Ue),isNaN(Te)?"":Te):/checkbox/.test(ze)?Mte(pr(M.values,de),Mn,Ue):Zt&&Bt?_te(Zt):Ue}de&&W(de,be)},[W,M.values]),oe=Pr(function(G){if(A0(G))return function(me){return te(me,G)};te(G)}),le=Pr(function(G,me,de){me===void 0&&(me=!0),L({type:"SET_FIELD_TOUCHED",payload:{field:G,value:me}});var be=de===void 0?a:de;return be?K(M.values):Promise.resolve()}),he=E.useCallback(function(G,me){G.persist&&G.persist();var de=G.target,be=de.name,Te=de.id;de.outerHTML;var Se=me||be||Te;le(Se,!0)},[le]),ge=Pr(function(G){if(A0(G))return function(me){return he(me,G)};he(G)}),Me=E.useCallback(function(G){Nr(G)?L({type:"SET_FORMIK_STATE",payload:G}):L({type:"SET_FORMIK_STATE",payload:function(){return G}})},[]),ve=E.useCallback(function(G){L({type:"SET_STATUS",payload:G})},[]),ye=E.useCallback(function(G){L({type:"SET_ISSUBMITTING",payload:G})},[]),Ae=Pr(function(){return L({type:"SUBMIT_ATTEMPT"}),K().then(function(G){var me=G instanceof Error,de=!me&&Object.keys(G).length===0;if(de){var be;try{if(be=xe(),be===void 0)return}catch(Te){throw Te}return Promise.resolve(be).then(function(Te){return w.current&&L({type:"SUBMIT_SUCCESS"}),Te}).catch(function(Te){if(w.current)throw L({type:"SUBMIT_FAILURE"}),Te})}else if(w.current&&(L({type:"SUBMIT_FAILURE"}),me))throw G})}),_e=Pr(function(G){G&&G.preventDefault&&Nr(G.preventDefault)&&G.preventDefault(),G&&G.stopPropagation&&Nr(G.stopPropagation)&&G.stopPropagation(),Ae().catch(function(me){console.warn("Warning: An unhandled error was caught from submitForm()",me)})}),je={resetForm:U,validateForm:K,validateField:j,setErrors:X,setFieldError:$,setFieldTouched:le,setFieldValue:W,setStatus:ve,setSubmitting:ye,setTouched:q,setValues:ie,setFormikState:Me,submitForm:Ae},xe=Pr(function(){return h(M.values,je)}),qe=Pr(function(G){G&&G.preventDefault&&Nr(G.preventDefault)&&G.preventDefault(),G&&G.stopPropagation&&Nr(G.stopPropagation)&&G.stopPropagation(),U()}),Ot=E.useCallback(function(G){return{value:pr(M.values,G),error:pr(M.errors,G),touched:!!pr(M.touched,G),initialValue:pr(x.current,G),initialTouched:!!pr(S.current,G),initialError:pr(b.current,G)}},[M.errors,M.touched,M.values]),mt=E.useCallback(function(G){return{setValue:function(de,be){return W(G,de,be)},setTouched:function(de,be){return le(G,de,be)},setError:function(de){return $(G,de)}}},[W,le,$]),lt=E.useCallback(function(G){var me=pm(G),de=me?G.name:G,be=pr(M.values,de),Te={name:de,value:be,onChange:oe,onBlur:ge};if(me){var Se=G.type,ze=G.value,ot=G.as,$t=G.multiple;Se==="checkbox"?ze===void 0?Te.checked=!!be:(Te.checked=!!(Array.isArray(be)&&~be.indexOf(ze)),Te.value=ze):Se==="radio"?(Te.checked=be===ze,Te.value=ze):ot==="select"&&$t&&(Te.value=Te.value||[],Te.multiple=!0)}return Te},[ge,oe,M.values]),nt=E.useMemo(function(){return!Ua(x.current,M.values)},[x.current,M.values]),Qe=E.useMemo(function(){return typeof f<"u"?nt?M.errors&&Object.keys(M.errors).length===0:f!==!1&&Nr(f)?f(v):f:M.errors&&Object.keys(M.errors).length===0},[f,nt,M.errors,v]),Je=vn({},M,{initialValues:x.current,initialErrors:b.current,initialTouched:S.current,initialStatus:T.current,handleBlur:ge,handleChange:oe,handleReset:qe,handleSubmit:_e,resetForm:U,setErrors:X,setFormikState:Me,setFieldTouched:le,setFieldValue:W,setFieldError:$,setStatus:ve,setSubmitting:ye,setTouched:q,setValues:ie,submitForm:Ae,validateForm:K,validateField:j,isValid:Qe,dirty:nt,unregisterField:I,registerField:k,getFieldProps:lt,getFieldMeta:Ot,getFieldHelpers:mt,validateOnBlur:a,validateOnChange:n,validateOnMount:c});return Je}function Cte(e){var t=wte(e),n=e.component,r=e.children,a=e.render,s=e.innerRef;return E.useImperativeHandle(s,function(){return t}),E.createElement(Ste,{value:t},n?E.createElement(n,t):a?a(t):r?Nr(r)?r(t):Tte(r)?null:E.Children.only(r):null)}function Ate(e){var t={};if(e.inner){if(e.inner.length===0)return ts(t,e.path,e.message);for(var a=e.inner,n=Array.isArray(a),r=0,a=n?a:a[Symbol.iterator]();;){var s;if(n){if(r>=a.length)break;s=a[r++]}else{if(r=a.next(),r.done)break;s=r.value}var c=s;pr(t,c.path)||(t=ts(t,c.path,c.message))}}return t}function Ote(e,t,n,r){n===void 0&&(n=!1);var a=cb(e);return t[n?"validateSync":"validate"](a,{abortEarly:!1,context:a})}function cb(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(a){return Array.isArray(a)===!0||XO(a)?cb(a):a!==""?a:void 0}):XO(e[r])?t[r]=cb(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function Rte(e,t,n){var r=e.slice();return t.forEach(function(s,c){if(typeof r[c]>"u"){var f=n.clone!==!1,d=f&&n.isMergeableObject(s);r[c]=d?ib(Array.isArray(s)?[]:{},s,n):s}else n.isMergeableObject(s)?r[c]=ib(e[c],s,n):e.indexOf(s)===-1&&r.push(s)}),r}function _te(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function Mte(e,t,n){if(typeof e=="boolean")return!!t;var r=[],a=!1,s=-1;if(Array.isArray(e))r=e,s=e.indexOf(n),a=s>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!a?r.concat(n):a?r.slice(0,s).concat(r.slice(s+1)):r}var Dte=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?E.useLayoutEffect:E.useEffect;function Pr(e){var t=E.useRef(e);return Dte(function(){t.current=e}),E.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t.current.apply(void 0,r)},[])}var fk=E.forwardRef(function(e,t){var n=e.action,r=lk(e,["action"]),a=n??"#",s=ck(),c=s.handleReset,f=s.handleSubmit;return E.createElement("form",vn({onSubmit:f,ref:t,onReset:c,action:a},r))});fk.displayName="Form";const dx=({content:e,loading:t=!1,startIcon:n,endIcon:r,variant:a="contained",sx:s,disabled:c=!1,...f})=>{const{palette:d}=Un();return D.jsx(d6,{...f,variant:a,startIcon:!t&&n?typeof n=="string"?D.jsx(nr,{icon:n,sx:{cursor:"pointer"}}):n:void 0,endIcon:!t&&r?typeof r=="string"?D.jsx(nr,{icon:r,sx:{cursor:"pointer"}}):r:void 0,sx:{minWidth:100,textTransform:"none",borderRadius:We.BORDER_RADIUS_ELEMENT_SMALL,...s},disabled:c,children:t?D.jsx(kP,{color:d.primary.contrastText,size:"small",sx:{minHeight:"24.5px"}}):D.jsx(_t,{sx:{...SD.textSm.regular,whiteSpace:"nowrap"},children:e})})},Pte=({label:e,iconLabel:t,colorLabel:n,required:r})=>{const{palette:a}=Un();return e?D.jsxs(_t,{variant:"subtitle1",sx:{color:n||a.text.primary,display:"flex",alignItems:"center",gap:th},children:[t&&D.jsx(nr,{icon:t,sx:{fontSize:We.TEXT_FIELD.FONT_SIZE_LABEL}}),e,r&&D.jsx("span",{style:{color:"red"},children:"*"})]}):null},kte=({icon:e,onClick:t,sx:n,size:r=16})=>D.jsx(Kp,{onClick:t,sx:{position:"absolute",right:8,top:"50%",transform:"translateY(-50%)",width:r+8,height:r+8,"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},...n},children:D.jsx(nr,{icon:e,sx:{fontSize:r}})}),np=({name:e,label:t,iconLabel:n="",error:r="",placeholder:a="Nhập dữ liệu...",value:s,helperText:c,rows:f,onChange:d,sx:p={},InputProps:h,colorLabel:g,description:v,showResetButton:x=!1,onReset:b,...S})=>{if(S.type==="number")throw"Please use component TextFieldNumberElement!";const T=A=>{d&&d({target:{name:e,value:A.target.value||null}})},{palette:w,typography:R}=Un();return D.jsxs(In,{sx:{position:"relative",width:"100%"},children:[D.jsx(Pte,{label:t,iconLabel:n,colorLabel:g,required:S.required}),D.jsx(NV,{error:!!r,helperText:c||r,placeholder:a,value:s||"",onChange:T,name:e,InputProps:{...h,endAdornment:x&&s&&b?D.jsx(kte,{icon:"close",onClick:b}):h?.endAdornment,sx:{...h?.sx}},...f&&{rows:f,multiline:!0},sx:{...p},...S}),v&&D.jsxs(_t,{variant:"body2",sx:{position:"absolute",bottom:8,left:Nv.large,backgroundColor:w.background.paper,borderRadius:zq,px:1,width:"97%",display:"flex",gap:Nv.small},children:[D.jsx(In,{sx:{fontWeight:R.h2.fontWeight},children:"Ghi chú:"})," ",v]})]})};var R0,TR;function Nte(){if(TR)return R0;TR=1;function e(w){this._maxSize=w,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(w){return this._values[w]},e.prototype.set=function(w,R){return this._size>=this._maxSize&&this.clear(),w in this._values||this._size++,this._values[w]=R};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,a=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,s=/^\s*(['"]?)(.*?)(\1)\s*$/,c=512,f=new e(c),d=new e(c),p=new e(c);R0={Cache:e,split:g,normalizePath:h,setter:function(w){var R=h(w);return d.get(w)||d.set(w,function(_,O){for(var M=0,L=R.length,B=_;M<L-1;){var z=R[M];if(z==="__proto__"||z==="constructor"||z==="prototype")return _;B=B[R[M++]]}B[R[M]]=O})},getter:function(w,R){var A=h(w);return p.get(w)||p.set(w,function(O){for(var M=0,L=A.length;M<L;)if(O!=null||!R)O=O[A[M++]];else return;return O})},join:function(w){return w.reduce(function(R,A){return R+(x(A)||n.test(A)?"["+A+"]":(R?".":"")+A)},"")},forEach:function(w,R,A){v(Array.isArray(w)?w:g(w),R,A)}};function h(w){return f.get(w)||f.set(w,g(w).map(function(R){return R.replace(s,"$2")}))}function g(w){return w.match(t)||[""]}function v(w,R,A){var _=w.length,O,M,L,B;for(M=0;M<_;M++)O=w[M],O&&(T(O)&&(O='"'+O+'"'),B=x(O),L=!B&&/^\d+$/.test(O),R.call(A,O,B,L,M,w))}function x(w){return typeof w=="string"&&w&&["'",'"'].indexOf(w.charAt(0))!==-1}function b(w){return w.match(r)&&!w.match(n)}function S(w){return a.test(w)}function T(w){return!x(w)&&(b(w)||S(w))}return R0}var ns=Nte(),_0,ER;function Lte(){if(ER)return _0;ER=1;const e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,t=h=>h.match(e)||[],n=h=>h[0].toUpperCase()+h.slice(1),r=(h,g)=>t(h).join(g).toLowerCase(),a=h=>t(h).reduce((g,v)=>`${g}${g?v[0].toUpperCase()+v.slice(1).toLowerCase():v.toLowerCase()}`,"");return _0={words:t,upperFirst:n,camelCase:a,pascalCase:h=>n(a(h)),snakeCase:h=>r(h,"_"),kebabCase:h=>r(h,"-"),sentenceCase:h=>n(r(h," ")),titleCase:h=>t(h).map(n).join(" ")},_0}var M0=Lte(),rp={exports:{}},wR;function $te(){if(wR)return rp.exports;wR=1,rp.exports=function(a){return e(t(a),a)},rp.exports.array=e;function e(a,s){var c=a.length,f=new Array(c),d={},p=c,h=n(s),g=r(a);for(s.forEach(function(x){if(!g.has(x[0])||!g.has(x[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});p--;)d[p]||v(a[p],p,new Set);return f;function v(x,b,S){if(S.has(x)){var T;try{T=", node was:"+JSON.stringify(x)}catch{T=""}throw new Error("Cyclic dependency"+T)}if(!g.has(x))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(x));if(!d[b]){d[b]=!0;var w=h.get(x)||new Set;if(w=Array.from(w),b=w.length){S.add(x);do{var R=w[--b];v(R,g.get(R),S)}while(b);S.delete(x)}f[--c]=x}}}function t(a){for(var s=new Set,c=0,f=a.length;c<f;c++){var d=a[c];s.add(d[0]),s.add(d[1])}return Array.from(s)}function n(a){for(var s=new Map,c=0,f=a.length;c<f;c++){var d=a[c];s.has(d[0])||s.set(d[0],new Set),s.has(d[1])||s.set(d[1],new Set),s.get(d[0]).add(d[1])}return s}function r(a){for(var s=new Map,c=0,f=a.length;c<f;c++)s.set(a[c],c);return s}return rp.exports}var Bte=$te();const Ite=Ri(Bte),jte=Object.prototype.toString,zte=Error.prototype.toString,Ute=RegExp.prototype.toString,Fte=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",Vte=/^Symbol\((.*)\)(.*)$/;function Hte(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function CR(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return Hte(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return Fte.call(e).replace(Vte,"Symbol($1)");const r=jte.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+zte.call(e)+"]":r==="RegExp"?Ute.call(e):null}function ea(e,t){let n=CR(e,t);return n!==null?n:JSON.stringify(e,function(r,a){let s=CR(this[r],t);return s!==null?s:a},2)}function dk(e){return e==null?[]:[].concat(e)}let pk,hk,mk,qte=/\$\{\s*(\w+)\s*\}/g;pk=Symbol.toStringTag;class AR{constructor(t,n,r,a){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[pk]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=a,this.errors=[],this.inner=[],dk(t).forEach(s=>{if(Bn.isError(s)){this.errors.push(...s.errors);const c=s.inner.length?s.inner:[s];this.inner.push(...c)}else this.errors.push(s)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}hk=Symbol.hasInstance;mk=Symbol.toStringTag;class Bn extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(qte,(a,s)=>ea(n[s])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,a,s){const c=new AR(t,n,r,a);if(s)return c;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[mk]="Error",this.name=c.name,this.message=c.message,this.type=c.type,this.value=c.value,this.path=c.path,this.errors=c.errors,this.inner=c.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Bn)}static[hk](t){return AR[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let mi={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const a=r!=null&&r!==n?` (cast from the value \`${ea(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${ea(n,!0)}\``+a:`${e} must match the configured type. The validated value was: \`${ea(n,!0)}\``+a}},Xn={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Gte={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},ub={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Yte={isValue:"${path} field must be ${value}"},_p={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Wte={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},Kte={notType:e=>{const{path:t,value:n,spec:r}=e,a=r.types.length;if(Array.isArray(n)){if(n.length<a)return`${t} tuple value has too few items, expected a length of ${a} but got ${n.length} for value: \`${ea(n,!0)}\``;if(n.length>a)return`${t} tuple value has too many items, expected a length of ${a} but got ${n.length} for value: \`${ea(n,!0)}\``}return Bn.formatError(mi.notType,e)}};Object.assign(Object.create(null),{mixed:mi,string:Xn,number:Gte,date:ub,object:_p,array:Wte,boolean:Yte,tuple:Kte});const px=e=>e&&e.__isYupSchema__;class dh{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:a,otherwise:s}=n,c=typeof r=="function"?r:(...f)=>f.every(d=>d===r);return new dh(t,(f,d)=>{var p;let h=c(...f)?a:s;return(p=h?.(d))!=null?p:d})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(s=>s.getValue(n?.value,n?.parent,n?.context)),a=this.fn(r,t,n);if(a===void 0||a===t)return t;if(!px(a))throw new TypeError("conditions must return a schema object");return a.resolve(n)}}const ip={context:"$",value:"."};class Ts{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===ip.context,this.isValue=this.key[0]===ip.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?ip.context:this.isValue?ip.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&ns.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let a=this.isContext?r:this.isValue?t:n;return this.getter&&(a=this.getter(a||{})),this.map&&(a=this.map(a)),a}cast(t,n){return this.getValue(t,n?.parent,n?.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Ts.prototype.__isYupRef=!0;const Wa=e=>e==null;function vl(e){function t({value:n,path:r="",options:a,originalValue:s,schema:c},f,d){const{name:p,test:h,params:g,message:v,skipAbsent:x}=e;let{parent:b,context:S,abortEarly:T=c.spec.abortEarly,disableStackTrace:w=c.spec.disableStackTrace}=a;const R={value:n,parent:b,context:S};function A(H={}){const P=gk(Object.assign({value:n,originalValue:s,label:c.spec.label,path:H.path||r,spec:c.spec,disableStackTrace:H.disableStackTrace||w},g,H.params),R),K=new Bn(Bn.formatError(H.message||v,P),n,P.path,H.type||p,P.disableStackTrace);return K.params=P,K}const _=T?f:d;let O={path:r,parent:b,type:p,from:a.from,createError:A,resolve(H){return yk(H,R)},options:a,originalValue:s,schema:c};const M=H=>{Bn.isError(H)?_(H):H?d(null):_(A())},L=H=>{Bn.isError(H)?_(H):f(H)};if(x&&Wa(n))return M(!0);let z;try{var V;if(z=h.call(O,n,O),typeof((V=z)==null?void 0:V.then)=="function"){if(a.sync)throw new Error(`Validation test of type: "${O.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(z).then(M,L)}}catch(H){L(H);return}M(z)}return t.OPTIONS=e,t}function gk(e,t){if(!e)return e;for(const n of Object.keys(e))e[n]=yk(e[n],t);return e}function yk(e,t){return Ts.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function Xte(e,t,n,r=n){let a,s,c;return t?(ns.forEach(t,(f,d,p)=>{let h=d?f.slice(1,f.length-1):f;e=e.resolve({context:r,parent:a,value:n});let g=e.type==="tuple",v=p?parseInt(h,10):0;if(e.innerType||g){if(g&&!p)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${c}" must contain an index to the tuple element, e.g. "${c}[0]"`);if(n&&v>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${f}, in the path: ${t}. because there is no value at that index. `);a=n,n=n&&n[v],e=g?e.spec.types[v]:e.innerType}if(!p){if(!e.fields||!e.fields[h])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${c} which is a type: "${e.type}")`);a=n,n=n&&n[h],e=e.fields[h]}s=h,c=d?"["+f+"]":"."+f}),{schema:e,parent:a,parentPath:s}):{parent:a,parentPath:t,schema:e}}class ph extends Set{describe(){const t=[];for(const n of this.values())t.push(Ts.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new ph(this.values())}merge(t,n){const r=this.clone();return t.forEach(a=>r.add(a)),n.forEach(a=>r.delete(a)),r}}function Sl(e,t=new Map){if(px(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=Sl(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,a]of e.entries())n.set(r,Sl(a,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Sl(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,a]of Object.entries(e))n[r]=Sl(a,t)}else throw Error(`Unable to clone ${e}`);return n}function Zte(e){if(!(e!=null&&e.length))return;const t=[];let n="",r=!1,a=!1;for(let s=0;s<e.length;s++){const c=e[s];if(c==="["&&!a){n&&(t.push(...n.split(".").filter(Boolean)),n=""),r=!0;continue}if(c==="]"&&!a){n&&(/^\d+$/.test(n)?t.push(n):t.push(n.replace(/^"|"$/g,"")),n=""),r=!1;continue}if(c==='"'){a=!a;continue}if(c==="."&&!r&&!a){n&&(t.push(n),n="");continue}n+=c}return n&&t.push(...n.split(".").filter(Boolean)),t}function Qte(e,t){const n=t?`${t}.${e.path}`:e.path;return e.errors.map(r=>({message:r,path:Zte(n)}))}function vk(e,t){var n;if(!((n=e.inner)!=null&&n.length)&&e.errors.length)return Qte(e,t);const r=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(a=>vk(a,r))}class Oi{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new ph,this._blacklist=new ph,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(mi.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t?.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Sl(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const a=Object.assign({},n.spec,r.spec);return r.spec=a,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(s=>{t.tests.forEach(c=>{s.test(c.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((a,s)=>s.resolve(a,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,a,s;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(a=t.recursive)!=null?a:this.spec.recursive,disableStackTrace:(s=t.disableStackTrace)!=null?s:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({},n,{value:t})),a=n.assert==="ignore-optionality",s=r._cast(t,n);if(n.assert!==!1&&!r.isType(s)){if(a&&Wa(s))return s;let c=ea(t),f=ea(s);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
1181
+
1182
+ attempted value: ${c}
1183
+ `+(f!==c?`result of cast: ${f}`:""))}return s}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((a,s)=>s.call(this,a,t,this,n),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,a){let{path:s,originalValue:c=t,strict:f=this.spec.strict}=n,d=t;f||(d=this._cast(d,Object.assign({assert:!1},n)));let p=[];for(let h of Object.values(this.internalTests))h&&p.push(h);this.runTests({path:s,value:d,originalValue:c,options:n,tests:p},r,h=>{if(h.length)return a(h,d);this.runTests({path:s,value:d,originalValue:c,options:n,tests:this.tests},r,a)})}runTests(t,n,r){let a=!1,{tests:s,value:c,originalValue:f,path:d,options:p}=t,h=S=>{a||(a=!0,n(S,c))},g=S=>{a||(a=!0,r(S,c))},v=s.length,x=[];if(!v)return g([]);let b={value:c,originalValue:f,path:d,options:p,schema:this};for(let S=0;S<s.length;S++){const T=s[S];T(b,h,function(R){R&&(Array.isArray(R)?x.push(...R):x.push(R)),--v<=0&&g(x)})}}asNestedTest({key:t,index:n,parent:r,parentPath:a,originalParent:s,options:c}){const f=t??n;if(f==null)throw TypeError("Must include `key` or `index` for nested validations");const d=typeof f=="number";let p=r[f];const h=Object.assign({},c,{strict:!0,parent:r,value:p,originalValue:s[f],key:void 0,[d?"index":"key"]:f,path:d||f.includes(".")?`${a||""}[${d?f:`"${f}"`}]`:(a?`${a}.`:"")+t});return(g,v,x)=>this.resolve(h)._validate(p,h,v,x)}validate(t,n){var r;let a=this.resolve(Object.assign({},n,{value:t})),s=(r=n?.disableStackTrace)!=null?r:a.spec.disableStackTrace;return new Promise((c,f)=>a._validate(t,n,(d,p)=>{Bn.isError(d)&&(d.value=p),f(d)},(d,p)=>{d.length?f(new Bn(d,p,void 0,void 0,s)):c(p)}))}validateSync(t,n){var r;let a=this.resolve(Object.assign({},n,{value:t})),s,c=(r=n?.disableStackTrace)!=null?r:a.spec.disableStackTrace;return a._validate(t,Object.assign({},n,{sync:!0}),(f,d)=>{throw Bn.isError(f)&&(f.value=d),f},(f,d)=>{if(f.length)throw new Bn(f,t,void 0,void 0,c);s=d}),s}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(Bn.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(Bn.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Sl(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=vl({message:n,name:"nullable",test(a){return a===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=vl({message:n,name:"optionality",test(a){return a===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=mi.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=mi.notNull){return this.nullability(!1,t)}required(t=mi.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=mi.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),a=vl(n),s=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(c=>!(c.OPTIONS.name===n.name&&(s||c.OPTIONS.test===a.OPTIONS.test))),r.tests.push(a),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),a=dk(t).map(s=>new Ts(s));return a.forEach(s=>{s.isSibling&&r.deps.push(s.key)}),r.conditions.push(typeof n=="function"?new dh(a,n):dh.fromOptions(a,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=vl({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=mi.oneOf){let r=this.clone();return t.forEach(a=>{r._whitelist.add(a),r._blacklist.delete(a)}),r.internalTests.whiteList=vl({message:n,name:"oneOf",skipAbsent:!0,test(a){let s=this.schema._whitelist,c=s.resolveAll(this.resolve);return c.includes(a)?!0:this.createError({params:{values:Array.from(s).join(", "),resolved:c}})}}),r}notOneOf(t,n=mi.notOneOf){let r=this.clone();return t.forEach(a=>{r._blacklist.add(a),r._whitelist.delete(a)}),r.internalTests.blacklist=vl({message:n,name:"notOneOf",test(a){let s=this.schema._blacklist,c=s.resolveAll(this.resolve);return c.includes(a)?this.createError({params:{values:Array.from(s).join(", "),resolved:c}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:a,optional:s,nullable:c}=n.spec;return{meta:a,label:r,optional:s,nullable:c,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.filter((d,p,h)=>h.findIndex(g=>g.OPTIONS.name===d.OPTIONS.name)===p).map(d=>{const p=d.OPTIONS.params&&t?gk(Object.assign({},d.OPTIONS.params),t):d.OPTIONS.params;return{name:d.OPTIONS.name,params:p}})}}get"~standard"(){const t=this;return{version:1,vendor:"yup",async validate(r){try{return{value:await t.validate(r,{abortEarly:!1})}}catch(a){if(a instanceof Bn)return{issues:vk(a)};throw a}}}}}Oi.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Oi.prototype[`${e}At`]=function(t,n,r={}){const{parent:a,parentPath:s,schema:c}=Xte(this,t,n,r.context);return c[e](a&&a[s],Object.assign({},r,{parent:a,path:t}))};for(const e of["equals","is"])Oi.prototype[e]=Oi.prototype.oneOf;for(const e of["not","nope"])Oi.prototype[e]=Oi.prototype.notOneOf;const Jte=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function ene(e){const t=fb(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function fb(e){var t,n;const r=Jte.exec(e);return r?{year:to(r[1]),month:to(r[2],1)-1,day:to(r[3],1),hour:to(r[4]),minute:to(r[5]),second:to(r[6]),millisecond:r[7]?to(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:to(r[10]),minuteOffset:to(r[11])}:null}function to(e,t=0){return Number(e)||t}let tne=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,nne=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,rne=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,ine="^\\d{4}-\\d{2}-\\d{2}",one="\\d{2}:\\d{2}:\\d{2}",ane="(([+-]\\d{2}(:?\\d{2})?)|Z)",sne=new RegExp(`${ine}T${one}(\\.\\d+)?${ane}$`),lne=e=>Wa(e)||e===e.trim(),cne={}.toString();function no(){return new bk}class bk extends Oi{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n)=>{if(!this.spec.coerce||this.isType(t)||Array.isArray(t))return t;const r=t!=null&&t.toString?t.toString():t;return r===cne?t:r})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||mi.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=Xn.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=Xn.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=Xn.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,a,s;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:a,name:s}=n:a=n),this.test({name:s||"matches",message:a||Xn.matches,params:{regex:t},skipAbsent:!0,test:c=>c===""&&r||c.search(t)!==-1})}email(t=Xn.email){return this.matches(tne,{name:"email",message:t,excludeEmptyString:!0})}url(t=Xn.url){return this.matches(nne,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Xn.uuid){return this.matches(rne,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,a;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:a=void 0}=t:n=t),this.matches(sne,{name:"datetime",message:n||Xn.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Xn.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:s=>{if(!s||r)return!0;const c=fb(s);return c?!!c.z:!1}}).test({name:"datetime_precision",message:n||Xn.datetime_precision,params:{precision:a},skipAbsent:!0,test:s=>{if(!s||a==null)return!0;const c=fb(s);return c?c.precision===a:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Xn.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:lne})}lowercase(t=Xn.lowercase){return this.transform(n=>Wa(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Wa(n)||n===n.toLowerCase()})}uppercase(t=Xn.uppercase){return this.transform(n=>Wa(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Wa(n)||n===n.toUpperCase()})}}no.prototype=bk.prototype;let une=new Date(""),fne=e=>Object.prototype.toString.call(e)==="[object Date]";class hx extends Oi{constructor(){super({type:"date",check(t){return fne(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n)=>!this.spec.coerce||this.isType(t)||t===null?t:(t=ene(t),isNaN(t)?hx.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Ts.isRef(t))r=t;else{let a=this.cast(t);if(!this._typeCheck(a))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=a}return r}min(t,n=ub.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(a){return a>=this.resolve(r)}})}max(t,n=ub.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(a){return a<=this.resolve(r)}})}}hx.INVALID_DATE=une;function dne(e,t=[]){let n=[],r=new Set,a=new Set(t.map(([c,f])=>`${c}-${f}`));function s(c,f){let d=ns.split(c)[0];r.add(d),a.has(`${f}-${d}`)||n.push([f,d])}for(const c of Object.keys(e)){let f=e[c];r.add(c),Ts.isRef(f)&&f.isSibling?s(f.path,c):px(f)&&"deps"in f&&f.deps.forEach(d=>s(d,c))}return Ite.array(Array.from(r),n).reverse()}function OR(e,t){let n=1/0;return e.some((r,a)=>{var s;if((s=t.path)!=null&&s.includes(r))return n=a,!0}),n}function Sk(e){return(t,n)=>OR(e,t)-OR(e,n)}const pne=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function Mp(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Mp(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Mp(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Mp)}):"optional"in e?e.optional():e}const hne=(e,t)=>{const n=[...ns.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),a=ns.getter(ns.join(n),!0)(e);return!!(a&&r in a)};let RR=e=>Object.prototype.toString.call(e)==="[object Object]";function _R(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const mne=Sk([]);function xk(e){return new Tk(e)}class Tk extends Oi{constructor(t){super({type:"object",check(n){return RR(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=mne,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let a=super._cast(t,n);if(a===void 0)return this.getDefault(n);if(!this._typeCheck(a))return a;let s=this.fields,c=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,f=[].concat(this._nodes,Object.keys(a).filter(g=>!this._nodes.includes(g))),d={},p=Object.assign({},n,{parent:d,__validating:n.__validating||!1}),h=!1;for(const g of f){let v=s[g],x=g in a,b=a[g];if(v){let S;p.path=(n.path?`${n.path}.`:"")+g,v=v.resolve({value:b,context:n.context,parent:d});let T=v instanceof Oi?v.spec:void 0,w=T?.strict;if(T!=null&&T.strip){h=h||g in a;continue}S=!n.__validating||!w?v.cast(b,p):b,S!==void 0&&(d[g]=S)}else x&&!c&&(d[g]=b);(x!==g in d||d[g]!==b)&&(h=!0)}return h?d:a}_validate(t,n={},r,a){let{from:s=[],originalValue:c=t,recursive:f=this.spec.recursive}=n;n.from=[{schema:this,value:c},...s],n.__validating=!0,n.originalValue=c,super._validate(t,n,r,(d,p)=>{if(!f||!RR(p)){a(d,p);return}c=c||p;let h=[];for(let g of this._nodes){let v=this.fields[g];!v||Ts.isRef(v)||h.push(v.asNestedTest({options:n,key:g,parent:p,parentPath:n.path,originalParent:c}))}this.runTests({tests:h,value:p,originalValue:c,options:n},r,g=>{a(g.sort(this._sortErrors).concat(d),p)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[a,s]of Object.entries(this.fields)){const c=r[a];r[a]=c===void 0?s:c}return n.withMutation(a=>a.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var a;const s=this.fields[r];let c=t;(a=c)!=null&&a.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[r]})),n[r]=s&&"getDefault"in s?s.getDefault(c):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=dne(t,n),r._sortErrors=Sk(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let a=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),a=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),a)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return Mp(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,a])=>t.includes(r)&&t.includes(a)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let a=ns.getter(t,!0);return this.transform(s=>{if(!s)return s;let c=s;return hne(s,t)&&(c=Object.assign({},s),r||delete c[t],c[n]=a(s)),c})}json(){return this.transform(pne)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||_p.exact,test(n){if(n==null)return!0;const r=_R(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=_p.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(a){if(a==null)return!0;const s=_R(this.schema,a);return!t||s.length===0||this.createError({params:{unknown:s.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=_p.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const a of Object.keys(n))r[t(a)]=n[a];return r})}camelCase(){return this.transformKeys(M0.camelCase)}snakeCase(){return this.transformKeys(M0.snakeCase)}constantCase(){return this.transformKeys(t=>M0.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[s,c]of Object.entries(n.fields)){var a;let f=t;(a=f)!=null&&a.value&&(f=Object.assign({},f,{parent:f.value,value:f.value[s]})),r.fields[s]=c.describe(f)}return r}}xk.prototype=Tk.prototype;var Dt=(e=>(e.LOGIN="LOGIN",e.FORGOT_PASSWORD="FORGOT_PASSWORD",e.VERIFY_OTP="VERIFY_OTP",e.RESET_PASSWORD="RESET_PASSWORD",e))(Dt||{});const gne=e=>xk({emailOrPhone:e===Dt.LOGIN?no().required("Vui lòng cung cấp thông tin"):no(),password:[Dt.LOGIN,Dt.RESET_PASSWORD].includes(e)?no().required("Vui lòng cung cấp thông tin"):no(),phone:e===Dt.FORGOT_PASSWORD?no().required("Vui lòng cung cấp thông tin"):no(),otp:e===Dt.VERIFY_OTP?no().required("Vui lòng cung cấp thông tin"):no()}),D0={[Dt.LOGIN]:{button:"Đăng nhập",backContent:"Bạn quên mật khẩu",backIcon:"lock"},[Dt.FORGOT_PASSWORD]:{button:"Gửi OTP",backContent:"Quay lại đăng nhập",backIcon:"chevron_right"},[Dt.VERIFY_OTP]:{button:"Xác thực",backContent:"Quay lại đăng nhập",backIcon:"chevron_right"},[Dt.RESET_PASSWORD]:{button:"Đặt lại mật khẩu",backContent:"Quay lại đăng nhập",backIcon:"chevron_right"}},yne=({setAuthProcess:e})=>{const t=ck(),{showSnackbar:n}=hf(),r=["","","",""],a=r.length,s=E.useRef([]),[c,f]=E.useState(r),d=(x,b)=>{const S=x.target.value,T=[...c];if(S.length>1){const w=S.slice(0,a-b).split("");for(let A=0;A<w.length;A++)b+A<a&&(T[b+A]=w[A]);const R=Math.min(b+w.length,a-1);s.current[R]?.focus()}else{T[b]=S;for(let w=0;w<a;w++)b<w&&(T[w]="");b<a-1&&s.current[b+1]?.focus()}f(T),t.setFieldValue("otp",T.join(""))},p=(x,b)=>{if(x.key==="Backspace")if(c[b]){const S=[...c];S[b]="",f(S)}else b>0&&s.current[b-1]?.focus()},h=async()=>{try{await go.forgotPassword({phone:t.values.phone,type:tx.PHONE}),n({message:"Gửi lại OTP Thành Công",type:ei.SUCCESS})}catch(x){n({message:Jo(x),type:ei.ERROR})}finally{v(60),f(r),s.current[0]?.focus(),t.setFieldValue("otp",r.join(""))}},[g,v]=E.useState(200);return E.useEffect(()=>{g===0&&e(Dt.LOGIN);const x=setTimeout(()=>v(g-1),1e3);return()=>clearTimeout(x)},[g]),D.jsxs(ht,{flex:1,children:[D.jsx(_t,{sx:{textAlign:"center"},children:`Mã OTP đã gửi đến ${t.values.phone}. Mã có giá trị trong vòng ${g}s`}),D.jsx(mf,{children:Array.from({length:a},(x,b)=>D.jsx(ht,{component:"input",sx:{width:"100%",height:"55px",borderRadius:We.BORDER_RADIUS_ELEMENT,border:"none",textAlign:"center",fontSize:"20px",fontWeight:"600"},ref:S=>{s.current[b]=S},value:c[b],onChange:S=>d(S,b),onKeyDown:S=>p(S,b),maxLength:1},b))}),D.jsx(nx,{icon:"send",content:"Gửi lại mã OTP",onClick:h,sx:{flexDirection:"row-reverse",justifyContent:"flex-end"}})]})},vne=({})=>{const{palette:e}=Un(),{showSnackbar:t}=hf(),n=ys(),r=So(),[a,s]=_n.useState(Dt.LOGIN),[c,f]=_n.useState(!1),d=async(g,{setFieldValue:v,resetForm:x})=>{f(!0);try{switch(a){case Dt.LOGIN:await n(bn.login(g)).unwrap(),x();break;case Dt.FORGOT_PASSWORD:await go.forgotPassword({phone:g.phone,type:tx.PHONE}),s(Dt.VERIFY_OTP);break;case Dt.VERIFY_OTP:{const b=await go.verifyOtp({otp:g.otp,phone:g.phone});v("token",b.token),s(Dt.RESET_PASSWORD);break}case Dt.RESET_PASSWORD:await n(bn.resetPassword({token:g.token,password:g.password,type:bP.OTP})).unwrap(),r(nn.DASHBOARD.path);break;default:break}}catch(b){t({message:Jo(b),type:ei.ERROR})}finally{p&&h(!1),f(!1)}},[p,h]=E.useState(!1);return D.jsx(ht,{sx:{display:"flex",justifyContent:"center",alignItems:"center",position:"relative",width:"100%",height:"100%"},children:D.jsx(Cte,{initialValues:{emailOrPhone:"",password:"",token:"",otp:"",phone:""},validationSchema:gne(a),onSubmit:d,validateOnChange:!1,enableReinitialize:!0,children:g=>D.jsx(fk,{noValidate:!0,children:D.jsxs(ht,{sx:{width:400,backgroundColor:`${e.background.default}${yD[80]}`,backdropFilter:"blur(10px)",borderRadius:3.5,padding:3,boxShadow:1,alignItems:"center"},gap:3,children:[D.jsx(DP,{url:"/images/logo/logo-sub-4.svg"}),a===Dt.LOGIN&&D.jsxs(E.Fragment,{children:[D.jsx(np,{iconLabel:"mail",label:"Số điện thoại",name:"emailOrPhone",placeholder:"Nhập số điện thoại",error:g.errors.emailOrPhone,value:g.values.emailOrPhone,onChange:g.handleChange,sx:{"& fieldset":{borderColor:e.primary.light}},required:!0}),D.jsx(np,{iconLabel:"vpn_key",label:"Mật khẩu",name:"password",autoComplete:"current-password",placeholder:"Nhập mật khẩu",error:g.errors.password,value:g.values.password,onChange:g.handleChange,type:p?"text":"password",sx:{"& fieldset":{borderColor:e.primary.light}},InputProps:{endAdornment:D.jsx(fA,{position:"end",children:D.jsx(nr,{icon:p?"visibility":"visibility_off",onClick:()=>h(!p)})})},required:!0})]}),a===Dt.FORGOT_PASSWORD&&D.jsx(np,{iconLabel:"mail",label:"Số điện thoại",name:"phone",placeholder:"Nhập số điện thoại",sx:{"& fieldset":{borderColor:e.primary.light}},error:g.errors.phone,value:g.values.phone,onChange:g.handleChange,required:!0}),a===Dt.VERIFY_OTP&&D.jsx(yne,{setAuthProcess:s}),a===Dt.RESET_PASSWORD&&D.jsx(np,{label:"Mật khẩu",placeholder:"Nhập mật khẩu",name:"password",error:g.errors.password,required:!0,value:g.values.password,onChange:g.handleChange,sx:{"& fieldset":{borderColor:e.primary.light}},type:p?"text":"password",InputProps:{endAdornment:D.jsx(fA,{position:"end",children:D.jsx(nr,{icon:p?"visibility":"visibility_off",onClick:()=>h(!p)})})}}),D.jsx(nx,{icon:D0[a].backIcon,content:D0[a].backContent,sx:{flexDirection:"row-reverse",width:"100%"},onClick:()=>a===Dt.LOGIN?s(Dt.FORGOT_PASSWORD):s(Dt.LOGIN)}),D.jsx(dx,{loading:c,content:D0[a].button,type:"submit",disabled:a===Dt.VERIFY_OTP?g.values.otp.length<4:!1})]})})})})},bne=()=>D.jsx(F9,{}),Ek=E.createContext({});function Sne(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const mx=typeof window<"u",xne=mx?E.useLayoutEffect:E.useEffect,gx=E.createContext(null);function yx(e,t){e.indexOf(t)===-1&&e.push(t)}function vx(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const yo=(e,t,n)=>n>t?t:n<e?e:n;let bx=()=>{};const vo={},wk=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Ck(e){return typeof e=="object"&&e!==null}const Ak=e=>/^0[^.\s]+$/u.test(e);function Sx(e){let t;return()=>(t===void 0&&(t=e()),t)}const Fr=e=>e,Tne=(e,t)=>n=>t(e(n)),vf=(...e)=>e.reduce(Tne),Yu=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class xx{constructor(){this.subscriptions=[]}add(t){return yx(this.subscriptions,t),()=>vx(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let s=0;s<a;s++){const c=this.subscriptions[s];c&&c(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ei=e=>e*1e3,jr=e=>e/1e3;function Ok(e,t){return t?e*(1e3/t):0}const Rk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ene=1e-7,wne=12;function Cne(e,t,n,r,a){let s,c,f=0;do c=t+(n-t)/2,s=Rk(c,r,a)-e,s>0?n=c:t=c;while(Math.abs(s)>Ene&&++f<wne);return c}function bf(e,t,n,r){if(e===t&&n===r)return Fr;const a=s=>Cne(s,0,1,e,n);return s=>s===0||s===1?s:Rk(a(s),t,r)}const _k=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Mk=e=>t=>1-e(1-t),Dk=bf(.33,1.53,.69,.99),Tx=Mk(Dk),Pk=_k(Tx),kk=e=>(e*=2)<1?.5*Tx(e):.5*(2-Math.pow(2,-10*(e-1))),Ex=e=>1-Math.sin(Math.acos(e)),Nk=Mk(Ex),Lk=_k(Ex),Ane=bf(.42,0,1,1),One=bf(0,0,.58,1),$k=bf(.42,0,.58,1),Rne=e=>Array.isArray(e)&&typeof e[0]!="number",Bk=e=>Array.isArray(e)&&typeof e[0]=="number",_ne={linear:Fr,easeIn:Ane,easeInOut:$k,easeOut:One,circIn:Ex,circInOut:Lk,circOut:Nk,backIn:Tx,backInOut:Pk,backOut:Dk,anticipate:kk},Mne=e=>typeof e=="string",MR=e=>{if(Bk(e)){bx(e.length===4);const[t,n,r,a]=e;return bf(t,n,r,a)}else if(Mne(e))return _ne[e];return e},op=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Dne(e,t){let n=new Set,r=new Set,a=!1,s=!1;const c=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1};function d(h){c.has(h)&&(p.schedule(h),e()),h(f)}const p={schedule:(h,g=!1,v=!1)=>{const b=v&&a?n:r;return g&&c.add(h),b.has(h)||b.add(h),h},cancel:h=>{r.delete(h),c.delete(h)},process:h=>{if(f=h,a){s=!0;return}a=!0,[n,r]=[r,n],n.forEach(d),n.clear(),a=!1,s&&(s=!1,p.process(h))}};return p}const Pne=40;function Ik(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,c=op.reduce((A,_)=>(A[_]=Dne(s),A),{}),{setup:f,read:d,resolveKeyframes:p,preUpdate:h,update:g,preRender:v,render:x,postRender:b}=c,S=()=>{const A=vo.useManualTiming?a.timestamp:performance.now();n=!1,vo.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(A-a.timestamp,Pne),1)),a.timestamp=A,a.isProcessing=!0,f.process(a),d.process(a),p.process(a),h.process(a),g.process(a),v.process(a),x.process(a),b.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(S))},T=()=>{n=!0,r=!0,a.isProcessing||e(S)};return{schedule:op.reduce((A,_)=>{const O=c[_];return A[_]=(M,L=!1,B=!1)=>(n||T(),O.schedule(M,L,B)),A},{}),cancel:A=>{for(let _=0;_<op.length;_++)c[op[_]].cancel(A)},state:a,steps:c}}const{schedule:zt,cancel:sa,state:On,steps:P0}=Ik(typeof requestAnimationFrame<"u"?requestAnimationFrame:Fr,!0);let Dp;function kne(){Dp=void 0}const Zn={now:()=>(Dp===void 0&&Zn.set(On.isProcessing||vo.useManualTiming?On.timestamp:performance.now()),Dp),set:e=>{Dp=e,queueMicrotask(kne)}},jk=e=>t=>typeof t=="string"&&t.startsWith(e),wx=jk("--"),Nne=jk("var(--"),Cx=e=>Nne(e)?Lne.test(e.split("/*")[0].trim()):!1,Lne=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Zl={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Wu={...Zl,transform:e=>yo(0,1,e)},ap={...Zl,default:1},wu=e=>Math.round(e*1e5)/1e5,Ax=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function $ne(e){return e==null}const Bne=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ox=(e,t)=>n=>!!(typeof n=="string"&&Bne.test(n)&&n.startsWith(e)||t&&!$ne(n)&&Object.prototype.hasOwnProperty.call(n,t)),zk=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,s,c,f]=r.match(Ax);return{[e]:parseFloat(a),[t]:parseFloat(s),[n]:parseFloat(c),alpha:f!==void 0?parseFloat(f):1}},Ine=e=>yo(0,255,e),k0={...Zl,transform:e=>Math.round(Ine(e))},Ka={test:Ox("rgb","red"),parse:zk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+k0.transform(e)+", "+k0.transform(t)+", "+k0.transform(n)+", "+wu(Wu.transform(r))+")"};function jne(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const db={test:Ox("#"),parse:jne,transform:Ka.transform},Sf=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Wo=Sf("deg"),wi=Sf("%"),Le=Sf("px"),zne=Sf("vh"),Une=Sf("vw"),DR={...wi,parse:e=>wi.parse(e)/100,transform:e=>wi.transform(e*100)},xl={test:Ox("hsl","hue"),parse:zk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+wi.transform(wu(t))+", "+wi.transform(wu(n))+", "+wu(Wu.transform(r))+")"},fn={test:e=>Ka.test(e)||db.test(e)||xl.test(e),parse:e=>Ka.test(e)?Ka.parse(e):xl.test(e)?xl.parse(e):db.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ka.transform(e):xl.transform(e),getAnimatableNone:e=>{const t=fn.parse(e);return t.alpha=0,fn.transform(t)}},Fne=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Vne(e){return isNaN(e)&&typeof e=="string"&&(e.match(Ax)?.length||0)+(e.match(Fne)?.length||0)>0}const Uk="number",Fk="color",Hne="var",qne="var(",PR="${}",Gne=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ku(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let s=0;const f=t.replace(Gne,d=>(fn.test(d)?(r.color.push(s),a.push(Fk),n.push(fn.parse(d))):d.startsWith(qne)?(r.var.push(s),a.push(Hne),n.push(d)):(r.number.push(s),a.push(Uk),n.push(parseFloat(d))),++s,PR)).split(PR);return{values:n,split:f,indexes:r,types:a}}function Vk(e){return Ku(e).values}function Hk(e){const{split:t,types:n}=Ku(e),r=t.length;return a=>{let s="";for(let c=0;c<r;c++)if(s+=t[c],a[c]!==void 0){const f=n[c];f===Uk?s+=wu(a[c]):f===Fk?s+=fn.transform(a[c]):s+=a[c]}return s}}const Yne=e=>typeof e=="number"?0:fn.test(e)?fn.getAnimatableNone(e):e;function Wne(e){const t=Vk(e);return Hk(e)(t.map(Yne))}const la={test:Vne,parse:Vk,createTransformer:Hk,getAnimatableNone:Wne};function N0(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Kne({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,s=0,c=0;if(!t)a=s=c=n;else{const f=n<.5?n*(1+t):n+t-n*t,d=2*n-f;a=N0(d,f,e+1/3),s=N0(d,f,e),c=N0(d,f,e-1/3)}return{red:Math.round(a*255),green:Math.round(s*255),blue:Math.round(c*255),alpha:r}}function hh(e,t){return n=>n>0?t:e}const Ht=(e,t,n)=>e+(t-e)*n,L0=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},Xne=[db,Ka,xl],Zne=e=>Xne.find(t=>t.test(e));function kR(e){const t=Zne(e);if(!t)return!1;let n=t.parse(e);return t===xl&&(n=Kne(n)),n}const NR=(e,t)=>{const n=kR(e),r=kR(t);if(!n||!r)return hh(e,t);const a={...n};return s=>(a.red=L0(n.red,r.red,s),a.green=L0(n.green,r.green,s),a.blue=L0(n.blue,r.blue,s),a.alpha=Ht(n.alpha,r.alpha,s),Ka.transform(a))},pb=new Set(["none","hidden"]);function Qne(e,t){return pb.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Jne(e,t){return n=>Ht(e,t,n)}function Rx(e){return typeof e=="number"?Jne:typeof e=="string"?Cx(e)?hh:fn.test(e)?NR:nre:Array.isArray(e)?qk:typeof e=="object"?fn.test(e)?NR:ere:hh}function qk(e,t){const n=[...e],r=n.length,a=e.map((s,c)=>Rx(s)(s,t[c]));return s=>{for(let c=0;c<r;c++)n[c]=a[c](s);return n}}function ere(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=Rx(e[a])(e[a],t[a]));return a=>{for(const s in r)n[s]=r[s](a);return n}}function tre(e,t){const n=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const s=t.types[a],c=e.indexes[s][r[s]],f=e.values[c]??0;n[a]=f,r[s]++}return n}const nre=(e,t)=>{const n=la.createTransformer(t),r=Ku(e),a=Ku(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?pb.has(e)&&!a.values.length||pb.has(t)&&!r.values.length?Qne(e,t):vf(qk(tre(r,a),a.values),n):hh(e,t)};function Gk(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ht(e,t,n):Rx(e)(e,t)}const rre=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>zt.update(t,n),stop:()=>sa(t),now:()=>On.isProcessing?On.timestamp:Zn.now()}},Yk=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let s=0;s<a;s++)r+=Math.round(e(s/(a-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},mh=2e4;function _x(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<mh;)t+=n,r=e.next(t);return t>=mh?1/0:t}function ire(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(_x(r),mh);return{type:"keyframes",ease:s=>r.next(a*s).value/t,duration:jr(a)}}const ore=5;function Wk(e,t,n){const r=Math.max(t-ore,0);return Ok(n-e(r),t-r)}const Kt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},$0=.001;function are({duration:e=Kt.duration,bounce:t=Kt.bounce,velocity:n=Kt.velocity,mass:r=Kt.mass}){let a,s,c=1-t;c=yo(Kt.minDamping,Kt.maxDamping,c),e=yo(Kt.minDuration,Kt.maxDuration,jr(e)),c<1?(a=p=>{const h=p*c,g=h*e,v=h-n,x=hb(p,c),b=Math.exp(-g);return $0-v/x*b},s=p=>{const g=p*c*e,v=g*n+n,x=Math.pow(c,2)*Math.pow(p,2)*e,b=Math.exp(-g),S=hb(Math.pow(p,2),c);return(-a(p)+$0>0?-1:1)*((v-x)*b)/S}):(a=p=>{const h=Math.exp(-p*e),g=(p-n)*e+1;return-$0+h*g},s=p=>{const h=Math.exp(-p*e),g=(n-p)*(e*e);return h*g});const f=5/e,d=lre(a,s,f);if(e=Ei(e),isNaN(d))return{stiffness:Kt.stiffness,damping:Kt.damping,duration:e};{const p=Math.pow(d,2)*r;return{stiffness:p,damping:c*2*Math.sqrt(r*p),duration:e}}}const sre=12;function lre(e,t,n){let r=n;for(let a=1;a<sre;a++)r=r-e(r)/t(r);return r}function hb(e,t){return e*Math.sqrt(1-t*t)}const cre=["duration","bounce"],ure=["stiffness","damping","mass"];function LR(e,t){return t.some(n=>e[n]!==void 0)}function fre(e){let t={velocity:Kt.velocity,stiffness:Kt.stiffness,damping:Kt.damping,mass:Kt.mass,isResolvedFromDuration:!1,...e};if(!LR(e,ure)&&LR(e,cre))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,s=2*yo(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:Kt.mass,stiffness:a,damping:s}}else{const n=are(e);t={...t,...n,mass:Kt.mass},t.isResolvedFromDuration=!0}return t}function gh(e=Kt.visualDuration,t=Kt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const s=n.keyframes[0],c=n.keyframes[n.keyframes.length-1],f={done:!1,value:s},{stiffness:d,damping:p,mass:h,duration:g,velocity:v,isResolvedFromDuration:x}=fre({...n,velocity:-jr(n.velocity||0)}),b=v||0,S=p/(2*Math.sqrt(d*h)),T=c-s,w=jr(Math.sqrt(d/h)),R=Math.abs(T)<5;r||(r=R?Kt.restSpeed.granular:Kt.restSpeed.default),a||(a=R?Kt.restDelta.granular:Kt.restDelta.default);let A;if(S<1){const O=hb(w,S);A=M=>{const L=Math.exp(-S*w*M);return c-L*((b+S*w*T)/O*Math.sin(O*M)+T*Math.cos(O*M))}}else if(S===1)A=O=>c-Math.exp(-w*O)*(T+(b+w*T)*O);else{const O=w*Math.sqrt(S*S-1);A=M=>{const L=Math.exp(-S*w*M),B=Math.min(O*M,300);return c-L*((b+S*w*T)*Math.sinh(B)+O*T*Math.cosh(B))/O}}const _={calculatedDuration:x&&g||null,next:O=>{const M=A(O);if(x)f.done=O>=g;else{let L=O===0?b:0;S<1&&(L=O===0?Ei(b):Wk(A,O,M));const B=Math.abs(L)<=r,z=Math.abs(c-M)<=a;f.done=B&&z}return f.value=f.done?c:M,f},toString:()=>{const O=Math.min(_x(_),mh),M=Yk(L=>_.next(O*L).value,O,30);return O+"ms "+M},toTransition:()=>{}};return _}gh.applyToOptions=e=>{const t=ire(e,100,gh);return e.ease=t.ease,e.duration=Ei(t.duration),e.type="keyframes",e};function mb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:s=500,modifyTarget:c,min:f,max:d,restDelta:p=.5,restSpeed:h}){const g=e[0],v={done:!1,value:g},x=B=>f!==void 0&&B<f||d!==void 0&&B>d,b=B=>f===void 0?d:d===void 0||Math.abs(f-B)<Math.abs(d-B)?f:d;let S=n*t;const T=g+S,w=c===void 0?T:c(T);w!==T&&(S=w-g);const R=B=>-S*Math.exp(-B/r),A=B=>w+R(B),_=B=>{const z=R(B),V=A(B);v.done=Math.abs(z)<=p,v.value=v.done?w:V};let O,M;const L=B=>{x(v.value)&&(O=B,M=gh({keyframes:[v.value,b(v.value)],velocity:Wk(A,B,v.value),damping:a,stiffness:s,restDelta:p,restSpeed:h}))};return L(0),{calculatedDuration:null,next:B=>{let z=!1;return!M&&O===void 0&&(z=!0,_(B),L(B)),O!==void 0&&B>=O?M.next(B-O):(!z&&_(B),v)}}}function dre(e,t,n){const r=[],a=n||vo.mix||Gk,s=e.length-1;for(let c=0;c<s;c++){let f=a(e[c],e[c+1]);if(t){const d=Array.isArray(t)?t[c]||Fr:t;f=vf(d,f)}r.push(f)}return r}function pre(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const s=e.length;if(bx(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const c=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const f=dre(t,r,a),d=f.length,p=h=>{if(c&&h<e[0])return t[0];let g=0;if(d>1)for(;g<e.length-2&&!(h<e[g+1]);g++);const v=Yu(e[g],e[g+1],h);return f[g](v)};return n?h=>p(yo(e[0],e[s-1],h)):p}function hre(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=Yu(0,t,r);e.push(Ht(n,1,a))}}function mre(e){const t=[0];return hre(t,e.length-1),t}function gre(e,t){return e.map(n=>n*t)}function yre(e,t){return e.map(()=>t||$k).splice(0,e.length-1)}function Cu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=Rne(r)?r.map(MR):MR(r),s={done:!1,value:t[0]},c=gre(n&&n.length===t.length?n:mre(t),e),f=pre(c,t,{ease:Array.isArray(a)?a:yre(t,a)});return{calculatedDuration:e,next:d=>(s.value=f(d),s.done=d>=e,s)}}const vre=e=>e!==null;function Mx(e,{repeat:t,repeatType:n="loop"},r,a=1){const s=e.filter(vre),f=a<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!f||r===void 0?s[f]:r}const bre={decay:mb,inertia:mb,tween:Cu,keyframes:Cu,spring:gh};function Kk(e){typeof e.type=="string"&&(e.type=bre[e.type])}class Dx{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Sre=e=>e/100;class Px extends Dx{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==Zn.now()&&this.tick(Zn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Kk(t);const{type:n=Cu,repeat:r=0,repeatDelay:a=0,repeatType:s,velocity:c=0}=t;let{keyframes:f}=t;const d=n||Cu;d!==Cu&&typeof f[0]!="number"&&(this.mixKeyframes=vf(Sre,Gk(f[0],f[1])),f=[0,100]);const p=d({...t,keyframes:f});s==="mirror"&&(this.mirroredGenerator=d({...t,keyframes:[...f].reverse(),velocity:-c})),p.calculatedDuration===null&&(p.calculatedDuration=_x(p));const{calculatedDuration:h}=p;this.calculatedDuration=h,this.resolvedDuration=h+a,this.totalDuration=this.resolvedDuration*(r+1)-a,this.generator=p}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:a,mixKeyframes:s,mirroredGenerator:c,resolvedDuration:f,calculatedDuration:d}=this;if(this.startTime===null)return r.next(0);const{delay:p=0,keyframes:h,repeat:g,repeatType:v,repeatDelay:x,type:b,onUpdate:S,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const w=this.currentTime-p*(this.playbackSpeed>=0?1:-1),R=this.playbackSpeed>=0?w<0:w>a;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let A=this.currentTime,_=r;if(g){const B=Math.min(this.currentTime,a)/f;let z=Math.floor(B),V=B%1;!V&&B>=1&&(V=1),V===1&&z--,z=Math.min(z,g+1),!!(z%2)&&(v==="reverse"?(V=1-V,x&&(V-=x/f)):v==="mirror"&&(_=c)),A=yo(0,1,V)*f}const O=R?{done:!1,value:h[0]}:_.next(A);s&&(O.value=s(O.value));let{done:M}=O;!R&&d!==null&&(M=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return L&&b!==mb&&(O.value=Mx(h,this.options,T,this.speed)),S&&S(O.value),L&&this.finish(),O}then(t,n){return this.finished.then(t,n)}get duration(){return jr(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+jr(t)}get time(){return jr(this.currentTime)}set time(t){t=Ei(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Zn.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=jr(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=rre,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Zn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function xre(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Xa=e=>e*180/Math.PI,gb=e=>{const t=Xa(Math.atan2(e[1],e[0]));return yb(t)},Tre={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:gb,rotateZ:gb,skewX:e=>Xa(Math.atan(e[1])),skewY:e=>Xa(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},yb=e=>(e=e%360,e<0&&(e+=360),e),$R=gb,BR=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),IR=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Ere={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:BR,scaleY:IR,scale:e=>(BR(e)+IR(e))/2,rotateX:e=>yb(Xa(Math.atan2(e[6],e[5]))),rotateY:e=>yb(Xa(Math.atan2(-e[2],e[0]))),rotateZ:$R,rotate:$R,skewX:e=>Xa(Math.atan(e[4])),skewY:e=>Xa(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function vb(e){return e.includes("scale")?1:0}function bb(e,t){if(!e||e==="none")return vb(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=Ere,a=n;else{const f=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Tre,a=f}if(!a)return vb(t);const s=r[t],c=a[1].split(",").map(Cre);return typeof s=="function"?s(c):c[s]}const wre=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return bb(n,t)};function Cre(e){return parseFloat(e.trim())}const Ql=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Jl=new Set(Ql),jR=e=>e===Zl||e===Le,Are=new Set(["x","y","z"]),Ore=Ql.filter(e=>!Are.has(e));function Rre(e){const t=[];return Ore.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const rs={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>bb(t,"x"),y:(e,{transform:t})=>bb(t,"y")};rs.translateX=rs.x;rs.translateY=rs.y;const is=new Set;let Sb=!1,xb=!1,Tb=!1;function Xk(){if(xb){const e=Array.from(is).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=Rre(r);a.length&&(n.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=n.get(r);a&&a.forEach(([s,c])=>{r.getValue(s)?.set(c)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}xb=!1,Sb=!1,is.forEach(e=>e.complete(Tb)),is.clear()}function Zk(){is.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(xb=!0)})}function _re(){Tb=!0,Zk(),Xk(),Tb=!1}class kx{constructor(t,n,r,a,s,c=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=s,this.isAsync=c}scheduleResolve(){this.state="scheduled",this.isAsync?(is.add(this),Sb||(Sb=!0,zt.read(Zk),zt.resolveKeyframes(Xk))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;if(t[0]===null){const s=a?.get(),c=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const f=r.readValue(n,c);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=c),a&&s===void 0&&a.set(t[0])}xre(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),is.delete(this)}cancel(){this.state==="scheduled"&&(is.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Mre=e=>e.startsWith("--");function Dre(e,t,n){Mre(t)?e.style.setProperty(t,n):e.style[t]=n}const Pre=Sx(()=>window.ScrollTimeline!==void 0),kre={};function Nre(e,t){const n=Sx(e);return()=>kre[t]??n()}const Qk=Nre(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),pu=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,zR={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:pu([0,.65,.55,1]),circOut:pu([.55,0,1,.45]),backIn:pu([.31,.01,.66,-.59]),backOut:pu([.33,1.53,.69,.99])};function Jk(e,t){if(e)return typeof e=="function"?Qk()?Yk(e,t):"ease-out":Bk(e)?pu(e):Array.isArray(e)?e.map(n=>Jk(n,t)||zR.easeOut):zR[e]}function Lre(e,t,n,{delay:r=0,duration:a=300,repeat:s=0,repeatType:c="loop",ease:f="easeOut",times:d}={},p=void 0){const h={[t]:n};d&&(h.offset=d);const g=Jk(f,a);Array.isArray(g)&&(h.easing=g);const v={delay:r,duration:a,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:s+1,direction:c==="reverse"?"alternate":"normal"};return p&&(v.pseudoElement=p),e.animate(h,v)}function eN(e){return typeof e=="function"&&"applyToOptions"in e}function $re({type:e,...t}){return eN(e)&&Qk()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Bre extends Dx{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:a,pseudoElement:s,allowFlatten:c=!1,finalKeyframe:f,onComplete:d}=t;this.isPseudoElement=!!s,this.allowFlatten=c,this.options=t,bx(typeof t.type!="string");const p=$re(t);this.animation=Lre(n,r,a,p,s),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const h=Mx(a,this.options,f,this.speed);this.updateMotionValue?this.updateMotionValue(h):Dre(n,r,h),this.animation.cancel()}d?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return jr(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+jr(t)}get time(){return jr(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ei(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Pre()?(this.animation.timeline=t,Fr):n(this)}}const tN={anticipate:kk,backInOut:Pk,circInOut:Lk};function Ire(e){return e in tN}function jre(e){typeof e.ease=="string"&&Ire(e.ease)&&(e.ease=tN[e.ease])}const UR=10;class zre extends Bre{constructor(t){jre(t),Kk(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:a,element:s,...c}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const f=new Px({...c,autoplay:!1}),d=Ei(this.finishedTime??this.time);n.setWithVelocity(f.sample(d-UR).value,f.sample(d).value,UR),f.stop()}}const FR=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(la.test(e)||e==="0")&&!e.startsWith("url("));function Ure(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Fre(e,t,n,r){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],c=FR(a,t),f=FR(s,t);return!c||!f?!1:Ure(e)||(n==="spring"||eN(n))&&r}function Eb(e){e.duration=0,e.type="keyframes"}const Vre=new Set(["opacity","clipPath","filter","transform"]),Hre=Sx(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function qre(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:a,damping:s,type:c}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:p}=t.owner.getProps();return Hre()&&n&&Vre.has(n)&&(n!=="transform"||!p)&&!d&&!r&&a!=="mirror"&&s!==0&&c!=="inertia"}const Gre=40;class Yre extends Dx{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:s=0,repeatType:c="loop",keyframes:f,name:d,motionValue:p,element:h,...g}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Zn.now();const v={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:s,repeatType:c,name:d,motionValue:p,element:h,...g},x=h?.KeyframeResolver||kx;this.keyframeResolver=new x(f,(b,S,T)=>this.onKeyframesResolved(b,S,v,!T),d,p,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,a){this.keyframeResolver=void 0;const{name:s,type:c,velocity:f,delay:d,isHandoff:p,onUpdate:h}=r;this.resolvedAt=Zn.now(),Fre(t,s,c,f)||((vo.instantAnimations||!d)&&h?.(Mx(t,r,n)),t[0]=t[t.length-1],Eb(r),r.repeat=0);const v={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>Gre?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},x=!p&&qre(v)?new zre({...v,element:v.motionValue.owner.current}):new Px(v);x.finished.then(()=>this.notifyFinished()).catch(Fr),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),_re()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const Wre=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Kre(e){const t=Wre.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function nN(e,t,n=1){const[r,a]=Kre(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const c=s.trim();return wk(c)?parseFloat(c):c}return Cx(a)?nN(a,t,n+1):a}function Nx(e,t){return e?.[t]??e?.default??e}const rN=new Set(["width","height","top","left","right","bottom",...Ql]),Xre={test:e=>e==="auto",parse:e=>e},iN=e=>t=>t.test(e),oN=[Zl,Le,wi,Wo,Une,zne,Xre],VR=e=>oN.find(iN(e));function Zre(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ak(e):!0}const Qre=new Set(["brightness","contrast","saturate","opacity"]);function Jre(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ax)||[];if(!r)return e;const a=n.replace(r,"");let s=Qre.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+a+")"}const eie=/\b([a-z-]*)\(.*?\)/gu,wb={...la,getAnimatableNone:e=>{const t=e.match(eie);return t?t.map(Jre).join(" "):e}},HR={...Zl,transform:Math.round},tie={rotate:Wo,rotateX:Wo,rotateY:Wo,rotateZ:Wo,scale:ap,scaleX:ap,scaleY:ap,scaleZ:ap,skew:Wo,skewX:Wo,skewY:Wo,distance:Le,translateX:Le,translateY:Le,translateZ:Le,x:Le,y:Le,z:Le,perspective:Le,transformPerspective:Le,opacity:Wu,originX:DR,originY:DR,originZ:Le},Lx={borderWidth:Le,borderTopWidth:Le,borderRightWidth:Le,borderBottomWidth:Le,borderLeftWidth:Le,borderRadius:Le,radius:Le,borderTopLeftRadius:Le,borderTopRightRadius:Le,borderBottomRightRadius:Le,borderBottomLeftRadius:Le,width:Le,maxWidth:Le,height:Le,maxHeight:Le,top:Le,right:Le,bottom:Le,left:Le,padding:Le,paddingTop:Le,paddingRight:Le,paddingBottom:Le,paddingLeft:Le,margin:Le,marginTop:Le,marginRight:Le,marginBottom:Le,marginLeft:Le,backgroundPositionX:Le,backgroundPositionY:Le,...tie,zIndex:HR,fillOpacity:Wu,strokeOpacity:Wu,numOctaves:HR},nie={...Lx,color:fn,backgroundColor:fn,outlineColor:fn,fill:fn,stroke:fn,borderColor:fn,borderTopColor:fn,borderRightColor:fn,borderBottomColor:fn,borderLeftColor:fn,filter:wb,WebkitFilter:wb},aN=e=>nie[e];function sN(e,t){let n=aN(e);return n!==wb&&(n=la),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const rie=new Set(["auto","none","0"]);function iie(e,t,n){let r=0,a;for(;r<e.length&&!a;){const s=e[r];typeof s=="string"&&!rie.has(s)&&Ku(s).values.length&&(a=e[r]),r++}if(a&&n)for(const s of t)e[s]=sN(n,a)}class oie extends kx{constructor(t,n,r,a,s){super(t,n,r,a,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let p=t[d];if(typeof p=="string"&&(p=p.trim(),Cx(p))){const h=nN(p,n.current);h!==void 0&&(t[d]=h),d===t.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!rN.has(r)||t.length!==2)return;const[a,s]=t,c=VR(a),f=VR(s);if(c!==f)if(jR(c)&&jR(f))for(let d=0;d<t.length;d++){const p=t[d];typeof p=="string"&&(t[d]=parseFloat(p))}else rs[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||Zre(t[a]))&&r.push(a);r.length&&iie(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=rs[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(r,a).jump(a,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const a=t.getValue(n);a&&a.jump(this.measuredOrigin,!1);const s=r.length-1,c=r[s];r[s]=rs[n](t.measureViewportBox(),window.getComputedStyle(t.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),this.removedTransforms?.length&&this.removedTransforms.forEach(([f,d])=>{t.getValue(f).set(d)}),this.resolveNoneKeyframes()}}function aie(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const a=n?.[e]??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}const lN=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function sie(e){return Ck(e)&&"offsetHeight"in e}const qR=30,lie=e=>!isNaN(parseFloat(e));class cie{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const a=Zn.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Zn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=lie(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new xx);const r=this.events[t].add(n);return t==="change"?()=>{r(),zt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Zn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>qR)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,qR);return Ok(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function zl(e,t){return new cie(e,t)}const{schedule:$x}=Ik(queueMicrotask,!1),Zr={x:!1,y:!1};function cN(){return Zr.x||Zr.y}function uie(e){return e==="x"||e==="y"?Zr[e]?null:(Zr[e]=!0,()=>{Zr[e]=!1}):Zr.x||Zr.y?null:(Zr.x=Zr.y=!0,()=>{Zr.x=Zr.y=!1})}function uN(e,t){const n=aie(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function GR(e){return!(e.pointerType==="touch"||cN())}function fie(e,t,n={}){const[r,a,s]=uN(e,n),c=f=>{if(!GR(f))return;const{target:d}=f,p=t(d,f);if(typeof p!="function"||!d)return;const h=g=>{GR(g)&&(p(g),d.removeEventListener("pointerleave",h))};d.addEventListener("pointerleave",h,a)};return r.forEach(f=>{f.addEventListener("pointerenter",c,a)}),s}const fN=(e,t)=>t?e===t?!0:fN(e,t.parentElement):!1,Bx=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,die=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function pie(e){return die.has(e.tagName)||e.tabIndex!==-1}const Pp=new WeakSet;function YR(e){return t=>{t.key==="Enter"&&e(t)}}function B0(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const hie=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=YR(()=>{if(Pp.has(n))return;B0(n,"down");const a=YR(()=>{B0(n,"up")}),s=()=>B0(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function WR(e){return Bx(e)&&!cN()}function mie(e,t,n={}){const[r,a,s]=uN(e,n),c=f=>{const d=f.currentTarget;if(!WR(f))return;Pp.add(d);const p=t(d,f),h=(x,b)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",v),Pp.has(d)&&Pp.delete(d),WR(x)&&typeof p=="function"&&p(x,{success:b})},g=x=>{h(x,d===window||d===document||n.useGlobalTarget||fN(d,x.target))},v=x=>{h(x,!1)};window.addEventListener("pointerup",g,a),window.addEventListener("pointercancel",v,a)};return r.forEach(f=>{(n.useGlobalTarget?window:f).addEventListener("pointerdown",c,a),sie(f)&&(f.addEventListener("focus",p=>hie(p,a)),!pie(f)&&!f.hasAttribute("tabindex")&&(f.tabIndex=0))}),s}function dN(e){return Ck(e)&&"ownerSVGElement"in e}function gie(e){return dN(e)&&e.tagName==="svg"}const Nn=e=>!!(e&&e.getVelocity),yie=[...oN,fn,la],vie=e=>yie.find(iN(e)),pN=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function bie(e=!0){const t=E.useContext(gx);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,s=E.useId();E.useEffect(()=>{if(e)return a(s)},[e]);const c=E.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,c]:[!0]}const hN=E.createContext({strict:!1}),KR={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ul={};for(const e in KR)Ul[e]={isEnabled:t=>KR[e].some(n=>!!t[n])};function Sie(e){for(const t in e)Ul[t]={...Ul[t],...e[t]}}const xie=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function yh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||xie.has(e)}let mN=e=>!yh(e);function Tie(e){typeof e=="function"&&(mN=t=>t.startsWith("on")?!yh(t):e(t))}try{Tie(require("@emotion/is-prop-valid").default)}catch{}function Eie(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(mN(a)||n===!0&&yh(a)||!t&&!yh(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}const hm=E.createContext({});function mm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Xu(e){return typeof e=="string"||Array.isArray(e)}const Ix=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],jx=["initial",...Ix];function gm(e){return mm(e.animate)||jx.some(t=>Xu(e[t]))}function gN(e){return!!(gm(e)||e.variants)}function wie(e,t){if(gm(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Xu(n)?n:void 0,animate:Xu(r)?r:void 0}}return e.inherit!==!1?t:{}}function Cie(e){const{initial:t,animate:n}=wie(e,E.useContext(hm));return E.useMemo(()=>({initial:t,animate:n}),[XR(t),XR(n)])}function XR(e){return Array.isArray(e)?e.join(" "):e}const Zu={};function Aie(e){for(const t in e)Zu[t]=e[t],wx(t)&&(Zu[t].isCSSVariable=!0)}function yN(e,{layout:t,layoutId:n}){return Jl.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Zu[e]||e==="opacity")}const Oie={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Rie=Ql.length;function _ie(e,t,n){let r="",a=!0;for(let s=0;s<Rie;s++){const c=Ql[s],f=e[c];if(f===void 0)continue;let d=!0;if(typeof f=="number"?d=f===(c.startsWith("scale")?1:0):d=parseFloat(f)===0,!d||n){const p=lN(f,Lx[c]);if(!d){a=!1;const h=Oie[c]||c;r+=`${h}(${p}) `}n&&(t[c]=p)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function zx(e,t,n){const{style:r,vars:a,transformOrigin:s}=e;let c=!1,f=!1;for(const d in t){const p=t[d];if(Jl.has(d)){c=!0;continue}else if(wx(d)){a[d]=p;continue}else{const h=lN(p,Lx[d]);d.startsWith("origin")?(f=!0,s[d]=h):r[d]=h}}if(t.transform||(c||n?r.transform=_ie(t,e.transform,n):r.transform&&(r.transform="none")),f){const{originX:d="50%",originY:p="50%",originZ:h=0}=s;r.transformOrigin=`${d} ${p} ${h}`}}const Ux=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function vN(e,t,n){for(const r in t)!Nn(t[r])&&!yN(r,n)&&(e[r]=t[r])}function Mie({transformTemplate:e},t){return E.useMemo(()=>{const n=Ux();return zx(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Die(e,t){const n=e.style||{},r={};return vN(r,n,e),Object.assign(r,Mie(e,t)),r}function Pie(e,t){const n={},r=Die(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const kie={offset:"stroke-dashoffset",array:"stroke-dasharray"},Nie={offset:"strokeDashoffset",array:"strokeDasharray"};function Lie(e,t,n=1,r=0,a=!0){e.pathLength=1;const s=a?kie:Nie;e[s.offset]=Le.transform(-r);const c=Le.transform(t),f=Le.transform(n);e[s.array]=`${c} ${f}`}function bN(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:s=1,pathOffset:c=0,...f},d,p,h){if(zx(e,f,p),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:v}=e;g.transform&&(v.transform=g.transform,delete g.transform),(v.transform||g.transformOrigin)&&(v.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),v.transform&&(v.transformBox=h?.transformBox??"fill-box",delete g.transformBox),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),a!==void 0&&Lie(g,a,s,c,!1)}const SN=()=>({...Ux(),attrs:{}}),xN=e=>typeof e=="string"&&e.toLowerCase()==="svg";function $ie(e,t,n,r){const a=E.useMemo(()=>{const s=SN();return bN(s,t,xN(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};vN(s,e.style,e),a.style={...s,...a.style}}return a}const Bie=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Fx(e){return typeof e!="string"||e.includes("-")?!1:!!(Bie.indexOf(e)>-1||/[A-Z]/u.test(e))}function Iie(e,t,n,{latestValues:r},a,s=!1){const f=(Fx(e)?$ie:Pie)(t,r,a,e),d=Eie(t,typeof e=="string",s),p=e!==E.Fragment?{...d,...f,ref:n}:{},{children:h}=t,g=E.useMemo(()=>Nn(h)?h.get():h,[h]);return E.createElement(e,{...p,children:g})}function ZR(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Vx(e,t,n,r){if(typeof t=="function"){const[a,s]=ZR(r);t=t(n!==void 0?n:e.custom,a,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,s]=ZR(r);t=t(n!==void 0?n:e.custom,a,s)}return t}function kp(e){return Nn(e)?e.get():e}function jie({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:zie(n,r,a,e),renderState:t()}}function zie(e,t,n,r){const a={},s=r(e,{});for(const v in s)a[v]=kp(s[v]);let{initial:c,animate:f}=e;const d=gm(e),p=gN(e);t&&p&&!d&&e.inherit!==!1&&(c===void 0&&(c=t.initial),f===void 0&&(f=t.animate));let h=n?n.initial===!1:!1;h=h||c===!1;const g=h?f:c;if(g&&typeof g!="boolean"&&!mm(g)){const v=Array.isArray(g)?g:[g];for(let x=0;x<v.length;x++){const b=Vx(e,v[x]);if(b){const{transitionEnd:S,transition:T,...w}=b;for(const R in w){let A=w[R];if(Array.isArray(A)){const _=h?A.length-1:0;A=A[_]}A!==null&&(a[R]=A)}for(const R in S)a[R]=S[R]}}}return a}const TN=e=>(t,n)=>{const r=E.useContext(hm),a=E.useContext(gx),s=()=>jie(e,t,r,a);return n?s():Sne(s)};function Hx(e,t,n){const{style:r}=e,a={};for(const s in r)(Nn(r[s])||t.style&&Nn(t.style[s])||yN(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(a[s]=r[s]);return a}const Uie=TN({scrapeMotionValuesFromProps:Hx,createRenderState:Ux});function EN(e,t,n){const r=Hx(e,t,n);for(const a in e)if(Nn(e[a])||Nn(t[a])){const s=Ql.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[s]=e[a]}return r}const Fie=TN({scrapeMotionValuesFromProps:EN,createRenderState:SN}),Vie=Symbol.for("motionComponentSymbol");function Tl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Hie(e,t,n){return E.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Tl(n)&&(n.current=r))},[t])}const qx=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),qie="framerAppearId",wN="data-"+qx(qie),CN=E.createContext({});function Gie(e,t,n,r,a){const{visualElement:s}=E.useContext(hm),c=E.useContext(hN),f=E.useContext(gx),d=E.useContext(pN).reducedMotion,p=E.useRef(null);r=r||c.renderer,!p.current&&r&&(p.current=r(e,{visualState:t,parent:s,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:d}));const h=p.current,g=E.useContext(CN);h&&!h.projection&&a&&(h.type==="html"||h.type==="svg")&&Yie(p.current,n,a,g);const v=E.useRef(!1);E.useInsertionEffect(()=>{h&&v.current&&h.update(n,f)});const x=n[wN],b=E.useRef(!!x&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return xne(()=>{h&&(v.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),b.current&&h.animationState&&h.animationState.animateChanges())}),E.useEffect(()=>{h&&(!b.current&&h.animationState&&h.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),b.current=!1),h.enteringChildren=void 0)}),h}function Yie(e,t,n,r){const{layoutId:a,layout:s,drag:c,dragConstraints:f,layoutScroll:d,layoutRoot:p,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:AN(e.parent)),e.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:!!c||f&&Tl(f),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:d,layoutRoot:p})}function AN(e){if(e)return e.options.allowProjection!==!1?e.projection:AN(e.parent)}function I0(e,{forwardMotionProps:t=!1}={},n,r){n&&Sie(n);const a=Fx(e)?Fie:Uie;function s(f,d){let p;const h={...E.useContext(pN),...f,layoutId:Wie(f)},{isStatic:g}=h,v=Cie(f),x=a(f,g);if(!g&&mx){Kie();const b=Xie(h);p=b.MeasureLayout,v.visualElement=Gie(e,x,h,r,b.ProjectionNode)}return D.jsxs(hm.Provider,{value:v,children:[p&&v.visualElement?D.jsx(p,{visualElement:v.visualElement,...h}):null,Iie(e,f,Hie(x,v.visualElement,d),x,g,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=E.forwardRef(s);return c[Vie]=e,c}function Wie({layoutId:e}){const t=E.useContext(Ek).id;return t&&e!==void 0?t+"-"+e:e}function Kie(e,t){E.useContext(hN).strict}function Xie(e){const{drag:t,layout:n}=Ul;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Zie(e,t){if(typeof Proxy>"u")return I0;const n=new Map,r=(s,c)=>I0(s,c,e,t),a=(s,c)=>r(s,c);return new Proxy(a,{get:(s,c)=>c==="create"?r:(n.has(c)||n.set(c,I0(c,void 0,e,t)),n.get(c))})}function ON({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Qie({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Jie(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function j0(e){return e===void 0||e===1}function Cb({scale:e,scaleX:t,scaleY:n}){return!j0(e)||!j0(t)||!j0(n)}function Fa(e){return Cb(e)||RN(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function RN(e){return QR(e.x)||QR(e.y)}function QR(e){return e&&e!=="0%"}function vh(e,t,n){const r=e-n,a=t*r;return n+a}function JR(e,t,n,r,a){return a!==void 0&&(e=vh(e,a,r)),vh(e,n,r)+t}function Ab(e,t=0,n=1,r,a){e.min=JR(e.min,t,n,r,a),e.max=JR(e.max,t,n,r,a)}function _N(e,{x:t,y:n}){Ab(e.x,t.translate,t.scale,t.originPoint),Ab(e.y,n.translate,n.scale,n.originPoint)}const e_=.999999999999,t_=1.0000000000001;function eoe(e,t,n,r=!1){const a=n.length;if(!a)return;t.x=t.y=1;let s,c;for(let f=0;f<a;f++){s=n[f],c=s.projectionDelta;const{visualElement:d}=s.options;d&&d.props.style&&d.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&wl(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,_N(e,c)),r&&Fa(s.latestValues)&&wl(e,s.latestValues))}t.x<t_&&t.x>e_&&(t.x=1),t.y<t_&&t.y>e_&&(t.y=1)}function El(e,t){e.min=e.min+t,e.max=e.max+t}function n_(e,t,n,r,a=.5){const s=Ht(e.min,e.max,a);Ab(e,t,n,s,r)}function wl(e,t){n_(e.x,t.x,t.scaleX,t.scale,t.originX),n_(e.y,t.y,t.scaleY,t.scale,t.originY)}function MN(e,t){return ON(Jie(e.getBoundingClientRect(),t))}function toe(e,t,n){const r=MN(e,n),{scroll:a}=t;return a&&(El(r.x,a.offset.x),El(r.y,a.offset.y)),r}const r_=()=>({translate:0,scale:1,origin:0,originPoint:0}),Cl=()=>({x:r_(),y:r_()}),i_=()=>({min:0,max:0}),tn=()=>({x:i_(),y:i_()}),Ob={current:null},DN={current:!1};function noe(){if(DN.current=!0,!!mx)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ob.current=e.matches;e.addEventListener("change",t),t()}else Ob.current=!1}const roe=new WeakMap;function ioe(e,t,n){for(const r in t){const a=t[r],s=n[r];if(Nn(a))e.addValue(r,a);else if(Nn(s))e.addValue(r,zl(a,{owner:e}));else if(s!==a)if(e.hasValue(r)){const c=e.getValue(r);c.liveStyle===!0?c.jump(a):c.hasAnimated||c.set(a)}else{const c=e.getStaticValue(r);e.addValue(r,zl(c!==void 0?c:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const o_=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ooe{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,blockInitialAnimation:s,visualState:c},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=kx,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const v=Zn.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,zt.render(this.render,!1,!0))};const{latestValues:d,renderState:p}=c;this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=p,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=f,this.blockInitialAnimation=!!s,this.isControllingVariants=gm(n),this.isVariantNode=gN(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in g){const x=g[v];d[v]!==void 0&&Nn(x)&&x.set(d[v])}}mount(t){this.current=t,roe.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),DN.current||noe(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ob.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),sa(this.notifyUpdate),sa(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Jl.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&zt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ul){const n=Ul[t];if(!n)continue;const{isEnabled:r,Feature:a}=n;if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):tn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<o_.length;r++){const a=o_[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const s="on"+a,c=t[s];c&&(this.propEventSubscriptions[a]=this.on(a,c))}this.prevMotionValues=ioe(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=zl(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(wk(r)||Ak(r))?r=parseFloat(r):!vie(r)&&la.test(n)&&(r=sN(t,n)),this.setBaseTarget(t,Nn(r)?r.get():r)),Nn(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=Vx(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Nn(a)?a:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new xx),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){$x.render(this.render)}}class PN extends ooe{constructor(){super(...arguments),this.KeyframeResolver=oie}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Nn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function kN(e,{style:t,vars:n},r,a){const s=e.style;let c;for(c in t)s[c]=t[c];a?.applyProjectionStyles(s,r);for(c in n)s.setProperty(c,n[c])}function aoe(e){return window.getComputedStyle(e)}class soe extends PN{constructor(){super(...arguments),this.type="html",this.renderInstance=kN}readValueFromInstance(t,n){if(Jl.has(n))return this.projection?.isProjecting?vb(n):wre(t,n);{const r=aoe(t),a=(wx(n)?r.getPropertyValue(n):r[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return MN(t,n)}build(t,n,r){zx(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Hx(t,n,r)}}const NN=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function loe(e,t,n,r){kN(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(NN.has(a)?a:qx(a),t.attrs[a])}class coe extends PN{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Jl.has(n)){const r=aN(n);return r&&r.default||0}return n=NN.has(n)?n:qx(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return EN(t,n,r)}build(t,n,r){bN(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){loe(t,n,r,a)}mount(t){this.isSVGTag=xN(t.tagName),super.mount(t)}}const uoe=(e,t)=>Fx(e)?new coe(t):new soe(t,{allowProjection:e!==E.Fragment});function Rl(e,t,n){const r=e.getProps();return Vx(r,t,n!==void 0?n:r.custom,e)}const Rb=e=>Array.isArray(e);function foe(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,zl(n))}function doe(e){return Rb(e)?e[e.length-1]||0:e}function poe(e,t){const n=Rl(e,t);let{transitionEnd:r={},transition:a={},...s}=n||{};s={...s,...r};for(const c in s){const f=doe(s[c]);foe(e,c,f)}}function hoe(e){return!!(Nn(e)&&e.add)}function _b(e,t){const n=e.getValue("willChange");if(hoe(n))return n.add(t);if(!n&&vo.WillChange){const r=new vo.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function LN(e){return e.props[wN]}const moe=e=>e!==null;function goe(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(moe),s=t&&n!=="loop"&&t%2===1?0:a.length-1;return a[s]}const yoe={type:"spring",stiffness:500,damping:25,restSpeed:10},voe=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),boe={type:"keyframes",duration:.8},Soe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},xoe=(e,{keyframes:t})=>t.length>2?boe:Jl.has(e)?e.startsWith("scale")?voe(t[1]):yoe:Soe;function Toe({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:s,repeatType:c,repeatDelay:f,from:d,elapsed:p,...h}){return!!Object.keys(h).length}const Gx=(e,t,n,r={},a,s)=>c=>{const f=Nx(r,e)||{},d=f.delay||r.delay||0;let{elapsed:p=0}=r;p=p-Ei(d);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...f,delay:-p,onUpdate:v=>{t.set(v),f.onUpdate&&f.onUpdate(v)},onComplete:()=>{c(),f.onComplete&&f.onComplete()},name:e,motionValue:t,element:s?void 0:a};Toe(f)||Object.assign(h,xoe(e,h)),h.duration&&(h.duration=Ei(h.duration)),h.repeatDelay&&(h.repeatDelay=Ei(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let g=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(Eb(h),h.delay===0&&(g=!0)),(vo.instantAnimations||vo.skipAnimations)&&(g=!0,Eb(h),h.delay=0),h.allowFlatten=!f.type&&!f.ease,g&&!s&&t.get()!==void 0){const v=goe(h.keyframes,f);if(v!==void 0){zt.update(()=>{h.onUpdate(v),h.onComplete()});return}}return f.isSync?new Px(h):new Yre(h)};function Eoe({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function $N(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:c,...f}=t;r&&(s=r);const d=[],p=a&&e.animationState&&e.animationState.getState()[a];for(const h in f){const g=e.getValue(h,e.latestValues[h]??null),v=f[h];if(v===void 0||p&&Eoe(p,h))continue;const x={delay:n,...Nx(s||{},h)},b=g.get();if(b!==void 0&&!g.isAnimating&&!Array.isArray(v)&&v===b&&!x.velocity)continue;let S=!1;if(window.MotionHandoffAnimation){const w=LN(e);if(w){const R=window.MotionHandoffAnimation(w,h,zt);R!==null&&(x.startTime=R,S=!0)}}_b(e,h),g.start(Gx(h,g,v,e.shouldReduceMotion&&rN.has(h)?{type:!1}:x,e,S));const T=g.animation;T&&d.push(T)}return c&&Promise.all(d).then(()=>{zt.update(()=>{c&&poe(e,c)})}),d}function BN(e,t,n,r=0,a=1){const s=Array.from(e).sort((p,h)=>p.sortNodePosition(h)).indexOf(t),c=e.size,f=(c-1)*r;return typeof n=="function"?n(s,c):a===1?s*r:f-s*r}function Mb(e,t,n={}){const r=Rl(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const s=r?()=>Promise.all($N(e,r,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:p=0,staggerChildren:h,staggerDirection:g}=a;return woe(e,t,d,p,h,g,n)}:()=>Promise.resolve(),{when:f}=a;if(f){const[d,p]=f==="beforeChildren"?[s,c]:[c,s];return d().then(()=>p())}else return Promise.all([s(),c(n.delay)])}function woe(e,t,n=0,r=0,a=0,s=1,c){const f=[];for(const d of e.variantChildren)d.notify("AnimationStart",t),f.push(Mb(d,t,{...c,delay:n+(typeof r=="function"?0:r)+BN(e.variantChildren,d,r,a,s)}).then(()=>d.notify("AnimationComplete",t)));return Promise.all(f)}function Coe(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(s=>Mb(e,s,n));r=Promise.all(a)}else if(typeof t=="string")r=Mb(e,t,n);else{const a=typeof t=="function"?Rl(e,t,n.custom):t;r=Promise.all($N(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function IN(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Aoe=jx.length;function jN(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?jN(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Aoe;n++){const r=jx[n],a=e.props[r];(Xu(a)||a===!1)&&(t[r]=a)}return t}const Ooe=[...Ix].reverse(),Roe=Ix.length;function _oe(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Coe(e,n,r)))}function Moe(e){let t=_oe(e),n=a_(),r=!0;const a=d=>(p,h)=>{const g=Rl(e,h,d==="exit"?e.presenceContext?.custom:void 0);if(g){const{transition:v,transitionEnd:x,...b}=g;p={...p,...b,...x}}return p};function s(d){t=d(e)}function c(d){const{props:p}=e,h=jN(e.parent)||{},g=[],v=new Set;let x={},b=1/0;for(let T=0;T<Roe;T++){const w=Ooe[T],R=n[w],A=p[w]!==void 0?p[w]:h[w],_=Xu(A),O=w===d?R.isActive:null;O===!1&&(b=T);let M=A===h[w]&&A!==p[w]&&_;if(M&&r&&e.manuallyAnimateOnMount&&(M=!1),R.protectedKeys={...x},!R.isActive&&O===null||!A&&!R.prevProp||mm(A)||typeof A=="boolean")continue;const L=Doe(R.prevProp,A);let B=L||w===d&&R.isActive&&!M&&_||T>b&&_,z=!1;const V=Array.isArray(A)?A:[A];let H=V.reduce(a(w),{});O===!1&&(H={});const{prevResolvedValues:P={}}=R,K={...P,...H},U=I=>{B=!0,v.has(I)&&(z=!0,v.delete(I)),R.needsAnimating[I]=!0;const q=e.getValue(I);q&&(q.liveStyle=!1)};for(const I in K){const q=H[I],X=P[I];if(x.hasOwnProperty(I))continue;let ie=!1;Rb(q)&&Rb(X)?ie=!IN(q,X):ie=q!==X,ie?q!=null?U(I):v.add(I):q!==void 0&&v.has(I)?U(I):R.protectedKeys[I]=!0}R.prevProp=A,R.prevResolvedValues=H,R.isActive&&(x={...x,...H}),r&&e.blockInitialAnimation&&(B=!1);const j=M&&L;B&&(!j||z)&&g.push(...V.map(I=>{const q={type:w};if(typeof I=="string"&&r&&!j&&e.manuallyAnimateOnMount&&e.parent){const{parent:X}=e,ie=Rl(X,I);if(X.enteringChildren&&ie){const{delayChildren:$}=ie.transition||{};q.delay=BN(X.enteringChildren,e,$)}}return{animation:I,options:q}}))}if(v.size){const T={};if(typeof p.initial!="boolean"){const w=Rl(e,Array.isArray(p.initial)?p.initial[0]:p.initial);w&&w.transition&&(T.transition=w.transition)}v.forEach(w=>{const R=e.getBaseTarget(w),A=e.getValue(w);A&&(A.liveStyle=!0),T[w]=R??null}),g.push({animation:T})}let S=!!g.length;return r&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,S?t(g):Promise.resolve()}function f(d,p){if(n[d].isActive===p)return Promise.resolve();e.variantChildren?.forEach(g=>g.animationState?.setActive(d,p)),n[d].isActive=p;const h=c(d);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:c,setActive:f,setAnimateFunction:s,getState:()=>n,reset:()=>{n=a_(),r=!0}}}function Doe(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!IN(t,e):!1}function $a(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function a_(){return{animate:$a(!0),whileInView:$a(),whileHover:$a(),whileTap:$a(),whileDrag:$a(),whileFocus:$a(),exit:$a()}}class pa{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Poe extends pa{constructor(t){super(t),t.animationState||(t.animationState=Moe(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();mm(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let koe=0;class Noe extends pa{constructor(){super(...arguments),this.id=koe++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Loe={animation:{Feature:Poe},exit:{Feature:Noe}};function Qu(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function xf(e){return{point:{x:e.pageX,y:e.pageY}}}const $oe=e=>t=>Bx(t)&&e(t,xf(t));function Au(e,t,n,r){return Qu(e,t,$oe(n),r)}const zN=1e-4,Boe=1-zN,Ioe=1+zN,UN=.01,joe=0-UN,zoe=0+UN;function jn(e){return e.max-e.min}function Uoe(e,t,n){return Math.abs(e-t)<=n}function s_(e,t,n,r=.5){e.origin=r,e.originPoint=Ht(t.min,t.max,e.origin),e.scale=jn(n)/jn(t),e.translate=Ht(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Boe&&e.scale<=Ioe||isNaN(e.scale))&&(e.scale=1),(e.translate>=joe&&e.translate<=zoe||isNaN(e.translate))&&(e.translate=0)}function Ou(e,t,n,r){s_(e.x,t.x,n.x,r?r.originX:void 0),s_(e.y,t.y,n.y,r?r.originY:void 0)}function l_(e,t,n){e.min=n.min+t.min,e.max=e.min+jn(t)}function Foe(e,t,n){l_(e.x,t.x,n.x),l_(e.y,t.y,n.y)}function c_(e,t,n){e.min=t.min-n.min,e.max=e.min+jn(t)}function Ru(e,t,n){c_(e.x,t.x,n.x),c_(e.y,t.y,n.y)}function Lr(e){return[e("x"),e("y")]}const FN=({current:e})=>e?e.ownerDocument.defaultView:null,u_=(e,t)=>Math.abs(e-t);function Voe(e,t){const n=u_(e.x,t.x),r=u_(e.y,t.y);return Math.sqrt(n**2+r**2)}class VN{constructor(t,n,{transformPagePoint:r,contextWindow:a=window,dragSnapToOrigin:s=!1,distanceThreshold:c=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=U0(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,b=Voe(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!b)return;const{point:S}=v,{timestamp:T}=On;this.history.push({...S,timestamp:T});const{onStart:w,onMove:R}=this.handlers;x||(w&&w(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,v)},this.handlePointerMove=(v,x)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=z0(x,this.transformPagePoint),zt.update(this.updatePoint,!0)},this.handlePointerUp=(v,x)=>{this.end();const{onEnd:b,onSessionEnd:S,resumeAnimation:T}=this.handlers;if(this.dragSnapToOrigin&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=U0(v.type==="pointercancel"?this.lastMoveEventInfo:z0(x,this.transformPagePoint),this.history);this.startEvent&&b&&b(v,w),S&&S(v,w)},!Bx(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=c,this.contextWindow=a||window;const f=xf(t),d=z0(f,this.transformPagePoint),{point:p}=d,{timestamp:h}=On;this.history=[{...p,timestamp:h}];const{onSessionStart:g}=n;g&&g(t,U0(d,this.history)),this.removeListeners=vf(Au(this.contextWindow,"pointermove",this.handlePointerMove),Au(this.contextWindow,"pointerup",this.handlePointerUp),Au(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),sa(this.updatePoint)}}function z0(e,t){return t?{point:t(e.point)}:e}function f_(e,t){return{x:e.x-t.x,y:e.y-t.y}}function U0({point:e},t){return{point:e,delta:f_(e,HN(t)),offset:f_(e,Hoe(t)),velocity:qoe(t,.1)}}function Hoe(e){return e[0]}function HN(e){return e[e.length-1]}function qoe(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=HN(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>Ei(t)));)n--;if(!r)return{x:0,y:0};const s=jr(a.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const c={x:(a.x-r.x)/s,y:(a.y-r.y)/s};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function Goe(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Ht(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Ht(n,e,r.max):Math.min(e,n)),e}function d_(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Yoe(e,{top:t,left:n,bottom:r,right:a}){return{x:d_(e.x,n,a),y:d_(e.y,t,r)}}function p_(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Woe(e,t){return{x:p_(e.x,t.x),y:p_(e.y,t.y)}}function Koe(e,t){let n=.5;const r=jn(e),a=jn(t);return a>r?n=Yu(t.min,t.max-r,e.min):r>a&&(n=Yu(e.min,e.max-a,t.min)),yo(0,1,n)}function Xoe(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Db=.35;function Zoe(e=Db){return e===!1?e=0:e===!0&&(e=Db),{x:h_(e,"left","right"),y:h_(e,"top","bottom")}}function h_(e,t,n){return{min:m_(e,t),max:m_(e,n)}}function m_(e,t){return typeof e=="number"?e:e[t]||0}const Qoe=new WeakMap;class Joe{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=tn(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const s=g=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(xf(g).point)},c=(g,v)=>{const{drag:x,dragPropagation:b,onDragStart:S}=this.getProps();if(x&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=uie(x),!this.openDragLock))return;this.latestPointerEvent=g,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Lr(w=>{let R=this.getAxisMotionValue(w).get()||0;if(wi.test(R)){const{projection:A}=this.visualElement;if(A&&A.layout){const _=A.layout.layoutBox[w];_&&(R=jn(_)*(parseFloat(R)/100))}}this.originPoint[w]=R}),S&&zt.postRender(()=>S(g,v)),_b(this.visualElement,"transform");const{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},f=(g,v)=>{this.latestPointerEvent=g,this.latestPanInfo=v;const{dragPropagation:x,dragDirectionLock:b,onDirectionLock:S,onDrag:T}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:w}=v;if(b&&this.currentDirection===null){this.currentDirection=eae(w),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",v.point,w),this.updateAxis("y",v.point,w),this.visualElement.render(),T&&T(g,v)},d=(g,v)=>{this.latestPointerEvent=g,this.latestPanInfo=v,this.stop(g,v),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>Lr(g=>this.getAnimationState(g)==="paused"&&this.getAxisMotionValue(g).animation?.play()),{dragSnapToOrigin:h}=this.getProps();this.panSession=new VN(t,{onSessionStart:s,onStart:c,onMove:f,onSessionEnd:d,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:r,contextWindow:FN(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,a=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!a||!r)return;const{velocity:c}=a;this.startAnimation(c);const{onDragEnd:f}=this.getProps();f&&zt.postRender(()=>f(r,a))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:a}=this.getProps();if(!r||!sp(t,a,this.currentDirection))return;const s=this.getAxisMotionValue(t);let c=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(c=Goe(c,this.constraints[t],this.elastic[t])),s.set(c)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,a=this.constraints;t&&Tl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Yoe(r.layoutBox,t):this.constraints=!1,this.elastic=Zoe(n),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Lr(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Xoe(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Tl(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const s=toe(r,a.root,this.visualElement.getTransformPagePoint());let c=Woe(a.layout.layoutBox,s);if(n){const f=n(Qie(c));this.hasMutatedConstraints=!!f,f&&(c=ON(f))}return c}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:s,dragSnapToOrigin:c,onDragTransitionEnd:f}=this.getProps(),d=this.constraints||{},p=Lr(h=>{if(!sp(h,n,this.currentDirection))return;let g=d&&d[h]||{};c&&(g={min:0,max:0});const v=a?200:1e6,x=a?40:1e7,b={type:"inertia",velocity:r?t[h]:0,bounceStiffness:v,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...s,...g};return this.startAxisValueAnimation(h,b)});return Promise.all(p).then(f)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return _b(this.visualElement,t),r.start(Gx(t,r,0,n,this.visualElement,!1))}stopAnimation(){Lr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Lr(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),a=r[n];return a||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Lr(n=>{const{drag:r}=this.getProps();if(!sp(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,s=this.getAxisMotionValue(n);if(a&&a.layout){const{min:c,max:f}=a.layout.layoutBox[n];s.set(t[n]-Ht(c,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Tl(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Lr(c=>{const f=this.getAxisMotionValue(c);if(f&&this.constraints!==!1){const d=f.get();a[c]=Koe({min:d,max:d},this.constraints[c])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Lr(c=>{if(!sp(c,t,null))return;const f=this.getAxisMotionValue(c),{min:d,max:p}=this.constraints[c];f.set(Ht(d,p,a[c]))})}addListeners(){if(!this.visualElement.current)return;Qoe.set(this.visualElement,this);const t=this.visualElement.current,n=Au(t,"pointerdown",d=>{const{drag:p,dragListener:h=!0}=this.getProps();p&&h&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();Tl(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,s=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),zt.read(r);const c=Qu(window,"resize",()=>this.scalePositionWithinConstraints()),f=a.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:p})=>{this.isDragging&&p&&(Lr(h=>{const g=this.getAxisMotionValue(h);g&&(this.originPoint[h]+=d[h].translate,g.set(g.get()+d[h].translate))}),this.visualElement.render())}));return()=>{c(),n(),s(),f&&f()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:s=!1,dragElastic:c=Db,dragMomentum:f=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:s,dragElastic:c,dragMomentum:f}}}function sp(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function eae(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class tae extends pa{constructor(t){super(t),this.removeGroupControls=Fr,this.removeListeners=Fr,this.controls=new Joe(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Fr}unmount(){this.removeGroupControls(),this.removeListeners()}}const g_=e=>(t,n)=>{e&&zt.postRender(()=>e(t,n))};class nae extends pa{constructor(){super(...arguments),this.removePointerDownListener=Fr}onPointerDown(t){this.session=new VN(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:FN(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:g_(t),onStart:g_(n),onMove:r,onEnd:(s,c)=>{delete this.session,a&&zt.postRender(()=>a(s,c))}}}mount(){this.removePointerDownListener=Au(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Np={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function y_(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const au={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Le.test(e))e=parseFloat(e);else return e;const n=y_(e,t.target.x),r=y_(e,t.target.y);return`${n}% ${r}%`}},rae={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=la.parse(e);if(a.length>5)return r;const s=la.createTransformer(e),c=typeof a[0]!="number"?1:0,f=n.x.scale*t.x,d=n.y.scale*t.y;a[0+c]/=f,a[1+c]/=d;const p=Ht(f,d,.5);return typeof a[2+c]=="number"&&(a[2+c]/=p),typeof a[3+c]=="number"&&(a[3+c]/=p),s(a)}};let F0=!1;class iae extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:s}=t;Aie(oae),s&&(n.group&&n.group.add(s),r&&r.register&&a&&r.register(s),F0&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Np.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:s}=this.props,{projection:c}=r;return c&&(c.isPresent=s,F0=!0,a||t.layoutDependency!==n||n===void 0||t.isPresent!==s?c.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?c.promote():c.relegate()||zt.postRender(()=>{const f=c.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),$x.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;F0=!0,a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function qN(e){const[t,n]=bie(),r=E.useContext(Ek);return D.jsx(iae,{...e,layoutGroup:r,switchLayoutGroup:E.useContext(CN),isPresent:t,safeToRemove:n})}const oae={borderRadius:{...au,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:au,borderTopRightRadius:au,borderBottomLeftRadius:au,borderBottomRightRadius:au,boxShadow:rae};function aae(e,t,n){const r=Nn(e)?e:zl(e);return r.start(Gx("",r,t,n)),r.animation}const sae=(e,t)=>e.depth-t.depth;class lae{constructor(){this.children=[],this.isDirty=!1}add(t){yx(this.children,t),this.isDirty=!0}remove(t){vx(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(sae),this.isDirty=!1,this.children.forEach(t)}}function cae(e,t){const n=Zn.now(),r=({timestamp:a})=>{const s=a-n;s>=t&&(sa(r),e(s-t))};return zt.setup(r,!0),()=>sa(r)}const GN=["TopLeft","TopRight","BottomLeft","BottomRight"],uae=GN.length,v_=e=>typeof e=="string"?parseFloat(e):e,b_=e=>typeof e=="number"||Le.test(e);function fae(e,t,n,r,a,s){a?(e.opacity=Ht(0,n.opacity??1,dae(r)),e.opacityExit=Ht(t.opacity??1,0,pae(r))):s&&(e.opacity=Ht(t.opacity??1,n.opacity??1,r));for(let c=0;c<uae;c++){const f=`border${GN[c]}Radius`;let d=S_(t,f),p=S_(n,f);if(d===void 0&&p===void 0)continue;d||(d=0),p||(p=0),d===0||p===0||b_(d)===b_(p)?(e[f]=Math.max(Ht(v_(d),v_(p),r),0),(wi.test(p)||wi.test(d))&&(e[f]+="%")):e[f]=p}(t.rotate||n.rotate)&&(e.rotate=Ht(t.rotate||0,n.rotate||0,r))}function S_(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const dae=YN(0,.5,Nk),pae=YN(.5,.95,Fr);function YN(e,t,n){return r=>r<e?0:r>t?1:n(Yu(e,t,r))}function x_(e,t){e.min=t.min,e.max=t.max}function kr(e,t){x_(e.x,t.x),x_(e.y,t.y)}function T_(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function E_(e,t,n,r,a){return e-=t,e=vh(e,1/n,r),a!==void 0&&(e=vh(e,1/a,r)),e}function hae(e,t=0,n=1,r=.5,a,s=e,c=e){if(wi.test(t)&&(t=parseFloat(t),t=Ht(c.min,c.max,t/100)-c.min),typeof t!="number")return;let f=Ht(s.min,s.max,r);e===s&&(f-=t),e.min=E_(e.min,t,n,f,a),e.max=E_(e.max,t,n,f,a)}function w_(e,t,[n,r,a],s,c){hae(e,t[n],t[r],t[a],t.scale,s,c)}const mae=["x","scaleX","originX"],gae=["y","scaleY","originY"];function C_(e,t,n,r){w_(e.x,t,mae,n?n.x:void 0,r?r.x:void 0),w_(e.y,t,gae,n?n.y:void 0,r?r.y:void 0)}function A_(e){return e.translate===0&&e.scale===1}function WN(e){return A_(e.x)&&A_(e.y)}function O_(e,t){return e.min===t.min&&e.max===t.max}function yae(e,t){return O_(e.x,t.x)&&O_(e.y,t.y)}function R_(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function KN(e,t){return R_(e.x,t.x)&&R_(e.y,t.y)}function __(e){return jn(e.x)/jn(e.y)}function M_(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class vae{constructor(){this.members=[]}add(t){yx(this.members,t),t.scheduleRender()}remove(t){if(vx(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(a=>t===a);if(n===0)return!1;let r;for(let a=n;a>=0;a--){const s=this.members[a];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function bae(e,t,n){let r="";const a=e.x.translate/t.x,s=e.y.translate/t.y,c=n?.z||0;if((a||s||c)&&(r=`translate3d(${a}px, ${s}px, ${c}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:p,rotate:h,rotateX:g,rotateY:v,skewX:x,skewY:b}=n;p&&(r=`perspective(${p}px) ${r}`),h&&(r+=`rotate(${h}deg) `),g&&(r+=`rotateX(${g}deg) `),v&&(r+=`rotateY(${v}deg) `),x&&(r+=`skewX(${x}deg) `),b&&(r+=`skewY(${b}deg) `)}const f=e.x.scale*t.x,d=e.y.scale*t.y;return(f!==1||d!==1)&&(r+=`scale(${f}, ${d})`),r||"none"}const V0=["","X","Y","Z"],Sae=1e3;let xae=0;function H0(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function XN(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=LN(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",zt,!(a||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&XN(r)}function ZN({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(c={},f=t?.()){this.id=xae++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(wae),this.nodes.forEach(Rae),this.nodes.forEach(_ae),this.nodes.forEach(Cae)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=f?f.root||f:this,this.path=f?[...f.path,f]:[],this.parent=f,this.depth=f?f.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new lae)}addEventListener(c,f){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new xx),this.eventHandlers.get(c).add(f)}notifyListeners(c,...f){const d=this.eventHandlers.get(c);d&&d.notify(...f)}hasListeners(c){return this.eventHandlers.has(c)}mount(c){if(this.instance)return;this.isSVG=dN(c)&&!gie(c),this.instance=c;const{layoutId:f,layout:d,visualElement:p}=this.options;if(p&&!p.current&&p.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(d||f)&&(this.isLayoutDirty=!0),e){let h,g=0;const v=()=>this.root.updateBlockedByResize=!1;zt.read(()=>{g=window.innerWidth}),e(c,()=>{const x=window.innerWidth;x!==g&&(g=x,this.root.updateBlockedByResize=!0,h&&h(),h=cae(v,250),Np.hasAnimatedSinceResize&&(Np.hasAnimatedSinceResize=!1,this.nodes.forEach(k_)))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&p&&(f||d)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:g,hasRelativeLayoutChanged:v,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||p.getDefaultTransition()||Nae,{onLayoutAnimationStart:S,onLayoutAnimationComplete:T}=p.getProps(),w=!this.targetLayout||!KN(this.targetLayout,x),R=!g&&v;if(this.options.layoutRoot||this.resumeFrom||R||g&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const A={...Nx(b,"layout"),onPlay:S,onComplete:T};(p.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A),this.setAnimationOrigin(h,R)}else g||k_(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),sa(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Mae),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&XN(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const g=this.path[h];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:f,layout:d}=this.options;if(f===void 0&&!d)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(D_);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(P_);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Oae),this.nodes.forEach(Tae),this.nodes.forEach(Eae)):this.nodes.forEach(P_),this.clearAllSnapshots();const f=Zn.now();On.delta=yo(0,1e3/60,f-On.timestamp),On.timestamp=f,On.isProcessing=!0,P0.update.process(On),P0.preRender.process(On),P0.render.process(On),On.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,$x.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Aae),this.sharedNodes.forEach(Dae)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,zt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){zt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!jn(this.snapshot.measuredBox.x)&&!jn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d<this.path.length;d++)this.path[d].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutCorrected=tn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:f}=this.options;f&&f.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let f=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(f=!1),f&&this.instance){const d=r(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:d,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!a)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!WN(this.projectionDelta),d=this.getTransformTemplate(),p=d?d(this.latestValues,""):void 0,h=p!==this.prevTransformTemplateValue;c&&this.instance&&(f||Fa(this.latestValues)||h)&&(a(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const f=this.measurePageBox();let d=this.removeElementScroll(f);return c&&(d=this.removeTransform(d)),Lae(d),{animationId:this.root.animationId,measuredBox:f,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:c}=this.options;if(!c)return tn();const f=c.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some($ae))){const{scroll:p}=this.root;p&&(El(f.x,p.offset.x),El(f.y,p.offset.y))}return f}removeElementScroll(c){const f=tn();if(kr(f,c),this.scroll?.wasRoot)return f;for(let d=0;d<this.path.length;d++){const p=this.path[d],{scroll:h,options:g}=p;p!==this.root&&h&&g.layoutScroll&&(h.wasRoot&&kr(f,c),El(f.x,h.offset.x),El(f.y,h.offset.y))}return f}applyTransform(c,f=!1){const d=tn();kr(d,c);for(let p=0;p<this.path.length;p++){const h=this.path[p];!f&&h.options.layoutScroll&&h.scroll&&h!==h.root&&wl(d,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),Fa(h.latestValues)&&wl(d,h.latestValues)}return Fa(this.latestValues)&&wl(d,this.latestValues),d}removeTransform(c){const f=tn();kr(f,c);for(let d=0;d<this.path.length;d++){const p=this.path[d];if(!p.instance||!Fa(p.latestValues))continue;Cb(p.latestValues)&&p.updateSnapshot();const h=tn(),g=p.measurePageBox();kr(h,g),C_(f,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,h)}return Fa(this.latestValues)&&C_(f,this.latestValues),f}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==On.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==f;if(!(c||d&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:g}=this.options;if(!(!this.layout||!(h||g))){if(this.resolvedRelativeTargetAt=On.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tn(),this.relativeTargetOrigin=tn(),Ru(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),kr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=tn(),this.targetWithTransforms=tn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Foe(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):kr(this.target,this.layout.layoutBox),_N(this.target,this.targetDelta)):kr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tn(),this.relativeTargetOrigin=tn(),Ru(this.relativeTargetOrigin,this.target,v.target),kr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Cb(this.parent.latestValues)||RN(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const c=this.getLead(),f=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(d=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===On.timestamp&&(d=!1),d)return;const{layout:p,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||h))return;kr(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,v=this.treeScale.y;eoe(this.layoutCorrected,this.treeScale,this.path,f),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=tn());const{target:x}=c;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(T_(this.prevProjectionDelta.x,this.projectionDelta.x),T_(this.prevProjectionDelta.y,this.projectionDelta.y)),Ou(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==v||!M_(this.projectionDelta.x,this.prevProjectionDelta.x)||!M_(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){if(this.options.visualElement?.scheduleRender(),c){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Cl(),this.projectionDelta=Cl(),this.projectionDeltaWithTransform=Cl()}setAnimationOrigin(c,f=!1){const d=this.snapshot,p=d?d.latestValues:{},h={...this.latestValues},g=Cl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const v=tn(),x=d?d.source:void 0,b=this.layout?this.layout.source:void 0,S=x!==b,T=this.getStack(),w=!T||T.members.length<=1,R=!!(S&&!w&&this.options.crossfade===!0&&!this.path.some(kae));this.animationProgress=0;let A;this.mixTargetDelta=_=>{const O=_/1e3;N_(g.x,c.x,O),N_(g.y,c.y,O),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ru(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Pae(this.relativeTarget,this.relativeTargetOrigin,v,O),A&&yae(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=tn()),kr(A,this.relativeTarget)),S&&(this.animationValues=h,fae(h,p,this.latestValues,O,R,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=O},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(sa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=zt.update(()=>{Np.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=zl(0)),this.currentAnimation=aae(this.motionValue,[0,1e3],{...c,velocity:0,isSync:!0,onUpdate:f=>{this.mixTargetDelta(f),c.onUpdate&&c.onUpdate(f)},onStop:()=>{},onComplete:()=>{c.onComplete&&c.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Sae),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:f,target:d,layout:p,latestValues:h}=c;if(!(!f||!d||!p)){if(this!==c&&this.layout&&p&&QN(this.options.animationType,this.layout.layoutBox,p.layoutBox)){d=this.target||tn();const g=jn(this.layout.layoutBox.x);d.x.min=c.target.x.min,d.x.max=d.x.min+g;const v=jn(this.layout.layoutBox.y);d.y.min=c.target.y.min,d.y.max=d.y.min+v}kr(f,d),wl(f,h),Ou(this.projectionDeltaWithTransform,this.layoutCorrected,f,h)}}registerSharedNode(c,f){this.sharedNodes.has(c)||this.sharedNodes.set(c,new vae),this.sharedNodes.get(c).add(f);const p=f.options.initialPromotionConfig;f.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(f):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){const{layoutId:c}=this.options;return c?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:c}=this.options;return c?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:f,preserveFollowOpacity:d}={}){const p=this.getStack();p&&p.promote(this,d),c&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let f=!1;const{latestValues:d}=c;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(f=!0),!f)return;const p={};d.z&&H0("z",c,p,this.animationValues);for(let h=0;h<V0.length;h++)H0(`rotate${V0[h]}`,c,p,this.animationValues),H0(`skew${V0[h]}`,c,p,this.animationValues);c.render();for(const h in p)c.setStaticValue(h,p[h]),this.animationValues&&(this.animationValues[h]=p[h]);c.scheduleRender()}applyProjectionStyles(c,f){if(!this.instance||this.isSVG)return;if(!this.isVisible){c.visibility="hidden";return}const d=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,c.visibility="",c.opacity="",c.pointerEvents=kp(f?.pointerEvents)||"",c.transform=d?d(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(c.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,c.pointerEvents=kp(f?.pointerEvents)||""),this.hasProjected&&!Fa(this.latestValues)&&(c.transform=d?d({},""):"none",this.hasProjected=!1);return}c.visibility="";const h=p.animationValues||p.latestValues;this.applyTransformsToTarget();let g=bae(this.projectionDeltaWithTransform,this.treeScale,h);d&&(g=d(h,g)),c.transform=g;const{x:v,y:x}=this.projectionDelta;c.transformOrigin=`${v.origin*100}% ${x.origin*100}% 0`,p.animationValues?c.opacity=p===this?h.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:c.opacity=p===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const b in Zu){if(h[b]===void 0)continue;const{correct:S,applyTo:T,isCSSVariable:w}=Zu[b],R=g==="none"?h[b]:S(h[b],p);if(T){const A=T.length;for(let _=0;_<A;_++)c[T[_]]=R}else w?this.options.visualElement.renderState.vars[b]=R:c[b]=R}this.options.layoutId&&(c.pointerEvents=p===this?kp(f?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>c.currentAnimation?.stop()),this.root.nodes.forEach(D_),this.root.sharedNodes.clear()}}}function Tae(e){e.updateLayout()}function Eae(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:a}=e.options,s=t.source!==e.layout.source;a==="size"?Lr(h=>{const g=s?t.measuredBox[h]:t.layoutBox[h],v=jn(g);g.min=n[h].min,g.max=g.min+v}):QN(a,t.layoutBox,n)&&Lr(h=>{const g=s?t.measuredBox[h]:t.layoutBox[h],v=jn(n[h]);g.max=g.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+v)});const c=Cl();Ou(c,n,t.layoutBox);const f=Cl();s?Ou(f,e.applyTransform(r,!0),t.measuredBox):Ou(f,n,t.layoutBox);const d=!WN(c);let p=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:g,layout:v}=h;if(g&&v){const x=tn();Ru(x,t.layoutBox,g.layoutBox);const b=tn();Ru(b,n,v.layoutBox),KN(x,b)||(p=!0),h.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=x,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:f,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:p})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function wae(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Cae(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Aae(e){e.clearSnapshot()}function D_(e){e.clearMeasurements()}function P_(e){e.isLayoutDirty=!1}function Oae(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function k_(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Rae(e){e.resolveTargetDelta()}function _ae(e){e.calcProjection()}function Mae(e){e.resetSkewAndRotation()}function Dae(e){e.removeLeadSnapshot()}function N_(e,t,n){e.translate=Ht(t.translate,0,n),e.scale=Ht(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function L_(e,t,n,r){e.min=Ht(t.min,n.min,r),e.max=Ht(t.max,n.max,r)}function Pae(e,t,n,r){L_(e.x,t.x,n.x,r),L_(e.y,t.y,n.y,r)}function kae(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Nae={duration:.45,ease:[.4,0,.1,1]},$_=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),B_=$_("applewebkit/")&&!$_("chrome/")?Math.round:Fr;function I_(e){e.min=B_(e.min),e.max=B_(e.max)}function Lae(e){I_(e.x),I_(e.y)}function QN(e,t,n){return e==="position"||e==="preserve-aspect"&&!Uoe(__(t),__(n),.2)}function $ae(e){return e!==e.root&&e.scroll?.wasRoot}const Bae=ZN({attachResizeListener:(e,t)=>Qu(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),q0={current:void 0},JN=ZN({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!q0.current){const e=new Bae({});e.mount(window),e.setOptions({layoutScroll:!0}),q0.current=e}return q0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Iae={pan:{Feature:nae},drag:{Feature:tae,ProjectionNode:JN,MeasureLayout:qN}};function j_(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,s=r[a];s&&zt.postRender(()=>s(t,xf(t)))}class jae extends pa{mount(){const{current:t}=this.node;t&&(this.unmount=fie(t,(n,r)=>(j_(this.node,r,"Start"),a=>j_(this.node,a,"End"))))}unmount(){}}class zae extends pa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=vf(Qu(this.node.current,"focus",()=>this.onFocus()),Qu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function z_(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),s=r[a];s&&zt.postRender(()=>s(t,xf(t)))}class Uae extends pa{mount(){const{current:t}=this.node;t&&(this.unmount=mie(t,(n,r)=>(z_(this.node,r,"Start"),(a,{success:s})=>z_(this.node,a,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Pb=new WeakMap,G0=new WeakMap,Fae=e=>{const t=Pb.get(e.target);t&&t(e)},Vae=e=>{e.forEach(Fae)};function Hae({root:e,...t}){const n=e||document;G0.has(n)||G0.set(n,{});const r=G0.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(Vae,{root:e,...t})),r[a]}function qae(e,t,n){const r=Hae(t);return Pb.set(e,n),r.observe(e),()=>{Pb.delete(e),r.unobserve(e)}}const Gae={some:0,all:1};class Yae extends pa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:s}=t,c={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:Gae[a]},f=d=>{const{isIntersecting:p}=d;if(this.isInView===p||(this.isInView=p,s&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:h,onViewportLeave:g}=this.node.getProps(),v=p?h:g;v&&v(d)};return qae(this.node.current,c,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Wae(t,n))&&this.startObserver()}unmount(){}}function Wae({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Kae={inView:{Feature:Yae},tap:{Feature:Uae},focus:{Feature:zae},hover:{Feature:jae}},Xae={layout:{ProjectionNode:JN,MeasureLayout:qN}},Zae={...Loe,...Kae,...Iae,...Xae},Qae=Zie(Zae,uoe),Jae={fadeInUp:{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.2,ease:"easeOut"}},fadeInDown:{initial:{opacity:0,y:-50},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"}},fadeInLeft:{initial:{opacity:0,x:-50},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut"}},fadeInRight:{initial:{opacity:0,x:50},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut"}},scaleIn:{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.3,ease:"easeOut"}},slideInUp:{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4,ease:"easeOut"}},staggerItem:{initial:{opacity:0,y:30,scale:.9},animate:{opacity:1,y:0,scale:1},transition:{duration:.4,delay:0,ease:"easeOut"}},tabContent:{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4,ease:"easeOut"}},tabUnderline:{initial:{scaleX:0,opacity:0},animate:{scaleX:1,opacity:1},exit:{scaleX:0,opacity:0},transition:{duration:.3,ease:"easeInOut"}}},hu=({children:e,sx:t,onClick:n,preset:r="fadeInUp",delay:a,index:s,hover:c=!1,...f})=>{const d=()=>{if(r){const h=Jae[r];return r==="staggerItem"&&s!==void 0?{...h,transition:{...h.transition,delay:s*.05+(a||0)}}:a!==void 0?{...h,transition:{...h.transition,delay:a}}:h}return{}},p=c?{whileHover:{y:-4,scale:1.05,transition:{duration:.2}}}:{};return D.jsx(Qae.div,{...f,...d(),...p,onClick:n,style:{...t},children:e})},ese=e=>D.jsx("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:D.jsx("path",{d:"M8 15L1 8M1 8L8 1M1 8L19 8",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})}),tse=e=>D.jsx("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:D.jsx("path",{d:"M12 1L19 8M19 8L12 15M19 8L1 8",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})}),nse=({apps:e,onClickItem:t,columns:n=5,rows:r=3,iconSize:a=80,iconRadius:s=7,iconShadow:c=`0 ${th} ${vD} ${Yq}`,gap:f=bD,titleVariant:d="subtitle1",captionVariant:p="caption",titleColor:h,captionColor:g,selectedAppId:v,showPagination:x=!0})=>{const b=Un(),S=Math.max(1,n*Math.max(1,r)),T=Math.max(1,Math.ceil(e.length/S)),[w,R]=_n.useState(0);_n.useEffect(()=>{R(M=>M>=T?T-1:M)},[T,n,r,e.length]);const A=w*S,_=A+S,O=T>1?e.slice(A,_):e;return D.jsxs(In,{sx:{position:"relative"},children:[D.jsx(In,{sx:{display:"grid",gridTemplateColumns:`repeat(${n}, 1fr)`,gap:f},children:O.map((M,L)=>{const B=v===M.key;return D.jsxs(hu,{preset:"staggerItem",index:L,hover:!0,onClick:()=>t?.(M),sx:{cursor:"pointer",display:"flex",flex:1,alignItems:"center",flexDirection:"column"},children:[D.jsx(In,{sx:{width:a,height:a,borderRadius:s,mb:1.5,display:"flex",alignItems:"center",justifyContent:"center",background:iZ(M.category),boxShadow:B?`0 0 0 1px ${b.palette.primary.main}, ${c}`:c},children:M.icon.startsWith("/")&&D.jsx(MP,{sx:{width:a*.56,height:a*.56},url:M.icon,sizeType:xu.SQUARE})}),D.jsx(_t,{variant:d,sx:{color:h??b.palette.common.white},children:M.title}),D.jsx(_t,{variant:p,sx:{color:g??b.palette.common.white},children:M.caption})]},M.key)})}),x&&T>1&&D.jsxs(D.Fragment,{children:[w===T-1&&D.jsx(Kp,{size:"small",onClick:()=>R(M=>Math.max(0,M-1)),disabled:w===0,sx:{position:"absolute",top:"50%",left:-30,transform:"translateY(-120%)",color:b.palette.divider},children:D.jsx(ese,{})}),w!==T-1&&D.jsx(Kp,{size:"small",onClick:()=>R(M=>Math.min(T-1,M+1)),disabled:w===T-1,sx:{position:"absolute",top:"50%",right:-30,transform:"translateY(-120%)",color:b.palette.divider},children:D.jsx(tse,{})}),D.jsx(In,{sx:{mt:2,display:"flex",alignItems:"center",justifyContent:"center"},children:D.jsx(In,{sx:{display:"flex",alignItems:"center",gap:JA,px:JA,py:th,borderRadius:kv,backgroundColor:"rgba(255,255,255,0.15)"},children:Array.from({length:T}).map((M,L)=>D.jsx(In,{onClick:()=>R(L),sx:{height:10,borderRadius:kv,cursor:"pointer",transition:"width 0.3s ease",width:L===w?"40px":"10px",backgroundColor:L===w?b.palette.common.white:"rgba(255,255,255,0.35)"}},L))})})]})]})},rse=()=>{const e=Un();So();const t=ys(),[n,r]=E.useState(Vt.ALL),a=fZ(n),s=dZ();return D.jsx(hu,{preset:"fadeInUp",sx:{display:"flex",flexDirection:"column",alignItems:"center",position:"relative",top:150},children:D.jsxs(In,{sx:{width:865,gap:6.25,display:"flex",flexDirection:"column",justifyContent:"flex-start"},children:[D.jsx(In,{sx:{display:"flex",gap:QA,width:"100%",justifyContent:"flex-start"},children:[{key:Vt.ALL,label:"Tất Cả"},{key:Vt.HRM,label:"HRM"},{key:Vt.WORKFLOW,label:"Workflow Engine"},{key:Vt.PLATFORM_INFO,label:"Platform & Info"}].map(c=>D.jsxs(hu,{sx:{position:"relative"},preset:"tabUnderline",children:[D.jsx(_t,{onClick:()=>r(c.key),sx:{cursor:"pointer",color:n===c.key?e.palette.common.white:e.palette.grey[300]},children:c.label}),n===c.key&&D.jsx(hu,{preset:"tabUnderline",sx:{position:"absolute",left:0,right:0,height:2,backgroundColor:e.palette.common.white,transformOrigin:"left"},children:D.jsx("div",{})})]},c.key))}),D.jsx(hu,{preset:"tabContent",children:D.jsx(nse,{apps:a,columns:5,iconSize:80,iconRadius:7,gap:QA,selectedAppId:s?.key,onClickItem:async c=>{await t(bn.updateCurrentAccess(c.key)).unwrap()}})},n)]})})},ise=({})=>{const e=ys(),t=So(),n=oa(s=>s.account),[r,a]=_n.useState(!1);return D.jsxs(E.Fragment,{children:[D.jsxs(Il,{children:[D.jsx(_t,{color:"primary",variant:"h1",fontSize:90,children:"5"}),D.jsx(ht,{component:"img",sx:{height:"90px"},alt:"404 img number 0",src:"/images/diamond.png",className:"image-404",loading:"lazy"}),D.jsx(ht,{component:"img",sx:{height:"90px"},alt:"404 img number 0",src:"/images/diamond.png",className:"image-404",loading:"lazy"})]}),D.jsx(_t,{sx:{width:450,textAlign:"center",lineHeight:2},children:"TÀI KHOẢN CỦA BẠN KHÔNG ĐỦ QUYỀN TRUY CẬP HOẶC HỆ THỐNG ĐÃ GẶP SỰ CỐ!"}),D.jsx(dx,{content:"Đăng nhập lại",fullWidth:!1,loading:r,onClick:async()=>{a(!0);try{await Promise.all([e(bn.logout({type:ch.THIS_DEVICE,refreshToken:n.refreshToken})).unwrap(),e(bn.unsubscribeTopic({fcmToken:n.fcmToken})).unwrap()]),t(nn.AUTH.path)}finally{a(!1)}}})]})},ose=({})=>{const e=So();return D.jsxs(E.Fragment,{children:[D.jsxs(Il,{children:[D.jsx(_t,{color:"primary",variant:"h1",fontSize:90,children:"4"}),D.jsx(ht,{component:"img",sx:{height:"90px"},alt:"404 img number 0",src:"/images/diamond.png",className:"image-404",loading:"lazy"}),D.jsx(_t,{color:"primary",variant:"h1",fontSize:90,children:"4"})]}),D.jsx(_t,{sx:{width:450,textAlign:"center",lineHeight:2},children:"XIN LỖI, TRANG BẠN TÌM KIẾM KHÔNG TỒN TẠI!"}),D.jsx(dx,{content:"Quay lại trang chủ",fullWidth:!1,onClick:()=>e(nn.AUTH.path)})]})},ase=[{...nn.AUTH,element:vne,layout:SX},{...nn.NOT_FOUND,element:ose,layout:WO},{...nn.ERROR,element:ise,layout:WO},{...nn.DASHBOARD,element:bne,layout:bZ,children:[{...nn.DASHBOARD,element:rse}]}],eL=(e,t)=>e.map(n=>{const{path:r,layout:a,element:s,type:c,allowUserTypes:f=[],children:d}=n,p=a||_n.Fragment;let h=s;return r===nn.AUTH.path&&t.isLogin&&(h=()=>D.jsx(c0,{to:nn.DASHBOARD.path})),c===Re.PROTECTED&&(t.isLogin?f.length&&!f.includes(t.user.type)&&t.user.type!==Pe.ROOT&&(h=()=>D.jsx(c0,{to:nn.ERROR.path})):h=()=>D.jsx(c0,{to:nn.AUTH.path})),D.jsx(uD,{path:r,element:D.jsx(p,{children:D.jsx(h,{})}),children:d&&eL(d,t)},r)});function sse(e){E.useEffect(()=>{let t=localStorage.getItem("app_version");const n=async()=>{try{const a=await(await fetch("/version.json",{cache:"no-store"})).json();if(!t){localStorage.setItem("app_version",a.version),t=a.version;return}t!==a.version&&(localStorage.setItem("app_version",a.version),window.location.reload())}catch(r){console.error("Failed to check version",r)}};n();{const r=setInterval(n,e.interval);return()=>clearInterval(r)}},[e?.interval])}BK(ps);function lse(){sse({interval:300*1e3});const e=ys(),t=oa(s=>s.account),n=oa(s=>s.system),{showSnackbar:r}=hf(),a=Bh({...Yo[n.mode],...Yo.OTHER,components:{MuiStack:{styleOverrides:{root:{gap:We.PADDING_GAP_LAYOUT}}},MuiButton:{defaultProps:{size:"medium",fullWidth:!0},styleOverrides:{root:{"&.Mui-disabled":{borderColor:Yo[n.mode].palette.divider},fontWeight:400,lineHeight:"unset",height:We.HEIGHT_DEFAULT_TEXT_FIELD_BUTTON}}},MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:Yo[n.mode].palette.background.paper,color:Yo[n.mode].palette.text.primary,boxShadow:Yo[n.mode].shadows[1],padding:We.PADDING_GAP_ITEM,margin:"5px !important",borderRadius:We.BORDER_RADIUS_ELEMENT_WRAPPER,maxWidth:"none"}}},MuiTextField:{defaultProps:{variant:"outlined",size:"small",fullWidth:!0},styleOverrides:{root:{"& fieldset":{borderColor:Yo[n.mode].palette.divider,borderRadius:We.BORDER_RADIUS_ELEMENT},"& .MuiFormHelperText-root":{...so(1)}}}},MuiDivider:{styleOverrides:{root:{borderColor:`${Yo[n.mode].palette.divider}${yD[30]}`}}},MuiTableCell:{styleOverrides:{root:{fontWeight:"unset",boxShadow:"none",border:"none","&:first-of-type":{borderTopLeftRadius:We.BORDER_RADIUS_ELEMENT,borderBottomLeftRadius:We.BORDER_RADIUS_ELEMENT},"&:last-of-type":{borderTopRightRadius:We.BORDER_RADIUS_ELEMENT,borderBottomRightRadius:We.BORDER_RADIUS_ELEMENT}}}}}});return E.useEffect(()=>{(async()=>{try{t.user&&await e(bn.getAccount(t.user.id)).unwrap()}catch(s){r({message:Jo(s),type:ei.ERROR})}})()},[]),E.useEffect(()=>{(async()=>{try{if(!("serviceWorker"in navigator))return;const s=await navigator.serviceWorker.register("/firebase-messaging-sw.js");if(await navigator.serviceWorker.ready,await Notification.requestPermission()==="granted"&&t.isLogin&&!t.fcmToken){const f=await _7(Oq,{vapidKey:void 0,serviceWorkerRegistration:s});f&&await e(bn.subscribeTopic({fcmToken:f})).unwrap()}}catch(s){r({message:Jo(s),type:ei.ERROR})}})()},[t.isLogin]),E.useEffect(()=>{const s=async c=>{if(!c.data)return;const{title:f,message:d}=c.data,p=ps.getState().account.notificationCount;await e(bn.changeNotificationCount(p+1)).unwrap(),r({message:`${f}: ${d}`,type:ei.INFO})};return navigator.serviceWorker.addEventListener("message",s),()=>{navigator.serviceWorker.removeEventListener("message",s)}},[]),D.jsxs(nz,{theme:a,children:[D.jsx(E6,{}),D.jsx(H9,{children:eL(ase,t)})]})}function Lp(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lp=function(n){return typeof n}:Lp=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Lp(e)}function cse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function use(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fse(e,t,n){return t&&use(e.prototype,t),e}function dse(e,t){return t&&(Lp(t)==="object"||typeof t=="function")?t:$p(e)}function kb(e){return kb=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},kb(e)}function $p(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Nb(e,t)}function Nb(e,t){return Nb=Object.setPrototypeOf||function(r,a){return r.__proto__=a,r},Nb(e,t)}function Bp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tL=(function(e){pse(t,e);function t(){var n,r;cse(this,t);for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return r=dse(this,(n=kb(t)).call.apply(n,[this].concat(s))),Bp($p(r),"state",{bootstrapped:!1}),Bp($p(r),"_unsubscribe",void 0),Bp($p(r),"handlePersistorState",function(){var f=r.props.persistor,d=f.getState(),p=d.bootstrapped;p&&(r.props.onBeforeLift?Promise.resolve(r.props.onBeforeLift()).finally(function(){return r.setState({bootstrapped:!0})}):r.setState({bootstrapped:!0}),r._unsubscribe&&r._unsubscribe())}),r}return fse(t,[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return typeof this.props.children=="function"?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),t})(E.PureComponent);Bp(tL,"defaultProps",{children:null,loading:null});CB.createRoot(document.getElementById("root")).render(D.jsx(E.StrictMode,{children:D.jsx(G7,{store:ps,children:D.jsx(tL,{loading:null,persistor:vX,children:D.jsx(pq,{children:D.jsx(bX,{children:D.jsx(lse,{})})})})})}))});export default hse();