@crownpeak/dqm-react-component 1.2.1 → 1.2.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,158 @@
1
+ function tO(e,t){for(var i=0;i<t.length;i++){const s=t[i];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in e)){const l=Object.getOwnPropertyDescriptor(s,o);l&&Object.defineProperty(e,o,l.get?l:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&s(c)}).observe(document,{childList:!0,subtree:!0});function i(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function s(o){if(o.ep)return;o.ep=!0;const l=i(o);fetch(o.href,l)}})();function cg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var up={exports:{}},$o={};var O1;function nO(){if(O1)return $o;O1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(s,o,l){var c=null;if(l!==void 0&&(c=""+l),o.key!==void 0&&(c=""+o.key),"key"in o){l={};for(var f in o)f!=="key"&&(l[f]=o[f])}else l=o;return o=l.ref,{$$typeof:e,type:s,key:c,ref:o!==void 0?o:null,props:l}}return $o.Fragment=t,$o.jsx=i,$o.jsxs=i,$o}var M1;function iO(){return M1||(M1=1,up.exports=nO()),up.exports}var _=iO(),cp={exports:{}},Re={};var D1;function rO(){if(D1)return Re;D1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),v=Symbol.iterator;function x(z){return z===null||typeof z!="object"?null:(z=v&&z[v]||z["@@iterator"],typeof z=="function"?z:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,T={};function D(z,q,ae){this.props=z,this.context=q,this.refs=T,this.updater=ae||S}D.prototype.isReactComponent={},D.prototype.setState=function(z,q){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,q,"setState")},D.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function L(){}L.prototype=D.prototype;function R(z,q,ae){this.props=z,this.context=q,this.refs=T,this.updater=ae||S}var w=R.prototype=new L;w.constructor=R,C(w,D.prototype),w.isPureReactComponent=!0;var M=Array.isArray;function N(){}var k={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function G(z,q,ae){var oe=ae.ref;return{$$typeof:e,type:z,key:q,ref:oe!==void 0?oe:null,props:ae}}function Q(z,q){return G(z.type,q,z.props)}function J(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function O(z){var q={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(ae){return q[ae]})}var Z=/\/+/g;function F(z,q){return typeof z=="object"&&z!==null&&z.key!=null?O(""+z.key):q.toString(36)}function Y(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(N,N):(z.status="pending",z.then(function(q){z.status==="pending"&&(z.status="fulfilled",z.value=q)},function(q){z.status==="pending"&&(z.status="rejected",z.reason=q)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function P(z,q,ae,oe,ue){var pe=typeof z;(pe==="undefined"||pe==="boolean")&&(z=null);var me=!1;if(z===null)me=!0;else switch(pe){case"bigint":case"string":case"number":me=!0;break;case"object":switch(z.$$typeof){case e:case t:me=!0;break;case g:return me=z._init,P(me(z._payload),q,ae,oe,ue)}}if(me)return ue=ue(z),me=oe===""?"."+F(z,0):oe,M(ue)?(ae="",me!=null&&(ae=me.replace(Z,"$&/")+"/"),P(ue,q,ae,"",function(Te){return Te})):ue!=null&&(J(ue)&&(ue=Q(ue,ae+(ue.key==null||z&&z.key===ue.key?"":(""+ue.key).replace(Z,"$&/")+"/")+me)),q.push(ue)),1;me=0;var Ue=oe===""?".":oe+":";if(M(z))for(var Ce=0;Ce<z.length;Ce++)oe=z[Ce],pe=Ue+F(oe,Ce),me+=P(oe,q,ae,pe,ue);else if(Ce=x(z),typeof Ce=="function")for(z=Ce.call(z),Ce=0;!(oe=z.next()).done;)oe=oe.value,pe=Ue+F(oe,Ce++),me+=P(oe,q,ae,pe,ue);else if(pe==="object"){if(typeof z.then=="function")return P(Y(z),q,ae,oe,ue);throw q=String(z),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return me}function I(z,q,ae){if(z==null)return z;var oe=[],ue=0;return P(z,oe,"","",function(pe){return q.call(ae,pe,ue++)}),oe}function ee(z){if(z._status===-1){var q=z._result;q=q(),q.then(function(ae){(z._status===0||z._status===-1)&&(z._status=1,z._result=ae)},function(ae){(z._status===0||z._status===-1)&&(z._status=2,z._result=ae)}),z._status===-1&&(z._status=0,z._result=q)}if(z._status===1)return z._result.default;throw z._result}var se=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},le={map:I,forEach:function(z,q,ae){I(z,function(){q.apply(this,arguments)},ae)},count:function(z){var q=0;return I(z,function(){q++}),q},toArray:function(z){return I(z,function(q){return q})||[]},only:function(z){if(!J(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return Re.Activity=y,Re.Children=le,Re.Component=D,Re.Fragment=i,Re.Profiler=o,Re.PureComponent=R,Re.StrictMode=s,Re.Suspense=h,Re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,Re.__COMPILER_RUNTIME={__proto__:null,c:function(z){return k.H.useMemoCache(z)}},Re.cache=function(z){return function(){return z.apply(null,arguments)}},Re.cacheSignal=function(){return null},Re.cloneElement=function(z,q,ae){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var oe=C({},z.props),ue=z.key;if(q!=null)for(pe in q.key!==void 0&&(ue=""+q.key),q)!B.call(q,pe)||pe==="key"||pe==="__self"||pe==="__source"||pe==="ref"&&q.ref===void 0||(oe[pe]=q[pe]);var pe=arguments.length-2;if(pe===1)oe.children=ae;else if(1<pe){for(var me=Array(pe),Ue=0;Ue<pe;Ue++)me[Ue]=arguments[Ue+2];oe.children=me}return G(z.type,ue,oe)},Re.createContext=function(z){return z={$$typeof:c,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:l,_context:z},z},Re.createElement=function(z,q,ae){var oe,ue={},pe=null;if(q!=null)for(oe in q.key!==void 0&&(pe=""+q.key),q)B.call(q,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(ue[oe]=q[oe]);var me=arguments.length-2;if(me===1)ue.children=ae;else if(1<me){for(var Ue=Array(me),Ce=0;Ce<me;Ce++)Ue[Ce]=arguments[Ce+2];ue.children=Ue}if(z&&z.defaultProps)for(oe in me=z.defaultProps,me)ue[oe]===void 0&&(ue[oe]=me[oe]);return G(z,pe,ue)},Re.createRef=function(){return{current:null}},Re.forwardRef=function(z){return{$$typeof:f,render:z}},Re.isValidElement=J,Re.lazy=function(z){return{$$typeof:g,_payload:{_status:-1,_result:z},_init:ee}},Re.memo=function(z,q){return{$$typeof:p,type:z,compare:q===void 0?null:q}},Re.startTransition=function(z){var q=k.T,ae={};k.T=ae;try{var oe=z(),ue=k.S;ue!==null&&ue(ae,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(N,se)}catch(pe){se(pe)}finally{q!==null&&ae.types!==null&&(q.types=ae.types),k.T=q}},Re.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},Re.use=function(z){return k.H.use(z)},Re.useActionState=function(z,q,ae){return k.H.useActionState(z,q,ae)},Re.useCallback=function(z,q){return k.H.useCallback(z,q)},Re.useContext=function(z){return k.H.useContext(z)},Re.useDebugValue=function(){},Re.useDeferredValue=function(z,q){return k.H.useDeferredValue(z,q)},Re.useEffect=function(z,q){return k.H.useEffect(z,q)},Re.useEffectEvent=function(z){return k.H.useEffectEvent(z)},Re.useId=function(){return k.H.useId()},Re.useImperativeHandle=function(z,q,ae){return k.H.useImperativeHandle(z,q,ae)},Re.useInsertionEffect=function(z,q){return k.H.useInsertionEffect(z,q)},Re.useLayoutEffect=function(z,q){return k.H.useLayoutEffect(z,q)},Re.useMemo=function(z,q){return k.H.useMemo(z,q)},Re.useOptimistic=function(z,q){return k.H.useOptimistic(z,q)},Re.useReducer=function(z,q,ae){return k.H.useReducer(z,q,ae)},Re.useRef=function(z){return k.H.useRef(z)},Re.useState=function(z){return k.H.useState(z)},Re.useSyncExternalStore=function(z,q,ae){return k.H.useSyncExternalStore(z,q,ae)},Re.useTransition=function(){return k.H.useTransition()},Re.version="19.2.3",Re}var _1;function hf(){return _1||(_1=1,cp.exports=rO()),cp.exports}var E=hf();const ti=cg(E),nm=tO({__proto__:null,default:ti},[E]);var fp={exports:{}},Ho={},dp={exports:{}},hp={};var L1;function sO(){return L1||(L1=1,(function(e){function t(P,I){var ee=P.length;P.push(I);e:for(;0<ee;){var se=ee-1>>>1,le=P[se];if(0<o(le,I))P[se]=I,P[ee]=le,ee=se;else break e}}function i(P){return P.length===0?null:P[0]}function s(P){if(P.length===0)return null;var I=P[0],ee=P.pop();if(ee!==I){P[0]=ee;e:for(var se=0,le=P.length,z=le>>>1;se<z;){var q=2*(se+1)-1,ae=P[q],oe=q+1,ue=P[oe];if(0>o(ae,ee))oe<le&&0>o(ue,ae)?(P[se]=ue,P[oe]=ee,se=oe):(P[se]=ae,P[q]=ee,se=q);else if(oe<le&&0>o(ue,ee))P[se]=ue,P[oe]=ee,se=oe;else break e}}return I}function o(P,I){var ee=P.sortIndex-I.sortIndex;return ee!==0?ee:P.id-I.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var h=[],p=[],g=1,y=null,v=3,x=!1,S=!1,C=!1,T=!1,D=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function w(P){for(var I=i(p);I!==null;){if(I.callback===null)s(p);else if(I.startTime<=P)s(p),I.sortIndex=I.expirationTime,t(h,I);else break;I=i(p)}}function M(P){if(C=!1,w(P),!S)if(i(h)!==null)S=!0,N||(N=!0,O());else{var I=i(p);I!==null&&Y(M,I.startTime-P)}}var N=!1,k=-1,B=5,G=-1;function Q(){return T?!0:!(e.unstable_now()-G<B)}function J(){if(T=!1,N){var P=e.unstable_now();G=P;var I=!0;try{e:{S=!1,C&&(C=!1,L(k),k=-1),x=!0;var ee=v;try{t:{for(w(P),y=i(h);y!==null&&!(y.expirationTime>P&&Q());){var se=y.callback;if(typeof se=="function"){y.callback=null,v=y.priorityLevel;var le=se(y.expirationTime<=P);if(P=e.unstable_now(),typeof le=="function"){y.callback=le,w(P),I=!0;break t}y===i(h)&&s(h),w(P)}else s(h);y=i(h)}if(y!==null)I=!0;else{var z=i(p);z!==null&&Y(M,z.startTime-P),I=!1}}break e}finally{y=null,v=ee,x=!1}I=void 0}}finally{I?O():N=!1}}}var O;if(typeof R=="function")O=function(){R(J)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,F=Z.port2;Z.port1.onmessage=J,O=function(){F.postMessage(null)}}else O=function(){D(J,0)};function Y(P,I){k=D(function(){P(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(P){P.callback=null},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(P){switch(v){case 1:case 2:case 3:var I=3;break;default:I=v}var ee=v;v=I;try{return P()}finally{v=ee}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(P,I){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var ee=v;v=P;try{return I()}finally{v=ee}},e.unstable_scheduleCallback=function(P,I,ee){var se=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?se+ee:se):ee=se,P){case 1:var le=-1;break;case 2:le=250;break;case 5:le=1073741823;break;case 4:le=1e4;break;default:le=5e3}return le=ee+le,P={id:g++,callback:I,priorityLevel:P,startTime:ee,expirationTime:le,sortIndex:-1},ee>se?(P.sortIndex=ee,t(p,P),i(h)===null&&P===i(p)&&(C?(L(k),k=-1):C=!0,Y(M,ee-se))):(P.sortIndex=le,t(h,P),S||x||(S=!0,N||(N=!0,O()))),P},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(P){var I=v;return function(){var ee=v;v=I;try{return P.apply(this,arguments)}finally{v=ee}}}})(hp)),hp}var N1;function aO(){return N1||(N1=1,dp.exports=sO()),dp.exports}var pp={exports:{}},un={};var z1;function oO(){if(z1)return un;z1=1;var e=hf();function t(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(t(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function l(h,p,g){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:h,containerInfo:p,implementation:g}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return un.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,un.createPortal=function(h,p){var g=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 l(h,p,null,g)},un.flushSync=function(h){var p=c.T,g=s.p;try{if(c.T=null,s.p=2,h)return h()}finally{c.T=p,s.p=g,s.d.f()}},un.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(h,p))},un.prefetchDNS=function(h){typeof h=="string"&&s.d.D(h)},un.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var g=p.as,y=f(g,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,x=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?s.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:v,fetchPriority:x}):g==="script"&&s.d.X(h,{crossOrigin:y,integrity:v,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},un.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=f(p.as,p.crossOrigin);s.d.M(h,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(h)},un.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,y=f(g,p.crossOrigin);s.d.L(h,g,{crossOrigin:y,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})}},un.preloadModule=function(h,p){if(typeof h=="string")if(p){var g=f(p.as,p.crossOrigin);s.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(h)},un.requestFormReset=function(h){s.d.r(h)},un.unstable_batchedUpdates=function(h,p){return h(p)},un.useFormState=function(h,p,g){return c.H.useFormState(h,p,g)},un.useFormStatus=function(){return c.H.useHostTransitionStatus()},un.version="19.2.3",un}var k1;function sT(){if(k1)return pp.exports;k1=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(),pp.exports=oO(),pp.exports}var P1;function lO(){if(P1)return Ho;P1=1;var e=aO(),t=hf(),i=sT();function s(n){var r="https://react.dev/errors/"+n;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)r+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function l(n){var r=n,a=n;if(n.alternate)for(;r.return;)r=r.return;else{n=r;do r=n,(r.flags&4098)!==0&&(a=r.return),n=r.return;while(n)}return r.tag===3?a:null}function c(n){if(n.tag===13){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function f(n){if(n.tag===31){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function h(n){if(l(n)!==n)throw Error(s(188))}function p(n){var r=n.alternate;if(!r){if(r=l(n),r===null)throw Error(s(188));return r!==n?null:n}for(var a=n,u=r;;){var d=a.return;if(d===null)break;var m=d.alternate;if(m===null){if(u=d.return,u!==null){a=u;continue}break}if(d.child===m.child){for(m=d.child;m;){if(m===a)return h(d),n;if(m===u)return h(d),r;m=m.sibling}throw Error(s(188))}if(a.return!==u.return)a=d,u=m;else{for(var b=!1,A=d.child;A;){if(A===a){b=!0,a=d,u=m;break}if(A===u){b=!0,u=d,a=m;break}A=A.sibling}if(!b){for(A=m.child;A;){if(A===a){b=!0,a=m,u=d;break}if(A===u){b=!0,u=m,a=d;break}A=A.sibling}if(!b)throw Error(s(189))}}if(a.alternate!==u)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?n:r}function g(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n;for(n=n.child;n!==null;){if(r=g(n),r!==null)return r;n=n.sibling}return null}var y=Object.assign,v=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),R=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),Q=Symbol.for("react.memo_cache_sentinel"),J=Symbol.iterator;function O(n){return n===null||typeof n!="object"?null:(n=J&&n[J]||n["@@iterator"],typeof n=="function"?n:null)}var Z=Symbol.for("react.client.reference");function F(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===Z?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case C:return"Fragment";case D:return"Profiler";case T:return"StrictMode";case M:return"Suspense";case N:return"SuspenseList";case G:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case S:return"Portal";case R:return n.displayName||"Context";case L:return(n._context.displayName||"Context")+".Consumer";case w:var r=n.render;return n=n.displayName,n||(n=r.displayName||r.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case k:return r=n.displayName||null,r!==null?r:F(n.type)||"Memo";case B:r=n._payload,n=n._init;try{return F(n(r))}catch{}}return null}var Y=Array.isArray,P=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},se=[],le=-1;function z(n){return{current:n}}function q(n){0>le||(n.current=se[le],se[le]=null,le--)}function ae(n,r){le++,se[le]=n.current,n.current=r}var oe=z(null),ue=z(null),pe=z(null),me=z(null);function Ue(n,r){switch(ae(pe,r),ae(ue,n),ae(oe,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?Qb(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=Qb(r),n=Zb(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}q(oe),ae(oe,n)}function Ce(){q(oe),q(ue),q(pe)}function Te(n){n.memoizedState!==null&&ae(me,n);var r=oe.current,a=Zb(r,n.type);r!==a&&(ae(ue,n),ae(oe,a))}function De(n){ue.current===n&&(q(oe),q(ue)),me.current===n&&(q(me),jo._currentValue=ee)}var Ve,Gt;function Se(n){if(Ve===void 0)try{throw Error()}catch(a){var r=a.stack.trim().match(/\n( *(at )?)/);Ve=r&&r[1]||"",Gt=-1<a.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+Ve+n+Gt}var _e=!1;function Dt(n,r){if(!n||_e)return"";_e=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(r){var re=function(){throw Error()};if(Object.defineProperty(re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(re,[])}catch(W){var K=W}Reflect.construct(n,[],re)}else{try{re.call()}catch(W){K=W}n.call(re.prototype)}}else{try{throw Error()}catch(W){K=W}(re=n())&&typeof re.catch=="function"&&re.catch(function(){})}}catch(W){if(W&&K&&typeof W.stack=="string")return[W.stack,K.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=u.DetermineComponentFrameRoot(),b=m[0],A=m[1];if(b&&A){var j=b.split(`
4
+ `),H=A.split(`
5
+ `);for(d=u=0;u<j.length&&!j[u].includes("DetermineComponentFrameRoot");)u++;for(;d<H.length&&!H[d].includes("DetermineComponentFrameRoot");)d++;if(u===j.length||d===H.length)for(u=j.length-1,d=H.length-1;1<=u&&0<=d&&j[u]!==H[d];)d--;for(;1<=u&&0<=d;u--,d--)if(j[u]!==H[d]){if(u!==1||d!==1)do if(u--,d--,0>d||j[u]!==H[d]){var te=`
6
+ `+j[u].replace(" at new "," at ");return n.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",n.displayName)),te}while(1<=u&&0<=d);break}}}finally{_e=!1,Error.prepareStackTrace=a}return(a=n?n.displayName||n.name:"")?Se(a):""}function zt(n,r){switch(n.tag){case 26:case 27:case 5:return Se(n.type);case 16:return Se("Lazy");case 13:return n.child!==r&&r!==null?Se("Suspense Fallback"):Se("Suspense");case 19:return Se("SuspenseList");case 0:case 15:return Dt(n.type,!1);case 11:return Dt(n.type.render,!1);case 1:return Dt(n.type,!0);case 31:return Se("Activity");default:return""}}function ft(n){try{var r="",a=null;do r+=zt(n,a),a=n,n=n.return;while(n);return r}catch(u){return`
7
+ Error generating stack: `+u.message+`
8
+ `+u.stack}}var at=Object.prototype.hasOwnProperty,kt=e.unstable_scheduleCallback,ot=e.unstable_cancelCallback,ge=e.unstable_shouldYield,si=e.unstable_requestPaint,ze=e.unstable_now,ji=e.unstable_getCurrentPriorityLevel,gt=e.unstable_ImmediatePriority,$e=e.unstable_UserBlockingPriority,Ct=e.unstable_NormalPriority,It=e.unstable_LowPriority,On=e.unstable_IdlePriority,lt=e.log,ai=e.unstable_setDisableYieldValue,$n=null,Qt=null;function bi(n){if(typeof lt=="function"&&ai(n),Qt&&typeof Qt.setStrictMode=="function")try{Qt.setStrictMode($n,n)}catch{}}var ln=Math.clz32?Math.clz32:Ft,ye=Math.log,ut=Math.LN2;function Ft(n){return n>>>=0,n===0?32:31-(ye(n)/ut|0)|0}var oi=256,Fr=262144,Gl=4194304;function qr(n){var r=n&42;if(r!==0)return r;switch(n&-n){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 n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Yl(n,r,a){var u=n.pendingLanes;if(u===0)return 0;var d=0,m=n.suspendedLanes,b=n.pingedLanes;n=n.warmLanes;var A=u&134217727;return A!==0?(u=A&~m,u!==0?d=qr(u):(b&=A,b!==0?d=qr(b):a||(a=A&~n,a!==0&&(d=qr(a))))):(A=u&~m,A!==0?d=qr(A):b!==0?d=qr(b):a||(a=u&~n,a!==0&&(d=qr(a)))),d===0?0:r!==0&&r!==d&&(r&m)===0&&(m=d&-d,a=r&-r,m>=a||m===32&&(a&4194048)!==0)?r:d}function Xa(n,r){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&r)===0}function HE(n,r){switch(n){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ly(){var n=Gl;return Gl<<=1,(Gl&62914560)===0&&(Gl=4194304),n}function Qf(n){for(var r=[],a=0;31>a;a++)r.push(n);return r}function Wa(n,r){n.pendingLanes|=r,r!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function IE(n,r,a,u,d,m){var b=n.pendingLanes;n.pendingLanes=a,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=a,n.entangledLanes&=a,n.errorRecoveryDisabledLanes&=a,n.shellSuspendCounter=0;var A=n.entanglements,j=n.expirationTimes,H=n.hiddenUpdates;for(a=b&~a;0<a;){var te=31-ln(a),re=1<<te;A[te]=0,j[te]=-1;var K=H[te];if(K!==null)for(H[te]=null,te=0;te<K.length;te++){var W=K[te];W!==null&&(W.lane&=-536870913)}a&=~re}u!==0&&Ny(n,u,0),m!==0&&d===0&&n.tag!==0&&(n.suspendedLanes|=m&~(b&~r))}function Ny(n,r,a){n.pendingLanes|=r,n.suspendedLanes&=~r;var u=31-ln(r);n.entangledLanes|=r,n.entanglements[u]=n.entanglements[u]|1073741824|a&261930}function zy(n,r){var a=n.entangledLanes|=r;for(n=n.entanglements;a;){var u=31-ln(a),d=1<<u;d&r|n[u]&r&&(n[u]|=r),a&=~d}}function ky(n,r){var a=r&-r;return a=(a&42)!==0?1:Zf(a),(a&(n.suspendedLanes|r))!==0?0:a}function Zf(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Jf(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Py(){var n=I.p;return n!==0?n:(n=window.event,n===void 0?32:x1(n.type))}function jy(n,r){var a=I.p;try{return I.p=n,r()}finally{I.p=a}}var dr=Math.random().toString(36).slice(2),Zt="__reactFiber$"+dr,vn="__reactProps$"+dr,Os="__reactContainer$"+dr,ed="__reactEvents$"+dr,FE="__reactListeners$"+dr,qE="__reactHandles$"+dr,By="__reactResources$"+dr,Qa="__reactMarker$"+dr;function td(n){delete n[Zt],delete n[vn],delete n[ed],delete n[FE],delete n[qE]}function Ms(n){var r=n[Zt];if(r)return r;for(var a=n.parentNode;a;){if(r=a[Os]||a[Zt]){if(a=r.alternate,r.child!==null||a!==null&&a.child!==null)for(n=s1(n);n!==null;){if(a=n[Zt])return a;n=s1(n)}return r}n=a,a=n.parentNode}return null}function Ds(n){if(n=n[Zt]||n[Os]){var r=n.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return n}return null}function Za(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n.stateNode;throw Error(s(33))}function _s(n){var r=n[By];return r||(r=n[By]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Yt(n){n[Qa]=!0}var Uy=new Set,Vy={};function Kr(n,r){Ls(n,r),Ls(n+"Capture",r)}function Ls(n,r){for(Vy[n]=r,n=0;n<r.length;n++)Uy.add(r[n])}var KE=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]*$"),$y={},Hy={};function GE(n){return at.call(Hy,n)?!0:at.call($y,n)?!1:KE.test(n)?Hy[n]=!0:($y[n]=!0,!1)}function Xl(n,r,a){if(GE(r))if(a===null)n.removeAttribute(r);else{switch(typeof a){case"undefined":case"function":case"symbol":n.removeAttribute(r);return;case"boolean":var u=r.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){n.removeAttribute(r);return}}n.setAttribute(r,""+a)}}function Wl(n,r,a){if(a===null)n.removeAttribute(r);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(r);return}n.setAttribute(r,""+a)}}function Bi(n,r,a,u){if(u===null)n.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttributeNS(r,a,""+u)}}function Hn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Iy(n){var r=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function YE(n,r,a){var u=Object.getOwnPropertyDescriptor(n.constructor.prototype,r);if(!n.hasOwnProperty(r)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var d=u.get,m=u.set;return Object.defineProperty(n,r,{configurable:!0,get:function(){return d.call(this)},set:function(b){a=""+b,m.call(this,b)}}),Object.defineProperty(n,r,{enumerable:u.enumerable}),{getValue:function(){return a},setValue:function(b){a=""+b},stopTracking:function(){n._valueTracker=null,delete n[r]}}}}function nd(n){if(!n._valueTracker){var r=Iy(n)?"checked":"value";n._valueTracker=YE(n,r,""+n[r])}}function Fy(n){if(!n)return!1;var r=n._valueTracker;if(!r)return!0;var a=r.getValue(),u="";return n&&(u=Iy(n)?n.checked?"true":"false":n.value),n=u,n!==a?(r.setValue(n),!0):!1}function Ql(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var XE=/[\n"\\]/g;function In(n){return n.replace(XE,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function id(n,r,a,u,d,m,b,A){n.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?n.type=b:n.removeAttribute("type"),r!=null?b==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=""+Hn(r)):n.value!==""+Hn(r)&&(n.value=""+Hn(r)):b!=="submit"&&b!=="reset"||n.removeAttribute("value"),r!=null?rd(n,b,Hn(r)):a!=null?rd(n,b,Hn(a)):u!=null&&n.removeAttribute("value"),d==null&&m!=null&&(n.defaultChecked=!!m),d!=null&&(n.checked=d&&typeof d!="function"&&typeof d!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?n.name=""+Hn(A):n.removeAttribute("name")}function qy(n,r,a,u,d,m,b,A){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(n.type=m),r!=null||a!=null){if(!(m!=="submit"&&m!=="reset"||r!=null)){nd(n);return}a=a!=null?""+Hn(a):"",r=r!=null?""+Hn(r):a,A||r===n.value||(n.value=r),n.defaultValue=r}u=u??d,u=typeof u!="function"&&typeof u!="symbol"&&!!u,n.checked=A?n.checked:!!u,n.defaultChecked=!!u,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(n.name=b),nd(n)}function rd(n,r,a){r==="number"&&Ql(n.ownerDocument)===n||n.defaultValue===""+a||(n.defaultValue=""+a)}function Ns(n,r,a,u){if(n=n.options,r){r={};for(var d=0;d<a.length;d++)r["$"+a[d]]=!0;for(a=0;a<n.length;a++)d=r.hasOwnProperty("$"+n[a].value),n[a].selected!==d&&(n[a].selected=d),d&&u&&(n[a].defaultSelected=!0)}else{for(a=""+Hn(a),r=null,d=0;d<n.length;d++){if(n[d].value===a){n[d].selected=!0,u&&(n[d].defaultSelected=!0);return}r!==null||n[d].disabled||(r=n[d])}r!==null&&(r.selected=!0)}}function Ky(n,r,a){if(r!=null&&(r=""+Hn(r),r!==n.value&&(n.value=r),a==null)){n.defaultValue!==r&&(n.defaultValue=r);return}n.defaultValue=a!=null?""+Hn(a):""}function Gy(n,r,a,u){if(r==null){if(u!=null){if(a!=null)throw Error(s(92));if(Y(u)){if(1<u.length)throw Error(s(93));u=u[0]}a=u}a==null&&(a=""),r=a}a=Hn(r),n.defaultValue=a,u=n.textContent,u===a&&u!==""&&u!==null&&(n.value=u),nd(n)}function zs(n,r){if(r){var a=n.firstChild;if(a&&a===n.lastChild&&a.nodeType===3){a.nodeValue=r;return}}n.textContent=r}var WE=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 Yy(n,r,a){var u=r.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?u?n.setProperty(r,""):r==="float"?n.cssFloat="":n[r]="":u?n.setProperty(r,a):typeof a!="number"||a===0||WE.has(r)?r==="float"?n.cssFloat=a:n[r]=(""+a).trim():n[r]=a+"px"}function Xy(n,r,a){if(r!=null&&typeof r!="object")throw Error(s(62));if(n=n.style,a!=null){for(var u in a)!a.hasOwnProperty(u)||r!=null&&r.hasOwnProperty(u)||(u.indexOf("--")===0?n.setProperty(u,""):u==="float"?n.cssFloat="":n[u]="");for(var d in r)u=r[d],r.hasOwnProperty(d)&&a[d]!==u&&Yy(n,d,u)}else for(var m in r)r.hasOwnProperty(m)&&Yy(n,m,r[m])}function sd(n){if(n.indexOf("-")===-1)return!1;switch(n){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 QE=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"]]),ZE=/^[\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 Zl(n){return ZE.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Ui(){}var ad=null;function od(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var ks=null,Ps=null;function Wy(n){var r=Ds(n);if(r&&(n=r.stateNode)){var a=n[vn]||null;e:switch(n=r.stateNode,r.type){case"input":if(id(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),r=a.name,a.type==="radio"&&r!=null){for(a=n;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+In(""+r)+'"][type="radio"]'),r=0;r<a.length;r++){var u=a[r];if(u!==n&&u.form===n.form){var d=u[vn]||null;if(!d)throw Error(s(90));id(u,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(r=0;r<a.length;r++)u=a[r],u.form===n.form&&Fy(u)}break e;case"textarea":Ky(n,a.value,a.defaultValue);break e;case"select":r=a.value,r!=null&&Ns(n,!!a.multiple,r,!1)}}}var ld=!1;function Qy(n,r,a){if(ld)return n(r,a);ld=!0;try{var u=n(r);return u}finally{if(ld=!1,(ks!==null||Ps!==null)&&(Uu(),ks&&(r=ks,n=Ps,Ps=ks=null,Wy(r),n)))for(r=0;r<n.length;r++)Wy(n[r])}}function Ja(n,r){var a=n.stateNode;if(a===null)return null;var u=a[vn]||null;if(u===null)return null;a=u[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(n=n.type,u=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!u;break e;default:n=!1}if(n)return null;if(a&&typeof a!="function")throw Error(s(231,r,typeof a));return a}var Vi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ud=!1;if(Vi)try{var eo={};Object.defineProperty(eo,"passive",{get:function(){ud=!0}}),window.addEventListener("test",eo,eo),window.removeEventListener("test",eo,eo)}catch{ud=!1}var hr=null,cd=null,Jl=null;function Zy(){if(Jl)return Jl;var n,r=cd,a=r.length,u,d="value"in hr?hr.value:hr.textContent,m=d.length;for(n=0;n<a&&r[n]===d[n];n++);var b=a-n;for(u=1;u<=b&&r[a-u]===d[m-u];u++);return Jl=d.slice(n,1<u?1-u:void 0)}function eu(n){var r=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&r===13&&(n=13)):n=r,n===10&&(n=13),32<=n||n===13?n:0}function tu(){return!0}function Jy(){return!1}function bn(n){function r(a,u,d,m,b){this._reactName=a,this._targetInst=d,this.type=u,this.nativeEvent=m,this.target=b,this.currentTarget=null;for(var A in n)n.hasOwnProperty(A)&&(a=n[A],this[A]=a?a(m):m[A]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?tu:Jy,this.isPropagationStopped=Jy,this}return y(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=tu)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=tu)},persist:function(){},isPersistent:tu}),r}var Gr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nu=bn(Gr),to=y({},Gr,{view:0,detail:0}),JE=bn(to),fd,dd,no,iu=y({},to,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pd,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==no&&(no&&n.type==="mousemove"?(fd=n.screenX-no.screenX,dd=n.screenY-no.screenY):dd=fd=0,no=n),fd)},movementY:function(n){return"movementY"in n?n.movementY:dd}}),e0=bn(iu),eR=y({},iu,{dataTransfer:0}),tR=bn(eR),nR=y({},to,{relatedTarget:0}),hd=bn(nR),iR=y({},Gr,{animationName:0,elapsedTime:0,pseudoElement:0}),rR=bn(iR),sR=y({},Gr,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),aR=bn(sR),oR=y({},Gr,{data:0}),t0=bn(oR),lR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uR={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"},cR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fR(n){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(n):(n=cR[n])?!!r[n]:!1}function pd(){return fR}var dR=y({},to,{key:function(n){if(n.key){var r=lR[n.key]||n.key;if(r!=="Unidentified")return r}return n.type==="keypress"?(n=eu(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?uR[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pd,charCode:function(n){return n.type==="keypress"?eu(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?eu(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),hR=bn(dR),pR=y({},iu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),n0=bn(pR),mR=y({},to,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pd}),gR=bn(mR),yR=y({},Gr,{propertyName:0,elapsedTime:0,pseudoElement:0}),vR=bn(yR),bR=y({},iu,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),SR=bn(bR),xR=y({},Gr,{newState:0,oldState:0}),CR=bn(xR),TR=[9,13,27,32],md=Vi&&"CompositionEvent"in window,io=null;Vi&&"documentMode"in document&&(io=document.documentMode);var wR=Vi&&"TextEvent"in window&&!io,i0=Vi&&(!md||io&&8<io&&11>=io),r0=" ",s0=!1;function a0(n,r){switch(n){case"keyup":return TR.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function o0(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var js=!1;function ER(n,r){switch(n){case"compositionend":return o0(r);case"keypress":return r.which!==32?null:(s0=!0,r0);case"textInput":return n=r.data,n===r0&&s0?null:n;default:return null}}function RR(n,r){if(js)return n==="compositionend"||!md&&a0(n,r)?(n=Zy(),Jl=cd=hr=null,js=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return i0&&r.locale!=="ko"?null:r.data;default:return null}}var AR={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 l0(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r==="input"?!!AR[n.type]:r==="textarea"}function u0(n,r,a,u){ks?Ps?Ps.push(u):Ps=[u]:ks=u,r=Ku(r,"onChange"),0<r.length&&(a=new nu("onChange","change",null,a,u),n.push({event:a,listeners:r}))}var ro=null,so=null;function OR(n){qb(n,0)}function ru(n){var r=Za(n);if(Fy(r))return n}function c0(n,r){if(n==="change")return r}var f0=!1;if(Vi){var gd;if(Vi){var yd="oninput"in document;if(!yd){var d0=document.createElement("div");d0.setAttribute("oninput","return;"),yd=typeof d0.oninput=="function"}gd=yd}else gd=!1;f0=gd&&(!document.documentMode||9<document.documentMode)}function h0(){ro&&(ro.detachEvent("onpropertychange",p0),so=ro=null)}function p0(n){if(n.propertyName==="value"&&ru(so)){var r=[];u0(r,so,n,od(n)),Qy(OR,r)}}function MR(n,r,a){n==="focusin"?(h0(),ro=r,so=a,ro.attachEvent("onpropertychange",p0)):n==="focusout"&&h0()}function DR(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return ru(so)}function _R(n,r){if(n==="click")return ru(r)}function LR(n,r){if(n==="input"||n==="change")return ru(r)}function NR(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var Mn=typeof Object.is=="function"?Object.is:NR;function ao(n,r){if(Mn(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var a=Object.keys(n),u=Object.keys(r);if(a.length!==u.length)return!1;for(u=0;u<a.length;u++){var d=a[u];if(!at.call(r,d)||!Mn(n[d],r[d]))return!1}return!0}function m0(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function g0(n,r){var a=m0(n);n=0;for(var u;a;){if(a.nodeType===3){if(u=n+a.textContent.length,n<=r&&u>=r)return{node:a,offset:r-n};n=u}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=m0(a)}}function y0(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?y0(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function v0(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=Ql(n.document);r instanceof n.HTMLIFrameElement;){try{var a=typeof r.contentWindow.location.href=="string"}catch{a=!1}if(a)n=r.contentWindow;else break;r=Ql(n.document)}return r}function vd(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}var zR=Vi&&"documentMode"in document&&11>=document.documentMode,Bs=null,bd=null,oo=null,Sd=!1;function b0(n,r,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Sd||Bs==null||Bs!==Ql(u)||(u=Bs,"selectionStart"in u&&vd(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}),oo&&ao(oo,u)||(oo=u,u=Ku(bd,"onSelect"),0<u.length&&(r=new nu("onSelect","select",null,r,a),n.push({event:r,listeners:u}),r.target=Bs)))}function Yr(n,r){var a={};return a[n.toLowerCase()]=r.toLowerCase(),a["Webkit"+n]="webkit"+r,a["Moz"+n]="moz"+r,a}var Us={animationend:Yr("Animation","AnimationEnd"),animationiteration:Yr("Animation","AnimationIteration"),animationstart:Yr("Animation","AnimationStart"),transitionrun:Yr("Transition","TransitionRun"),transitionstart:Yr("Transition","TransitionStart"),transitioncancel:Yr("Transition","TransitionCancel"),transitionend:Yr("Transition","TransitionEnd")},xd={},S0={};Vi&&(S0=document.createElement("div").style,"AnimationEvent"in window||(delete Us.animationend.animation,delete Us.animationiteration.animation,delete Us.animationstart.animation),"TransitionEvent"in window||delete Us.transitionend.transition);function Xr(n){if(xd[n])return xd[n];if(!Us[n])return n;var r=Us[n],a;for(a in r)if(r.hasOwnProperty(a)&&a in S0)return xd[n]=r[a];return n}var x0=Xr("animationend"),C0=Xr("animationiteration"),T0=Xr("animationstart"),kR=Xr("transitionrun"),PR=Xr("transitionstart"),jR=Xr("transitioncancel"),w0=Xr("transitionend"),E0=new Map,Cd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Cd.push("scrollEnd");function li(n,r){E0.set(n,r),Kr(r,[n])}var su=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Fn=[],Vs=0,Td=0;function au(){for(var n=Vs,r=Td=Vs=0;r<n;){var a=Fn[r];Fn[r++]=null;var u=Fn[r];Fn[r++]=null;var d=Fn[r];Fn[r++]=null;var m=Fn[r];if(Fn[r++]=null,u!==null&&d!==null){var b=u.pending;b===null?d.next=d:(d.next=b.next,b.next=d),u.pending=d}m!==0&&R0(a,d,m)}}function ou(n,r,a,u){Fn[Vs++]=n,Fn[Vs++]=r,Fn[Vs++]=a,Fn[Vs++]=u,Td|=u,n.lanes|=u,n=n.alternate,n!==null&&(n.lanes|=u)}function wd(n,r,a,u){return ou(n,r,a,u),lu(n)}function Wr(n,r){return ou(n,null,null,r),lu(n)}function R0(n,r,a){n.lanes|=a;var u=n.alternate;u!==null&&(u.lanes|=a);for(var d=!1,m=n.return;m!==null;)m.childLanes|=a,u=m.alternate,u!==null&&(u.childLanes|=a),m.tag===22&&(n=m.stateNode,n===null||n._visibility&1||(d=!0)),n=m,m=m.return;return n.tag===3?(m=n.stateNode,d&&r!==null&&(d=31-ln(a),n=m.hiddenUpdates,u=n[d],u===null?n[d]=[r]:u.push(r),r.lane=a|536870912),m):null}function lu(n){if(50<Do)throw Do=0,Nh=null,Error(s(185));for(var r=n.return;r!==null;)n=r,r=n.return;return n.tag===3?n.stateNode:null}var $s={};function BR(n,r,a,u){this.tag=n,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,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 Dn(n,r,a,u){return new BR(n,r,a,u)}function Ed(n){return n=n.prototype,!(!n||!n.isReactComponent)}function $i(n,r){var a=n.alternate;return a===null?(a=Dn(n.tag,r,n.key,n.mode),a.elementType=n.elementType,a.type=n.type,a.stateNode=n.stateNode,a.alternate=n,n.alternate=a):(a.pendingProps=r,a.type=n.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=n.flags&65011712,a.childLanes=n.childLanes,a.lanes=n.lanes,a.child=n.child,a.memoizedProps=n.memoizedProps,a.memoizedState=n.memoizedState,a.updateQueue=n.updateQueue,r=n.dependencies,a.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},a.sibling=n.sibling,a.index=n.index,a.ref=n.ref,a.refCleanup=n.refCleanup,a}function A0(n,r){n.flags&=65011714;var a=n.alternate;return a===null?(n.childLanes=0,n.lanes=r,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=a.childLanes,n.lanes=a.lanes,n.child=a.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=a.memoizedProps,n.memoizedState=a.memoizedState,n.updateQueue=a.updateQueue,n.type=a.type,r=a.dependencies,n.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),n}function uu(n,r,a,u,d,m){var b=0;if(u=n,typeof n=="function")Ed(n)&&(b=1);else if(typeof n=="string")b=IA(n,a,oe.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case G:return n=Dn(31,a,r,d),n.elementType=G,n.lanes=m,n;case C:return Qr(a.children,d,m,r);case T:b=8,d|=24;break;case D:return n=Dn(12,a,r,d|2),n.elementType=D,n.lanes=m,n;case M:return n=Dn(13,a,r,d),n.elementType=M,n.lanes=m,n;case N:return n=Dn(19,a,r,d),n.elementType=N,n.lanes=m,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case R:b=10;break e;case L:b=9;break e;case w:b=11;break e;case k:b=14;break e;case B:b=16,u=null;break e}b=29,a=Error(s(130,n===null?"null":typeof n,"")),u=null}return r=Dn(b,a,r,d),r.elementType=n,r.type=u,r.lanes=m,r}function Qr(n,r,a,u){return n=Dn(7,n,u,r),n.lanes=a,n}function Rd(n,r,a){return n=Dn(6,n,null,r),n.lanes=a,n}function O0(n){var r=Dn(18,null,null,0);return r.stateNode=n,r}function Ad(n,r,a){return r=Dn(4,n.children!==null?n.children:[],n.key,r),r.lanes=a,r.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},r}var M0=new WeakMap;function qn(n,r){if(typeof n=="object"&&n!==null){var a=M0.get(n);return a!==void 0?a:(r={value:n,source:r,stack:ft(r)},M0.set(n,r),r)}return{value:n,source:r,stack:ft(r)}}var Hs=[],Is=0,cu=null,lo=0,Kn=[],Gn=0,pr=null,Si=1,xi="";function Hi(n,r){Hs[Is++]=lo,Hs[Is++]=cu,cu=n,lo=r}function D0(n,r,a){Kn[Gn++]=Si,Kn[Gn++]=xi,Kn[Gn++]=pr,pr=n;var u=Si;n=xi;var d=32-ln(u)-1;u&=~(1<<d),a+=1;var m=32-ln(r)+d;if(30<m){var b=d-d%5;m=(u&(1<<b)-1).toString(32),u>>=b,d-=b,Si=1<<32-ln(r)+d|a<<d|u,xi=m+n}else Si=1<<m|a<<d|u,xi=n}function Od(n){n.return!==null&&(Hi(n,1),D0(n,1,0))}function Md(n){for(;n===cu;)cu=Hs[--Is],Hs[Is]=null,lo=Hs[--Is],Hs[Is]=null;for(;n===pr;)pr=Kn[--Gn],Kn[Gn]=null,xi=Kn[--Gn],Kn[Gn]=null,Si=Kn[--Gn],Kn[Gn]=null}function _0(n,r){Kn[Gn++]=Si,Kn[Gn++]=xi,Kn[Gn++]=pr,Si=r.id,xi=r.overflow,pr=n}var Jt=null,dt=null,je=!1,mr=null,Yn=!1,Dd=Error(s(519));function gr(n){var r=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw uo(qn(r,n)),Dd}function L0(n){var r=n.stateNode,a=n.type,u=n.memoizedProps;switch(r[Zt]=n,r[vn]=u,a){case"dialog":Ne("cancel",r),Ne("close",r);break;case"iframe":case"object":case"embed":Ne("load",r);break;case"video":case"audio":for(a=0;a<Lo.length;a++)Ne(Lo[a],r);break;case"source":Ne("error",r);break;case"img":case"image":case"link":Ne("error",r),Ne("load",r);break;case"details":Ne("toggle",r);break;case"input":Ne("invalid",r),qy(r,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":Ne("invalid",r);break;case"textarea":Ne("invalid",r),Gy(r,u.value,u.defaultValue,u.children)}a=u.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||r.textContent===""+a||u.suppressHydrationWarning===!0||Xb(r.textContent,a)?(u.popover!=null&&(Ne("beforetoggle",r),Ne("toggle",r)),u.onScroll!=null&&Ne("scroll",r),u.onScrollEnd!=null&&Ne("scrollend",r),u.onClick!=null&&(r.onclick=Ui),r=!0):r=!1,r||gr(n,!0)}function N0(n){for(Jt=n.return;Jt;)switch(Jt.tag){case 5:case 31:case 13:Yn=!1;return;case 27:case 3:Yn=!0;return;default:Jt=Jt.return}}function Fs(n){if(n!==Jt)return!1;if(!je)return N0(n),je=!0,!1;var r=n.tag,a;if((a=r!==3&&r!==27)&&((a=r===5)&&(a=n.type,a=!(a!=="form"&&a!=="button")||Yh(n.type,n.memoizedProps)),a=!a),a&&dt&&gr(n),N0(n),r===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));dt=r1(n)}else if(r===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));dt=r1(n)}else r===27?(r=dt,Dr(n.type)?(n=Jh,Jh=null,dt=n):dt=r):dt=Jt?Wn(n.stateNode.nextSibling):null;return!0}function Zr(){dt=Jt=null,je=!1}function _d(){var n=mr;return n!==null&&(Tn===null?Tn=n:Tn.push.apply(Tn,n),mr=null),n}function uo(n){mr===null?mr=[n]:mr.push(n)}var Ld=z(null),Jr=null,Ii=null;function yr(n,r,a){ae(Ld,r._currentValue),r._currentValue=a}function Fi(n){n._currentValue=Ld.current,q(Ld)}function Nd(n,r,a){for(;n!==null;){var u=n.alternate;if((n.childLanes&r)!==r?(n.childLanes|=r,u!==null&&(u.childLanes|=r)):u!==null&&(u.childLanes&r)!==r&&(u.childLanes|=r),n===a)break;n=n.return}}function zd(n,r,a,u){var d=n.child;for(d!==null&&(d.return=n);d!==null;){var m=d.dependencies;if(m!==null){var b=d.child;m=m.firstContext;e:for(;m!==null;){var A=m;m=d;for(var j=0;j<r.length;j++)if(A.context===r[j]){m.lanes|=a,A=m.alternate,A!==null&&(A.lanes|=a),Nd(m.return,a,n),u||(b=null);break e}m=A.next}}else if(d.tag===18){if(b=d.return,b===null)throw Error(s(341));b.lanes|=a,m=b.alternate,m!==null&&(m.lanes|=a),Nd(b,a,n),b=null}else b=d.child;if(b!==null)b.return=d;else for(b=d;b!==null;){if(b===n){b=null;break}if(d=b.sibling,d!==null){d.return=b.return,b=d;break}b=b.return}d=b}}function qs(n,r,a,u){n=null;for(var d=r,m=!1;d!==null;){if(!m){if((d.flags&524288)!==0)m=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var b=d.alternate;if(b===null)throw Error(s(387));if(b=b.memoizedProps,b!==null){var A=d.type;Mn(d.pendingProps.value,b.value)||(n!==null?n.push(A):n=[A])}}else if(d===me.current){if(b=d.alternate,b===null)throw Error(s(387));b.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(n!==null?n.push(jo):n=[jo])}d=d.return}n!==null&&zd(r,n,a,u),r.flags|=262144}function fu(n){for(n=n.firstContext;n!==null;){if(!Mn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function es(n){Jr=n,Ii=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function en(n){return z0(Jr,n)}function du(n,r){return Jr===null&&es(n),z0(n,r)}function z0(n,r){var a=r._currentValue;if(r={context:r,memoizedValue:a,next:null},Ii===null){if(n===null)throw Error(s(308));Ii=r,n.dependencies={lanes:0,firstContext:r},n.flags|=524288}else Ii=Ii.next=r;return a}var UR=typeof AbortController<"u"?AbortController:function(){var n=[],r=this.signal={aborted:!1,addEventListener:function(a,u){n.push(u)}};this.abort=function(){r.aborted=!0,n.forEach(function(a){return a()})}},VR=e.unstable_scheduleCallback,$R=e.unstable_NormalPriority,Pt={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function kd(){return{controller:new UR,data:new Map,refCount:0}}function co(n){n.refCount--,n.refCount===0&&VR($R,function(){n.controller.abort()})}var fo=null,Pd=0,Ks=0,Gs=null;function HR(n,r){if(fo===null){var a=fo=[];Pd=0,Ks=Uh(),Gs={status:"pending",value:void 0,then:function(u){a.push(u)}}}return Pd++,r.then(k0,k0),r}function k0(){if(--Pd===0&&fo!==null){Gs!==null&&(Gs.status="fulfilled");var n=fo;fo=null,Ks=0,Gs=null;for(var r=0;r<n.length;r++)(0,n[r])()}}function IR(n,r){var a=[],u={status:"pending",value:null,reason:null,then:function(d){a.push(d)}};return n.then(function(){u.status="fulfilled",u.value=r;for(var d=0;d<a.length;d++)(0,a[d])(r)},function(d){for(u.status="rejected",u.reason=d,d=0;d<a.length;d++)(0,a[d])(void 0)}),u}var P0=P.S;P.S=function(n,r){bb=ze(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&HR(n,r),P0!==null&&P0(n,r)};var ts=z(null);function jd(){var n=ts.current;return n!==null?n:ct.pooledCache}function hu(n,r){r===null?ae(ts,ts.current):ae(ts,r.pool)}function j0(){var n=jd();return n===null?null:{parent:Pt._currentValue,pool:n}}var Ys=Error(s(460)),Bd=Error(s(474)),pu=Error(s(542)),mu={then:function(){}};function B0(n){return n=n.status,n==="fulfilled"||n==="rejected"}function U0(n,r,a){switch(a=n[a],a===void 0?n.push(r):a!==r&&(r.then(Ui,Ui),r=a),r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,$0(n),n;default:if(typeof r.status=="string")r.then(Ui,Ui);else{if(n=ct,n!==null&&100<n.shellSuspendCounter)throw Error(s(482));n=r,n.status="pending",n.then(function(u){if(r.status==="pending"){var d=r;d.status="fulfilled",d.value=u}},function(u){if(r.status==="pending"){var d=r;d.status="rejected",d.reason=u}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,$0(n),n}throw is=r,Ys}}function ns(n){try{var r=n._init;return r(n._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(is=a,Ys):a}}var is=null;function V0(){if(is===null)throw Error(s(459));var n=is;return is=null,n}function $0(n){if(n===Ys||n===pu)throw Error(s(483))}var Xs=null,ho=0;function gu(n){var r=ho;return ho+=1,Xs===null&&(Xs=[]),U0(Xs,n,r)}function po(n,r){r=r.props.ref,n.ref=r!==void 0?r:null}function yu(n,r){throw r.$$typeof===v?Error(s(525)):(n=Object.prototype.toString.call(r),Error(s(31,n==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":n)))}function H0(n){function r(V,U){if(n){var $=V.deletions;$===null?(V.deletions=[U],V.flags|=16):$.push(U)}}function a(V,U){if(!n)return null;for(;U!==null;)r(V,U),U=U.sibling;return null}function u(V){for(var U=new Map;V!==null;)V.key!==null?U.set(V.key,V):U.set(V.index,V),V=V.sibling;return U}function d(V,U){return V=$i(V,U),V.index=0,V.sibling=null,V}function m(V,U,$){return V.index=$,n?($=V.alternate,$!==null?($=$.index,$<U?(V.flags|=67108866,U):$):(V.flags|=67108866,U)):(V.flags|=1048576,U)}function b(V){return n&&V.alternate===null&&(V.flags|=67108866),V}function A(V,U,$,ie){return U===null||U.tag!==6?(U=Rd($,V.mode,ie),U.return=V,U):(U=d(U,$),U.return=V,U)}function j(V,U,$,ie){var ve=$.type;return ve===C?te(V,U,$.props.children,ie,$.key):U!==null&&(U.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===B&&ns(ve)===U.type)?(U=d(U,$.props),po(U,$),U.return=V,U):(U=uu($.type,$.key,$.props,null,V.mode,ie),po(U,$),U.return=V,U)}function H(V,U,$,ie){return U===null||U.tag!==4||U.stateNode.containerInfo!==$.containerInfo||U.stateNode.implementation!==$.implementation?(U=Ad($,V.mode,ie),U.return=V,U):(U=d(U,$.children||[]),U.return=V,U)}function te(V,U,$,ie,ve){return U===null||U.tag!==7?(U=Qr($,V.mode,ie,ve),U.return=V,U):(U=d(U,$),U.return=V,U)}function re(V,U,$){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return U=Rd(""+U,V.mode,$),U.return=V,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case x:return $=uu(U.type,U.key,U.props,null,V.mode,$),po($,U),$.return=V,$;case S:return U=Ad(U,V.mode,$),U.return=V,U;case B:return U=ns(U),re(V,U,$)}if(Y(U)||O(U))return U=Qr(U,V.mode,$,null),U.return=V,U;if(typeof U.then=="function")return re(V,gu(U),$);if(U.$$typeof===R)return re(V,du(V,U),$);yu(V,U)}return null}function K(V,U,$,ie){var ve=U!==null?U.key:null;if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return ve!==null?null:A(V,U,""+$,ie);if(typeof $=="object"&&$!==null){switch($.$$typeof){case x:return $.key===ve?j(V,U,$,ie):null;case S:return $.key===ve?H(V,U,$,ie):null;case B:return $=ns($),K(V,U,$,ie)}if(Y($)||O($))return ve!==null?null:te(V,U,$,ie,null);if(typeof $.then=="function")return K(V,U,gu($),ie);if($.$$typeof===R)return K(V,U,du(V,$),ie);yu(V,$)}return null}function W(V,U,$,ie,ve){if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return V=V.get($)||null,A(U,V,""+ie,ve);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case x:return V=V.get(ie.key===null?$:ie.key)||null,j(U,V,ie,ve);case S:return V=V.get(ie.key===null?$:ie.key)||null,H(U,V,ie,ve);case B:return ie=ns(ie),W(V,U,$,ie,ve)}if(Y(ie)||O(ie))return V=V.get($)||null,te(U,V,ie,ve,null);if(typeof ie.then=="function")return W(V,U,$,gu(ie),ve);if(ie.$$typeof===R)return W(V,U,$,du(U,ie),ve);yu(U,ie)}return null}function fe(V,U,$,ie){for(var ve=null,He=null,he=U,Me=U=0,Pe=null;he!==null&&Me<$.length;Me++){he.index>Me?(Pe=he,he=null):Pe=he.sibling;var Ie=K(V,he,$[Me],ie);if(Ie===null){he===null&&(he=Pe);break}n&&he&&Ie.alternate===null&&r(V,he),U=m(Ie,U,Me),He===null?ve=Ie:He.sibling=Ie,He=Ie,he=Pe}if(Me===$.length)return a(V,he),je&&Hi(V,Me),ve;if(he===null){for(;Me<$.length;Me++)he=re(V,$[Me],ie),he!==null&&(U=m(he,U,Me),He===null?ve=he:He.sibling=he,He=he);return je&&Hi(V,Me),ve}for(he=u(he);Me<$.length;Me++)Pe=W(he,V,Me,$[Me],ie),Pe!==null&&(n&&Pe.alternate!==null&&he.delete(Pe.key===null?Me:Pe.key),U=m(Pe,U,Me),He===null?ve=Pe:He.sibling=Pe,He=Pe);return n&&he.forEach(function(kr){return r(V,kr)}),je&&Hi(V,Me),ve}function xe(V,U,$,ie){if($==null)throw Error(s(151));for(var ve=null,He=null,he=U,Me=U=0,Pe=null,Ie=$.next();he!==null&&!Ie.done;Me++,Ie=$.next()){he.index>Me?(Pe=he,he=null):Pe=he.sibling;var kr=K(V,he,Ie.value,ie);if(kr===null){he===null&&(he=Pe);break}n&&he&&kr.alternate===null&&r(V,he),U=m(kr,U,Me),He===null?ve=kr:He.sibling=kr,He=kr,he=Pe}if(Ie.done)return a(V,he),je&&Hi(V,Me),ve;if(he===null){for(;!Ie.done;Me++,Ie=$.next())Ie=re(V,Ie.value,ie),Ie!==null&&(U=m(Ie,U,Me),He===null?ve=Ie:He.sibling=Ie,He=Ie);return je&&Hi(V,Me),ve}for(he=u(he);!Ie.done;Me++,Ie=$.next())Ie=W(he,V,Me,Ie.value,ie),Ie!==null&&(n&&Ie.alternate!==null&&he.delete(Ie.key===null?Me:Ie.key),U=m(Ie,U,Me),He===null?ve=Ie:He.sibling=Ie,He=Ie);return n&&he.forEach(function(eO){return r(V,eO)}),je&&Hi(V,Me),ve}function rt(V,U,$,ie){if(typeof $=="object"&&$!==null&&$.type===C&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case x:e:{for(var ve=$.key;U!==null;){if(U.key===ve){if(ve=$.type,ve===C){if(U.tag===7){a(V,U.sibling),ie=d(U,$.props.children),ie.return=V,V=ie;break e}}else if(U.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===B&&ns(ve)===U.type){a(V,U.sibling),ie=d(U,$.props),po(ie,$),ie.return=V,V=ie;break e}a(V,U);break}else r(V,U);U=U.sibling}$.type===C?(ie=Qr($.props.children,V.mode,ie,$.key),ie.return=V,V=ie):(ie=uu($.type,$.key,$.props,null,V.mode,ie),po(ie,$),ie.return=V,V=ie)}return b(V);case S:e:{for(ve=$.key;U!==null;){if(U.key===ve)if(U.tag===4&&U.stateNode.containerInfo===$.containerInfo&&U.stateNode.implementation===$.implementation){a(V,U.sibling),ie=d(U,$.children||[]),ie.return=V,V=ie;break e}else{a(V,U);break}else r(V,U);U=U.sibling}ie=Ad($,V.mode,ie),ie.return=V,V=ie}return b(V);case B:return $=ns($),rt(V,U,$,ie)}if(Y($))return fe(V,U,$,ie);if(O($)){if(ve=O($),typeof ve!="function")throw Error(s(150));return $=ve.call($),xe(V,U,$,ie)}if(typeof $.then=="function")return rt(V,U,gu($),ie);if($.$$typeof===R)return rt(V,U,du(V,$),ie);yu(V,$)}return typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint"?($=""+$,U!==null&&U.tag===6?(a(V,U.sibling),ie=d(U,$),ie.return=V,V=ie):(a(V,U),ie=Rd($,V.mode,ie),ie.return=V,V=ie),b(V)):a(V,U)}return function(V,U,$,ie){try{ho=0;var ve=rt(V,U,$,ie);return Xs=null,ve}catch(he){if(he===Ys||he===pu)throw he;var He=Dn(29,he,null,V.mode);return He.lanes=ie,He.return=V,He}finally{}}}var rs=H0(!0),I0=H0(!1),vr=!1;function Ud(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vd(n,r){n=n.updateQueue,r.updateQueue===n&&(r.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function br(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Sr(n,r,a){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(Ge&2)!==0){var d=u.pending;return d===null?r.next=r:(r.next=d.next,d.next=r),u.pending=r,r=lu(n),R0(n,null,a),r}return ou(n,u,r,a),lu(n)}function mo(n,r,a){if(r=r.updateQueue,r!==null&&(r=r.shared,(a&4194048)!==0)){var u=r.lanes;u&=n.pendingLanes,a|=u,r.lanes=a,zy(n,a)}}function $d(n,r){var a=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var d=null,m=null;if(a=a.firstBaseUpdate,a!==null){do{var b={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};m===null?d=m=b:m=m.next=b,a=a.next}while(a!==null);m===null?d=m=r:m=m.next=r}else d=m=r;a={baseState:u.baseState,firstBaseUpdate:d,lastBaseUpdate:m,shared:u.shared,callbacks:u.callbacks},n.updateQueue=a;return}n=a.lastBaseUpdate,n===null?a.firstBaseUpdate=r:n.next=r,a.lastBaseUpdate=r}var Hd=!1;function go(){if(Hd){var n=Gs;if(n!==null)throw n}}function yo(n,r,a,u){Hd=!1;var d=n.updateQueue;vr=!1;var m=d.firstBaseUpdate,b=d.lastBaseUpdate,A=d.shared.pending;if(A!==null){d.shared.pending=null;var j=A,H=j.next;j.next=null,b===null?m=H:b.next=H,b=j;var te=n.alternate;te!==null&&(te=te.updateQueue,A=te.lastBaseUpdate,A!==b&&(A===null?te.firstBaseUpdate=H:A.next=H,te.lastBaseUpdate=j))}if(m!==null){var re=d.baseState;b=0,te=H=j=null,A=m;do{var K=A.lane&-536870913,W=K!==A.lane;if(W?(ke&K)===K:(u&K)===K){K!==0&&K===Ks&&(Hd=!0),te!==null&&(te=te.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var fe=n,xe=A;K=r;var rt=a;switch(xe.tag){case 1:if(fe=xe.payload,typeof fe=="function"){re=fe.call(rt,re,K);break e}re=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=xe.payload,K=typeof fe=="function"?fe.call(rt,re,K):fe,K==null)break e;re=y({},re,K);break e;case 2:vr=!0}}K=A.callback,K!==null&&(n.flags|=64,W&&(n.flags|=8192),W=d.callbacks,W===null?d.callbacks=[K]:W.push(K))}else W={lane:K,tag:A.tag,payload:A.payload,callback:A.callback,next:null},te===null?(H=te=W,j=re):te=te.next=W,b|=K;if(A=A.next,A===null){if(A=d.shared.pending,A===null)break;W=A,A=W.next,W.next=null,d.lastBaseUpdate=W,d.shared.pending=null}}while(!0);te===null&&(j=re),d.baseState=j,d.firstBaseUpdate=H,d.lastBaseUpdate=te,m===null&&(d.shared.lanes=0),Er|=b,n.lanes=b,n.memoizedState=re}}function F0(n,r){if(typeof n!="function")throw Error(s(191,n));n.call(r)}function q0(n,r){var a=n.callbacks;if(a!==null)for(n.callbacks=null,n=0;n<a.length;n++)F0(a[n],r)}var Ws=z(null),vu=z(0);function K0(n,r){n=Ji,ae(vu,n),ae(Ws,r),Ji=n|r.baseLanes}function Id(){ae(vu,Ji),ae(Ws,Ws.current)}function Fd(){Ji=vu.current,q(Ws),q(vu)}var _n=z(null),Xn=null;function xr(n){var r=n.alternate;ae(_t,_t.current&1),ae(_n,n),Xn===null&&(r===null||Ws.current!==null||r.memoizedState!==null)&&(Xn=n)}function qd(n){ae(_t,_t.current),ae(_n,n),Xn===null&&(Xn=n)}function G0(n){n.tag===22?(ae(_t,_t.current),ae(_n,n),Xn===null&&(Xn=n)):Cr()}function Cr(){ae(_t,_t.current),ae(_n,_n.current)}function Ln(n){q(_n),Xn===n&&(Xn=null),q(_t)}var _t=z(0);function bu(n){for(var r=n;r!==null;){if(r.tag===13){var a=r.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Qh(a)||Zh(a)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var qi=0,Ae=null,nt=null,jt=null,Su=!1,Qs=!1,ss=!1,xu=0,vo=0,Zs=null,FR=0;function Tt(){throw Error(s(321))}function Kd(n,r){if(r===null)return!1;for(var a=0;a<r.length&&a<n.length;a++)if(!Mn(n[a],r[a]))return!1;return!0}function Gd(n,r,a,u,d,m){return qi=m,Ae=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,P.H=n===null||n.memoizedState===null?Dv:lh,ss=!1,m=a(u,d),ss=!1,Qs&&(m=X0(r,a,u,d)),Y0(n),m}function Y0(n){P.H=xo;var r=nt!==null&&nt.next!==null;if(qi=0,jt=nt=Ae=null,Su=!1,vo=0,Zs=null,r)throw Error(s(300));n===null||Bt||(n=n.dependencies,n!==null&&fu(n)&&(Bt=!0))}function X0(n,r,a,u){Ae=n;var d=0;do{if(Qs&&(Zs=null),vo=0,Qs=!1,25<=d)throw Error(s(301));if(d+=1,jt=nt=null,n.updateQueue!=null){var m=n.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}P.H=_v,m=r(a,u)}while(Qs);return m}function qR(){var n=P.H,r=n.useState()[0];return r=typeof r.then=="function"?bo(r):r,n=n.useState()[0],(nt!==null?nt.memoizedState:null)!==n&&(Ae.flags|=1024),r}function Yd(){var n=xu!==0;return xu=0,n}function Xd(n,r,a){r.updateQueue=n.updateQueue,r.flags&=-2053,n.lanes&=~a}function Wd(n){if(Su){for(n=n.memoizedState;n!==null;){var r=n.queue;r!==null&&(r.pending=null),n=n.next}Su=!1}qi=0,jt=nt=Ae=null,Qs=!1,vo=xu=0,Zs=null}function hn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jt===null?Ae.memoizedState=jt=n:jt=jt.next=n,jt}function Lt(){if(nt===null){var n=Ae.alternate;n=n!==null?n.memoizedState:null}else n=nt.next;var r=jt===null?Ae.memoizedState:jt.next;if(r!==null)jt=r,nt=n;else{if(n===null)throw Ae.alternate===null?Error(s(467)):Error(s(310));nt=n,n={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},jt===null?Ae.memoizedState=jt=n:jt=jt.next=n}return jt}function Cu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bo(n){var r=vo;return vo+=1,Zs===null&&(Zs=[]),n=U0(Zs,n,r),r=Ae,(jt===null?r.memoizedState:jt.next)===null&&(r=r.alternate,P.H=r===null||r.memoizedState===null?Dv:lh),n}function Tu(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return bo(n);if(n.$$typeof===R)return en(n)}throw Error(s(438,String(n)))}function Qd(n){var r=null,a=Ae.updateQueue;if(a!==null&&(r=a.memoCache),r==null){var u=Ae.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(r={data:u.data.map(function(d){return d.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),a===null&&(a=Cu(),Ae.updateQueue=a),a.memoCache=r,a=r.data[r.index],a===void 0)for(a=r.data[r.index]=Array(n),u=0;u<n;u++)a[u]=Q;return r.index++,a}function Ki(n,r){return typeof r=="function"?r(n):r}function wu(n){var r=Lt();return Zd(r,nt,n)}function Zd(n,r,a){var u=n.queue;if(u===null)throw Error(s(311));u.lastRenderedReducer=a;var d=n.baseQueue,m=u.pending;if(m!==null){if(d!==null){var b=d.next;d.next=m.next,m.next=b}r.baseQueue=d=m,u.pending=null}if(m=n.baseState,d===null)n.memoizedState=m;else{r=d.next;var A=b=null,j=null,H=r,te=!1;do{var re=H.lane&-536870913;if(re!==H.lane?(ke&re)===re:(qi&re)===re){var K=H.revertLane;if(K===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),re===Ks&&(te=!0);else if((qi&K)===K){H=H.next,K===Ks&&(te=!0);continue}else re={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},j===null?(A=j=re,b=m):j=j.next=re,Ae.lanes|=K,Er|=K;re=H.action,ss&&a(m,re),m=H.hasEagerState?H.eagerState:a(m,re)}else K={lane:re,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},j===null?(A=j=K,b=m):j=j.next=K,Ae.lanes|=re,Er|=re;H=H.next}while(H!==null&&H!==r);if(j===null?b=m:j.next=A,!Mn(m,n.memoizedState)&&(Bt=!0,te&&(a=Gs,a!==null)))throw a;n.memoizedState=m,n.baseState=b,n.baseQueue=j,u.lastRenderedState=m}return d===null&&(u.lanes=0),[n.memoizedState,u.dispatch]}function Jd(n){var r=Lt(),a=r.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=n;var u=a.dispatch,d=a.pending,m=r.memoizedState;if(d!==null){a.pending=null;var b=d=d.next;do m=n(m,b.action),b=b.next;while(b!==d);Mn(m,r.memoizedState)||(Bt=!0),r.memoizedState=m,r.baseQueue===null&&(r.baseState=m),a.lastRenderedState=m}return[m,u]}function W0(n,r,a){var u=Ae,d=Lt(),m=je;if(m){if(a===void 0)throw Error(s(407));a=a()}else a=r();var b=!Mn((nt||d).memoizedState,a);if(b&&(d.memoizedState=a,Bt=!0),d=d.queue,nh(J0.bind(null,u,d,n),[n]),d.getSnapshot!==r||b||jt!==null&&jt.memoizedState.tag&1){if(u.flags|=2048,Js(9,{destroy:void 0},Z0.bind(null,u,d,a,r),null),ct===null)throw Error(s(349));m||(qi&127)!==0||Q0(u,r,a)}return a}function Q0(n,r,a){n.flags|=16384,n={getSnapshot:r,value:a},r=Ae.updateQueue,r===null?(r=Cu(),Ae.updateQueue=r,r.stores=[n]):(a=r.stores,a===null?r.stores=[n]:a.push(n))}function Z0(n,r,a,u){r.value=a,r.getSnapshot=u,ev(r)&&tv(n)}function J0(n,r,a){return a(function(){ev(r)&&tv(n)})}function ev(n){var r=n.getSnapshot;n=n.value;try{var a=r();return!Mn(n,a)}catch{return!0}}function tv(n){var r=Wr(n,2);r!==null&&wn(r,n,2)}function eh(n){var r=hn();if(typeof n=="function"){var a=n;if(n=a(),ss){bi(!0);try{a()}finally{bi(!1)}}}return r.memoizedState=r.baseState=n,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ki,lastRenderedState:n},r}function nv(n,r,a,u){return n.baseState=a,Zd(n,nt,typeof u=="function"?u:Ki)}function KR(n,r,a,u,d){if(Au(n))throw Error(s(485));if(n=r.action,n!==null){var m={payload:d,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){m.listeners.push(b)}};P.T!==null?a(!0):m.isTransition=!1,u(m),a=r.pending,a===null?(m.next=r.pending=m,iv(r,m)):(m.next=a.next,r.pending=a.next=m)}}function iv(n,r){var a=r.action,u=r.payload,d=n.state;if(r.isTransition){var m=P.T,b={};P.T=b;try{var A=a(d,u),j=P.S;j!==null&&j(b,A),rv(n,r,A)}catch(H){th(n,r,H)}finally{m!==null&&b.types!==null&&(m.types=b.types),P.T=m}}else try{m=a(d,u),rv(n,r,m)}catch(H){th(n,r,H)}}function rv(n,r,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(u){sv(n,r,u)},function(u){return th(n,r,u)}):sv(n,r,a)}function sv(n,r,a){r.status="fulfilled",r.value=a,av(r),n.state=a,r=n.pending,r!==null&&(a=r.next,a===r?n.pending=null:(a=a.next,r.next=a,iv(n,a)))}function th(n,r,a){var u=n.pending;if(n.pending=null,u!==null){u=u.next;do r.status="rejected",r.reason=a,av(r),r=r.next;while(r!==u)}n.action=null}function av(n){n=n.listeners;for(var r=0;r<n.length;r++)(0,n[r])()}function ov(n,r){return r}function lv(n,r){if(je){var a=ct.formState;if(a!==null){e:{var u=Ae;if(je){if(dt){t:{for(var d=dt,m=Yn;d.nodeType!==8;){if(!m){d=null;break t}if(d=Wn(d.nextSibling),d===null){d=null;break t}}m=d.data,d=m==="F!"||m==="F"?d:null}if(d){dt=Wn(d.nextSibling),u=d.data==="F!";break e}}gr(u)}u=!1}u&&(r=a[0])}}return a=hn(),a.memoizedState=a.baseState=r,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ov,lastRenderedState:r},a.queue=u,a=Av.bind(null,Ae,u),u.dispatch=a,u=eh(!1),m=oh.bind(null,Ae,!1,u.queue),u=hn(),d={state:r,dispatch:null,action:n,pending:null},u.queue=d,a=KR.bind(null,Ae,d,m,a),d.dispatch=a,u.memoizedState=n,[r,a,!1]}function uv(n){var r=Lt();return cv(r,nt,n)}function cv(n,r,a){if(r=Zd(n,r,ov)[0],n=wu(Ki)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var u=bo(r)}catch(b){throw b===Ys?pu:b}else u=r;r=Lt();var d=r.queue,m=d.dispatch;return a!==r.memoizedState&&(Ae.flags|=2048,Js(9,{destroy:void 0},GR.bind(null,d,a),null)),[u,m,n]}function GR(n,r){n.action=r}function fv(n){var r=Lt(),a=nt;if(a!==null)return cv(r,a,n);Lt(),r=r.memoizedState,a=Lt();var u=a.queue.dispatch;return a.memoizedState=n,[r,u,!1]}function Js(n,r,a,u){return n={tag:n,create:a,deps:u,inst:r,next:null},r=Ae.updateQueue,r===null&&(r=Cu(),Ae.updateQueue=r),a=r.lastEffect,a===null?r.lastEffect=n.next=n:(u=a.next,a.next=n,n.next=u,r.lastEffect=n),n}function dv(){return Lt().memoizedState}function Eu(n,r,a,u){var d=hn();Ae.flags|=n,d.memoizedState=Js(1|r,{destroy:void 0},a,u===void 0?null:u)}function Ru(n,r,a,u){var d=Lt();u=u===void 0?null:u;var m=d.memoizedState.inst;nt!==null&&u!==null&&Kd(u,nt.memoizedState.deps)?d.memoizedState=Js(r,m,a,u):(Ae.flags|=n,d.memoizedState=Js(1|r,m,a,u))}function hv(n,r){Eu(8390656,8,n,r)}function nh(n,r){Ru(2048,8,n,r)}function YR(n){Ae.flags|=4;var r=Ae.updateQueue;if(r===null)r=Cu(),Ae.updateQueue=r,r.events=[n];else{var a=r.events;a===null?r.events=[n]:a.push(n)}}function pv(n){var r=Lt().memoizedState;return YR({ref:r,nextImpl:n}),function(){if((Ge&2)!==0)throw Error(s(440));return r.impl.apply(void 0,arguments)}}function mv(n,r){return Ru(4,2,n,r)}function gv(n,r){return Ru(4,4,n,r)}function yv(n,r){if(typeof r=="function"){n=n();var a=r(n);return function(){typeof a=="function"?a():r(null)}}if(r!=null)return n=n(),r.current=n,function(){r.current=null}}function vv(n,r,a){a=a!=null?a.concat([n]):null,Ru(4,4,yv.bind(null,r,n),a)}function ih(){}function bv(n,r){var a=Lt();r=r===void 0?null:r;var u=a.memoizedState;return r!==null&&Kd(r,u[1])?u[0]:(a.memoizedState=[n,r],n)}function Sv(n,r){var a=Lt();r=r===void 0?null:r;var u=a.memoizedState;if(r!==null&&Kd(r,u[1]))return u[0];if(u=n(),ss){bi(!0);try{n()}finally{bi(!1)}}return a.memoizedState=[u,r],u}function rh(n,r,a){return a===void 0||(qi&1073741824)!==0&&(ke&261930)===0?n.memoizedState=r:(n.memoizedState=a,n=xb(),Ae.lanes|=n,Er|=n,a)}function xv(n,r,a,u){return Mn(a,r)?a:Ws.current!==null?(n=rh(n,a,u),Mn(n,r)||(Bt=!0),n):(qi&42)===0||(qi&1073741824)!==0&&(ke&261930)===0?(Bt=!0,n.memoizedState=a):(n=xb(),Ae.lanes|=n,Er|=n,r)}function Cv(n,r,a,u,d){var m=I.p;I.p=m!==0&&8>m?m:8;var b=P.T,A={};P.T=A,oh(n,!1,r,a);try{var j=d(),H=P.S;if(H!==null&&H(A,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var te=IR(j,u);So(n,r,te,kn(n))}else So(n,r,u,kn(n))}catch(re){So(n,r,{then:function(){},status:"rejected",reason:re},kn())}finally{I.p=m,b!==null&&A.types!==null&&(b.types=A.types),P.T=b}}function XR(){}function sh(n,r,a,u){if(n.tag!==5)throw Error(s(476));var d=Tv(n).queue;Cv(n,d,r,ee,a===null?XR:function(){return wv(n),a(u)})}function Tv(n){var r=n.memoizedState;if(r!==null)return r;r={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ki,lastRenderedState:ee},next:null};var a={};return r.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ki,lastRenderedState:a},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function wv(n){var r=Tv(n);r.next===null&&(r=n.alternate.memoizedState),So(n,r.next.queue,{},kn())}function ah(){return en(jo)}function Ev(){return Lt().memoizedState}function Rv(){return Lt().memoizedState}function WR(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var a=kn();n=br(a);var u=Sr(r,n,a);u!==null&&(wn(u,r,a),mo(u,r,a)),r={cache:kd()},n.payload=r;return}r=r.return}}function QR(n,r,a){var u=kn();a={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Au(n)?Ov(r,a):(a=wd(n,r,a,u),a!==null&&(wn(a,n,u),Mv(a,r,u)))}function Av(n,r,a){var u=kn();So(n,r,a,u)}function So(n,r,a,u){var d={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Au(n))Ov(r,d);else{var m=n.alternate;if(n.lanes===0&&(m===null||m.lanes===0)&&(m=r.lastRenderedReducer,m!==null))try{var b=r.lastRenderedState,A=m(b,a);if(d.hasEagerState=!0,d.eagerState=A,Mn(A,b))return ou(n,r,d,0),ct===null&&au(),!1}catch{}finally{}if(a=wd(n,r,d,u),a!==null)return wn(a,n,u),Mv(a,r,u),!0}return!1}function oh(n,r,a,u){if(u={lane:2,revertLane:Uh(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Au(n)){if(r)throw Error(s(479))}else r=wd(n,a,u,2),r!==null&&wn(r,n,2)}function Au(n){var r=n.alternate;return n===Ae||r!==null&&r===Ae}function Ov(n,r){Qs=Su=!0;var a=n.pending;a===null?r.next=r:(r.next=a.next,a.next=r),n.pending=r}function Mv(n,r,a){if((a&4194048)!==0){var u=r.lanes;u&=n.pendingLanes,a|=u,r.lanes=a,zy(n,a)}}var xo={readContext:en,use:Tu,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useLayoutEffect:Tt,useInsertionEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useSyncExternalStore:Tt,useId:Tt,useHostTransitionStatus:Tt,useFormState:Tt,useActionState:Tt,useOptimistic:Tt,useMemoCache:Tt,useCacheRefresh:Tt};xo.useEffectEvent=Tt;var Dv={readContext:en,use:Tu,useCallback:function(n,r){return hn().memoizedState=[n,r===void 0?null:r],n},useContext:en,useEffect:hv,useImperativeHandle:function(n,r,a){a=a!=null?a.concat([n]):null,Eu(4194308,4,yv.bind(null,r,n),a)},useLayoutEffect:function(n,r){return Eu(4194308,4,n,r)},useInsertionEffect:function(n,r){Eu(4,2,n,r)},useMemo:function(n,r){var a=hn();r=r===void 0?null:r;var u=n();if(ss){bi(!0);try{n()}finally{bi(!1)}}return a.memoizedState=[u,r],u},useReducer:function(n,r,a){var u=hn();if(a!==void 0){var d=a(r);if(ss){bi(!0);try{a(r)}finally{bi(!1)}}}else d=r;return u.memoizedState=u.baseState=d,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:d},u.queue=n,n=n.dispatch=QR.bind(null,Ae,n),[u.memoizedState,n]},useRef:function(n){var r=hn();return n={current:n},r.memoizedState=n},useState:function(n){n=eh(n);var r=n.queue,a=Av.bind(null,Ae,r);return r.dispatch=a,[n.memoizedState,a]},useDebugValue:ih,useDeferredValue:function(n,r){var a=hn();return rh(a,n,r)},useTransition:function(){var n=eh(!1);return n=Cv.bind(null,Ae,n.queue,!0,!1),hn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,a){var u=Ae,d=hn();if(je){if(a===void 0)throw Error(s(407));a=a()}else{if(a=r(),ct===null)throw Error(s(349));(ke&127)!==0||Q0(u,r,a)}d.memoizedState=a;var m={value:a,getSnapshot:r};return d.queue=m,hv(J0.bind(null,u,m,n),[n]),u.flags|=2048,Js(9,{destroy:void 0},Z0.bind(null,u,m,a,r),null),a},useId:function(){var n=hn(),r=ct.identifierPrefix;if(je){var a=xi,u=Si;a=(u&~(1<<32-ln(u)-1)).toString(32)+a,r="_"+r+"R_"+a,a=xu++,0<a&&(r+="H"+a.toString(32)),r+="_"}else a=FR++,r="_"+r+"r_"+a.toString(32)+"_";return n.memoizedState=r},useHostTransitionStatus:ah,useFormState:lv,useActionState:lv,useOptimistic:function(n){var r=hn();r.memoizedState=r.baseState=n;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=a,r=oh.bind(null,Ae,!0,a),a.dispatch=r,[n,r]},useMemoCache:Qd,useCacheRefresh:function(){return hn().memoizedState=WR.bind(null,Ae)},useEffectEvent:function(n){var r=hn(),a={impl:n};return r.memoizedState=a,function(){if((Ge&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},lh={readContext:en,use:Tu,useCallback:bv,useContext:en,useEffect:nh,useImperativeHandle:vv,useInsertionEffect:mv,useLayoutEffect:gv,useMemo:Sv,useReducer:wu,useRef:dv,useState:function(){return wu(Ki)},useDebugValue:ih,useDeferredValue:function(n,r){var a=Lt();return xv(a,nt.memoizedState,n,r)},useTransition:function(){var n=wu(Ki)[0],r=Lt().memoizedState;return[typeof n=="boolean"?n:bo(n),r]},useSyncExternalStore:W0,useId:Ev,useHostTransitionStatus:ah,useFormState:uv,useActionState:uv,useOptimistic:function(n,r){var a=Lt();return nv(a,nt,n,r)},useMemoCache:Qd,useCacheRefresh:Rv};lh.useEffectEvent=pv;var _v={readContext:en,use:Tu,useCallback:bv,useContext:en,useEffect:nh,useImperativeHandle:vv,useInsertionEffect:mv,useLayoutEffect:gv,useMemo:Sv,useReducer:Jd,useRef:dv,useState:function(){return Jd(Ki)},useDebugValue:ih,useDeferredValue:function(n,r){var a=Lt();return nt===null?rh(a,n,r):xv(a,nt.memoizedState,n,r)},useTransition:function(){var n=Jd(Ki)[0],r=Lt().memoizedState;return[typeof n=="boolean"?n:bo(n),r]},useSyncExternalStore:W0,useId:Ev,useHostTransitionStatus:ah,useFormState:fv,useActionState:fv,useOptimistic:function(n,r){var a=Lt();return nt!==null?nv(a,nt,n,r):(a.baseState=n,[n,a.queue.dispatch])},useMemoCache:Qd,useCacheRefresh:Rv};_v.useEffectEvent=pv;function uh(n,r,a,u){r=n.memoizedState,a=a(u,r),a=a==null?r:y({},r,a),n.memoizedState=a,n.lanes===0&&(n.updateQueue.baseState=a)}var ch={enqueueSetState:function(n,r,a){n=n._reactInternals;var u=kn(),d=br(u);d.payload=r,a!=null&&(d.callback=a),r=Sr(n,d,u),r!==null&&(wn(r,n,u),mo(r,n,u))},enqueueReplaceState:function(n,r,a){n=n._reactInternals;var u=kn(),d=br(u);d.tag=1,d.payload=r,a!=null&&(d.callback=a),r=Sr(n,d,u),r!==null&&(wn(r,n,u),mo(r,n,u))},enqueueForceUpdate:function(n,r){n=n._reactInternals;var a=kn(),u=br(a);u.tag=2,r!=null&&(u.callback=r),r=Sr(n,u,a),r!==null&&(wn(r,n,a),mo(r,n,a))}};function Lv(n,r,a,u,d,m,b){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(u,m,b):r.prototype&&r.prototype.isPureReactComponent?!ao(a,u)||!ao(d,m):!0}function Nv(n,r,a,u){n=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(a,u),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(a,u),r.state!==n&&ch.enqueueReplaceState(r,r.state,null)}function as(n,r){var a=r;if("ref"in r){a={};for(var u in r)u!=="ref"&&(a[u]=r[u])}if(n=n.defaultProps){a===r&&(a=y({},a));for(var d in n)a[d]===void 0&&(a[d]=n[d])}return a}function zv(n){su(n)}function kv(n){console.error(n)}function Pv(n){su(n)}function Ou(n,r){try{var a=n.onUncaughtError;a(r.value,{componentStack:r.stack})}catch(u){setTimeout(function(){throw u})}}function jv(n,r,a){try{var u=n.onCaughtError;u(a.value,{componentStack:a.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function fh(n,r,a){return a=br(a),a.tag=3,a.payload={element:null},a.callback=function(){Ou(n,r)},a}function Bv(n){return n=br(n),n.tag=3,n}function Uv(n,r,a,u){var d=a.type.getDerivedStateFromError;if(typeof d=="function"){var m=u.value;n.payload=function(){return d(m)},n.callback=function(){jv(r,a,u)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(n.callback=function(){jv(r,a,u),typeof d!="function"&&(Rr===null?Rr=new Set([this]):Rr.add(this));var A=u.stack;this.componentDidCatch(u.value,{componentStack:A!==null?A:""})})}function ZR(n,r,a,u,d){if(a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(r=a.alternate,r!==null&&qs(r,a,d,!0),a=_n.current,a!==null){switch(a.tag){case 31:case 13:return Xn===null?Vu():a.alternate===null&&wt===0&&(wt=3),a.flags&=-257,a.flags|=65536,a.lanes=d,u===mu?a.flags|=16384:(r=a.updateQueue,r===null?a.updateQueue=new Set([u]):r.add(u),Ph(n,u,d)),!1;case 22:return a.flags|=65536,u===mu?a.flags|=16384:(r=a.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([u])},a.updateQueue=r):(a=r.retryQueue,a===null?r.retryQueue=new Set([u]):a.add(u)),Ph(n,u,d)),!1}throw Error(s(435,a.tag))}return Ph(n,u,d),Vu(),!1}if(je)return r=_n.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=d,u!==Dd&&(n=Error(s(422),{cause:u}),uo(qn(n,a)))):(u!==Dd&&(r=Error(s(423),{cause:u}),uo(qn(r,a))),n=n.current.alternate,n.flags|=65536,d&=-d,n.lanes|=d,u=qn(u,a),d=fh(n.stateNode,u,d),$d(n,d),wt!==4&&(wt=2)),!1;var m=Error(s(520),{cause:u});if(m=qn(m,a),Mo===null?Mo=[m]:Mo.push(m),wt!==4&&(wt=2),r===null)return!0;u=qn(u,a),a=r;do{switch(a.tag){case 3:return a.flags|=65536,n=d&-d,a.lanes|=n,n=fh(a.stateNode,u,n),$d(a,n),!1;case 1:if(r=a.type,m=a.stateNode,(a.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Rr===null||!Rr.has(m))))return a.flags|=65536,d&=-d,a.lanes|=d,d=Bv(d),Uv(d,n,a,u),$d(a,d),!1}a=a.return}while(a!==null);return!1}var dh=Error(s(461)),Bt=!1;function tn(n,r,a,u){r.child=n===null?I0(r,null,a,u):rs(r,n.child,a,u)}function Vv(n,r,a,u,d){a=a.render;var m=r.ref;if("ref"in u){var b={};for(var A in u)A!=="ref"&&(b[A]=u[A])}else b=u;return es(r),u=Gd(n,r,a,b,m,d),A=Yd(),n!==null&&!Bt?(Xd(n,r,d),Gi(n,r,d)):(je&&A&&Od(r),r.flags|=1,tn(n,r,u,d),r.child)}function $v(n,r,a,u,d){if(n===null){var m=a.type;return typeof m=="function"&&!Ed(m)&&m.defaultProps===void 0&&a.compare===null?(r.tag=15,r.type=m,Hv(n,r,m,u,d)):(n=uu(a.type,null,u,r,r.mode,d),n.ref=r.ref,n.return=r,r.child=n)}if(m=n.child,!Sh(n,d)){var b=m.memoizedProps;if(a=a.compare,a=a!==null?a:ao,a(b,u)&&n.ref===r.ref)return Gi(n,r,d)}return r.flags|=1,n=$i(m,u),n.ref=r.ref,n.return=r,r.child=n}function Hv(n,r,a,u,d){if(n!==null){var m=n.memoizedProps;if(ao(m,u)&&n.ref===r.ref)if(Bt=!1,r.pendingProps=u=m,Sh(n,d))(n.flags&131072)!==0&&(Bt=!0);else return r.lanes=n.lanes,Gi(n,r,d)}return hh(n,r,a,u,d)}function Iv(n,r,a,u){var d=u.children,m=n!==null?n.memoizedState:null;if(n===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((r.flags&128)!==0){if(m=m!==null?m.baseLanes|a:a,n!==null){for(u=r.child=n.child,d=0;u!==null;)d=d|u.lanes|u.childLanes,u=u.sibling;u=d&~m}else u=0,r.child=null;return Fv(n,r,m,a,u)}if((a&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},n!==null&&hu(r,m!==null?m.cachePool:null),m!==null?K0(r,m):Id(),G0(r);else return u=r.lanes=536870912,Fv(n,r,m!==null?m.baseLanes|a:a,a,u)}else m!==null?(hu(r,m.cachePool),K0(r,m),Cr(),r.memoizedState=null):(n!==null&&hu(r,null),Id(),Cr());return tn(n,r,d,a),r.child}function Co(n,r){return n!==null&&n.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function Fv(n,r,a,u,d){var m=jd();return m=m===null?null:{parent:Pt._currentValue,pool:m},r.memoizedState={baseLanes:a,cachePool:m},n!==null&&hu(r,null),Id(),G0(r),n!==null&&qs(n,r,u,!0),r.childLanes=d,null}function Mu(n,r){return r=_u({mode:r.mode,children:r.children},n.mode),r.ref=n.ref,n.child=r,r.return=n,r}function qv(n,r,a){return rs(r,n.child,null,a),n=Mu(r,r.pendingProps),n.flags|=2,Ln(r),r.memoizedState=null,n}function JR(n,r,a){var u=r.pendingProps,d=(r.flags&128)!==0;if(r.flags&=-129,n===null){if(je){if(u.mode==="hidden")return n=Mu(r,u),r.lanes=536870912,Co(null,n);if(qd(r),(n=dt)?(n=i1(n,Yn),n=n!==null&&n.data==="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:pr!==null?{id:Si,overflow:xi}:null,retryLane:536870912,hydrationErrors:null},a=O0(n),a.return=r,r.child=a,Jt=r,dt=null)):n=null,n===null)throw gr(r);return r.lanes=536870912,null}return Mu(r,u)}var m=n.memoizedState;if(m!==null){var b=m.dehydrated;if(qd(r),d)if(r.flags&256)r.flags&=-257,r=qv(n,r,a);else if(r.memoizedState!==null)r.child=n.child,r.flags|=128,r=null;else throw Error(s(558));else if(Bt||qs(n,r,a,!1),d=(a&n.childLanes)!==0,Bt||d){if(u=ct,u!==null&&(b=ky(u,a),b!==0&&b!==m.retryLane))throw m.retryLane=b,Wr(n,b),wn(u,n,b),dh;Vu(),r=qv(n,r,a)}else n=m.treeContext,dt=Wn(b.nextSibling),Jt=r,je=!0,mr=null,Yn=!1,n!==null&&_0(r,n),r=Mu(r,u),r.flags|=4096;return r}return n=$i(n.child,{mode:u.mode,children:u.children}),n.ref=r.ref,r.child=n,n.return=r,n}function Du(n,r){var a=r.ref;if(a===null)n!==null&&n.ref!==null&&(r.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(n===null||n.ref!==a)&&(r.flags|=4194816)}}function hh(n,r,a,u,d){return es(r),a=Gd(n,r,a,u,void 0,d),u=Yd(),n!==null&&!Bt?(Xd(n,r,d),Gi(n,r,d)):(je&&u&&Od(r),r.flags|=1,tn(n,r,a,d),r.child)}function Kv(n,r,a,u,d,m){return es(r),r.updateQueue=null,a=X0(r,u,a,d),Y0(n),u=Yd(),n!==null&&!Bt?(Xd(n,r,m),Gi(n,r,m)):(je&&u&&Od(r),r.flags|=1,tn(n,r,a,m),r.child)}function Gv(n,r,a,u,d){if(es(r),r.stateNode===null){var m=$s,b=a.contextType;typeof b=="object"&&b!==null&&(m=en(b)),m=new a(u,m),r.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=ch,r.stateNode=m,m._reactInternals=r,m=r.stateNode,m.props=u,m.state=r.memoizedState,m.refs={},Ud(r),b=a.contextType,m.context=typeof b=="object"&&b!==null?en(b):$s,m.state=r.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(uh(r,a,b,u),m.state=r.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(b=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),b!==m.state&&ch.enqueueReplaceState(m,m.state,null),yo(r,u,m,d),go(),m.state=r.memoizedState),typeof m.componentDidMount=="function"&&(r.flags|=4194308),u=!0}else if(n===null){m=r.stateNode;var A=r.memoizedProps,j=as(a,A);m.props=j;var H=m.context,te=a.contextType;b=$s,typeof te=="object"&&te!==null&&(b=en(te));var re=a.getDerivedStateFromProps;te=typeof re=="function"||typeof m.getSnapshotBeforeUpdate=="function",A=r.pendingProps!==A,te||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(A||H!==b)&&Nv(r,m,u,b),vr=!1;var K=r.memoizedState;m.state=K,yo(r,u,m,d),go(),H=r.memoizedState,A||K!==H||vr?(typeof re=="function"&&(uh(r,a,re,u),H=r.memoizedState),(j=vr||Lv(r,a,j,u,K,H,b))?(te||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(r.flags|=4194308)):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=u,r.memoizedState=H),m.props=u,m.state=H,m.context=b,u=j):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),u=!1)}else{m=r.stateNode,Vd(n,r),b=r.memoizedProps,te=as(a,b),m.props=te,re=r.pendingProps,K=m.context,H=a.contextType,j=$s,typeof H=="object"&&H!==null&&(j=en(H)),A=a.getDerivedStateFromProps,(H=typeof A=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(b!==re||K!==j)&&Nv(r,m,u,j),vr=!1,K=r.memoizedState,m.state=K,yo(r,u,m,d),go();var W=r.memoizedState;b!==re||K!==W||vr||n!==null&&n.dependencies!==null&&fu(n.dependencies)?(typeof A=="function"&&(uh(r,a,A,u),W=r.memoizedState),(te=vr||Lv(r,a,te,u,K,W,j)||n!==null&&n.dependencies!==null&&fu(n.dependencies))?(H||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(u,W,j),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(u,W,j)),typeof m.componentDidUpdate=="function"&&(r.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof m.componentDidUpdate!="function"||b===n.memoizedProps&&K===n.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||b===n.memoizedProps&&K===n.memoizedState||(r.flags|=1024),r.memoizedProps=u,r.memoizedState=W),m.props=u,m.state=W,m.context=j,u=te):(typeof m.componentDidUpdate!="function"||b===n.memoizedProps&&K===n.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||b===n.memoizedProps&&K===n.memoizedState||(r.flags|=1024),u=!1)}return m=u,Du(n,r),u=(r.flags&128)!==0,m||u?(m=r.stateNode,a=u&&typeof a.getDerivedStateFromError!="function"?null:m.render(),r.flags|=1,n!==null&&u?(r.child=rs(r,n.child,null,d),r.child=rs(r,null,a,d)):tn(n,r,a,d),r.memoizedState=m.state,n=r.child):n=Gi(n,r,d),n}function Yv(n,r,a,u){return Zr(),r.flags|=256,tn(n,r,a,u),r.child}var ph={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mh(n){return{baseLanes:n,cachePool:j0()}}function gh(n,r,a){return n=n!==null?n.childLanes&~a:0,r&&(n|=zn),n}function Xv(n,r,a){var u=r.pendingProps,d=!1,m=(r.flags&128)!==0,b;if((b=m)||(b=n!==null&&n.memoizedState===null?!1:(_t.current&2)!==0),b&&(d=!0,r.flags&=-129),b=(r.flags&32)!==0,r.flags&=-33,n===null){if(je){if(d?xr(r):Cr(),(n=dt)?(n=i1(n,Yn),n=n!==null&&n.data!=="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:pr!==null?{id:Si,overflow:xi}:null,retryLane:536870912,hydrationErrors:null},a=O0(n),a.return=r,r.child=a,Jt=r,dt=null)):n=null,n===null)throw gr(r);return Zh(n)?r.lanes=32:r.lanes=536870912,null}var A=u.children;return u=u.fallback,d?(Cr(),d=r.mode,A=_u({mode:"hidden",children:A},d),u=Qr(u,d,a,null),A.return=r,u.return=r,A.sibling=u,r.child=A,u=r.child,u.memoizedState=mh(a),u.childLanes=gh(n,b,a),r.memoizedState=ph,Co(null,u)):(xr(r),yh(r,A))}var j=n.memoizedState;if(j!==null&&(A=j.dehydrated,A!==null)){if(m)r.flags&256?(xr(r),r.flags&=-257,r=vh(n,r,a)):r.memoizedState!==null?(Cr(),r.child=n.child,r.flags|=128,r=null):(Cr(),A=u.fallback,d=r.mode,u=_u({mode:"visible",children:u.children},d),A=Qr(A,d,a,null),A.flags|=2,u.return=r,A.return=r,u.sibling=A,r.child=u,rs(r,n.child,null,a),u=r.child,u.memoizedState=mh(a),u.childLanes=gh(n,b,a),r.memoizedState=ph,r=Co(null,u));else if(xr(r),Zh(A)){if(b=A.nextSibling&&A.nextSibling.dataset,b)var H=b.dgst;b=H,u=Error(s(419)),u.stack="",u.digest=b,uo({value:u,source:null,stack:null}),r=vh(n,r,a)}else if(Bt||qs(n,r,a,!1),b=(a&n.childLanes)!==0,Bt||b){if(b=ct,b!==null&&(u=ky(b,a),u!==0&&u!==j.retryLane))throw j.retryLane=u,Wr(n,u),wn(b,n,u),dh;Qh(A)||Vu(),r=vh(n,r,a)}else Qh(A)?(r.flags|=192,r.child=n.child,r=null):(n=j.treeContext,dt=Wn(A.nextSibling),Jt=r,je=!0,mr=null,Yn=!1,n!==null&&_0(r,n),r=yh(r,u.children),r.flags|=4096);return r}return d?(Cr(),A=u.fallback,d=r.mode,j=n.child,H=j.sibling,u=$i(j,{mode:"hidden",children:u.children}),u.subtreeFlags=j.subtreeFlags&65011712,H!==null?A=$i(H,A):(A=Qr(A,d,a,null),A.flags|=2),A.return=r,u.return=r,u.sibling=A,r.child=u,Co(null,u),u=r.child,A=n.child.memoizedState,A===null?A=mh(a):(d=A.cachePool,d!==null?(j=Pt._currentValue,d=d.parent!==j?{parent:j,pool:j}:d):d=j0(),A={baseLanes:A.baseLanes|a,cachePool:d}),u.memoizedState=A,u.childLanes=gh(n,b,a),r.memoizedState=ph,Co(n.child,u)):(xr(r),a=n.child,n=a.sibling,a=$i(a,{mode:"visible",children:u.children}),a.return=r,a.sibling=null,n!==null&&(b=r.deletions,b===null?(r.deletions=[n],r.flags|=16):b.push(n)),r.child=a,r.memoizedState=null,a)}function yh(n,r){return r=_u({mode:"visible",children:r},n.mode),r.return=n,n.child=r}function _u(n,r){return n=Dn(22,n,null,r),n.lanes=0,n}function vh(n,r,a){return rs(r,n.child,null,a),n=yh(r,r.pendingProps.children),n.flags|=2,r.memoizedState=null,n}function Wv(n,r,a){n.lanes|=r;var u=n.alternate;u!==null&&(u.lanes|=r),Nd(n.return,r,a)}function bh(n,r,a,u,d,m){var b=n.memoizedState;b===null?n.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:u,tail:a,tailMode:d,treeForkCount:m}:(b.isBackwards=r,b.rendering=null,b.renderingStartTime=0,b.last=u,b.tail=a,b.tailMode=d,b.treeForkCount=m)}function Qv(n,r,a){var u=r.pendingProps,d=u.revealOrder,m=u.tail;u=u.children;var b=_t.current,A=(b&2)!==0;if(A?(b=b&1|2,r.flags|=128):b&=1,ae(_t,b),tn(n,r,u,a),u=je?lo:0,!A&&n!==null&&(n.flags&128)!==0)e:for(n=r.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Wv(n,a,r);else if(n.tag===19)Wv(n,a,r);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===r)break e;for(;n.sibling===null;){if(n.return===null||n.return===r)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(d){case"forwards":for(a=r.child,d=null;a!==null;)n=a.alternate,n!==null&&bu(n)===null&&(d=a),a=a.sibling;a=d,a===null?(d=r.child,r.child=null):(d=a.sibling,a.sibling=null),bh(r,!1,d,a,m,u);break;case"backwards":case"unstable_legacy-backwards":for(a=null,d=r.child,r.child=null;d!==null;){if(n=d.alternate,n!==null&&bu(n)===null){r.child=d;break}n=d.sibling,d.sibling=a,a=d,d=n}bh(r,!0,a,null,m,u);break;case"together":bh(r,!1,null,null,void 0,u);break;default:r.memoizedState=null}return r.child}function Gi(n,r,a){if(n!==null&&(r.dependencies=n.dependencies),Er|=r.lanes,(a&r.childLanes)===0)if(n!==null){if(qs(n,r,a,!1),(a&r.childLanes)===0)return null}else return null;if(n!==null&&r.child!==n.child)throw Error(s(153));if(r.child!==null){for(n=r.child,a=$i(n,n.pendingProps),r.child=a,a.return=r;n.sibling!==null;)n=n.sibling,a=a.sibling=$i(n,n.pendingProps),a.return=r;a.sibling=null}return r.child}function Sh(n,r){return(n.lanes&r)!==0?!0:(n=n.dependencies,!!(n!==null&&fu(n)))}function eA(n,r,a){switch(r.tag){case 3:Ue(r,r.stateNode.containerInfo),yr(r,Pt,n.memoizedState.cache),Zr();break;case 27:case 5:Te(r);break;case 4:Ue(r,r.stateNode.containerInfo);break;case 10:yr(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,qd(r),null;break;case 13:var u=r.memoizedState;if(u!==null)return u.dehydrated!==null?(xr(r),r.flags|=128,null):(a&r.child.childLanes)!==0?Xv(n,r,a):(xr(r),n=Gi(n,r,a),n!==null?n.sibling:null);xr(r);break;case 19:var d=(n.flags&128)!==0;if(u=(a&r.childLanes)!==0,u||(qs(n,r,a,!1),u=(a&r.childLanes)!==0),d){if(u)return Qv(n,r,a);r.flags|=128}if(d=r.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),ae(_t,_t.current),u)break;return null;case 22:return r.lanes=0,Iv(n,r,a,r.pendingProps);case 24:yr(r,Pt,n.memoizedState.cache)}return Gi(n,r,a)}function Zv(n,r,a){if(n!==null)if(n.memoizedProps!==r.pendingProps)Bt=!0;else{if(!Sh(n,a)&&(r.flags&128)===0)return Bt=!1,eA(n,r,a);Bt=(n.flags&131072)!==0}else Bt=!1,je&&(r.flags&1048576)!==0&&D0(r,lo,r.index);switch(r.lanes=0,r.tag){case 16:e:{var u=r.pendingProps;if(n=ns(r.elementType),r.type=n,typeof n=="function")Ed(n)?(u=as(n,u),r.tag=1,r=Gv(null,r,n,u,a)):(r.tag=0,r=hh(null,r,n,u,a));else{if(n!=null){var d=n.$$typeof;if(d===w){r.tag=11,r=Vv(null,r,n,u,a);break e}else if(d===k){r.tag=14,r=$v(null,r,n,u,a);break e}}throw r=F(n)||n,Error(s(306,r,""))}}return r;case 0:return hh(n,r,r.type,r.pendingProps,a);case 1:return u=r.type,d=as(u,r.pendingProps),Gv(n,r,u,d,a);case 3:e:{if(Ue(r,r.stateNode.containerInfo),n===null)throw Error(s(387));u=r.pendingProps;var m=r.memoizedState;d=m.element,Vd(n,r),yo(r,u,null,a);var b=r.memoizedState;if(u=b.cache,yr(r,Pt,u),u!==m.cache&&zd(r,[Pt],a,!0),go(),u=b.element,m.isDehydrated)if(m={element:u,isDehydrated:!1,cache:b.cache},r.updateQueue.baseState=m,r.memoizedState=m,r.flags&256){r=Yv(n,r,u,a);break e}else if(u!==d){d=qn(Error(s(424)),r),uo(d),r=Yv(n,r,u,a);break e}else{switch(n=r.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(dt=Wn(n.firstChild),Jt=r,je=!0,mr=null,Yn=!0,a=I0(r,null,u,a),r.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Zr(),u===d){r=Gi(n,r,a);break e}tn(n,r,u,a)}r=r.child}return r;case 26:return Du(n,r),n===null?(a=u1(r.type,null,r.pendingProps,null))?r.memoizedState=a:je||(a=r.type,n=r.pendingProps,u=Gu(pe.current).createElement(a),u[Zt]=r,u[vn]=n,nn(u,a,n),Yt(u),r.stateNode=u):r.memoizedState=u1(r.type,n.memoizedProps,r.pendingProps,n.memoizedState),null;case 27:return Te(r),n===null&&je&&(u=r.stateNode=a1(r.type,r.pendingProps,pe.current),Jt=r,Yn=!0,d=dt,Dr(r.type)?(Jh=d,dt=Wn(u.firstChild)):dt=d),tn(n,r,r.pendingProps.children,a),Du(n,r),n===null&&(r.flags|=4194304),r.child;case 5:return n===null&&je&&((d=u=dt)&&(u=DA(u,r.type,r.pendingProps,Yn),u!==null?(r.stateNode=u,Jt=r,dt=Wn(u.firstChild),Yn=!1,d=!0):d=!1),d||gr(r)),Te(r),d=r.type,m=r.pendingProps,b=n!==null?n.memoizedProps:null,u=m.children,Yh(d,m)?u=null:b!==null&&Yh(d,b)&&(r.flags|=32),r.memoizedState!==null&&(d=Gd(n,r,qR,null,null,a),jo._currentValue=d),Du(n,r),tn(n,r,u,a),r.child;case 6:return n===null&&je&&((n=a=dt)&&(a=_A(a,r.pendingProps,Yn),a!==null?(r.stateNode=a,Jt=r,dt=null,n=!0):n=!1),n||gr(r)),null;case 13:return Xv(n,r,a);case 4:return Ue(r,r.stateNode.containerInfo),u=r.pendingProps,n===null?r.child=rs(r,null,u,a):tn(n,r,u,a),r.child;case 11:return Vv(n,r,r.type,r.pendingProps,a);case 7:return tn(n,r,r.pendingProps,a),r.child;case 8:return tn(n,r,r.pendingProps.children,a),r.child;case 12:return tn(n,r,r.pendingProps.children,a),r.child;case 10:return u=r.pendingProps,yr(r,r.type,u.value),tn(n,r,u.children,a),r.child;case 9:return d=r.type._context,u=r.pendingProps.children,es(r),d=en(d),u=u(d),r.flags|=1,tn(n,r,u,a),r.child;case 14:return $v(n,r,r.type,r.pendingProps,a);case 15:return Hv(n,r,r.type,r.pendingProps,a);case 19:return Qv(n,r,a);case 31:return JR(n,r,a);case 22:return Iv(n,r,a,r.pendingProps);case 24:return es(r),u=en(Pt),n===null?(d=jd(),d===null&&(d=ct,m=kd(),d.pooledCache=m,m.refCount++,m!==null&&(d.pooledCacheLanes|=a),d=m),r.memoizedState={parent:u,cache:d},Ud(r),yr(r,Pt,d)):((n.lanes&a)!==0&&(Vd(n,r),yo(r,null,null,a),go()),d=n.memoizedState,m=r.memoizedState,d.parent!==u?(d={parent:u,cache:u},r.memoizedState=d,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=d),yr(r,Pt,u)):(u=m.cache,yr(r,Pt,u),u!==d.cache&&zd(r,[Pt],a,!0))),tn(n,r,r.pendingProps.children,a),r.child;case 29:throw r.pendingProps}throw Error(s(156,r.tag))}function Yi(n){n.flags|=4}function xh(n,r,a,u,d){if((r=(n.mode&32)!==0)&&(r=!1),r){if(n.flags|=16777216,(d&335544128)===d)if(n.stateNode.complete)n.flags|=8192;else if(Eb())n.flags|=8192;else throw is=mu,Bd}else n.flags&=-16777217}function Jv(n,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!p1(r))if(Eb())n.flags|=8192;else throw is=mu,Bd}function Lu(n,r){r!==null&&(n.flags|=4),n.flags&16384&&(r=n.tag!==22?Ly():536870912,n.lanes|=r,ia|=r)}function To(n,r){if(!je)switch(n.tailMode){case"hidden":r=n.tail;for(var a=null;r!==null;)r.alternate!==null&&(a=r),r=r.sibling;a===null?n.tail=null:a.sibling=null;break;case"collapsed":a=n.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?r||n.tail===null?n.tail=null:n.tail.sibling=null:u.sibling=null}}function ht(n){var r=n.alternate!==null&&n.alternate.child===n.child,a=0,u=0;if(r)for(var d=n.child;d!==null;)a|=d.lanes|d.childLanes,u|=d.subtreeFlags&65011712,u|=d.flags&65011712,d.return=n,d=d.sibling;else for(d=n.child;d!==null;)a|=d.lanes|d.childLanes,u|=d.subtreeFlags,u|=d.flags,d.return=n,d=d.sibling;return n.subtreeFlags|=u,n.childLanes=a,r}function tA(n,r,a){var u=r.pendingProps;switch(Md(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(r),null;case 1:return ht(r),null;case 3:return a=r.stateNode,u=null,n!==null&&(u=n.memoizedState.cache),r.memoizedState.cache!==u&&(r.flags|=2048),Fi(Pt),Ce(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(n===null||n.child===null)&&(Fs(r)?Yi(r):n===null||n.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,_d())),ht(r),null;case 26:var d=r.type,m=r.memoizedState;return n===null?(Yi(r),m!==null?(ht(r),Jv(r,m)):(ht(r),xh(r,d,null,u,a))):m?m!==n.memoizedState?(Yi(r),ht(r),Jv(r,m)):(ht(r),r.flags&=-16777217):(n=n.memoizedProps,n!==u&&Yi(r),ht(r),xh(r,d,n,u,a)),null;case 27:if(De(r),a=pe.current,d=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==u&&Yi(r);else{if(!u){if(r.stateNode===null)throw Error(s(166));return ht(r),null}n=oe.current,Fs(r)?L0(r):(n=a1(d,u,a),r.stateNode=n,Yi(r))}return ht(r),null;case 5:if(De(r),d=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==u&&Yi(r);else{if(!u){if(r.stateNode===null)throw Error(s(166));return ht(r),null}if(m=oe.current,Fs(r))L0(r);else{var b=Gu(pe.current);switch(m){case 1:m=b.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:m=b.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":m=b.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":m=b.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":m=b.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof u.is=="string"?b.createElement("select",{is:u.is}):b.createElement("select"),u.multiple?m.multiple=!0:u.size&&(m.size=u.size);break;default:m=typeof u.is=="string"?b.createElement(d,{is:u.is}):b.createElement(d)}}m[Zt]=r,m[vn]=u;e:for(b=r.child;b!==null;){if(b.tag===5||b.tag===6)m.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===r)break e;for(;b.sibling===null;){if(b.return===null||b.return===r)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}r.stateNode=m;e:switch(nn(m,d,u),d){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&Yi(r)}}return ht(r),xh(r,r.type,n===null?null:n.memoizedProps,r.pendingProps,a),null;case 6:if(n&&r.stateNode!=null)n.memoizedProps!==u&&Yi(r);else{if(typeof u!="string"&&r.stateNode===null)throw Error(s(166));if(n=pe.current,Fs(r)){if(n=r.stateNode,a=r.memoizedProps,u=null,d=Jt,d!==null)switch(d.tag){case 27:case 5:u=d.memoizedProps}n[Zt]=r,n=!!(n.nodeValue===a||u!==null&&u.suppressHydrationWarning===!0||Xb(n.nodeValue,a)),n||gr(r,!0)}else n=Gu(n).createTextNode(u),n[Zt]=r,r.stateNode=n}return ht(r),null;case 31:if(a=r.memoizedState,n===null||n.memoizedState!==null){if(u=Fs(r),a!==null){if(n===null){if(!u)throw Error(s(318));if(n=r.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(557));n[Zt]=r}else Zr(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;ht(r),n=!1}else a=_d(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=a),n=!0;if(!n)return r.flags&256?(Ln(r),r):(Ln(r),null);if((r.flags&128)!==0)throw Error(s(558))}return ht(r),null;case 13:if(u=r.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(d=Fs(r),u!==null&&u.dehydrated!==null){if(n===null){if(!d)throw Error(s(318));if(d=r.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(s(317));d[Zt]=r}else Zr(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;ht(r),d=!1}else d=_d(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=d),d=!0;if(!d)return r.flags&256?(Ln(r),r):(Ln(r),null)}return Ln(r),(r.flags&128)!==0?(r.lanes=a,r):(a=u!==null,n=n!==null&&n.memoizedState!==null,a&&(u=r.child,d=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(d=u.alternate.memoizedState.cachePool.pool),m=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(m=u.memoizedState.cachePool.pool),m!==d&&(u.flags|=2048)),a!==n&&a&&(r.child.flags|=8192),Lu(r,r.updateQueue),ht(r),null);case 4:return Ce(),n===null&&Ih(r.stateNode.containerInfo),ht(r),null;case 10:return Fi(r.type),ht(r),null;case 19:if(q(_t),u=r.memoizedState,u===null)return ht(r),null;if(d=(r.flags&128)!==0,m=u.rendering,m===null)if(d)To(u,!1);else{if(wt!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(m=bu(n),m!==null){for(r.flags|=128,To(u,!1),n=m.updateQueue,r.updateQueue=n,Lu(r,n),r.subtreeFlags=0,n=a,a=r.child;a!==null;)A0(a,n),a=a.sibling;return ae(_t,_t.current&1|2),je&&Hi(r,u.treeForkCount),r.child}n=n.sibling}u.tail!==null&&ze()>ju&&(r.flags|=128,d=!0,To(u,!1),r.lanes=4194304)}else{if(!d)if(n=bu(m),n!==null){if(r.flags|=128,d=!0,n=n.updateQueue,r.updateQueue=n,Lu(r,n),To(u,!0),u.tail===null&&u.tailMode==="hidden"&&!m.alternate&&!je)return ht(r),null}else 2*ze()-u.renderingStartTime>ju&&a!==536870912&&(r.flags|=128,d=!0,To(u,!1),r.lanes=4194304);u.isBackwards?(m.sibling=r.child,r.child=m):(n=u.last,n!==null?n.sibling=m:r.child=m,u.last=m)}return u.tail!==null?(n=u.tail,u.rendering=n,u.tail=n.sibling,u.renderingStartTime=ze(),n.sibling=null,a=_t.current,ae(_t,d?a&1|2:a&1),je&&Hi(r,u.treeForkCount),n):(ht(r),null);case 22:case 23:return Ln(r),Fd(),u=r.memoizedState!==null,n!==null?n.memoizedState!==null!==u&&(r.flags|=8192):u&&(r.flags|=8192),u?(a&536870912)!==0&&(r.flags&128)===0&&(ht(r),r.subtreeFlags&6&&(r.flags|=8192)):ht(r),a=r.updateQueue,a!==null&&Lu(r,a.retryQueue),a=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(a=n.memoizedState.cachePool.pool),u=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==a&&(r.flags|=2048),n!==null&&q(ts),null;case 24:return a=null,n!==null&&(a=n.memoizedState.cache),r.memoizedState.cache!==a&&(r.flags|=2048),Fi(Pt),ht(r),null;case 25:return null;case 30:return null}throw Error(s(156,r.tag))}function nA(n,r){switch(Md(r),r.tag){case 1:return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return Fi(Pt),Ce(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 26:case 27:case 5:return De(r),null;case 31:if(r.memoizedState!==null){if(Ln(r),r.alternate===null)throw Error(s(340));Zr()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 13:if(Ln(r),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(s(340));Zr()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return q(_t),null;case 4:return Ce(),null;case 10:return Fi(r.type),null;case 22:case 23:return Ln(r),Fd(),n!==null&&q(ts),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 24:return Fi(Pt),null;case 25:return null;default:return null}}function eb(n,r){switch(Md(r),r.tag){case 3:Fi(Pt),Ce();break;case 26:case 27:case 5:De(r);break;case 4:Ce();break;case 31:r.memoizedState!==null&&Ln(r);break;case 13:Ln(r);break;case 19:q(_t);break;case 10:Fi(r.type);break;case 22:case 23:Ln(r),Fd(),n!==null&&q(ts);break;case 24:Fi(Pt)}}function wo(n,r){try{var a=r.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var d=u.next;a=d;do{if((a.tag&n)===n){u=void 0;var m=a.create,b=a.inst;u=m(),b.destroy=u}a=a.next}while(a!==d)}}catch(A){Je(r,r.return,A)}}function Tr(n,r,a){try{var u=r.updateQueue,d=u!==null?u.lastEffect:null;if(d!==null){var m=d.next;u=m;do{if((u.tag&n)===n){var b=u.inst,A=b.destroy;if(A!==void 0){b.destroy=void 0,d=r;var j=a,H=A;try{H()}catch(te){Je(d,j,te)}}}u=u.next}while(u!==m)}}catch(te){Je(r,r.return,te)}}function tb(n){var r=n.updateQueue;if(r!==null){var a=n.stateNode;try{q0(r,a)}catch(u){Je(n,n.return,u)}}}function nb(n,r,a){a.props=as(n.type,n.memoizedProps),a.state=n.memoizedState;try{a.componentWillUnmount()}catch(u){Je(n,r,u)}}function Eo(n,r){try{var a=n.ref;if(a!==null){switch(n.tag){case 26:case 27:case 5:var u=n.stateNode;break;case 30:u=n.stateNode;break;default:u=n.stateNode}typeof a=="function"?n.refCleanup=a(u):a.current=u}}catch(d){Je(n,r,d)}}function Ci(n,r){var a=n.ref,u=n.refCleanup;if(a!==null)if(typeof u=="function")try{u()}catch(d){Je(n,r,d)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(d){Je(n,r,d)}else a.current=null}function ib(n){var r=n.type,a=n.memoizedProps,u=n.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":a.autoFocus&&u.focus();break e;case"img":a.src?u.src=a.src:a.srcSet&&(u.srcset=a.srcSet)}}catch(d){Je(n,n.return,d)}}function Ch(n,r,a){try{var u=n.stateNode;wA(u,n.type,a,r),u[vn]=r}catch(d){Je(n,n.return,d)}}function rb(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Dr(n.type)||n.tag===4}function Th(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||rb(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Dr(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function wh(n,r,a){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(n,r):(r=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,r.appendChild(n),a=a._reactRootContainer,a!=null||r.onclick!==null||(r.onclick=Ui));else if(u!==4&&(u===27&&Dr(n.type)&&(a=n.stateNode,r=null),n=n.child,n!==null))for(wh(n,r,a),n=n.sibling;n!==null;)wh(n,r,a),n=n.sibling}function Nu(n,r,a){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?a.insertBefore(n,r):a.appendChild(n);else if(u!==4&&(u===27&&Dr(n.type)&&(a=n.stateNode),n=n.child,n!==null))for(Nu(n,r,a),n=n.sibling;n!==null;)Nu(n,r,a),n=n.sibling}function sb(n){var r=n.stateNode,a=n.memoizedProps;try{for(var u=n.type,d=r.attributes;d.length;)r.removeAttributeNode(d[0]);nn(r,u,a),r[Zt]=n,r[vn]=a}catch(m){Je(n,n.return,m)}}var Xi=!1,Ut=!1,Eh=!1,ab=typeof WeakSet=="function"?WeakSet:Set,Xt=null;function iA(n,r){if(n=n.containerInfo,Kh=ec,n=v0(n),vd(n)){if("selectionStart"in n)var a={start:n.selectionStart,end:n.selectionEnd};else e:{a=(a=n.ownerDocument)&&a.defaultView||window;var u=a.getSelection&&a.getSelection();if(u&&u.rangeCount!==0){a=u.anchorNode;var d=u.anchorOffset,m=u.focusNode;u=u.focusOffset;try{a.nodeType,m.nodeType}catch{a=null;break e}var b=0,A=-1,j=-1,H=0,te=0,re=n,K=null;t:for(;;){for(var W;re!==a||d!==0&&re.nodeType!==3||(A=b+d),re!==m||u!==0&&re.nodeType!==3||(j=b+u),re.nodeType===3&&(b+=re.nodeValue.length),(W=re.firstChild)!==null;)K=re,re=W;for(;;){if(re===n)break t;if(K===a&&++H===d&&(A=b),K===m&&++te===u&&(j=b),(W=re.nextSibling)!==null)break;re=K,K=re.parentNode}re=W}a=A===-1||j===-1?null:{start:A,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(Gh={focusedElem:n,selectionRange:a},ec=!1,Xt=r;Xt!==null;)if(r=Xt,n=r.child,(r.subtreeFlags&1028)!==0&&n!==null)n.return=r,Xt=n;else for(;Xt!==null;){switch(r=Xt,m=r.alternate,n=r.flags,r.tag){case 0:if((n&4)!==0&&(n=r.updateQueue,n=n!==null?n.events:null,n!==null))for(a=0;a<n.length;a++)d=n[a],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&m!==null){n=void 0,a=r,d=m.memoizedProps,m=m.memoizedState,u=a.stateNode;try{var fe=as(a.type,d);n=u.getSnapshotBeforeUpdate(fe,m),u.__reactInternalSnapshotBeforeUpdate=n}catch(xe){Je(a,a.return,xe)}}break;case 3:if((n&1024)!==0){if(n=r.stateNode.containerInfo,a=n.nodeType,a===9)Wh(n);else if(a===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Wh(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(s(163))}if(n=r.sibling,n!==null){n.return=r.return,Xt=n;break}Xt=r.return}}function ob(n,r,a){var u=a.flags;switch(a.tag){case 0:case 11:case 15:Qi(n,a),u&4&&wo(5,a);break;case 1:if(Qi(n,a),u&4)if(n=a.stateNode,r===null)try{n.componentDidMount()}catch(b){Je(a,a.return,b)}else{var d=as(a.type,r.memoizedProps);r=r.memoizedState;try{n.componentDidUpdate(d,r,n.__reactInternalSnapshotBeforeUpdate)}catch(b){Je(a,a.return,b)}}u&64&&tb(a),u&512&&Eo(a,a.return);break;case 3:if(Qi(n,a),u&64&&(n=a.updateQueue,n!==null)){if(r=null,a.child!==null)switch(a.child.tag){case 27:case 5:r=a.child.stateNode;break;case 1:r=a.child.stateNode}try{q0(n,r)}catch(b){Je(a,a.return,b)}}break;case 27:r===null&&u&4&&sb(a);case 26:case 5:Qi(n,a),r===null&&u&4&&ib(a),u&512&&Eo(a,a.return);break;case 12:Qi(n,a);break;case 31:Qi(n,a),u&4&&cb(n,a);break;case 13:Qi(n,a),u&4&&fb(n,a),u&64&&(n=a.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(a=dA.bind(null,a),LA(n,a))));break;case 22:if(u=a.memoizedState!==null||Xi,!u){r=r!==null&&r.memoizedState!==null||Ut,d=Xi;var m=Ut;Xi=u,(Ut=r)&&!m?Zi(n,a,(a.subtreeFlags&8772)!==0):Qi(n,a),Xi=d,Ut=m}break;case 30:break;default:Qi(n,a)}}function lb(n){var r=n.alternate;r!==null&&(n.alternate=null,lb(r)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(r=n.stateNode,r!==null&&td(r)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var yt=null,Sn=!1;function Wi(n,r,a){for(a=a.child;a!==null;)ub(n,r,a),a=a.sibling}function ub(n,r,a){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount($n,a)}catch{}switch(a.tag){case 26:Ut||Ci(a,r),Wi(n,r,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ut||Ci(a,r);var u=yt,d=Sn;Dr(a.type)&&(yt=a.stateNode,Sn=!1),Wi(n,r,a),zo(a.stateNode),yt=u,Sn=d;break;case 5:Ut||Ci(a,r);case 6:if(u=yt,d=Sn,yt=null,Wi(n,r,a),yt=u,Sn=d,yt!==null)if(Sn)try{(yt.nodeType===9?yt.body:yt.nodeName==="HTML"?yt.ownerDocument.body:yt).removeChild(a.stateNode)}catch(m){Je(a,r,m)}else try{yt.removeChild(a.stateNode)}catch(m){Je(a,r,m)}break;case 18:yt!==null&&(Sn?(n=yt,t1(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,a.stateNode),fa(n)):t1(yt,a.stateNode));break;case 4:u=yt,d=Sn,yt=a.stateNode.containerInfo,Sn=!0,Wi(n,r,a),yt=u,Sn=d;break;case 0:case 11:case 14:case 15:Tr(2,a,r),Ut||Tr(4,a,r),Wi(n,r,a);break;case 1:Ut||(Ci(a,r),u=a.stateNode,typeof u.componentWillUnmount=="function"&&nb(a,r,u)),Wi(n,r,a);break;case 21:Wi(n,r,a);break;case 22:Ut=(u=Ut)||a.memoizedState!==null,Wi(n,r,a),Ut=u;break;default:Wi(n,r,a)}}function cb(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{fa(n)}catch(a){Je(r,r.return,a)}}}function fb(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{fa(n)}catch(a){Je(r,r.return,a)}}function rA(n){switch(n.tag){case 31:case 13:case 19:var r=n.stateNode;return r===null&&(r=n.stateNode=new ab),r;case 22:return n=n.stateNode,r=n._retryCache,r===null&&(r=n._retryCache=new ab),r;default:throw Error(s(435,n.tag))}}function zu(n,r){var a=rA(n);r.forEach(function(u){if(!a.has(u)){a.add(u);var d=hA.bind(null,n,u);u.then(d,d)}})}function xn(n,r){var a=r.deletions;if(a!==null)for(var u=0;u<a.length;u++){var d=a[u],m=n,b=r,A=b;e:for(;A!==null;){switch(A.tag){case 27:if(Dr(A.type)){yt=A.stateNode,Sn=!1;break e}break;case 5:yt=A.stateNode,Sn=!1;break e;case 3:case 4:yt=A.stateNode.containerInfo,Sn=!0;break e}A=A.return}if(yt===null)throw Error(s(160));ub(m,b,d),yt=null,Sn=!1,m=d.alternate,m!==null&&(m.return=null),d.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)db(r,n),r=r.sibling}var ui=null;function db(n,r){var a=n.alternate,u=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:xn(r,n),Cn(n),u&4&&(Tr(3,n,n.return),wo(3,n),Tr(5,n,n.return));break;case 1:xn(r,n),Cn(n),u&512&&(Ut||a===null||Ci(a,a.return)),u&64&&Xi&&(n=n.updateQueue,n!==null&&(u=n.callbacks,u!==null&&(a=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=a===null?u:a.concat(u))));break;case 26:var d=ui;if(xn(r,n),Cn(n),u&512&&(Ut||a===null||Ci(a,a.return)),u&4){var m=a!==null?a.memoizedState:null;if(u=n.memoizedState,a===null)if(u===null)if(n.stateNode===null){e:{u=n.type,a=n.memoizedProps,d=d.ownerDocument||d;t:switch(u){case"title":m=d.getElementsByTagName("title")[0],(!m||m[Qa]||m[Zt]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=d.createElement(u),d.head.insertBefore(m,d.querySelector("head > title"))),nn(m,u,a),m[Zt]=n,Yt(m),u=m;break e;case"link":var b=d1("link","href",d).get(u+(a.href||""));if(b){for(var A=0;A<b.length;A++)if(m=b[A],m.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&m.getAttribute("rel")===(a.rel==null?null:a.rel)&&m.getAttribute("title")===(a.title==null?null:a.title)&&m.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){b.splice(A,1);break t}}m=d.createElement(u),nn(m,u,a),d.head.appendChild(m);break;case"meta":if(b=d1("meta","content",d).get(u+(a.content||""))){for(A=0;A<b.length;A++)if(m=b[A],m.getAttribute("content")===(a.content==null?null:""+a.content)&&m.getAttribute("name")===(a.name==null?null:a.name)&&m.getAttribute("property")===(a.property==null?null:a.property)&&m.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&m.getAttribute("charset")===(a.charSet==null?null:a.charSet)){b.splice(A,1);break t}}m=d.createElement(u),nn(m,u,a),d.head.appendChild(m);break;default:throw Error(s(468,u))}m[Zt]=n,Yt(m),u=m}n.stateNode=u}else h1(d,n.type,n.stateNode);else n.stateNode=f1(d,u,n.memoizedProps);else m!==u?(m===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):m.count--,u===null?h1(d,n.type,n.stateNode):f1(d,u,n.memoizedProps)):u===null&&n.stateNode!==null&&Ch(n,n.memoizedProps,a.memoizedProps)}break;case 27:xn(r,n),Cn(n),u&512&&(Ut||a===null||Ci(a,a.return)),a!==null&&u&4&&Ch(n,n.memoizedProps,a.memoizedProps);break;case 5:if(xn(r,n),Cn(n),u&512&&(Ut||a===null||Ci(a,a.return)),n.flags&32){d=n.stateNode;try{zs(d,"")}catch(fe){Je(n,n.return,fe)}}u&4&&n.stateNode!=null&&(d=n.memoizedProps,Ch(n,d,a!==null?a.memoizedProps:d)),u&1024&&(Eh=!0);break;case 6:if(xn(r,n),Cn(n),u&4){if(n.stateNode===null)throw Error(s(162));u=n.memoizedProps,a=n.stateNode;try{a.nodeValue=u}catch(fe){Je(n,n.return,fe)}}break;case 3:if(Wu=null,d=ui,ui=Yu(r.containerInfo),xn(r,n),ui=d,Cn(n),u&4&&a!==null&&a.memoizedState.isDehydrated)try{fa(r.containerInfo)}catch(fe){Je(n,n.return,fe)}Eh&&(Eh=!1,hb(n));break;case 4:u=ui,ui=Yu(n.stateNode.containerInfo),xn(r,n),Cn(n),ui=u;break;case 12:xn(r,n),Cn(n);break;case 31:xn(r,n),Cn(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,zu(n,u)));break;case 13:xn(r,n),Cn(n),n.child.flags&8192&&n.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Pu=ze()),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,zu(n,u)));break;case 22:d=n.memoizedState!==null;var j=a!==null&&a.memoizedState!==null,H=Xi,te=Ut;if(Xi=H||d,Ut=te||j,xn(r,n),Ut=te,Xi=H,Cn(n),u&8192)e:for(r=n.stateNode,r._visibility=d?r._visibility&-2:r._visibility|1,d&&(a===null||j||Xi||Ut||os(n)),a=null,r=n;;){if(r.tag===5||r.tag===26){if(a===null){j=a=r;try{if(m=j.stateNode,d)b=m.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{A=j.stateNode;var re=j.memoizedProps.style,K=re!=null&&re.hasOwnProperty("display")?re.display:null;A.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(fe){Je(j,j.return,fe)}}}else if(r.tag===6){if(a===null){j=r;try{j.stateNode.nodeValue=d?"":j.memoizedProps}catch(fe){Je(j,j.return,fe)}}}else if(r.tag===18){if(a===null){j=r;try{var W=j.stateNode;d?n1(W,!0):n1(j.stateNode,!1)}catch(fe){Je(j,j.return,fe)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===n)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break e;for(;r.sibling===null;){if(r.return===null||r.return===n)break e;a===r&&(a=null),r=r.return}a===r&&(a=null),r.sibling.return=r.return,r=r.sibling}u&4&&(u=n.updateQueue,u!==null&&(a=u.retryQueue,a!==null&&(u.retryQueue=null,zu(n,a))));break;case 19:xn(r,n),Cn(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,zu(n,u)));break;case 30:break;case 21:break;default:xn(r,n),Cn(n)}}function Cn(n){var r=n.flags;if(r&2){try{for(var a,u=n.return;u!==null;){if(rb(u)){a=u;break}u=u.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var d=a.stateNode,m=Th(n);Nu(n,m,d);break;case 5:var b=a.stateNode;a.flags&32&&(zs(b,""),a.flags&=-33);var A=Th(n);Nu(n,A,b);break;case 3:case 4:var j=a.stateNode.containerInfo,H=Th(n);wh(n,H,j);break;default:throw Error(s(161))}}catch(te){Je(n,n.return,te)}n.flags&=-3}r&4096&&(n.flags&=-4097)}function hb(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var r=n;hb(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),n=n.sibling}}function Qi(n,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)ob(n,r.alternate,r),r=r.sibling}function os(n){for(n=n.child;n!==null;){var r=n;switch(r.tag){case 0:case 11:case 14:case 15:Tr(4,r,r.return),os(r);break;case 1:Ci(r,r.return);var a=r.stateNode;typeof a.componentWillUnmount=="function"&&nb(r,r.return,a),os(r);break;case 27:zo(r.stateNode);case 26:case 5:Ci(r,r.return),os(r);break;case 22:r.memoizedState===null&&os(r);break;case 30:os(r);break;default:os(r)}n=n.sibling}}function Zi(n,r,a){for(a=a&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var u=r.alternate,d=n,m=r,b=m.flags;switch(m.tag){case 0:case 11:case 15:Zi(d,m,a),wo(4,m);break;case 1:if(Zi(d,m,a),u=m,d=u.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(H){Je(u,u.return,H)}if(u=m,d=u.updateQueue,d!==null){var A=u.stateNode;try{var j=d.shared.hiddenCallbacks;if(j!==null)for(d.shared.hiddenCallbacks=null,d=0;d<j.length;d++)F0(j[d],A)}catch(H){Je(u,u.return,H)}}a&&b&64&&tb(m),Eo(m,m.return);break;case 27:sb(m);case 26:case 5:Zi(d,m,a),a&&u===null&&b&4&&ib(m),Eo(m,m.return);break;case 12:Zi(d,m,a);break;case 31:Zi(d,m,a),a&&b&4&&cb(d,m);break;case 13:Zi(d,m,a),a&&b&4&&fb(d,m);break;case 22:m.memoizedState===null&&Zi(d,m,a),Eo(m,m.return);break;case 30:break;default:Zi(d,m,a)}r=r.sibling}}function Rh(n,r){var a=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(a=n.memoizedState.cachePool.pool),n=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(n=r.memoizedState.cachePool.pool),n!==a&&(n!=null&&n.refCount++,a!=null&&co(a))}function Ah(n,r){n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&co(n))}function ci(n,r,a,u){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)pb(n,r,a,u),r=r.sibling}function pb(n,r,a,u){var d=r.flags;switch(r.tag){case 0:case 11:case 15:ci(n,r,a,u),d&2048&&wo(9,r);break;case 1:ci(n,r,a,u);break;case 3:ci(n,r,a,u),d&2048&&(n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&co(n)));break;case 12:if(d&2048){ci(n,r,a,u),n=r.stateNode;try{var m=r.memoizedProps,b=m.id,A=m.onPostCommit;typeof A=="function"&&A(b,r.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(j){Je(r,r.return,j)}}else ci(n,r,a,u);break;case 31:ci(n,r,a,u);break;case 13:ci(n,r,a,u);break;case 23:break;case 22:m=r.stateNode,b=r.alternate,r.memoizedState!==null?m._visibility&2?ci(n,r,a,u):Ro(n,r):m._visibility&2?ci(n,r,a,u):(m._visibility|=2,ea(n,r,a,u,(r.subtreeFlags&10256)!==0||!1)),d&2048&&Rh(b,r);break;case 24:ci(n,r,a,u),d&2048&&Ah(r.alternate,r);break;default:ci(n,r,a,u)}}function ea(n,r,a,u,d){for(d=d&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var m=n,b=r,A=a,j=u,H=b.flags;switch(b.tag){case 0:case 11:case 15:ea(m,b,A,j,d),wo(8,b);break;case 23:break;case 22:var te=b.stateNode;b.memoizedState!==null?te._visibility&2?ea(m,b,A,j,d):Ro(m,b):(te._visibility|=2,ea(m,b,A,j,d)),d&&H&2048&&Rh(b.alternate,b);break;case 24:ea(m,b,A,j,d),d&&H&2048&&Ah(b.alternate,b);break;default:ea(m,b,A,j,d)}r=r.sibling}}function Ro(n,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var a=n,u=r,d=u.flags;switch(u.tag){case 22:Ro(a,u),d&2048&&Rh(u.alternate,u);break;case 24:Ro(a,u),d&2048&&Ah(u.alternate,u);break;default:Ro(a,u)}r=r.sibling}}var Ao=8192;function ta(n,r,a){if(n.subtreeFlags&Ao)for(n=n.child;n!==null;)mb(n,r,a),n=n.sibling}function mb(n,r,a){switch(n.tag){case 26:ta(n,r,a),n.flags&Ao&&n.memoizedState!==null&&FA(a,ui,n.memoizedState,n.memoizedProps);break;case 5:ta(n,r,a);break;case 3:case 4:var u=ui;ui=Yu(n.stateNode.containerInfo),ta(n,r,a),ui=u;break;case 22:n.memoizedState===null&&(u=n.alternate,u!==null&&u.memoizedState!==null?(u=Ao,Ao=16777216,ta(n,r,a),Ao=u):ta(n,r,a));break;default:ta(n,r,a)}}function gb(n){var r=n.alternate;if(r!==null&&(n=r.child,n!==null)){r.child=null;do r=n.sibling,n.sibling=null,n=r;while(n!==null)}}function Oo(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var a=0;a<r.length;a++){var u=r[a];Xt=u,vb(u,n)}gb(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)yb(n),n=n.sibling}function yb(n){switch(n.tag){case 0:case 11:case 15:Oo(n),n.flags&2048&&Tr(9,n,n.return);break;case 3:Oo(n);break;case 12:Oo(n);break;case 22:var r=n.stateNode;n.memoizedState!==null&&r._visibility&2&&(n.return===null||n.return.tag!==13)?(r._visibility&=-3,ku(n)):Oo(n);break;default:Oo(n)}}function ku(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var a=0;a<r.length;a++){var u=r[a];Xt=u,vb(u,n)}gb(n)}for(n=n.child;n!==null;){switch(r=n,r.tag){case 0:case 11:case 15:Tr(8,r,r.return),ku(r);break;case 22:a=r.stateNode,a._visibility&2&&(a._visibility&=-3,ku(r));break;default:ku(r)}n=n.sibling}}function vb(n,r){for(;Xt!==null;){var a=Xt;switch(a.tag){case 0:case 11:case 15:Tr(8,a,r);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var u=a.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:co(a.memoizedState.cache)}if(u=a.child,u!==null)u.return=a,Xt=u;else e:for(a=n;Xt!==null;){u=Xt;var d=u.sibling,m=u.return;if(lb(u),u===a){Xt=null;break e}if(d!==null){d.return=m,Xt=d;break e}Xt=m}}}var sA={getCacheForType:function(n){var r=en(Pt),a=r.data.get(n);return a===void 0&&(a=n(),r.data.set(n,a)),a},cacheSignal:function(){return en(Pt).controller.signal}},aA=typeof WeakMap=="function"?WeakMap:Map,Ge=0,ct=null,Le=null,ke=0,Ze=0,Nn=null,wr=!1,na=!1,Oh=!1,Ji=0,wt=0,Er=0,ls=0,Mh=0,zn=0,ia=0,Mo=null,Tn=null,Dh=!1,Pu=0,bb=0,ju=1/0,Bu=null,Rr=null,qt=0,Ar=null,ra=null,er=0,_h=0,Lh=null,Sb=null,Do=0,Nh=null;function kn(){return(Ge&2)!==0&&ke!==0?ke&-ke:P.T!==null?Uh():Py()}function xb(){if(zn===0)if((ke&536870912)===0||je){var n=Fr;Fr<<=1,(Fr&3932160)===0&&(Fr=262144),zn=n}else zn=536870912;return n=_n.current,n!==null&&(n.flags|=32),zn}function wn(n,r,a){(n===ct&&(Ze===2||Ze===9)||n.cancelPendingCommit!==null)&&(sa(n,0),Or(n,ke,zn,!1)),Wa(n,a),((Ge&2)===0||n!==ct)&&(n===ct&&((Ge&2)===0&&(ls|=a),wt===4&&Or(n,ke,zn,!1)),Ti(n))}function Cb(n,r,a){if((Ge&6)!==0)throw Error(s(327));var u=!a&&(r&127)===0&&(r&n.expiredLanes)===0||Xa(n,r),d=u?uA(n,r):kh(n,r,!0),m=u;do{if(d===0){na&&!u&&Or(n,r,0,!1);break}else{if(a=n.current.alternate,m&&!oA(a)){d=kh(n,r,!1),m=!1;continue}if(d===2){if(m=r,n.errorRecoveryDisabledLanes&m)var b=0;else b=n.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){r=b;e:{var A=n;d=Mo;var j=A.current.memoizedState.isDehydrated;if(j&&(sa(A,b).flags|=256),b=kh(A,b,!1),b!==2){if(Oh&&!j){A.errorRecoveryDisabledLanes|=m,ls|=m,d=4;break e}m=Tn,Tn=d,m!==null&&(Tn===null?Tn=m:Tn.push.apply(Tn,m))}d=b}if(m=!1,d!==2)continue}}if(d===1){sa(n,0),Or(n,r,0,!0);break}e:{switch(u=n,m=d,m){case 0:case 1:throw Error(s(345));case 4:if((r&4194048)!==r)break;case 6:Or(u,r,zn,!wr);break e;case 2:Tn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((r&62914560)===r&&(d=Pu+300-ze(),10<d)){if(Or(u,r,zn,!wr),Yl(u,0,!0)!==0)break e;er=r,u.timeoutHandle=Jb(Tb.bind(null,u,a,Tn,Bu,Dh,r,zn,ls,ia,wr,m,"Throttled",-0,0),d);break e}Tb(u,a,Tn,Bu,Dh,r,zn,ls,ia,wr,m,null,-0,0)}}break}while(!0);Ti(n)}function Tb(n,r,a,u,d,m,b,A,j,H,te,re,K,W){if(n.timeoutHandle=-1,re=r.subtreeFlags,re&8192||(re&16785408)===16785408){re={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ui},mb(r,m,re);var fe=(m&62914560)===m?Pu-ze():(m&4194048)===m?bb-ze():0;if(fe=qA(re,fe),fe!==null){er=m,n.cancelPendingCommit=fe(_b.bind(null,n,r,m,a,u,d,b,A,j,te,re,null,K,W)),Or(n,m,b,!H);return}}_b(n,r,m,a,u,d,b,A,j)}function oA(n){for(var r=n;;){var a=r.tag;if((a===0||a===11||a===15)&&r.flags&16384&&(a=r.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var u=0;u<a.length;u++){var d=a[u],m=d.getSnapshot;d=d.value;try{if(!Mn(m(),d))return!1}catch{return!1}}if(a=r.child,r.subtreeFlags&16384&&a!==null)a.return=r,r=a;else{if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Or(n,r,a,u){r&=~Mh,r&=~ls,n.suspendedLanes|=r,n.pingedLanes&=~r,u&&(n.warmLanes|=r),u=n.expirationTimes;for(var d=r;0<d;){var m=31-ln(d),b=1<<m;u[m]=-1,d&=~b}a!==0&&Ny(n,a,r)}function Uu(){return(Ge&6)===0?(_o(0),!1):!0}function zh(){if(Le!==null){if(Ze===0)var n=Le.return;else n=Le,Ii=Jr=null,Wd(n),Xs=null,ho=0,n=Le;for(;n!==null;)eb(n.alternate,n),n=n.return;Le=null}}function sa(n,r){var a=n.timeoutHandle;a!==-1&&(n.timeoutHandle=-1,AA(a)),a=n.cancelPendingCommit,a!==null&&(n.cancelPendingCommit=null,a()),er=0,zh(),ct=n,Le=a=$i(n.current,null),ke=r,Ze=0,Nn=null,wr=!1,na=Xa(n,r),Oh=!1,ia=zn=Mh=ls=Er=wt=0,Tn=Mo=null,Dh=!1,(r&8)!==0&&(r|=r&32);var u=n.entangledLanes;if(u!==0)for(n=n.entanglements,u&=r;0<u;){var d=31-ln(u),m=1<<d;r|=n[d],u&=~m}return Ji=r,au(),a}function wb(n,r){Ae=null,P.H=xo,r===Ys||r===pu?(r=V0(),Ze=3):r===Bd?(r=V0(),Ze=4):Ze=r===dh?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,Nn=r,Le===null&&(wt=1,Ou(n,qn(r,n.current)))}function Eb(){var n=_n.current;return n===null?!0:(ke&4194048)===ke?Xn===null:(ke&62914560)===ke||(ke&536870912)!==0?n===Xn:!1}function Rb(){var n=P.H;return P.H=xo,n===null?xo:n}function Ab(){var n=P.A;return P.A=sA,n}function Vu(){wt=4,wr||(ke&4194048)!==ke&&_n.current!==null||(na=!0),(Er&134217727)===0&&(ls&134217727)===0||ct===null||Or(ct,ke,zn,!1)}function kh(n,r,a){var u=Ge;Ge|=2;var d=Rb(),m=Ab();(ct!==n||ke!==r)&&(Bu=null,sa(n,r)),r=!1;var b=wt;e:do try{if(Ze!==0&&Le!==null){var A=Le,j=Nn;switch(Ze){case 8:zh(),b=6;break e;case 3:case 2:case 9:case 6:_n.current===null&&(r=!0);var H=Ze;if(Ze=0,Nn=null,aa(n,A,j,H),a&&na){b=0;break e}break;default:H=Ze,Ze=0,Nn=null,aa(n,A,j,H)}}lA(),b=wt;break}catch(te){wb(n,te)}while(!0);return r&&n.shellSuspendCounter++,Ii=Jr=null,Ge=u,P.H=d,P.A=m,Le===null&&(ct=null,ke=0,au()),b}function lA(){for(;Le!==null;)Ob(Le)}function uA(n,r){var a=Ge;Ge|=2;var u=Rb(),d=Ab();ct!==n||ke!==r?(Bu=null,ju=ze()+500,sa(n,r)):na=Xa(n,r);e:do try{if(Ze!==0&&Le!==null){r=Le;var m=Nn;t:switch(Ze){case 1:Ze=0,Nn=null,aa(n,r,m,1);break;case 2:case 9:if(B0(m)){Ze=0,Nn=null,Mb(r);break}r=function(){Ze!==2&&Ze!==9||ct!==n||(Ze=7),Ti(n)},m.then(r,r);break e;case 3:Ze=7;break e;case 4:Ze=5;break e;case 7:B0(m)?(Ze=0,Nn=null,Mb(r)):(Ze=0,Nn=null,aa(n,r,m,7));break;case 5:var b=null;switch(Le.tag){case 26:b=Le.memoizedState;case 5:case 27:var A=Le;if(b?p1(b):A.stateNode.complete){Ze=0,Nn=null;var j=A.sibling;if(j!==null)Le=j;else{var H=A.return;H!==null?(Le=H,$u(H)):Le=null}break t}}Ze=0,Nn=null,aa(n,r,m,5);break;case 6:Ze=0,Nn=null,aa(n,r,m,6);break;case 8:zh(),wt=6;break e;default:throw Error(s(462))}}cA();break}catch(te){wb(n,te)}while(!0);return Ii=Jr=null,P.H=u,P.A=d,Ge=a,Le!==null?0:(ct=null,ke=0,au(),wt)}function cA(){for(;Le!==null&&!ge();)Ob(Le)}function Ob(n){var r=Zv(n.alternate,n,Ji);n.memoizedProps=n.pendingProps,r===null?$u(n):Le=r}function Mb(n){var r=n,a=r.alternate;switch(r.tag){case 15:case 0:r=Kv(a,r,r.pendingProps,r.type,void 0,ke);break;case 11:r=Kv(a,r,r.pendingProps,r.type.render,r.ref,ke);break;case 5:Wd(r);default:eb(a,r),r=Le=A0(r,Ji),r=Zv(a,r,Ji)}n.memoizedProps=n.pendingProps,r===null?$u(n):Le=r}function aa(n,r,a,u){Ii=Jr=null,Wd(r),Xs=null,ho=0;var d=r.return;try{if(ZR(n,d,r,a,ke)){wt=1,Ou(n,qn(a,n.current)),Le=null;return}}catch(m){if(d!==null)throw Le=d,m;wt=1,Ou(n,qn(a,n.current)),Le=null;return}r.flags&32768?(je||u===1?n=!0:na||(ke&536870912)!==0?n=!1:(wr=n=!0,(u===2||u===9||u===3||u===6)&&(u=_n.current,u!==null&&u.tag===13&&(u.flags|=16384))),Db(r,n)):$u(r)}function $u(n){var r=n;do{if((r.flags&32768)!==0){Db(r,wr);return}n=r.return;var a=tA(r.alternate,r,Ji);if(a!==null){Le=a;return}if(r=r.sibling,r!==null){Le=r;return}Le=r=n}while(r!==null);wt===0&&(wt=5)}function Db(n,r){do{var a=nA(n.alternate,n);if(a!==null){a.flags&=32767,Le=a;return}if(a=n.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!r&&(n=n.sibling,n!==null)){Le=n;return}Le=n=a}while(n!==null);wt=6,Le=null}function _b(n,r,a,u,d,m,b,A,j){n.cancelPendingCommit=null;do Hu();while(qt!==0);if((Ge&6)!==0)throw Error(s(327));if(r!==null){if(r===n.current)throw Error(s(177));if(m=r.lanes|r.childLanes,m|=Td,IE(n,a,m,b,A,j),n===ct&&(Le=ct=null,ke=0),ra=r,Ar=n,er=a,_h=m,Lh=d,Sb=u,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,pA(Ct,function(){return Pb(),null})):(n.callbackNode=null,n.callbackPriority=0),u=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||u){u=P.T,P.T=null,d=I.p,I.p=2,b=Ge,Ge|=4;try{iA(n,r,a)}finally{Ge=b,I.p=d,P.T=u}}qt=1,Lb(),Nb(),zb()}}function Lb(){if(qt===1){qt=0;var n=Ar,r=ra,a=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||a){a=P.T,P.T=null;var u=I.p;I.p=2;var d=Ge;Ge|=4;try{db(r,n);var m=Gh,b=v0(n.containerInfo),A=m.focusedElem,j=m.selectionRange;if(b!==A&&A&&A.ownerDocument&&y0(A.ownerDocument.documentElement,A)){if(j!==null&&vd(A)){var H=j.start,te=j.end;if(te===void 0&&(te=H),"selectionStart"in A)A.selectionStart=H,A.selectionEnd=Math.min(te,A.value.length);else{var re=A.ownerDocument||document,K=re&&re.defaultView||window;if(K.getSelection){var W=K.getSelection(),fe=A.textContent.length,xe=Math.min(j.start,fe),rt=j.end===void 0?xe:Math.min(j.end,fe);!W.extend&&xe>rt&&(b=rt,rt=xe,xe=b);var V=g0(A,xe),U=g0(A,rt);if(V&&U&&(W.rangeCount!==1||W.anchorNode!==V.node||W.anchorOffset!==V.offset||W.focusNode!==U.node||W.focusOffset!==U.offset)){var $=re.createRange();$.setStart(V.node,V.offset),W.removeAllRanges(),xe>rt?(W.addRange($),W.extend(U.node,U.offset)):($.setEnd(U.node,U.offset),W.addRange($))}}}}for(re=[],W=A;W=W.parentNode;)W.nodeType===1&&re.push({element:W,left:W.scrollLeft,top:W.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<re.length;A++){var ie=re[A];ie.element.scrollLeft=ie.left,ie.element.scrollTop=ie.top}}ec=!!Kh,Gh=Kh=null}finally{Ge=d,I.p=u,P.T=a}}n.current=r,qt=2}}function Nb(){if(qt===2){qt=0;var n=Ar,r=ra,a=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||a){a=P.T,P.T=null;var u=I.p;I.p=2;var d=Ge;Ge|=4;try{ob(n,r.alternate,r)}finally{Ge=d,I.p=u,P.T=a}}qt=3}}function zb(){if(qt===4||qt===3){qt=0,si();var n=Ar,r=ra,a=er,u=Sb;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?qt=5:(qt=0,ra=Ar=null,kb(n,n.pendingLanes));var d=n.pendingLanes;if(d===0&&(Rr=null),Jf(a),r=r.stateNode,Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot($n,r,void 0,(r.current.flags&128)===128)}catch{}if(u!==null){r=P.T,d=I.p,I.p=2,P.T=null;try{for(var m=n.onRecoverableError,b=0;b<u.length;b++){var A=u[b];m(A.value,{componentStack:A.stack})}}finally{P.T=r,I.p=d}}(er&3)!==0&&Hu(),Ti(n),d=n.pendingLanes,(a&261930)!==0&&(d&42)!==0?n===Nh?Do++:(Do=0,Nh=n):Do=0,_o(0)}}function kb(n,r){(n.pooledCacheLanes&=r)===0&&(r=n.pooledCache,r!=null&&(n.pooledCache=null,co(r)))}function Hu(){return Lb(),Nb(),zb(),Pb()}function Pb(){if(qt!==5)return!1;var n=Ar,r=_h;_h=0;var a=Jf(er),u=P.T,d=I.p;try{I.p=32>a?32:a,P.T=null,a=Lh,Lh=null;var m=Ar,b=er;if(qt=0,ra=Ar=null,er=0,(Ge&6)!==0)throw Error(s(331));var A=Ge;if(Ge|=4,yb(m.current),pb(m,m.current,b,a),Ge=A,_o(0,!1),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot($n,m)}catch{}return!0}finally{I.p=d,P.T=u,kb(n,r)}}function jb(n,r,a){r=qn(a,r),r=fh(n.stateNode,r,2),n=Sr(n,r,2),n!==null&&(Wa(n,2),Ti(n))}function Je(n,r,a){if(n.tag===3)jb(n,n,a);else for(;r!==null;){if(r.tag===3){jb(r,n,a);break}else if(r.tag===1){var u=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Rr===null||!Rr.has(u))){n=qn(a,n),a=Bv(2),u=Sr(r,a,2),u!==null&&(Uv(a,u,r,n),Wa(u,2),Ti(u));break}}r=r.return}}function Ph(n,r,a){var u=n.pingCache;if(u===null){u=n.pingCache=new aA;var d=new Set;u.set(r,d)}else d=u.get(r),d===void 0&&(d=new Set,u.set(r,d));d.has(a)||(Oh=!0,d.add(a),n=fA.bind(null,n,r,a),r.then(n,n))}function fA(n,r,a){var u=n.pingCache;u!==null&&u.delete(r),n.pingedLanes|=n.suspendedLanes&a,n.warmLanes&=~a,ct===n&&(ke&a)===a&&(wt===4||wt===3&&(ke&62914560)===ke&&300>ze()-Pu?(Ge&2)===0&&sa(n,0):Mh|=a,ia===ke&&(ia=0)),Ti(n)}function Bb(n,r){r===0&&(r=Ly()),n=Wr(n,r),n!==null&&(Wa(n,r),Ti(n))}function dA(n){var r=n.memoizedState,a=0;r!==null&&(a=r.retryLane),Bb(n,a)}function hA(n,r){var a=0;switch(n.tag){case 31:case 13:var u=n.stateNode,d=n.memoizedState;d!==null&&(a=d.retryLane);break;case 19:u=n.stateNode;break;case 22:u=n.stateNode._retryCache;break;default:throw Error(s(314))}u!==null&&u.delete(r),Bb(n,a)}function pA(n,r){return kt(n,r)}var Iu=null,oa=null,jh=!1,Fu=!1,Bh=!1,Mr=0;function Ti(n){n!==oa&&n.next===null&&(oa===null?Iu=oa=n:oa=oa.next=n),Fu=!0,jh||(jh=!0,gA())}function _o(n,r){if(!Bh&&Fu){Bh=!0;do for(var a=!1,u=Iu;u!==null;){if(n!==0){var d=u.pendingLanes;if(d===0)var m=0;else{var b=u.suspendedLanes,A=u.pingedLanes;m=(1<<31-ln(42|n)+1)-1,m&=d&~(b&~A),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(a=!0,Hb(u,m))}else m=ke,m=Yl(u,u===ct?m:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(m&3)===0||Xa(u,m)||(a=!0,Hb(u,m));u=u.next}while(a);Bh=!1}}function mA(){Ub()}function Ub(){Fu=jh=!1;var n=0;Mr!==0&&RA()&&(n=Mr);for(var r=ze(),a=null,u=Iu;u!==null;){var d=u.next,m=Vb(u,r);m===0?(u.next=null,a===null?Iu=d:a.next=d,d===null&&(oa=a)):(a=u,(n!==0||(m&3)!==0)&&(Fu=!0)),u=d}qt!==0&&qt!==5||_o(n),Mr!==0&&(Mr=0)}function Vb(n,r){for(var a=n.suspendedLanes,u=n.pingedLanes,d=n.expirationTimes,m=n.pendingLanes&-62914561;0<m;){var b=31-ln(m),A=1<<b,j=d[b];j===-1?((A&a)===0||(A&u)!==0)&&(d[b]=HE(A,r)):j<=r&&(n.expiredLanes|=A),m&=~A}if(r=ct,a=ke,a=Yl(n,n===r?a:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u=n.callbackNode,a===0||n===r&&(Ze===2||Ze===9)||n.cancelPendingCommit!==null)return u!==null&&u!==null&&ot(u),n.callbackNode=null,n.callbackPriority=0;if((a&3)===0||Xa(n,a)){if(r=a&-a,r===n.callbackPriority)return r;switch(u!==null&&ot(u),Jf(a)){case 2:case 8:a=$e;break;case 32:a=Ct;break;case 268435456:a=On;break;default:a=Ct}return u=$b.bind(null,n),a=kt(a,u),n.callbackPriority=r,n.callbackNode=a,r}return u!==null&&u!==null&&ot(u),n.callbackPriority=2,n.callbackNode=null,2}function $b(n,r){if(qt!==0&&qt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var a=n.callbackNode;if(Hu()&&n.callbackNode!==a)return null;var u=ke;return u=Yl(n,n===ct?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u===0?null:(Cb(n,u,r),Vb(n,ze()),n.callbackNode!=null&&n.callbackNode===a?$b.bind(null,n):null)}function Hb(n,r){if(Hu())return null;Cb(n,r,!0)}function gA(){OA(function(){(Ge&6)!==0?kt(gt,mA):Ub()})}function Uh(){if(Mr===0){var n=Ks;n===0&&(n=oi,oi<<=1,(oi&261888)===0&&(oi=256)),Mr=n}return Mr}function Ib(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Zl(""+n)}function Fb(n,r){var a=r.ownerDocument.createElement("input");return a.name=r.name,a.value=r.value,n.id&&a.setAttribute("form",n.id),r.parentNode.insertBefore(a,r),n=new FormData(n),a.parentNode.removeChild(a),n}function yA(n,r,a,u,d){if(r==="submit"&&a&&a.stateNode===d){var m=Ib((d[vn]||null).action),b=u.submitter;b&&(r=(r=b[vn]||null)?Ib(r.formAction):b.getAttribute("formAction"),r!==null&&(m=r,b=null));var A=new nu("action","action",null,u,d);n.push({event:A,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Mr!==0){var j=b?Fb(d,b):new FormData(d);sh(a,{pending:!0,data:j,method:d.method,action:m},null,j)}}else typeof m=="function"&&(A.preventDefault(),j=b?Fb(d,b):new FormData(d),sh(a,{pending:!0,data:j,method:d.method,action:m},m,j))},currentTarget:d}]})}}for(var Vh=0;Vh<Cd.length;Vh++){var $h=Cd[Vh],vA=$h.toLowerCase(),bA=$h[0].toUpperCase()+$h.slice(1);li(vA,"on"+bA)}li(x0,"onAnimationEnd"),li(C0,"onAnimationIteration"),li(T0,"onAnimationStart"),li("dblclick","onDoubleClick"),li("focusin","onFocus"),li("focusout","onBlur"),li(kR,"onTransitionRun"),li(PR,"onTransitionStart"),li(jR,"onTransitionCancel"),li(w0,"onTransitionEnd"),Ls("onMouseEnter",["mouseout","mouseover"]),Ls("onMouseLeave",["mouseout","mouseover"]),Ls("onPointerEnter",["pointerout","pointerover"]),Ls("onPointerLeave",["pointerout","pointerover"]),Kr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Kr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Kr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Kr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Kr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Kr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lo="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(" "),SA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Lo));function qb(n,r){r=(r&4)!==0;for(var a=0;a<n.length;a++){var u=n[a],d=u.event;u=u.listeners;e:{var m=void 0;if(r)for(var b=u.length-1;0<=b;b--){var A=u[b],j=A.instance,H=A.currentTarget;if(A=A.listener,j!==m&&d.isPropagationStopped())break e;m=A,d.currentTarget=H;try{m(d)}catch(te){su(te)}d.currentTarget=null,m=j}else for(b=0;b<u.length;b++){if(A=u[b],j=A.instance,H=A.currentTarget,A=A.listener,j!==m&&d.isPropagationStopped())break e;m=A,d.currentTarget=H;try{m(d)}catch(te){su(te)}d.currentTarget=null,m=j}}}}function Ne(n,r){var a=r[ed];a===void 0&&(a=r[ed]=new Set);var u=n+"__bubble";a.has(u)||(Kb(r,n,2,!1),a.add(u))}function Hh(n,r,a){var u=0;r&&(u|=4),Kb(a,n,u,r)}var qu="_reactListening"+Math.random().toString(36).slice(2);function Ih(n){if(!n[qu]){n[qu]=!0,Uy.forEach(function(a){a!=="selectionchange"&&(SA.has(a)||Hh(a,!1,n),Hh(a,!0,n))});var r=n.nodeType===9?n:n.ownerDocument;r===null||r[qu]||(r[qu]=!0,Hh("selectionchange",!1,r))}}function Kb(n,r,a,u){switch(x1(r)){case 2:var d=YA;break;case 8:d=XA;break;default:d=rp}a=d.bind(null,r,a,n),d=void 0,!ud||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(d=!0),u?d!==void 0?n.addEventListener(r,a,{capture:!0,passive:d}):n.addEventListener(r,a,!0):d!==void 0?n.addEventListener(r,a,{passive:d}):n.addEventListener(r,a,!1)}function Fh(n,r,a,u,d){var m=u;if((r&1)===0&&(r&2)===0&&u!==null)e:for(;;){if(u===null)return;var b=u.tag;if(b===3||b===4){var A=u.stateNode.containerInfo;if(A===d)break;if(b===4)for(b=u.return;b!==null;){var j=b.tag;if((j===3||j===4)&&b.stateNode.containerInfo===d)return;b=b.return}for(;A!==null;){if(b=Ms(A),b===null)return;if(j=b.tag,j===5||j===6||j===26||j===27){u=m=b;continue e}A=A.parentNode}}u=u.return}Qy(function(){var H=m,te=od(a),re=[];e:{var K=E0.get(n);if(K!==void 0){var W=nu,fe=n;switch(n){case"keypress":if(eu(a)===0)break e;case"keydown":case"keyup":W=hR;break;case"focusin":fe="focus",W=hd;break;case"focusout":fe="blur",W=hd;break;case"beforeblur":case"afterblur":W=hd;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":W=e0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=tR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=gR;break;case x0:case C0:case T0:W=rR;break;case w0:W=vR;break;case"scroll":case"scrollend":W=JE;break;case"wheel":W=SR;break;case"copy":case"cut":case"paste":W=aR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=n0;break;case"toggle":case"beforetoggle":W=CR}var xe=(r&4)!==0,rt=!xe&&(n==="scroll"||n==="scrollend"),V=xe?K!==null?K+"Capture":null:K;xe=[];for(var U=H,$;U!==null;){var ie=U;if($=ie.stateNode,ie=ie.tag,ie!==5&&ie!==26&&ie!==27||$===null||V===null||(ie=Ja(U,V),ie!=null&&xe.push(No(U,ie,$))),rt)break;U=U.return}0<xe.length&&(K=new W(K,fe,null,a,te),re.push({event:K,listeners:xe}))}}if((r&7)===0){e:{if(K=n==="mouseover"||n==="pointerover",W=n==="mouseout"||n==="pointerout",K&&a!==ad&&(fe=a.relatedTarget||a.fromElement)&&(Ms(fe)||fe[Os]))break e;if((W||K)&&(K=te.window===te?te:(K=te.ownerDocument)?K.defaultView||K.parentWindow:window,W?(fe=a.relatedTarget||a.toElement,W=H,fe=fe?Ms(fe):null,fe!==null&&(rt=l(fe),xe=fe.tag,fe!==rt||xe!==5&&xe!==27&&xe!==6)&&(fe=null)):(W=null,fe=H),W!==fe)){if(xe=e0,ie="onMouseLeave",V="onMouseEnter",U="mouse",(n==="pointerout"||n==="pointerover")&&(xe=n0,ie="onPointerLeave",V="onPointerEnter",U="pointer"),rt=W==null?K:Za(W),$=fe==null?K:Za(fe),K=new xe(ie,U+"leave",W,a,te),K.target=rt,K.relatedTarget=$,ie=null,Ms(te)===H&&(xe=new xe(V,U+"enter",fe,a,te),xe.target=$,xe.relatedTarget=rt,ie=xe),rt=ie,W&&fe)t:{for(xe=xA,V=W,U=fe,$=0,ie=V;ie;ie=xe(ie))$++;ie=0;for(var ve=U;ve;ve=xe(ve))ie++;for(;0<$-ie;)V=xe(V),$--;for(;0<ie-$;)U=xe(U),ie--;for(;$--;){if(V===U||U!==null&&V===U.alternate){xe=V;break t}V=xe(V),U=xe(U)}xe=null}else xe=null;W!==null&&Gb(re,K,W,xe,!1),fe!==null&&rt!==null&&Gb(re,rt,fe,xe,!0)}}e:{if(K=H?Za(H):window,W=K.nodeName&&K.nodeName.toLowerCase(),W==="select"||W==="input"&&K.type==="file")var He=c0;else if(l0(K))if(f0)He=LR;else{He=DR;var he=MR}else W=K.nodeName,!W||W.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?H&&sd(H.elementType)&&(He=c0):He=_R;if(He&&(He=He(n,H))){u0(re,He,a,te);break e}he&&he(n,K,H),n==="focusout"&&H&&K.type==="number"&&H.memoizedProps.value!=null&&rd(K,"number",K.value)}switch(he=H?Za(H):window,n){case"focusin":(l0(he)||he.contentEditable==="true")&&(Bs=he,bd=H,oo=null);break;case"focusout":oo=bd=Bs=null;break;case"mousedown":Sd=!0;break;case"contextmenu":case"mouseup":case"dragend":Sd=!1,b0(re,a,te);break;case"selectionchange":if(zR)break;case"keydown":case"keyup":b0(re,a,te)}var Me;if(md)e:{switch(n){case"compositionstart":var Pe="onCompositionStart";break e;case"compositionend":Pe="onCompositionEnd";break e;case"compositionupdate":Pe="onCompositionUpdate";break e}Pe=void 0}else js?a0(n,a)&&(Pe="onCompositionEnd"):n==="keydown"&&a.keyCode===229&&(Pe="onCompositionStart");Pe&&(i0&&a.locale!=="ko"&&(js||Pe!=="onCompositionStart"?Pe==="onCompositionEnd"&&js&&(Me=Zy()):(hr=te,cd="value"in hr?hr.value:hr.textContent,js=!0)),he=Ku(H,Pe),0<he.length&&(Pe=new t0(Pe,n,null,a,te),re.push({event:Pe,listeners:he}),Me?Pe.data=Me:(Me=o0(a),Me!==null&&(Pe.data=Me)))),(Me=wR?ER(n,a):RR(n,a))&&(Pe=Ku(H,"onBeforeInput"),0<Pe.length&&(he=new t0("onBeforeInput","beforeinput",null,a,te),re.push({event:he,listeners:Pe}),he.data=Me)),yA(re,n,H,a,te)}qb(re,r)})}function No(n,r,a){return{instance:n,listener:r,currentTarget:a}}function Ku(n,r){for(var a=r+"Capture",u=[];n!==null;){var d=n,m=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||m===null||(d=Ja(n,a),d!=null&&u.unshift(No(n,d,m)),d=Ja(n,r),d!=null&&u.push(No(n,d,m))),n.tag===3)return u;n=n.return}return[]}function xA(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function Gb(n,r,a,u,d){for(var m=r._reactName,b=[];a!==null&&a!==u;){var A=a,j=A.alternate,H=A.stateNode;if(A=A.tag,j!==null&&j===u)break;A!==5&&A!==26&&A!==27||H===null||(j=H,d?(H=Ja(a,m),H!=null&&b.unshift(No(a,H,j))):d||(H=Ja(a,m),H!=null&&b.push(No(a,H,j)))),a=a.return}b.length!==0&&n.push({event:r,listeners:b})}var CA=/\r\n?/g,TA=/\u0000|\uFFFD/g;function Yb(n){return(typeof n=="string"?n:""+n).replace(CA,`
9
+ `).replace(TA,"")}function Xb(n,r){return r=Yb(r),Yb(n)===r}function it(n,r,a,u,d,m){switch(a){case"children":typeof u=="string"?r==="body"||r==="textarea"&&u===""||zs(n,u):(typeof u=="number"||typeof u=="bigint")&&r!=="body"&&zs(n,""+u);break;case"className":Wl(n,"class",u);break;case"tabIndex":Wl(n,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Wl(n,a,u);break;case"style":Xy(n,u,m);break;case"data":if(r!=="object"){Wl(n,"data",u);break}case"src":case"href":if(u===""&&(r!=="a"||a!=="href")){n.removeAttribute(a);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(a);break}u=Zl(""+u),n.setAttribute(a,u);break;case"action":case"formAction":if(typeof u=="function"){n.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(a==="formAction"?(r!=="input"&&it(n,r,"name",d.name,d,null),it(n,r,"formEncType",d.formEncType,d,null),it(n,r,"formMethod",d.formMethod,d,null),it(n,r,"formTarget",d.formTarget,d,null)):(it(n,r,"encType",d.encType,d,null),it(n,r,"method",d.method,d,null),it(n,r,"target",d.target,d,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(a);break}u=Zl(""+u),n.setAttribute(a,u);break;case"onClick":u!=null&&(n.onclick=Ui);break;case"onScroll":u!=null&&Ne("scroll",n);break;case"onScrollEnd":u!=null&&Ne("scrollend",n);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(s(61));if(a=u.__html,a!=null){if(d.children!=null)throw Error(s(60));n.innerHTML=a}}break;case"multiple":n.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":n.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"){n.removeAttribute("xlink:href");break}a=Zl(""+u),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(a,""+u):n.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(a,""):n.removeAttribute(a);break;case"capture":case"download":u===!0?n.setAttribute(a,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(a,u):n.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?n.setAttribute(a,u):n.removeAttribute(a);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?n.removeAttribute(a):n.setAttribute(a,u);break;case"popover":Ne("beforetoggle",n),Ne("toggle",n),Xl(n,"popover",u);break;case"xlinkActuate":Bi(n,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Bi(n,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Bi(n,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Bi(n,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Bi(n,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Bi(n,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Bi(n,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Bi(n,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Bi(n,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Xl(n,"is",u);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=QE.get(a)||a,Xl(n,a,u))}}function qh(n,r,a,u,d,m){switch(a){case"style":Xy(n,u,m);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(s(61));if(a=u.__html,a!=null){if(d.children!=null)throw Error(s(60));n.innerHTML=a}}break;case"children":typeof u=="string"?zs(n,u):(typeof u=="number"||typeof u=="bigint")&&zs(n,""+u);break;case"onScroll":u!=null&&Ne("scroll",n);break;case"onScrollEnd":u!=null&&Ne("scrollend",n);break;case"onClick":u!=null&&(n.onclick=Ui);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Vy.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(d=a.endsWith("Capture"),r=a.slice(2,d?a.length-7:void 0),m=n[vn]||null,m=m!=null?m[a]:null,typeof m=="function"&&n.removeEventListener(r,m,d),typeof u=="function")){typeof m!="function"&&m!==null&&(a in n?n[a]=null:n.hasAttribute(a)&&n.removeAttribute(a)),n.addEventListener(r,u,d);break e}a in n?n[a]=u:u===!0?n.setAttribute(a,""):Xl(n,a,u)}}}function nn(n,r,a){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",n),Ne("load",n);var u=!1,d=!1,m;for(m in a)if(a.hasOwnProperty(m)){var b=a[m];if(b!=null)switch(m){case"src":u=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:it(n,r,m,b,a,null)}}d&&it(n,r,"srcSet",a.srcSet,a,null),u&&it(n,r,"src",a.src,a,null);return;case"input":Ne("invalid",n);var A=m=b=d=null,j=null,H=null;for(u in a)if(a.hasOwnProperty(u)){var te=a[u];if(te!=null)switch(u){case"name":d=te;break;case"type":b=te;break;case"checked":j=te;break;case"defaultChecked":H=te;break;case"value":m=te;break;case"defaultValue":A=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(s(137,r));break;default:it(n,r,u,te,a,null)}}qy(n,m,A,j,H,b,d,!1);return;case"select":Ne("invalid",n),u=b=m=null;for(d in a)if(a.hasOwnProperty(d)&&(A=a[d],A!=null))switch(d){case"value":m=A;break;case"defaultValue":b=A;break;case"multiple":u=A;default:it(n,r,d,A,a,null)}r=m,a=b,n.multiple=!!u,r!=null?Ns(n,!!u,r,!1):a!=null&&Ns(n,!!u,a,!0);return;case"textarea":Ne("invalid",n),m=d=u=null;for(b in a)if(a.hasOwnProperty(b)&&(A=a[b],A!=null))switch(b){case"value":u=A;break;case"defaultValue":d=A;break;case"children":m=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(s(91));break;default:it(n,r,b,A,a,null)}Gy(n,u,d,m);return;case"option":for(j in a)if(a.hasOwnProperty(j)&&(u=a[j],u!=null))switch(j){case"selected":n.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:it(n,r,j,u,a,null)}return;case"dialog":Ne("beforetoggle",n),Ne("toggle",n),Ne("cancel",n),Ne("close",n);break;case"iframe":case"object":Ne("load",n);break;case"video":case"audio":for(u=0;u<Lo.length;u++)Ne(Lo[u],n);break;case"image":Ne("error",n),Ne("load",n);break;case"details":Ne("toggle",n);break;case"embed":case"source":case"link":Ne("error",n),Ne("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(H in a)if(a.hasOwnProperty(H)&&(u=a[H],u!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:it(n,r,H,u,a,null)}return;default:if(sd(r)){for(te in a)a.hasOwnProperty(te)&&(u=a[te],u!==void 0&&qh(n,r,te,u,a,void 0));return}}for(A in a)a.hasOwnProperty(A)&&(u=a[A],u!=null&&it(n,r,A,u,a,null))}function wA(n,r,a,u){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,m=null,b=null,A=null,j=null,H=null,te=null;for(W in a){var re=a[W];if(a.hasOwnProperty(W)&&re!=null)switch(W){case"checked":break;case"value":break;case"defaultValue":j=re;default:u.hasOwnProperty(W)||it(n,r,W,null,u,re)}}for(var K in u){var W=u[K];if(re=a[K],u.hasOwnProperty(K)&&(W!=null||re!=null))switch(K){case"type":m=W;break;case"name":d=W;break;case"checked":H=W;break;case"defaultChecked":te=W;break;case"value":b=W;break;case"defaultValue":A=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(s(137,r));break;default:W!==re&&it(n,r,K,W,u,re)}}id(n,b,A,j,H,te,m,d);return;case"select":W=b=A=K=null;for(m in a)if(j=a[m],a.hasOwnProperty(m)&&j!=null)switch(m){case"value":break;case"multiple":W=j;default:u.hasOwnProperty(m)||it(n,r,m,null,u,j)}for(d in u)if(m=u[d],j=a[d],u.hasOwnProperty(d)&&(m!=null||j!=null))switch(d){case"value":K=m;break;case"defaultValue":A=m;break;case"multiple":b=m;default:m!==j&&it(n,r,d,m,u,j)}r=A,a=b,u=W,K!=null?Ns(n,!!a,K,!1):!!u!=!!a&&(r!=null?Ns(n,!!a,r,!0):Ns(n,!!a,a?[]:"",!1));return;case"textarea":W=K=null;for(A in a)if(d=a[A],a.hasOwnProperty(A)&&d!=null&&!u.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:it(n,r,A,null,u,d)}for(b in u)if(d=u[b],m=a[b],u.hasOwnProperty(b)&&(d!=null||m!=null))switch(b){case"value":K=d;break;case"defaultValue":W=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(s(91));break;default:d!==m&&it(n,r,b,d,u,m)}Ky(n,K,W);return;case"option":for(var fe in a)if(K=a[fe],a.hasOwnProperty(fe)&&K!=null&&!u.hasOwnProperty(fe))switch(fe){case"selected":n.selected=!1;break;default:it(n,r,fe,null,u,K)}for(j in u)if(K=u[j],W=a[j],u.hasOwnProperty(j)&&K!==W&&(K!=null||W!=null))switch(j){case"selected":n.selected=K&&typeof K!="function"&&typeof K!="symbol";break;default:it(n,r,j,K,u,W)}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 xe in a)K=a[xe],a.hasOwnProperty(xe)&&K!=null&&!u.hasOwnProperty(xe)&&it(n,r,xe,null,u,K);for(H in u)if(K=u[H],W=a[H],u.hasOwnProperty(H)&&K!==W&&(K!=null||W!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(s(137,r));break;default:it(n,r,H,K,u,W)}return;default:if(sd(r)){for(var rt in a)K=a[rt],a.hasOwnProperty(rt)&&K!==void 0&&!u.hasOwnProperty(rt)&&qh(n,r,rt,void 0,u,K);for(te in u)K=u[te],W=a[te],!u.hasOwnProperty(te)||K===W||K===void 0&&W===void 0||qh(n,r,te,K,u,W);return}}for(var V in a)K=a[V],a.hasOwnProperty(V)&&K!=null&&!u.hasOwnProperty(V)&&it(n,r,V,null,u,K);for(re in u)K=u[re],W=a[re],!u.hasOwnProperty(re)||K===W||K==null&&W==null||it(n,r,re,K,u,W)}function Wb(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function EA(){if(typeof performance.getEntriesByType=="function"){for(var n=0,r=0,a=performance.getEntriesByType("resource"),u=0;u<a.length;u++){var d=a[u],m=d.transferSize,b=d.initiatorType,A=d.duration;if(m&&A&&Wb(b)){for(b=0,A=d.responseEnd,u+=1;u<a.length;u++){var j=a[u],H=j.startTime;if(H>A)break;var te=j.transferSize,re=j.initiatorType;te&&Wb(re)&&(j=j.responseEnd,b+=te*(j<A?1:(A-H)/(j-H)))}if(--u,r+=8*(m+b)/(d.duration/1e3),n++,10<n)break}}if(0<n)return r/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var Kh=null,Gh=null;function Gu(n){return n.nodeType===9?n:n.ownerDocument}function Qb(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Zb(n,r){if(n===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&r==="foreignObject"?0:n}function Yh(n,r){return n==="textarea"||n==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Xh=null;function RA(){var n=window.event;return n&&n.type==="popstate"?n===Xh?!1:(Xh=n,!0):(Xh=null,!1)}var Jb=typeof setTimeout=="function"?setTimeout:void 0,AA=typeof clearTimeout=="function"?clearTimeout:void 0,e1=typeof Promise=="function"?Promise:void 0,OA=typeof queueMicrotask=="function"?queueMicrotask:typeof e1<"u"?function(n){return e1.resolve(null).then(n).catch(MA)}:Jb;function MA(n){setTimeout(function(){throw n})}function Dr(n){return n==="head"}function t1(n,r){var a=r,u=0;do{var d=a.nextSibling;if(n.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"||a==="/&"){if(u===0){n.removeChild(d),fa(r);return}u--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")u++;else if(a==="html")zo(n.ownerDocument.documentElement);else if(a==="head"){a=n.ownerDocument.head,zo(a);for(var m=a.firstChild;m;){var b=m.nextSibling,A=m.nodeName;m[Qa]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&m.rel.toLowerCase()==="stylesheet"||a.removeChild(m),m=b}}else a==="body"&&zo(n.ownerDocument.body);a=d}while(a);fa(r)}function n1(n,r){var a=n;n=0;do{var u=a.nextSibling;if(a.nodeType===1?r?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(r?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),u&&u.nodeType===8)if(a=u.data,a==="/$"){if(n===0)break;n--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||n++;a=u}while(a)}function Wh(n){var r=n.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var a=r;switch(r=r.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Wh(a),td(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}n.removeChild(a)}}function DA(n,r,a,u){for(;n.nodeType===1;){var d=a;if(n.nodeName.toLowerCase()!==r.toLowerCase()){if(!u&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(u){if(!n[Qa])switch(r){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(m=n.getAttribute("rel"),m==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(m!==d.rel||n.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||n.getAttribute("title")!==(d.title==null?null:d.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(m=n.getAttribute("src"),(m!==(d.src==null?null:d.src)||n.getAttribute("type")!==(d.type==null?null:d.type)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&m&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(r==="input"&&n.type==="hidden"){var m=d.name==null?null:""+d.name;if(d.type==="hidden"&&n.getAttribute("name")===m)return n}else return n;if(n=Wn(n.nextSibling),n===null)break}return null}function _A(n,r,a){if(r==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!a||(n=Wn(n.nextSibling),n===null))return null;return n}function i1(n,r){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!r||(n=Wn(n.nextSibling),n===null))return null;return n}function Qh(n){return n.data==="$?"||n.data==="$~"}function Zh(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function LA(n,r){var a=n.ownerDocument;if(n.data==="$~")n._reactRetry=r;else if(n.data!=="$?"||a.readyState!=="loading")r();else{var u=function(){r(),a.removeEventListener("DOMContentLoaded",u)};a.addEventListener("DOMContentLoaded",u),n._reactRetry=u}}function Wn(n){for(;n!=null;n=n.nextSibling){var r=n.nodeType;if(r===1||r===3)break;if(r===8){if(r=n.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return n}var Jh=null;function r1(n){n=n.nextSibling;for(var r=0;n;){if(n.nodeType===8){var a=n.data;if(a==="/$"||a==="/&"){if(r===0)return Wn(n.nextSibling);r--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||r++}n=n.nextSibling}return null}function s1(n){n=n.previousSibling;for(var r=0;n;){if(n.nodeType===8){var a=n.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(r===0)return n;r--}else a!=="/$"&&a!=="/&"||r++}n=n.previousSibling}return null}function a1(n,r,a){switch(r=Gu(a),n){case"html":if(n=r.documentElement,!n)throw Error(s(452));return n;case"head":if(n=r.head,!n)throw Error(s(453));return n;case"body":if(n=r.body,!n)throw Error(s(454));return n;default:throw Error(s(451))}}function zo(n){for(var r=n.attributes;r.length;)n.removeAttributeNode(r[0]);td(n)}var Qn=new Map,o1=new Set;function Yu(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var tr=I.d;I.d={f:NA,r:zA,D:kA,C:PA,L:jA,m:BA,X:VA,S:UA,M:$A};function NA(){var n=tr.f(),r=Uu();return n||r}function zA(n){var r=Ds(n);r!==null&&r.tag===5&&r.type==="form"?wv(r):tr.r(n)}var la=typeof document>"u"?null:document;function l1(n,r,a){var u=la;if(u&&typeof r=="string"&&r){var d=In(r);d='link[rel="'+n+'"][href="'+d+'"]',typeof a=="string"&&(d+='[crossorigin="'+a+'"]'),o1.has(d)||(o1.add(d),n={rel:n,crossOrigin:a,href:r},u.querySelector(d)===null&&(r=u.createElement("link"),nn(r,"link",n),Yt(r),u.head.appendChild(r)))}}function kA(n){tr.D(n),l1("dns-prefetch",n,null)}function PA(n,r){tr.C(n,r),l1("preconnect",n,r)}function jA(n,r,a){tr.L(n,r,a);var u=la;if(u&&n&&r){var d='link[rel="preload"][as="'+In(r)+'"]';r==="image"&&a&&a.imageSrcSet?(d+='[imagesrcset="'+In(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(d+='[imagesizes="'+In(a.imageSizes)+'"]')):d+='[href="'+In(n)+'"]';var m=d;switch(r){case"style":m=ua(n);break;case"script":m=ca(n)}Qn.has(m)||(n=y({rel:"preload",href:r==="image"&&a&&a.imageSrcSet?void 0:n,as:r},a),Qn.set(m,n),u.querySelector(d)!==null||r==="style"&&u.querySelector(ko(m))||r==="script"&&u.querySelector(Po(m))||(r=u.createElement("link"),nn(r,"link",n),Yt(r),u.head.appendChild(r)))}}function BA(n,r){tr.m(n,r);var a=la;if(a&&n){var u=r&&typeof r.as=="string"?r.as:"script",d='link[rel="modulepreload"][as="'+In(u)+'"][href="'+In(n)+'"]',m=d;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=ca(n)}if(!Qn.has(m)&&(n=y({rel:"modulepreload",href:n},r),Qn.set(m,n),a.querySelector(d)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Po(m)))return}u=a.createElement("link"),nn(u,"link",n),Yt(u),a.head.appendChild(u)}}}function UA(n,r,a){tr.S(n,r,a);var u=la;if(u&&n){var d=_s(u).hoistableStyles,m=ua(n);r=r||"default";var b=d.get(m);if(!b){var A={loading:0,preload:null};if(b=u.querySelector(ko(m)))A.loading=5;else{n=y({rel:"stylesheet",href:n,"data-precedence":r},a),(a=Qn.get(m))&&ep(n,a);var j=b=u.createElement("link");Yt(j),nn(j,"link",n),j._p=new Promise(function(H,te){j.onload=H,j.onerror=te}),j.addEventListener("load",function(){A.loading|=1}),j.addEventListener("error",function(){A.loading|=2}),A.loading|=4,Xu(b,r,u)}b={type:"stylesheet",instance:b,count:1,state:A},d.set(m,b)}}}function VA(n,r){tr.X(n,r);var a=la;if(a&&n){var u=_s(a).hoistableScripts,d=ca(n),m=u.get(d);m||(m=a.querySelector(Po(d)),m||(n=y({src:n,async:!0},r),(r=Qn.get(d))&&tp(n,r),m=a.createElement("script"),Yt(m),nn(m,"link",n),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(d,m))}}function $A(n,r){tr.M(n,r);var a=la;if(a&&n){var u=_s(a).hoistableScripts,d=ca(n),m=u.get(d);m||(m=a.querySelector(Po(d)),m||(n=y({src:n,async:!0,type:"module"},r),(r=Qn.get(d))&&tp(n,r),m=a.createElement("script"),Yt(m),nn(m,"link",n),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(d,m))}}function u1(n,r,a,u){var d=(d=pe.current)?Yu(d):null;if(!d)throw Error(s(446));switch(n){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(r=ua(a.href),a=_s(d).hoistableStyles,u=a.get(r),u||(u={type:"style",instance:null,count:0,state:null},a.set(r,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){n=ua(a.href);var m=_s(d).hoistableStyles,b=m.get(n);if(b||(d=d.ownerDocument||d,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(n,b),(m=d.querySelector(ko(n)))&&!m._p&&(b.instance=m,b.state.loading=5),Qn.has(n)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Qn.set(n,a),m||HA(d,n,a,b.state))),r&&u===null)throw Error(s(528,""));return b}if(r&&u!==null)throw Error(s(529,""));return null;case"script":return r=a.async,a=a.src,typeof a=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=ca(a),a=_s(d).hoistableScripts,u=a.get(r),u||(u={type:"script",instance:null,count:0,state:null},a.set(r,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,n))}}function ua(n){return'href="'+In(n)+'"'}function ko(n){return'link[rel="stylesheet"]['+n+"]"}function c1(n){return y({},n,{"data-precedence":n.precedence,precedence:null})}function HA(n,r,a,u){n.querySelector('link[rel="preload"][as="style"]['+r+"]")?u.loading=1:(r=n.createElement("link"),u.preload=r,r.addEventListener("load",function(){return u.loading|=1}),r.addEventListener("error",function(){return u.loading|=2}),nn(r,"link",a),Yt(r),n.head.appendChild(r))}function ca(n){return'[src="'+In(n)+'"]'}function Po(n){return"script[async]"+n}function f1(n,r,a){if(r.count++,r.instance===null)switch(r.type){case"style":var u=n.querySelector('style[data-href~="'+In(a.href)+'"]');if(u)return r.instance=u,Yt(u),u;var d=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return u=(n.ownerDocument||n).createElement("style"),Yt(u),nn(u,"style",d),Xu(u,a.precedence,n),r.instance=u;case"stylesheet":d=ua(a.href);var m=n.querySelector(ko(d));if(m)return r.state.loading|=4,r.instance=m,Yt(m),m;u=c1(a),(d=Qn.get(d))&&ep(u,d),m=(n.ownerDocument||n).createElement("link"),Yt(m);var b=m;return b._p=new Promise(function(A,j){b.onload=A,b.onerror=j}),nn(m,"link",u),r.state.loading|=4,Xu(m,a.precedence,n),r.instance=m;case"script":return m=ca(a.src),(d=n.querySelector(Po(m)))?(r.instance=d,Yt(d),d):(u=a,(d=Qn.get(m))&&(u=y({},a),tp(u,d)),n=n.ownerDocument||n,d=n.createElement("script"),Yt(d),nn(d,"link",u),n.head.appendChild(d),r.instance=d);case"void":return null;default:throw Error(s(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(u=r.instance,r.state.loading|=4,Xu(u,a.precedence,n));return r.instance}function Xu(n,r,a){for(var u=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=u.length?u[u.length-1]:null,m=d,b=0;b<u.length;b++){var A=u[b];if(A.dataset.precedence===r)m=A;else if(m!==d)break}m?m.parentNode.insertBefore(n,m.nextSibling):(r=a.nodeType===9?a.head:a,r.insertBefore(n,r.firstChild))}function ep(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.title==null&&(n.title=r.title)}function tp(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.integrity==null&&(n.integrity=r.integrity)}var Wu=null;function d1(n,r,a){if(Wu===null){var u=new Map,d=Wu=new Map;d.set(a,u)}else d=Wu,u=d.get(a),u||(u=new Map,d.set(a,u));if(u.has(n))return u;for(u.set(n,null),a=a.getElementsByTagName(n),d=0;d<a.length;d++){var m=a[d];if(!(m[Qa]||m[Zt]||n==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var b=m.getAttribute(r)||"";b=n+b;var A=u.get(b);A?A.push(m):u.set(b,[m])}}return u}function h1(n,r,a){n=n.ownerDocument||n,n.head.insertBefore(a,r==="title"?n.querySelector("head > title"):null)}function IA(n,r,a){if(a===1||r.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return n=r.disabled,typeof r.precedence=="string"&&n==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function p1(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function FA(n,r,a,u){if(a.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var d=ua(u.href),m=r.querySelector(ko(d));if(m){r=m._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(n.count++,n=Qu.bind(n),r.then(n,n)),a.state.loading|=4,a.instance=m,Yt(m);return}m=r.ownerDocument||r,u=c1(u),(d=Qn.get(d))&&ep(u,d),m=m.createElement("link"),Yt(m);var b=m;b._p=new Promise(function(A,j){b.onload=A,b.onerror=j}),nn(m,"link",u),a.instance=m}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(a,r),(r=a.state.preload)&&(a.state.loading&3)===0&&(n.count++,a=Qu.bind(n),r.addEventListener("load",a),r.addEventListener("error",a))}}var np=0;function qA(n,r){return n.stylesheets&&n.count===0&&Ju(n,n.stylesheets),0<n.count||0<n.imgCount?function(a){var u=setTimeout(function(){if(n.stylesheets&&Ju(n,n.stylesheets),n.unsuspend){var m=n.unsuspend;n.unsuspend=null,m()}},6e4+r);0<n.imgBytes&&np===0&&(np=62500*EA());var d=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Ju(n,n.stylesheets),n.unsuspend)){var m=n.unsuspend;n.unsuspend=null,m()}},(n.imgBytes>np?50:800)+r);return n.unsuspend=a,function(){n.unsuspend=null,clearTimeout(u),clearTimeout(d)}}:null}function Qu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ju(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Zu=null;function Ju(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Zu=new Map,r.forEach(KA,n),Zu=null,Qu.call(n))}function KA(n,r){if(!(r.state.loading&4)){var a=Zu.get(n);if(a)var u=a.get(null);else{a=new Map,Zu.set(n,a);for(var d=n.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<d.length;m++){var b=d[m];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(a.set(b.dataset.precedence,b),u=b)}u&&a.set(null,u)}d=r.instance,b=d.getAttribute("data-precedence"),m=a.get(b)||u,m===u&&a.set(null,d),a.set(b,d),this.count++,u=Qu.bind(this),d.addEventListener("load",u),d.addEventListener("error",u),m?m.parentNode.insertBefore(d,m.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(d,n.firstChild)),r.state.loading|=4}}var jo={$$typeof:R,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function GA(n,r,a,u,d,m,b,A,j){this.tag=1,this.containerInfo=n,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=Qf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qf(0),this.hiddenUpdates=Qf(null),this.identifierPrefix=u,this.onUncaughtError=d,this.onCaughtError=m,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function m1(n,r,a,u,d,m,b,A,j,H,te,re){return n=new GA(n,r,a,b,j,H,te,re,A),r=1,m===!0&&(r|=24),m=Dn(3,null,null,r),n.current=m,m.stateNode=n,r=kd(),r.refCount++,n.pooledCache=r,r.refCount++,m.memoizedState={element:u,isDehydrated:a,cache:r},Ud(m),n}function g1(n){return n?(n=$s,n):$s}function y1(n,r,a,u,d,m){d=g1(d),u.context===null?u.context=d:u.pendingContext=d,u=br(r),u.payload={element:a},m=m===void 0?null:m,m!==null&&(u.callback=m),a=Sr(n,u,r),a!==null&&(wn(a,n,r),mo(a,n,r))}function v1(n,r){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var a=n.retryLane;n.retryLane=a!==0&&a<r?a:r}}function ip(n,r){v1(n,r),(n=n.alternate)&&v1(n,r)}function b1(n){if(n.tag===13||n.tag===31){var r=Wr(n,67108864);r!==null&&wn(r,n,67108864),ip(n,67108864)}}function S1(n){if(n.tag===13||n.tag===31){var r=kn();r=Zf(r);var a=Wr(n,r);a!==null&&wn(a,n,r),ip(n,r)}}var ec=!0;function YA(n,r,a,u){var d=P.T;P.T=null;var m=I.p;try{I.p=2,rp(n,r,a,u)}finally{I.p=m,P.T=d}}function XA(n,r,a,u){var d=P.T;P.T=null;var m=I.p;try{I.p=8,rp(n,r,a,u)}finally{I.p=m,P.T=d}}function rp(n,r,a,u){if(ec){var d=sp(u);if(d===null)Fh(n,r,u,tc,a),C1(n,u);else if(QA(d,n,r,a,u))u.stopPropagation();else if(C1(n,u),r&4&&-1<WA.indexOf(n)){for(;d!==null;){var m=Ds(d);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var b=qr(m.pendingLanes);if(b!==0){var A=m;for(A.pendingLanes|=2,A.entangledLanes|=2;b;){var j=1<<31-ln(b);A.entanglements[1]|=j,b&=~j}Ti(m),(Ge&6)===0&&(ju=ze()+500,_o(0))}}break;case 31:case 13:A=Wr(m,2),A!==null&&wn(A,m,2),Uu(),ip(m,2)}if(m=sp(u),m===null&&Fh(n,r,u,tc,a),m===d)break;d=m}d!==null&&u.stopPropagation()}else Fh(n,r,u,null,a)}}function sp(n){return n=od(n),ap(n)}var tc=null;function ap(n){if(tc=null,n=Ms(n),n!==null){var r=l(n);if(r===null)n=null;else{var a=r.tag;if(a===13){if(n=c(r),n!==null)return n;n=null}else if(a===31){if(n=f(r),n!==null)return n;n=null}else if(a===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null)}}return tc=n,null}function x1(n){switch(n){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(ji()){case gt:return 2;case $e:return 8;case Ct:case It:return 32;case On:return 268435456;default:return 32}default:return 32}}var op=!1,_r=null,Lr=null,Nr=null,Bo=new Map,Uo=new Map,zr=[],WA="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 C1(n,r){switch(n){case"focusin":case"focusout":_r=null;break;case"dragenter":case"dragleave":Lr=null;break;case"mouseover":case"mouseout":Nr=null;break;case"pointerover":case"pointerout":Bo.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Uo.delete(r.pointerId)}}function Vo(n,r,a,u,d,m){return n===null||n.nativeEvent!==m?(n={blockedOn:r,domEventName:a,eventSystemFlags:u,nativeEvent:m,targetContainers:[d]},r!==null&&(r=Ds(r),r!==null&&b1(r)),n):(n.eventSystemFlags|=u,r=n.targetContainers,d!==null&&r.indexOf(d)===-1&&r.push(d),n)}function QA(n,r,a,u,d){switch(r){case"focusin":return _r=Vo(_r,n,r,a,u,d),!0;case"dragenter":return Lr=Vo(Lr,n,r,a,u,d),!0;case"mouseover":return Nr=Vo(Nr,n,r,a,u,d),!0;case"pointerover":var m=d.pointerId;return Bo.set(m,Vo(Bo.get(m)||null,n,r,a,u,d)),!0;case"gotpointercapture":return m=d.pointerId,Uo.set(m,Vo(Uo.get(m)||null,n,r,a,u,d)),!0}return!1}function T1(n){var r=Ms(n.target);if(r!==null){var a=l(r);if(a!==null){if(r=a.tag,r===13){if(r=c(a),r!==null){n.blockedOn=r,jy(n.priority,function(){S1(a)});return}}else if(r===31){if(r=f(a),r!==null){n.blockedOn=r,jy(n.priority,function(){S1(a)});return}}else if(r===3&&a.stateNode.current.memoizedState.isDehydrated){n.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}n.blockedOn=null}function nc(n){if(n.blockedOn!==null)return!1;for(var r=n.targetContainers;0<r.length;){var a=sp(n.nativeEvent);if(a===null){a=n.nativeEvent;var u=new a.constructor(a.type,a);ad=u,a.target.dispatchEvent(u),ad=null}else return r=Ds(a),r!==null&&b1(r),n.blockedOn=a,!1;r.shift()}return!0}function w1(n,r,a){nc(n)&&a.delete(r)}function ZA(){op=!1,_r!==null&&nc(_r)&&(_r=null),Lr!==null&&nc(Lr)&&(Lr=null),Nr!==null&&nc(Nr)&&(Nr=null),Bo.forEach(w1),Uo.forEach(w1)}function ic(n,r){n.blockedOn===r&&(n.blockedOn=null,op||(op=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,ZA)))}var rc=null;function E1(n){rc!==n&&(rc=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){rc===n&&(rc=null);for(var r=0;r<n.length;r+=3){var a=n[r],u=n[r+1],d=n[r+2];if(typeof u!="function"){if(ap(u||a)===null)continue;break}var m=Ds(a);m!==null&&(n.splice(r,3),r-=3,sh(m,{pending:!0,data:d,method:a.method,action:u},u,d))}}))}function fa(n){function r(j){return ic(j,n)}_r!==null&&ic(_r,n),Lr!==null&&ic(Lr,n),Nr!==null&&ic(Nr,n),Bo.forEach(r),Uo.forEach(r);for(var a=0;a<zr.length;a++){var u=zr[a];u.blockedOn===n&&(u.blockedOn=null)}for(;0<zr.length&&(a=zr[0],a.blockedOn===null);)T1(a),a.blockedOn===null&&zr.shift();if(a=(n.ownerDocument||n).$$reactFormReplay,a!=null)for(u=0;u<a.length;u+=3){var d=a[u],m=a[u+1],b=d[vn]||null;if(typeof m=="function")b||E1(a);else if(b){var A=null;if(m&&m.hasAttribute("formAction")){if(d=m,b=m[vn]||null)A=b.formAction;else if(ap(d)!==null)continue}else A=b.action;typeof A=="function"?a[u+1]=A:(a.splice(u,3),u-=3),E1(a)}}}function R1(){function n(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(b){return d=b})},focusReset:"manual",scroll:"manual"})}function r(){d!==null&&(d(),d=null),u||setTimeout(a,20)}function a(){if(!u&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,d=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(a,100),function(){u=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),d!==null&&(d(),d=null)}}}function lp(n){this._internalRoot=n}sc.prototype.render=lp.prototype.render=function(n){var r=this._internalRoot;if(r===null)throw Error(s(409));var a=r.current,u=kn();y1(a,u,n,r,null,null)},sc.prototype.unmount=lp.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var r=n.containerInfo;y1(n.current,2,null,n,null,null),Uu(),r[Os]=null}};function sc(n){this._internalRoot=n}sc.prototype.unstable_scheduleHydration=function(n){if(n){var r=Py();n={blockedOn:null,target:n,priority:r};for(var a=0;a<zr.length&&r!==0&&r<zr[a].priority;a++);zr.splice(a,0,n),a===0&&T1(n)}};var A1=t.version;if(A1!=="19.2.3")throw Error(s(527,A1,"19.2.3"));I.findDOMNode=function(n){var r=n._reactInternals;if(r===void 0)throw typeof n.render=="function"?Error(s(188)):(n=Object.keys(n).join(","),Error(s(268,n)));return n=p(r),n=n!==null?g(n):null,n=n===null?null:n.stateNode,n};var JA={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ac=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ac.isDisabled&&ac.supportsFiber)try{$n=ac.inject(JA),Qt=ac}catch{}}return Ho.createRoot=function(n,r){if(!o(n))throw Error(s(299));var a=!1,u="",d=zv,m=kv,b=Pv;return r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(u=r.identifierPrefix),r.onUncaughtError!==void 0&&(d=r.onUncaughtError),r.onCaughtError!==void 0&&(m=r.onCaughtError),r.onRecoverableError!==void 0&&(b=r.onRecoverableError)),r=m1(n,1,!1,null,null,a,u,null,d,m,b,R1),n[Os]=r.current,Ih(n),new lp(r)},Ho.hydrateRoot=function(n,r,a){if(!o(n))throw Error(s(299));var u=!1,d="",m=zv,b=kv,A=Pv,j=null;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(m=a.onUncaughtError),a.onCaughtError!==void 0&&(b=a.onCaughtError),a.onRecoverableError!==void 0&&(A=a.onRecoverableError),a.formState!==void 0&&(j=a.formState)),r=m1(n,1,!0,r,a??null,u,d,j,m,b,A,R1),r.context=g1(null),a=r.current,u=kn(),u=Zf(u),d=br(u),d.callback=null,Sr(a,d,u),a=u,r.current.lanes=a,Wa(r,a),Ti(r),n[Os]=r.current,Ih(n),new sc(r)},Ho.version="19.2.3",Ho}var j1;function uO(){if(j1)return fp.exports;j1=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(),fp.exports=lO(),fp.exports}var cO=uO();const fO=cg(cO),hl={black:"#000",white:"#fff"},da={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ha={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},pa={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ma={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ga={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Io={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},dO={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 or(e,...t){const i=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(s=>i.searchParams.append("args[]",s)),`Minified MUI error #${e}; visit ${i} for the full message.`}const _i="$$material";function Uc(){return Uc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Uc.apply(null,arguments)}function hO(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 pO(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 mO=(function(){function e(i){var s=this;this._insertTag=function(o){var l;s.tags.length===0?s.insertionPoint?l=s.insertionPoint.nextSibling:s.prepend?l=s.container.firstChild:l=s.before:l=s.tags[s.tags.length-1].nextSibling,s.container.insertBefore(o,l),s.tags.push(o)},this.isSpeedy=i.speedy===void 0?!0:i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(s){s.forEach(this._insertTag)},t.insert=function(s){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(pO(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var l=hO(o);try{l.insertRule(s,l.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(s));this.ctr++},t.flush=function(){this.tags.forEach(function(s){var o;return(o=s.parentNode)==null?void 0:o.removeChild(s)}),this.tags=[],this.ctr=0},e})(),cn="-ms-",Vc="-moz-",Ye="-webkit-",aT="comm",fg="rule",dg="decl",gO="@import",oT="@keyframes",yO="@layer",vO=Math.abs,pf=String.fromCharCode,bO=Object.assign;function SO(e,t){return an(e,0)^45?(((t<<2^an(e,0))<<2^an(e,1))<<2^an(e,2))<<2^an(e,3):0}function lT(e){return e.trim()}function xO(e,t){return(e=t.exec(e))?e[0]:e}function Xe(e,t,i){return e.replace(t,i)}function im(e,t){return e.indexOf(t)}function an(e,t){return e.charCodeAt(t)|0}function pl(e,t,i){return e.slice(t,i)}function Ai(e){return e.length}function hg(e){return e.length}function oc(e,t){return t.push(e),e}function CO(e,t){return e.map(t).join("")}var mf=1,Na=1,uT=0,An=0,$t=0,Va="";function gf(e,t,i,s,o,l,c){return{value:e,root:t,parent:i,type:s,props:o,children:l,line:mf,column:Na,length:c,return:""}}function Fo(e,t){return bO(gf("",null,null,"",null,null,0),e,{length:-e.length},t)}function TO(){return $t}function wO(){return $t=An>0?an(Va,--An):0,Na--,$t===10&&(Na=1,mf--),$t}function Bn(){return $t=An<uT?an(Va,An++):0,Na++,$t===10&&(Na=1,mf++),$t}function Li(){return an(Va,An)}function wc(){return An}function Ol(e,t){return pl(Va,e,t)}function ml(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 cT(e){return mf=Na=1,uT=Ai(Va=e),An=0,[]}function fT(e){return Va="",e}function Ec(e){return lT(Ol(An-1,rm(e===91?e+2:e===40?e+1:e)))}function EO(e){for(;($t=Li())&&$t<33;)Bn();return ml(e)>2||ml($t)>3?"":" "}function RO(e,t){for(;--t&&Bn()&&!($t<48||$t>102||$t>57&&$t<65||$t>70&&$t<97););return Ol(e,wc()+(t<6&&Li()==32&&Bn()==32))}function rm(e){for(;Bn();)switch($t){case e:return An;case 34:case 39:e!==34&&e!==39&&rm($t);break;case 40:e===41&&rm(e);break;case 92:Bn();break}return An}function AO(e,t){for(;Bn()&&e+$t!==57;)if(e+$t===84&&Li()===47)break;return"/*"+Ol(t,An-1)+"*"+pf(e===47?e:Bn())}function OO(e){for(;!ml(Li());)Bn();return Ol(e,An)}function MO(e){return fT(Rc("",null,null,null,[""],e=cT(e),0,[0],e))}function Rc(e,t,i,s,o,l,c,f,h){for(var p=0,g=0,y=c,v=0,x=0,S=0,C=1,T=1,D=1,L=0,R="",w=o,M=l,N=s,k=R;T;)switch(S=L,L=Bn()){case 40:if(S!=108&&an(k,y-1)==58){im(k+=Xe(Ec(L),"&","&\f"),"&\f")!=-1&&(D=-1);break}case 34:case 39:case 91:k+=Ec(L);break;case 9:case 10:case 13:case 32:k+=EO(S);break;case 92:k+=RO(wc()-1,7);continue;case 47:switch(Li()){case 42:case 47:oc(DO(AO(Bn(),wc()),t,i),h);break;default:k+="/"}break;case 123*C:f[p++]=Ai(k)*D;case 125*C:case 59:case 0:switch(L){case 0:case 125:T=0;case 59+g:D==-1&&(k=Xe(k,/\f/g,"")),x>0&&Ai(k)-y&&oc(x>32?U1(k+";",s,i,y-1):U1(Xe(k," ","")+";",s,i,y-2),h);break;case 59:k+=";";default:if(oc(N=B1(k,t,i,p,g,o,f,R,w=[],M=[],y),l),L===123)if(g===0)Rc(k,t,N,N,w,l,y,f,M);else switch(v===99&&an(k,3)===110?100:v){case 100:case 108:case 109:case 115:Rc(e,N,N,s&&oc(B1(e,N,N,0,0,o,f,R,o,w=[],y),M),o,M,y,f,s?w:M);break;default:Rc(k,N,N,N,[""],M,0,f,M)}}p=g=x=0,C=D=1,R=k="",y=c;break;case 58:y=1+Ai(k),x=S;default:if(C<1){if(L==123)--C;else if(L==125&&C++==0&&wO()==125)continue}switch(k+=pf(L),L*C){case 38:D=g>0?1:(k+="\f",-1);break;case 44:f[p++]=(Ai(k)-1)*D,D=1;break;case 64:Li()===45&&(k+=Ec(Bn())),v=Li(),g=y=Ai(R=k+=OO(wc())),L++;break;case 45:S===45&&Ai(k)==2&&(C=0)}}return l}function B1(e,t,i,s,o,l,c,f,h,p,g){for(var y=o-1,v=o===0?l:[""],x=hg(v),S=0,C=0,T=0;S<s;++S)for(var D=0,L=pl(e,y+1,y=vO(C=c[S])),R=e;D<x;++D)(R=lT(C>0?v[D]+" "+L:Xe(L,/&\f/g,v[D])))&&(h[T++]=R);return gf(e,t,i,o===0?fg:f,h,p,g)}function DO(e,t,i){return gf(e,t,i,aT,pf(TO()),pl(e,2,-2),0)}function U1(e,t,i,s){return gf(e,t,i,dg,pl(e,0,s),pl(e,s+1,-1),s)}function Ma(e,t){for(var i="",s=hg(e),o=0;o<s;o++)i+=t(e[o],o,e,t)||"";return i}function _O(e,t,i,s){switch(e.type){case yO:if(e.children.length)break;case gO:case dg:return e.return=e.return||e.value;case aT:return"";case oT:return e.return=e.value+"{"+Ma(e.children,s)+"}";case fg:e.value=e.props.join(",")}return Ai(i=Ma(e.children,s))?e.return=e.value+"{"+i+"}":""}function LO(e){var t=hg(e);return function(i,s,o,l){for(var c="",f=0;f<t;f++)c+=e[f](i,s,o,l)||"";return c}}function NO(e){return function(t){t.root||(t=t.return)&&e(t)}}function dT(e){var t=Object.create(null);return function(i){return t[i]===void 0&&(t[i]=e(i)),t[i]}}var zO=function(t,i,s){for(var o=0,l=0;o=l,l=Li(),o===38&&l===12&&(i[s]=1),!ml(l);)Bn();return Ol(t,An)},kO=function(t,i){var s=-1,o=44;do switch(ml(o)){case 0:o===38&&Li()===12&&(i[s]=1),t[s]+=zO(An-1,i,s);break;case 2:t[s]+=Ec(o);break;case 4:if(o===44){t[++s]=Li()===58?"&\f":"",i[s]=t[s].length;break}default:t[s]+=pf(o)}while(o=Bn());return t},PO=function(t,i){return fT(kO(cT(t),i))},V1=new WeakMap,jO=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var i=t.value,s=t.parent,o=t.column===s.column&&t.line===s.line;s.type!=="rule";)if(s=s.parent,!s)return;if(!(t.props.length===1&&i.charCodeAt(0)!==58&&!V1.get(s))&&!o){V1.set(t,!0);for(var l=[],c=PO(i,l),f=s.props,h=0,p=0;h<c.length;h++)for(var g=0;g<f.length;g++,p++)t.props[p]=l[h]?c[h].replace(/&\f/g,f[g]):f[g]+" "+c[h]}}},BO=function(t){if(t.type==="decl"){var i=t.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(t.return="",t.value="")}};function hT(e,t){switch(SO(e,t)){case 5103:return Ye+"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 Ye+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ye+e+Vc+e+cn+e+e;case 6828:case 4268:return Ye+e+cn+e+e;case 6165:return Ye+e+cn+"flex-"+e+e;case 5187:return Ye+e+Xe(e,/(\w+).+(:[^]+)/,Ye+"box-$1$2"+cn+"flex-$1$2")+e;case 5443:return Ye+e+cn+"flex-item-"+Xe(e,/flex-|-self/,"")+e;case 4675:return Ye+e+cn+"flex-line-pack"+Xe(e,/align-content|flex-|-self/,"")+e;case 5548:return Ye+e+cn+Xe(e,"shrink","negative")+e;case 5292:return Ye+e+cn+Xe(e,"basis","preferred-size")+e;case 6060:return Ye+"box-"+Xe(e,"-grow","")+Ye+e+cn+Xe(e,"grow","positive")+e;case 4554:return Ye+Xe(e,/([^-])(transform)/g,"$1"+Ye+"$2")+e;case 6187:return Xe(Xe(Xe(e,/(zoom-|grab)/,Ye+"$1"),/(image-set)/,Ye+"$1"),e,"")+e;case 5495:case 3959:return Xe(e,/(image-set\([^]*)/,Ye+"$1$`$1");case 4968:return Xe(Xe(e,/(.+:)(flex-)?(.*)/,Ye+"box-pack:$3"+cn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ye+e+e;case 4095:case 3583:case 4068:case 2532:return Xe(e,/(.+)-inline(.+)/,Ye+"$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(Ai(e)-1-t>6)switch(an(e,t+1)){case 109:if(an(e,t+4)!==45)break;case 102:return Xe(e,/(.+:)(.+)-([^]+)/,"$1"+Ye+"$2-$3$1"+Vc+(an(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~im(e,"stretch")?hT(Xe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(an(e,t+1)!==115)break;case 6444:switch(an(e,Ai(e)-3-(~im(e,"!important")&&10))){case 107:return Xe(e,":",":"+Ye)+e;case 101:return Xe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ye+(an(e,14)===45?"inline-":"")+"box$3$1"+Ye+"$2$3$1"+cn+"$2box$3")+e}break;case 5936:switch(an(e,t+11)){case 114:return Ye+e+cn+Xe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ye+e+cn+Xe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ye+e+cn+Xe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ye+e+cn+e+e}return e}var UO=function(t,i,s,o){if(t.length>-1&&!t.return)switch(t.type){case dg:t.return=hT(t.value,t.length);break;case oT:return Ma([Fo(t,{value:Xe(t.value,"@","@"+Ye)})],o);case fg:if(t.length)return CO(t.props,function(l){switch(xO(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ma([Fo(t,{props:[Xe(l,/:(read-\w+)/,":"+Vc+"$1")]})],o);case"::placeholder":return Ma([Fo(t,{props:[Xe(l,/:(plac\w+)/,":"+Ye+"input-$1")]}),Fo(t,{props:[Xe(l,/:(plac\w+)/,":"+Vc+"$1")]}),Fo(t,{props:[Xe(l,/:(plac\w+)/,cn+"input-$1")]})],o)}return""})}},VO=[UO],$O=function(t){var i=t.key;if(i==="css"){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(C){var T=C.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(C),C.setAttribute("data-s",""))})}var o=t.stylisPlugins||VO,l={},c,f=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(C){for(var T=C.getAttribute("data-emotion").split(" "),D=1;D<T.length;D++)l[T[D]]=!0;f.push(C)});var h,p=[jO,BO];{var g,y=[_O,NO(function(C){g.insert(C)})],v=LO(p.concat(o,y)),x=function(T){return Ma(MO(T),v)};h=function(T,D,L,R){g=L,x(T?T+"{"+D.styles+"}":D.styles),R&&(S.inserted[D.name]=!0)}}var S={key:i,sheet:new mO({key:i,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:l,registered:{},insert:h};return S.sheet.hydrate(f),S},mp={exports:{}},We={};var $1;function HO(){if($1)return We;$1=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,s=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,L=e?Symbol.for("react.scope"):60119;function R(M){if(typeof M=="object"&&M!==null){var N=M.$$typeof;switch(N){case t:switch(M=M.type,M){case h:case p:case s:case l:case o:case y:return M;default:switch(M=M&&M.$$typeof,M){case f:case g:case S:case x:case c:return M;default:return N}}case i:return N}}}function w(M){return R(M)===p}return We.AsyncMode=h,We.ConcurrentMode=p,We.ContextConsumer=f,We.ContextProvider=c,We.Element=t,We.ForwardRef=g,We.Fragment=s,We.Lazy=S,We.Memo=x,We.Portal=i,We.Profiler=l,We.StrictMode=o,We.Suspense=y,We.isAsyncMode=function(M){return w(M)||R(M)===h},We.isConcurrentMode=w,We.isContextConsumer=function(M){return R(M)===f},We.isContextProvider=function(M){return R(M)===c},We.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===t},We.isForwardRef=function(M){return R(M)===g},We.isFragment=function(M){return R(M)===s},We.isLazy=function(M){return R(M)===S},We.isMemo=function(M){return R(M)===x},We.isPortal=function(M){return R(M)===i},We.isProfiler=function(M){return R(M)===l},We.isStrictMode=function(M){return R(M)===o},We.isSuspense=function(M){return R(M)===y},We.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===s||M===p||M===l||M===o||M===y||M===v||typeof M=="object"&&M!==null&&(M.$$typeof===S||M.$$typeof===x||M.$$typeof===c||M.$$typeof===f||M.$$typeof===g||M.$$typeof===T||M.$$typeof===D||M.$$typeof===L||M.$$typeof===C)},We.typeOf=R,We}var H1;function IO(){return H1||(H1=1,mp.exports=HO()),mp.exports}var gp,I1;function FO(){if(I1)return gp;I1=1;var e=IO(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[e.ForwardRef]=s,l[e.Memo]=o;function c(S){return e.isMemo(S)?o:l[S.$$typeof]||t}var f=Object.defineProperty,h=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,v=Object.prototype;function x(S,C,T){if(typeof C!="string"){if(v){var D=y(C);D&&D!==v&&x(S,D,T)}var L=h(C);p&&(L=L.concat(p(C)));for(var R=c(S),w=c(C),M=0;M<L.length;++M){var N=L[M];if(!i[N]&&!(T&&T[N])&&!(w&&w[N])&&!(R&&R[N])){var k=g(C,N);try{f(S,N,k)}catch{}}}}return S}return gp=x,gp}FO();var qO=!0;function pT(e,t,i){var s="";return i.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(s+=o+" ")}),s}var pg=function(t,i,s){var o=t.key+"-"+i.name;(s===!1||qO===!1)&&t.registered[o]===void 0&&(t.registered[o]=i.styles)},mg=function(t,i,s){pg(t,i,s);var o=t.key+"-"+i.name;if(t.inserted[i.name]===void 0){var l=i;do t.insert(i===l?"."+o:"",l,t.sheet,!0),l=l.next;while(l!==void 0)}};function KO(e){for(var t=0,i,s=0,o=e.length;o>=4;++s,o-=4)i=e.charCodeAt(s)&255|(e.charCodeAt(++s)&255)<<8|(e.charCodeAt(++s)&255)<<16|(e.charCodeAt(++s)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,t=(i&65535)*1540483477+((i>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(s+2)&255)<<16;case 2:t^=(e.charCodeAt(s+1)&255)<<8;case 1:t^=e.charCodeAt(s)&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 GO={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},YO=/[A-Z]|^ms/g,XO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mT=function(t){return t.charCodeAt(1)===45},F1=function(t){return t!=null&&typeof t!="boolean"},yp=dT(function(e){return mT(e)?e:e.replace(YO,"-$&").toLowerCase()}),q1=function(t,i){switch(t){case"animation":case"animationName":if(typeof i=="string")return i.replace(XO,function(s,o,l){return Oi={name:o,styles:l,next:Oi},o})}return GO[t]!==1&&!mT(t)&&typeof i=="number"&&i!==0?i+"px":i};function gl(e,t,i){if(i==null)return"";var s=i;if(s.__emotion_styles!==void 0)return s;switch(typeof i){case"boolean":return"";case"object":{var o=i;if(o.anim===1)return Oi={name:o.name,styles:o.styles,next:Oi},o.name;var l=i;if(l.styles!==void 0){var c=l.next;if(c!==void 0)for(;c!==void 0;)Oi={name:c.name,styles:c.styles,next:Oi},c=c.next;var f=l.styles+";";return f}return WO(e,t,i)}case"function":{if(e!==void 0){var h=Oi,p=i(e);return Oi=h,gl(e,t,p)}break}}var g=i;if(t==null)return g;var y=t[g];return y!==void 0?y:g}function WO(e,t,i){var s="";if(Array.isArray(i))for(var o=0;o<i.length;o++)s+=gl(e,t,i[o])+";";else for(var l in i){var c=i[l];if(typeof c!="object"){var f=c;t!=null&&t[f]!==void 0?s+=l+"{"+t[f]+"}":F1(f)&&(s+=yp(l)+":"+q1(l,f)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var h=0;h<c.length;h++)F1(c[h])&&(s+=yp(l)+":"+q1(l,c[h])+";");else{var p=gl(e,t,c);switch(l){case"animation":case"animationName":{s+=yp(l)+":"+p+";";break}default:s+=l+"{"+p+"}"}}}return s}var K1=/label:\s*([^\s;{]+)\s*(;|$)/g,Oi;function Ml(e,t,i){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var s=!0,o="";Oi=void 0;var l=e[0];if(l==null||l.raw===void 0)s=!1,o+=gl(i,t,l);else{var c=l;o+=c[0]}for(var f=1;f<e.length;f++)if(o+=gl(i,t,e[f]),s){var h=l;o+=h[f]}K1.lastIndex=0;for(var p="",g;(g=K1.exec(o))!==null;)p+="-"+g[1];var y=KO(o)+p;return{name:y,styles:o,next:Oi}}var QO=function(t){return t()},gT=nm.useInsertionEffect?nm.useInsertionEffect:!1,yT=gT||QO,G1=gT||E.useLayoutEffect,vT=E.createContext(typeof HTMLElement<"u"?$O({key:"css"}):null);vT.Provider;var gg=function(t){return E.forwardRef(function(i,s){var o=E.useContext(vT);return t(i,o,s)})},Dl=E.createContext({}),yg={}.hasOwnProperty,sm="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ZO=function(t,i){var s={};for(var o in i)yg.call(i,o)&&(s[o]=i[o]);return s[sm]=t,s},JO=function(t){var i=t.cache,s=t.serialized,o=t.isStringTag;return pg(i,s,o),yT(function(){return mg(i,s,o)}),null},eM=gg(function(e,t,i){var s=e.css;typeof s=="string"&&t.registered[s]!==void 0&&(s=t.registered[s]);var o=e[sm],l=[s],c="";typeof e.className=="string"?c=pT(t.registered,l,e.className):e.className!=null&&(c=e.className+" ");var f=Ml(l,void 0,E.useContext(Dl));c+=t.key+"-"+f.name;var h={};for(var p in e)yg.call(e,p)&&p!=="css"&&p!==sm&&(h[p]=e[p]);return h.className=c,i&&(h.ref=i),E.createElement(E.Fragment,null,E.createElement(JO,{cache:t,serialized:f,isStringTag:typeof o=="string"}),E.createElement(o,h))}),tM=eM,Y1=function(t,i){var s=arguments;if(i==null||!yg.call(i,"css"))return E.createElement.apply(void 0,s);var o=s.length,l=new Array(o);l[0]=tM,l[1]=ZO(t,i);for(var c=2;c<o;c++)l[c]=s[c];return E.createElement.apply(null,l)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Y1||(Y1={}));var nM=gg(function(e,t){var i=e.styles,s=Ml([i],void 0,E.useContext(Dl)),o=E.useRef();return G1(function(){var l=t.key+"-global",c=new t.sheet.constructor({key:l,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),f=!1,h=document.querySelector('style[data-emotion="'+l+" "+s.name+'"]');return t.sheet.tags.length&&(c.before=t.sheet.tags[0]),h!==null&&(f=!0,h.setAttribute("data-emotion",l),c.hydrate([h])),o.current=[c,f],function(){c.flush()}},[t]),G1(function(){var l=o.current,c=l[0],f=l[1];if(f){l[1]=!1;return}if(s.next!==void 0&&mg(t,s.next,!0),c.tags.length){var h=c.tags[c.tags.length-1].nextElementSibling;c.before=h,c.flush()}t.insert("",s,c,!1)},[t,s.name]),null});function vg(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return Ml(t)}function _l(){var e=vg.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 iM=/^((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)-.*))$/,rM=dT(function(e){return iM.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),sM=rM,aM=function(t){return t!=="theme"},X1=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?sM:aM},W1=function(t,i,s){var o;if(i){var l=i.shouldForwardProp;o=t.__emotion_forwardProp&&l?function(c){return t.__emotion_forwardProp(c)&&l(c)}:l}return typeof o!="function"&&s&&(o=t.__emotion_forwardProp),o},oM=function(t){var i=t.cache,s=t.serialized,o=t.isStringTag;return pg(i,s,o),yT(function(){return mg(i,s,o)}),null},lM=function e(t,i){var s=t.__emotion_real===t,o=s&&t.__emotion_base||t,l,c;i!==void 0&&(l=i.label,c=i.target);var f=W1(t,i,s),h=f||X1(o),p=!h("as");return function(){var g=arguments,y=s&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(l!==void 0&&y.push("label:"+l+";"),g[0]==null||g[0].raw===void 0)y.push.apply(y,g);else{var v=g[0];y.push(v[0]);for(var x=g.length,S=1;S<x;S++)y.push(g[S],v[S])}var C=gg(function(T,D,L){var R=p&&T.as||o,w="",M=[],N=T;if(T.theme==null){N={};for(var k in T)N[k]=T[k];N.theme=E.useContext(Dl)}typeof T.className=="string"?w=pT(D.registered,M,T.className):T.className!=null&&(w=T.className+" ");var B=Ml(y.concat(M),D.registered,N);w+=D.key+"-"+B.name,c!==void 0&&(w+=" "+c);var G=p&&f===void 0?X1(R):h,Q={};for(var J in T)p&&J==="as"||G(J)&&(Q[J]=T[J]);return Q.className=w,L&&(Q.ref=L),E.createElement(E.Fragment,null,E.createElement(oM,{cache:D,serialized:B,isStringTag:typeof R=="string"}),E.createElement(R,Q))});return C.displayName=l!==void 0?l:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",C.defaultProps=t.defaultProps,C.__emotion_real=C,C.__emotion_base=o,C.__emotion_styles=y,C.__emotion_forwardProp=f,Object.defineProperty(C,"toString",{value:function(){return"."+c}}),C.withComponent=function(T,D){var L=e(T,Uc({},i,D,{shouldForwardProp:W1(C,D,!0)}));return L.apply(void 0,y)},C}},uM=["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"],am=lM.bind(null);uM.forEach(function(e){am[e]=am(e)});function cM(e){return e==null||Object.keys(e).length===0}function bT(e){const{styles:t,defaultTheme:i={}}=e,s=typeof t=="function"?o=>t(cM(o)?i:o):t;return _.jsx(nM,{styles:s})}function ST(e,t){return am(e,t)}function fM(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Q1=[];function Br(e){return Q1[0]=e,Ml(Q1)}var vp={exports:{}},st={};var Z1;function dM(){if(Z1)return st;Z1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");function S(C){if(typeof C=="object"&&C!==null){var T=C.$$typeof;switch(T){case e:switch(C=C.type,C){case i:case o:case s:case h:case p:case v:return C;default:switch(C=C&&C.$$typeof,C){case c:case f:case y:case g:return C;case l:return C;default:return T}}case t:return T}}}return st.ContextConsumer=l,st.ContextProvider=c,st.Element=e,st.ForwardRef=f,st.Fragment=i,st.Lazy=y,st.Memo=g,st.Portal=t,st.Profiler=o,st.StrictMode=s,st.Suspense=h,st.SuspenseList=p,st.isContextConsumer=function(C){return S(C)===l},st.isContextProvider=function(C){return S(C)===c},st.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},st.isForwardRef=function(C){return S(C)===f},st.isFragment=function(C){return S(C)===i},st.isLazy=function(C){return S(C)===y},st.isMemo=function(C){return S(C)===g},st.isPortal=function(C){return S(C)===t},st.isProfiler=function(C){return S(C)===o},st.isStrictMode=function(C){return S(C)===s},st.isSuspense=function(C){return S(C)===h},st.isSuspenseList=function(C){return S(C)===p},st.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===i||C===o||C===s||C===h||C===p||typeof C=="object"&&C!==null&&(C.$$typeof===y||C.$$typeof===g||C.$$typeof===c||C.$$typeof===l||C.$$typeof===f||C.$$typeof===x||C.getModuleId!==void 0)},st.typeOf=S,st}var J1;function hM(){return J1||(J1=1,vp.exports=dM()),vp.exports}var xT=hM();function Mi(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 CT(e){if(E.isValidElement(e)||xT.isValidElementType(e)||!Mi(e))return e;const t={};return Object.keys(e).forEach(i=>{t[i]=CT(e[i])}),t}function Wt(e,t,i={clone:!0}){const s=i.clone?{...e}:e;return Mi(e)&&Mi(t)&&Object.keys(t).forEach(o=>{E.isValidElement(t[o])||xT.isValidElementType(t[o])?s[o]=t[o]:Mi(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Mi(e[o])?s[o]=Wt(e[o],t[o],i):i.clone?s[o]=Mi(t[o])?CT(t[o]):t[o]:s[o]=t[o]}),s}const pM=e=>{const t=Object.keys(e).map(i=>({key:i,val:e[i]}))||[];return t.sort((i,s)=>i.val-s.val),t.reduce((i,s)=>({...i,[s.key]:s.val}),{})};function mM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:s=5,...o}=e,l=pM(t),c=Object.keys(l);function f(v){return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${i})`}function h(v){return`@media (max-width:${(typeof t[v]=="number"?t[v]:v)-s/100}${i})`}function p(v,x){const S=c.indexOf(x);return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${i}) and (max-width:${(S!==-1&&typeof t[c[S]]=="number"?t[c[S]]:x)-s/100}${i})`}function g(v){return c.indexOf(v)+1<c.length?p(v,c[c.indexOf(v)+1]):f(v)}function y(v){const x=c.indexOf(v);return x===0?f(c[1]):x===c.length-1?h(c[x]):p(v,c[c.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:c,values:l,up:f,down:h,between:p,only:g,not:y,unit:i,...o}}function eS(e,t){if(!e.containerQueries)return t;const i=Object.keys(t).filter(s=>s.startsWith("@container")).sort((s,o)=>{const l=/min-width:\s*([0-9.]+)/;return+(s.match(l)?.[1]||0)-+(o.match(l)?.[1]||0)});return i.length?i.reduce((s,o)=>{const l=t[o];return delete s[o],s[o]=l,s},{...t}):t}function gM(e,t){return t==="@"||t.startsWith("@")&&(e.some(i=>t.startsWith(`@${i}`))||!!t.match(/^@\d/))}function yM(e,t){const i=t.match(/^@([^/]+)?\/?(.+)?$/);if(!i)return null;const[,s,o]=i,l=Number.isNaN(+s)?s||0:+s;return e.containerQueries(o).up(l)}function vM(e){const t=(l,c)=>l.replace("@media",c?`@container ${c}`:"@container");function i(l,c){l.up=(...f)=>t(e.breakpoints.up(...f),c),l.down=(...f)=>t(e.breakpoints.down(...f),c),l.between=(...f)=>t(e.breakpoints.between(...f),c),l.only=(...f)=>t(e.breakpoints.only(...f),c),l.not=(...f)=>{const h=t(e.breakpoints.not(...f),c);return h.includes("not all and")?h.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):h}}const s={},o=l=>(i(s,l),s);return i(o),{...e,containerQueries:o}}const bM={borderRadius:4};function sl(e,t){return t?Wt(e,t,{clone:!1}):e}const yf={xs:0,sm:600,md:900,lg:1200,xl:1536},tS={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${yf[e]}px)`},SM={containerQueries:e=>({up:t=>{let i=typeof t=="number"?t:yf[t]||t;return typeof i=="number"&&(i=`${i}px`),e?`@container ${e} (min-width:${i})`:`@container (min-width:${i})`}})};function mi(e,t,i){const s=e.theme||{};if(Array.isArray(t)){const l=s.breakpoints||tS;return t.reduce((c,f,h)=>(c[l.up(l.keys[h])]=i(t[h]),c),{})}if(typeof t=="object"){const l=s.breakpoints||tS;return Object.keys(t).reduce((c,f)=>{if(gM(l.keys,f)){const h=yM(s.containerQueries?s:SM,f);h&&(c[h]=i(t[f],f))}else if(Object.keys(l.values||yf).includes(f)){const h=l.up(f);c[h]=i(t[f],f)}else{const h=f;c[h]=t[h]}return c},{})}return i(t)}function TT(e={}){return e.keys?.reduce((i,s)=>{const o=e.up(s);return i[o]={},i},{})||{}}function om(e,t){return e.reduce((i,s)=>{const o=i[s];return(!o||Object.keys(o).length===0)&&delete i[s],i},t)}function xM(e,...t){const i=TT(e),s=[i,...t].reduce((o,l)=>Wt(o,l),{});return om(Object.keys(i),s)}function CM(e,t){if(typeof e!="object")return{};const i={},s=Object.keys(t);return Array.isArray(e)?s.forEach((o,l)=>{l<e.length&&(i[o]=!0)}):s.forEach(o=>{e[o]!=null&&(i[o]=!0)}),i}function bp({values:e,breakpoints:t,base:i}){const s=i||CM(e,t),o=Object.keys(s);if(o.length===0)return e;let l;return o.reduce((c,f,h)=>(Array.isArray(e)?(c[f]=e[h]!=null?e[h]:e[l],l=h):typeof e=="object"?(c[f]=e[f]!=null?e[f]:e[l],l=f):c[f]=e,c),{})}function be(e){if(typeof e!="string")throw new Error(or(7));return e.charAt(0).toUpperCase()+e.slice(1)}function vf(e,t,i=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&i){const s=`vars.${t}`.split(".").reduce((o,l)=>o&&o[l]?o[l]:null,e);if(s!=null)return s}return t.split(".").reduce((s,o)=>s&&s[o]!=null?s[o]:null,e)}function $c(e,t,i,s=i){let o;return typeof e=="function"?o=e(i):Array.isArray(e)?o=e[i]||s:o=vf(e,i)||s,t&&(o=t(o,s,e)),o}function Nt(e){const{prop:t,cssProperty:i=e.prop,themeKey:s,transform:o}=e,l=c=>{if(c[t]==null)return null;const f=c[t],h=c.theme,p=vf(h,s)||{};return mi(c,f,y=>{let v=$c(p,o,y);return y===v&&typeof y=="string"&&(v=$c(p,o,`${t}${y==="default"?"":be(y)}`,y)),i===!1?v:{[i]:v}})};return l.propTypes={},l.filterProps=[t],l}function TM(e){const t={};return i=>(t[i]===void 0&&(t[i]=e(i)),t[i])}const wM={m:"margin",p:"padding"},EM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},nS={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},RM=TM(e=>{if(e.length>2)if(nS[e])e=nS[e];else return[e];const[t,i]=e.split(""),s=wM[t],o=EM[i]||"";return Array.isArray(o)?o.map(l=>s+l):[s+o]}),bg=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Sg=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...bg,...Sg];function Ll(e,t,i,s){const o=vf(e,t,!0)??i;return typeof o=="number"||typeof o=="string"?l=>typeof l=="string"?l:typeof o=="string"?o.startsWith("var(")&&l===0?0:o.startsWith("var(")&&l===1?o:`calc(${l} * ${o})`:o*l:Array.isArray(o)?l=>{if(typeof l=="string")return l;const c=Math.abs(l),f=o[c];return l>=0?f:typeof f=="number"?-f:typeof f=="string"&&f.startsWith("var(")?`calc(-1 * ${f})`:`-${f}`}:typeof o=="function"?o:()=>{}}function bf(e){return Ll(e,"spacing",8)}function Rs(e,t){return typeof t=="string"||t==null?t:e(t)}function AM(e,t){return i=>e.reduce((s,o)=>(s[o]=Rs(t,i),s),{})}function OM(e,t,i,s){if(!t.includes(i))return null;const o=RM(i),l=AM(o,s),c=e[i];return mi(e,c,l)}function wT(e,t){const i=bf(e.theme);return Object.keys(e).map(s=>OM(e,t,s,i)).reduce(sl,{})}function Et(e){return wT(e,bg)}Et.propTypes={};Et.filterProps=bg;function Rt(e){return wT(e,Sg)}Rt.propTypes={};Rt.filterProps=Sg;function ET(e=8,t=bf({spacing:e})){if(e.mui)return e;const i=(...s)=>(s.length===0?[1]:s).map(l=>{const c=t(l);return typeof c=="number"?`${c}px`:c}).join(" ");return i.mui=!0,i}function Sf(...e){const t=e.reduce((s,o)=>(o.filterProps.forEach(l=>{s[l]=o}),s),{}),i=s=>Object.keys(s).reduce((o,l)=>t[l]?sl(o,t[l](s)):o,{});return i.propTypes={},i.filterProps=e.reduce((s,o)=>s.concat(o.filterProps),[]),i}function ei(e){return typeof e!="number"?e:`${e}px solid`}function ri(e,t){return Nt({prop:e,themeKey:"borders",transform:t})}const MM=ri("border",ei),DM=ri("borderTop",ei),_M=ri("borderRight",ei),LM=ri("borderBottom",ei),NM=ri("borderLeft",ei),zM=ri("borderColor"),kM=ri("borderTopColor"),PM=ri("borderRightColor"),jM=ri("borderBottomColor"),BM=ri("borderLeftColor"),UM=ri("outline",ei),VM=ri("outlineColor"),xf=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ll(e.theme,"shape.borderRadius",4),i=s=>({borderRadius:Rs(t,s)});return mi(e,e.borderRadius,i)}return null};xf.propTypes={};xf.filterProps=["borderRadius"];Sf(MM,DM,_M,LM,NM,zM,kM,PM,jM,BM,xf,UM,VM);const Cf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ll(e.theme,"spacing",8),i=s=>({gap:Rs(t,s)});return mi(e,e.gap,i)}return null};Cf.propTypes={};Cf.filterProps=["gap"];const Tf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ll(e.theme,"spacing",8),i=s=>({columnGap:Rs(t,s)});return mi(e,e.columnGap,i)}return null};Tf.propTypes={};Tf.filterProps=["columnGap"];const wf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ll(e.theme,"spacing",8),i=s=>({rowGap:Rs(t,s)});return mi(e,e.rowGap,i)}return null};wf.propTypes={};wf.filterProps=["rowGap"];const $M=Nt({prop:"gridColumn"}),HM=Nt({prop:"gridRow"}),IM=Nt({prop:"gridAutoFlow"}),FM=Nt({prop:"gridAutoColumns"}),qM=Nt({prop:"gridAutoRows"}),KM=Nt({prop:"gridTemplateColumns"}),GM=Nt({prop:"gridTemplateRows"}),YM=Nt({prop:"gridTemplateAreas"}),XM=Nt({prop:"gridArea"});Sf(Cf,Tf,wf,$M,HM,IM,FM,qM,KM,GM,YM,XM);function Da(e,t){return t==="grey"?t:e}const WM=Nt({prop:"color",themeKey:"palette",transform:Da}),QM=Nt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Da}),ZM=Nt({prop:"backgroundColor",themeKey:"palette",transform:Da});Sf(WM,QM,ZM);function Pn(e){return e<=1&&e!==0?`${e*100}%`:e}const JM=Nt({prop:"width",transform:Pn}),xg=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=i=>{const s=e.theme?.breakpoints?.values?.[i]||yf[i];return s?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:Pn(i)}};return mi(e,e.maxWidth,t)}return null};xg.filterProps=["maxWidth"];const e5=Nt({prop:"minWidth",transform:Pn}),t5=Nt({prop:"height",transform:Pn}),n5=Nt({prop:"maxHeight",transform:Pn}),i5=Nt({prop:"minHeight",transform:Pn});Nt({prop:"size",cssProperty:"width",transform:Pn});Nt({prop:"size",cssProperty:"height",transform:Pn});const r5=Nt({prop:"boxSizing"});Sf(JM,xg,e5,t5,n5,i5,r5);const Nl={border:{themeKey:"borders",transform:ei},borderTop:{themeKey:"borders",transform:ei},borderRight:{themeKey:"borders",transform:ei},borderBottom:{themeKey:"borders",transform:ei},borderLeft:{themeKey:"borders",transform:ei},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ei},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:xf},color:{themeKey:"palette",transform:Da},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Da},backgroundColor:{themeKey:"palette",transform:Da},p:{style:Rt},pt:{style:Rt},pr:{style:Rt},pb:{style:Rt},pl:{style:Rt},px:{style:Rt},py:{style:Rt},padding:{style:Rt},paddingTop:{style:Rt},paddingRight:{style:Rt},paddingBottom:{style:Rt},paddingLeft:{style:Rt},paddingX:{style:Rt},paddingY:{style:Rt},paddingInline:{style:Rt},paddingInlineStart:{style:Rt},paddingInlineEnd:{style:Rt},paddingBlock:{style:Rt},paddingBlockStart:{style:Rt},paddingBlockEnd:{style:Rt},m:{style:Et},mt:{style:Et},mr:{style:Et},mb:{style:Et},ml:{style:Et},mx:{style:Et},my:{style:Et},margin:{style:Et},marginTop:{style:Et},marginRight:{style:Et},marginBottom:{style:Et},marginLeft:{style:Et},marginX:{style:Et},marginY:{style:Et},marginInline:{style:Et},marginInlineStart:{style:Et},marginInlineEnd:{style:Et},marginBlock:{style:Et},marginBlockStart:{style:Et},marginBlockEnd:{style:Et},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:Cf},rowGap:{style:wf},columnGap:{style:Tf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Pn},maxWidth:{style:xg},minWidth:{transform:Pn},height:{transform:Pn},maxHeight:{transform:Pn},minHeight:{transform:Pn},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 s5(...e){const t=e.reduce((s,o)=>s.concat(Object.keys(o)),[]),i=new Set(t);return e.every(s=>i.size===Object.keys(s).length)}function a5(e,t){return typeof e=="function"?e(t):e}function o5(){function e(i,s,o,l){const c={[i]:s,theme:o},f=l[i];if(!f)return{[i]:s};const{cssProperty:h=i,themeKey:p,transform:g,style:y}=f;if(s==null)return null;if(p==="typography"&&s==="inherit")return{[i]:s};const v=vf(o,p)||{};return y?y(c):mi(c,s,S=>{let C=$c(v,g,S);return S===C&&typeof S=="string"&&(C=$c(v,g,`${i}${S==="default"?"":be(S)}`,S)),h===!1?C:{[h]:C}})}function t(i){const{sx:s,theme:o={},nested:l}=i||{};if(!s)return null;const c=o.unstable_sxConfig??Nl;function f(h){let p=h;if(typeof h=="function")p=h(o);else if(typeof h!="object")return h;if(!p)return null;const g=TT(o.breakpoints),y=Object.keys(g);let v=g;return Object.keys(p).forEach(x=>{const S=a5(p[x],o);if(S!=null)if(typeof S=="object")if(c[x])v=sl(v,e(x,S,o,c));else{const C=mi({theme:o},S,T=>({[x]:T}));s5(C,S)?v[x]=t({sx:S,theme:o,nested:!0}):v=sl(v,C)}else v=sl(v,e(x,S,o,c))}),!l&&o.modularCssLayers?{"@layer sx":eS(o,om(y,v))}:eS(o,om(y,v))}return Array.isArray(s)?s.map(f):f(s)}return t}const Ur=o5();Ur.filterProps=["sx"];function l5(e,t){const i=this;if(i.vars){if(!i.colorSchemes?.[e]||typeof i.getColorSchemeSelector!="function")return{};let s=i.getColorSchemeSelector(e);return s==="&"?t:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:t})}return i.palette.mode===e?t:{}}function zl(e={},...t){const{breakpoints:i={},palette:s={},spacing:o,shape:l={},...c}=e,f=mM(i),h=ET(o);let p=Wt({breakpoints:f,direction:"ltr",components:{},palette:{mode:"light",...s},spacing:h,shape:{...bM,...l}},c);return p=vM(p),p.applyStyles=l5,p=t.reduce((g,y)=>Wt(g,y),p),p.unstable_sxConfig={...Nl,...c?.unstable_sxConfig},p.unstable_sx=function(y){return Ur({sx:y,theme:this})},p}function u5(e){return Object.keys(e).length===0}function Cg(e=null){const t=E.useContext(Dl);return!t||u5(t)?e:t}const c5=zl();function Ef(e=c5){return Cg(e)}function Sp(e){const t=Br(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function RT({styles:e,themeId:t,defaultTheme:i={}}){const s=Ef(i),o=t&&s[t]||s;let l=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(l)?l=l.map(c=>Sp(typeof c=="function"?c(o):c)):l=Sp(l)),_.jsx(bT,{styles:l})}const f5=e=>{const t={systemProps:{},otherProps:{}},i=e?.theme?.unstable_sxConfig??Nl;return Object.keys(e).forEach(s=>{i[s]?t.systemProps[s]=e[s]:t.otherProps[s]=e[s]}),t};function Tg(e){const{sx:t,...i}=e,{systemProps:s,otherProps:o}=f5(i);let l;return Array.isArray(t)?l=[s,...t]:typeof t=="function"?l=(...c)=>{const f=t(...c);return Mi(f)?{...s,...f}:s}:l={...s,...t},{...o,sx:l}}const iS=e=>e,d5=()=>{let e=iS;return{configure(t){e=t},generate(t){return e(t)},reset(){e=iS}}},AT=d5();function OT(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(i=OT(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function we(){for(var e,t,i=0,s="",o=arguments.length;i<o;i++)(e=arguments[i])&&(t=OT(e))&&(s&&(s+=" "),s+=t);return s}function h5(e={}){const{themeId:t,defaultTheme:i,defaultClassName:s="MuiBox-root",generateClassName:o}=e,l=ST("div",{shouldForwardProp:f=>f!=="theme"&&f!=="sx"&&f!=="as"})(Ur);return E.forwardRef(function(h,p){const g=Ef(i),{className:y,component:v="div",...x}=Tg(h);return _.jsx(l,{as:v,ref:p,className:we(y,o?o(s):s),theme:t&&g[t]||g,...x})})}const p5={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 Fe(e,t,i="Mui"){const s=p5[t];return s?`${i}-${s}`:`${AT.generate(e)}-${t}`}function Be(e,t,i="Mui"){const s={};return t.forEach(o=>{s[o]=Fe(e,o,i)}),s}function MT(e){const{variants:t,...i}=e,s={variants:t,style:Br(i),isProcessed:!0};return s.style===i||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Br(o.style))}),s}const m5=zl();function xp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ys(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function g5(e){return e?(t,i)=>i[e]:null}function y5(e,t,i){e.theme=b5(e.theme)?i:e.theme[t]||e.theme}function Ac(e,t,i){const s=typeof t=="function"?t(e):t;if(Array.isArray(s))return s.flatMap(o=>Ac(e,o,i));if(Array.isArray(s?.variants)){let o;if(s.isProcessed)o=i?ys(s.style,i):s.style;else{const{variants:l,...c}=s;o=i?ys(Br(c),i):c}return DT(e,s.variants,[o],i)}return s?.isProcessed?i?ys(Br(s.style),i):s.style:i?ys(Br(s),i):s}function DT(e,t,i=[],s=void 0){let o;e:for(let l=0;l<t.length;l+=1){const c=t[l];if(typeof c.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!c.props(o))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"?(o??={...e,...e.ownerState,ownerState:e.ownerState},i.push(s?ys(Br(c.style(o)),s):c.style(o))):i.push(s?ys(Br(c.style),s):c.style)}return i}function _T(e={}){const{themeId:t,defaultTheme:i=m5,rootShouldForwardProp:s=xp,slotShouldForwardProp:o=xp}=e;function l(f){y5(f,t,i)}return(f,h={})=>{fM(f,N=>N.filter(k=>k!==Ur));const{name:p,slot:g,skipVariantsResolver:y,skipSx:v,overridesResolver:x=g5(x5(g)),...S}=h,C=p&&p.startsWith("Mui")||g?"components":"custom",T=y!==void 0?y:g&&g!=="Root"&&g!=="root"||!1,D=v||!1;let L=xp;g==="Root"||g==="root"?L=s:g?L=o:S5(f)&&(L=void 0);const R=ST(f,{shouldForwardProp:L,label:v5(),...S}),w=N=>{if(N.__emotion_real===N)return N;if(typeof N=="function")return function(B){return Ac(B,N,B.theme.modularCssLayers?C:void 0)};if(Mi(N)){const k=MT(N);return function(G){return k.variants?Ac(G,k,G.theme.modularCssLayers?C:void 0):G.theme.modularCssLayers?ys(k.style,C):k.style}}return N},M=(...N)=>{const k=[],B=N.map(w),G=[];if(k.push(l),p&&x&&G.push(function(Z){const Y=Z.theme.components?.[p]?.styleOverrides;if(!Y)return null;const P={};for(const I in Y)P[I]=Ac(Z,Y[I],Z.theme.modularCssLayers?"theme":void 0);return x(Z,P)}),p&&!T&&G.push(function(Z){const Y=Z.theme?.components?.[p]?.variants;return Y?DT(Z,Y,[],Z.theme.modularCssLayers?"theme":void 0):null}),D||G.push(Ur),Array.isArray(B[0])){const O=B.shift(),Z=new Array(k.length).fill(""),F=new Array(G.length).fill("");let Y;Y=[...Z,...O,...F],Y.raw=[...Z,...O.raw,...F],k.unshift(Y)}const Q=[...k,...B,...G],J=R(...Q);return f.muiName&&(J.muiName=f.muiName),J};return R.withConfig&&(M.withConfig=R.withConfig),M}}function v5(e,t){return void 0}function b5(e){for(const t in e)return!1;return!0}function S5(e){return typeof e=="string"&&e.charCodeAt(0)>96}function x5(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const LT=_T();function yl(e,t,i=!1){const s={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const l=o;if(l==="components"||l==="slots")s[l]={...e[l],...s[l]};else if(l==="componentsProps"||l==="slotProps"){const c=e[l],f=t[l];if(!f)s[l]=c||{};else if(!c)s[l]=f;else{s[l]={...f};for(const h in c)if(Object.prototype.hasOwnProperty.call(c,h)){const p=h;s[l][p]=yl(c[p],f[p],i)}}}else l==="className"&&i&&t.className?s.className=we(e?.className,t?.className):l==="style"&&i&&t.style?s.style={...e?.style,...t?.style}:s[l]===void 0&&(s[l]=e[l])}return s}function C5(e){const{theme:t,name:i,props:s}=e;return!t||!t.components||!t.components[i]||!t.components[i].defaultProps?s:yl(t.components[i].defaultProps,s)}function NT({props:e,name:t,defaultTheme:i,themeId:s}){let o=Ef(i);return s&&(o=o[s]||o),C5({theme:o,name:t,props:e})}const zi=typeof window<"u"?E.useLayoutEffect:E.useEffect;function T5(e,t=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,i))}function wg(e,t=0,i=1){return T5(e,t,i)}function w5(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let i=e.match(t);return i&&i[0].length===1&&(i=i.map(s=>s+s)),i?`rgb${i.length===4?"a":""}(${i.map((s,o)=>o<3?parseInt(s,16):Math.round(parseInt(s,16)/255*1e3)/1e3).join(", ")})`:""}function Vr(e){if(e.type)return e;if(e.charAt(0)==="#")return Vr(w5(e));const t=e.indexOf("("),i=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(i))throw new Error(or(9,e));let s=e.substring(t+1,e.length-1),o;if(i==="color"){if(s=s.split(" "),o=s.shift(),s.length===4&&s[3].charAt(0)==="/"&&(s[3]=s[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(or(10,o))}else s=s.split(",");return s=s.map(l=>parseFloat(l)),{type:i,values:s,colorSpace:o}}const E5=e=>{const t=Vr(e);return t.values.slice(0,3).map((i,s)=>t.type.includes("hsl")&&s!==0?`${i}%`:i).join(" ")},Zo=(e,t)=>{try{return E5(e)}catch{return e}};function Rf(e){const{type:t,colorSpace:i}=e;let{values:s}=e;return t.includes("rgb")?s=s.map((o,l)=>l<3?parseInt(o,10):o):t.includes("hsl")&&(s[1]=`${s[1]}%`,s[2]=`${s[2]}%`),t.includes("color")?s=`${i} ${s.join(" ")}`:s=`${s.join(", ")}`,`${t}(${s})`}function zT(e){e=Vr(e);const{values:t}=e,i=t[0],s=t[1]/100,o=t[2]/100,l=s*Math.min(o,1-o),c=(p,g=(p+i/30)%12)=>o-l*Math.max(Math.min(g-3,9-g,1),-1);let f="rgb";const h=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return e.type==="hsla"&&(f+="a",h.push(t[3])),Rf({type:f,values:h})}function lm(e){e=Vr(e);let t=e.type==="hsl"||e.type==="hsla"?Vr(zT(e)).values:e.values;return t=t.map(i=>(e.type!=="color"&&(i/=255),i<=.03928?i/12.92:((i+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function R5(e,t){const i=lm(e),s=lm(t);return(Math.max(i,s)+.05)/(Math.min(i,s)+.05)}function St(e,t){return e=Vr(e),t=wg(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Rf(e)}function us(e,t,i){try{return St(e,t)}catch{return e}}function Af(e,t){if(e=Vr(e),t=wg(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let i=0;i<3;i+=1)e.values[i]*=1-t;return Rf(e)}function et(e,t,i){try{return Af(e,t)}catch{return e}}function Of(e,t){if(e=Vr(e),t=wg(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let i=0;i<3;i+=1)e.values[i]+=(255-e.values[i])*t;else if(e.type.includes("color"))for(let i=0;i<3;i+=1)e.values[i]+=(1-e.values[i])*t;return Rf(e)}function tt(e,t,i){try{return Of(e,t)}catch{return e}}function A5(e,t=.15){return lm(e)>.5?Af(e,t):Of(e,t)}function lc(e,t,i){try{return A5(e,t)}catch{return e}}const kT=E.createContext(null);function Eg(){return E.useContext(kT)}const O5=typeof Symbol=="function"&&Symbol.for,M5=O5?Symbol.for("mui.nested"):"__THEME_NESTED__";function D5(e,t){return typeof t=="function"?t(e):{...e,...t}}function _5(e){const{children:t,theme:i}=e,s=Eg(),o=E.useMemo(()=>{const l=s===null?{...i}:D5(s,i);return l!=null&&(l[M5]=s!==null),l},[i,s]);return _.jsx(kT.Provider,{value:o,children:t})}const PT=E.createContext();function L5({value:e,...t}){return _.jsx(PT.Provider,{value:e??!0,...t})}const N5=()=>E.useContext(PT)??!1,jT=E.createContext(void 0);function z5({value:e,children:t}){return _.jsx(jT.Provider,{value:e,children:t})}function k5(e){const{theme:t,name:i,props:s}=e;if(!t||!t.components||!t.components[i])return s;const o=t.components[i];return o.defaultProps?yl(o.defaultProps,s,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?yl(o,s,t.components.mergeClassNameAndStyle):s}function P5({props:e,name:t}){const i=E.useContext(jT);return k5({props:e,name:t,theme:{components:i}})}let rS=0;function j5(e){const[t,i]=E.useState(e),s=e||t;return E.useEffect(()=>{t==null&&(rS+=1,i(`mui-${rS}`))},[t]),s}const B5={...nm},sS=B5.useId;function kl(e){if(sS!==void 0){const t=sS();return e??t}return j5(e)}function U5(e){const t=Cg(),i=kl()||"",{modularCssLayers:s}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!s||t!==null?o="":typeof s=="string"?o=s.replace(/mui(?!\.)/g,o):o=`@layer ${o};`,zi(()=>{const l=document.querySelector("head");if(!l)return;const c=l.firstChild;if(o){if(c&&c.hasAttribute?.("data-mui-layer-order")&&c.getAttribute("data-mui-layer-order")===i)return;const f=document.createElement("style");f.setAttribute("data-mui-layer-order",i),f.textContent=o,l.prepend(f)}else l.querySelector(`style[data-mui-layer-order="${i}"]`)?.remove()},[o,i]),o?_.jsx(RT,{styles:o}):null}const aS={};function oS(e,t,i,s=!1){return E.useMemo(()=>{const o=e&&t[e]||t;if(typeof i=="function"){const l=i(o),c=e?{...t,[e]:l}:l;return s?()=>c:c}return e?{...t,[e]:i}:{...t,...i}},[e,t,i,s])}function BT(e){const{children:t,theme:i,themeId:s}=e,o=Cg(aS),l=Eg()||aS,c=oS(s,o,i),f=oS(s,l,i,!0),h=(s?c[s]:c).direction==="rtl",p=U5(c);return _.jsx(_5,{theme:f,children:_.jsx(Dl.Provider,{value:c,children:_.jsx(L5,{value:h,children:_.jsxs(z5,{value:s?c[s].components:c.components,children:[p,t]})})})})}const lS={theme:void 0};function V5(e){let t,i;return function(o){let l=t;return(l===void 0||o.theme!==i)&&(lS.theme=o.theme,l=MT(e(lS)),t=l,i=o.theme),l}}const Rg="mode",Ag="color-scheme",$5="data-color-scheme";function H5(e){const{defaultMode:t="system",defaultLightColorScheme:i="light",defaultDarkColorScheme:s="dark",modeStorageKey:o=Rg,colorSchemeStorageKey:l=Ag,attribute:c=$5,colorSchemeNode:f="document.documentElement",nonce:h}=e||{};let p="",g=c;if(c==="class"&&(g=".%s"),c==="data"&&(g="[data-%s]"),g.startsWith(".")){const v=g.substring(1);p+=`${f}.classList.remove('${v}'.replace('%s', light), '${v}'.replace('%s', dark));
10
+ ${f}.classList.add('${v}'.replace('%s', colorScheme));`}const y=g.match(/\[([^[\]]+)\]/);if(y){const[v,x]=y[1].split("=");x||(p+=`${f}.removeAttribute('${v}'.replace('%s', light));
11
+ ${f}.removeAttribute('${v}'.replace('%s', dark));`),p+=`
12
+ ${f}.setAttribute('${v}'.replace('%s', colorScheme), ${x?`${x}.replace('%s', colorScheme)`:'""'});`}else g!==".%s"&&(p+=`${f}.setAttribute('${g}', colorScheme);`);return _.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?h:"",dangerouslySetInnerHTML:{__html:`(function() {
13
+ try {
14
+ let colorScheme = '';
15
+ const mode = localStorage.getItem('${o}') || '${t}';
16
+ const dark = localStorage.getItem('${l}-dark') || '${s}';
17
+ const light = localStorage.getItem('${l}-light') || '${i}';
18
+ if (mode === 'system') {
19
+ // handle system mode
20
+ const mql = window.matchMedia('(prefers-color-scheme: dark)');
21
+ if (mql.matches) {
22
+ colorScheme = dark
23
+ } else {
24
+ colorScheme = light
25
+ }
26
+ }
27
+ if (mode === 'light') {
28
+ colorScheme = light;
29
+ }
30
+ if (mode === 'dark') {
31
+ colorScheme = dark;
32
+ }
33
+ if (colorScheme) {
34
+ ${p}
35
+ }
36
+ } catch(e){}})();`}},"mui-color-scheme-init")}function I5(){}const F5=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(i){if(typeof window>"u")return;if(!t)return i;let s;try{s=t.localStorage.getItem(e)}catch{}return s||i},set:i=>{if(t)try{t.localStorage.setItem(e,i)}catch{}},subscribe:i=>{if(!t)return I5;const s=o=>{const l=o.newValue;o.key===e&&i(l)};return t.addEventListener("storage",s),()=>{t.removeEventListener("storage",s)}}});function Cp(){}function uS(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function UT(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 q5(e){return UT(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function K5(e){const{defaultMode:t="light",defaultLightColorScheme:i,defaultDarkColorScheme:s,supportedColorSchemes:o=[],modeStorageKey:l=Rg,colorSchemeStorageKey:c=Ag,storageWindow:f=typeof window>"u"?void 0:window,storageManager:h=F5,noSsr:p=!1}=e,g=o.join(","),y=o.length>1,v=E.useMemo(()=>h?.({key:l,storageWindow:f}),[h,l,f]),x=E.useMemo(()=>h?.({key:`${c}-light`,storageWindow:f}),[h,c,f]),S=E.useMemo(()=>h?.({key:`${c}-dark`,storageWindow:f}),[h,c,f]),[C,T]=E.useState(()=>{const B=v?.get(t)||t,G=x?.get(i)||i,Q=S?.get(s)||s;return{mode:B,systemMode:uS(B),lightColorScheme:G,darkColorScheme:Q}}),[D,L]=E.useState(p||!y);E.useEffect(()=>{L(!0)},[]);const R=q5(C),w=E.useCallback(B=>{T(G=>{if(B===G.mode)return G;const Q=B??t;return v?.set(Q),{...G,mode:Q,systemMode:uS(Q)}})},[v,t]),M=E.useCallback(B=>{B?typeof B=="string"?B&&!g.includes(B)?console.error(`\`${B}\` does not exist in \`theme.colorSchemes\`.`):T(G=>{const Q={...G};return UT(G,J=>{J==="light"&&(x?.set(B),Q.lightColorScheme=B),J==="dark"&&(S?.set(B),Q.darkColorScheme=B)}),Q}):T(G=>{const Q={...G},J=B.light===null?i:B.light,O=B.dark===null?s:B.dark;return J&&(g.includes(J)?(Q.lightColorScheme=J,x?.set(J)):console.error(`\`${J}\` does not exist in \`theme.colorSchemes\`.`)),O&&(g.includes(O)?(Q.darkColorScheme=O,S?.set(O)):console.error(`\`${O}\` does not exist in \`theme.colorSchemes\`.`)),Q}):T(G=>(x?.set(i),S?.set(s),{...G,lightColorScheme:i,darkColorScheme:s}))},[g,x,S,i,s]),N=E.useCallback(B=>{C.mode==="system"&&T(G=>{const Q=B?.matches?"dark":"light";return G.systemMode===Q?G:{...G,systemMode:Q}})},[C.mode]),k=E.useRef(N);return k.current=N,E.useEffect(()=>{if(typeof window.matchMedia!="function"||!y)return;const B=(...Q)=>k.current(...Q),G=window.matchMedia("(prefers-color-scheme: dark)");return G.addListener(B),B(G),()=>{G.removeListener(B)}},[y]),E.useEffect(()=>{if(y){const B=v?.subscribe(J=>{(!J||["light","dark","system"].includes(J))&&w(J||t)})||Cp,G=x?.subscribe(J=>{(!J||g.match(J))&&M({light:J})})||Cp,Q=S?.subscribe(J=>{(!J||g.match(J))&&M({dark:J})})||Cp;return()=>{B(),G(),Q()}}},[M,w,g,t,f,y,v,x,S]),{...C,mode:D?C.mode:void 0,systemMode:D?C.systemMode:void 0,colorScheme:D?R:void 0,setMode:w,setColorScheme:M}}const G5="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Y5(e){const{themeId:t,theme:i={},modeStorageKey:s=Rg,colorSchemeStorageKey:o=Ag,disableTransitionOnChange:l=!1,defaultColorScheme:c,resolveTheme:f}=e,h={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},p=E.createContext(void 0),g=()=>E.useContext(p)||h,y={},v={};function x(D){const{children:L,theme:R,modeStorageKey:w=s,colorSchemeStorageKey:M=o,disableTransitionOnChange:N=l,storageManager:k,storageWindow:B=typeof window>"u"?void 0:window,documentNode:G=typeof document>"u"?void 0:document,colorSchemeNode:Q=typeof document>"u"?void 0:document.documentElement,disableNestedContext:J=!1,disableStyleSheetGeneration:O=!1,defaultMode:Z="system",forceThemeRerender:F=!1,noSsr:Y}=D,P=E.useRef(!1),I=Eg(),ee=E.useContext(p),se=!!ee&&!J,le=E.useMemo(()=>R||(typeof i=="function"?i():i),[R]),z=le[t],q=z||le,{colorSchemes:ae=y,components:oe=v,cssVarPrefix:ue}=q,pe=Object.keys(ae).filter(gt=>!!ae[gt]).join(","),me=E.useMemo(()=>pe.split(","),[pe]),Ue=typeof c=="string"?c:c.light,Ce=typeof c=="string"?c:c.dark,Te=ae[Ue]&&ae[Ce]?Z:ae[q.defaultColorScheme]?.palette?.mode||q.palette?.mode,{mode:De,setMode:Ve,systemMode:Gt,lightColorScheme:Se,darkColorScheme:_e,colorScheme:Dt,setColorScheme:zt}=K5({supportedColorSchemes:me,defaultLightColorScheme:Ue,defaultDarkColorScheme:Ce,modeStorageKey:w,colorSchemeStorageKey:M,defaultMode:Te,storageManager:k,storageWindow:B,noSsr:Y});let ft=De,at=Dt;se&&(ft=ee.mode,at=ee.colorScheme);let kt=at||q.defaultColorScheme;q.vars&&!F&&(kt=q.defaultColorScheme);const ot=E.useMemo(()=>{const gt=q.generateThemeVars?.()||q.vars,$e={...q,components:oe,colorSchemes:ae,cssVarPrefix:ue,vars:gt};if(typeof $e.generateSpacing=="function"&&($e.spacing=$e.generateSpacing()),kt){const Ct=ae[kt];Ct&&typeof Ct=="object"&&Object.keys(Ct).forEach(It=>{Ct[It]&&typeof Ct[It]=="object"?$e[It]={...$e[It],...Ct[It]}:$e[It]=Ct[It]})}return f?f($e):$e},[q,kt,oe,ae,ue]),ge=q.colorSchemeSelector;zi(()=>{if(at&&Q&&ge&&ge!=="media"){const gt=ge;let $e=ge;if(gt==="class"&&($e=".%s"),gt==="data"&&($e="[data-%s]"),gt?.startsWith("data-")&&!gt.includes("%s")&&($e=`[${gt}="%s"]`),$e.startsWith("."))Q.classList.remove(...me.map(Ct=>$e.substring(1).replace("%s",Ct))),Q.classList.add($e.substring(1).replace("%s",at));else{const Ct=$e.replace("%s",at).match(/\[([^\]]+)\]/);if(Ct){const[It,On]=Ct[1].split("=");On||me.forEach(lt=>{Q.removeAttribute(It.replace(at,lt))}),Q.setAttribute(It,On?On.replace(/"|'/g,""):"")}else Q.setAttribute($e,at)}}},[at,ge,Q,me]),E.useEffect(()=>{let gt;if(N&&P.current&&G){const $e=G.createElement("style");$e.appendChild(G.createTextNode(G5)),G.head.appendChild($e),window.getComputedStyle(G.body),gt=setTimeout(()=>{G.head.removeChild($e)},1)}return()=>{clearTimeout(gt)}},[at,N,G]),E.useEffect(()=>(P.current=!0,()=>{P.current=!1}),[]);const si=E.useMemo(()=>({allColorSchemes:me,colorScheme:at,darkColorScheme:_e,lightColorScheme:Se,mode:ft,setColorScheme:zt,setMode:Ve,systemMode:Gt}),[me,at,_e,Se,ft,zt,Ve,Gt,ot.colorSchemeSelector]);let ze=!0;(O||q.cssVariables===!1||se&&I?.cssVarPrefix===ue)&&(ze=!1);const ji=_.jsxs(E.Fragment,{children:[_.jsx(BT,{themeId:z?t:void 0,theme:ot,children:L}),ze&&_.jsx(bT,{styles:ot.generateStyleSheets?.()||[]})]});return se?ji:_.jsx(p.Provider,{value:si,children:ji})}const S=typeof c=="string"?c:c.light,C=typeof c=="string"?c:c.dark;return{CssVarsProvider:x,useColorScheme:g,getInitColorSchemeScript:D=>H5({colorSchemeStorageKey:o,defaultLightColorScheme:S,defaultDarkColorScheme:C,modeStorageKey:s,...D})}}function X5(e=""){function t(...s){if(!s.length)return"";const o=s[0];return typeof o=="string"&&!o.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}-`:""}${o}${t(...s.slice(1))})`:`, ${o}`}return(s,...o)=>`var(--${e?`${e}-`:""}${s}${t(...o)})`}const cS=(e,t,i,s=[])=>{let o=e;t.forEach((l,c)=>{c===t.length-1?Array.isArray(o)?o[Number(l)]=i:o&&typeof o=="object"&&(o[l]=i):o&&typeof o=="object"&&(o[l]||(o[l]=s.includes(l)?[]:{}),o=o[l])})},W5=(e,t,i)=>{function s(o,l=[],c=[]){Object.entries(o).forEach(([f,h])=>{(!i||i&&!i([...l,f]))&&h!=null&&(typeof h=="object"&&Object.keys(h).length>0?s(h,[...l,f],Array.isArray(h)?[...c,f]:c):t([...l,f],h,c))})}s(e)},Q5=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(s=>e.includes(s))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Tp(e,t){const{prefix:i,shouldSkipGeneratingVar:s}=t||{},o={},l={},c={};return W5(e,(f,h,p)=>{if((typeof h=="string"||typeof h=="number")&&(!s||!s(f,h))){const g=`--${i?`${i}-`:""}${f.join("-")}`,y=Q5(f,h);Object.assign(o,{[g]:y}),cS(l,f,`var(${g})`,p),cS(c,f,`var(${g}, ${y})`,p)}},f=>f[0]==="vars"),{css:o,vars:l,varsWithDefaults:c}}function Z5(e,t={}){const{getSelector:i=D,disableCssColorScheme:s,colorSchemeSelector:o,enableContrastVars:l}=t,{colorSchemes:c={},components:f,defaultColorScheme:h="light",...p}=e,{vars:g,css:y,varsWithDefaults:v}=Tp(p,t);let x=v;const S={},{[h]:C,...T}=c;if(Object.entries(T||{}).forEach(([w,M])=>{const{vars:N,css:k,varsWithDefaults:B}=Tp(M,t);x=Wt(x,B),S[w]={css:k,vars:N}}),C){const{css:w,vars:M,varsWithDefaults:N}=Tp(C,t);x=Wt(x,N),S[h]={css:w,vars:M}}function D(w,M){let N=o;if(o==="class"&&(N=".%s"),o==="data"&&(N="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(N=`[${o}="%s"]`),w){if(N==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${c[w]?.palette?.mode||w})`]:{":root":M}};if(N)return e.defaultColorScheme===w?`:root, ${N.replace("%s",String(w))}`:N.replace("%s",String(w))}return":root"}return{vars:x,generateThemeVars:()=>{let w={...g};return Object.entries(S).forEach(([,{vars:M}])=>{w=Wt(w,M)}),w},generateStyleSheets:()=>{const w=[],M=e.defaultColorScheme||"light";function N(G,Q){Object.keys(Q).length&&w.push(typeof G=="string"?{[G]:{...Q}}:G)}N(i(void 0,{...y}),y);const{[M]:k,...B}=S;if(k){const{css:G}=k,Q=c[M]?.palette?.mode,J=!s&&Q?{colorScheme:Q,...G}:{...G};N(i(M,{...J}),J)}return Object.entries(B).forEach(([G,{css:Q}])=>{const J=c[G]?.palette?.mode,O=!s&&J?{colorScheme:J,...Q}:{...Q};N(i(G,{...O}),O)}),l&&w.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)"}}),w}}}function J5(e){return function(i){return e==="media"?`@media (prefers-color-scheme: ${i})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${i}"] &`:e==="class"?`.${i} &`:e==="data"?`[data-${i}] &`:`${e.replace("%s",i)} &`:"&"}}function qe(e,t,i=void 0){const s={};for(const o in e){const l=e[o];let c="",f=!0;for(let h=0;h<l.length;h+=1){const p=l[h];p&&(c+=(f===!0?"":" ")+t(p),f=!1,i&&i[p]&&(c+=" "+i[p]))}s[o]=c}return s}const e3=zl(),t3=LT("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[`maxWidth${be(String(i.maxWidth))}`],i.fixed&&t.fixed,i.disableGutters&&t.disableGutters]}}),n3=e=>NT({props:e,name:"MuiContainer",defaultTheme:e3}),i3=(e,t)=>{const i=h=>Fe(t,h),{classes:s,fixed:o,disableGutters:l,maxWidth:c}=e,f={root:["root",c&&`maxWidth${be(String(c))}`,o&&"fixed",l&&"disableGutters"]};return qe(f,i,s)};function r3(e={}){const{createStyledComponent:t=t3,useThemeProps:i=n3,componentName:s="MuiContainer"}=e,o=t(({theme:c,ownerState:f})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!f.disableGutters&&{paddingLeft:c.spacing(2),paddingRight:c.spacing(2),[c.breakpoints.up("sm")]:{paddingLeft:c.spacing(3),paddingRight:c.spacing(3)}}}),({theme:c,ownerState:f})=>f.fixed&&Object.keys(c.breakpoints.values).reduce((h,p)=>{const g=p,y=c.breakpoints.values[g];return y!==0&&(h[c.breakpoints.up(g)]={maxWidth:`${y}${c.breakpoints.unit}`}),h},{}),({theme:c,ownerState:f})=>({...f.maxWidth==="xs"&&{[c.breakpoints.up("xs")]:{maxWidth:Math.max(c.breakpoints.values.xs,444)}},...f.maxWidth&&f.maxWidth!=="xs"&&{[c.breakpoints.up(f.maxWidth)]:{maxWidth:`${c.breakpoints.values[f.maxWidth]}${c.breakpoints.unit}`}}}));return E.forwardRef(function(f,h){const p=i(f),{className:g,component:y="div",disableGutters:v=!1,fixed:x=!1,maxWidth:S="lg",classes:C,...T}=p,D={...p,component:y,disableGutters:v,fixed:x,maxWidth:S},L=i3(D,s);return _.jsx(o,{as:y,ownerState:D,className:we(L.root,g),ref:h,...T})})}function wp(e,t){return E.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const s3=zl(),a3=LT("div",{name:"MuiStack",slot:"Root"});function o3(e){return NT({props:e,name:"MuiStack",defaultTheme:s3})}function l3(e,t){const i=E.Children.toArray(e).filter(Boolean);return i.reduce((s,o,l)=>(s.push(o),l<i.length-1&&s.push(E.cloneElement(t,{key:`separator-${l}`})),s),[])}const u3=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],c3=({ownerState:e,theme:t})=>{let i={display:"flex",flexDirection:"column",...mi({theme:t},bp({values:e.direction,breakpoints:t.breakpoints.values}),s=>({flexDirection:s}))};if(e.spacing){const s=bf(t),o=Object.keys(t.breakpoints.values).reduce((h,p)=>((typeof e.spacing=="object"&&e.spacing[p]!=null||typeof e.direction=="object"&&e.direction[p]!=null)&&(h[p]=!0),h),{}),l=bp({values:e.direction,base:o}),c=bp({values:e.spacing,base:o});typeof l=="object"&&Object.keys(l).forEach((h,p,g)=>{if(!l[h]){const v=p>0?l[g[p-1]]:"column";l[h]=v}}),i=Wt(i,mi({theme:t},c,(h,p)=>e.useFlexGap?{gap:Rs(s,h)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${u3(p?l[p]:e.direction)}`]:Rs(s,h)}}))}return i=xM(t.breakpoints,i),i};function f3(e={}){const{createStyledComponent:t=a3,useThemeProps:i=o3,componentName:s="MuiStack"}=e,o=()=>qe({root:["root"]},h=>Fe(s,h),{}),l=t(c3);return E.forwardRef(function(h,p){const g=i(h),y=Tg(g),{component:v="div",direction:x="column",spacing:S=0,divider:C,children:T,className:D,useFlexGap:L=!1,...R}=y,w={direction:x,spacing:S,useFlexGap:L},M=o();return _.jsx(l,{as:v,ownerState:w,ref:p,className:we(M.root,D),...R,children:C?l3(T,C):T})})}function VT(){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:hl.white,default:hl.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 $T=VT();function HT(){return{text:{primary:hl.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:hl.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 um=HT();function fS(e,t,i,s){const o=s.light||s,l=s.dark||s*1.5;e[t]||(e.hasOwnProperty(i)?e[t]=e[i]:t==="light"?e.light=Of(e.main,o):t==="dark"&&(e.dark=Af(e.main,l)))}function dS(e,t,i,s,o){const l=o.light||o,c=o.dark||o*1.5;t[i]||(t.hasOwnProperty(s)?t[i]=t[s]:i==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(l*100).toFixed(0)}%)`:i==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(c*100).toFixed(0)}%)`))}function d3(e="light"){return e==="dark"?{main:pa[200],light:pa[50],dark:pa[400]}:{main:pa[700],light:pa[400],dark:pa[800]}}function h3(e="light"){return e==="dark"?{main:ha[200],light:ha[50],dark:ha[400]}:{main:ha[500],light:ha[300],dark:ha[700]}}function p3(e="light"){return e==="dark"?{main:da[500],light:da[300],dark:da[700]}:{main:da[700],light:da[400],dark:da[800]}}function m3(e="light"){return e==="dark"?{main:ma[400],light:ma[300],dark:ma[700]}:{main:ma[700],light:ma[500],dark:ma[900]}}function g3(e="light"){return e==="dark"?{main:ga[400],light:ga[300],dark:ga[700]}:{main:ga[800],light:ga[500],dark:ga[900]}}function y3(e="light"){return e==="dark"?{main:Io[400],light:Io[300],dark:Io[700]}:{main:"#ed6c02",light:Io[500],dark:Io[900]}}function v3(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Og(e){const{mode:t="light",contrastThreshold:i=3,tonalOffset:s=.2,colorSpace:o,...l}=e,c=e.primary||d3(t),f=e.secondary||h3(t),h=e.error||p3(t),p=e.info||m3(t),g=e.success||g3(t),y=e.warning||y3(t);function v(T){return o?v3(T):R5(T,um.text.primary)>=i?um.text.primary:$T.text.primary}const x=({color:T,name:D,mainShade:L=500,lightShade:R=300,darkShade:w=700})=>{if(T={...T},!T.main&&T[L]&&(T.main=T[L]),!T.hasOwnProperty("main"))throw new Error(or(11,D?` (${D})`:"",L));if(typeof T.main!="string")throw new Error(or(12,D?` (${D})`:"",JSON.stringify(T.main)));return o?(dS(o,T,"light",R,s),dS(o,T,"dark",w,s)):(fS(T,"light",R,s),fS(T,"dark",w,s)),T.contrastText||(T.contrastText=v(T.main)),T};let S;return t==="light"?S=VT():t==="dark"&&(S=HT()),Wt({common:{...hl},mode:t,primary:x({color:c,name:"primary"}),secondary:x({color:f,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:x({color:h,name:"error"}),warning:x({color:y,name:"warning"}),info:x({color:p,name:"info"}),success:x({color:g,name:"success"}),grey:dO,contrastThreshold:i,getContrastText:v,augmentColor:x,tonalOffset:s,...S},l)}function b3(e){const t={};return Object.entries(e).forEach(s=>{const[o,l]=s;typeof l=="object"&&(t[o]=`${l.fontStyle?`${l.fontStyle} `:""}${l.fontVariant?`${l.fontVariant} `:""}${l.fontWeight?`${l.fontWeight} `:""}${l.fontStretch?`${l.fontStretch} `:""}${l.fontSize||""}${l.lineHeight?`/${l.lineHeight} `:""}${l.fontFamily||""}`)}),t}function S3(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function x3(e){return Math.round(e*1e5)/1e5}const hS={textTransform:"uppercase"},pS='"Roboto", "Helvetica", "Arial", sans-serif';function IT(e,t){const{fontFamily:i=pS,fontSize:s=14,fontWeightLight:o=300,fontWeightRegular:l=400,fontWeightMedium:c=500,fontWeightBold:f=700,htmlFontSize:h=16,allVariants:p,pxToRem:g,...y}=typeof t=="function"?t(e):t,v=s/14,x=g||(T=>`${T/h*v}rem`),S=(T,D,L,R,w)=>({fontFamily:i,fontWeight:T,fontSize:x(D),lineHeight:L,...i===pS?{letterSpacing:`${x3(R/D)}em`}:{},...w,...p}),C={h1:S(o,96,1.167,-1.5),h2:S(o,60,1.2,-.5),h3:S(l,48,1.167,0),h4:S(l,34,1.235,.25),h5:S(l,24,1.334,0),h6:S(c,20,1.6,.15),subtitle1:S(l,16,1.75,.15),subtitle2:S(c,14,1.57,.1),body1:S(l,16,1.5,.15),body2:S(l,14,1.43,.15),button:S(c,14,1.75,.4,hS),caption:S(l,12,1.66,.4),overline:S(l,12,2.66,1,hS),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Wt({htmlFontSize:h,pxToRem:x,fontFamily:i,fontSize:s,fontWeightLight:o,fontWeightRegular:l,fontWeightMedium:c,fontWeightBold:f,...C},y,{clone:!1})}const C3=.2,T3=.14,w3=.12;function vt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${C3})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${T3})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${w3})`].join(",")}const E3=["none",vt(0,2,1,-1,0,1,1,0,0,1,3,0),vt(0,3,1,-2,0,2,2,0,0,1,5,0),vt(0,3,3,-2,0,3,4,0,0,1,8,0),vt(0,2,4,-1,0,4,5,0,0,1,10,0),vt(0,3,5,-1,0,5,8,0,0,1,14,0),vt(0,3,5,-1,0,6,10,0,0,1,18,0),vt(0,4,5,-2,0,7,10,1,0,2,16,1),vt(0,5,5,-3,0,8,10,1,0,3,14,2),vt(0,5,6,-3,0,9,12,1,0,3,16,2),vt(0,6,6,-3,0,10,14,1,0,4,18,3),vt(0,6,7,-4,0,11,15,1,0,4,20,3),vt(0,7,8,-4,0,12,17,2,0,5,22,4),vt(0,7,8,-4,0,13,19,2,0,5,24,4),vt(0,7,9,-4,0,14,21,2,0,5,26,4),vt(0,8,9,-5,0,15,22,2,0,6,28,5),vt(0,8,10,-5,0,16,24,2,0,6,30,5),vt(0,8,11,-5,0,17,26,2,0,6,32,5),vt(0,9,11,-5,0,18,28,2,0,7,34,6),vt(0,9,12,-6,0,19,29,2,0,7,36,6),vt(0,10,13,-6,0,20,31,3,0,8,38,7),vt(0,10,13,-6,0,21,33,3,0,8,40,7),vt(0,10,14,-6,0,22,35,3,0,8,42,7),vt(0,11,14,-7,0,23,36,3,0,9,44,8),vt(0,11,15,-7,0,24,38,3,0,9,46,8)],R3={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)"},A3={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function mS(e){return`${Math.round(e)}ms`}function O3(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function M3(e){const t={...R3,...e.easing},i={...A3,...e.duration};return{getAutoHeightDuration:O3,create:(o=["all"],l={})=>{const{duration:c=i.standard,easing:f=t.easeInOut,delay:h=0,...p}=l;return(Array.isArray(o)?o:[o]).map(g=>`${g} ${typeof c=="string"?c:mS(c)} ${f} ${typeof h=="string"?h:mS(h)}`).join(",")},...e,easing:t,duration:i}}const D3={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function _3(e){return Mi(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function FT(e={}){const t={...e};function i(s){const o=Object.entries(s);for(let l=0;l<o.length;l++){const[c,f]=o[l];!_3(f)||c.startsWith("unstable_")?delete s[c]:Mi(f)&&(s[c]={...f},i(s[c]))}}return i(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
37
+
38
+ const theme = ${JSON.stringify(t,null,2)};
39
+
40
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
41
+ theme.transitions = createTransitions(theme.transitions || {});
42
+
43
+ export default theme;`}function gS(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const L3=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let i=0;for(let s=0;s<t.length;s+=1)i+=+t[s];return i};function N3(e){Object.assign(e,{alpha(t,i){const s=this||e;return s.colorSpace?`oklch(from ${t} l c h / ${typeof i=="string"?`calc(${i})`:i})`:s.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof i=="string"?`calc(${i})`:i})`:St(t,L3(i))},lighten(t,i){const s=this||e;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${t}, #fff ${gS(i)})`:Of(t,i)},darken(t,i){const s=this||e;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${t}, #000 ${gS(i)})`:Af(t,i)}})}function cm(e={},...t){const{breakpoints:i,mixins:s={},spacing:o,palette:l={},transitions:c={},typography:f={},shape:h,colorSpace:p,...g}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(or(20));const y=Og({...l,colorSpace:p}),v=zl(e);let x=Wt(v,{mixins:S3(v.breakpoints,s),palette:y,shadows:E3.slice(),typography:IT(y,f),transitions:M3(c),zIndex:{...D3}});return x=Wt(x,g),x=t.reduce((S,C)=>Wt(S,C),x),x.unstable_sxConfig={...Nl,...g?.unstable_sxConfig},x.unstable_sx=function(C){return Ur({sx:C,theme:this})},x.toRuntimeSource=FT,N3(x),x}function fm(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 z3=[...Array(25)].map((e,t)=>{if(t===0)return"none";const i=fm(t);return`linear-gradient(rgba(255 255 255 / ${i}), rgba(255 255 255 / ${i}))`});function qT(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function KT(e){return e==="dark"?z3:[]}function k3(e){const{palette:t={mode:"light"},opacity:i,overlays:s,colorSpace:o,...l}=e,c=Og({...t,colorSpace:o});return{palette:c,opacity:{...qT(c.mode),...i},overlays:s||KT(c.mode),...l}}function P3(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 j3=e=>[...[...Array(25)].map((t,i)=>`--${e?`${e}-`:""}overlays-${i}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],B3=e=>(t,i)=>{const s=e.rootSelector||":root",o=e.colorSchemeSelector;let l=o;if(o==="class"&&(l=".%s"),o==="data"&&(l="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(l=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const c={};return j3(e.cssVarPrefix).forEach(f=>{c[f]=i[f],delete i[f]}),l==="media"?{[s]:i,"@media (prefers-color-scheme: dark)":{[s]:c}}:l?{[l.replace("%s",t)]:c,[`${s}, ${l.replace("%s",t)}`]:i}:{[s]:{...i,...c}}}if(l&&l!=="media")return`${s}, ${l.replace("%s",String(t))}`}else if(t){if(l==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[s]:i}};if(l)return l.replace("%s",String(t))}return s};function U3(e,t){t.forEach(i=>{e[i]||(e[i]={})})}function ne(e,t,i){!e[t]&&i&&(e[t]=i)}function Jo(e){return typeof e!="string"||!e.startsWith("hsl")?e:zT(e)}function nr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Zo(Jo(e[t])))}function V3(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const wi=e=>{try{return e()}catch{}},$3=(e="mui")=>X5(e);function Ep(e,t,i,s,o){if(!i)return;i=i===!0?{}:i;const l=o==="dark"?"dark":"light";if(!s){t[o]=k3({...i,palette:{mode:l,...i?.palette},colorSpace:e});return}const{palette:c,...f}=cm({...s,palette:{mode:l,...i?.palette},colorSpace:e});return t[o]={...i,palette:c,opacity:{...qT(l),...i?.opacity},overlays:i?.overlays||KT(l)},f}function H3(e={},...t){const{colorSchemes:i={light:!0},defaultColorScheme:s,disableCssColorScheme:o=!1,cssVarPrefix:l="mui",nativeColor:c=!1,shouldSkipGeneratingVar:f=P3,colorSchemeSelector:h=i.light&&i.dark?"media":void 0,rootSelector:p=":root",...g}=e,y=Object.keys(i)[0],v=s||(i.light&&y!=="light"?"light":y),x=$3(l),{[v]:S,light:C,dark:T,...D}=i,L={...D};let R=S;if((v==="dark"&&!("dark"in i)||v==="light"&&!("light"in i))&&(R=!0),!R)throw new Error(or(21,v));let w;c&&(w="oklch");const M=Ep(w,L,R,g,v);C&&!L.light&&Ep(w,L,C,void 0,"light"),T&&!L.dark&&Ep(w,L,T,void 0,"dark");let N={defaultColorScheme:v,...M,cssVarPrefix:l,colorSchemeSelector:h,rootSelector:p,getCssVar:x,colorSchemes:L,font:{...b3(M.typography),...M.font},spacing:V3(g.spacing)};Object.keys(N.colorSchemes).forEach(J=>{const O=N.colorSchemes[J].palette,Z=Y=>{const P=Y.split("-"),I=P[1],ee=P[2];return x(Y,O[I][ee])};O.mode==="light"&&(ne(O.common,"background","#fff"),ne(O.common,"onBackground","#000")),O.mode==="dark"&&(ne(O.common,"background","#000"),ne(O.common,"onBackground","#fff"));function F(Y,P,I){if(w){let ee;return Y===us&&(ee=`transparent ${((1-I)*100).toFixed(0)}%`),Y===et&&(ee=`#000 ${(I*100).toFixed(0)}%`),Y===tt&&(ee=`#fff ${(I*100).toFixed(0)}%`),`color-mix(in ${w}, ${P}, ${ee})`}return Y(P,I)}if(U3(O,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),O.mode==="light"){ne(O.Alert,"errorColor",F(et,O.error.light,.6)),ne(O.Alert,"infoColor",F(et,O.info.light,.6)),ne(O.Alert,"successColor",F(et,O.success.light,.6)),ne(O.Alert,"warningColor",F(et,O.warning.light,.6)),ne(O.Alert,"errorFilledBg",Z("palette-error-main")),ne(O.Alert,"infoFilledBg",Z("palette-info-main")),ne(O.Alert,"successFilledBg",Z("palette-success-main")),ne(O.Alert,"warningFilledBg",Z("palette-warning-main")),ne(O.Alert,"errorFilledColor",wi(()=>O.getContrastText(O.error.main))),ne(O.Alert,"infoFilledColor",wi(()=>O.getContrastText(O.info.main))),ne(O.Alert,"successFilledColor",wi(()=>O.getContrastText(O.success.main))),ne(O.Alert,"warningFilledColor",wi(()=>O.getContrastText(O.warning.main))),ne(O.Alert,"errorStandardBg",F(tt,O.error.light,.9)),ne(O.Alert,"infoStandardBg",F(tt,O.info.light,.9)),ne(O.Alert,"successStandardBg",F(tt,O.success.light,.9)),ne(O.Alert,"warningStandardBg",F(tt,O.warning.light,.9)),ne(O.Alert,"errorIconColor",Z("palette-error-main")),ne(O.Alert,"infoIconColor",Z("palette-info-main")),ne(O.Alert,"successIconColor",Z("palette-success-main")),ne(O.Alert,"warningIconColor",Z("palette-warning-main")),ne(O.AppBar,"defaultBg",Z("palette-grey-100")),ne(O.Avatar,"defaultBg",Z("palette-grey-400")),ne(O.Button,"inheritContainedBg",Z("palette-grey-300")),ne(O.Button,"inheritContainedHoverBg",Z("palette-grey-A100")),ne(O.Chip,"defaultBorder",Z("palette-grey-400")),ne(O.Chip,"defaultAvatarColor",Z("palette-grey-700")),ne(O.Chip,"defaultIconColor",Z("palette-grey-700")),ne(O.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ne(O.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ne(O.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ne(O.LinearProgress,"primaryBg",F(tt,O.primary.main,.62)),ne(O.LinearProgress,"secondaryBg",F(tt,O.secondary.main,.62)),ne(O.LinearProgress,"errorBg",F(tt,O.error.main,.62)),ne(O.LinearProgress,"infoBg",F(tt,O.info.main,.62)),ne(O.LinearProgress,"successBg",F(tt,O.success.main,.62)),ne(O.LinearProgress,"warningBg",F(tt,O.warning.main,.62)),ne(O.Skeleton,"bg",w?F(us,O.text.primary,.11):`rgba(${Z("palette-text-primaryChannel")} / 0.11)`),ne(O.Slider,"primaryTrack",F(tt,O.primary.main,.62)),ne(O.Slider,"secondaryTrack",F(tt,O.secondary.main,.62)),ne(O.Slider,"errorTrack",F(tt,O.error.main,.62)),ne(O.Slider,"infoTrack",F(tt,O.info.main,.62)),ne(O.Slider,"successTrack",F(tt,O.success.main,.62)),ne(O.Slider,"warningTrack",F(tt,O.warning.main,.62));const Y=w?F(et,O.background.default,.6825):lc(O.background.default,.8);ne(O.SnackbarContent,"bg",Y),ne(O.SnackbarContent,"color",wi(()=>w?um.text.primary:O.getContrastText(Y))),ne(O.SpeedDialAction,"fabHoverBg",lc(O.background.paper,.15)),ne(O.StepConnector,"border",Z("palette-grey-400")),ne(O.StepContent,"border",Z("palette-grey-400")),ne(O.Switch,"defaultColor",Z("palette-common-white")),ne(O.Switch,"defaultDisabledColor",Z("palette-grey-100")),ne(O.Switch,"primaryDisabledColor",F(tt,O.primary.main,.62)),ne(O.Switch,"secondaryDisabledColor",F(tt,O.secondary.main,.62)),ne(O.Switch,"errorDisabledColor",F(tt,O.error.main,.62)),ne(O.Switch,"infoDisabledColor",F(tt,O.info.main,.62)),ne(O.Switch,"successDisabledColor",F(tt,O.success.main,.62)),ne(O.Switch,"warningDisabledColor",F(tt,O.warning.main,.62)),ne(O.TableCell,"border",F(tt,F(us,O.divider,1),.88)),ne(O.Tooltip,"bg",F(us,O.grey[700],.92))}if(O.mode==="dark"){ne(O.Alert,"errorColor",F(tt,O.error.light,.6)),ne(O.Alert,"infoColor",F(tt,O.info.light,.6)),ne(O.Alert,"successColor",F(tt,O.success.light,.6)),ne(O.Alert,"warningColor",F(tt,O.warning.light,.6)),ne(O.Alert,"errorFilledBg",Z("palette-error-dark")),ne(O.Alert,"infoFilledBg",Z("palette-info-dark")),ne(O.Alert,"successFilledBg",Z("palette-success-dark")),ne(O.Alert,"warningFilledBg",Z("palette-warning-dark")),ne(O.Alert,"errorFilledColor",wi(()=>O.getContrastText(O.error.dark))),ne(O.Alert,"infoFilledColor",wi(()=>O.getContrastText(O.info.dark))),ne(O.Alert,"successFilledColor",wi(()=>O.getContrastText(O.success.dark))),ne(O.Alert,"warningFilledColor",wi(()=>O.getContrastText(O.warning.dark))),ne(O.Alert,"errorStandardBg",F(et,O.error.light,.9)),ne(O.Alert,"infoStandardBg",F(et,O.info.light,.9)),ne(O.Alert,"successStandardBg",F(et,O.success.light,.9)),ne(O.Alert,"warningStandardBg",F(et,O.warning.light,.9)),ne(O.Alert,"errorIconColor",Z("palette-error-main")),ne(O.Alert,"infoIconColor",Z("palette-info-main")),ne(O.Alert,"successIconColor",Z("palette-success-main")),ne(O.Alert,"warningIconColor",Z("palette-warning-main")),ne(O.AppBar,"defaultBg",Z("palette-grey-900")),ne(O.AppBar,"darkBg",Z("palette-background-paper")),ne(O.AppBar,"darkColor",Z("palette-text-primary")),ne(O.Avatar,"defaultBg",Z("palette-grey-600")),ne(O.Button,"inheritContainedBg",Z("palette-grey-800")),ne(O.Button,"inheritContainedHoverBg",Z("palette-grey-700")),ne(O.Chip,"defaultBorder",Z("palette-grey-700")),ne(O.Chip,"defaultAvatarColor",Z("palette-grey-300")),ne(O.Chip,"defaultIconColor",Z("palette-grey-300")),ne(O.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ne(O.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ne(O.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ne(O.LinearProgress,"primaryBg",F(et,O.primary.main,.5)),ne(O.LinearProgress,"secondaryBg",F(et,O.secondary.main,.5)),ne(O.LinearProgress,"errorBg",F(et,O.error.main,.5)),ne(O.LinearProgress,"infoBg",F(et,O.info.main,.5)),ne(O.LinearProgress,"successBg",F(et,O.success.main,.5)),ne(O.LinearProgress,"warningBg",F(et,O.warning.main,.5)),ne(O.Skeleton,"bg",w?F(us,O.text.primary,.13):`rgba(${Z("palette-text-primaryChannel")} / 0.13)`),ne(O.Slider,"primaryTrack",F(et,O.primary.main,.5)),ne(O.Slider,"secondaryTrack",F(et,O.secondary.main,.5)),ne(O.Slider,"errorTrack",F(et,O.error.main,.5)),ne(O.Slider,"infoTrack",F(et,O.info.main,.5)),ne(O.Slider,"successTrack",F(et,O.success.main,.5)),ne(O.Slider,"warningTrack",F(et,O.warning.main,.5));const Y=w?F(tt,O.background.default,.985):lc(O.background.default,.98);ne(O.SnackbarContent,"bg",Y),ne(O.SnackbarContent,"color",wi(()=>w?$T.text.primary:O.getContrastText(Y))),ne(O.SpeedDialAction,"fabHoverBg",lc(O.background.paper,.15)),ne(O.StepConnector,"border",Z("palette-grey-600")),ne(O.StepContent,"border",Z("palette-grey-600")),ne(O.Switch,"defaultColor",Z("palette-grey-300")),ne(O.Switch,"defaultDisabledColor",Z("palette-grey-600")),ne(O.Switch,"primaryDisabledColor",F(et,O.primary.main,.55)),ne(O.Switch,"secondaryDisabledColor",F(et,O.secondary.main,.55)),ne(O.Switch,"errorDisabledColor",F(et,O.error.main,.55)),ne(O.Switch,"infoDisabledColor",F(et,O.info.main,.55)),ne(O.Switch,"successDisabledColor",F(et,O.success.main,.55)),ne(O.Switch,"warningDisabledColor",F(et,O.warning.main,.55)),ne(O.TableCell,"border",F(et,F(us,O.divider,1),.68)),ne(O.Tooltip,"bg",F(us,O.grey[700],.92))}nr(O.background,"default"),nr(O.background,"paper"),nr(O.common,"background"),nr(O.common,"onBackground"),nr(O,"divider"),Object.keys(O).forEach(Y=>{const P=O[Y];Y!=="tonalOffset"&&P&&typeof P=="object"&&(P.main&&ne(O[Y],"mainChannel",Zo(Jo(P.main))),P.light&&ne(O[Y],"lightChannel",Zo(Jo(P.light))),P.dark&&ne(O[Y],"darkChannel",Zo(Jo(P.dark))),P.contrastText&&ne(O[Y],"contrastTextChannel",Zo(Jo(P.contrastText))),Y==="text"&&(nr(O[Y],"primary"),nr(O[Y],"secondary")),Y==="action"&&(P.active&&nr(O[Y],"active"),P.selected&&nr(O[Y],"selected")))})}),N=t.reduce((J,O)=>Wt(J,O),N);const k={prefix:l,disableCssColorScheme:o,shouldSkipGeneratingVar:f,getSelector:B3(N),enableContrastVars:c},{vars:B,generateThemeVars:G,generateStyleSheets:Q}=Z5(N,k);return N.vars=B,Object.entries(N.colorSchemes[N.defaultColorScheme]).forEach(([J,O])=>{N[J]=O}),N.generateThemeVars=G,N.generateStyleSheets=Q,N.generateSpacing=function(){return ET(g.spacing,bf(this))},N.getColorSchemeSelector=J5(h),N.spacing=N.generateSpacing(),N.shouldSkipGeneratingVar=f,N.unstable_sxConfig={...Nl,...g?.unstable_sxConfig},N.unstable_sx=function(O){return Ur({sx:O,theme:this})},N.toRuntimeSource=FT,N}function yS(e,t,i){e.colorSchemes&&i&&(e.colorSchemes[t]={...i!==!0&&i,palette:Og({...i===!0?{}:i.palette,mode:t})})}function Mf(e={},...t){const{palette:i,cssVariables:s=!1,colorSchemes:o=i?void 0:{light:!0},defaultColorScheme:l=i?.mode,...c}=e,f=l||"light",h=o?.[f],p={...o,...i?{[f]:{...typeof h!="boolean"&&h,palette:i}}:void 0};if(s===!1){if(!("colorSchemes"in e))return cm(e,...t);let g=i;"palette"in e||p[f]&&(p[f]!==!0?g=p[f].palette:f==="dark"&&(g={mode:"dark"}));const y=cm({...e,palette:g},...t);return y.defaultColorScheme=f,y.colorSchemes=p,y.palette.mode==="light"&&(y.colorSchemes.light={...p.light!==!0&&p.light,palette:y.palette},yS(y,"dark",p.dark)),y.palette.mode==="dark"&&(y.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:y.palette},yS(y,"light",p.light)),y}return!i&&!("light"in p)&&f==="light"&&(p.light=!0),H3({...c,colorSchemes:p,defaultColorScheme:f,...typeof s!="boolean"&&s},...t)}const Mg=Mf();function $a(){const e=Ef(Mg);return e[_i]||e}function GT(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Vn=e=>GT(e)&&e!=="classes",de=_T({themeId:_i,defaultTheme:Mg,rootShouldForwardProp:Vn});function I3({theme:e,...t}){const i=_i in e?e[_i]:void 0;return _.jsx(BT,{...t,themeId:i?_i:void 0,theme:i||e})}const uc={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:F3}=Y5({themeId:_i,theme:()=>Mf({cssVariables:!0}),colorSchemeStorageKey:uc.colorSchemeStorageKey,modeStorageKey:uc.modeStorageKey,defaultColorScheme:{light:uc.defaultLightColorScheme,dark:uc.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:IT(e.palette,e.typography)};return t.unstable_sx=function(s){return Ur({sx:s,theme:this})},t}}),q3=F3;function K3({theme:e,...t}){const i=E.useMemo(()=>{if(typeof e=="function")return e;const s=_i in e?e[_i]:e;return"colorSchemes"in s?null:"vars"in s?e:{...e,vars:null}},[e]);return i?_.jsx(I3,{theme:i,...t}):_.jsx(q3,{theme:e,...t})}function vS(...e){return e.reduce((t,i)=>i==null?t:function(...o){t.apply(this,o),i.apply(this,o)},()=>{})}function G3(e){return _.jsx(RT,{...e,defaultTheme:Mg,themeId:_i})}function Dg(e){return function(i){return _.jsx(G3,{styles:typeof e=="function"?s=>e({theme:s,...i}):e})}}function Y3(){return Tg}const Qe=V5;function Ke(e){return P5(e)}function X3(e){return Fe("MuiSvgIcon",e)}Be("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const W3=e=>{const{color:t,fontSize:i,classes:s}=e,o={root:["root",t!=="inherit"&&`color${be(t)}`,`fontSize${be(i)}`]};return qe(o,X3,s)},Q3=de("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.color!=="inherit"&&t[`color${be(i.color)}`],t[`fontSize${be(i.fontSize)}`]]}})(Qe(({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}}]}))),dm=E.forwardRef(function(t,i){const s=Ke({props:t,name:"MuiSvgIcon"}),{children:o,className:l,color:c="inherit",component:f="svg",fontSize:h="medium",htmlColor:p,inheritViewBox:g=!1,titleAccess:y,viewBox:v="0 0 24 24",...x}=s,S=E.isValidElement(o)&&o.type==="svg",C={...s,color:c,component:f,fontSize:h,instanceFontSize:t.fontSize,inheritViewBox:g,viewBox:v,hasSvgAsChild:S},T={};g||(T.viewBox=v);const D=W3(C);return _.jsxs(Q3,{as:f,className:we(D.root,l),focusable:"false",color:p,"aria-hidden":y?void 0:!0,role:y?"img":void 0,ref:i,...T,...x,...S&&o.props,ownerState:C,children:[S?o.props.children:o,y?_.jsx("title",{children:y}):null]})});dm.muiName="SvgIcon";function on(e,t){function i(s,o){return _.jsx(dm,{"data-testid":void 0,ref:o,...s,children:e})}return i.muiName=dm.muiName,E.memo(E.forwardRef(i))}function YT(e,t=166){let i;function s(...o){const l=()=>{e.apply(this,o)};clearTimeout(i),i=setTimeout(l,t)}return s.clear=()=>{clearTimeout(i)},s}function gi(e){return e&&e.ownerDocument||document}function lr(e){return gi(e).defaultView||window}function bS(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function SS(e){const{controlled:t,default:i,name:s,state:o="value"}=e,{current:l}=E.useRef(t!==void 0),[c,f]=E.useState(i),h=l?t:c,p=E.useCallback(g=>{l||f(g)},[]);return[h,p]}function Cs(e){const t=E.useRef(e);return zi(()=>{t.current=e}),E.useRef((...i)=>(0,t.current)(...i)).current}function gn(...e){const t=E.useRef(void 0),i=E.useCallback(s=>{const o=e.map(l=>{if(l==null)return null;if(typeof l=="function"){const c=l,f=c(s);return typeof f=="function"?f:()=>{c(null)}}return l.current=s,()=>{l.current=null}});return()=>{o.forEach(l=>l?.())}},e);return E.useMemo(()=>e.every(s=>s==null)?null:s=>{t.current&&(t.current(),t.current=void 0),s!=null&&(t.current=i(s))},e)}function Z3(e,t){const i=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&i>=65&&i<=90&&typeof t=="function"}function J3(e,t){if(!e)return t;function i(c,f){const h={};return Object.keys(f).forEach(p=>{Z3(p,f[p])&&typeof c[p]=="function"&&(h[p]=(...g)=>{c[p](...g),f[p](...g)})}),h}if(typeof e=="function"||typeof t=="function")return c=>{const f=typeof t=="function"?t(c):t,h=typeof e=="function"?e({...c,...f}):e,p=we(c?.className,f?.className,h?.className),g=i(h,f);return{...f,...h,...g,...!!p&&{className:p},...f?.style&&h?.style&&{style:{...f.style,...h.style}},...f?.sx&&h?.sx&&{sx:[...Array.isArray(f.sx)?f.sx:[f.sx],...Array.isArray(h.sx)?h.sx:[h.sx]]}}};const s=t,o=i(e,s),l=we(s?.className,e?.className);return{...t,...e,...o,...!!l&&{className:l},...s?.style&&e?.style&&{style:{...s.style,...e.style}},...s?.sx&&e?.sx&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function XT(e,t){if(e==null)return{};var i={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)!==-1)continue;i[s]=e[s]}return i}function hm(e,t){return hm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},hm(e,t)}function WT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hm(e,t)}var QT=sT();const cc=cg(QT),xS={disabled:!1},Hc=ti.createContext(null);var eD=function(t){return t.scrollTop},el="unmounted",hs="exited",ps="entering",Ca="entered",pm="exiting",Pi=(function(e){WT(t,e);function t(s,o){var l;l=e.call(this,s,o)||this;var c=o,f=c&&!c.isMounting?s.enter:s.appear,h;return l.appearStatus=null,s.in?f?(h=hs,l.appearStatus=ps):h=Ca:s.unmountOnExit||s.mountOnEnter?h=el:h=hs,l.state={status:h},l.nextCallback=null,l}t.getDerivedStateFromProps=function(o,l){var c=o.in;return c&&l.status===el?{status:hs}:null};var i=t.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(o){var l=null;if(o!==this.props){var c=this.state.status;this.props.in?c!==ps&&c!==Ca&&(l=ps):(c===ps||c===Ca)&&(l=pm)}this.updateStatus(!1,l)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var o=this.props.timeout,l,c,f;return l=c=f=o,o!=null&&typeof o!="number"&&(l=o.exit,c=o.enter,f=o.appear!==void 0?o.appear:c),{exit:l,enter:c,appear:f}},i.updateStatus=function(o,l){if(o===void 0&&(o=!1),l!==null)if(this.cancelNextCallback(),l===ps){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:cc.findDOMNode(this);c&&eD(c)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===hs&&this.setState({status:el})},i.performEnter=function(o){var l=this,c=this.props.enter,f=this.context?this.context.isMounting:o,h=this.props.nodeRef?[f]:[cc.findDOMNode(this),f],p=h[0],g=h[1],y=this.getTimeouts(),v=f?y.appear:y.enter;if(!o&&!c||xS.disabled){this.safeSetState({status:Ca},function(){l.props.onEntered(p)});return}this.props.onEnter(p,g),this.safeSetState({status:ps},function(){l.props.onEntering(p,g),l.onTransitionEnd(v,function(){l.safeSetState({status:Ca},function(){l.props.onEntered(p,g)})})})},i.performExit=function(){var o=this,l=this.props.exit,c=this.getTimeouts(),f=this.props.nodeRef?void 0:cc.findDOMNode(this);if(!l||xS.disabled){this.safeSetState({status:hs},function(){o.props.onExited(f)});return}this.props.onExit(f),this.safeSetState({status:pm},function(){o.props.onExiting(f),o.onTransitionEnd(c.exit,function(){o.safeSetState({status:hs},function(){o.props.onExited(f)})})})},i.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(o,l){l=this.setNextCallback(l),this.setState(o,l)},i.setNextCallback=function(o){var l=this,c=!0;return this.nextCallback=function(f){c&&(c=!1,l.nextCallback=null,o(f))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},i.onTransitionEnd=function(o,l){this.setNextCallback(l);var c=this.props.nodeRef?this.props.nodeRef.current:cc.findDOMNode(this),f=o==null&&!this.props.addEndListener;if(!c||f){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var h=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],p=h[0],g=h[1];this.props.addEndListener(p,g)}o!=null&&setTimeout(this.nextCallback,o)},i.render=function(){var o=this.state.status;if(o===el)return null;var l=this.props,c=l.children;l.in,l.mountOnEnter,l.unmountOnExit,l.appear,l.enter,l.exit,l.timeout,l.addEndListener,l.onEnter,l.onEntering,l.onEntered,l.onExit,l.onExiting,l.onExited,l.nodeRef;var f=XT(l,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ti.createElement(Hc.Provider,{value:null},typeof c=="function"?c(o,f):ti.cloneElement(ti.Children.only(c),f))},t})(ti.Component);Pi.contextType=Hc;Pi.propTypes={};function ya(){}Pi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ya,onEntering:ya,onEntered:ya,onExit:ya,onExiting:ya,onExited:ya};Pi.UNMOUNTED=el;Pi.EXITED=hs;Pi.ENTERING=ps;Pi.ENTERED=Ca;Pi.EXITING=pm;function tD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _g(e,t){var i=function(l){return t&&E.isValidElement(l)?t(l):l},s=Object.create(null);return e&&E.Children.map(e,function(o){return o}).forEach(function(o){s[o.key]=i(o)}),s}function nD(e,t){e=e||{},t=t||{};function i(g){return g in t?t[g]:e[g]}var s=Object.create(null),o=[];for(var l in e)l in t?o.length&&(s[l]=o,o=[]):o.push(l);var c,f={};for(var h in t){if(s[h])for(c=0;c<s[h].length;c++){var p=s[h][c];f[s[h][c]]=i(p)}f[h]=i(h)}for(c=0;c<o.length;c++)f[o[c]]=i(o[c]);return f}function vs(e,t,i){return i[t]!=null?i[t]:e.props[t]}function iD(e,t){return _g(e.children,function(i){return E.cloneElement(i,{onExited:t.bind(null,i),in:!0,appear:vs(i,"appear",e),enter:vs(i,"enter",e),exit:vs(i,"exit",e)})})}function rD(e,t,i){var s=_g(e.children),o=nD(t,s);return Object.keys(o).forEach(function(l){var c=o[l];if(E.isValidElement(c)){var f=l in t,h=l in s,p=t[l],g=E.isValidElement(p)&&!p.props.in;h&&(!f||g)?o[l]=E.cloneElement(c,{onExited:i.bind(null,c),in:!0,exit:vs(c,"exit",e),enter:vs(c,"enter",e)}):!h&&f&&!g?o[l]=E.cloneElement(c,{in:!1}):h&&f&&E.isValidElement(p)&&(o[l]=E.cloneElement(c,{onExited:i.bind(null,c),in:p.props.in,exit:vs(c,"exit",e),enter:vs(c,"enter",e)}))}}),o}var sD=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},aD={component:"div",childFactory:function(t){return t}},Lg=(function(e){WT(t,e);function t(s,o){var l;l=e.call(this,s,o)||this;var c=l.handleExited.bind(tD(l));return l.state={contextValue:{isMounting:!0},handleExited:c,firstRender:!0},l}var i=t.prototype;return i.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},i.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,l){var c=l.children,f=l.handleExited,h=l.firstRender;return{children:h?iD(o,f):rD(o,c,f),firstRender:!1}},i.handleExited=function(o,l){var c=_g(this.props.children);o.key in c||(o.props.onExited&&o.props.onExited(l),this.mounted&&this.setState(function(f){var h=Uc({},f.children);return delete h[o.key],{children:h}}))},i.render=function(){var o=this.props,l=o.component,c=o.childFactory,f=XT(o,["component","childFactory"]),h=this.state.contextValue,p=sD(this.state.children).map(c);return delete f.appear,delete f.enter,delete f.exit,l===null?ti.createElement(Hc.Provider,{value:h},p):ti.createElement(Hc.Provider,{value:h},ti.createElement(l,f,p))},t})(ti.Component);Lg.propTypes={};Lg.defaultProps=aD;const CS={};function ZT(e,t){const i=E.useRef(CS);return i.current===CS&&(i.current=e(t)),i}const oD=[];function lD(e){E.useEffect(e,oD)}class Ng{static create(){return new Ng}currentId=null;start(t,i){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,i()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function JT(){const e=ZT(Ng.create).current;return lD(e.disposeEffect),e}const e2=e=>e.scrollTop;function Ic(e,t){const{timeout:i,easing:s,style:o={}}=e;return{duration:o.transitionDuration??(typeof i=="number"?i:i[t.mode]||0),easing:o.transitionTimingFunction??(typeof s=="object"?s[t.mode]:s),delay:o.transitionDelay}}function Fc(e){return typeof e=="string"}function t2(e,t,i){return e===void 0||Fc(e)?t:{...t,ownerState:{...t.ownerState,...i}}}function n2(e,t,i){return typeof e=="function"?e(t,i):e}function i2(e,t=[]){if(e===void 0)return{};const i={};return Object.keys(e).filter(s=>s.match(/^on[A-Z]/)&&typeof e[s]=="function"&&!t.includes(s)).forEach(s=>{i[s]=e[s]}),i}function TS(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(i=>!(i.match(/^on[A-Z]/)&&typeof e[i]=="function")).forEach(i=>{t[i]=e[i]}),t}function r2(e){const{getSlotProps:t,additionalProps:i,externalSlotProps:s,externalForwardedProps:o,className:l}=e;if(!t){const x=we(i?.className,l,o?.className,s?.className),S={...i?.style,...o?.style,...s?.style},C={...i,...o,...s};return x.length>0&&(C.className=x),Object.keys(S).length>0&&(C.style=S),{props:C,internalRef:void 0}}const c=i2({...o,...s}),f=TS(s),h=TS(o),p=t(c),g=we(p?.className,i?.className,l,o?.className,s?.className),y={...p?.style,...i?.style,...o?.style,...s?.style},v={...p,...i,...h,...f};return g.length>0&&(v.className=g),Object.keys(y).length>0&&(v.style=y),{props:v,internalRef:p.ref}}function Ot(e,t){const{className:i,elementType:s,ownerState:o,externalForwardedProps:l,internalForwardedProps:c,shouldForwardComponentProp:f=!1,...h}=t,{component:p,slots:g={[e]:void 0},slotProps:y={[e]:void 0},...v}=l,x=g[e]||s,S=n2(y[e],o),{props:{component:C,...T},internalRef:D}=r2({className:i,...h,externalForwardedProps:e==="root"?v:void 0,externalSlotProps:S}),L=gn(D,S?.ref,t.ref),R=e==="root"?C||p:C,w=t2(x,{...e==="root"&&!p&&!g[e]&&c,...e!=="root"&&!g[e]&&c,...T,...R&&!f&&{as:R},...R&&f&&{component:R},ref:L},o);return[x,w]}function uD(e){return Fe("MuiPaper",e)}Be("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 cD=e=>{const{square:t,elevation:i,variant:s,classes:o}=e,l={root:["root",s,!t&&"rounded",s==="elevation"&&`elevation${i}`]};return qe(l,uD,o)},fD=de("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[i.variant],!i.square&&t.rounded,i.variant==="elevation"&&t[`elevation${i.elevation}`]]}})(Qe(({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)"}}]}))),zg=E.forwardRef(function(t,i){const s=Ke({props:t,name:"MuiPaper"}),o=$a(),{className:l,component:c="div",elevation:f=1,square:h=!1,variant:p="elevation",...g}=s,y={...s,component:c,elevation:f,square:h,variant:p},v=cD(y);return _.jsx(fD,{as:c,ownerState:y,className:we(v.root,l),ref:i,...g,style:{...p==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[f],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[f]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${St("#fff",fm(f))}, ${St("#fff",fm(f))})`}},...g.style}})});function wS(e){try{return e.matches(":focus-visible")}catch{}return!1}class qc{static create(){return new qc}static use(){const t=ZT(qc.create).current,[i,s]=E.useState(!1);return t.shouldMount=i,t.setShouldMount=s,E.useEffect(t.mountEffect,[i]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=hD(),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 dD(){return qc.use()}function hD(){let e,t;const i=new Promise((s,o)=>{e=s,t=o});return i.resolve=e,i.reject=t,i}function pD(e){const{className:t,classes:i,pulsate:s=!1,rippleX:o,rippleY:l,rippleSize:c,in:f,onExited:h,timeout:p}=e,[g,y]=E.useState(!1),v=we(t,i.ripple,i.rippleVisible,s&&i.ripplePulsate),x={width:c,height:c,top:-(c/2)+l,left:-(c/2)+o},S=we(i.child,g&&i.childLeaving,s&&i.childPulsate);return!f&&!g&&y(!0),E.useEffect(()=>{if(!f&&h!=null){const C=setTimeout(h,p);return()=>{clearTimeout(C)}}},[h,f,p]),_.jsx("span",{className:v,style:x,children:_.jsx("span",{className:S})})}const Jn=Be("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),mm=550,mD=80,gD=_l`
44
+ 0% {
45
+ transform: scale(0);
46
+ opacity: 0.1;
47
+ }
48
+
49
+ 100% {
50
+ transform: scale(1);
51
+ opacity: 0.3;
52
+ }
53
+ `,yD=_l`
54
+ 0% {
55
+ opacity: 1;
56
+ }
57
+
58
+ 100% {
59
+ opacity: 0;
60
+ }
61
+ `,vD=_l`
62
+ 0% {
63
+ transform: scale(1);
64
+ }
65
+
66
+ 50% {
67
+ transform: scale(0.92);
68
+ }
69
+
70
+ 100% {
71
+ transform: scale(1);
72
+ }
73
+ `,bD=de("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),SD=de(pD,{name:"MuiTouchRipple",slot:"Ripple"})`
74
+ opacity: 0;
75
+ position: absolute;
76
+
77
+ &.${Jn.rippleVisible} {
78
+ opacity: 0.3;
79
+ transform: scale(1);
80
+ animation-name: ${gD};
81
+ animation-duration: ${mm}ms;
82
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
83
+ }
84
+
85
+ &.${Jn.ripplePulsate} {
86
+ animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
87
+ }
88
+
89
+ & .${Jn.child} {
90
+ opacity: 1;
91
+ display: block;
92
+ width: 100%;
93
+ height: 100%;
94
+ border-radius: 50%;
95
+ background-color: currentColor;
96
+ }
97
+
98
+ & .${Jn.childLeaving} {
99
+ opacity: 0;
100
+ animation-name: ${yD};
101
+ animation-duration: ${mm}ms;
102
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
103
+ }
104
+
105
+ & .${Jn.childPulsate} {
106
+ position: absolute;
107
+ /* @noflip */
108
+ left: 0px;
109
+ top: 0;
110
+ animation-name: ${vD};
111
+ animation-duration: 2500ms;
112
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
113
+ animation-iteration-count: infinite;
114
+ animation-delay: 200ms;
115
+ }
116
+ `,xD=E.forwardRef(function(t,i){const s=Ke({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:l={},className:c,...f}=s,[h,p]=E.useState([]),g=E.useRef(0),y=E.useRef(null);E.useEffect(()=>{y.current&&(y.current(),y.current=null)},[h]);const v=E.useRef(!1),x=JT(),S=E.useRef(null),C=E.useRef(null),T=E.useCallback(w=>{const{pulsate:M,rippleX:N,rippleY:k,rippleSize:B,cb:G}=w;p(Q=>[...Q,_.jsx(SD,{classes:{ripple:we(l.ripple,Jn.ripple),rippleVisible:we(l.rippleVisible,Jn.rippleVisible),ripplePulsate:we(l.ripplePulsate,Jn.ripplePulsate),child:we(l.child,Jn.child),childLeaving:we(l.childLeaving,Jn.childLeaving),childPulsate:we(l.childPulsate,Jn.childPulsate)},timeout:mm,pulsate:M,rippleX:N,rippleY:k,rippleSize:B},g.current)]),g.current+=1,y.current=G},[l]),D=E.useCallback((w={},M={},N=()=>{})=>{const{pulsate:k=!1,center:B=o||M.pulsate,fakeElement:G=!1}=M;if(w?.type==="mousedown"&&v.current){v.current=!1;return}w?.type==="touchstart"&&(v.current=!0);const Q=G?null:C.current,J=Q?Q.getBoundingClientRect():{width:0,height:0,left:0,top:0};let O,Z,F;if(B||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)O=Math.round(J.width/2),Z=Math.round(J.height/2);else{const{clientX:Y,clientY:P}=w.touches&&w.touches.length>0?w.touches[0]:w;O=Math.round(Y-J.left),Z=Math.round(P-J.top)}if(B)F=Math.sqrt((2*J.width**2+J.height**2)/3),F%2===0&&(F+=1);else{const Y=Math.max(Math.abs((Q?Q.clientWidth:0)-O),O)*2+2,P=Math.max(Math.abs((Q?Q.clientHeight:0)-Z),Z)*2+2;F=Math.sqrt(Y**2+P**2)}w?.touches?S.current===null&&(S.current=()=>{T({pulsate:k,rippleX:O,rippleY:Z,rippleSize:F,cb:N})},x.start(mD,()=>{S.current&&(S.current(),S.current=null)})):T({pulsate:k,rippleX:O,rippleY:Z,rippleSize:F,cb:N})},[o,T,x]),L=E.useCallback(()=>{D({},{pulsate:!0})},[D]),R=E.useCallback((w,M)=>{if(x.clear(),w?.type==="touchend"&&S.current){S.current(),S.current=null,x.start(0,()=>{R(w,M)});return}S.current=null,p(N=>N.length>0?N.slice(1):N),y.current=M},[x]);return E.useImperativeHandle(i,()=>({pulsate:L,start:D,stop:R}),[L,D,R]),_.jsx(bD,{className:we(Jn.root,l.root,c),ref:C,...f,children:_.jsx(Lg,{component:null,exit:!0,children:h})})});function CD(e){return Fe("MuiButtonBase",e)}const TD=Be("MuiButtonBase",["root","disabled","focusVisible"]),wD=e=>{const{disabled:t,focusVisible:i,focusVisibleClassName:s,classes:o}=e,c=qe({root:["root",t&&"disabled",i&&"focusVisible"]},CD,o);return i&&s&&(c.root+=` ${s}`),c},ED=de("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"},[`&.${TD.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Df=E.forwardRef(function(t,i){const s=Ke({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:l=!1,children:c,className:f,component:h="button",disabled:p=!1,disableRipple:g=!1,disableTouchRipple:y=!1,focusRipple:v=!1,focusVisibleClassName:x,LinkComponent:S="a",onBlur:C,onClick:T,onContextMenu:D,onDragLeave:L,onFocus:R,onFocusVisible:w,onKeyDown:M,onKeyUp:N,onMouseDown:k,onMouseLeave:B,onMouseUp:G,onTouchEnd:Q,onTouchMove:J,onTouchStart:O,tabIndex:Z=0,TouchRippleProps:F,touchRippleRef:Y,type:P,...I}=s,ee=E.useRef(null),se=dD(),le=gn(se.ref,Y),[z,q]=E.useState(!1);p&&z&&q(!1),E.useImperativeHandle(o,()=>({focusVisible:()=>{q(!0),ee.current.focus()}}),[]);const ae=se.shouldMount&&!g&&!p;E.useEffect(()=>{z&&v&&!g&&se.pulsate()},[g,v,z,se]);const oe=ir(se,"start",k,y),ue=ir(se,"stop",D,y),pe=ir(se,"stop",L,y),me=ir(se,"stop",G,y),Ue=ir(se,"stop",ge=>{z&&ge.preventDefault(),B&&B(ge)},y),Ce=ir(se,"start",O,y),Te=ir(se,"stop",Q,y),De=ir(se,"stop",J,y),Ve=ir(se,"stop",ge=>{wS(ge.target)||q(!1),C&&C(ge)},!1),Gt=Cs(ge=>{ee.current||(ee.current=ge.currentTarget),wS(ge.target)&&(q(!0),w&&w(ge)),R&&R(ge)}),Se=()=>{const ge=ee.current;return h&&h!=="button"&&!(ge.tagName==="A"&&ge.href)},_e=Cs(ge=>{v&&!ge.repeat&&z&&ge.key===" "&&se.stop(ge,()=>{se.start(ge)}),ge.target===ge.currentTarget&&Se()&&ge.key===" "&&ge.preventDefault(),M&&M(ge),ge.target===ge.currentTarget&&Se()&&ge.key==="Enter"&&!p&&(ge.preventDefault(),T&&T(ge))}),Dt=Cs(ge=>{v&&ge.key===" "&&z&&!ge.defaultPrevented&&se.stop(ge,()=>{se.pulsate(ge)}),N&&N(ge),T&&ge.target===ge.currentTarget&&Se()&&ge.key===" "&&!ge.defaultPrevented&&T(ge)});let zt=h;zt==="button"&&(I.href||I.to)&&(zt=S);const ft={};if(zt==="button"){const ge=!!I.formAction;ft.type=P===void 0&&!ge?"button":P,ft.disabled=p}else!I.href&&!I.to&&(ft.role="button"),p&&(ft["aria-disabled"]=p);const at=gn(i,ee),kt={...s,centerRipple:l,component:h,disabled:p,disableRipple:g,disableTouchRipple:y,focusRipple:v,tabIndex:Z,focusVisible:z},ot=wD(kt);return _.jsxs(ED,{as:zt,className:we(ot.root,f),ownerState:kt,onBlur:Ve,onClick:T,onContextMenu:ue,onFocus:Gt,onKeyDown:_e,onKeyUp:Dt,onMouseDown:oe,onMouseLeave:Ue,onMouseUp:me,onDragLeave:pe,onTouchEnd:Te,onTouchMove:De,onTouchStart:Ce,ref:at,tabIndex:p?-1:Z,type:P,...ft,...I,children:[c,ae?_.jsx(xD,{ref:le,center:l,...F}):null]})});function ir(e,t,i,s=!1){return Cs(o=>(i&&i(o),s||e[t](o),!0))}function RD(e){return typeof e.main=="string"}function AD(e,t=[]){if(!RD(e))return!1;for(const i of t)if(!e.hasOwnProperty(i)||typeof e[i]!="string")return!1;return!0}function Un(e=[]){return([,t])=>t&&AD(t,e)}function OD(e){return Fe("MuiAlert",e)}const ES=Be("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 MD(e){return Fe("MuiCircularProgress",e)}Be("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const fi=44,gm=_l`
117
+ 0% {
118
+ transform: rotate(0deg);
119
+ }
120
+
121
+ 100% {
122
+ transform: rotate(360deg);
123
+ }
124
+ `,ym=_l`
125
+ 0% {
126
+ stroke-dasharray: 1px, 200px;
127
+ stroke-dashoffset: 0;
128
+ }
129
+
130
+ 50% {
131
+ stroke-dasharray: 100px, 200px;
132
+ stroke-dashoffset: -15px;
133
+ }
134
+
135
+ 100% {
136
+ stroke-dasharray: 1px, 200px;
137
+ stroke-dashoffset: -126px;
138
+ }
139
+ `,DD=typeof gm!="string"?vg`
140
+ animation: ${gm} 1.4s linear infinite;
141
+ `:null,_D=typeof ym!="string"?vg`
142
+ animation: ${ym} 1.4s ease-in-out infinite;
143
+ `:null,LD=e=>{const{classes:t,variant:i,color:s,disableShrink:o}=e,l={root:["root",i,`color${be(s)}`],svg:["svg"],track:["track"],circle:["circle",`circle${be(i)}`,o&&"circleDisableShrink"]};return qe(l,MD,t)},ND=de("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[i.variant],t[`color${be(i.color)}`]]}})(Qe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:DD||{animation:`${gm} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Un()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),zD=de("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),kD=de("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.circle,t[`circle${be(i.variant)}`],i.disableShrink&&t.circleDisableShrink]}})(Qe(({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:_D||{animation:`${ym} 1.4s ease-in-out infinite`}}]}))),PD=de("circle",{name:"MuiCircularProgress",slot:"Track"})(Qe(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),_a=E.forwardRef(function(t,i){const s=Ke({props:t,name:"MuiCircularProgress"}),{className:o,color:l="primary",disableShrink:c=!1,enableTrackSlot:f=!1,size:h=40,style:p,thickness:g=3.6,value:y=0,variant:v="indeterminate",...x}=s,S={...s,color:l,disableShrink:c,size:h,thickness:g,value:y,variant:v,enableTrackSlot:f},C=LD(S),T={},D={},L={};if(v==="determinate"){const R=2*Math.PI*((fi-g)/2);T.strokeDasharray=R.toFixed(3),L["aria-valuenow"]=Math.round(y),T.strokeDashoffset=`${((100-y)/100*R).toFixed(3)}px`,D.transform="rotate(-90deg)"}return _.jsx(ND,{className:we(C.root,o),style:{width:h,height:h,...D,...p},ownerState:S,ref:i,role:"progressbar",...L,...x,children:_.jsxs(zD,{className:C.svg,ownerState:S,viewBox:`${fi/2} ${fi/2} ${fi} ${fi}`,children:[f?_.jsx(PD,{className:C.track,ownerState:S,cx:fi,cy:fi,r:(fi-g)/2,fill:"none",strokeWidth:g,"aria-hidden":"true"}):null,_.jsx(kD,{className:C.circle,style:T,ownerState:S,cx:fi,cy:fi,r:(fi-g)/2,fill:"none",strokeWidth:g})]})})});function jD(e){return Fe("MuiIconButton",e)}const RS=Be("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),BD=e=>{const{classes:t,disabled:i,color:s,edge:o,size:l,loading:c}=e,f={root:["root",c&&"loading",i&&"disabled",s!=="default"&&`color${be(s)}`,o&&`edge${be(o)}`,`size${be(l)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return qe(f,jD,t)},UD=de(Df,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.loading&&t.loading,i.color!=="default"&&t[`color${be(i.color)}`],i.edge&&t[`edge${be(i.edge)}`],t[`size${be(i.size)}`]]}})(Qe(({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}}]})),Qe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Un()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Un()).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)}}],[`&.${RS.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${RS.loading}`]:{color:"transparent"}}))),VD=de("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"}}]})),$D=E.forwardRef(function(t,i){const s=Ke({props:t,name:"MuiIconButton"}),{edge:o=!1,children:l,className:c,color:f="default",disabled:h=!1,disableFocusRipple:p=!1,size:g="medium",id:y,loading:v=null,loadingIndicator:x,...S}=s,C=kl(y),T=x??_.jsx(_a,{"aria-labelledby":C,color:"inherit",size:16}),D={...s,edge:o,color:f,disabled:h,disableFocusRipple:p,loading:v,loadingIndicator:T,size:g},L=BD(D);return _.jsxs(UD,{id:v?C:y,className:we(L.root,c),centerRipple:!0,focusRipple:!p,disabled:h||v,ref:i,...S,ownerState:D,children:[typeof v=="boolean"&&_.jsx("span",{className:L.loadingWrapper,style:{display:"contents"},children:_.jsx(VD,{className:L.loadingIndicator,ownerState:D,children:v&&T})}),l]})}),HD=on(_.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"})),ID=on(_.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),FD=on(_.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"})),qD=on(_.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"})),KD=on(_.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"})),GD=e=>{const{variant:t,color:i,severity:s,classes:o}=e,l={root:["root",`color${be(i||s)}`,`${t}${be(i||s)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return qe(l,OD,o)},YD=de(zg,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[i.variant],t[`${i.variant}${be(i.color||i.severity)}`]]}})(Qe(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,i=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(Un(["light"])).map(([s])=>({props:{colorSeverity:s,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${s}Color`]:t(e.palette[s].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${s}StandardBg`]:i(e.palette[s].light,.9),[`& .${ES.icon}`]:e.vars?{color:e.vars.palette.Alert[`${s}IconColor`]}:{color:e.palette[s].main}}})),...Object.entries(e.palette).filter(Un(["light"])).map(([s])=>({props:{colorSeverity:s,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${s}Color`]:t(e.palette[s].light,.6),border:`1px solid ${(e.vars||e).palette[s].light}`,[`& .${ES.icon}`]:e.vars?{color:e.vars.palette.Alert[`${s}IconColor`]}:{color:e.palette[s].main}}})),...Object.entries(e.palette).filter(Un(["dark"])).map(([s])=>({props:{colorSeverity:s,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${s}FilledColor`],backgroundColor:e.vars.palette.Alert[`${s}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[s].dark:e.palette[s].main,color:e.palette.getContrastText(e.palette[s].main)}}}))]}})),XD=de("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),WD=de("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),QD=de("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),ZD={success:_.jsx(HD,{fontSize:"inherit"}),warning:_.jsx(ID,{fontSize:"inherit"}),error:_.jsx(FD,{fontSize:"inherit"}),info:_.jsx(qD,{fontSize:"inherit"})},s2=E.forwardRef(function(t,i){const s=Ke({props:t,name:"MuiAlert"}),{action:o,children:l,className:c,closeText:f="Close",color:h,components:p={},componentsProps:g={},icon:y,iconMapping:v=ZD,onClose:x,role:S="alert",severity:C="success",slotProps:T={},slots:D={},variant:L="standard",...R}=s,w={...s,color:h,severity:C,variant:L,colorSeverity:h||C},M=GD(w),N={slots:{closeButton:p.CloseButton,closeIcon:p.CloseIcon,...D},slotProps:{...g,...T}},[k,B]=Ot("root",{ref:i,shouldForwardComponentProp:!0,className:we(M.root,c),elementType:YD,externalForwardedProps:{...N,...R},ownerState:w,additionalProps:{role:S,elevation:0}}),[G,Q]=Ot("icon",{className:M.icon,elementType:XD,externalForwardedProps:N,ownerState:w}),[J,O]=Ot("message",{className:M.message,elementType:WD,externalForwardedProps:N,ownerState:w}),[Z,F]=Ot("action",{className:M.action,elementType:QD,externalForwardedProps:N,ownerState:w}),[Y,P]=Ot("closeButton",{elementType:$D,externalForwardedProps:N,ownerState:w}),[I,ee]=Ot("closeIcon",{elementType:KD,externalForwardedProps:N,ownerState:w});return _.jsxs(k,{...B,children:[y!==!1?_.jsx(G,{...Q,children:y||v[C]}):null,_.jsx(J,{...O,children:l}),o!=null?_.jsx(Z,{...F,children:o}):null,o==null&&x?_.jsx(Z,{...F,children:_.jsx(Y,{size:"small","aria-label":f,title:f,color:"inherit",onClick:x,...P,children:_.jsx(I,{fontSize:"small",...ee})})}):null]})});function JD(e){return Fe("MuiTypography",e)}Be("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const e_={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},t_=Y3(),n_=e=>{const{align:t,gutterBottom:i,noWrap:s,paragraph:o,variant:l,classes:c}=e,f={root:["root",l,e.align!=="inherit"&&`align${be(t)}`,i&&"gutterBottom",s&&"noWrap",o&&"paragraph"]};return qe(f,JD,c)},i_=de("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.variant&&t[i.variant],i.align!=="inherit"&&t[`align${be(i.align)}`],i.noWrap&&t.noWrap,i.gutterBottom&&t.gutterBottom,i.paragraph&&t.paragraph]}})(Qe(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,i])=>t!=="inherit"&&i&&typeof i=="object").map(([t,i])=>({props:{variant:t},style:i})),...Object.entries(e.palette).filter(Un()).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${be(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}}]}))),AS={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},pt=E.forwardRef(function(t,i){const{color:s,...o}=Ke({props:t,name:"MuiTypography"}),l=!e_[s],c=t_({...o,...l&&{color:s}}),{align:f="inherit",className:h,component:p,gutterBottom:g=!1,noWrap:y=!1,paragraph:v=!1,variant:x="body1",variantMapping:S=AS,...C}=c,T={...c,align:f,color:s,className:h,component:p,gutterBottom:g,noWrap:y,paragraph:v,variant:x,variantMapping:S},D=p||(v?"p":S[x]||AS[x])||"span",L=n_(T);return _.jsx(i_,{as:D,ref:i,className:we(L.root,h),...C,ownerState:T,style:{...f!=="inherit"&&{"--Typography-textAlign":f},...C.style}})});function r_(e){const{elementType:t,externalSlotProps:i,ownerState:s,skipResolvingSlotProps:o=!1,...l}=e,c=o?{}:n2(i,s),{props:f,internalRef:h}=r2({...l,externalSlotProps:c}),p=gn(h,c?.ref,e.additionalProps?.ref);return t2(t,{...f,ref:p},s)}function Pl(e){return parseInt(E.version,10)>=19?e?.props?.ref||null:e?.ref||null}function s_(e){return typeof e=="function"?e():e}const a_=E.forwardRef(function(t,i){const{children:s,container:o,disablePortal:l=!1}=t,[c,f]=E.useState(null),h=gn(E.isValidElement(s)?Pl(s):null,i);if(zi(()=>{l||f(s_(o)||document.body)},[o,l]),zi(()=>{if(c&&!l)return bS(i,c),()=>{bS(i,null)}},[i,c,l]),l){if(E.isValidElement(s)){const p={ref:h};return E.cloneElement(s,p)}return s}return c&&QT.createPortal(s,c)});function fc(e){return parseInt(e,10)||0}const o_={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function l_(e){for(const t in e)return!1;return!0}function OS(e){return l_(e)||e.outerHeightStyle===0&&!e.overflowing}const u_=E.forwardRef(function(t,i){const{onChange:s,maxRows:o,minRows:l=1,style:c,value:f,...h}=t,{current:p}=E.useRef(f!=null),g=E.useRef(null),y=gn(i,g),v=E.useRef(null),x=E.useRef(null),S=E.useCallback(()=>{const R=g.current,w=x.current;if(!R||!w)return;const N=lr(R).getComputedStyle(R);if(N.width==="0px")return{outerHeightStyle:0,overflowing:!1};w.style.width=N.width,w.value=R.value||t.placeholder||"x",w.value.slice(-1)===`
144
+ `&&(w.value+=" ");const k=N.boxSizing,B=fc(N.paddingBottom)+fc(N.paddingTop),G=fc(N.borderBottomWidth)+fc(N.borderTopWidth),Q=w.scrollHeight;w.value="x";const J=w.scrollHeight;let O=Q;l&&(O=Math.max(Number(l)*J,O)),o&&(O=Math.min(Number(o)*J,O)),O=Math.max(O,J);const Z=O+(k==="border-box"?B+G:0),F=Math.abs(O-Q)<=1;return{outerHeightStyle:Z,overflowing:F}},[o,l,t.placeholder]),C=Cs(()=>{const R=g.current,w=S();if(!R||!w||OS(w))return!1;const M=w.outerHeightStyle;return v.current!=null&&v.current!==M}),T=E.useCallback(()=>{const R=g.current,w=S();if(!R||!w||OS(w))return;const M=w.outerHeightStyle;v.current!==M&&(v.current=M,R.style.height=`${M}px`),R.style.overflow=w.overflowing?"hidden":""},[S]),D=E.useRef(-1);zi(()=>{const R=YT(T),w=g?.current;if(!w)return;const M=lr(w);M.addEventListener("resize",R);let N;return typeof ResizeObserver<"u"&&(N=new ResizeObserver(()=>{C()&&(N.unobserve(w),cancelAnimationFrame(D.current),T(),D.current=requestAnimationFrame(()=>{N.observe(w)}))}),N.observe(w)),()=>{R.clear(),cancelAnimationFrame(D.current),M.removeEventListener("resize",R),N&&N.disconnect()}},[S,T,C]),zi(()=>{T()});const L=R=>{p||T();const w=R.target,M=w.value.length,N=w.value.endsWith(`
145
+ `),k=w.selectionStart===M;N&&k&&w.setSelectionRange(M,M),s&&s(R)};return _.jsxs(E.Fragment,{children:[_.jsx("textarea",{value:f,onChange:L,ref:y,rows:l,style:c,...h}),_.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:x,tabIndex:-1,style:{...o_.shadow,...c,paddingTop:0,paddingBottom:0}})]})});function Ha({props:e,states:t,muiFormControl:i}){return t.reduce((s,o)=>(s[o]=e[o],i&&typeof e[o]>"u"&&(s[o]=i[o]),s),{})}const kg=E.createContext(void 0);function Ia(){return E.useContext(kg)}function MS(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Kc(e,t=!1){return e&&(MS(e.value)&&e.value!==""||t&&MS(e.defaultValue)&&e.defaultValue!=="")}function c_(e){return e.startAdornment}function f_(e){return Fe("MuiInputBase",e)}const za=Be("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var DS;const _f=(e,t)=>{const{ownerState:i}=e;return[t.root,i.formControl&&t.formControl,i.startAdornment&&t.adornedStart,i.endAdornment&&t.adornedEnd,i.error&&t.error,i.size==="small"&&t.sizeSmall,i.multiline&&t.multiline,i.color&&t[`color${be(i.color)}`],i.fullWidth&&t.fullWidth,i.hiddenLabel&&t.hiddenLabel]},Lf=(e,t)=>{const{ownerState:i}=e;return[t.input,i.size==="small"&&t.inputSizeSmall,i.multiline&&t.inputMultiline,i.type==="search"&&t.inputTypeSearch,i.startAdornment&&t.inputAdornedStart,i.endAdornment&&t.inputAdornedEnd,i.hiddenLabel&&t.inputHiddenLabel]},d_=e=>{const{classes:t,color:i,disabled:s,error:o,endAdornment:l,focused:c,formControl:f,fullWidth:h,hiddenLabel:p,multiline:g,readOnly:y,size:v,startAdornment:x,type:S}=e,C={root:["root",`color${be(i)}`,s&&"disabled",o&&"error",h&&"fullWidth",c&&"focused",f&&"formControl",v&&v!=="medium"&&`size${be(v)}`,g&&"multiline",x&&"adornedStart",l&&"adornedEnd",p&&"hiddenLabel",y&&"readOnly"],input:["input",s&&"disabled",S==="search"&&"inputTypeSearch",g&&"inputMultiline",v==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",x&&"inputAdornedStart",l&&"inputAdornedEnd",y&&"readOnly"]};return qe(C,f_,t)},Nf=de("div",{name:"MuiInputBase",slot:"Root",overridesResolver:_f})(Qe(({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",[`&.${za.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:i})=>t.multiline&&i==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),zf=de("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Lf})(Qe(({theme:e})=>{const t=e.palette.mode==="light",i={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},s={opacity:"0 !important"},o=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":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${za.formControl} &`]:{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${za.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:l})=>!l.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:l})=>l.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),_S=Dg({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Pg=E.forwardRef(function(t,i){const s=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:l,autoFocus:c,className:f,color:h,components:p={},componentsProps:g={},defaultValue:y,disabled:v,disableInjectingGlobalStyles:x,endAdornment:S,error:C,fullWidth:T=!1,id:D,inputComponent:L="input",inputProps:R={},inputRef:w,margin:M,maxRows:N,minRows:k,multiline:B=!1,name:G,onBlur:Q,onChange:J,onClick:O,onFocus:Z,onKeyDown:F,onKeyUp:Y,placeholder:P,readOnly:I,renderSuffix:ee,rows:se,size:le,slotProps:z={},slots:q={},startAdornment:ae,type:oe="text",value:ue,...pe}=s,me=R.value!=null?R.value:ue,{current:Ue}=E.useRef(me!=null),Ce=E.useRef(),Te=E.useCallback(lt=>{},[]),De=gn(Ce,w,R.ref,Te),[Ve,Gt]=E.useState(!1),Se=Ia(),_e=Ha({props:s,muiFormControl:Se,states:["color","disabled","error","hiddenLabel","size","required","filled"]});_e.focused=Se?Se.focused:Ve,E.useEffect(()=>{!Se&&v&&Ve&&(Gt(!1),Q&&Q())},[Se,v,Ve,Q]);const Dt=Se&&Se.onFilled,zt=Se&&Se.onEmpty,ft=E.useCallback(lt=>{Kc(lt)?Dt&&Dt():zt&&zt()},[Dt,zt]);zi(()=>{Ue&&ft({value:me})},[me,ft,Ue]);const at=lt=>{Z&&Z(lt),R.onFocus&&R.onFocus(lt),Se&&Se.onFocus?Se.onFocus(lt):Gt(!0)},kt=lt=>{Q&&Q(lt),R.onBlur&&R.onBlur(lt),Se&&Se.onBlur?Se.onBlur(lt):Gt(!1)},ot=(lt,...ai)=>{if(!Ue){const $n=lt.target||Ce.current;if($n==null)throw new Error(or(1));ft({value:$n.value})}R.onChange&&R.onChange(lt,...ai),J&&J(lt,...ai)};E.useEffect(()=>{ft(Ce.current)},[]);const ge=lt=>{Ce.current&&lt.currentTarget===lt.target&&Ce.current.focus(),O&&O(lt)};let si=L,ze=R;B&&si==="input"&&(se?ze={type:void 0,minRows:se,maxRows:se,...ze}:ze={type:void 0,maxRows:N,minRows:k,...ze},si=u_);const ji=lt=>{ft(lt.animationName==="mui-auto-fill-cancel"?Ce.current:{value:"x"})};E.useEffect(()=>{Se&&Se.setAdornedStart(!!ae)},[Se,ae]);const gt={...s,color:_e.color||"primary",disabled:_e.disabled,endAdornment:S,error:_e.error,focused:_e.focused,formControl:Se,fullWidth:T,hiddenLabel:_e.hiddenLabel,multiline:B,size:_e.size,startAdornment:ae,type:oe},$e=d_(gt),Ct=q.root||p.Root||Nf,It=z.root||g.root||{},On=q.input||p.Input||zf;return ze={...ze,...z.input??g.input},_.jsxs(E.Fragment,{children:[!x&&typeof _S=="function"&&(DS||(DS=_.jsx(_S,{}))),_.jsxs(Ct,{...It,ref:i,onClick:ge,...pe,...!Fc(Ct)&&{ownerState:{...gt,...It.ownerState}},className:we($e.root,It.className,f,I&&"MuiInputBase-readOnly"),children:[ae,_.jsx(kg.Provider,{value:null,children:_.jsx(On,{"aria-invalid":_e.error,"aria-describedby":o,autoComplete:l,autoFocus:c,defaultValue:y,disabled:_e.disabled,id:D,onAnimationStart:ji,name:G,placeholder:P,readOnly:I,required:_e.required,rows:se,value:me,onKeyDown:F,onKeyUp:Y,type:oe,...ze,...!Fc(On)&&{as:si,ownerState:{...gt,...ze.ownerState}},ref:De,className:we($e.input,ze.className,I&&"MuiInputBase-readOnly"),onBlur:kt,onChange:ot,onFocus:at})}),S,ee?ee({..._e,startAdornment:ae}):null]})]})});function h_(e){return Fe("MuiInput",e)}const qo={...za,...Be("MuiInput",["root","underline","input"])};function p_(e){return Fe("MuiOutlinedInput",e)}const Ei={...za,...Be("MuiOutlinedInput",["root","notchedOutline","input"])};function m_(e){return Fe("MuiFilledInput",e)}const cs={...za,...Be("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},g_=on(_.jsx("path",{d:"M7 10l5 5 5-5z"})),y_={entering:{opacity:1},entered:{opacity:1}},v_=E.forwardRef(function(t,i){const s=$a(),o={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{addEndListener:l,appear:c=!0,children:f,easing:h,in:p,onEnter:g,onEntered:y,onEntering:v,onExit:x,onExited:S,onExiting:C,style:T,timeout:D=o,TransitionComponent:L=Pi,...R}=t,w=E.useRef(null),M=gn(w,Pl(f),i),N=F=>Y=>{if(F){const P=w.current;Y===void 0?F(P):F(P,Y)}},k=N(v),B=N((F,Y)=>{e2(F);const P=Ic({style:T,timeout:D,easing:h},{mode:"enter"});F.style.webkitTransition=s.transitions.create("opacity",P),F.style.transition=s.transitions.create("opacity",P),g&&g(F,Y)}),G=N(y),Q=N(C),J=N(F=>{const Y=Ic({style:T,timeout:D,easing:h},{mode:"exit"});F.style.webkitTransition=s.transitions.create("opacity",Y),F.style.transition=s.transitions.create("opacity",Y),x&&x(F)}),O=N(S),Z=F=>{l&&l(w.current,F)};return _.jsx(L,{appear:c,in:p,nodeRef:w,onEnter:B,onEntered:G,onEntering:k,onExit:J,onExited:O,onExiting:Q,addEndListener:Z,timeout:D,...R,children:(F,{ownerState:Y,...P})=>E.cloneElement(f,{style:{opacity:0,visibility:F==="exited"&&!p?"hidden":void 0,...y_[F],...T,...f.props.style},ref:M,...P})})});function b_(e){return Fe("MuiBackdrop",e)}Be("MuiBackdrop",["root","invisible"]);const S_=e=>{const{classes:t,invisible:i}=e;return qe({root:["root",i&&"invisible"]},b_,t)},x_=de("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.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"}}]}),C_=E.forwardRef(function(t,i){const s=Ke({props:t,name:"MuiBackdrop"}),{children:o,className:l,component:c="div",invisible:f=!1,open:h,components:p={},componentsProps:g={},slotProps:y={},slots:v={},TransitionComponent:x,transitionDuration:S,...C}=s,T={...s,component:c,invisible:f},D=S_(T),L={transition:x,root:p.Root,...v},R={...g,...y},w={component:c,slots:L,slotProps:R},[M,N]=Ot("root",{elementType:x_,externalForwardedProps:w,className:we(D.root,l),ownerState:T}),[k,B]=Ot("transition",{elementType:v_,externalForwardedProps:w,ownerState:T});return _.jsx(k,{in:h,timeout:S,...C,...B,children:_.jsx(M,{"aria-hidden":!0,...N,ref:i,children:o})})}),T_=Be("MuiBox",["root"]),w_=Mf(),bt=h5({themeId:_i,defaultTheme:w_,defaultClassName:T_.root,generateClassName:AT.generate});function E_(e){return Fe("MuiButton",e)}const fs=Be("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"]),R_=E.createContext({}),A_=E.createContext(void 0),O_=e=>{const{color:t,disableElevation:i,fullWidth:s,size:o,variant:l,loading:c,loadingPosition:f,classes:h}=e,p={root:["root",c&&"loading",l,`${l}${be(t)}`,`size${be(o)}`,`${l}Size${be(o)}`,`color${be(t)}`,i&&"disableElevation",s&&"fullWidth",c&&`loadingPosition${be(f)}`],startIcon:["icon","startIcon",`iconSize${be(o)}`],endIcon:["icon","endIcon",`iconSize${be(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},g=qe(p,E_,h);return{...h,...g}},a2=[{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}}}],M_=de(Df,{shouldForwardProp:e=>Vn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[i.variant],t[`${i.variant}${be(i.color)}`],t[`size${be(i.size)}`],t[`${i.variant}Size${be(i.size)}`],i.color==="inherit"&&t.colorInherit,i.disableElevation&&t.disableElevation,i.fullWidth&&t.fullWidth,i.loading&&t.loading]}})(Qe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=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"},[`&.${fs.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]},[`&.${fs.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${fs.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)",[`&.${fs.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(Un()).map(([s])=>({props:{color:s},style:{"--variant-textColor":(e.vars||e).palette[s].main,"--variant-outlinedColor":(e.vars||e).palette[s].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[s].main,.5),"--variant-containedColor":(e.vars||e).palette[s].contrastText,"--variant-containedBg":(e.vars||e).palette[s].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[s].dark,"--variant-textBg":e.alpha((e.vars||e).palette[s].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[s].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[s].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:i,"--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"},[`&.${fs.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${fs.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}),[`&.${fs.loading}`]:{color:"transparent"}}}]}})),D_=de("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.startIcon,i.loading&&t.startIconLoadingStart,t[`iconSize${be(i.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}},...a2]})),__=de("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.endIcon,i.loading&&t.endIconLoadingEnd,t[`iconSize${be(i.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}},...a2]})),L_=de("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}}]})),LS=de("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),dc=E.forwardRef(function(t,i){const s=E.useContext(R_),o=E.useContext(A_),l=yl(s,t),c=Ke({props:l,name:"MuiButton"}),{children:f,color:h="primary",component:p="button",className:g,disabled:y=!1,disableElevation:v=!1,disableFocusRipple:x=!1,endIcon:S,focusVisibleClassName:C,fullWidth:T=!1,id:D,loading:L=null,loadingIndicator:R,loadingPosition:w="center",size:M="medium",startIcon:N,type:k,variant:B="text",...G}=c,Q=kl(D),J=R??_.jsx(_a,{"aria-labelledby":Q,color:"inherit",size:16}),O={...c,color:h,component:p,disabled:y,disableElevation:v,disableFocusRipple:x,fullWidth:T,loading:L,loadingIndicator:J,loadingPosition:w,size:M,type:k,variant:B},Z=O_(O),F=(N||L&&w==="start")&&_.jsx(D_,{className:Z.startIcon,ownerState:O,children:N||_.jsx(LS,{className:Z.loadingIconPlaceholder,ownerState:O})}),Y=(S||L&&w==="end")&&_.jsx(__,{className:Z.endIcon,ownerState:O,children:S||_.jsx(LS,{className:Z.loadingIconPlaceholder,ownerState:O})}),P=o||"",I=typeof L=="boolean"?_.jsx("span",{className:Z.loadingWrapper,style:{display:"contents"},children:L&&_.jsx(L_,{className:Z.loadingIndicator,ownerState:O,children:J})}):null;return _.jsxs(M_,{ownerState:O,className:we(s.className,Z.root,g,P),component:p,disabled:y||L,focusRipple:!x,focusVisibleClassName:we(Z.focusVisible,C),ref:i,type:k,id:L?Q:D,...G,classes:Z,children:[F,w!=="end"&&I,f,w==="end"&&I,Y]})});function N_(e){return Fe("MuiCard",e)}Be("MuiCard",["root"]);const z_=e=>{const{classes:t}=e;return qe({root:["root"]},N_,t)},k_=de(zg,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),vm=E.forwardRef(function(t,i){const s=Ke({props:t,name:"MuiCard"}),{className:o,raised:l=!1,...c}=s,f={...s,raised:l},h=z_(f);return _.jsx(k_,{className:we(h.root,o),elevation:l?8:void 0,ref:i,ownerState:f,...c})});function P_(e){return Fe("MuiCardContent",e)}Be("MuiCardContent",["root"]);const j_=e=>{const{classes:t}=e;return qe({root:["root"]},P_,t)},B_=de("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),bm=E.forwardRef(function(t,i){const s=Ke({props:t,name:"MuiCardContent"}),{className:o,component:l="div",...c}=s,f={...s,component:l},h=j_(f);return _.jsx(B_,{as:l,className:we(h.root,o),ownerState:f,ref:i,...c})}),Sm=r3({createStyledComponent:de("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[`maxWidth${be(String(i.maxWidth))}`],i.fixed&&t.fixed,i.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ke({props:e,name:"MuiContainer"})}),xm=typeof Dg({})=="function",U_=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),V_=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}}),o2=(e,t=!1)=>{const i={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([l,c])=>{const f=e.getColorSchemeSelector(l);f.startsWith("@")?i[f]={":root":{colorScheme:c.palette?.mode}}:i[f.replace(/\s*&/,"")]={colorScheme:c.palette?.mode}});let s={html:U_(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...V_(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...i};const o=e.components?.MuiCssBaseline?.styleOverrides;return o&&(s=[s,o]),s},Oc="mui-ecs",$_=e=>{const t=o2(e,!1),i=Array.isArray(t)?t[0]:t;return!e.vars&&i&&(i.html[`:root:has(${Oc})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,o])=>{const l=e.getColorSchemeSelector(s);l.startsWith("@")?i[l]={[`:root:not(:has(.${Oc}))`]:{colorScheme:o.palette?.mode}}:i[l.replace(/\s*&/,"")]={[`&:not(:has(.${Oc}))`]:{colorScheme:o.palette?.mode}}}),t},H_=Dg(xm?({theme:e,enableColorScheme:t})=>o2(e,t):({theme:e})=>$_(e));function I_(e){const t=Ke({props:e,name:"MuiCssBaseline"}),{children:i,enableColorScheme:s=!1}=t;return _.jsxs(E.Fragment,{children:[xm&&_.jsx(H_,{enableColorScheme:s}),!xm&&!s&&_.jsx("span",{className:Oc,style:{display:"none"}}),i]})}function l2(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function F_(e){const t=gi(e);return t.body===e?lr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function al(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function NS(e){return parseFloat(lr(e).getComputedStyle(e).paddingRight)||0}function q_(e){const i=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),s=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return i||s}function zS(e,t,i,s,o){const l=[t,i,...s];[].forEach.call(e.children,c=>{const f=!l.includes(c),h=!q_(c);f&&h&&al(c,o)})}function Rp(e,t){let i=-1;return e.some((s,o)=>t(s)?(i=o,!0):!1),i}function K_(e,t){const i=[],s=e.container;if(!t.disableScrollLock){if(F_(s)){const c=l2(lr(s));i.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${NS(s)+c}px`;const f=gi(s).querySelectorAll(".mui-fixed");[].forEach.call(f,h=>{i.push({value:h.style.paddingRight,property:"padding-right",el:h}),h.style.paddingRight=`${NS(h)+c}px`})}let l;if(s.parentNode instanceof DocumentFragment)l=gi(s).body;else{const c=s.parentElement,f=lr(s);l=c?.nodeName==="HTML"&&f.getComputedStyle(c).overflowY==="scroll"?c:s}i.push({value:l.style.overflow,property:"overflow",el:l},{value:l.style.overflowX,property:"overflow-x",el:l},{value:l.style.overflowY,property:"overflow-y",el:l}),l.style.overflow="hidden"}return()=>{i.forEach(({value:l,el:c,property:f})=>{l?c.style.setProperty(f,l):c.style.removeProperty(f)})}}function G_(e){const t=[];return[].forEach.call(e.children,i=>{i.getAttribute("aria-hidden")==="true"&&t.push(i)}),t}class Y_{constructor(){this.modals=[],this.containers=[]}add(t,i){let s=this.modals.indexOf(t);if(s!==-1)return s;s=this.modals.length,this.modals.push(t),t.modalRef&&al(t.modalRef,!1);const o=G_(i);zS(i,t.mount,t.modalRef,o,!0);const l=Rp(this.containers,c=>c.container===i);return l!==-1?(this.containers[l].modals.push(t),s):(this.containers.push({modals:[t],container:i,restore:null,hiddenSiblings:o}),s)}mount(t,i){const s=Rp(this.containers,l=>l.modals.includes(t)),o=this.containers[s];o.restore||(o.restore=K_(o,i))}remove(t,i=!0){const s=this.modals.indexOf(t);if(s===-1)return s;const o=Rp(this.containers,c=>c.modals.includes(t)),l=this.containers[o];if(l.modals.splice(l.modals.indexOf(t),1),this.modals.splice(s,1),l.modals.length===0)l.restore&&l.restore(),t.modalRef&&al(t.modalRef,i),zS(l.container,t.mount,t.modalRef,l.hiddenSiblings,!1),this.containers.splice(o,1);else{const c=l.modals[l.modals.length-1];c.modalRef&&al(c.modalRef,!1)}return s}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function tl(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const X_=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function W_(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 Q_(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=s=>e.ownerDocument.querySelector(`input[type="radio"]${s}`);let i=t(`[name="${e.name}"]:checked`);return i||(i=t(`[name="${e.name}"]`)),i!==e}function Z_(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Q_(e))}function J_(e){const t=[],i=[];return Array.from(e.querySelectorAll(X_)).forEach((s,o)=>{const l=W_(s);l===-1||!Z_(s)||(l===0?t.push(s):i.push({documentOrder:o,tabIndex:l,node:s}))}),i.sort((s,o)=>s.tabIndex===o.tabIndex?s.documentOrder-o.documentOrder:s.tabIndex-o.tabIndex).map(s=>s.node).concat(t)}function eL(){return!0}function tL(e){const{children:t,disableAutoFocus:i=!1,disableEnforceFocus:s=!1,disableRestoreFocus:o=!1,getTabbable:l=J_,isEnabled:c=eL,open:f}=e,h=E.useRef(!1),p=E.useRef(null),g=E.useRef(null),y=E.useRef(null),v=E.useRef(null),x=E.useRef(!1),S=E.useRef(null),C=gn(Pl(t),S),T=E.useRef(null);E.useEffect(()=>{!f||!S.current||(x.current=!i)},[i,f]),E.useEffect(()=>{if(!f||!S.current)return;const R=gi(S.current),w=tl(R);return S.current.contains(w)||(S.current.hasAttribute("tabIndex")||S.current.setAttribute("tabIndex","-1"),x.current&&S.current.focus()),()=>{o||(y.current&&y.current.focus&&(h.current=!0,y.current.focus()),y.current=null)}},[f]),E.useEffect(()=>{if(!f||!S.current)return;const R=gi(S.current),w=k=>{if(T.current=k,s||!c()||k.key!=="Tab")return;tl(R)===S.current&&k.shiftKey&&(h.current=!0,g.current&&g.current.focus())},M=()=>{const k=S.current;if(k===null)return;const B=tl(R);if(!R.hasFocus()||!c()||h.current){h.current=!1;return}if(k.contains(B)||s&&B!==p.current&&B!==g.current)return;if(B!==v.current)v.current=null;else if(v.current!==null)return;if(!x.current)return;let G=[];if((B===p.current||B===g.current)&&(G=l(S.current)),G.length>0){const Q=!!(T.current?.shiftKey&&T.current?.key==="Tab"),J=G[0],O=G[G.length-1];typeof J!="string"&&typeof O!="string"&&(Q?O.focus():J.focus())}else k.focus()};R.addEventListener("focusin",M),R.addEventListener("keydown",w,!0);const N=setInterval(()=>{const k=tl(R);k&&k.tagName==="BODY"&&M()},50);return()=>{clearInterval(N),R.removeEventListener("focusin",M),R.removeEventListener("keydown",w,!0)}},[i,s,o,c,f,l]);const D=R=>{y.current===null&&(y.current=R.relatedTarget),x.current=!0,v.current=R.target;const w=t.props.onFocus;w&&w(R)},L=R=>{y.current===null&&(y.current=R.relatedTarget),x.current=!0};return _.jsxs(E.Fragment,{children:[_.jsx("div",{tabIndex:f?0:-1,onFocus:L,ref:p,"data-testid":"sentinelStart"}),E.cloneElement(t,{ref:C,onFocus:D}),_.jsx("div",{tabIndex:f?0:-1,onFocus:L,ref:g,"data-testid":"sentinelEnd"})]})}function nL(e){return typeof e=="function"?e():e}function iL(e){return e?e.props.hasOwnProperty("in"):!1}const kS=()=>{},hc=new Y_;function rL(e){const{container:t,disableEscapeKeyDown:i=!1,disableScrollLock:s=!1,closeAfterTransition:o=!1,onTransitionEnter:l,onTransitionExited:c,children:f,onClose:h,open:p,rootRef:g}=e,y=E.useRef({}),v=E.useRef(null),x=E.useRef(null),S=gn(x,g),[C,T]=E.useState(!p),D=iL(f);let L=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(L=!1);const R=()=>gi(v.current),w=()=>(y.current.modalRef=x.current,y.current.mount=v.current,y.current),M=()=>{hc.mount(w(),{disableScrollLock:s}),x.current&&(x.current.scrollTop=0)},N=Cs(()=>{const Y=nL(t)||R().body;hc.add(w(),Y),x.current&&M()}),k=()=>hc.isTopModal(w()),B=Cs(Y=>{v.current=Y,Y&&(p&&k()?M():x.current&&al(x.current,L))}),G=E.useCallback(()=>{hc.remove(w(),L)},[L]);E.useEffect(()=>()=>{G()},[G]),E.useEffect(()=>{p?N():(!D||!o)&&G()},[p,G,D,o,N]);const Q=Y=>P=>{Y.onKeyDown?.(P),!(P.key!=="Escape"||P.which===229||!k())&&(i||(P.stopPropagation(),h&&h(P,"escapeKeyDown")))},J=Y=>P=>{Y.onClick?.(P),P.target===P.currentTarget&&h&&h(P,"backdropClick")};return{getRootProps:(Y={})=>{const P=i2(e);delete P.onTransitionEnter,delete P.onTransitionExited;const I={...P,...Y};return{role:"presentation",...I,onKeyDown:Q(I),ref:S}},getBackdropProps:(Y={})=>{const P=Y;return{"aria-hidden":!0,...P,onClick:J(P),open:p}},getTransitionProps:()=>{const Y=()=>{T(!1),l&&l()},P=()=>{T(!0),c&&c(),o&&G()};return{onEnter:vS(Y,f?.props.onEnter??kS),onExited:vS(P,f?.props.onExited??kS)}},rootRef:S,portalRef:B,isTopModal:k,exited:C,hasTransition:D}}function sL(e){return Fe("MuiModal",e)}Be("MuiModal",["root","hidden","backdrop"]);const aL=e=>{const{open:t,exited:i,classes:s}=e;return qe({root:["root",!t&&i&&"hidden"],backdrop:["backdrop"]},sL,s)},oL=de("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,!i.open&&i.exited&&t.hidden]}})(Qe(({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"}}]}))),lL=de(C_,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),uL=E.forwardRef(function(t,i){const s=Ke({name:"MuiModal",props:t}),{BackdropComponent:o=lL,BackdropProps:l,classes:c,className:f,closeAfterTransition:h=!1,children:p,container:g,component:y,components:v={},componentsProps:x={},disableAutoFocus:S=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:T=!1,disablePortal:D=!1,disableRestoreFocus:L=!1,disableScrollLock:R=!1,hideBackdrop:w=!1,keepMounted:M=!1,onClose:N,onTransitionEnter:k,onTransitionExited:B,open:G,slotProps:Q={},slots:J={},theme:O,...Z}=s,F={...s,closeAfterTransition:h,disableAutoFocus:S,disableEnforceFocus:C,disableEscapeKeyDown:T,disablePortal:D,disableRestoreFocus:L,disableScrollLock:R,hideBackdrop:w,keepMounted:M},{getRootProps:Y,getBackdropProps:P,getTransitionProps:I,portalRef:ee,isTopModal:se,exited:le,hasTransition:z}=rL({...F,rootRef:i}),q={...F,exited:le},ae=aL(q),oe={};if(p.props.tabIndex===void 0&&(oe.tabIndex="-1"),z){const{onEnter:Te,onExited:De}=I();oe.onEnter=Te,oe.onExited=De}const ue={slots:{root:v.Root,backdrop:v.Backdrop,...J},slotProps:{...x,...Q}},[pe,me]=Ot("root",{ref:i,elementType:oL,externalForwardedProps:{...ue,...Z,component:y},getSlotProps:Y,ownerState:q,className:we(f,ae?.root,!q.open&&q.exited&&ae?.hidden)}),[Ue,Ce]=Ot("backdrop",{ref:l?.ref,elementType:o,externalForwardedProps:ue,shouldForwardComponentProp:!0,additionalProps:l,getSlotProps:Te=>P({...Te,onClick:De=>{Te?.onClick&&Te.onClick(De)}}),className:we(l?.className,ae?.backdrop),ownerState:q});return!M&&!G&&(!z||le)?null:_.jsx(a_,{ref:ee,container:g,disablePortal:D,children:_.jsxs(pe,{...me,children:[!w&&o?_.jsx(Ue,{...Ce}):null,_.jsx(tL,{disableEnforceFocus:C,disableAutoFocus:S,disableRestoreFocus:L,isEnabled:se,open:G,children:E.cloneElement(p,oe)})]})})});function cL(e){return Fe("MuiDivider",e)}const PS=Be("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),fL=e=>{const{absolute:t,children:i,classes:s,flexItem:o,light:l,orientation:c,textAlign:f,variant:h}=e;return qe({root:["root",t&&"absolute",h,l&&"light",c==="vertical"&&"vertical",o&&"flexItem",i&&"withChildren",i&&c==="vertical"&&"withChildrenVertical",f==="right"&&c!=="vertical"&&"textAlignRight",f==="left"&&c!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",c==="vertical"&&"wrapperVertical"]},cL,s)},dL=de("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.absolute&&t.absolute,t[i.variant],i.light&&t.light,i.orientation==="vertical"&&t.vertical,i.flexItem&&t.flexItem,i.children&&t.withChildren,i.children&&i.orientation==="vertical"&&t.withChildrenVertical,i.textAlign==="right"&&i.orientation!=="vertical"&&t.textAlignRight,i.textAlign==="left"&&i.orientation!=="vertical"&&t.textAlignLeft]}})(Qe(({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%"}}}]}))),hL=de("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.wrapper,i.orientation==="vertical"&&t.wrapperVertical]}})(Qe(({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)`}}]}))),Gc=E.forwardRef(function(t,i){const s=Ke({props:t,name:"MuiDivider"}),{absolute:o=!1,children:l,className:c,orientation:f="horizontal",component:h=l||f==="vertical"?"div":"hr",flexItem:p=!1,light:g=!1,role:y=h!=="hr"?"separator":void 0,textAlign:v="center",variant:x="fullWidth",...S}=s,C={...s,absolute:o,component:h,flexItem:p,light:g,orientation:f,role:y,textAlign:v,variant:x},T=fL(C);return _.jsx(dL,{as:h,className:we(T.root,c),role:y,ref:i,ownerState:C,"aria-orientation":y==="separator"&&(h!=="hr"||f==="vertical")?f:void 0,...S,children:l?_.jsx(hL,{className:T.wrapper,ownerState:C,children:l}):null})});Gc&&(Gc.muiSkipListHighlight=!0);function pL(e){return Fe("MuiFab",e)}const jS=Be("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),mL=e=>{const{color:t,variant:i,classes:s,size:o}=e,l={root:["root",i,`size${be(o)}`,t==="inherit"?"colorInherit":t]},c=qe(l,pL,s);return{...s,...c}},gL=de(Df,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Vn(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[i.variant],t[`size${be(i.size)}`],i.color==="inherit"&&t.colorInherit,t[be(i.size)],t[i.color]]}})(Qe(({theme:e})=>({...e.typography.button,minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.grey[900]:e.palette.getContrastText?.(e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${jS.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]})),Qe(({theme:e})=>({variants:[...Object.entries(e.palette).filter(Un(["dark","contrastText"])).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}}}}))]})),Qe(({theme:e})=>({[`&.${jS.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),yL=E.forwardRef(function(t,i){const s=Ke({props:t,name:"MuiFab"}),{children:o,className:l,color:c="default",component:f="button",disabled:h=!1,disableFocusRipple:p=!1,focusVisibleClassName:g,size:y="large",variant:v="circular",...x}=s,S={...s,color:c,component:f,disabled:h,disableFocusRipple:p,size:y,variant:v},C=mL(S);return _.jsx(gL,{className:we(C.root,l),component:f,disabled:h,focusRipple:!p,focusVisibleClassName:we(C.focusVisible,g),ownerState:S,ref:i,...x,classes:C,children:o})}),vL=e=>{const{classes:t,disableUnderline:i,startAdornment:s,endAdornment:o,size:l,hiddenLabel:c,multiline:f}=e,h={root:["root",!i&&"underline",s&&"adornedStart",o&&"adornedEnd",l==="small"&&`size${be(l)}`,c&&"hiddenLabel",f&&"multiline"],input:["input"]},p=qe(h,m_,t);return{...t,...p}},bL=de(Nf,{shouldForwardProp:e=>Vn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[..._f(e,t),!i.disableUnderline&&t.underline]}})(Qe(({theme:e})=>{const t=e.palette.mode==="light",i=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s,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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s}},[`&.${cs.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s},[`&.${cs.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l},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"},[`&.${cs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${cs.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):i}`,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(.${cs.disabled}, .${cs.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${cs.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Un()).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}}]}})),SL=de(zf,{name:"MuiFilledInput",slot:"Input",overridesResolver:Lf})(Qe(({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}}]}))),jg=E.forwardRef(function(t,i){const s=Ke({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:l={},componentsProps:c,fullWidth:f=!1,hiddenLabel:h,inputComponent:p="input",multiline:g=!1,slotProps:y,slots:v={},type:x="text",...S}=s,C={...s,disableUnderline:o,fullWidth:f,inputComponent:p,multiline:g,type:x},T=vL(s),D={root:{ownerState:C},input:{ownerState:C}},L=y??c?Wt(D,y??c):D,R=v.root??l.Root??bL,w=v.input??l.Input??SL;return _.jsx(Pg,{slots:{root:R,input:w},slotProps:L,fullWidth:f,inputComponent:p,multiline:g,ref:i,type:x,...S,classes:T})});jg.muiName="Input";function xL(e){return Fe("MuiFormControl",e)}Be("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const CL=e=>{const{classes:t,margin:i,fullWidth:s}=e,o={root:["root",i!=="none"&&`margin${be(i)}`,s&&"fullWidth"]};return qe(o,xL,t)},TL=de("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[`margin${be(i.margin)}`],i.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%"}}]}),wL=E.forwardRef(function(t,i){const s=Ke({props:t,name:"MuiFormControl"}),{children:o,className:l,color:c="primary",component:f="div",disabled:h=!1,error:p=!1,focused:g,fullWidth:y=!1,hiddenLabel:v=!1,margin:x="none",required:S=!1,size:C="medium",variant:T="outlined",...D}=s,L={...s,color:c,component:f,disabled:h,error:p,fullWidth:y,hiddenLabel:v,margin:x,required:S,size:C,variant:T},R=CL(L),[w,M]=E.useState(()=>{let Y=!1;return o&&E.Children.forEach(o,P=>{if(!wp(P,["Input","Select"]))return;const I=wp(P,["Select"])?P.props.input:P;I&&c_(I.props)&&(Y=!0)}),Y}),[N,k]=E.useState(()=>{let Y=!1;return o&&E.Children.forEach(o,P=>{wp(P,["Input","Select"])&&(Kc(P.props,!0)||Kc(P.props.inputProps,!0))&&(Y=!0)}),Y}),[B,G]=E.useState(!1);h&&B&&G(!1);const Q=g!==void 0&&!h?g:B;let J;E.useRef(!1);const O=E.useCallback(()=>{k(!0)},[]),Z=E.useCallback(()=>{k(!1)},[]),F=E.useMemo(()=>({adornedStart:w,setAdornedStart:M,color:c,disabled:h,error:p,filled:N,focused:Q,fullWidth:y,hiddenLabel:v,size:C,onBlur:()=>{G(!1)},onFocus:()=>{G(!0)},onEmpty:Z,onFilled:O,registerEffect:J,required:S,variant:T}),[w,c,h,p,N,Q,y,v,J,Z,O,S,C,T]);return _.jsx(kg.Provider,{value:F,children:_.jsx(TL,{as:f,ownerState:L,className:we(R.root,l),ref:i,...D,children:o})})});function EL(e){return Fe("MuiFormHelperText",e)}const BS=Be("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var US;const RL=e=>{const{classes:t,contained:i,size:s,disabled:o,error:l,filled:c,focused:f,required:h}=e,p={root:["root",o&&"disabled",l&&"error",s&&`size${be(s)}`,i&&"contained",f&&"focused",c&&"filled",h&&"required"]};return qe(p,EL,t)},AL=de("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.size&&t[`size${be(i.size)}`],i.contained&&t.contained,i.filled&&t.filled]}})(Qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${BS.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${BS.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}}]}))),OL=E.forwardRef(function(t,i){const s=Ke({props:t,name:"MuiFormHelperText"}),{children:o,className:l,component:c="p",disabled:f,error:h,filled:p,focused:g,margin:y,required:v,variant:x,...S}=s,C=Ia(),T=Ha({props:s,muiFormControl:C,states:["variant","size","disabled","error","filled","focused","required"]}),D={...s,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 D.ownerState;const L=RL(D);return _.jsx(AL,{as:c,className:we(L.root,l),ref:i,...S,ownerState:D,children:o===" "?US||(US=_.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function ML(e){return Fe("MuiFormLabel",e)}const ol=Be("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),DL=e=>{const{classes:t,color:i,focused:s,disabled:o,error:l,filled:c,required:f}=e,h={root:["root",`color${be(i)}`,o&&"disabled",l&&"error",c&&"filled",s&&"focused",f&&"required"],asterisk:["asterisk",l&&"error"]};return qe(h,ML,t)},_L=de("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.color==="secondary"&&t.colorSecondary,i.filled&&t.filled]}})(Qe(({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(Un()).map(([t])=>({props:{color:t},style:{[`&.${ol.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ol.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ol.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),LL=de("span",{name:"MuiFormLabel",slot:"Asterisk"})(Qe(({theme:e})=>({[`&.${ol.error}`]:{color:(e.vars||e).palette.error.main}}))),NL=E.forwardRef(function(t,i){const s=Ke({props:t,name:"MuiFormLabel"}),{children:o,className:l,color:c,component:f="label",disabled:h,error:p,filled:g,focused:y,required:v,...x}=s,S=Ia(),C=Ha({props:s,muiFormControl:S,states:["color","required","focused","disabled","error","filled"]}),T={...s,color:C.color||"primary",component:f,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required},D=DL(T);return _.jsxs(_L,{as:f,ownerState:T,className:we(D.root,l),ref:i,...x,children:[o,C.required&&_.jsxs(LL,{ownerState:T,"aria-hidden":!0,className:D.asterisk,children:[" ","*"]})]})});function Cm(e){return`scale(${e}, ${e**2})`}const zL={entering:{opacity:1,transform:Cm(1)},entered:{opacity:1,transform:"none"}},Ap=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Tm=E.forwardRef(function(t,i){const{addEndListener:s,appear:o=!0,children:l,easing:c,in:f,onEnter:h,onEntered:p,onEntering:g,onExit:y,onExited:v,onExiting:x,style:S,timeout:C="auto",TransitionComponent:T=Pi,...D}=t,L=JT(),R=E.useRef(),w=$a(),M=E.useRef(null),N=gn(M,Pl(l),i),k=Y=>P=>{if(Y){const I=M.current;P===void 0?Y(I):Y(I,P)}},B=k(g),G=k((Y,P)=>{e2(Y);const{duration:I,delay:ee,easing:se}=Ic({style:S,timeout:C,easing:c},{mode:"enter"});let le;C==="auto"?(le=w.transitions.getAutoHeightDuration(Y.clientHeight),R.current=le):le=I,Y.style.transition=[w.transitions.create("opacity",{duration:le,delay:ee}),w.transitions.create("transform",{duration:Ap?le:le*.666,delay:ee,easing:se})].join(","),h&&h(Y,P)}),Q=k(p),J=k(x),O=k(Y=>{const{duration:P,delay:I,easing:ee}=Ic({style:S,timeout:C,easing:c},{mode:"exit"});let se;C==="auto"?(se=w.transitions.getAutoHeightDuration(Y.clientHeight),R.current=se):se=P,Y.style.transition=[w.transitions.create("opacity",{duration:se,delay:I}),w.transitions.create("transform",{duration:Ap?se:se*.666,delay:Ap?I:I||se*.333,easing:ee})].join(","),Y.style.opacity=0,Y.style.transform=Cm(.75),y&&y(Y)}),Z=k(v),F=Y=>{C==="auto"&&L.start(R.current||0,Y),s&&s(M.current,Y)};return _.jsx(T,{appear:o,in:f,nodeRef:M,onEnter:G,onEntered:Q,onEntering:B,onExit:O,onExited:Z,onExiting:J,addEndListener:F,timeout:C==="auto"?null:C,...D,children:(Y,{ownerState:P,...I})=>E.cloneElement(l,{style:{opacity:0,transform:Cm(.75),visibility:Y==="exited"&&!f?"hidden":void 0,...zL[Y],...S,...l.props.style},ref:N,...I})})});Tm&&(Tm.muiSupportAuto=!0);const kL=e=>{const{classes:t,disableUnderline:i}=e,o=qe({root:["root",!i&&"underline"],input:["input"]},h_,t);return{...t,...o}},PL=de(Nf,{shouldForwardProp:e=>Vn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[..._f(e,t),!i.disableUnderline&&t.underline]}})(Qe(({theme:e})=>{let i=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(i=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:s})=>s.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:s})=>!s.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"},[`&.${qo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${qo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${i}`,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(.${qo.disabled}, .${qo.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${i}`}},[`&.${qo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Un()).map(([s])=>({props:{color:s,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s].main}`}}}))]}})),jL=de(zf,{name:"MuiInput",slot:"Input",overridesResolver:Lf})({}),Bg=E.forwardRef(function(t,i){const s=Ke({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:l={},componentsProps:c,fullWidth:f=!1,inputComponent:h="input",multiline:p=!1,slotProps:g,slots:y={},type:v="text",...x}=s,S=kL(s),T={root:{ownerState:{disableUnderline:o}}},D=g??c?Wt(g??c,T):T,L=y.root??l.Root??PL,R=y.input??l.Input??jL;return _.jsx(Pg,{slots:{root:L,input:R},slotProps:D,fullWidth:f,inputComponent:h,multiline:p,ref:i,type:v,...x,classes:S})});Bg.muiName="Input";function BL(e){return Fe("MuiInputLabel",e)}Be("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const UL=e=>{const{classes:t,formControl:i,size:s,shrink:o,disableAnimation:l,variant:c,required:f}=e,h={root:["root",i&&"formControl",!l&&"animated",o&&"shrink",s&&s!=="medium"&&`size${be(s)}`,c],asterisk:[f&&"asterisk"]},p=qe(h,BL,t);return{...t,...p}},VL=de(NL,{shouldForwardProp:e=>Vn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[{[`& .${ol.asterisk}`]:t.asterisk},t.root,i.formControl&&t.formControl,i.size==="small"&&t.sizeSmall,i.shrink&&t.shrink,!i.disableAnimation&&t.animated,i.focused&&t.focused,t[i.variant]]}})(Qe(({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:i})=>t==="filled"&&i.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:i,size:s})=>t==="filled"&&i.shrink&&s==="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:i})=>t==="outlined"&&i.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),$L=E.forwardRef(function(t,i){const s=Ke({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:l,shrink:c,variant:f,className:h,...p}=s,g=Ia();let y=c;typeof y>"u"&&g&&(y=g.filled||g.focused||g.adornedStart);const v=Ha({props:s,muiFormControl:g,states:["size","variant","required","focused"]}),x={...s,disableAnimation:o,formControl:g,shrink:y,size:v.size,variant:v.variant,required:v.required,focused:v.focused},S=UL(x);return _.jsx(VL,{"data-shrink":y,ref:i,className:we(S.root,h),...p,ownerState:x,classes:S})}),wm=E.createContext({});function HL(e){return Fe("MuiList",e)}Be("MuiList",["root","padding","dense","subheader"]);const IL=e=>{const{classes:t,disablePadding:i,dense:s,subheader:o}=e;return qe({root:["root",!i&&"padding",s&&"dense",o&&"subheader"]},HL,t)},FL=de("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,!i.disablePadding&&t.padding,i.dense&&t.dense,i.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}}]}),qL=E.forwardRef(function(t,i){const s=Ke({props:t,name:"MuiList"}),{children:o,className:l,component:c="ul",dense:f=!1,disablePadding:h=!1,subheader:p,...g}=s,y=E.useMemo(()=>({dense:f}),[f]),v={...s,component:c,dense:f,disablePadding:h},x=IL(v);return _.jsx(wm.Provider,{value:y,children:_.jsxs(FL,{as:c,className:we(x.root,l),ref:i,ownerState:v,...g,children:[p,o]})})}),VS=Be("MuiListItemIcon",["root","alignItemsFlexStart"]),$S=Be("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Op(e,t,i){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:i?null:e.firstChild}function HS(e,t,i){return e===t?i?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:i?null:e.lastChild}function u2(e,t){if(t===void 0)return!0;let i=e.innerText;return i===void 0&&(i=e.textContent),i=i.trim().toLowerCase(),i.length===0?!1:t.repeating?i[0]===t.keys[0]:i.startsWith(t.keys.join(""))}function Ko(e,t,i,s,o,l){let c=!1,f=o(e,t,t?i:!1);for(;f;){if(f===e.firstChild){if(c)return!1;c=!0}const h=s?!1:f.disabled||f.getAttribute("aria-disabled")==="true";if(!f.hasAttribute("tabindex")||!u2(f,l)||h)f=o(e,f,i);else return f.focus(),!0}return!1}const KL=E.forwardRef(function(t,i){const{actions:s,autoFocus:o=!1,autoFocusItem:l=!1,children:c,className:f,disabledItemsFocusable:h=!1,disableListWrap:p=!1,onKeyDown:g,variant:y="selectedMenu",...v}=t,x=E.useRef(null),S=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});zi(()=>{o&&x.current.focus()},[o]),E.useImperativeHandle(s,()=>({adjustStyleForScrollbar:(R,{direction:w})=>{const M=!x.current.style.width;if(R.clientHeight<x.current.clientHeight&&M){const N=`${l2(lr(R))}px`;x.current.style[w==="rtl"?"paddingLeft":"paddingRight"]=N,x.current.style.width=`calc(100% + ${N})`}return x.current}}),[]);const C=R=>{const w=x.current,M=R.key;if(R.ctrlKey||R.metaKey||R.altKey){g&&g(R);return}const k=tl(gi(w));if(M==="ArrowDown")R.preventDefault(),Ko(w,k,p,h,Op);else if(M==="ArrowUp")R.preventDefault(),Ko(w,k,p,h,HS);else if(M==="Home")R.preventDefault(),Ko(w,null,p,h,Op);else if(M==="End")R.preventDefault(),Ko(w,null,p,h,HS);else if(M.length===1){const B=S.current,G=M.toLowerCase(),Q=performance.now();B.keys.length>0&&(Q-B.lastTime>500?(B.keys=[],B.repeating=!0,B.previousKeyMatched=!0):B.repeating&&G!==B.keys[0]&&(B.repeating=!1)),B.lastTime=Q,B.keys.push(G);const J=k&&!B.repeating&&u2(k,B);B.previousKeyMatched&&(J||Ko(w,k,!1,h,Op,B))?R.preventDefault():B.previousKeyMatched=!1}g&&g(R)},T=gn(x,i);let D=-1;E.Children.forEach(c,(R,w)=>{if(!E.isValidElement(R)){D===w&&(D+=1,D>=c.length&&(D=-1));return}R.props.disabled||(y==="selectedMenu"&&R.props.selected||D===-1)&&(D=w),D===w&&(R.props.disabled||R.props.muiSkipListHighlight||R.type.muiSkipListHighlight)&&(D+=1,D>=c.length&&(D=-1))});const L=E.Children.map(c,(R,w)=>{if(w===D){const M={};return l&&(M.autoFocus=!0),R.props.tabIndex===void 0&&y==="selectedMenu"&&(M.tabIndex=0),E.cloneElement(R,M)}return R});return _.jsx(qL,{role:"menu",ref:T,className:f,onKeyDown:C,tabIndex:o?0:-1,...v,children:L})});function GL(e){return Fe("MuiPopover",e)}Be("MuiPopover",["root","paper"]);function IS(e,t){let i=0;return typeof t=="number"?i=t:t==="center"?i=e.height/2:t==="bottom"&&(i=e.height),i}function FS(e,t){let i=0;return typeof t=="number"?i=t:t==="center"?i=e.width/2:t==="right"&&(i=e.width),i}function qS(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function pc(e){return typeof e=="function"?e():e}const YL=e=>{const{classes:t}=e;return qe({root:["root"],paper:["paper"]},GL,t)},XL=de(uL,{name:"MuiPopover",slot:"Root"})({}),c2=de(zg,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),WL=E.forwardRef(function(t,i){const s=Ke({props:t,name:"MuiPopover"}),{action:o,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:h="anchorEl",children:p,className:g,container:y,elevation:v=8,marginThreshold:x=16,open:S,PaperProps:C={},slots:T={},slotProps:D={},transformOrigin:L={vertical:"top",horizontal:"left"},TransitionComponent:R,transitionDuration:w="auto",TransitionProps:M={},disableScrollLock:N=!1,...k}=s,B=E.useRef(),G={...s,anchorOrigin:c,anchorReference:h,elevation:v,marginThreshold:x,transformOrigin:L,TransitionComponent:R,transitionDuration:w,TransitionProps:M},Q=YL(G),J=E.useCallback(()=>{if(h==="anchorPosition")return f;const Te=pc(l),Ve=(Te&&Te.nodeType===1?Te:gi(B.current).body).getBoundingClientRect();return{top:Ve.top+IS(Ve,c.vertical),left:Ve.left+FS(Ve,c.horizontal)}},[l,c.horizontal,c.vertical,f,h]),O=E.useCallback(Te=>({vertical:IS(Te,L.vertical),horizontal:FS(Te,L.horizontal)}),[L.horizontal,L.vertical]),Z=E.useCallback(Te=>{const De={width:Te.offsetWidth,height:Te.offsetHeight},Ve=O(De);if(h==="none")return{top:null,left:null,transformOrigin:qS(Ve)};const Gt=J();let Se=Gt.top-Ve.vertical,_e=Gt.left-Ve.horizontal;const Dt=Se+De.height,zt=_e+De.width,ft=lr(pc(l)),at=ft.innerHeight-x,kt=ft.innerWidth-x;if(x!==null&&Se<x){const ot=Se-x;Se-=ot,Ve.vertical+=ot}else if(x!==null&&Dt>at){const ot=Dt-at;Se-=ot,Ve.vertical+=ot}if(x!==null&&_e<x){const ot=_e-x;_e-=ot,Ve.horizontal+=ot}else if(zt>kt){const ot=zt-kt;_e-=ot,Ve.horizontal+=ot}return{top:`${Math.round(Se)}px`,left:`${Math.round(_e)}px`,transformOrigin:qS(Ve)}},[l,h,J,O,x]),[F,Y]=E.useState(S),P=E.useCallback(()=>{const Te=B.current;if(!Te)return;const De=Z(Te);De.top!==null&&Te.style.setProperty("top",De.top),De.left!==null&&(Te.style.left=De.left),Te.style.transformOrigin=De.transformOrigin,Y(!0)},[Z]);E.useEffect(()=>(N&&window.addEventListener("scroll",P),()=>window.removeEventListener("scroll",P)),[l,N,P]);const I=()=>{P()},ee=()=>{Y(!1)};E.useEffect(()=>{S&&P()}),E.useImperativeHandle(o,()=>S?{updatePosition:()=>{P()}}:null,[S,P]),E.useEffect(()=>{if(!S)return;const Te=YT(()=>{P()}),De=lr(pc(l));return De.addEventListener("resize",Te),()=>{Te.clear(),De.removeEventListener("resize",Te)}},[l,S,P]);let se=w;const le={slots:{transition:R,...T},slotProps:{transition:M,paper:C,...D}},[z,q]=Ot("transition",{elementType:Tm,externalForwardedProps:le,ownerState:G,getSlotProps:Te=>({...Te,onEntering:(De,Ve)=>{Te.onEntering?.(De,Ve),I()},onExited:De=>{Te.onExited?.(De),ee()}}),additionalProps:{appear:!0,in:S}});w==="auto"&&!z.muiSupportAuto&&(se=void 0);const ae=y||(l?gi(pc(l)).body:void 0),[oe,{slots:ue,slotProps:pe,...me}]=Ot("root",{ref:i,elementType:XL,externalForwardedProps:{...le,...k},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:T.backdrop},slotProps:{backdrop:J3(typeof D.backdrop=="function"?D.backdrop(G):D.backdrop,{invisible:!0})},container:ae,open:S},ownerState:G,className:we(Q.root,g)}),[Ue,Ce]=Ot("paper",{ref:B,className:Q.paper,elementType:c2,externalForwardedProps:le,shouldForwardComponentProp:!0,additionalProps:{elevation:v,style:F?void 0:{opacity:0}},ownerState:G});return _.jsx(oe,{...me,...!Fc(oe)&&{slots:ue,slotProps:pe,disableScrollLock:N},children:_.jsx(z,{...q,timeout:se,children:_.jsx(Ue,{...Ce,children:p})})})});function QL(e){return Fe("MuiMenu",e)}Be("MuiMenu",["root","paper","list"]);const ZL={vertical:"top",horizontal:"right"},JL={vertical:"top",horizontal:"left"},e4=e=>{const{classes:t}=e;return qe({root:["root"],paper:["paper"],list:["list"]},QL,t)},t4=de(WL,{shouldForwardProp:e=>Vn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),n4=de(c2,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),i4=de(KL,{name:"MuiMenu",slot:"List"})({outline:0}),f2=E.forwardRef(function(t,i){const s=Ke({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:l,className:c,disableAutoFocusItem:f=!1,MenuListProps:h={},onClose:p,open:g,PaperProps:y={},PopoverClasses:v,transitionDuration:x="auto",TransitionProps:{onEntering:S,...C}={},variant:T="selectedMenu",slots:D={},slotProps:L={},...R}=s,w=N5(),M={...s,autoFocus:o,disableAutoFocusItem:f,MenuListProps:h,onEntering:S,PaperProps:y,transitionDuration:x,TransitionProps:C,variant:T},N=e4(M),k=o&&!f&&g,B=E.useRef(null),G=(se,le)=>{B.current&&B.current.adjustStyleForScrollbar(se,{direction:w?"rtl":"ltr"}),S&&S(se,le)},Q=se=>{se.key==="Tab"&&(se.preventDefault(),p&&p(se,"tabKeyDown"))};let J=-1;E.Children.map(l,(se,le)=>{E.isValidElement(se)&&(se.props.disabled||(T==="selectedMenu"&&se.props.selected||J===-1)&&(J=le))});const O={slots:D,slotProps:{list:h,transition:C,paper:y,...L}},Z=r_({elementType:D.root,externalSlotProps:L.root,ownerState:M,className:[N.root,c]}),[F,Y]=Ot("paper",{className:N.paper,elementType:n4,externalForwardedProps:O,shouldForwardComponentProp:!0,ownerState:M}),[P,I]=Ot("list",{className:we(N.list,h.className),elementType:i4,shouldForwardComponentProp:!0,externalForwardedProps:O,getSlotProps:se=>({...se,onKeyDown:le=>{Q(le),se.onKeyDown?.(le)}}),ownerState:M}),ee=typeof O.slotProps.transition=="function"?O.slotProps.transition(M):O.slotProps.transition;return _.jsx(t4,{onClose:p,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?ZL:JL,slots:{root:D.root,paper:F,backdrop:D.backdrop,...D.transition&&{transition:D.transition}},slotProps:{root:Z,paper:Y,backdrop:typeof L.backdrop=="function"?L.backdrop(M):L.backdrop,transition:{...ee,onEntering:(...se)=>{G(...se),ee?.onEntering?.(...se)}}},open:g,ref:i,transitionDuration:x,ownerState:M,...R,classes:v,children:_.jsx(P,{actions:B,autoFocus:o&&(J===-1||f),autoFocusItem:k,variant:T,...I,children:l})})});function r4(e){return Fe("MuiMenuItem",e)}const Go=Be("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),s4=(e,t)=>{const{ownerState:i}=e;return[t.root,i.dense&&t.dense,i.divider&&t.divider,!i.disableGutters&&t.gutters]},a4=e=>{const{disabled:t,dense:i,divider:s,disableGutters:o,selected:l,classes:c}=e,h=qe({root:["root",i&&"dense",t&&"disabled",!o&&"gutters",s&&"divider",l&&"selected"]},r4,c);return{...c,...h}},o4=de(Df,{shouldForwardProp:e=>Vn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:s4})(Qe(({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"}},[`&.${Go.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Go.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Go.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)}},[`&.${Go.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Go.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${PS.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${PS.inset}`]:{marginLeft:52},[`& .${$S.root}`]:{marginTop:0,marginBottom:0},[`& .${$S.inset}`]:{paddingLeft:36},[`& .${VS.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,[`& .${VS.root} svg`]:{fontSize:"1.25rem"}}}]}))),KS=E.forwardRef(function(t,i){const s=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:l="li",dense:c=!1,divider:f=!1,disableGutters:h=!1,focusVisibleClassName:p,role:g="menuitem",tabIndex:y,className:v,...x}=s,S=E.useContext(wm),C=E.useMemo(()=>({dense:c||S.dense||!1,disableGutters:h}),[S.dense,c,h]),T=E.useRef(null);zi(()=>{o&&T.current&&T.current.focus()},[o]);const D={...s,dense:C.dense,divider:f,disableGutters:h},L=a4(s),R=gn(T,i);let w;return s.disabled||(w=y!==void 0?y:-1),_.jsx(wm.Provider,{value:C,children:_.jsx(o4,{ref:R,role:g,tabIndex:w,component:l,focusVisibleClassName:we(L.focusVisible,p),className:we(L.root,v),...x,ownerState:D,classes:L})})});function l4(e){return Fe("MuiNativeSelect",e)}const Ug=Be("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),u4=e=>{const{classes:t,variant:i,disabled:s,multiple:o,open:l,error:c}=e,f={select:["select",i,s&&"disabled",o&&"multiple",c&&"error"],icon:["icon",`icon${be(i)}`,l&&"iconOpen",s&&"disabled"]};return qe(f,l4,t)},d2=de("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Ug.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}}}]})),c4=de(d2,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Vn,overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.select,t[i.variant],i.error&&t.error,{[`&.${Ug.multiple}`]:t.multiple}]}})({}),h2=de("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Ug.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}}]})),f4=de(h2,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.icon,i.variant&&t[`icon${be(i.variant)}`],i.open&&t.iconOpen]}})({}),d4=E.forwardRef(function(t,i){const{className:s,disabled:o,error:l,IconComponent:c,inputRef:f,variant:h="standard",...p}=t,g={...t,disabled:o,variant:h,error:l},y=u4(g);return _.jsxs(E.Fragment,{children:[_.jsx(c4,{ownerState:g,className:we(y.select,s),disabled:o,ref:f||i,...p}),t.multiple?null:_.jsx(f4,{as:c,ownerState:g,className:y.icon})]})});var GS;const h4=de("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Vn})({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%"}),p4=de("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Vn})(Qe(({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 m4(e){const{children:t,classes:i,className:s,label:o,notched:l,...c}=e,f=o!=null&&o!=="",h={...e,notched:l,withLabel:f};return _.jsx(h4,{"aria-hidden":!0,className:s,ownerState:h,...c,children:_.jsx(p4,{ownerState:h,children:f?_.jsx("span",{children:o}):GS||(GS=_.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const g4=e=>{const{classes:t}=e,s=qe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},p_,t);return{...t,...s}},y4=de(Nf,{shouldForwardProp:e=>Vn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:_f})(Qe(({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 .${Ei.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ei.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ei.focused} .${Ei.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Un()).map(([i])=>({props:{color:i},style:{[`&.${Ei.focused} .${Ei.notchedOutline}`]:{borderColor:(e.vars||e).palette[i].main}}})),{props:{},style:{[`&.${Ei.error} .${Ei.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ei.disabled} .${Ei.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:14}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:14}},{props:({ownerState:i})=>i.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:i,size:s})=>i.multiline&&s==="small",style:{padding:"8.5px 14px"}}]}})),v4=de(m4,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Qe(({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}})),b4=de(zf,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Lf})(Qe(({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}}]}))),Vg=E.forwardRef(function(t,i){const s=Ke({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:l=!1,inputComponent:c="input",label:f,multiline:h=!1,notched:p,slots:g={},slotProps:y={},type:v="text",...x}=s,S=g4(s),C=Ia(),T=Ha({props:s,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),D={...s,color:T.color||"primary",disabled:T.disabled,error:T.error,focused:T.focused,formControl:C,fullWidth:l,hiddenLabel:T.hiddenLabel,multiline:h,size:T.size,type:v},L=g.root??o.Root??y4,R=g.input??o.Input??b4,[w,M]=Ot("notchedOutline",{elementType:v4,className:S.notchedOutline,shouldForwardComponentProp:!0,ownerState:D,externalForwardedProps:{slots:g,slotProps:y},additionalProps:{label:f!=null&&f!==""&&T.required?_.jsxs(E.Fragment,{children:[f," ","*"]}):f}});return _.jsx(Pg,{slots:{root:L,input:R},slotProps:y,renderSuffix:N=>_.jsx(w,{...M,notched:typeof p<"u"?p:!!(N.startAdornment||N.filled||N.focused)}),fullWidth:l,inputComponent:c,multiline:h,ref:i,type:v,...x,classes:{...S,notchedOutline:null}})});Vg.muiName="Input";function p2(e){return Fe("MuiSelect",e)}const Yo=Be("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var YS;const S4=de(d2,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[{[`&.${Yo.select}`]:t.select},{[`&.${Yo.select}`]:t[i.variant]},{[`&.${Yo.error}`]:t.error},{[`&.${Yo.multiple}`]:t.multiple}]}})({[`&.${Yo.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),x4=de(h2,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.icon,i.variant&&t[`icon${be(i.variant)}`],i.open&&t.iconOpen]}})({}),C4=de("input",{shouldForwardProp:e=>GT(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function XS(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function T4(e){return e==null||typeof e=="string"&&!e.trim()}const w4=e=>{const{classes:t,variant:i,disabled:s,multiple:o,open:l,error:c}=e,f={select:["select",i,s&&"disabled",o&&"multiple",c&&"error"],icon:["icon",`icon${be(i)}`,l&&"iconOpen",s&&"disabled"],nativeInput:["nativeInput"]};return qe(f,p2,t)},E4=E.forwardRef(function(t,i){const{"aria-describedby":s,"aria-label":o,autoFocus:l,autoWidth:c,children:f,className:h,defaultOpen:p,defaultValue:g,disabled:y,displayEmpty:v,error:x=!1,IconComponent:S,inputRef:C,labelId:T,MenuProps:D={},multiple:L,name:R,onBlur:w,onChange:M,onClose:N,onFocus:k,onKeyDown:B,onMouseDown:G,onOpen:Q,open:J,readOnly:O,renderValue:Z,required:F,SelectDisplayProps:Y={},tabIndex:P,type:I,value:ee,variant:se="standard",...le}=t,[z,q]=SS({controlled:ee,default:g,name:"Select"}),[ae,oe]=SS({controlled:J,default:p,name:"Select"}),ue=E.useRef(null),pe=E.useRef(null),[me,Ue]=E.useState(null),{current:Ce}=E.useRef(J!=null),[Te,De]=E.useState(),Ve=gn(i,C),Gt=E.useCallback(ye=>{pe.current=ye,ye&&Ue(ye)},[]),Se=me?.parentNode;E.useImperativeHandle(Ve,()=>({focus:()=>{pe.current.focus()},node:ue.current,value:z}),[z]);const _e=me!==null&&ae;E.useEffect(()=>{if(!_e||!Se||c||typeof ResizeObserver>"u")return;const ye=new ResizeObserver(()=>{De(Se.clientWidth)});return ye.observe(Se),()=>{ye.disconnect()}},[_e,Se,c]),E.useEffect(()=>{p&&ae&&me&&!Ce&&(De(c?null:Se.clientWidth),pe.current.focus())},[me,c]),E.useEffect(()=>{l&&pe.current.focus()},[l]),E.useEffect(()=>{if(!T)return;const ye=gi(pe.current).getElementById(T);if(ye){const ut=()=>{getSelection().isCollapsed&&pe.current.focus()};return ye.addEventListener("click",ut),()=>{ye.removeEventListener("click",ut)}}},[T]);const Dt=(ye,ut)=>{ye?Q&&Q(ut):N&&N(ut),Ce||(De(c?null:Se.clientWidth),oe(ye))},zt=ye=>{G?.(ye),ye.button===0&&(ye.preventDefault(),pe.current.focus(),Dt(!0,ye))},ft=ye=>{Dt(!1,ye)},at=E.Children.toArray(f),kt=ye=>{const ut=at.find(Ft=>Ft.props.value===ye.target.value);ut!==void 0&&(q(ut.props.value),M&&M(ye,ut))},ot=ye=>ut=>{let Ft;if(ut.currentTarget.hasAttribute("tabindex")){if(L){Ft=Array.isArray(z)?z.slice():[];const oi=z.indexOf(ye.props.value);oi===-1?Ft.push(ye.props.value):Ft.splice(oi,1)}else Ft=ye.props.value;if(ye.props.onClick&&ye.props.onClick(ut),z!==Ft&&(q(Ft),M)){const oi=ut.nativeEvent||ut,Fr=new oi.constructor(oi.type,oi);Object.defineProperty(Fr,"target",{writable:!0,value:{value:Ft,name:R}}),M(Fr,ye)}L||Dt(!1,ut)}},ge=ye=>{O||([" ","ArrowUp","ArrowDown","Enter"].includes(ye.key)&&(ye.preventDefault(),Dt(!0,ye)),B?.(ye))},si=ye=>{!_e&&w&&(Object.defineProperty(ye,"target",{writable:!0,value:{value:z,name:R}}),w(ye))};delete le["aria-invalid"];let ze,ji;const gt=[];let $e=!1;(Kc({value:z})||v)&&(Z?ze=Z(z):$e=!0);const Ct=at.map(ye=>{if(!E.isValidElement(ye))return null;let ut;if(L){if(!Array.isArray(z))throw new Error(or(2));ut=z.some(Ft=>XS(Ft,ye.props.value)),ut&&$e&&gt.push(ye.props.children)}else ut=XS(z,ye.props.value),ut&&$e&&(ji=ye.props.children);return E.cloneElement(ye,{"aria-selected":ut?"true":"false",onClick:ot(ye),onKeyUp:Ft=>{Ft.key===" "&&Ft.preventDefault(),ye.props.onKeyUp&&ye.props.onKeyUp(Ft)},role:"option",selected:ut,value:void 0,"data-value":ye.props.value})});$e&&(L?gt.length===0?ze=null:ze=gt.reduce((ye,ut,Ft)=>(ye.push(ut),Ft<gt.length-1&&ye.push(", "),ye),[]):ze=ji);let It=Te;!c&&Ce&&me&&(It=Se.clientWidth);let On;typeof P<"u"?On=P:On=y?null:0;const lt=Y.id||(R?`mui-component-select-${R}`:void 0),ai={...t,variant:se,value:z,open:_e,error:x},$n=w4(ai),Qt={...D.PaperProps,...typeof D.slotProps?.paper=="function"?D.slotProps.paper(ai):D.slotProps?.paper},bi={...D.MenuListProps,...typeof D.slotProps?.list=="function"?D.slotProps.list(ai):D.slotProps?.list},ln=kl();return _.jsxs(E.Fragment,{children:[_.jsx(S4,{as:"div",ref:Gt,tabIndex:On,role:"combobox","aria-controls":_e?ln:void 0,"aria-disabled":y?"true":void 0,"aria-expanded":_e?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[T,lt].filter(Boolean).join(" ")||void 0,"aria-describedby":s,"aria-required":F?"true":void 0,"aria-invalid":x?"true":void 0,onKeyDown:ge,onMouseDown:y||O?null:zt,onBlur:si,onFocus:k,...Y,ownerState:ai,className:we(Y.className,$n.select,h),id:lt,children:T4(ze)?YS||(YS=_.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):ze}),_.jsx(C4,{"aria-invalid":x,value:Array.isArray(z)?z.join(","):z,name:R,ref:ue,"aria-hidden":!0,onChange:kt,tabIndex:-1,disabled:y,className:$n.nativeInput,autoFocus:l,required:F,...le,ownerState:ai}),_.jsx(x4,{as:S,className:$n.icon,ownerState:ai}),_.jsx(f2,{id:`menu-${R||""}`,anchorEl:Se,open:_e,onClose:ft,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...D,slotProps:{...D.slotProps,list:{"aria-labelledby":T,role:"listbox","aria-multiselectable":L?"true":void 0,disableListWrap:!0,id:ln,...bi},paper:{...Qt,style:{minWidth:It,...Qt!=null?Qt.style:null}}},children:Ct})]})}),R4=e=>{const{classes:t}=e,s=qe({root:["root"]},p2,t);return{...t,...s}},$g={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Vn(e)&&e!=="variant"},A4=de(Bg,$g)(""),O4=de(Vg,$g)(""),M4=de(jg,$g)(""),m2=E.forwardRef(function(t,i){const s=Ke({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:l,classes:c={},className:f,defaultOpen:h=!1,displayEmpty:p=!1,IconComponent:g=g_,id:y,input:v,inputProps:x,label:S,labelId:C,MenuProps:T,multiple:D=!1,native:L=!1,onClose:R,onOpen:w,open:M,renderValue:N,SelectDisplayProps:k,variant:B="outlined",...G}=s,Q=L?d4:E4,J=Ia(),O=Ha({props:s,muiFormControl:J,states:["variant","error"]}),Z=O.variant||B,F={...s,variant:Z,classes:c},Y=R4(F),{root:P,...I}=Y,ee=v||{standard:_.jsx(A4,{ownerState:F}),outlined:_.jsx(O4,{label:S,ownerState:F}),filled:_.jsx(M4,{ownerState:F})}[Z],se=gn(i,Pl(ee));return _.jsx(E.Fragment,{children:E.cloneElement(ee,{inputComponent:Q,inputProps:{children:l,error:O.error,IconComponent:g,variant:Z,type:void 0,multiple:D,...L?{id:y}:{autoWidth:o,defaultOpen:h,displayEmpty:p,labelId:C,MenuProps:T,onClose:R,onOpen:w,open:M,renderValue:N,SelectDisplayProps:{id:y,...k}},...x,classes:x?Wt(I,x.classes):I,...v?v.props.inputProps:{}},...(D&&L||p)&&Z==="outlined"?{notched:!0}:{},ref:se,className:we(ee.props.className,f,Y.root),...!v&&{variant:Z},...G})})});m2.muiName="Select";const ms=f3({createStyledComponent:de("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Ke({props:e,name:"MuiStack"})});function D4(e){return Fe("MuiTextField",e)}Be("MuiTextField",["root"]);const _4={standard:Bg,filled:jg,outlined:Vg},L4=e=>{const{classes:t}=e;return qe({root:["root"]},D4,t)},N4=de(wL,{name:"MuiTextField",slot:"Root"})({}),WS=E.forwardRef(function(t,i){const s=Ke({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:l=!1,children:c,className:f,color:h="primary",defaultValue:p,disabled:g=!1,error:y=!1,FormHelperTextProps:v,fullWidth:x=!1,helperText:S,id:C,InputLabelProps:T,inputProps:D,InputProps:L,inputRef:R,label:w,maxRows:M,minRows:N,multiline:k=!1,name:B,onBlur:G,onChange:Q,onFocus:J,placeholder:O,required:Z=!1,rows:F,select:Y=!1,SelectProps:P,slots:I={},slotProps:ee={},type:se,value:le,variant:z="outlined",...q}=s,ae={...s,autoFocus:l,color:h,disabled:g,error:y,fullWidth:x,multiline:k,required:Z,select:Y,variant:z},oe=L4(ae),ue=kl(C),pe=S&&ue?`${ue}-helper-text`:void 0,me=w&&ue?`${ue}-label`:void 0,Ue=_4[z],Ce={slots:I,slotProps:{input:L,inputLabel:T,htmlInput:D,formHelperText:v,select:P,...ee}},Te={},De=Ce.slotProps.inputLabel;z==="outlined"&&(De&&typeof De.shrink<"u"&&(Te.notched=De.shrink),Te.label=w),Y&&((!P||!P.native)&&(Te.id=void 0),Te["aria-describedby"]=void 0);const[Ve,Gt]=Ot("root",{elementType:N4,shouldForwardComponentProp:!0,externalForwardedProps:{...Ce,...q},ownerState:ae,className:we(oe.root,f),ref:i,additionalProps:{disabled:g,error:y,fullWidth:x,required:Z,color:h,variant:z}}),[Se,_e]=Ot("input",{elementType:Ue,externalForwardedProps:Ce,additionalProps:Te,ownerState:ae}),[Dt,zt]=Ot("inputLabel",{elementType:$L,externalForwardedProps:Ce,ownerState:ae}),[ft,at]=Ot("htmlInput",{elementType:"input",externalForwardedProps:Ce,ownerState:ae}),[kt,ot]=Ot("formHelperText",{elementType:OL,externalForwardedProps:Ce,ownerState:ae}),[ge,si]=Ot("select",{elementType:m2,externalForwardedProps:Ce,ownerState:ae}),ze=_.jsx(Se,{"aria-describedby":pe,autoComplete:o,autoFocus:l,defaultValue:p,fullWidth:x,multiline:k,name:B,rows:F,maxRows:M,minRows:N,type:se,value:le,id:ue,inputRef:R,onBlur:G,onChange:Q,onFocus:J,placeholder:O,inputProps:at,slots:{input:I.htmlInput?ft:void 0},..._e});return _.jsxs(Ve,{...Gt,children:[w!=null&&w!==""&&_.jsx(Dt,{htmlFor:ue,id:me,...zt,children:w}),Y?_.jsx(ge,{"aria-describedby":pe,id:ue,labelId:me,value:le,input:ze,...si,children:c}):ze,S&&_.jsx(kt,{id:pe,...ot,children:S})]})});var Mp={exports:{}},Dp={};var QS;function z4(){if(QS)return Dp;QS=1;var e=hf();function t(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}var i=typeof Object.is=="function"?Object.is:t,s=e.useSyncExternalStore,o=e.useRef,l=e.useEffect,c=e.useMemo,f=e.useDebugValue;return Dp.useSyncExternalStoreWithSelector=function(h,p,g,y,v){var x=o(null);if(x.current===null){var S={hasValue:!1,value:null};x.current=S}else S=x.current;x=c(function(){function T(M){if(!D){if(D=!0,L=M,M=y(M),v!==void 0&&S.hasValue){var N=S.value;if(v(N,M))return R=N}return R=M}if(N=R,i(L,M))return N;var k=y(M);return v!==void 0&&v(N,k)?(L=M,N):(L=M,R=k)}var D=!1,L,R,w=g===void 0?null:g;return[function(){return T(p())},w===null?void 0:function(){return T(w())}]},[p,g,y,v]);var C=s(h,x[0],x[1]);return l(function(){S.hasValue=!0,S.value=C},[C]),f(C),C},Dp}var ZS;function k4(){return ZS||(ZS=1,Mp.exports=z4()),Mp.exports}k4();function P4(e){e()}function j4(){let e=null,t=null;return{clear(){e=null,t=null},notify(){P4(()=>{let i=e;for(;i;)i.callback(),i=i.next})},get(){const i=[];let s=e;for(;s;)i.push(s),s=s.next;return i},subscribe(i){let s=!0;const o=t={callback:i,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!s||e===null||(s=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var JS={notify(){},get:()=>[]};function B4(e,t){let i,s=JS,o=0,l=!1;function c(C){g();const T=s.subscribe(C);let D=!1;return()=>{D||(D=!0,T(),y())}}function f(){s.notify()}function h(){S.onStateChange&&S.onStateChange()}function p(){return l}function g(){o++,i||(i=e.subscribe(h),s=j4())}function y(){o--,i&&o===0&&(i(),i=void 0,s.clear(),s=JS)}function v(){l||(l=!0,g())}function x(){l&&(l=!1,y())}const S={addNestedSub:c,notifyNestedSubs:f,handleChangeWrapper:h,isSubscribed:p,trySubscribe:v,tryUnsubscribe:x,getListeners:()=>s};return S}var U4=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",V4=U4(),$4=()=>typeof navigator<"u"&&navigator.product==="ReactNative",H4=$4(),I4=()=>V4||H4?E.useLayoutEffect:E.useEffect,F4=I4(),q4=Symbol.for("react-redux-context"),K4=typeof globalThis<"u"?globalThis:{};function G4(){if(!E.createContext)return{};const e=K4[q4]??=new Map;let t=e.get(E.createContext);return t||(t=E.createContext(null),e.set(E.createContext,t)),t}var g2=G4();function Y4(e){const{children:t,context:i,serverState:s,store:o}=e,l=E.useMemo(()=>{const h=B4(o);return{store:o,subscription:h,getServerState:s?()=>s:void 0}},[o,s]),c=E.useMemo(()=>o.getState(),[o]);F4(()=>{const{subscription:h}=l;return h.onStateChange=h.notifyNestedSubs,h.trySubscribe(),c!==o.getState()&&h.notifyNestedSubs(),()=>{h.tryUnsubscribe(),h.onStateChange=void 0}},[l,c]);const f=i||g2;return E.createElement(f.Provider,{value:l},t)}var X4=Y4;const W4=(e,t,i,s)=>{const o=[i,{code:t,...s||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(o,"warn","react-i18next::",!0);Ts(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)},ex={},Em=(e,t,i,s)=>{Ts(i)&&ex[i]||(Ts(i)&&(ex[i]=new Date),W4(e,t,i,s))},y2=(e,t)=>()=>{if(e.isInitialized)t();else{const i=()=>{setTimeout(()=>{e.off("initialized",i)},0),t()};e.on("initialized",i)}},Rm=(e,t,i)=>{e.loadNamespaces(t,y2(e,i))},tx=(e,t,i,s)=>{if(Ts(i)&&(i=[i]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Rm(e,i,s);i.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,y2(e,s))},Q4=(e,t,i={})=>!t.languages||!t.languages.length?(Em(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:i.lng,precheck:(s,o)=>{if(i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!o(s.isLanguageChangingTo,e))return!1}}),Ts=e=>typeof e=="string",Z4=e=>typeof e=="object"&&e!==null,J4=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,eN={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},tN=e=>eN[e],nN=e=>e.replace(J4,tN);let Am={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:nN};const iN=(e={})=>{Am={...Am,...e}},rN=()=>Am;let v2;const sN=e=>{v2=e},aN=()=>v2,oN={type:"3rdParty",init(e){iN(e.options.react),sN(e)}},b2=E.createContext();class lN{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(i=>{this.usedNamespaces[i]||(this.usedNamespaces[i]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const uN=(e,t)=>{const i=E.useRef();return E.useEffect(()=>{i.current=e},[e,t]),i.current},S2=(e,t,i,s)=>e.getFixedT(t,i,s),cN=(e,t,i,s)=>E.useCallback(S2(e,t,i,s),[e,t,i,s]),Hg=(e,t={})=>{const{i18n:i}=t,{i18n:s,defaultNS:o}=E.useContext(b2)||{},l=i||s||aN();if(l&&!l.reportNamespaces&&(l.reportNamespaces=new lN),!l){Em(l,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const w=(N,k)=>Ts(k)?k:Z4(k)&&Ts(k.defaultValue)?k.defaultValue:Array.isArray(N)?N[N.length-1]:N,M=[w,{},!1];return M.t=w,M.i18n={},M.ready=!1,M}l.options.react?.wait&&Em(l,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const c={...rN(),...l.options.react,...t},{useSuspense:f,keyPrefix:h}=c;let p=e||o||l.options?.defaultNS;p=Ts(p)?[p]:p||["translation"],l.reportNamespaces.addUsedNamespaces?.(p);const g=(l.isInitialized||l.initializedStoreOnce)&&p.every(w=>Q4(w,l,c)),y=cN(l,t.lng||null,c.nsMode==="fallback"?p:p[0],h),v=()=>y,x=()=>S2(l,t.lng||null,c.nsMode==="fallback"?p:p[0],h),[S,C]=E.useState(v);let T=p.join();t.lng&&(T=`${t.lng}${T}`);const D=uN(T),L=E.useRef(!0);E.useEffect(()=>{const{bindI18n:w,bindI18nStore:M}=c;L.current=!0,!g&&!f&&(t.lng?tx(l,t.lng,p,()=>{L.current&&C(x)}):Rm(l,p,()=>{L.current&&C(x)})),g&&D&&D!==T&&L.current&&C(x);const N=()=>{L.current&&C(x)};return w&&l?.on(w,N),M&&l?.store.on(M,N),()=>{L.current=!1,l&&w&&w?.split(" ").forEach(k=>l.off(k,N)),M&&l&&M.split(" ").forEach(k=>l.store.off(k,N))}},[l,T]),E.useEffect(()=>{L.current&&g&&C(v)},[l,h,g]);const R=[S,l,g];if(R.t=S,R.i18n=l,R.ready=g,g||!g&&!f)return R;throw new Promise(w=>{t.lng?tx(l,t.lng,p,()=>w()):Rm(l,p,()=>w())})};function fN({i18n:e,defaultNS:t,children:i}){const s=E.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return E.createElement(b2.Provider,{value:s},i)}function x2(e,t){return function(){return e.apply(t,arguments)}}const{toString:dN}=Object.prototype,{getPrototypeOf:Ig}=Object,{iterator:kf,toStringTag:C2}=Symbol,Pf=(e=>t=>{const i=dN.call(t);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),vi=e=>(e=e.toLowerCase(),t=>Pf(t)===e),jf=e=>t=>typeof t===e,{isArray:Fa}=Array,ka=jf("undefined");function jl(e){return e!==null&&!ka(e)&&e.constructor!==null&&!ka(e.constructor)&&En(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const T2=vi("ArrayBuffer");function hN(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&T2(e.buffer),t}const pN=jf("string"),En=jf("function"),w2=jf("number"),Bl=e=>e!==null&&typeof e=="object",mN=e=>e===!0||e===!1,Mc=e=>{if(Pf(e)!=="object")return!1;const t=Ig(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(C2 in e)&&!(kf in e)},gN=e=>{if(!Bl(e)||jl(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},yN=vi("Date"),vN=vi("File"),bN=vi("Blob"),SN=vi("FileList"),xN=e=>Bl(e)&&En(e.pipe),CN=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||En(e.append)&&((t=Pf(e))==="formdata"||t==="object"&&En(e.toString)&&e.toString()==="[object FormData]"))},TN=vi("URLSearchParams"),[wN,EN,RN,AN]=["ReadableStream","Request","Response","Headers"].map(vi),ON=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ul(e,t,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let s,o;if(typeof e!="object"&&(e=[e]),Fa(e))for(s=0,o=e.length;s<o;s++)t.call(null,e[s],s,e);else{if(jl(e))return;const l=i?Object.getOwnPropertyNames(e):Object.keys(e),c=l.length;let f;for(s=0;s<c;s++)f=l[s],t.call(null,e[f],f,e)}}function E2(e,t){if(jl(e))return null;t=t.toLowerCase();const i=Object.keys(e);let s=i.length,o;for(;s-- >0;)if(o=i[s],t===o.toLowerCase())return o;return null}const bs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,R2=e=>!ka(e)&&e!==bs;function Om(){const{caseless:e,skipUndefined:t}=R2(this)&&this||{},i={},s=(o,l)=>{const c=e&&E2(i,l)||l;Mc(i[c])&&Mc(o)?i[c]=Om(i[c],o):Mc(o)?i[c]=Om({},o):Fa(o)?i[c]=o.slice():(!t||!ka(o))&&(i[c]=o)};for(let o=0,l=arguments.length;o<l;o++)arguments[o]&&Ul(arguments[o],s);return i}const MN=(e,t,i,{allOwnKeys:s}={})=>(Ul(t,(o,l)=>{i&&En(o)?e[l]=x2(o,i):e[l]=o},{allOwnKeys:s}),e),DN=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_N=(e,t,i,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),i&&Object.assign(e.prototype,i)},LN=(e,t,i,s)=>{let o,l,c;const f={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),l=o.length;l-- >0;)c=o[l],(!s||s(c,e,t))&&!f[c]&&(t[c]=e[c],f[c]=!0);e=i!==!1&&Ig(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},NN=(e,t,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=t.length;const s=e.indexOf(t,i);return s!==-1&&s===i},zN=e=>{if(!e)return null;if(Fa(e))return e;let t=e.length;if(!w2(t))return null;const i=new Array(t);for(;t-- >0;)i[t]=e[t];return i},kN=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ig(Uint8Array)),PN=(e,t)=>{const s=(e&&e[kf]).call(e);let o;for(;(o=s.next())&&!o.done;){const l=o.value;t.call(e,l[0],l[1])}},jN=(e,t)=>{let i;const s=[];for(;(i=e.exec(t))!==null;)s.push(i);return s},BN=vi("HTMLFormElement"),UN=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,s,o){return s.toUpperCase()+o}),nx=(({hasOwnProperty:e})=>(t,i)=>e.call(t,i))(Object.prototype),VN=vi("RegExp"),A2=(e,t)=>{const i=Object.getOwnPropertyDescriptors(e),s={};Ul(i,(o,l)=>{let c;(c=t(o,l,e))!==!1&&(s[l]=c||o)}),Object.defineProperties(e,s)},$N=e=>{A2(e,(t,i)=>{if(En(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const s=e[i];if(En(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},HN=(e,t)=>{const i={},s=o=>{o.forEach(l=>{i[l]=!0})};return Fa(e)?s(e):s(String(e).split(t)),i},IN=()=>{},FN=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function qN(e){return!!(e&&En(e.append)&&e[C2]==="FormData"&&e[kf])}const KN=e=>{const t=new Array(10),i=(s,o)=>{if(Bl(s)){if(t.indexOf(s)>=0)return;if(jl(s))return s;if(!("toJSON"in s)){t[o]=s;const l=Fa(s)?[]:{};return Ul(s,(c,f)=>{const h=i(c,o+1);!ka(h)&&(l[f]=h)}),t[o]=void 0,l}}return s};return i(e,0)},GN=vi("AsyncFunction"),YN=e=>e&&(Bl(e)||En(e))&&En(e.then)&&En(e.catch),O2=((e,t)=>e?setImmediate:t?((i,s)=>(bs.addEventListener("message",({source:o,data:l})=>{o===bs&&l===i&&s.length&&s.shift()()},!1),o=>{s.push(o),bs.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",En(bs.postMessage)),XN=typeof queueMicrotask<"u"?queueMicrotask.bind(bs):typeof process<"u"&&process.nextTick||O2,WN=e=>e!=null&&En(e[kf]),X={isArray:Fa,isArrayBuffer:T2,isBuffer:jl,isFormData:CN,isArrayBufferView:hN,isString:pN,isNumber:w2,isBoolean:mN,isObject:Bl,isPlainObject:Mc,isEmptyObject:gN,isReadableStream:wN,isRequest:EN,isResponse:RN,isHeaders:AN,isUndefined:ka,isDate:yN,isFile:vN,isBlob:bN,isRegExp:VN,isFunction:En,isStream:xN,isURLSearchParams:TN,isTypedArray:kN,isFileList:SN,forEach:Ul,merge:Om,extend:MN,trim:ON,stripBOM:DN,inherits:_N,toFlatObject:LN,kindOf:Pf,kindOfTest:vi,endsWith:NN,toArray:zN,forEachEntry:PN,matchAll:jN,isHTMLForm:BN,hasOwnProperty:nx,hasOwnProp:nx,reduceDescriptors:A2,freezeMethods:$N,toObjectSet:HN,toCamelCase:UN,noop:IN,toFiniteNumber:FN,findKey:E2,global:bs,isContextDefined:R2,isSpecCompliantForm:qN,toJSONObject:KN,isAsyncFn:GN,isThenable:YN,setImmediate:O2,asap:XN,isIterable:WN};function Oe(e,t,i,s,o){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),i&&(this.config=i),s&&(this.request=s),o&&(this.response=o,this.status=o.status?o.status:null)}X.inherits(Oe,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:X.toJSONObject(this.config),code:this.code,status:this.status}}});const M2=Oe.prototype,D2={};["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=>{D2[e]={value:e}});Object.defineProperties(Oe,D2);Object.defineProperty(M2,"isAxiosError",{value:!0});Oe.from=(e,t,i,s,o,l)=>{const c=Object.create(M2);X.toFlatObject(e,c,function(g){return g!==Error.prototype},p=>p!=="isAxiosError");const f=e&&e.message?e.message:"Error",h=t==null&&e?e.code:t;return Oe.call(c,f,h,i,s,o),e&&c.cause==null&&Object.defineProperty(c,"cause",{value:e,configurable:!0}),c.name=e&&e.name||"Error",l&&Object.assign(c,l),c};const QN=null;function Mm(e){return X.isPlainObject(e)||X.isArray(e)}function _2(e){return X.endsWith(e,"[]")?e.slice(0,-2):e}function ix(e,t,i){return e?e.concat(t).map(function(o,l){return o=_2(o),!i&&l?"["+o+"]":o}).join(i?".":""):t}function ZN(e){return X.isArray(e)&&!e.some(Mm)}const JN=X.toFlatObject(X,{},null,function(t){return/^is[A-Z]/.test(t)});function Bf(e,t,i){if(!X.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,i=X.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,T){return!X.isUndefined(T[C])});const s=i.metaTokens,o=i.visitor||g,l=i.dots,c=i.indexes,h=(i.Blob||typeof Blob<"u"&&Blob)&&X.isSpecCompliantForm(t);if(!X.isFunction(o))throw new TypeError("visitor must be a function");function p(S){if(S===null)return"";if(X.isDate(S))return S.toISOString();if(X.isBoolean(S))return S.toString();if(!h&&X.isBlob(S))throw new Oe("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(S)||X.isTypedArray(S)?h&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function g(S,C,T){let D=S;if(S&&!T&&typeof S=="object"){if(X.endsWith(C,"{}"))C=s?C:C.slice(0,-2),S=JSON.stringify(S);else if(X.isArray(S)&&ZN(S)||(X.isFileList(S)||X.endsWith(C,"[]"))&&(D=X.toArray(S)))return C=_2(C),D.forEach(function(R,w){!(X.isUndefined(R)||R===null)&&t.append(c===!0?ix([C],w,l):c===null?C:C+"[]",p(R))}),!1}return Mm(S)?!0:(t.append(ix(T,C,l),p(S)),!1)}const y=[],v=Object.assign(JN,{defaultVisitor:g,convertValue:p,isVisitable:Mm});function x(S,C){if(!X.isUndefined(S)){if(y.indexOf(S)!==-1)throw Error("Circular reference detected in "+C.join("."));y.push(S),X.forEach(S,function(D,L){(!(X.isUndefined(D)||D===null)&&o.call(t,D,X.isString(L)?L.trim():L,C,v))===!0&&x(D,C?C.concat(L):[L])}),y.pop()}}if(!X.isObject(e))throw new TypeError("data must be an object");return x(e),t}function rx(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Fg(e,t){this._pairs=[],e&&Bf(e,this,t)}const L2=Fg.prototype;L2.append=function(t,i){this._pairs.push([t,i])};L2.toString=function(t){const i=t?function(s){return t.call(this,s,rx)}:rx;return this._pairs.map(function(o){return i(o[0])+"="+i(o[1])},"").join("&")};function ez(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function N2(e,t,i){if(!t)return e;const s=i&&i.encode||ez;X.isFunction(i)&&(i={serialize:i});const o=i&&i.serialize;let l;if(o?l=o(t,i):l=X.isURLSearchParams(t)?t.toString():new Fg(t,i).toString(s),l){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class sx{constructor(){this.handlers=[]}use(t,i,s){return this.handlers.push({fulfilled:t,rejected:i,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){X.forEach(this.handlers,function(s){s!==null&&t(s)})}}const z2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tz=typeof URLSearchParams<"u"?URLSearchParams:Fg,nz=typeof FormData<"u"?FormData:null,iz=typeof Blob<"u"?Blob:null,rz={isBrowser:!0,classes:{URLSearchParams:tz,FormData:nz,Blob:iz},protocols:["http","https","file","blob","url","data"]},qg=typeof window<"u"&&typeof document<"u",Dm=typeof navigator=="object"&&navigator||void 0,sz=qg&&(!Dm||["ReactNative","NativeScript","NS"].indexOf(Dm.product)<0),az=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",oz=qg&&window.location.href||"http://localhost",lz=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qg,hasStandardBrowserEnv:sz,hasStandardBrowserWebWorkerEnv:az,navigator:Dm,origin:oz},Symbol.toStringTag,{value:"Module"})),fn={...lz,...rz};function uz(e,t){return Bf(e,new fn.classes.URLSearchParams,{visitor:function(i,s,o,l){return fn.isNode&&X.isBuffer(i)?(this.append(s,i.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}function cz(e){return X.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function fz(e){const t={},i=Object.keys(e);let s;const o=i.length;let l;for(s=0;s<o;s++)l=i[s],t[l]=e[l];return t}function k2(e){function t(i,s,o,l){let c=i[l++];if(c==="__proto__")return!0;const f=Number.isFinite(+c),h=l>=i.length;return c=!c&&X.isArray(o)?o.length:c,h?(X.hasOwnProp(o,c)?o[c]=[o[c],s]:o[c]=s,!f):((!o[c]||!X.isObject(o[c]))&&(o[c]=[]),t(i,s,o[c],l)&&X.isArray(o[c])&&(o[c]=fz(o[c])),!f)}if(X.isFormData(e)&&X.isFunction(e.entries)){const i={};return X.forEachEntry(e,(s,o)=>{t(cz(s),o,i,0)}),i}return null}function dz(e,t,i){if(X.isString(e))try{return(t||JSON.parse)(e),X.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(i||JSON.stringify)(e)}const Vl={transitional:z2,adapter:["xhr","http","fetch"],transformRequest:[function(t,i){const s=i.getContentType()||"",o=s.indexOf("application/json")>-1,l=X.isObject(t);if(l&&X.isHTMLForm(t)&&(t=new FormData(t)),X.isFormData(t))return o?JSON.stringify(k2(t)):t;if(X.isArrayBuffer(t)||X.isBuffer(t)||X.isStream(t)||X.isFile(t)||X.isBlob(t)||X.isReadableStream(t))return t;if(X.isArrayBufferView(t))return t.buffer;if(X.isURLSearchParams(t))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(l){if(s.indexOf("application/x-www-form-urlencoded")>-1)return uz(t,this.formSerializer).toString();if((f=X.isFileList(t))||s.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return Bf(f?{"files[]":t}:t,h&&new h,this.formSerializer)}}return l||o?(i.setContentType("application/json",!1),dz(t)):t}],transformResponse:[function(t){const i=this.transitional||Vl.transitional,s=i&&i.forcedJSONParsing,o=this.responseType==="json";if(X.isResponse(t)||X.isReadableStream(t))return t;if(t&&X.isString(t)&&(s&&!this.responseType||o)){const c=!(i&&i.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(f){if(c)throw f.name==="SyntaxError"?Oe.from(f,Oe.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:fn.classes.FormData,Blob:fn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],e=>{Vl.headers[e]={}});const hz=X.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"]),pz=e=>{const t={};let i,s,o;return e&&e.split(`
146
+ `).forEach(function(c){o=c.indexOf(":"),i=c.substring(0,o).trim().toLowerCase(),s=c.substring(o+1).trim(),!(!i||t[i]&&hz[i])&&(i==="set-cookie"?t[i]?t[i].push(s):t[i]=[s]:t[i]=t[i]?t[i]+", "+s:s)}),t},ax=Symbol("internals");function Xo(e){return e&&String(e).trim().toLowerCase()}function Dc(e){return e===!1||e==null?e:X.isArray(e)?e.map(Dc):String(e)}function mz(e){const t=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=i.exec(e);)t[s[1]]=s[2];return t}const gz=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function _p(e,t,i,s,o){if(X.isFunction(s))return s.call(this,t,i);if(o&&(t=i),!!X.isString(t)){if(X.isString(s))return t.indexOf(s)!==-1;if(X.isRegExp(s))return s.test(t)}}function yz(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,i,s)=>i.toUpperCase()+s)}function vz(e,t){const i=X.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+i,{value:function(o,l,c){return this[s].call(this,t,o,l,c)},configurable:!0})})}let Rn=class{constructor(t){t&&this.set(t)}set(t,i,s){const o=this;function l(f,h,p){const g=Xo(h);if(!g)throw new Error("header name must be a non-empty string");const y=X.findKey(o,g);(!y||o[y]===void 0||p===!0||p===void 0&&o[y]!==!1)&&(o[y||h]=Dc(f))}const c=(f,h)=>X.forEach(f,(p,g)=>l(p,g,h));if(X.isPlainObject(t)||t instanceof this.constructor)c(t,i);else if(X.isString(t)&&(t=t.trim())&&!gz(t))c(pz(t),i);else if(X.isObject(t)&&X.isIterable(t)){let f={},h,p;for(const g of t){if(!X.isArray(g))throw TypeError("Object iterator must return a key-value pair");f[p=g[0]]=(h=f[p])?X.isArray(h)?[...h,g[1]]:[h,g[1]]:g[1]}c(f,i)}else t!=null&&l(i,t,s);return this}get(t,i){if(t=Xo(t),t){const s=X.findKey(this,t);if(s){const o=this[s];if(!i)return o;if(i===!0)return mz(o);if(X.isFunction(i))return i.call(this,o,s);if(X.isRegExp(i))return i.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,i){if(t=Xo(t),t){const s=X.findKey(this,t);return!!(s&&this[s]!==void 0&&(!i||_p(this,this[s],s,i)))}return!1}delete(t,i){const s=this;let o=!1;function l(c){if(c=Xo(c),c){const f=X.findKey(s,c);f&&(!i||_p(s,s[f],f,i))&&(delete s[f],o=!0)}}return X.isArray(t)?t.forEach(l):l(t),o}clear(t){const i=Object.keys(this);let s=i.length,o=!1;for(;s--;){const l=i[s];(!t||_p(this,this[l],l,t,!0))&&(delete this[l],o=!0)}return o}normalize(t){const i=this,s={};return X.forEach(this,(o,l)=>{const c=X.findKey(s,l);if(c){i[c]=Dc(o),delete i[l];return}const f=t?yz(l):String(l).trim();f!==l&&delete i[l],i[f]=Dc(o),s[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const i=Object.create(null);return X.forEach(this,(s,o)=>{s!=null&&s!==!1&&(i[o]=t&&X.isArray(s)?s.join(", "):s)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,i])=>t+": "+i).join(`
147
+ `)}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,...i){const s=new this(t);return i.forEach(o=>s.set(o)),s}static accessor(t){const s=(this[ax]=this[ax]={accessors:{}}).accessors,o=this.prototype;function l(c){const f=Xo(c);s[f]||(vz(o,c),s[f]=!0)}return X.isArray(t)?t.forEach(l):l(t),this}};Rn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);X.reduceDescriptors(Rn.prototype,({value:e},t)=>{let i=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[i]=s}}});X.freezeMethods(Rn);function Lp(e,t){const i=this||Vl,s=t||i,o=Rn.from(s.headers);let l=s.data;return X.forEach(e,function(f){l=f.call(i,l,o.normalize(),t?t.status:void 0)}),o.normalize(),l}function P2(e){return!!(e&&e.__CANCEL__)}function qa(e,t,i){Oe.call(this,e??"canceled",Oe.ERR_CANCELED,t,i),this.name="CanceledError"}X.inherits(qa,Oe,{__CANCEL__:!0});function j2(e,t,i){const s=i.config.validateStatus;!i.status||!s||s(i.status)?e(i):t(new Oe("Request failed with status code "+i.status,[Oe.ERR_BAD_REQUEST,Oe.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function bz(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Sz(e,t){e=e||10;const i=new Array(e),s=new Array(e);let o=0,l=0,c;return t=t!==void 0?t:1e3,function(h){const p=Date.now(),g=s[l];c||(c=p),i[o]=h,s[o]=p;let y=l,v=0;for(;y!==o;)v+=i[y++],y=y%e;if(o=(o+1)%e,o===l&&(l=(l+1)%e),p-c<t)return;const x=g&&p-g;return x?Math.round(v*1e3/x):void 0}}function xz(e,t){let i=0,s=1e3/t,o,l;const c=(p,g=Date.now())=>{i=g,o=null,l&&(clearTimeout(l),l=null),e(...p)};return[(...p)=>{const g=Date.now(),y=g-i;y>=s?c(p,g):(o=p,l||(l=setTimeout(()=>{l=null,c(o)},s-y)))},()=>o&&c(o)]}const Yc=(e,t,i=3)=>{let s=0;const o=Sz(50,250);return xz(l=>{const c=l.loaded,f=l.lengthComputable?l.total:void 0,h=c-s,p=o(h),g=c<=f;s=c;const y={loaded:c,total:f,progress:f?c/f:void 0,bytes:h,rate:p||void 0,estimated:p&&f&&g?(f-c)/p:void 0,event:l,lengthComputable:f!=null,[t?"download":"upload"]:!0};e(y)},i)},ox=(e,t)=>{const i=e!=null;return[s=>t[0]({lengthComputable:i,total:e,loaded:s}),t[1]]},lx=e=>(...t)=>X.asap(()=>e(...t)),Cz=fn.hasStandardBrowserEnv?((e,t)=>i=>(i=new URL(i,fn.origin),e.protocol===i.protocol&&e.host===i.host&&(t||e.port===i.port)))(new URL(fn.origin),fn.navigator&&/(msie|trident)/i.test(fn.navigator.userAgent)):()=>!0,Tz=fn.hasStandardBrowserEnv?{write(e,t,i,s,o,l,c){if(typeof document>"u")return;const f=[`${e}=${encodeURIComponent(t)}`];X.isNumber(i)&&f.push(`expires=${new Date(i).toUTCString()}`),X.isString(s)&&f.push(`path=${s}`),X.isString(o)&&f.push(`domain=${o}`),l===!0&&f.push("secure"),X.isString(c)&&f.push(`SameSite=${c}`),document.cookie=f.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function wz(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ez(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function B2(e,t,i){let s=!wz(t);return e&&(s||i==!1)?Ez(e,t):t}const ux=e=>e instanceof Rn?{...e}:e;function As(e,t){t=t||{};const i={};function s(p,g,y,v){return X.isPlainObject(p)&&X.isPlainObject(g)?X.merge.call({caseless:v},p,g):X.isPlainObject(g)?X.merge({},g):X.isArray(g)?g.slice():g}function o(p,g,y,v){if(X.isUndefined(g)){if(!X.isUndefined(p))return s(void 0,p,y,v)}else return s(p,g,y,v)}function l(p,g){if(!X.isUndefined(g))return s(void 0,g)}function c(p,g){if(X.isUndefined(g)){if(!X.isUndefined(p))return s(void 0,p)}else return s(void 0,g)}function f(p,g,y){if(y in t)return s(p,g);if(y in e)return s(void 0,p)}const h={url:l,method:l,data:l,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,g,y)=>o(ux(p),ux(g),y,!0)};return X.forEach(Object.keys({...e,...t}),function(g){const y=h[g]||o,v=y(e[g],t[g],g);X.isUndefined(v)&&y!==f||(i[g]=v)}),i}const U2=e=>{const t=As({},e);let{data:i,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:l,headers:c,auth:f}=t;if(t.headers=c=Rn.from(c),t.url=N2(B2(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),f&&c.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):""))),X.isFormData(i)){if(fn.hasStandardBrowserEnv||fn.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if(X.isFunction(i.getHeaders)){const h=i.getHeaders(),p=["content-type","content-length"];Object.entries(h).forEach(([g,y])=>{p.includes(g.toLowerCase())&&c.set(g,y)})}}if(fn.hasStandardBrowserEnv&&(s&&X.isFunction(s)&&(s=s(t)),s||s!==!1&&Cz(t.url))){const h=o&&l&&Tz.read(l);h&&c.set(o,h)}return t},Rz=typeof XMLHttpRequest<"u",Az=Rz&&function(e){return new Promise(function(i,s){const o=U2(e);let l=o.data;const c=Rn.from(o.headers).normalize();let{responseType:f,onUploadProgress:h,onDownloadProgress:p}=o,g,y,v,x,S;function C(){x&&x(),S&&S(),o.cancelToken&&o.cancelToken.unsubscribe(g),o.signal&&o.signal.removeEventListener("abort",g)}let T=new XMLHttpRequest;T.open(o.method.toUpperCase(),o.url,!0),T.timeout=o.timeout;function D(){if(!T)return;const R=Rn.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),M={data:!f||f==="text"||f==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:R,config:e,request:T};j2(function(k){i(k),C()},function(k){s(k),C()},M),T=null}"onloadend"in T?T.onloadend=D:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(D)},T.onabort=function(){T&&(s(new Oe("Request aborted",Oe.ECONNABORTED,e,T)),T=null)},T.onerror=function(w){const M=w&&w.message?w.message:"Network Error",N=new Oe(M,Oe.ERR_NETWORK,e,T);N.event=w||null,s(N),T=null},T.ontimeout=function(){let w=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const M=o.transitional||z2;o.timeoutErrorMessage&&(w=o.timeoutErrorMessage),s(new Oe(w,M.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,T)),T=null},l===void 0&&c.setContentType(null),"setRequestHeader"in T&&X.forEach(c.toJSON(),function(w,M){T.setRequestHeader(M,w)}),X.isUndefined(o.withCredentials)||(T.withCredentials=!!o.withCredentials),f&&f!=="json"&&(T.responseType=o.responseType),p&&([v,S]=Yc(p,!0),T.addEventListener("progress",v)),h&&T.upload&&([y,x]=Yc(h),T.upload.addEventListener("progress",y),T.upload.addEventListener("loadend",x)),(o.cancelToken||o.signal)&&(g=R=>{T&&(s(!R||R.type?new qa(null,e,T):R),T.abort(),T=null)},o.cancelToken&&o.cancelToken.subscribe(g),o.signal&&(o.signal.aborted?g():o.signal.addEventListener("abort",g)));const L=bz(o.url);if(L&&fn.protocols.indexOf(L)===-1){s(new Oe("Unsupported protocol "+L+":",Oe.ERR_BAD_REQUEST,e));return}T.send(l||null)})},Oz=(e,t)=>{const{length:i}=e=e?e.filter(Boolean):[];if(t||i){let s=new AbortController,o;const l=function(p){if(!o){o=!0,f();const g=p instanceof Error?p:this.reason;s.abort(g instanceof Oe?g:new qa(g instanceof Error?g.message:g))}};let c=t&&setTimeout(()=>{c=null,l(new Oe(`timeout ${t} of ms exceeded`,Oe.ETIMEDOUT))},t);const f=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(l):p.removeEventListener("abort",l)}),e=null)};e.forEach(p=>p.addEventListener("abort",l));const{signal:h}=s;return h.unsubscribe=()=>X.asap(f),h}},Mz=function*(e,t){let i=e.byteLength;if(i<t){yield e;return}let s=0,o;for(;s<i;)o=s+t,yield e.slice(s,o),s=o},Dz=async function*(e,t){for await(const i of _z(e))yield*Mz(i,t)},_z=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:i,value:s}=await t.read();if(i)break;yield s}}finally{await t.cancel()}},cx=(e,t,i,s)=>{const o=Dz(e,t);let l=0,c,f=h=>{c||(c=!0,s&&s(h))};return new ReadableStream({async pull(h){try{const{done:p,value:g}=await o.next();if(p){f(),h.close();return}let y=g.byteLength;if(i){let v=l+=y;i(v)}h.enqueue(new Uint8Array(g))}catch(p){throw f(p),p}},cancel(h){return f(h),o.return()}},{highWaterMark:2})},fx=64*1024,{isFunction:mc}=X,Lz=(({Request:e,Response:t})=>({Request:e,Response:t}))(X.global),{ReadableStream:dx,TextEncoder:hx}=X.global,px=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Nz=e=>{e=X.merge.call({skipUndefined:!0},Lz,e);const{fetch:t,Request:i,Response:s}=e,o=t?mc(t):typeof fetch=="function",l=mc(i),c=mc(s);if(!o)return!1;const f=o&&mc(dx),h=o&&(typeof hx=="function"?(S=>C=>S.encode(C))(new hx):async S=>new Uint8Array(await new i(S).arrayBuffer())),p=l&&f&&px(()=>{let S=!1;const C=new i(fn.origin,{body:new dx,method:"POST",get duplex(){return S=!0,"half"}}).headers.has("Content-Type");return S&&!C}),g=c&&f&&px(()=>X.isReadableStream(new s("").body)),y={stream:g&&(S=>S.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(S=>{!y[S]&&(y[S]=(C,T)=>{let D=C&&C[S];if(D)return D.call(C);throw new Oe(`Response type '${S}' is not supported`,Oe.ERR_NOT_SUPPORT,T)})});const v=async S=>{if(S==null)return 0;if(X.isBlob(S))return S.size;if(X.isSpecCompliantForm(S))return(await new i(fn.origin,{method:"POST",body:S}).arrayBuffer()).byteLength;if(X.isArrayBufferView(S)||X.isArrayBuffer(S))return S.byteLength;if(X.isURLSearchParams(S)&&(S=S+""),X.isString(S))return(await h(S)).byteLength},x=async(S,C)=>{const T=X.toFiniteNumber(S.getContentLength());return T??v(C)};return async S=>{let{url:C,method:T,data:D,signal:L,cancelToken:R,timeout:w,onDownloadProgress:M,onUploadProgress:N,responseType:k,headers:B,withCredentials:G="same-origin",fetchOptions:Q}=U2(S),J=t||fetch;k=k?(k+"").toLowerCase():"text";let O=Oz([L,R&&R.toAbortSignal()],w),Z=null;const F=O&&O.unsubscribe&&(()=>{O.unsubscribe()});let Y;try{if(N&&p&&T!=="get"&&T!=="head"&&(Y=await x(B,D))!==0){let z=new i(C,{method:"POST",body:D,duplex:"half"}),q;if(X.isFormData(D)&&(q=z.headers.get("content-type"))&&B.setContentType(q),z.body){const[ae,oe]=ox(Y,Yc(lx(N)));D=cx(z.body,fx,ae,oe)}}X.isString(G)||(G=G?"include":"omit");const P=l&&"credentials"in i.prototype,I={...Q,signal:O,method:T.toUpperCase(),headers:B.normalize().toJSON(),body:D,duplex:"half",credentials:P?G:void 0};Z=l&&new i(C,I);let ee=await(l?J(Z,Q):J(C,I));const se=g&&(k==="stream"||k==="response");if(g&&(M||se&&F)){const z={};["status","statusText","headers"].forEach(ue=>{z[ue]=ee[ue]});const q=X.toFiniteNumber(ee.headers.get("content-length")),[ae,oe]=M&&ox(q,Yc(lx(M),!0))||[];ee=new s(cx(ee.body,fx,ae,()=>{oe&&oe(),F&&F()}),z)}k=k||"text";let le=await y[X.findKey(y,k)||"text"](ee,S);return!se&&F&&F(),await new Promise((z,q)=>{j2(z,q,{data:le,headers:Rn.from(ee.headers),status:ee.status,statusText:ee.statusText,config:S,request:Z})})}catch(P){throw F&&F(),P&&P.name==="TypeError"&&/Load failed|fetch/i.test(P.message)?Object.assign(new Oe("Network Error",Oe.ERR_NETWORK,S,Z),{cause:P.cause||P}):Oe.from(P,P&&P.code,S,Z)}}},zz=new Map,V2=e=>{let t=e&&e.env||{};const{fetch:i,Request:s,Response:o}=t,l=[s,o,i];let c=l.length,f=c,h,p,g=zz;for(;f--;)h=l[f],p=g.get(h),p===void 0&&g.set(h,p=f?new Map:Nz(t)),g=p;return p};V2();const Kg={http:QN,xhr:Az,fetch:{get:V2}};X.forEach(Kg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const mx=e=>`- ${e}`,kz=e=>X.isFunction(e)||e===null||e===!1;function Pz(e,t){e=X.isArray(e)?e:[e];const{length:i}=e;let s,o;const l={};for(let c=0;c<i;c++){s=e[c];let f;if(o=s,!kz(s)&&(o=Kg[(f=String(s)).toLowerCase()],o===void 0))throw new Oe(`Unknown adapter '${f}'`);if(o&&(X.isFunction(o)||(o=o.get(t))))break;l[f||"#"+c]=o}if(!o){const c=Object.entries(l).map(([h,p])=>`adapter ${h} `+(p===!1?"is not supported by the environment":"is not available in the build"));let f=i?c.length>1?`since :
148
+ `+c.map(mx).join(`
149
+ `):" "+mx(c[0]):"as no adapter specified";throw new Oe("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return o}const $2={getAdapter:Pz,adapters:Kg};function Np(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qa(null,e)}function gx(e){return Np(e),e.headers=Rn.from(e.headers),e.data=Lp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),$2.getAdapter(e.adapter||Vl.adapter,e)(e).then(function(s){return Np(e),s.data=Lp.call(e,e.transformResponse,s),s.headers=Rn.from(s.headers),s},function(s){return P2(s)||(Np(e),s&&s.response&&(s.response.data=Lp.call(e,e.transformResponse,s.response),s.response.headers=Rn.from(s.response.headers))),Promise.reject(s)})}const H2="1.13.2",Uf={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Uf[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const yx={};Uf.transitional=function(t,i,s){function o(l,c){return"[Axios v"+H2+"] Transitional option '"+l+"'"+c+(s?". "+s:"")}return(l,c,f)=>{if(t===!1)throw new Oe(o(c," has been removed"+(i?" in "+i:"")),Oe.ERR_DEPRECATED);return i&&!yx[c]&&(yx[c]=!0,console.warn(o(c," has been deprecated since v"+i+" and will be removed in the near future"))),t?t(l,c,f):!0}};Uf.spelling=function(t){return(i,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function jz(e,t,i){if(typeof e!="object")throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let o=s.length;for(;o-- >0;){const l=s[o],c=t[l];if(c){const f=e[l],h=f===void 0||c(f,l,e);if(h!==!0)throw new Oe("option "+l+" must be "+h,Oe.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new Oe("Unknown option "+l,Oe.ERR_BAD_OPTION)}}const _c={assertOptions:jz,validators:Uf},Ri=_c.validators;let ws=class{constructor(t){this.defaults=t||{},this.interceptors={request:new sx,response:new sx}}async request(t,i){try{return await this._request(t,i)}catch(s){if(s instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const l=o.stack?o.stack.replace(/^.+\n/,""):"";try{s.stack?l&&!String(s.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(s.stack+=`
150
+ `+l):s.stack=l}catch{}}throw s}}_request(t,i){typeof t=="string"?(i=i||{},i.url=t):i=t||{},i=As(this.defaults,i);const{transitional:s,paramsSerializer:o,headers:l}=i;s!==void 0&&_c.assertOptions(s,{silentJSONParsing:Ri.transitional(Ri.boolean),forcedJSONParsing:Ri.transitional(Ri.boolean),clarifyTimeoutError:Ri.transitional(Ri.boolean)},!1),o!=null&&(X.isFunction(o)?i.paramsSerializer={serialize:o}:_c.assertOptions(o,{encode:Ri.function,serialize:Ri.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),_c.assertOptions(i,{baseUrl:Ri.spelling("baseURL"),withXsrfToken:Ri.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let c=l&&X.merge(l.common,l[i.method]);l&&X.forEach(["delete","get","head","post","put","patch","common"],S=>{delete l[S]}),i.headers=Rn.concat(c,l);const f=[];let h=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(i)===!1||(h=h&&C.synchronous,f.unshift(C.fulfilled,C.rejected))});const p=[];this.interceptors.response.forEach(function(C){p.push(C.fulfilled,C.rejected)});let g,y=0,v;if(!h){const S=[gx.bind(this),void 0];for(S.unshift(...f),S.push(...p),v=S.length,g=Promise.resolve(i);y<v;)g=g.then(S[y++],S[y++]);return g}v=f.length;let x=i;for(;y<v;){const S=f[y++],C=f[y++];try{x=S(x)}catch(T){C.call(this,T);break}}try{g=gx.call(this,x)}catch(S){return Promise.reject(S)}for(y=0,v=p.length;y<v;)g=g.then(p[y++],p[y++]);return g}getUri(t){t=As(this.defaults,t);const i=B2(t.baseURL,t.url,t.allowAbsoluteUrls);return N2(i,t.params,t.paramsSerializer)}};X.forEach(["delete","get","head","options"],function(t){ws.prototype[t]=function(i,s){return this.request(As(s||{},{method:t,url:i,data:(s||{}).data}))}});X.forEach(["post","put","patch"],function(t){function i(s){return function(l,c,f){return this.request(As(f||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:l,data:c}))}}ws.prototype[t]=i(),ws.prototype[t+"Form"]=i(!0)});let Bz=class I2{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(l){i=l});const s=this;this.promise.then(o=>{if(!s._listeners)return;let l=s._listeners.length;for(;l-- >0;)s._listeners[l](o);s._listeners=null}),this.promise.then=o=>{let l;const c=new Promise(f=>{s.subscribe(f),l=f}).then(o);return c.cancel=function(){s.unsubscribe(l)},c},t(function(l,c,f){s.reason||(s.reason=new qa(l,c,f),i(s.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 i=this._listeners.indexOf(t);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const t=new AbortController,i=s=>{t.abort(s)};return this.subscribe(i),t.signal.unsubscribe=()=>this.unsubscribe(i),t.signal}static source(){let t;return{token:new I2(function(o){t=o}),cancel:t}}};function Uz(e){return function(i){return e.apply(null,i)}}function Vz(e){return X.isObject(e)&&e.isAxiosError===!0}const _m={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(_m).forEach(([e,t])=>{_m[t]=e});function F2(e){const t=new ws(e),i=x2(ws.prototype.request,t);return X.extend(i,ws.prototype,t,{allOwnKeys:!0}),X.extend(i,t,null,{allOwnKeys:!0}),i.create=function(o){return F2(As(e,o))},i}const Mt=F2(Vl);Mt.Axios=ws;Mt.CanceledError=qa;Mt.CancelToken=Bz;Mt.isCancel=P2;Mt.VERSION=H2;Mt.toFormData=Bf;Mt.AxiosError=Oe;Mt.Cancel=Mt.CanceledError;Mt.all=function(t){return Promise.all(t)};Mt.spread=Uz;Mt.isAxiosError=Vz;Mt.mergeConfig=As;Mt.AxiosHeaders=Rn;Mt.formToJSON=e=>k2(X.isHTMLForm(e)?new FormData(e):e);Mt.getAdapter=$2.getAdapter;Mt.HttpStatusCode=_m;Mt.default=Mt;const{Axios:i8,AxiosError:r8,CanceledError:s8,isCancel:a8,CancelToken:o8,VERSION:l8,all:u8,Cancel:c8,isAxiosError:f8,spread:d8,toFormData:h8,AxiosHeaders:p8,HttpStatusCode:m8,formToJSON:g8,getAdapter:y8,mergeConfig:v8}=Mt,Gg=E.createContext({});function Yg(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const Xg=typeof window<"u",q2=Xg?E.useLayoutEffect:E.useEffect,Vf=E.createContext(null);function Wg(e,t){e.indexOf(t)===-1&&e.push(t)}function Qg(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}const ki=(e,t,i)=>i>t?t:i<e?e:i;let Zg=()=>{};const ur={},K2=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function G2(e){return typeof e=="object"&&e!==null}const Y2=e=>/^0[^.\s]+$/u.test(e);function Jg(e){let t;return()=>(t===void 0&&(t=e()),t)}const ii=e=>e,$z=(e,t)=>i=>t(e(i)),$l=(...e)=>e.reduce($z),vl=(e,t,i)=>{const s=t-e;return s===0?1:(i-e)/s};class ey{constructor(){this.subscriptions=[]}add(t){return Wg(this.subscriptions,t),()=>Qg(this.subscriptions,t)}notify(t,i,s){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,i,s);else for(let l=0;l<o;l++){const c=this.subscriptions[l];c&&c(t,i,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const sr=e=>e*1e3,ni=e=>e/1e3;function X2(e,t){return t?e*(1e3/t):0}const W2=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e,Hz=1e-7,Iz=12;function Fz(e,t,i,s,o){let l,c,f=0;do c=t+(i-t)/2,l=W2(c,s,o)-e,l>0?i=c:t=c;while(Math.abs(l)>Hz&&++f<Iz);return c}function Hl(e,t,i,s){if(e===t&&i===s)return ii;const o=l=>Fz(l,0,1,e,i);return l=>l===0||l===1?l:W2(o(l),t,s)}const Q2=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Z2=e=>t=>1-e(1-t),J2=Hl(.33,1.53,.69,.99),ty=Z2(J2),ew=Q2(ty),tw=e=>(e*=2)<1?.5*ty(e):.5*(2-Math.pow(2,-10*(e-1))),ny=e=>1-Math.sin(Math.acos(e)),nw=Z2(ny),iw=Q2(ny),qz=Hl(.42,0,1,1),Kz=Hl(0,0,.58,1),rw=Hl(.42,0,.58,1),Gz=e=>Array.isArray(e)&&typeof e[0]!="number",sw=e=>Array.isArray(e)&&typeof e[0]=="number",Yz={linear:ii,easeIn:qz,easeInOut:rw,easeOut:Kz,circIn:ny,circInOut:iw,circOut:nw,backIn:ty,backInOut:ew,backOut:J2,anticipate:tw},Xz=e=>typeof e=="string",vx=e=>{if(sw(e)){Zg(e.length===4);const[t,i,s,o]=e;return Hl(t,i,s,o)}else if(Xz(e))return Yz[e];return e},gc=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Wz(e,t){let i=new Set,s=new Set,o=!1,l=!1;const c=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1};function h(g){c.has(g)&&(p.schedule(g),e()),g(f)}const p={schedule:(g,y=!1,v=!1)=>{const S=v&&o?i:s;return y&&c.add(g),S.has(g)||S.add(g),g},cancel:g=>{s.delete(g),c.delete(g)},process:g=>{if(f=g,o){l=!0;return}o=!0,[i,s]=[s,i],i.forEach(h),i.clear(),o=!1,l&&(l=!1,p.process(g))}};return p}const Qz=40;function aw(e,t){let i=!1,s=!0;const o={delta:0,timestamp:0,isProcessing:!1},l=()=>i=!0,c=gc.reduce((R,w)=>(R[w]=Wz(l),R),{}),{setup:f,read:h,resolveKeyframes:p,preUpdate:g,update:y,preRender:v,render:x,postRender:S}=c,C=()=>{const R=ur.useManualTiming?o.timestamp:performance.now();i=!1,ur.useManualTiming||(o.delta=s?1e3/60:Math.max(Math.min(R-o.timestamp,Qz),1)),o.timestamp=R,o.isProcessing=!0,f.process(o),h.process(o),p.process(o),g.process(o),y.process(o),v.process(o),x.process(o),S.process(o),o.isProcessing=!1,i&&t&&(s=!1,e(C))},T=()=>{i=!0,s=!0,o.isProcessing||e(C)};return{schedule:gc.reduce((R,w)=>{const M=c[w];return R[w]=(N,k=!1,B=!1)=>(i||T(),M.schedule(N,k,B)),R},{}),cancel:R=>{for(let w=0;w<gc.length;w++)c[gc[w]].cancel(R)},state:o,steps:c}}const{schedule:mt,cancel:$r,state:sn,steps:zp}=aw(typeof requestAnimationFrame<"u"?requestAnimationFrame:ii,!0);let Lc;function Zz(){Lc=void 0}const pn={now:()=>(Lc===void 0&&pn.set(sn.isProcessing||ur.useManualTiming?sn.timestamp:performance.now()),Lc),set:e=>{Lc=e,queueMicrotask(Zz)}},ow=e=>t=>typeof t=="string"&&t.startsWith(e),lw=ow("--"),Jz=ow("var(--"),iy=e=>Jz(e)?ek.test(e.split("/*")[0].trim()):!1,ek=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function bx(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Ka={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},bl={...Ka,transform:e=>ki(0,1,e)},yc={...Ka,default:1},ll=e=>Math.round(e*1e5)/1e5,ry=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function tk(e){return e==null}const nk=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,sy=(e,t)=>i=>!!(typeof i=="string"&&nk.test(i)&&i.startsWith(e)||t&&!tk(i)&&Object.prototype.hasOwnProperty.call(i,t)),uw=(e,t,i)=>s=>{if(typeof s!="string")return s;const[o,l,c,f]=s.match(ry);return{[e]:parseFloat(o),[t]:parseFloat(l),[i]:parseFloat(c),alpha:f!==void 0?parseFloat(f):1}},ik=e=>ki(0,255,e),kp={...Ka,transform:e=>Math.round(ik(e))},Ss={test:sy("rgb","red"),parse:uw("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:s=1})=>"rgba("+kp.transform(e)+", "+kp.transform(t)+", "+kp.transform(i)+", "+ll(bl.transform(s))+")"};function rk(e){let t="",i="",s="",o="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),s=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),s=e.substring(3,4),o=e.substring(4,5),t+=t,i+=i,s+=s,o+=o),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:o?parseInt(o,16)/255:1}}const Lm={test:sy("#"),parse:rk,transform:Ss.transform},Il=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pr=Il("deg"),Ni=Il("%"),ce=Il("px"),sk=Il("vh"),ak=Il("vw"),Sx={...Ni,parse:e=>Ni.parse(e)/100,transform:e=>Ni.transform(e*100)},Ea={test:sy("hsl","hue"),parse:uw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:s=1})=>"hsla("+Math.round(e)+", "+Ni.transform(ll(t))+", "+Ni.transform(ll(i))+", "+ll(bl.transform(s))+")"},Vt={test:e=>Ss.test(e)||Lm.test(e)||Ea.test(e),parse:e=>Ss.test(e)?Ss.parse(e):Ea.test(e)?Ea.parse(e):Lm.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ss.transform(e):Ea.transform(e),getAnimatableNone:e=>{const t=Vt.parse(e);return t.alpha=0,Vt.transform(t)}},ok=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function lk(e){return isNaN(e)&&typeof e=="string"&&(e.match(ry)?.length||0)+(e.match(ok)?.length||0)>0}const cw="number",fw="color",uk="var",ck="var(",xx="${}",fk=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Sl(e){const t=e.toString(),i=[],s={color:[],number:[],var:[]},o=[];let l=0;const f=t.replace(fk,h=>(Vt.test(h)?(s.color.push(l),o.push(fw),i.push(Vt.parse(h))):h.startsWith(ck)?(s.var.push(l),o.push(uk),i.push(h)):(s.number.push(l),o.push(cw),i.push(parseFloat(h))),++l,xx)).split(xx);return{values:i,split:f,indexes:s,types:o}}function dw(e){return Sl(e).values}function hw(e){const{split:t,types:i}=Sl(e),s=t.length;return o=>{let l="";for(let c=0;c<s;c++)if(l+=t[c],o[c]!==void 0){const f=i[c];f===cw?l+=ll(o[c]):f===fw?l+=Vt.transform(o[c]):l+=o[c]}return l}}const dk=e=>typeof e=="number"?0:Vt.test(e)?Vt.getAnimatableNone(e):e;function hk(e){const t=dw(e);return hw(e)(t.map(dk))}const Hr={test:lk,parse:dw,createTransformer:hw,getAnimatableNone:hk};function Pp(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(t-e)*6*i:i<1/2?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function pk({hue:e,saturation:t,lightness:i,alpha:s}){e/=360,t/=100,i/=100;let o=0,l=0,c=0;if(!t)o=l=c=i;else{const f=i<.5?i*(1+t):i+t-i*t,h=2*i-f;o=Pp(h,f,e+1/3),l=Pp(h,f,e),c=Pp(h,f,e-1/3)}return{red:Math.round(o*255),green:Math.round(l*255),blue:Math.round(c*255),alpha:s}}function Xc(e,t){return i=>i>0?t:e}const xt=(e,t,i)=>e+(t-e)*i,jp=(e,t,i)=>{const s=e*e,o=i*(t*t-s)+s;return o<0?0:Math.sqrt(o)},mk=[Lm,Ss,Ea],gk=e=>mk.find(t=>t.test(e));function Cx(e){const t=gk(e);if(!t)return!1;let i=t.parse(e);return t===Ea&&(i=pk(i)),i}const Tx=(e,t)=>{const i=Cx(e),s=Cx(t);if(!i||!s)return Xc(e,t);const o={...i};return l=>(o.red=jp(i.red,s.red,l),o.green=jp(i.green,s.green,l),o.blue=jp(i.blue,s.blue,l),o.alpha=xt(i.alpha,s.alpha,l),Ss.transform(o))},Nm=new Set(["none","hidden"]);function yk(e,t){return Nm.has(e)?i=>i<=0?e:t:i=>i>=1?t:e}function vk(e,t){return i=>xt(e,t,i)}function ay(e){return typeof e=="number"?vk:typeof e=="string"?iy(e)?Xc:Vt.test(e)?Tx:xk:Array.isArray(e)?pw:typeof e=="object"?Vt.test(e)?Tx:bk:Xc}function pw(e,t){const i=[...e],s=i.length,o=e.map((l,c)=>ay(l)(l,t[c]));return l=>{for(let c=0;c<s;c++)i[c]=o[c](l);return i}}function bk(e,t){const i={...e,...t},s={};for(const o in i)e[o]!==void 0&&t[o]!==void 0&&(s[o]=ay(e[o])(e[o],t[o]));return o=>{for(const l in s)i[l]=s[l](o);return i}}function Sk(e,t){const i=[],s={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const l=t.types[o],c=e.indexes[l][s[l]],f=e.values[c]??0;i[o]=f,s[l]++}return i}const xk=(e,t)=>{const i=Hr.createTransformer(t),s=Sl(e),o=Sl(t);return s.indexes.var.length===o.indexes.var.length&&s.indexes.color.length===o.indexes.color.length&&s.indexes.number.length>=o.indexes.number.length?Nm.has(e)&&!o.values.length||Nm.has(t)&&!s.values.length?yk(e,t):$l(pw(Sk(s,o),o.values),i):Xc(e,t)};function mw(e,t,i){return typeof e=="number"&&typeof t=="number"&&typeof i=="number"?xt(e,t,i):ay(e)(e,t)}const Ck=e=>{const t=({timestamp:i})=>e(i);return{start:(i=!0)=>mt.update(t,i),stop:()=>$r(t),now:()=>sn.isProcessing?sn.timestamp:pn.now()}},gw=(e,t,i=10)=>{let s="";const o=Math.max(Math.round(t/i),2);for(let l=0;l<o;l++)s+=Math.round(e(l/(o-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Wc=2e4;function oy(e){let t=0;const i=50;let s=e.next(t);for(;!s.done&&t<Wc;)t+=i,s=e.next(t);return t>=Wc?1/0:t}function Tk(e,t=100,i){const s=i({...e,keyframes:[0,t]}),o=Math.min(oy(s),Wc);return{type:"keyframes",ease:l=>s.next(o*l).value/t,duration:ni(o)}}const wk=5;function yw(e,t,i){const s=Math.max(t-wk,0);return X2(i-e(s),t-s)}const At={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},Bp=.001;function Ek({duration:e=At.duration,bounce:t=At.bounce,velocity:i=At.velocity,mass:s=At.mass}){let o,l,c=1-t;c=ki(At.minDamping,At.maxDamping,c),e=ki(At.minDuration,At.maxDuration,ni(e)),c<1?(o=p=>{const g=p*c,y=g*e,v=g-i,x=zm(p,c),S=Math.exp(-y);return Bp-v/x*S},l=p=>{const y=p*c*e,v=y*i+i,x=Math.pow(c,2)*Math.pow(p,2)*e,S=Math.exp(-y),C=zm(Math.pow(p,2),c);return(-o(p)+Bp>0?-1:1)*((v-x)*S)/C}):(o=p=>{const g=Math.exp(-p*e),y=(p-i)*e+1;return-Bp+g*y},l=p=>{const g=Math.exp(-p*e),y=(i-p)*(e*e);return g*y});const f=5/e,h=Ak(o,l,f);if(e=sr(e),isNaN(h))return{stiffness:At.stiffness,damping:At.damping,duration:e};{const p=Math.pow(h,2)*s;return{stiffness:p,damping:c*2*Math.sqrt(s*p),duration:e}}}const Rk=12;function Ak(e,t,i){let s=i;for(let o=1;o<Rk;o++)s=s-e(s)/t(s);return s}function zm(e,t){return e*Math.sqrt(1-t*t)}const Ok=["duration","bounce"],Mk=["stiffness","damping","mass"];function wx(e,t){return t.some(i=>e[i]!==void 0)}function Dk(e){let t={velocity:At.velocity,stiffness:At.stiffness,damping:At.damping,mass:At.mass,isResolvedFromDuration:!1,...e};if(!wx(e,Mk)&&wx(e,Ok))if(e.visualDuration){const i=e.visualDuration,s=2*Math.PI/(i*1.2),o=s*s,l=2*ki(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:At.mass,stiffness:o,damping:l}}else{const i=Ek(e);t={...t,...i,mass:At.mass},t.isResolvedFromDuration=!0}return t}function Qc(e=At.visualDuration,t=At.bounce){const i=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:o}=i;const l=i.keyframes[0],c=i.keyframes[i.keyframes.length-1],f={done:!1,value:l},{stiffness:h,damping:p,mass:g,duration:y,velocity:v,isResolvedFromDuration:x}=Dk({...i,velocity:-ni(i.velocity||0)}),S=v||0,C=p/(2*Math.sqrt(h*g)),T=c-l,D=ni(Math.sqrt(h/g)),L=Math.abs(T)<5;s||(s=L?At.restSpeed.granular:At.restSpeed.default),o||(o=L?At.restDelta.granular:At.restDelta.default);let R;if(C<1){const M=zm(D,C);R=N=>{const k=Math.exp(-C*D*N);return c-k*((S+C*D*T)/M*Math.sin(M*N)+T*Math.cos(M*N))}}else if(C===1)R=M=>c-Math.exp(-D*M)*(T+(S+D*T)*M);else{const M=D*Math.sqrt(C*C-1);R=N=>{const k=Math.exp(-C*D*N),B=Math.min(M*N,300);return c-k*((S+C*D*T)*Math.sinh(B)+M*T*Math.cosh(B))/M}}const w={calculatedDuration:x&&y||null,next:M=>{const N=R(M);if(x)f.done=M>=y;else{let k=M===0?S:0;C<1&&(k=M===0?sr(S):yw(R,M,N));const B=Math.abs(k)<=s,G=Math.abs(c-N)<=o;f.done=B&&G}return f.value=f.done?c:N,f},toString:()=>{const M=Math.min(oy(w),Wc),N=gw(k=>w.next(M*k).value,M,30);return M+"ms "+N},toTransition:()=>{}};return w}Qc.applyToOptions=e=>{const t=Tk(e,100,Qc);return e.ease=t.ease,e.duration=sr(t.duration),e.type="keyframes",e};function km({keyframes:e,velocity:t=0,power:i=.8,timeConstant:s=325,bounceDamping:o=10,bounceStiffness:l=500,modifyTarget:c,min:f,max:h,restDelta:p=.5,restSpeed:g}){const y=e[0],v={done:!1,value:y},x=B=>f!==void 0&&B<f||h!==void 0&&B>h,S=B=>f===void 0?h:h===void 0||Math.abs(f-B)<Math.abs(h-B)?f:h;let C=i*t;const T=y+C,D=c===void 0?T:c(T);D!==T&&(C=D-y);const L=B=>-C*Math.exp(-B/s),R=B=>D+L(B),w=B=>{const G=L(B),Q=R(B);v.done=Math.abs(G)<=p,v.value=v.done?D:Q};let M,N;const k=B=>{x(v.value)&&(M=B,N=Qc({keyframes:[v.value,S(v.value)],velocity:yw(R,B,v.value),damping:o,stiffness:l,restDelta:p,restSpeed:g}))};return k(0),{calculatedDuration:null,next:B=>{let G=!1;return!N&&M===void 0&&(G=!0,w(B),k(B)),M!==void 0&&B>=M?N.next(B-M):(!G&&w(B),v)}}}function _k(e,t,i){const s=[],o=i||ur.mix||mw,l=e.length-1;for(let c=0;c<l;c++){let f=o(e[c],e[c+1]);if(t){const h=Array.isArray(t)?t[c]||ii:t;f=$l(h,f)}s.push(f)}return s}function Lk(e,t,{clamp:i=!0,ease:s,mixer:o}={}){const l=e.length;if(Zg(l===t.length),l===1)return()=>t[0];if(l===2&&t[0]===t[1])return()=>t[1];const c=e[0]===e[1];e[0]>e[l-1]&&(e=[...e].reverse(),t=[...t].reverse());const f=_k(t,s,o),h=f.length,p=g=>{if(c&&g<e[0])return t[0];let y=0;if(h>1)for(;y<e.length-2&&!(g<e[y+1]);y++);const v=vl(e[y],e[y+1],g);return f[y](v)};return i?g=>p(ki(e[0],e[l-1],g)):p}function Nk(e,t){const i=e[e.length-1];for(let s=1;s<=t;s++){const o=vl(0,t,s);e.push(xt(i,1,o))}}function zk(e){const t=[0];return Nk(t,e.length-1),t}function kk(e,t){return e.map(i=>i*t)}function Pk(e,t){return e.map(()=>t||rw).splice(0,e.length-1)}function ul({duration:e=300,keyframes:t,times:i,ease:s="easeInOut"}){const o=Gz(s)?s.map(vx):vx(s),l={done:!1,value:t[0]},c=kk(i&&i.length===t.length?i:zk(t),e),f=Lk(c,t,{ease:Array.isArray(o)?o:Pk(t,o)});return{calculatedDuration:e,next:h=>(l.value=f(h),l.done=h>=e,l)}}const jk=e=>e!==null;function ly(e,{repeat:t,repeatType:i="loop"},s,o=1){const l=e.filter(jk),f=o<0||t&&i!=="loop"&&t%2===1?0:l.length-1;return!f||s===void 0?l[f]:s}const Bk={decay:km,inertia:km,tween:ul,keyframes:ul,spring:Qc};function vw(e){typeof e.type=="string"&&(e.type=Bk[e.type])}class uy{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,i){return this.finished.then(t,i)}}const Uk=e=>e/100;class cy extends uy{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:i}=this.options;i&&i.updatedAt!==pn.now()&&this.tick(pn.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;vw(t);const{type:i=ul,repeat:s=0,repeatDelay:o=0,repeatType:l,velocity:c=0}=t;let{keyframes:f}=t;const h=i||ul;h!==ul&&typeof f[0]!="number"&&(this.mixKeyframes=$l(Uk,mw(f[0],f[1])),f=[0,100]);const p=h({...t,keyframes:f});l==="mirror"&&(this.mirroredGenerator=h({...t,keyframes:[...f].reverse(),velocity:-c})),p.calculatedDuration===null&&(p.calculatedDuration=oy(p));const{calculatedDuration:g}=p;this.calculatedDuration=g,this.resolvedDuration=g+o,this.totalDuration=this.resolvedDuration*(s+1)-o,this.generator=p}updateTime(t){const i=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=i}tick(t,i=!1){const{generator:s,totalDuration:o,mixKeyframes:l,mirroredGenerator:c,resolvedDuration:f,calculatedDuration:h}=this;if(this.startTime===null)return s.next(0);const{delay:p=0,keyframes:g,repeat:y,repeatType:v,repeatDelay:x,type:S,onUpdate:C,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),i?this.currentTime=t:this.updateTime(t);const D=this.currentTime-p*(this.playbackSpeed>=0?1:-1),L=this.playbackSpeed>=0?D<0:D>o;this.currentTime=Math.max(D,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let R=this.currentTime,w=s;if(y){const B=Math.min(this.currentTime,o)/f;let G=Math.floor(B),Q=B%1;!Q&&B>=1&&(Q=1),Q===1&&G--,G=Math.min(G,y+1),!!(G%2)&&(v==="reverse"?(Q=1-Q,x&&(Q-=x/f)):v==="mirror"&&(w=c)),R=ki(0,1,Q)*f}const M=L?{done:!1,value:g[0]}:w.next(R);l&&(M.value=l(M.value));let{done:N}=M;!L&&h!==null&&(N=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&N);return k&&S!==km&&(M.value=ly(g,this.options,T,this.speed)),C&&C(M.value),k&&this.finish(),M}then(t,i){return this.finished.then(t,i)}get duration(){return ni(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ni(t)}get time(){return ni(this.currentTime)}set time(t){t=sr(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(pn.now());const i=this.playbackSpeed!==t;this.playbackSpeed=t,i&&(this.time=ni(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Ck,startTime:i}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=i??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(pn.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 Vk(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const xs=e=>e*180/Math.PI,Pm=e=>{const t=xs(Math.atan2(e[1],e[0]));return jm(t)},$k={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Pm,rotateZ:Pm,skewX:e=>xs(Math.atan(e[1])),skewY:e=>xs(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},jm=e=>(e=e%360,e<0&&(e+=360),e),Ex=Pm,Rx=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ax=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Hk={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Rx,scaleY:Ax,scale:e=>(Rx(e)+Ax(e))/2,rotateX:e=>jm(xs(Math.atan2(e[6],e[5]))),rotateY:e=>jm(xs(Math.atan2(-e[2],e[0]))),rotateZ:Ex,rotate:Ex,skewX:e=>xs(Math.atan(e[4])),skewY:e=>xs(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Bm(e){return e.includes("scale")?1:0}function Um(e,t){if(!e||e==="none")return Bm(t);const i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,o;if(i)s=Hk,o=i;else{const f=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=$k,o=f}if(!o)return Bm(t);const l=s[t],c=o[1].split(",").map(Fk);return typeof l=="function"?l(c):c[l]}const Ik=(e,t)=>{const{transform:i="none"}=getComputedStyle(e);return Um(i,t)};function Fk(e){return parseFloat(e.trim())}const Ga=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ya=new Set(Ga),Ox=e=>e===Ka||e===ce,qk=new Set(["x","y","z"]),Kk=Ga.filter(e=>!qk.has(e));function Gk(e){const t=[];return Kk.forEach(i=>{const s=e.getValue(i);s!==void 0&&(t.push([i,s.get()]),s.set(i.startsWith("scale")?1:0))}),t}const jr={width:({x:e},{paddingLeft:t="0",paddingRight:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),height:({y:e},{paddingTop:t="0",paddingBottom:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),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})=>Um(t,"x"),y:(e,{transform:t})=>Um(t,"y")};jr.translateX=jr.x;jr.translateY=jr.y;const Es=new Set;let Vm=!1,$m=!1,Hm=!1;function bw(){if($m){const e=Array.from(Es).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),i=new Map;t.forEach(s=>{const o=Gk(s);o.length&&(i.set(s,o),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const o=i.get(s);o&&o.forEach(([l,c])=>{s.getValue(l)?.set(c)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}$m=!1,Vm=!1,Es.forEach(e=>e.complete(Hm)),Es.clear()}function Sw(){Es.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&($m=!0)})}function Yk(){Hm=!0,Sw(),bw(),Hm=!1}class fy{constructor(t,i,s,o,l,c=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=i,this.name=s,this.motionValue=o,this.element=l,this.isAsync=c}scheduleResolve(){this.state="scheduled",this.isAsync?(Es.add(this),Vm||(Vm=!0,mt.read(Sw),mt.resolveKeyframes(bw))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:i,element:s,motionValue:o}=this;if(t[0]===null){const l=o?.get(),c=t[t.length-1];if(l!==void 0)t[0]=l;else if(s&&i){const f=s.readValue(i,c);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=c),o&&l===void 0&&o.set(t[0])}Vk(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Es.delete(this)}cancel(){this.state==="scheduled"&&(Es.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Xk=e=>e.startsWith("--");function Wk(e,t,i){Xk(t)?e.style.setProperty(t,i):e.style[t]=i}const Qk=Jg(()=>window.ScrollTimeline!==void 0),Zk={};function Jk(e,t){const i=Jg(e);return()=>Zk[t]??i()}const xw=Jk(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),nl=([e,t,i,s])=>`cubic-bezier(${e}, ${t}, ${i}, ${s})`,Mx={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nl([0,.65,.55,1]),circOut:nl([.55,0,1,.45]),backIn:nl([.31,.01,.66,-.59]),backOut:nl([.33,1.53,.69,.99])};function Cw(e,t){if(e)return typeof e=="function"?xw()?gw(e,t):"ease-out":sw(e)?nl(e):Array.isArray(e)?e.map(i=>Cw(i,t)||Mx.easeOut):Mx[e]}function eP(e,t,i,{delay:s=0,duration:o=300,repeat:l=0,repeatType:c="loop",ease:f="easeOut",times:h}={},p=void 0){const g={[t]:i};h&&(g.offset=h);const y=Cw(f,o);Array.isArray(y)&&(g.easing=y);const v={delay:s,duration:o,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:l+1,direction:c==="reverse"?"alternate":"normal"};return p&&(v.pseudoElement=p),e.animate(g,v)}function Tw(e){return typeof e=="function"&&"applyToOptions"in e}function tP({type:e,...t}){return Tw(e)&&xw()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class nP extends uy{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:i,name:s,keyframes:o,pseudoElement:l,allowFlatten:c=!1,finalKeyframe:f,onComplete:h}=t;this.isPseudoElement=!!l,this.allowFlatten=c,this.options=t,Zg(typeof t.type!="string");const p=tP(t);this.animation=eP(i,s,o,p,l),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!l){const g=ly(o,this.options,f,this.speed);this.updateMotionValue?this.updateMotionValue(g):Wk(i,s,g),this.animation.cancel()}h?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,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 ni(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ni(t)}get time(){return ni(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=sr(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 this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Qk()?(this.animation.timeline=t,ii):i(this)}}const ww={anticipate:tw,backInOut:ew,circInOut:iw};function iP(e){return e in ww}function rP(e){typeof e.ease=="string"&&iP(e.ease)&&(e.ease=ww[e.ease])}const Up=10;class sP extends nP{constructor(t){rP(t),vw(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:i,onUpdate:s,onComplete:o,element:l,...c}=this.options;if(!i)return;if(t!==void 0){i.set(t);return}const f=new cy({...c,autoplay:!1}),h=Math.max(Up,pn.now()-this.startTime),p=ki(0,Up,h-Up);i.setWithVelocity(f.sample(Math.max(0,h-p)).value,f.sample(h).value,p),f.stop()}}const Dx=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Hr.test(e)||e==="0")&&!e.startsWith("url("));function aP(e){const t=e[0];if(e.length===1)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}function oP(e,t,i,s){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const l=e[e.length-1],c=Dx(o,t),f=Dx(l,t);return!c||!f?!1:aP(e)||(i==="spring"||Tw(i))&&s}function Im(e){e.duration=0,e.type="keyframes"}const lP=new Set(["opacity","clipPath","filter","transform"]),uP=Jg(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function cP(e){const{motionValue:t,name:i,repeatDelay:s,repeatType:o,damping:l,type:c}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:p}=t.owner.getProps();return uP()&&i&&lP.has(i)&&(i!=="transform"||!p)&&!h&&!s&&o!=="mirror"&&l!==0&&c!=="inertia"}const fP=40;class dP extends uy{constructor({autoplay:t=!0,delay:i=0,type:s="keyframes",repeat:o=0,repeatDelay:l=0,repeatType:c="loop",keyframes:f,name:h,motionValue:p,element:g,...y}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=pn.now();const v={autoplay:t,delay:i,type:s,repeat:o,repeatDelay:l,repeatType:c,name:h,motionValue:p,element:g,...y},x=g?.KeyframeResolver||fy;this.keyframeResolver=new x(f,(S,C,T)=>this.onKeyframesResolved(S,C,v,!T),h,p,g),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,i,s,o){this.keyframeResolver=void 0;const{name:l,type:c,velocity:f,delay:h,isHandoff:p,onUpdate:g}=s;this.resolvedAt=pn.now(),oP(t,l,c,f)||((ur.instantAnimations||!h)&&g?.(ly(t,s,i)),t[0]=t[t.length-1],Im(s),s.repeat=0);const v={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>fP?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:i,...s,keyframes:t},x=!p&&cP(v)?new sP({...v,element:v.motionValue.owner.current}):new cy(v);x.finished.then(()=>this.notifyFinished()).catch(ii),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,i){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Yk()),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 hP=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function pP(e){const t=hP.exec(e);if(!t)return[,];const[,i,s,o]=t;return[`--${i??s}`,o]}function Ew(e,t,i=1){const[s,o]=pP(e);if(!s)return;const l=window.getComputedStyle(t).getPropertyValue(s);if(l){const c=l.trim();return K2(c)?parseFloat(c):c}return iy(o)?Ew(o,t,i+1):o}function dy(e,t){return e?.[t]??e?.default??e}const Rw=new Set(["width","height","top","left","right","bottom",...Ga]),mP={test:e=>e==="auto",parse:e=>e},Aw=e=>t=>t.test(e),Ow=[Ka,ce,Ni,Pr,ak,sk,mP],_x=e=>Ow.find(Aw(e));function gP(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Y2(e):!0}const yP=new Set(["brightness","contrast","saturate","opacity"]);function vP(e){const[t,i]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=i.match(ry)||[];if(!s)return e;const o=i.replace(s,"");let l=yP.has(t)?1:0;return s!==i&&(l*=100),t+"("+l+o+")"}const bP=/\b([a-z-]*)\(.*?\)/gu,Fm={...Hr,getAnimatableNone:e=>{const t=e.match(bP);return t?t.map(vP).join(" "):e}},Lx={...Ka,transform:Math.round},SP={rotate:Pr,rotateX:Pr,rotateY:Pr,rotateZ:Pr,scale:yc,scaleX:yc,scaleY:yc,scaleZ:yc,skew:Pr,skewX:Pr,skewY:Pr,distance:ce,translateX:ce,translateY:ce,translateZ:ce,x:ce,y:ce,z:ce,perspective:ce,transformPerspective:ce,opacity:bl,originX:Sx,originY:Sx,originZ:ce},hy={borderWidth:ce,borderTopWidth:ce,borderRightWidth:ce,borderBottomWidth:ce,borderLeftWidth:ce,borderRadius:ce,radius:ce,borderTopLeftRadius:ce,borderTopRightRadius:ce,borderBottomRightRadius:ce,borderBottomLeftRadius:ce,width:ce,maxWidth:ce,height:ce,maxHeight:ce,top:ce,right:ce,bottom:ce,left:ce,inset:ce,insetBlock:ce,insetBlockStart:ce,insetBlockEnd:ce,insetInline:ce,insetInlineStart:ce,insetInlineEnd:ce,padding:ce,paddingTop:ce,paddingRight:ce,paddingBottom:ce,paddingLeft:ce,paddingBlock:ce,paddingBlockStart:ce,paddingBlockEnd:ce,paddingInline:ce,paddingInlineStart:ce,paddingInlineEnd:ce,margin:ce,marginTop:ce,marginRight:ce,marginBottom:ce,marginLeft:ce,marginBlock:ce,marginBlockStart:ce,marginBlockEnd:ce,marginInline:ce,marginInlineStart:ce,marginInlineEnd:ce,backgroundPositionX:ce,backgroundPositionY:ce,...SP,zIndex:Lx,fillOpacity:bl,strokeOpacity:bl,numOctaves:Lx},xP={...hy,color:Vt,backgroundColor:Vt,outlineColor:Vt,fill:Vt,stroke:Vt,borderColor:Vt,borderTopColor:Vt,borderRightColor:Vt,borderBottomColor:Vt,borderLeftColor:Vt,filter:Fm,WebkitFilter:Fm},Mw=e=>xP[e];function Dw(e,t){let i=Mw(e);return i!==Fm&&(i=Hr),i.getAnimatableNone?i.getAnimatableNone(t):void 0}const CP=new Set(["auto","none","0"]);function TP(e,t,i){let s=0,o;for(;s<e.length&&!o;){const l=e[s];typeof l=="string"&&!CP.has(l)&&Sl(l).values.length&&(o=e[s]),s++}if(o&&i)for(const l of t)e[l]=Dw(i,o)}class wP extends fy{constructor(t,i,s,o,l){super(t,i,s,o,l,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:i,name:s}=this;if(!i||!i.current)return;super.readKeyframes();for(let g=0;g<t.length;g++){let y=t[g];if(typeof y=="string"&&(y=y.trim(),iy(y))){const v=Ew(y,i.current);v!==void 0&&(t[g]=v),g===t.length-1&&(this.finalKeyframe=y)}}if(this.resolveNoneKeyframes(),!Rw.has(s)||t.length!==2)return;const[o,l]=t,c=_x(o),f=_x(l),h=bx(o),p=bx(l);if(h!==p&&jr[s]){this.needsMeasurement=!0;return}if(c!==f)if(Ox(c)&&Ox(f))for(let g=0;g<t.length;g++){const y=t[g];typeof y=="string"&&(t[g]=parseFloat(y))}else jr[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:i}=this,s=[];for(let o=0;o<t.length;o++)(t[o]===null||gP(t[o]))&&s.push(o);s.length&&TP(t,s,i)}measureInitialState(){const{element:t,unresolvedKeyframes:i,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=jr[s](t.measureViewportBox(),window.getComputedStyle(t.current)),i[0]=this.measuredOrigin;const o=i[i.length-1];o!==void 0&&t.getValue(s,o).jump(o,!1)}measureEndState(){const{element:t,name:i,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const o=t.getValue(i);o&&o.jump(this.measuredOrigin,!1);const l=s.length-1,c=s[l];s[l]=jr[i](t.measureViewportBox(),window.getComputedStyle(t.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),this.removedTransforms?.length&&this.removedTransforms.forEach(([f,h])=>{t.getValue(f).set(h)}),this.resolveNoneKeyframes()}}function EP(e,t,i){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const o=i?.[e]??s.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const _w=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Lw(e){return G2(e)&&"offsetHeight"in e}const Nx=30,RP=e=>!isNaN(parseFloat(e));class AP{constructor(t,i={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const o=pn.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=i.owner}setCurrent(t){this.current=t,this.updatedAt=pn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=RP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,i){this.events[t]||(this.events[t]=new ey);const s=this.events[t].add(i);return t==="change"?()=>{s(),mt.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,i){this.passiveEffect=t,this.stopPassiveEffect=i}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,i,s){this.set(i),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,i=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&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=pn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Nx)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,Nx);return X2(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(t){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=t(i),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 Pa(e,t){return new AP(e,t)}const{schedule:py}=aw(queueMicrotask,!1),hi={x:!1,y:!1};function Nw(){return hi.x||hi.y}function OP(e){return e==="x"||e==="y"?hi[e]?null:(hi[e]=!0,()=>{hi[e]=!1}):hi.x||hi.y?null:(hi.x=hi.y=!0,()=>{hi.x=hi.y=!1})}function zw(e,t){const i=EP(e),s=new AbortController,o={passive:!0,...t,signal:s.signal};return[i,o,()=>s.abort()]}function zx(e){return!(e.pointerType==="touch"||Nw())}function MP(e,t,i={}){const[s,o,l]=zw(e,i),c=f=>{if(!zx(f))return;const{target:h}=f,p=t(h,f);if(typeof p!="function"||!h)return;const g=y=>{zx(y)&&(p(y),h.removeEventListener("pointerleave",g))};h.addEventListener("pointerleave",g,o)};return s.forEach(f=>{f.addEventListener("pointerenter",c,o)}),l}const kw=(e,t)=>t?e===t?!0:kw(e,t.parentElement):!1,my=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,DP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Pw(e){return DP.has(e.tagName)||e.isContentEditable===!0}const Nc=new WeakSet;function kx(e){return t=>{t.key==="Enter"&&e(t)}}function Vp(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const _P=(e,t)=>{const i=e.currentTarget;if(!i)return;const s=kx(()=>{if(Nc.has(i))return;Vp(i,"down");const o=kx(()=>{Vp(i,"up")}),l=()=>Vp(i,"cancel");i.addEventListener("keyup",o,t),i.addEventListener("blur",l,t)});i.addEventListener("keydown",s,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),t)};function Px(e){return my(e)&&!Nw()}function LP(e,t,i={}){const[s,o,l]=zw(e,i),c=f=>{const h=f.currentTarget;if(!Px(f))return;Nc.add(h);const p=t(h,f),g=(x,S)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",v),Nc.has(h)&&Nc.delete(h),Px(x)&&typeof p=="function"&&p(x,{success:S})},y=x=>{g(x,h===window||h===document||i.useGlobalTarget||kw(h,x.target))},v=x=>{g(x,!1)};window.addEventListener("pointerup",y,o),window.addEventListener("pointercancel",v,o)};return s.forEach(f=>{(i.useGlobalTarget?window:f).addEventListener("pointerdown",c,o),Lw(f)&&(f.addEventListener("focus",p=>_P(p,o)),!Pw(f)&&!f.hasAttribute("tabindex")&&(f.tabIndex=0))}),l}function jw(e){return G2(e)&&"ownerSVGElement"in e}function NP(e){return jw(e)&&e.tagName==="svg"}const dn=e=>!!(e&&e.getVelocity),zP=[...Ow,Vt,Hr],kP=e=>zP.find(Aw(e)),gy=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function jx(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function PP(...e){return t=>{let i=!1;const s=e.map(o=>{const l=jx(o,t);return!i&&typeof l=="function"&&(i=!0),l});if(i)return()=>{for(let o=0;o<s.length;o++){const l=s[o];typeof l=="function"?l():jx(e[o],null)}}}}function jP(...e){return E.useCallback(PP(...e),e)}class BP extends E.Component{getSnapshotBeforeUpdate(t){const i=this.props.childRef.current;if(i&&t.isPresent&&!this.props.isPresent){const s=i.offsetParent,o=Lw(s)&&s.offsetWidth||0,l=this.props.sizeRef.current;l.height=i.offsetHeight||0,l.width=i.offsetWidth||0,l.top=i.offsetTop,l.left=i.offsetLeft,l.right=o-l.width-l.left}return null}componentDidUpdate(){}render(){return this.props.children}}function UP({children:e,isPresent:t,anchorX:i,root:s}){const o=E.useId(),l=E.useRef(null),c=E.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:f}=E.useContext(gy),h=e.props?.ref??e?.ref,p=jP(l,h);return E.useInsertionEffect(()=>{const{width:g,height:y,top:v,left:x,right:S}=c.current;if(t||!l.current||!g||!y)return;const C=i==="left"?`left: ${x}`:`right: ${S}`;l.current.dataset.motionPopId=o;const T=document.createElement("style");f&&(T.nonce=f);const D=s??document.head;return D.appendChild(T),T.sheet&&T.sheet.insertRule(`
151
+ [data-motion-pop-id="${o}"] {
152
+ position: absolute !important;
153
+ width: ${g}px !important;
154
+ height: ${y}px !important;
155
+ ${C}px !important;
156
+ top: ${v}px !important;
157
+ }
158
+ `),()=>{D.contains(T)&&D.removeChild(T)}},[t]),_.jsx(BP,{isPresent:t,childRef:l,sizeRef:c,children:E.cloneElement(e,{ref:p})})}const VP=({children:e,initial:t,isPresent:i,onExitComplete:s,custom:o,presenceAffectsLayout:l,mode:c,anchorX:f,root:h})=>{const p=Yg($P),g=E.useId();let y=!0,v=E.useMemo(()=>(y=!1,{id:g,initial:t,isPresent:i,custom:o,onExitComplete:x=>{p.set(x,!0);for(const S of p.values())if(!S)return;s&&s()},register:x=>(p.set(x,!1),()=>p.delete(x))}),[i,p,s]);return l&&y&&(v={...v}),E.useMemo(()=>{p.forEach((x,S)=>p.set(S,!1))},[i]),E.useEffect(()=>{!i&&!p.size&&s&&s()},[i]),c==="popLayout"&&(e=_.jsx(UP,{isPresent:i,anchorX:f,root:h,children:e})),_.jsx(Vf.Provider,{value:v,children:e})};function $P(){return new Map}function Bw(e=!0){const t=E.useContext(Vf);if(t===null)return[!0,null];const{isPresent:i,onExitComplete:s,register:o}=t,l=E.useId();E.useEffect(()=>{if(e)return o(l)},[e]);const c=E.useCallback(()=>e&&s&&s(l),[l,s,e]);return!i&&s?[!1,c]:[!0]}const vc=e=>e.key||"";function Bx(e){const t=[];return E.Children.forEach(e,i=>{E.isValidElement(i)&&t.push(i)}),t}const HP=({children:e,custom:t,initial:i=!0,onExitComplete:s,presenceAffectsLayout:o=!0,mode:l="sync",propagate:c=!1,anchorX:f="left",root:h})=>{const[p,g]=Bw(c),y=E.useMemo(()=>Bx(e),[e]),v=c&&!p?[]:y.map(vc),x=E.useRef(!0),S=E.useRef(y),C=Yg(()=>new Map),T=E.useRef(new Set),[D,L]=E.useState(y),[R,w]=E.useState(y);q2(()=>{x.current=!1,S.current=y;for(let k=0;k<R.length;k++){const B=vc(R[k]);v.includes(B)?(C.delete(B),T.current.delete(B)):C.get(B)!==!0&&C.set(B,!1)}},[R,v.length,v.join("-")]);const M=[];if(y!==D){let k=[...y];for(let B=0;B<R.length;B++){const G=R[B],Q=vc(G);v.includes(Q)||(k.splice(B,0,G),M.push(G))}return l==="wait"&&M.length&&(k=M),w(Bx(k)),L(y),null}const{forceRender:N}=E.useContext(Gg);return _.jsx(_.Fragment,{children:R.map(k=>{const B=vc(k),G=c&&!p?!1:y===R||v.includes(B),Q=()=>{if(T.current.has(B))return;if(T.current.add(B),C.has(B))C.set(B,!0);else return;let J=!0;C.forEach(O=>{O||(J=!1)}),J&&(N?.(),w(S.current),c&&g?.(),s&&s())};return _.jsx(VP,{isPresent:G,initial:!x.current||i?void 0:!1,custom:t,presenceAffectsLayout:o,mode:l,root:h,onExitComplete:G?void 0:Q,anchorX:f,children:k},B)})})},Uw=E.createContext({strict:!1}),Ux={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"]},ja={};for(const e in Ux)ja[e]={isEnabled:t=>Ux[e].some(i=>!!t[i])};function IP(e){for(const t in e)ja[t]={...ja[t],...e[t]}}const FP=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 Zc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||FP.has(e)}let Vw=e=>!Zc(e);function qP(e){typeof e=="function"&&(Vw=t=>t.startsWith("on")?!Zc(t):e(t))}try{qP(require("@emotion/is-prop-valid").default)}catch{}function KP(e,t,i){const s={};for(const o in e)o==="values"&&typeof e.values=="object"||(Vw(o)||i===!0&&Zc(o)||!t&&!Zc(o)||e.draggable&&o.startsWith("onDrag"))&&(s[o]=e[o]);return s}const $f=E.createContext({});function Hf(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function xl(e){return typeof e=="string"||Array.isArray(e)}const yy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],vy=["initial",...yy];function If(e){return Hf(e.animate)||vy.some(t=>xl(e[t]))}function $w(e){return!!(If(e)||e.variants)}function GP(e,t){if(If(e)){const{initial:i,animate:s}=e;return{initial:i===!1||xl(i)?i:void 0,animate:xl(s)?s:void 0}}return e.inherit!==!1?t:{}}function YP(e){const{initial:t,animate:i}=GP(e,E.useContext($f));return E.useMemo(()=>({initial:t,animate:i}),[Vx(t),Vx(i)])}function Vx(e){return Array.isArray(e)?e.join(" "):e}function $x(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Wo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ce.test(e))e=parseFloat(e);else return e;const i=$x(e,t.target.x),s=$x(e,t.target.y);return`${i}% ${s}%`}},XP={correct:(e,{treeScale:t,projectionDelta:i})=>{const s=e,o=Hr.parse(e);if(o.length>5)return s;const l=Hr.createTransformer(e),c=typeof o[0]!="number"?1:0,f=i.x.scale*t.x,h=i.y.scale*t.y;o[0+c]/=f,o[1+c]/=h;const p=xt(f,h,.5);return typeof o[2+c]=="number"&&(o[2+c]/=p),typeof o[3+c]=="number"&&(o[3+c]/=p),l(o)}},qm={borderRadius:{...Wo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Wo,borderTopRightRadius:Wo,borderBottomLeftRadius:Wo,borderBottomRightRadius:Wo,boxShadow:XP};function Hw(e,{layout:t,layoutId:i}){return Ya.has(e)||e.startsWith("origin")||(t||i!==void 0)&&(!!qm[e]||e==="opacity")}const WP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},QP=Ga.length;function ZP(e,t,i){let s="",o=!0;for(let l=0;l<QP;l++){const c=Ga[l],f=e[c];if(f===void 0)continue;let h=!0;if(typeof f=="number"?h=f===(c.startsWith("scale")?1:0):h=parseFloat(f)===0,!h||i){const p=_w(f,hy[c]);if(!h){o=!1;const g=WP[c]||c;s+=`${g}(${p}) `}i&&(t[c]=p)}}return s=s.trim(),i?s=i(t,o?"":s):o&&(s="none"),s}function by(e,t,i){const{style:s,vars:o,transformOrigin:l}=e;let c=!1,f=!1;for(const h in t){const p=t[h];if(Ya.has(h)){c=!0;continue}else if(lw(h)){o[h]=p;continue}else{const g=_w(p,hy[h]);h.startsWith("origin")?(f=!0,l[h]=g):s[h]=g}}if(t.transform||(c||i?s.transform=ZP(t,e.transform,i):s.transform&&(s.transform="none")),f){const{originX:h="50%",originY:p="50%",originZ:g=0}=l;s.transformOrigin=`${h} ${p} ${g}`}}const Sy=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Iw(e,t,i){for(const s in t)!dn(t[s])&&!Hw(s,i)&&(e[s]=t[s])}function JP({transformTemplate:e},t){return E.useMemo(()=>{const i=Sy();return by(i,t,e),Object.assign({},i.vars,i.style)},[t])}function ej(e,t){const i=e.style||{},s={};return Iw(s,i,e),Object.assign(s,JP(e,t)),s}function tj(e,t){const i={},s=ej(e,t);return e.drag&&e.dragListener!==!1&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=s,i}const nj={offset:"stroke-dashoffset",array:"stroke-dasharray"},ij={offset:"strokeDashoffset",array:"strokeDasharray"};function rj(e,t,i=1,s=0,o=!0){e.pathLength=1;const l=o?nj:ij;e[l.offset]=ce.transform(-s);const c=ce.transform(t),f=ce.transform(i);e[l.array]=`${c} ${f}`}const sj=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Fw(e,{attrX:t,attrY:i,attrScale:s,pathLength:o,pathSpacing:l=1,pathOffset:c=0,...f},h,p,g){if(by(e,f,p),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:v}=e;y.transform&&(v.transform=y.transform,delete y.transform),(v.transform||y.transformOrigin)&&(v.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),v.transform&&(v.transformBox=g?.transformBox??"fill-box",delete y.transformBox);for(const x of sj)y[x]!==void 0&&(v[x]=y[x],delete y[x]);t!==void 0&&(y.x=t),i!==void 0&&(y.y=i),s!==void 0&&(y.scale=s),o!==void 0&&rj(y,o,l,c,!1)}const qw=()=>({...Sy(),attrs:{}}),Kw=e=>typeof e=="string"&&e.toLowerCase()==="svg";function aj(e,t,i,s){const o=E.useMemo(()=>{const l=qw();return Fw(l,t,Kw(s),e.transformTemplate,e.style),{...l.attrs,style:{...l.style}}},[t]);if(e.style){const l={};Iw(l,e.style,e),o.style={...l,...o.style}}return o}const oj=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function xy(e){return typeof e!="string"||e.includes("-")?!1:!!(oj.indexOf(e)>-1||/[A-Z]/u.test(e))}function lj(e,t,i,{latestValues:s},o,l=!1,c){const h=(c??xy(e)?aj:tj)(t,s,o,e),p=KP(t,typeof e=="string",l),g=e!==E.Fragment?{...p,...h,ref:i}:{},{children:y}=t,v=E.useMemo(()=>dn(y)?y.get():y,[y]);return E.createElement(e,{...g,children:v})}function Hx(e){const t=[{},{}];return e?.values.forEach((i,s)=>{t[0][s]=i.get(),t[1][s]=i.getVelocity()}),t}function Cy(e,t,i,s){if(typeof t=="function"){const[o,l]=Hx(s);t=t(i!==void 0?i:e.custom,o,l)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,l]=Hx(s);t=t(i!==void 0?i:e.custom,o,l)}return t}function zc(e){return dn(e)?e.get():e}function uj({scrapeMotionValuesFromProps:e,createRenderState:t},i,s,o){return{latestValues:cj(i,s,o,e),renderState:t()}}function cj(e,t,i,s){const o={},l=s(e,{});for(const v in l)o[v]=zc(l[v]);let{initial:c,animate:f}=e;const h=If(e),p=$w(e);t&&p&&!h&&e.inherit!==!1&&(c===void 0&&(c=t.initial),f===void 0&&(f=t.animate));let g=i?i.initial===!1:!1;g=g||c===!1;const y=g?f:c;if(y&&typeof y!="boolean"&&!Hf(y)){const v=Array.isArray(y)?y:[y];for(let x=0;x<v.length;x++){const S=Cy(e,v[x]);if(S){const{transitionEnd:C,transition:T,...D}=S;for(const L in D){let R=D[L];if(Array.isArray(R)){const w=g?R.length-1:0;R=R[w]}R!==null&&(o[L]=R)}for(const L in C)o[L]=C[L]}}}return o}const Gw=e=>(t,i)=>{const s=E.useContext($f),o=E.useContext(Vf),l=()=>uj(e,t,s,o);return i?l():Yg(l)};function Ty(e,t,i){const{style:s}=e,o={};for(const l in s)(dn(s[l])||t.style&&dn(t.style[l])||Hw(l,e)||i?.getValue(l)?.liveStyle!==void 0)&&(o[l]=s[l]);return o}const fj=Gw({scrapeMotionValuesFromProps:Ty,createRenderState:Sy});function Yw(e,t,i){const s=Ty(e,t,i);for(const o in e)if(dn(e[o])||dn(t[o])){const l=Ga.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;s[l]=e[o]}return s}const dj=Gw({scrapeMotionValuesFromProps:Yw,createRenderState:qw}),hj=Symbol.for("motionComponentSymbol");function pj(e,t,i){const s=E.useRef(i);E.useInsertionEffect(()=>{s.current=i});const o=E.useRef(null);return E.useCallback(l=>{l&&e.onMount?.(l),t&&(l?t.mount(l):t.unmount());const c=s.current;if(typeof c=="function")if(l){const f=c(l);typeof f=="function"&&(o.current=f)}else o.current?(o.current(),o.current=null):c(l);else c&&(c.current=l)},[t])}const wy=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),mj="framerAppearId",Xw="data-"+wy(mj),Ww=E.createContext({});function il(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function gj(e,t,i,s,o,l){const{visualElement:c}=E.useContext($f),f=E.useContext(Uw),h=E.useContext(Vf),p=E.useContext(gy).reducedMotion,g=E.useRef(null);s=s||f.renderer,!g.current&&s&&(g.current=s(e,{visualState:t,parent:c,props:i,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:p,isSVG:l}));const y=g.current,v=E.useContext(Ww);y&&!y.projection&&o&&(y.type==="html"||y.type==="svg")&&yj(g.current,i,o,v);const x=E.useRef(!1);E.useInsertionEffect(()=>{y&&x.current&&y.update(i,h)});const S=i[Xw],C=E.useRef(!!S&&!window.MotionHandoffIsComplete?.(S)&&window.MotionHasOptimisedAnimation?.(S));return q2(()=>{y&&(x.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),C.current&&y.animationState&&y.animationState.animateChanges())}),E.useEffect(()=>{y&&(!C.current&&y.animationState&&y.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(S)}),C.current=!1),y.enteringChildren=void 0)}),y}function yj(e,t,i,s){const{layoutId:o,layout:l,drag:c,dragConstraints:f,layoutScroll:h,layoutRoot:p,layoutCrossfade:g}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:Qw(e.parent)),e.projection.setOptions({layoutId:o,layout:l,alwaysMeasureLayout:!!c||f&&il(f),visualElement:e,animationType:typeof l=="string"?l:"both",initialPromotionConfig:s,crossfade:g,layoutScroll:h,layoutRoot:p})}function Qw(e){if(e)return e.options.allowProjection!==!1?e.projection:Qw(e.parent)}function $p(e,{forwardMotionProps:t=!1,type:i}={},s,o){s&&IP(s);const l=i?i==="svg":xy(e),c=l?dj:fj;function f(p,g){let y;const v={...E.useContext(gy),...p,layoutId:vj(p)},{isStatic:x}=v,S=YP(p),C=c(p,x);if(!x&&Xg){bj();const T=Sj(v);y=T.MeasureLayout,S.visualElement=gj(e,C,v,o,T.ProjectionNode,l)}return _.jsxs($f.Provider,{value:S,children:[y&&S.visualElement?_.jsx(y,{visualElement:S.visualElement,...v}):null,lj(e,p,pj(C,S.visualElement,g),C,x,t,l)]})}f.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const h=E.forwardRef(f);return h[hj]=e,h}function vj({layoutId:e}){const t=E.useContext(Gg).id;return t&&e!==void 0?t+"-"+e:e}function bj(e,t){E.useContext(Uw).strict}function Sj(e){const{drag:t,layout:i}=ja;if(!t&&!i)return{};const s={...t,...i};return{MeasureLayout:t?.isEnabled(e)||i?.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function xj(e,t){if(typeof Proxy>"u")return $p;const i=new Map,s=(l,c)=>$p(l,c,e,t),o=(l,c)=>s(l,c);return new Proxy(o,{get:(l,c)=>c==="create"?s:(i.has(c)||i.set(c,$p(c,void 0,e,t)),i.get(c))})}function Zw({top:e,left:t,right:i,bottom:s}){return{x:{min:t,max:i},y:{min:e,max:s}}}function Cj({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Tj(e,t){if(!t)return e;const i=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}function Hp(e){return e===void 0||e===1}function Km({scale:e,scaleX:t,scaleY:i}){return!Hp(e)||!Hp(t)||!Hp(i)}function gs(e){return Km(e)||Jw(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Jw(e){return Ix(e.x)||Ix(e.y)}function Ix(e){return e&&e!=="0%"}function Jc(e,t,i){const s=e-i,o=t*s;return i+o}function Fx(e,t,i,s,o){return o!==void 0&&(e=Jc(e,o,s)),Jc(e,i,s)+t}function Gm(e,t=0,i=1,s,o){e.min=Fx(e.min,t,i,s,o),e.max=Fx(e.max,t,i,s,o)}function eE(e,{x:t,y:i}){Gm(e.x,t.translate,t.scale,t.originPoint),Gm(e.y,i.translate,i.scale,i.originPoint)}const qx=.999999999999,Kx=1.0000000000001;function wj(e,t,i,s=!1){const o=i.length;if(!o)return;t.x=t.y=1;let l,c;for(let f=0;f<o;f++){l=i[f],c=l.projectionDelta;const{visualElement:h}=l.options;h&&h.props.style&&h.props.style.display==="contents"||(s&&l.options.layoutScroll&&l.scroll&&l!==l.root&&Aa(e,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,eE(e,c)),s&&gs(l.latestValues)&&Aa(e,l.latestValues))}t.x<Kx&&t.x>qx&&(t.x=1),t.y<Kx&&t.y>qx&&(t.y=1)}function Ra(e,t){e.min=e.min+t,e.max=e.max+t}function Gx(e,t,i,s,o=.5){const l=xt(e.min,e.max,o);Gm(e,t,i,l,s)}function Aa(e,t){Gx(e.x,t.x,t.scaleX,t.scale,t.originX),Gx(e.y,t.y,t.scaleY,t.scale,t.originY)}function tE(e,t){return Zw(Tj(e.getBoundingClientRect(),t))}function Ej(e,t,i){const s=tE(e,i),{scroll:o}=t;return o&&(Ra(s.x,o.offset.x),Ra(s.y,o.offset.y)),s}const Yx=()=>({translate:0,scale:1,origin:0,originPoint:0}),Oa=()=>({x:Yx(),y:Yx()}),Xx=()=>({min:0,max:0}),Kt=()=>({x:Xx(),y:Xx()}),Ym={current:null},nE={current:!1};function Rj(){if(nE.current=!0,!!Xg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ym.current=e.matches;e.addEventListener("change",t),t()}else Ym.current=!1}const Aj=new WeakMap;function Oj(e,t,i){for(const s in t){const o=t[s],l=i[s];if(dn(o))e.addValue(s,o);else if(dn(l))e.addValue(s,Pa(o,{owner:e}));else if(l!==o)if(e.hasValue(s)){const c=e.getValue(s);c.liveStyle===!0?c.jump(o):c.hasAnimated||c.set(o)}else{const c=e.getStaticValue(s);e.addValue(s,Pa(c!==void 0?c:o,{owner:e}))}}for(const s in i)t[s]===void 0&&e.removeValue(s);return t}const Wx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Mj{scrapeMotionValuesFromProps(t,i,s){return{}}constructor({parent:t,props:i,presenceContext:s,reducedMotionConfig:o,blockInitialAnimation:l,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=fy,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=pn.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,mt.render(this.render,!1,!0))};const{latestValues:h,renderState:p}=c;this.latestValues=h,this.baseTarget={...h},this.initialValues=i.initial?{...h}:{},this.renderState=p,this.parent=t,this.props=i,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=f,this.blockInitialAnimation=!!l,this.isControllingVariants=If(i),this.isVariantNode=$w(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:g,...y}=this.scrapeMotionValuesFromProps(i,{},this);for(const v in y){const x=y[v];h[v]!==void 0&&dn(x)&&x.set(h[v])}}mount(t){this.current=t,Aj.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((i,s)=>this.bindToMotionValue(s,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(nE.current||Rj(),this.shouldReduceMotion=Ym.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),$r(this.notifyUpdate),$r(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 i=this.features[t];i&&(i.unmount(),i.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,i){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=Ya.has(t);s&&this.onBindTransform&&this.onBindTransform();const o=i.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&mt.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,i)),this.valueSubscriptions.set(t,()=>{o(),l&&l(),i.owner&&i.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 ja){const i=ja[t];if(!i)continue;const{isEnabled:s,Feature:o}=i;if(!this.features[t]&&o&&s(this.props)&&(this.features[t]=new o(this)),this.features[t]){const l=this.features[t];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Kt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,i){this.latestValues[t]=i}update(t,i){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let s=0;s<Wx.length;s++){const o=Wx[s];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const l="on"+o,c=t[l];c&&(this.propEventSubscriptions[o]=this.on(o,c))}this.prevMotionValues=Oj(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 i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(t),()=>i.variantChildren.delete(t)}addValue(t,i){const s=this.values.get(t);i!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,i),this.values.set(t,i),this.latestValues[t]=i.get())}removeValue(t){this.values.delete(t);const i=this.valueSubscriptions.get(t);i&&(i(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,i){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&i!==void 0&&(s=Pa(i===null?void 0:i,{owner:this}),this.addValue(t,s)),s}readValue(t,i){let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(K2(s)||Y2(s))?s=parseFloat(s):!kP(s)&&Hr.test(i)&&(s=Dw(t,i)),this.setBaseTarget(t,dn(s)?s.get():s)),dn(s)?s.get():s}setBaseTarget(t,i){this.baseTarget[t]=i}getBaseTarget(t){const{initial:i}=this.props;let s;if(typeof i=="string"||typeof i=="object"){const l=Cy(this.props,i,this.presenceContext?.custom);l&&(s=l[t])}if(i&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!dn(o)?o:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,i){return this.events[t]||(this.events[t]=new ey),this.events[t].add(i)}notify(t,...i){this.events[t]&&this.events[t].notify(...i)}scheduleRenderMicrotask(){py.render(this.render)}}class iE extends Mj{constructor(){super(...arguments),this.KeyframeResolver=wP}sortInstanceNodePosition(t,i){return t.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(t,i){return t.style?t.style[i]:void 0}removeValueFromRenderState(t,{vars:i,style:s}){delete i[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;dn(t)&&(this.childSubscription=t.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}function rE(e,{style:t,vars:i},s,o){const l=e.style;let c;for(c in t)l[c]=t[c];o?.applyProjectionStyles(l,s);for(c in i)l.setProperty(c,i[c])}function Dj(e){return window.getComputedStyle(e)}class _j extends iE{constructor(){super(...arguments),this.type="html",this.renderInstance=rE}readValueFromInstance(t,i){if(Ya.has(i))return this.projection?.isProjecting?Bm(i):Ik(t,i);{const s=Dj(t),o=(lw(i)?s.getPropertyValue(i):s[i])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:i}){return tE(t,i)}build(t,i,s){by(t,i,s.transformTemplate)}scrapeMotionValuesFromProps(t,i,s){return Ty(t,i,s)}}const sE=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 Lj(e,t,i,s){rE(e,t,void 0,s);for(const o in t.attrs)e.setAttribute(sE.has(o)?o:wy(o),t.attrs[o])}class Nj extends iE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Kt}getBaseTargetFromProps(t,i){return t[i]}readValueFromInstance(t,i){if(Ya.has(i)){const s=Mw(i);return s&&s.default||0}return i=sE.has(i)?i:wy(i),t.getAttribute(i)}scrapeMotionValuesFromProps(t,i,s){return Yw(t,i,s)}build(t,i,s){Fw(t,i,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,i,s,o){Lj(t,i,s,o)}mount(t){this.isSVGTag=Kw(t.tagName),super.mount(t)}}const zj=(e,t)=>t.isSVG??xy(e)?new Nj(t):new _j(t,{allowProjection:e!==E.Fragment});function La(e,t,i){const s=e.getProps();return Cy(s,t,i!==void 0?i:s.custom,e)}const Xm=e=>Array.isArray(e);function kj(e,t,i){e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,Pa(i))}function Pj(e){return Xm(e)?e[e.length-1]||0:e}function jj(e,t){const i=La(e,t);let{transitionEnd:s={},transition:o={},...l}=i||{};l={...l,...s};for(const c in l){const f=Pj(l[c]);kj(e,c,f)}}function Bj(e){return!!(dn(e)&&e.add)}function Wm(e,t){const i=e.getValue("willChange");if(Bj(i))return i.add(t);if(!i&&ur.WillChange){const s=new ur.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function aE(e){return e.props[Xw]}const Uj=e=>e!==null;function Vj(e,{repeat:t,repeatType:i="loop"},s){const o=e.filter(Uj),l=t&&i!=="loop"&&t%2===1?0:o.length-1;return o[l]}const $j={type:"spring",stiffness:500,damping:25,restSpeed:10},Hj=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ij={type:"keyframes",duration:.8},Fj={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},qj=(e,{keyframes:t})=>t.length>2?Ij:Ya.has(e)?e.startsWith("scale")?Hj(t[1]):$j:Fj;function Kj({when:e,delay:t,delayChildren:i,staggerChildren:s,staggerDirection:o,repeat:l,repeatType:c,repeatDelay:f,from:h,elapsed:p,...g}){return!!Object.keys(g).length}const Ey=(e,t,i,s={},o,l)=>c=>{const f=dy(s,e)||{},h=f.delay||s.delay||0;let{elapsed:p=0}=s;p=p-sr(h);const g={keyframes:Array.isArray(i)?i:[null,i],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:l?void 0:o};Kj(f)||Object.assign(g,qj(e,g)),g.duration&&(g.duration=sr(g.duration)),g.repeatDelay&&(g.repeatDelay=sr(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let y=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(Im(g),g.delay===0&&(y=!0)),(ur.instantAnimations||ur.skipAnimations)&&(y=!0,Im(g),g.delay=0),g.allowFlatten=!f.type&&!f.ease,y&&!l&&t.get()!==void 0){const v=Vj(g.keyframes,f);if(v!==void 0){mt.update(()=>{g.onUpdate(v),g.onComplete()});return}}return f.isSync?new cy(g):new dP(g)};function Gj({protectedKeys:e,needsAnimating:t},i){const s=e.hasOwnProperty(i)&&t[i]!==!0;return t[i]=!1,s}function oE(e,t,{delay:i=0,transitionOverride:s,type:o}={}){let{transition:l=e.getDefaultTransition(),transitionEnd:c,...f}=t;s&&(l=s);const h=[],p=o&&e.animationState&&e.animationState.getState()[o];for(const g in f){const y=e.getValue(g,e.latestValues[g]??null),v=f[g];if(v===void 0||p&&Gj(p,g))continue;const x={delay:i,...dy(l||{},g)},S=y.get();if(S!==void 0&&!y.isAnimating&&!Array.isArray(v)&&v===S&&!x.velocity)continue;let C=!1;if(window.MotionHandoffAnimation){const D=aE(e);if(D){const L=window.MotionHandoffAnimation(D,g,mt);L!==null&&(x.startTime=L,C=!0)}}Wm(e,g),y.start(Ey(g,y,v,e.shouldReduceMotion&&Rw.has(g)?{type:!1}:x,e,C));const T=y.animation;T&&h.push(T)}return c&&Promise.all(h).then(()=>{mt.update(()=>{c&&jj(e,c)})}),h}function lE(e,t,i,s=0,o=1){const l=Array.from(e).sort((p,g)=>p.sortNodePosition(g)).indexOf(t),c=e.size,f=(c-1)*s;return typeof i=="function"?i(l,c):o===1?l*s:f-l*s}function Qm(e,t,i={}){const s=La(e,t,i.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(o=i.transitionOverride);const l=s?()=>Promise.all(oE(e,s,i)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:p=0,staggerChildren:g,staggerDirection:y}=o;return Yj(e,t,h,p,g,y,i)}:()=>Promise.resolve(),{when:f}=o;if(f){const[h,p]=f==="beforeChildren"?[l,c]:[c,l];return h().then(()=>p())}else return Promise.all([l(),c(i.delay)])}function Yj(e,t,i=0,s=0,o=0,l=1,c){const f=[];for(const h of e.variantChildren)h.notify("AnimationStart",t),f.push(Qm(h,t,{...c,delay:i+(typeof s=="function"?0:s)+lE(e.variantChildren,h,s,o,l)}).then(()=>h.notify("AnimationComplete",t)));return Promise.all(f)}function Xj(e,t,i={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const o=t.map(l=>Qm(e,l,i));s=Promise.all(o)}else if(typeof t=="string")s=Qm(e,t,i);else{const o=typeof t=="function"?La(e,t,i.custom):t;s=Promise.all(oE(e,o,i))}return s.then(()=>{e.notify("AnimationComplete",t)})}function uE(e,t){if(!Array.isArray(t))return!1;const i=t.length;if(i!==e.length)return!1;for(let s=0;s<i;s++)if(t[s]!==e[s])return!1;return!0}const Wj=vy.length;function cE(e){if(!e)return;if(!e.isControllingVariants){const i=e.parent?cE(e.parent)||{}:{};return e.props.initial!==void 0&&(i.initial=e.props.initial),i}const t={};for(let i=0;i<Wj;i++){const s=vy[i],o=e.props[s];(xl(o)||o===!1)&&(t[s]=o)}return t}const Qj=[...yy].reverse(),Zj=yy.length;function Jj(e){return t=>Promise.all(t.map(({animation:i,options:s})=>Xj(e,i,s)))}function e6(e){let t=Jj(e),i=Qx(),s=!0;const o=h=>(p,g)=>{const y=La(e,g,h==="exit"?e.presenceContext?.custom:void 0);if(y){const{transition:v,transitionEnd:x,...S}=y;p={...p,...S,...x}}return p};function l(h){t=h(e)}function c(h){const{props:p}=e,g=cE(e.parent)||{},y=[],v=new Set;let x={},S=1/0;for(let T=0;T<Zj;T++){const D=Qj[T],L=i[D],R=p[D]!==void 0?p[D]:g[D],w=xl(R),M=D===h?L.isActive:null;M===!1&&(S=T);let N=R===g[D]&&R!==p[D]&&w;if(N&&s&&e.manuallyAnimateOnMount&&(N=!1),L.protectedKeys={...x},!L.isActive&&M===null||!R&&!L.prevProp||Hf(R)||typeof R=="boolean")continue;const k=t6(L.prevProp,R);let B=k||D===h&&L.isActive&&!N&&w||T>S&&w,G=!1;const Q=Array.isArray(R)?R:[R];let J=Q.reduce(o(D),{});M===!1&&(J={});const{prevResolvedValues:O={}}=L,Z={...O,...J},F=I=>{B=!0,v.has(I)&&(G=!0,v.delete(I)),L.needsAnimating[I]=!0;const ee=e.getValue(I);ee&&(ee.liveStyle=!1)};for(const I in Z){const ee=J[I],se=O[I];if(x.hasOwnProperty(I))continue;let le=!1;Xm(ee)&&Xm(se)?le=!uE(ee,se):le=ee!==se,le?ee!=null?F(I):v.add(I):ee!==void 0&&v.has(I)?F(I):L.protectedKeys[I]=!0}L.prevProp=R,L.prevResolvedValues=J,L.isActive&&(x={...x,...J}),s&&e.blockInitialAnimation&&(B=!1);const Y=N&&k;B&&(!Y||G)&&y.push(...Q.map(I=>{const ee={type:D};if(typeof I=="string"&&s&&!Y&&e.manuallyAnimateOnMount&&e.parent){const{parent:se}=e,le=La(se,I);if(se.enteringChildren&&le){const{delayChildren:z}=le.transition||{};ee.delay=lE(se.enteringChildren,e,z)}}return{animation:I,options:ee}}))}if(v.size){const T={};if(typeof p.initial!="boolean"){const D=La(e,Array.isArray(p.initial)?p.initial[0]:p.initial);D&&D.transition&&(T.transition=D.transition)}v.forEach(D=>{const L=e.getBaseTarget(D),R=e.getValue(D);R&&(R.liveStyle=!0),T[D]=L??null}),y.push({animation:T})}let C=!!y.length;return s&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(C=!1),s=!1,C?t(y):Promise.resolve()}function f(h,p){if(i[h].isActive===p)return Promise.resolve();e.variantChildren?.forEach(y=>y.animationState?.setActive(h,p)),i[h].isActive=p;const g=c(h);for(const y in i)i[y].protectedKeys={};return g}return{animateChanges:c,setActive:f,setAnimateFunction:l,getState:()=>i,reset:()=>{i=Qx()}}}function t6(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!uE(t,e):!1}function ds(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Qx(){return{animate:ds(!0),whileInView:ds(),whileHover:ds(),whileTap:ds(),whileDrag:ds(),whileFocus:ds(),exit:ds()}}class Ir{constructor(t){this.isMounted=!1,this.node=t}update(){}}class n6 extends Ir{constructor(t){super(t),t.animationState||(t.animationState=e6(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Hf(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:i}=this.node.prevProps||{};t!==i&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let i6=0;class r6 extends Ir{constructor(){super(...arguments),this.id=i6++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:i}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const o=this.node.animationState.setActive("exit",!t);i&&!t&&o.then(()=>{i(this.id)})}mount(){const{register:t,onExitComplete:i}=this.node.presenceContext||{};i&&i(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const s6={animation:{Feature:n6},exit:{Feature:r6}};function Cl(e,t,i,s={passive:!0}){return e.addEventListener(t,i,s),()=>e.removeEventListener(t,i)}function Fl(e){return{point:{x:e.pageX,y:e.pageY}}}const a6=e=>t=>my(t)&&e(t,Fl(t));function cl(e,t,i,s){return Cl(e,t,a6(i),s)}const fE=1e-4,o6=1-fE,l6=1+fE,dE=.01,u6=0-dE,c6=0+dE;function mn(e){return e.max-e.min}function f6(e,t,i){return Math.abs(e-t)<=i}function Zx(e,t,i,s=.5){e.origin=s,e.originPoint=xt(t.min,t.max,e.origin),e.scale=mn(i)/mn(t),e.translate=xt(i.min,i.max,e.origin)-e.originPoint,(e.scale>=o6&&e.scale<=l6||isNaN(e.scale))&&(e.scale=1),(e.translate>=u6&&e.translate<=c6||isNaN(e.translate))&&(e.translate=0)}function fl(e,t,i,s){Zx(e.x,t.x,i.x,s?s.originX:void 0),Zx(e.y,t.y,i.y,s?s.originY:void 0)}function Jx(e,t,i){e.min=i.min+t.min,e.max=e.min+mn(t)}function d6(e,t,i){Jx(e.x,t.x,i.x),Jx(e.y,t.y,i.y)}function eC(e,t,i){e.min=t.min-i.min,e.max=e.min+mn(t)}function ef(e,t,i){eC(e.x,t.x,i.x),eC(e.y,t.y,i.y)}function Zn(e){return[e("x"),e("y")]}const hE=({current:e})=>e?e.ownerDocument.defaultView:null,tC=(e,t)=>Math.abs(e-t);function h6(e,t){const i=tC(e.x,t.x),s=tC(e.y,t.y);return Math.sqrt(i**2+s**2)}const nC=new Set(["auto","scroll"]);class pE{constructor(t,i,{transformPagePoint:s,contextWindow:o=window,dragSnapToOrigin:l=!1,distanceThreshold:c=3,element:f}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=x=>{this.handleScroll(x.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Fp(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,C=h6(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!S&&!C)return;const{point:T}=x,{timestamp:D}=sn;this.history.push({...T,timestamp:D});const{onStart:L,onMove:R}=this.handlers;S||(L&&L(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,x)},this.handlePointerMove=(x,S)=>{this.lastMoveEvent=x,this.lastMoveEventInfo=Ip(S,this.transformPagePoint),mt.update(this.updatePoint,!0)},this.handlePointerUp=(x,S)=>{this.end();const{onEnd:C,onSessionEnd:T,resumeAnimation:D}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&D&&D(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const L=Fp(x.type==="pointercancel"?this.lastMoveEventInfo:Ip(S,this.transformPagePoint),this.history);this.startEvent&&C&&C(x,L),T&&T(x,L)},!my(t))return;this.dragSnapToOrigin=l,this.handlers=i,this.transformPagePoint=s,this.distanceThreshold=c,this.contextWindow=o||window;const h=Fl(t),p=Ip(h,this.transformPagePoint),{point:g}=p,{timestamp:y}=sn;this.history=[{...g,timestamp:y}];const{onSessionStart:v}=i;v&&v(t,Fp(p,this.history)),this.removeListeners=$l(cl(this.contextWindow,"pointermove",this.handlePointerMove),cl(this.contextWindow,"pointerup",this.handlePointerUp),cl(this.contextWindow,"pointercancel",this.handlePointerUp)),f&&this.startScrollTracking(f)}startScrollTracking(t){let i=t.parentElement;for(;i;){const s=getComputedStyle(i);(nC.has(s.overflowX)||nC.has(s.overflowY))&&this.scrollPositions.set(i,{x:i.scrollLeft,y:i.scrollTop}),i=i.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const i=this.scrollPositions.get(t);if(!i)return;const s=t===window,o=s?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},l={x:o.x-i.x,y:o.y-i.y};l.x===0&&l.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=l.x,this.lastMoveEventInfo.point.y+=l.y):this.history.length>0&&(this.history[0].x-=l.x,this.history[0].y-=l.y),this.scrollPositions.set(t,o),mt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),$r(this.updatePoint)}}function Ip(e,t){return t?{point:t(e.point)}:e}function iC(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Fp({point:e},t){return{point:e,delta:iC(e,mE(t)),offset:iC(e,p6(t)),velocity:m6(t,.1)}}function p6(e){return e[0]}function mE(e){return e[e.length-1]}function m6(e,t){if(e.length<2)return{x:0,y:0};let i=e.length-1,s=null;const o=mE(e);for(;i>=0&&(s=e[i],!(o.timestamp-s.timestamp>sr(t)));)i--;if(!s)return{x:0,y:0};const l=ni(o.timestamp-s.timestamp);if(l===0)return{x:0,y:0};const c={x:(o.x-s.x)/l,y:(o.y-s.y)/l};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function g6(e,{min:t,max:i},s){return t!==void 0&&e<t?e=s?xt(t,e,s.min):Math.max(e,t):i!==void 0&&e>i&&(e=s?xt(i,e,s.max):Math.min(e,i)),e}function rC(e,t,i){return{min:t!==void 0?e.min+t:void 0,max:i!==void 0?e.max+i-(e.max-e.min):void 0}}function y6(e,{top:t,left:i,bottom:s,right:o}){return{x:rC(e.x,i,o),y:rC(e.y,t,s)}}function sC(e,t){let i=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,s]=[s,i]),{min:i,max:s}}function v6(e,t){return{x:sC(e.x,t.x),y:sC(e.y,t.y)}}function b6(e,t){let i=.5;const s=mn(e),o=mn(t);return o>s?i=vl(t.min,t.max-s,e.min):s>o&&(i=vl(e.min,e.max-o,t.min)),ki(0,1,i)}function S6(e,t){const i={};return t.min!==void 0&&(i.min=t.min-e.min),t.max!==void 0&&(i.max=t.max-e.min),i}const Zm=.35;function x6(e=Zm){return e===!1?e=0:e===!0&&(e=Zm),{x:aC(e,"left","right"),y:aC(e,"top","bottom")}}function aC(e,t,i){return{min:oC(e,t),max:oC(e,i)}}function oC(e,t){return typeof e=="number"?e:e[t]||0}const C6=new WeakMap;class T6{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=Kt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:i=!1,distanceThreshold:s}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const l=y=>{i?(this.stopAnimation(),this.snapToCursor(Fl(y).point)):this.pauseAnimation()},c=(y,v)=>{this.stopAnimation();const{drag:x,dragPropagation:S,onDragStart:C}=this.getProps();if(x&&!S&&(this.openDragLock&&this.openDragLock(),this.openDragLock=OP(x),!this.openDragLock))return;this.latestPointerEvent=y,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),Zn(D=>{let L=this.getAxisMotionValue(D).get()||0;if(Ni.test(L)){const{projection:R}=this.visualElement;if(R&&R.layout){const w=R.layout.layoutBox[D];w&&(L=mn(w)*(parseFloat(L)/100))}}this.originPoint[D]=L}),C&&mt.postRender(()=>C(y,v)),Wm(this.visualElement,"transform");const{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},f=(y,v)=>{this.latestPointerEvent=y,this.latestPanInfo=v;const{dragPropagation:x,dragDirectionLock:S,onDirectionLock:C,onDrag:T}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:D}=v;if(S&&this.currentDirection===null){this.currentDirection=w6(D),this.currentDirection!==null&&C&&C(this.currentDirection);return}this.updateAxis("x",v.point,D),this.updateAxis("y",v.point,D),this.visualElement.render(),T&&T(y,v)},h=(y,v)=>{this.latestPointerEvent=y,this.latestPanInfo=v,this.stop(y,v),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>Zn(y=>this.getAnimationState(y)==="paused"&&this.getAxisMotionValue(y).animation?.play()),{dragSnapToOrigin:g}=this.getProps();this.panSession=new pE(t,{onSessionStart:l,onStart:c,onMove:f,onSessionEnd:h,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:s,contextWindow:hE(this.visualElement),element:this.visualElement.current})}stop(t,i){const s=t||this.latestPointerEvent,o=i||this.latestPanInfo,l=this.isDragging;if(this.cancel(),!l||!o||!s)return;const{velocity:c}=o;this.startAnimation(c);const{onDragEnd:f}=this.getProps();f&&mt.postRender(()=>f(s,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:i}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}updateAxis(t,i,s){const{drag:o}=this.getProps();if(!s||!bc(t,o,this.currentDirection))return;const l=this.getAxisMotionValue(t);let c=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(c=g6(c,this.constraints[t],this.elastic[t])),l.set(c)}resolveConstraints(){const{dragConstraints:t,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&il(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&s?this.constraints=y6(s.layoutBox,t):this.constraints=!1,this.elastic=x6(i),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&Zn(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=S6(s.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!il(t))return!1;const s=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const l=Ej(s,o.root,this.visualElement.getTransformPagePoint());let c=v6(o.layout.layoutBox,l);if(i){const f=i(Cj(c));this.hasMutatedConstraints=!!f,f&&(c=Zw(f))}return c}startAnimation(t){const{drag:i,dragMomentum:s,dragElastic:o,dragTransition:l,dragSnapToOrigin:c,onDragTransitionEnd:f}=this.getProps(),h=this.constraints||{},p=Zn(g=>{if(!bc(g,i,this.currentDirection))return;let y=h&&h[g]||{};c&&(y={min:0,max:0});const v=o?200:1e6,x=o?40:1e7,S={type:"inertia",velocity:s?t[g]:0,bounceStiffness:v,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...l,...y};return this.startAxisValueAnimation(g,S)});return Promise.all(p).then(f)}startAxisValueAnimation(t,i){const s=this.getAxisMotionValue(t);return Wm(this.visualElement,t),s.start(Ey(t,s,0,i,this.visualElement,!1))}stopAnimation(){Zn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Zn(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const i=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps(),o=s[i];return o||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){Zn(i=>{const{drag:s}=this.getProps();if(!bc(i,s,this.currentDirection))return;const{projection:o}=this.visualElement,l=this.getAxisMotionValue(i);if(o&&o.layout){const{min:c,max:f}=o.layout.layoutBox[i],h=l.get()||0;l.set(t[i]-xt(c,f,.5)+h)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:i}=this.getProps(),{projection:s}=this.visualElement;if(!il(i)||!s||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Zn(c=>{const f=this.getAxisMotionValue(c);if(f&&this.constraints!==!1){const h=f.get();o[c]=b6({min:h,max:h},this.constraints[c])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),Zn(c=>{if(!bc(c,t,null))return;const f=this.getAxisMotionValue(c),{min:h,max:p}=this.constraints[c];f.set(xt(h,p,o[c]))})}addListeners(){if(!this.visualElement.current)return;C6.set(this.visualElement,this);const t=this.visualElement.current,i=cl(t,"pointerdown",h=>{const{drag:p,dragListener:g=!0}=this.getProps();p&&g&&!Pw(h.target)&&this.start(h)}),s=()=>{const{dragConstraints:h}=this.getProps();il(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,l=o.addEventListener("measure",s);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),mt.read(s);const c=Cl(window,"resize",()=>this.scalePositionWithinConstraints()),f=o.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:p})=>{this.isDragging&&p&&(Zn(g=>{const y=this.getAxisMotionValue(g);y&&(this.originPoint[g]+=h[g].translate,y.set(y.get()+h[g].translate))}),this.visualElement.render())}));return()=>{c(),i(),l(),f&&f()}}getProps(){const t=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:s=!1,dragPropagation:o=!1,dragConstraints:l=!1,dragElastic:c=Zm,dragMomentum:f=!0}=t;return{...t,drag:i,dragDirectionLock:s,dragPropagation:o,dragConstraints:l,dragElastic:c,dragMomentum:f}}}function bc(e,t,i){return(t===!0||t===e)&&(i===null||i===e)}function w6(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}class E6 extends Ir{constructor(t){super(t),this.removeGroupControls=ii,this.removeListeners=ii,this.controls=new T6(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ii}update(){const{dragControls:t}=this.node.getProps(),{dragControls:i}=this.node.prevProps||{};t!==i&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}const lC=e=>(t,i)=>{e&&mt.postRender(()=>e(t,i))};class R6 extends Ir{constructor(){super(...arguments),this.removePointerDownListener=ii}onPointerDown(t){this.session=new pE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:hE(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:i,onPan:s,onPanEnd:o}=this.node.getProps();return{onSessionStart:lC(t),onStart:lC(i),onMove:s,onEnd:(l,c)=>{delete this.session,o&&mt.postRender(()=>o(l,c))}}}mount(){this.removePointerDownListener=cl(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 kc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let qp=!1;class A6 extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:i,switchLayoutGroup:s,layoutId:o}=this.props,{projection:l}=t;l&&(i.group&&i.group.add(l),s&&s.register&&o&&s.register(l),qp&&l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),kc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:i,visualElement:s,drag:o,isPresent:l}=this.props,{projection:c}=s;return c&&(c.isPresent=l,qp=!0,o||t.layoutDependency!==i||i===void 0||t.isPresent!==l?c.willUpdate():this.safeToRemove(),t.isPresent!==l&&(l?c.promote():c.relegate()||mt.postRender(()=>{const f=c.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),py.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:i,switchLayoutGroup:s}=this.props,{projection:o}=t;qp=!0,o&&(o.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(o),s&&s.deregister&&s.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function gE(e){const[t,i]=Bw(),s=E.useContext(Gg);return _.jsx(A6,{...e,layoutGroup:s,switchLayoutGroup:E.useContext(Ww),isPresent:t,safeToRemove:i})}function O6(e,t,i){const s=dn(e)?e:Pa(e);return s.start(Ey("",s,t,i)),s.animation}const M6=(e,t)=>e.depth-t.depth;class D6{constructor(){this.children=[],this.isDirty=!1}add(t){Wg(this.children,t),this.isDirty=!0}remove(t){Qg(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(M6),this.isDirty=!1,this.children.forEach(t)}}function _6(e,t){const i=pn.now(),s=({timestamp:o})=>{const l=o-i;l>=t&&($r(s),e(l-t))};return mt.setup(s,!0),()=>$r(s)}const yE=["TopLeft","TopRight","BottomLeft","BottomRight"],L6=yE.length,uC=e=>typeof e=="string"?parseFloat(e):e,cC=e=>typeof e=="number"||ce.test(e);function N6(e,t,i,s,o,l){o?(e.opacity=xt(0,i.opacity??1,z6(s)),e.opacityExit=xt(t.opacity??1,0,k6(s))):l&&(e.opacity=xt(t.opacity??1,i.opacity??1,s));for(let c=0;c<L6;c++){const f=`border${yE[c]}Radius`;let h=fC(t,f),p=fC(i,f);if(h===void 0&&p===void 0)continue;h||(h=0),p||(p=0),h===0||p===0||cC(h)===cC(p)?(e[f]=Math.max(xt(uC(h),uC(p),s),0),(Ni.test(p)||Ni.test(h))&&(e[f]+="%")):e[f]=p}(t.rotate||i.rotate)&&(e.rotate=xt(t.rotate||0,i.rotate||0,s))}function fC(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const z6=vE(0,.5,nw),k6=vE(.5,.95,ii);function vE(e,t,i){return s=>s<e?0:s>t?1:i(vl(e,t,s))}function dC(e,t){e.min=t.min,e.max=t.max}function di(e,t){dC(e.x,t.x),dC(e.y,t.y)}function hC(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function pC(e,t,i,s,o){return e-=t,e=Jc(e,1/i,s),o!==void 0&&(e=Jc(e,1/o,s)),e}function P6(e,t=0,i=1,s=.5,o,l=e,c=e){if(Ni.test(t)&&(t=parseFloat(t),t=xt(c.min,c.max,t/100)-c.min),typeof t!="number")return;let f=xt(l.min,l.max,s);e===l&&(f-=t),e.min=pC(e.min,t,i,f,o),e.max=pC(e.max,t,i,f,o)}function mC(e,t,[i,s,o],l,c){P6(e,t[i],t[s],t[o],t.scale,l,c)}const j6=["x","scaleX","originX"],B6=["y","scaleY","originY"];function gC(e,t,i,s){mC(e.x,t,j6,i?i.x:void 0,s?s.x:void 0),mC(e.y,t,B6,i?i.y:void 0,s?s.y:void 0)}function yC(e){return e.translate===0&&e.scale===1}function bE(e){return yC(e.x)&&yC(e.y)}function vC(e,t){return e.min===t.min&&e.max===t.max}function U6(e,t){return vC(e.x,t.x)&&vC(e.y,t.y)}function bC(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function SE(e,t){return bC(e.x,t.x)&&bC(e.y,t.y)}function SC(e){return mn(e.x)/mn(e.y)}function xC(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class V6{constructor(){this.members=[]}add(t){Wg(this.members,t),t.scheduleRender()}remove(t){if(Qg(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(t){const i=this.members.findIndex(o=>t===o);if(i===0)return!1;let s;for(let o=i;o>=0;o--){const l=this.members[o];if(l.isPresent!==!1){s=l;break}}return s?(this.promote(s),!0):!1}promote(t,i){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender(),t.resumeFrom=s,i&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:i,resumingFrom:s}=t;i.onExitComplete&&i.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function $6(e,t,i){let s="";const o=e.x.translate/t.x,l=e.y.translate/t.y,c=i?.z||0;if((o||l||c)&&(s=`translate3d(${o}px, ${l}px, ${c}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),i){const{transformPerspective:p,rotate:g,rotateX:y,rotateY:v,skewX:x,skewY:S}=i;p&&(s=`perspective(${p}px) ${s}`),g&&(s+=`rotate(${g}deg) `),y&&(s+=`rotateX(${y}deg) `),v&&(s+=`rotateY(${v}deg) `),x&&(s+=`skewX(${x}deg) `),S&&(s+=`skewY(${S}deg) `)}const f=e.x.scale*t.x,h=e.y.scale*t.y;return(f!==1||h!==1)&&(s+=`scale(${f}, ${h})`),s||"none"}const Kp=["","X","Y","Z"],H6=1e3;let I6=0;function Gp(e,t,i,s){const{latestValues:o}=t;o[e]&&(i[e]=o[e],t.setStaticValue(e,0),s&&(s[e]=0))}function xE(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const i=aE(t);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:o,layoutId:l}=e.options;window.MotionCancelOptimisedAnimation(i,"transform",mt,!(o||l))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&xE(s)}function CE({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(c={},f=t?.()){this.id=I6++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(K6),this.nodes.forEach(W6),this.nodes.forEach(Q6),this.nodes.forEach(G6)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=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 h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new D6)}addEventListener(c,f){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new ey),this.eventHandlers.get(c).add(f)}notifyListeners(c,...f){const h=this.eventHandlers.get(c);h&&h.notify(...f)}hasListeners(c){return this.eventHandlers.has(c)}mount(c){if(this.instance)return;this.isSVG=jw(c)&&!NP(c),this.instance=c;const{layoutId:f,layout:h,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&&(h||f)&&(this.isLayoutDirty=!0),e){let g,y=0;const v=()=>this.root.updateBlockedByResize=!1;mt.read(()=>{y=window.innerWidth}),e(c,()=>{const x=window.innerWidth;x!==y&&(y=x,this.root.updateBlockedByResize=!0,g&&g(),g=_6(v,250),kc.hasAnimatedSinceResize&&(kc.hasAnimatedSinceResize=!1,this.nodes.forEach(wC)))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&p&&(f||h)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:y,hasRelativeLayoutChanged:v,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||p.getDefaultTransition()||nB,{onLayoutAnimationStart:C,onLayoutAnimationComplete:T}=p.getProps(),D=!this.targetLayout||!SE(this.targetLayout,x),L=!y&&v;if(this.options.layoutRoot||this.resumeFrom||L||y&&(D||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const R={...dy(S,"layout"),onPlay:C,onComplete:T};(p.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R),this.setAnimationOrigin(g,L)}else y||wC(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(),$r(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(Z6),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&&xE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const y=this.path[g];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:f,layout:h}=this.options;if(f===void 0&&!h)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(CC);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(TC);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(X6),this.nodes.forEach(F6),this.nodes.forEach(q6)):this.nodes.forEach(TC),this.clearAllSnapshots();const f=pn.now();sn.delta=ki(0,1e3/60,f-sn.timestamp),sn.timestamp=f,sn.isProcessing=!0,zp.update.process(sn),zp.preRender.process(sn),zp.render.process(sn),sn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,py.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Y6),this.sharedNodes.forEach(J6)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,mt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){mt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!mn(this.snapshot.measuredBox.x)&&!mn(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 h=0;h<this.path.length;h++)this.path[h].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Kt(),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 h=s(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:h,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!o)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!bE(this.projectionDelta),h=this.getTransformTemplate(),p=h?h(this.latestValues,""):void 0,g=p!==this.prevTransformTemplateValue;c&&this.instance&&(f||gs(this.latestValues)||g)&&(o(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const f=this.measurePageBox();let h=this.removeElementScroll(f);return c&&(h=this.removeTransform(h)),iB(h),{animationId:this.root.animationId,measuredBox:f,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:c}=this.options;if(!c)return Kt();const f=c.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rB))){const{scroll:p}=this.root;p&&(Ra(f.x,p.offset.x),Ra(f.y,p.offset.y))}return f}removeElementScroll(c){const f=Kt();if(di(f,c),this.scroll?.wasRoot)return f;for(let h=0;h<this.path.length;h++){const p=this.path[h],{scroll:g,options:y}=p;p!==this.root&&g&&y.layoutScroll&&(g.wasRoot&&di(f,c),Ra(f.x,g.offset.x),Ra(f.y,g.offset.y))}return f}applyTransform(c,f=!1){const h=Kt();di(h,c);for(let p=0;p<this.path.length;p++){const g=this.path[p];!f&&g.options.layoutScroll&&g.scroll&&g!==g.root&&Aa(h,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),gs(g.latestValues)&&Aa(h,g.latestValues)}return gs(this.latestValues)&&Aa(h,this.latestValues),h}removeTransform(c){const f=Kt();di(f,c);for(let h=0;h<this.path.length;h++){const p=this.path[h];if(!p.instance||!gs(p.latestValues))continue;Km(p.latestValues)&&p.updateSnapshot();const g=Kt(),y=p.measurePageBox();di(g,y),gC(f,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,g)}return gs(this.latestValues)&&gC(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!==sn.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 h=!!this.resumingFrom||this!==f;if(!(c||h&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:y}=this.options;if(!this.layout||!(g||y))return;this.resolvedRelativeTargetAt=sn.timestamp;const v=this.getClosestProjectingParent();v&&this.linkedParentVersion!==v.layoutVersion&&!v.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(v&&v.layout?this.createRelativeTarget(v,this.layout.layoutBox,v.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Kt(),this.targetWithTransforms=Kt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),d6(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):di(this.target,this.layout.layoutBox),eE(this.target,this.targetDelta)):di(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?this.createRelativeTarget(v,this.target,v.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Km(this.parent.latestValues)||Jw(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(c,f,h){this.relativeParent=c,this.linkedParentVersion=c.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Kt(),this.relativeTargetOrigin=Kt(),ef(this.relativeTargetOrigin,f,h),di(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const c=this.getLead(),f=!!this.resumingFrom||this!==c;let h=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(h=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===sn.timestamp&&(h=!1),h)return;const{layout:p,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||g))return;di(this.layoutCorrected,this.layout.layoutBox);const y=this.treeScale.x,v=this.treeScale.y;wj(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=Kt());const{target:x}=c;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(hC(this.prevProjectionDelta.x,this.projectionDelta.x),hC(this.prevProjectionDelta.y,this.projectionDelta.y)),fl(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==y||this.treeScale.y!==v||!xC(this.projectionDelta.x,this.prevProjectionDelta.x)||!xC(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=Oa(),this.projectionDelta=Oa(),this.projectionDeltaWithTransform=Oa()}setAnimationOrigin(c,f=!1){const h=this.snapshot,p=h?h.latestValues:{},g={...this.latestValues},y=Oa();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const v=Kt(),x=h?h.source:void 0,S=this.layout?this.layout.source:void 0,C=x!==S,T=this.getStack(),D=!T||T.members.length<=1,L=!!(C&&!D&&this.options.crossfade===!0&&!this.path.some(tB));this.animationProgress=0;let R;this.mixTargetDelta=w=>{const M=w/1e3;EC(y.x,c.x,M),EC(y.y,c.y,M),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ef(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),eB(this.relativeTarget,this.relativeTargetOrigin,v,M),R&&U6(this.relativeTarget,R)&&(this.isProjectionDirty=!1),R||(R=Kt()),di(R,this.relativeTarget)),C&&(this.animationValues=g,N6(g,p,this.latestValues,M,L,D)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&($r(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=mt.update(()=>{kc.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Pa(0)),this.currentAnimation=O6(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(H6),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:f,target:h,layout:p,latestValues:g}=c;if(!(!f||!h||!p)){if(this!==c&&this.layout&&p&&TE(this.options.animationType,this.layout.layoutBox,p.layoutBox)){h=this.target||Kt();const y=mn(this.layout.layoutBox.x);h.x.min=c.target.x.min,h.x.max=h.x.min+y;const v=mn(this.layout.layoutBox.y);h.y.min=c.target.y.min,h.y.max=h.y.min+v}di(f,h),Aa(f,g),fl(this.projectionDeltaWithTransform,this.layoutCorrected,f,g)}}registerSharedNode(c,f){this.sharedNodes.has(c)||this.sharedNodes.set(c,new V6),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:h}={}){const p=this.getStack();p&&p.promote(this,h),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:h}=c;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(f=!0),!f)return;const p={};h.z&&Gp("z",c,p,this.animationValues);for(let g=0;g<Kp.length;g++)Gp(`rotate${Kp[g]}`,c,p,this.animationValues),Gp(`skew${Kp[g]}`,c,p,this.animationValues);c.render();for(const g in p)c.setStaticValue(g,p[g]),this.animationValues&&(this.animationValues[g]=p[g]);c.scheduleRender()}applyProjectionStyles(c,f){if(!this.instance||this.isSVG)return;if(!this.isVisible){c.visibility="hidden";return}const h=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,c.visibility="",c.opacity="",c.pointerEvents=zc(f?.pointerEvents)||"",c.transform=h?h(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=zc(f?.pointerEvents)||""),this.hasProjected&&!gs(this.latestValues)&&(c.transform=h?h({},""):"none",this.hasProjected=!1);return}c.visibility="";const g=p.animationValues||p.latestValues;this.applyTransformsToTarget();let y=$6(this.projectionDeltaWithTransform,this.treeScale,g);h&&(y=h(g,y)),c.transform=y;const{x:v,y:x}=this.projectionDelta;c.transformOrigin=`${v.origin*100}% ${x.origin*100}% 0`,p.animationValues?c.opacity=p===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:c.opacity=p===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const S in qm){if(g[S]===void 0)continue;const{correct:C,applyTo:T,isCSSVariable:D}=qm[S],L=y==="none"?g[S]:C(g[S],p);if(T){const R=T.length;for(let w=0;w<R;w++)c[T[w]]=L}else D?this.options.visualElement.renderState.vars[S]=L:c[S]=L}this.options.layoutId&&(c.pointerEvents=p===this?zc(f?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>c.currentAnimation?.stop()),this.root.nodes.forEach(CC),this.root.sharedNodes.clear()}}}function F6(e){e.updateLayout()}function q6(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=e.layout,{animationType:o}=e.options,l=t.source!==e.layout.source;o==="size"?Zn(g=>{const y=l?t.measuredBox[g]:t.layoutBox[g],v=mn(y);y.min=i[g].min,y.max=y.min+v}):TE(o,t.layoutBox,i)&&Zn(g=>{const y=l?t.measuredBox[g]:t.layoutBox[g],v=mn(i[g]);y.max=y.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+v)});const c=Oa();fl(c,i,t.layoutBox);const f=Oa();l?fl(f,e.applyTransform(s,!0),t.measuredBox):fl(f,i,t.layoutBox);const h=!bE(c);let p=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:y,layout:v}=g;if(y&&v){const x=Kt();ef(x,t.layoutBox,y.layoutBox);const S=Kt();ef(S,i,v.layoutBox),SE(x,S)||(p=!0),g.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=x,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:f,layoutDelta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:p})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function K6(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 G6(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Y6(e){e.clearSnapshot()}function CC(e){e.clearMeasurements()}function TC(e){e.isLayoutDirty=!1}function X6(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function wC(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function W6(e){e.resolveTargetDelta()}function Q6(e){e.calcProjection()}function Z6(e){e.resetSkewAndRotation()}function J6(e){e.removeLeadSnapshot()}function EC(e,t,i){e.translate=xt(t.translate,0,i),e.scale=xt(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function RC(e,t,i,s){e.min=xt(t.min,i.min,s),e.max=xt(t.max,i.max,s)}function eB(e,t,i,s){RC(e.x,t.x,i.x,s),RC(e.y,t.y,i.y,s)}function tB(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const nB={duration:.45,ease:[.4,0,.1,1]},AC=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),OC=AC("applewebkit/")&&!AC("chrome/")?Math.round:ii;function MC(e){e.min=OC(e.min),e.max=OC(e.max)}function iB(e){MC(e.x),MC(e.y)}function TE(e,t,i){return e==="position"||e==="preserve-aspect"&&!f6(SC(t),SC(i),.2)}function rB(e){return e!==e.root&&e.scroll?.wasRoot}const sB=CE({attachResizeListener:(e,t)=>Cl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Yp={current:void 0},wE=CE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Yp.current){const e=new sB({});e.mount(window),e.setOptions({layoutScroll:!0}),Yp.current=e}return Yp.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),aB={pan:{Feature:R6},drag:{Feature:E6,ProjectionNode:wE,MeasureLayout:gE}};function DC(e,t,i){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",i==="Start");const o="onHover"+i,l=s[o];l&&mt.postRender(()=>l(t,Fl(t)))}class oB extends Ir{mount(){const{current:t}=this.node;t&&(this.unmount=MP(t,(i,s)=>(DC(this.node,s,"Start"),o=>DC(this.node,o,"End"))))}unmount(){}}class lB extends Ir{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=$l(Cl(this.node.current,"focus",()=>this.onFocus()),Cl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function _C(e,t,i){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",i==="Start");const o="onTap"+(i==="End"?"":i),l=s[o];l&&mt.postRender(()=>l(t,Fl(t)))}class uB extends Ir{mount(){const{current:t}=this.node;t&&(this.unmount=LP(t,(i,s)=>(_C(this.node,s,"Start"),(o,{success:l})=>_C(this.node,o,l?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Jm=new WeakMap,Xp=new WeakMap,cB=e=>{const t=Jm.get(e.target);t&&t(e)},fB=e=>{e.forEach(cB)};function dB({root:e,...t}){const i=e||document;Xp.has(i)||Xp.set(i,{});const s=Xp.get(i),o=JSON.stringify(t);return s[o]||(s[o]=new IntersectionObserver(fB,{root:e,...t})),s[o]}function hB(e,t,i){const s=dB(t);return Jm.set(e,i),s.observe(e),()=>{Jm.delete(e),s.unobserve(e)}}const pB={some:0,all:1};class mB extends Ir{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:i,margin:s,amount:o="some",once:l}=t,c={root:i?i.current:void 0,rootMargin:s,threshold:typeof o=="number"?o:pB[o]},f=h=>{const{isIntersecting:p}=h;if(this.isInView===p||(this.isInView=p,l&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:g,onViewportLeave:y}=this.node.getProps(),v=p?g:y;v&&v(h)};return hB(this.node.current,c,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:i}=this.node;["amount","margin","root"].some(gB(t,i))&&this.startObserver()}unmount(){}}function gB({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}const yB={inView:{Feature:mB},tap:{Feature:uB},focus:{Feature:lB},hover:{Feature:oB}},vB={layout:{ProjectionNode:wE,MeasureLayout:gE}},bB={...s6,...yB,...aB,...vB},va=xj(bB,zj),SB=on(_.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),LC=on(_.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3"})),xB=on(_.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),CB=on(_.jsx("path",{d:"M12 8V4l8 8-8 8v-4H4V8z"})),TB=on(_.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"})),NC=on(_.jsx("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"})),wB=on(_.jsx("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"})),EB=on(_.jsx("path",{d:"M8 5v14l11-7z"})),RB=on(_.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"})),AB=on(_.jsx("path",{d:"m12.87 15.07-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2zm-2.62 7 1.62-4.33L19.12 17z"})),OB=on(_.jsx("path",{d:"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"})),MB={en:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="16"><rect width="24" height="16" fill="#fff"/><g stroke-width="0"><rect y="0" width="24" height="2" fill="#b22234"/><rect y="3" width="24" height="2" fill="#b22234"/><rect y="6" width="24" height="2" fill="#b22234"/><rect y="9" width="24" height="2" fill="#b22234"/><rect y="12" width="24" height="2" fill="#b22234"/><rect width="10" height="8" fill="#3c3b6e"/></g></svg>',de:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="16"><rect width="24" height="16" fill="#ffce00"/><rect y="0" width="24" height="5.33" fill="#000"/><rect y="5.33" width="24" height="5.33" fill="#dd0000"/></svg>',es:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="16"><rect width="24" height="16" fill="#c60b1e"/><rect y="4" width="24" height="8" fill="#ffc400"/></svg>'},DB=e=>`url("data:image/svg+xml;utf8,${encodeURIComponent(MB[e])}")`,_B=({locale:e,isUrlControlled:t,userOverride:i,switchLabel:s,sourceLabel:o,localeLabels:l,onSelect:c,onReset:f,resetLabel:h,index:p=1})=>{const[g,y]=ti.useState(null),v=!!g,{palette:{text:{secondary:x}}}=$a(),S=p===0?{}:{position:"absolute",right:12+p*50,top:12};return _.jsxs(_.Fragment,{children:[_.jsx(yL,{"data-testid":"language-switch",size:"small",color:"primary","aria-label":s,onClick:C=>y(C.currentTarget),disabled:t,sx:{boxShadow:"none",color:x,backgroundColor:"rgba(0, 0, 0, 0.04)","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.16)"},...S},children:_.jsx(AB,{fontSize:"small"})}),_.jsxs(f2,{anchorEl:g,open:v,onClose:()=>y(null),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},sx:{".MuiMenu-paper":{width:240},"li.MuiMenuItem-root":{textWrap:"auto"}},children:[Object.keys(l).map(C=>_.jsxs(KS,{"data-testid":`language-${C}`,selected:e===C,onClick:()=>{c(C),y(null)},sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:.25},children:[_.jsxs(bt,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:1,width:"100%"},children:[_.jsxs(bt,{sx:{display:"flex",alignItems:"center",gap:1},children:[_.jsx(bt,{component:"span","aria-hidden":"true",sx:{width:22,height:14,backgroundImage:DB(C),backgroundSize:"cover",backgroundRepeat:"no-repeat",boxShadow:"0 0 0 1px rgba(0,0,0,0.12)"}}),_.jsx(Gc,{orientation:"vertical",flexItem:!0}),_.jsx(pt,{variant:"body2",children:l[C]})]}),_.jsx(pt,{component:"span",variant:"caption",color:"text.secondary",textAlign:"right",children:C.toUpperCase()})]}),e===C&&_.jsxs(pt,{variant:"caption",color:t?"warning.main":"text.secondary",children:[t?_.jsx(TB,{fontSize:"inherit",sx:{mr:.5,verticalAlign:"middle"}}):null,o]})]},C)),_.jsx(Gc,{sx:{my:.5}}),_.jsxs(KS,{onClick:()=>{f(),y(null)},disabled:t&&!i,sx:{gap:1},children:[_.jsx(RB,{fontSize:"small"}),_.jsx(pt,{variant:"caption",fontSize:"0.8rem",children:h})]})]})]})};function rn(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 LB=typeof Symbol=="function"&&Symbol.observable||"@@observable",zC=LB,Wp=()=>Math.random().toString(36).substring(7).split("").join("."),NB={INIT:`@@redux/INIT${Wp()}`,REPLACE:`@@redux/REPLACE${Wp()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Wp()}`},tf=NB;function Ry(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 EE(e,t,i){if(typeof e!="function")throw new Error(rn(2));if(typeof t=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(rn(0));if(typeof t=="function"&&typeof i>"u"&&(i=t,t=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(rn(1));return i(EE)(e,t)}let s=e,o=t,l=new Map,c=l,f=0,h=!1;function p(){c===l&&(c=new Map,l.forEach((T,D)=>{c.set(D,T)}))}function g(){if(h)throw new Error(rn(3));return o}function y(T){if(typeof T!="function")throw new Error(rn(4));if(h)throw new Error(rn(5));let D=!0;p();const L=f++;return c.set(L,T),function(){if(D){if(h)throw new Error(rn(6));D=!1,p(),c.delete(L),l=null}}}function v(T){if(!Ry(T))throw new Error(rn(7));if(typeof T.type>"u")throw new Error(rn(8));if(typeof T.type!="string")throw new Error(rn(17));if(h)throw new Error(rn(9));try{h=!0,o=s(o,T)}finally{h=!1}return(l=c).forEach(L=>{L()}),T}function x(T){if(typeof T!="function")throw new Error(rn(10));s=T,v({type:tf.REPLACE})}function S(){const T=y;return{subscribe(D){if(typeof D!="object"||D===null)throw new Error(rn(11));function L(){const w=D;w.next&&w.next(g())}return L(),{unsubscribe:T(L)}},[zC](){return this}}}return v({type:tf.INIT}),{dispatch:v,subscribe:y,getState:g,replaceReducer:x,[zC]:S}}function zB(e){Object.keys(e).forEach(t=>{const i=e[t];if(typeof i(void 0,{type:tf.INIT})>"u")throw new Error(rn(12));if(typeof i(void 0,{type:tf.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(rn(13))})}function kB(e){const t=Object.keys(e),i={};for(let l=0;l<t.length;l++){const c=t[l];typeof e[c]=="function"&&(i[c]=e[c])}const s=Object.keys(i);let o;try{zB(i)}catch(l){o=l}return function(c={},f){if(o)throw o;let h=!1;const p={};for(let g=0;g<s.length;g++){const y=s[g],v=i[y],x=c[y],S=v(x,f);if(typeof S>"u")throw f&&f.type,new Error(rn(14));p[y]=S,h=h||S!==x}return h=h||s.length!==Object.keys(c).length,h?p:c}}function nf(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,i)=>(...s)=>t(i(...s)))}function PB(...e){return t=>(i,s)=>{const o=t(i,s);let l=()=>{throw new Error(rn(15))};const c={getState:o.getState,dispatch:(h,...p)=>l(h,...p)},f=e.map(h=>h(c));return l=nf(...f)(o.dispatch),{...o,dispatch:l}}}function jB(e){return Ry(e)&&"type"in e&&typeof e.type=="string"}var RE=Symbol.for("immer-nothing"),kC=Symbol.for("immer-draftable"),yn=Symbol.for("immer-state");function pi(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var jn=Object,Ba=jn.getPrototypeOf,rf="constructor",Ff="prototype",eg="configurable",sf="enumerable",Pc="writable",Tl="value",cr=e=>!!e&&!!e[yn];function yi(e){return e?AE(e)||qf(e)||!!e[kC]||!!e[rf]?.[kC]||Kf(e)||Gf(e):!1}var BB=jn[Ff][rf].toString(),PC=new WeakMap;function AE(e){if(!e||!Ay(e))return!1;const t=Ba(e);if(t===null||t===jn[Ff])return!0;const i=jn.hasOwnProperty.call(t,rf)&&t[rf];if(i===Object)return!0;if(!Ta(i))return!1;let s=PC.get(i);return s===void 0&&(s=Function.toString.call(i),PC.set(i,s)),s===BB}function ql(e,t,i=!0){Kl(e)===0?(i?Reflect.ownKeys(e):jn.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((s,o)=>t(o,s,e))}function Kl(e){const t=e[yn];return t?t.type_:qf(e)?1:Kf(e)?2:Gf(e)?3:0}var jC=(e,t,i=Kl(e))=>i===2?e.has(t):jn[Ff].hasOwnProperty.call(e,t),tg=(e,t,i=Kl(e))=>i===2?e.get(t):e[t],af=(e,t,i,s=Kl(e))=>{s===2?e.set(t,i):s===3?e.add(i):e[t]=i};function UB(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var qf=Array.isArray,Kf=e=>e instanceof Map,Gf=e=>e instanceof Set,Ay=e=>typeof e=="object",Ta=e=>typeof e=="function",Qp=e=>typeof e=="boolean",rr=e=>e.copy_||e.base_,Oy=e=>e.modified_?e.copy_:e.base_;function ng(e,t){if(Kf(e))return new Map(e);if(Gf(e))return new Set(e);if(qf(e))return Array[Ff].slice.call(e);const i=AE(e);if(t===!0||t==="class_only"&&!i){const s=jn.getOwnPropertyDescriptors(e);delete s[yn];let o=Reflect.ownKeys(s);for(let l=0;l<o.length;l++){const c=o[l],f=s[c];f[Pc]===!1&&(f[Pc]=!0,f[eg]=!0),(f.get||f.set)&&(s[c]={[eg]:!0,[Pc]:!0,[sf]:f[sf],[Tl]:e[c]})}return jn.create(Ba(e),s)}else{const s=Ba(e);if(s!==null&&i)return{...e};const o=jn.create(s);return jn.assign(o,e)}}function My(e,t=!1){return Yf(e)||cr(e)||!yi(e)||(Kl(e)>1&&jn.defineProperties(e,{set:Sc,add:Sc,clear:Sc,delete:Sc}),jn.freeze(e),t&&ql(e,(i,s)=>{My(s,!0)},!1)),e}function VB(){pi(2)}var Sc={[Tl]:VB};function Yf(e){return e===null||!Ay(e)?!0:jn.isFrozen(e)}var of="MapSet",ig="Patches",OE={};function Ua(e){const t=OE[e];return t||pi(0,e),t}var $B=e=>!!OE[e],wl,ME=()=>wl,HB=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:$B(of)?Ua(of):void 0});function BC(e,t){t&&(e.patchPlugin_=Ua(ig),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function rg(e){sg(e),e.drafts_.forEach(IB),e.drafts_=null}function sg(e){e===wl&&(wl=e.parent_)}var UC=e=>wl=HB(wl,e);function IB(e){const t=e[yn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function VC(e,t){t.unfinalizedDrafts_=t.drafts_.length;const i=t.drafts_[0];if(e!==void 0&&e!==i){i[yn].modified_&&(rg(t),pi(4)),yi(e)&&(e=$C(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(i[yn].base_,e,t)}else e=$C(t,i);return FB(t,e,!0),rg(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==RE?e:void 0}function $C(e,t){if(Yf(t))return t;const i=t[yn];if(!i)return Dy(t,e.handledSet_,e);if(!Xf(i,e))return t;if(!i.modified_)return i.base_;if(!i.finalized_){const{callbacks_:s}=i;if(s)for(;s.length>0;)s.pop()(e);LE(i,e)}return i.copy_}function FB(e,t,i=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&My(t,i)}function DE(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Xf=(e,t)=>e.scope_===t,qB=[];function _E(e,t,i,s){const o=rr(e),l=e.type_;if(s!==void 0&&tg(o,s,l)===t){af(o,s,i,l);return}if(!e.draftLocations_){const f=e.draftLocations_=new Map;ql(o,(h,p)=>{if(cr(p)){const g=f.get(p)||[];g.push(h),f.set(p,g)}})}const c=e.draftLocations_.get(t)??qB;for(const f of c)af(o,f,i,l)}function KB(e,t,i){e.callbacks_.push(function(o){const l=t;if(!l||!Xf(l,o))return;o.mapSetPlugin_?.fixSetContents(l);const c=Oy(l);_E(e,l.draft_??l,c,i),LE(l,o)})}function LE(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||(e.assigned_?.size??0)>0)){const{patchPlugin_:s}=t;if(s){const o=s.getPath(e);o&&s.generatePatches_(e,o,t)}DE(e)}}function GB(e,t,i){const{scope_:s}=e;if(cr(i)){const o=i[yn];Xf(o,s)&&o.callbacks_.push(function(){jc(e);const c=Oy(o);_E(e,i,c,t)})}else yi(i)&&e.callbacks_.push(function(){const l=rr(e);tg(l,t,e.type_)===i&&s.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Dy(tg(e.copy_,t,e.type_),s.handledSet_,s)})}function Dy(e,t,i){return!i.immer_.autoFreeze_&&i.unfinalizedDrafts_<1||cr(e)||t.has(e)||!yi(e)||Yf(e)||(t.add(e),ql(e,(s,o)=>{if(cr(o)){const l=o[yn];if(Xf(l,i)){const c=Oy(l);af(e,s,c,e.type_),DE(l)}}else yi(o)&&Dy(o,t,i)})),e}function YB(e,t){const i=qf(e),s={type_:i?1:0,scope_:t?t.scope_:ME(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=s,l=_y;i&&(o=[s],l=El);const{revoke:c,proxy:f}=Proxy.revocable(o,l);return s.draft_=f,s.revoke_=c,[f,s]}var _y={get(e,t){if(t===yn)return e;const i=rr(e);if(!jC(i,t,e.type_))return XB(e,i,t);const s=i[t];if(e.finalized_||!yi(s))return s;if(s===Zp(e.base_,t)){jc(e);const o=e.type_===1?+t:t,l=og(e.scope_,s,e,o);return e.copy_[o]=l}return s},has(e,t){return t in rr(e)},ownKeys(e){return Reflect.ownKeys(rr(e))},set(e,t,i){const s=NE(rr(e),t);if(s?.set)return s.set.call(e.draft_,i),!0;if(!e.modified_){const o=Zp(rr(e),t),l=o?.[yn];if(l&&l.base_===i)return e.copy_[t]=i,e.assigned_.set(t,!1),!0;if(UB(i,o)&&(i!==void 0||jC(e.base_,t,e.type_)))return!0;jc(e),ag(e)}return e.copy_[t]===i&&(i!==void 0||t in e.copy_)||Number.isNaN(i)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=i,e.assigned_.set(t,!0),GB(e,t,i)),!0},deleteProperty(e,t){return jc(e),Zp(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),ag(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const i=rr(e),s=Reflect.getOwnPropertyDescriptor(i,t);return s&&{[Pc]:!0,[eg]:e.type_!==1||t!=="length",[sf]:s[sf],[Tl]:i[t]}},defineProperty(){pi(11)},getPrototypeOf(e){return Ba(e.base_)},setPrototypeOf(){pi(12)}},El={};ql(_y,(e,t)=>{El[e]=function(){const i=arguments;return i[0]=i[0][0],t.apply(this,i)}});El.deleteProperty=function(e,t){return El.set.call(this,e,t,void 0)};El.set=function(e,t,i){return _y.set.call(this,e[0],t,i,e[0])};function Zp(e,t){const i=e[yn];return(i?rr(i):e)[t]}function XB(e,t,i){const s=NE(t,i);return s?Tl in s?s[Tl]:s.get?.call(e.draft_):void 0}function NE(e,t){if(!(t in e))return;let i=Ba(e);for(;i;){const s=Object.getOwnPropertyDescriptor(i,t);if(s)return s;i=Ba(i)}}function ag(e){e.modified_||(e.modified_=!0,e.parent_&&ag(e.parent_))}function jc(e){e.copy_||(e.assigned_=new Map,e.copy_=ng(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var WB=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,i,s)=>{if(Ta(t)&&!Ta(i)){const l=i;i=t;const c=this;return function(h=l,...p){return c.produce(h,g=>i.call(this,g,...p))}}Ta(i)||pi(6),s!==void 0&&!Ta(s)&&pi(7);let o;if(yi(t)){const l=UC(this),c=og(l,t,void 0);let f=!0;try{o=i(c),f=!1}finally{f?rg(l):sg(l)}return BC(l,s),VC(o,l)}else if(!t||!Ay(t)){if(o=i(t),o===void 0&&(o=t),o===RE&&(o=void 0),this.autoFreeze_&&My(o,!0),s){const l=[],c=[];Ua(ig).generateReplacementPatches_(t,o,{patches_:l,inversePatches_:c}),s(l,c)}return o}else pi(1,t)},this.produceWithPatches=(t,i)=>{if(Ta(t))return(c,...f)=>this.produceWithPatches(c,h=>t(h,...f));let s,o;return[this.produce(t,i,(c,f)=>{s=c,o=f}),s,o]},Qp(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Qp(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Qp(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){yi(e)||pi(8),cr(e)&&(e=QB(e));const t=UC(this),i=og(t,e,void 0);return i[yn].isManual_=!0,sg(t),i}finishDraft(e,t){const i=e&&e[yn];(!i||!i.isManual_)&&pi(9);const{scope_:s}=i;return BC(s,t),VC(void 0,s)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let i;for(i=t.length-1;i>=0;i--){const o=t[i];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}i>-1&&(t=t.slice(i+1));const s=Ua(ig).applyPatches_;return cr(e)?s(e,t):this.produce(e,o=>s(o,t))}};function og(e,t,i,s){const[o,l]=Kf(t)?Ua(of).proxyMap_(t,i):Gf(t)?Ua(of).proxySet_(t,i):YB(t,i);return(i?.scope_??ME()).drafts_.push(o),l.callbacks_=i?.callbacks_??[],l.key_=s,i&&s!==void 0?KB(i,l,s):l.callbacks_.push(function(h){h.mapSetPlugin_?.fixSetContents(l);const{patchPlugin_:p}=h;l.modified_&&p&&p.generatePatches_(l,[],h)}),o}function QB(e){return cr(e)||pi(10,e),zE(e)}function zE(e){if(!yi(e)||Yf(e))return e;const t=e[yn];let i,s=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,i=ng(e,t.scope_.immer_.useStrictShallowCopy_),s=t.scope_.immer_.shouldUseStrictIteration()}else i=ng(e,!0);return ql(i,(o,l)=>{af(i,o,zE(l))},s),t&&(t.finalized_=!1),i}var ZB=new WB,kE=ZB.produce;function PE(e){return({dispatch:i,getState:s})=>o=>l=>typeof l=="function"?l(i,s,e):o(l)}var JB=PE(),eU=PE,tU=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?nf:nf.apply(null,arguments)};function HC(e,t){function i(...s){if(t){let o=t(...s);if(!o)throw new Error(ar(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:s[0]}}return i.toString=()=>`${e}`,i.type=e,i.match=s=>jB(s)&&s.type===e,i}var jE=class rl extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,rl.prototype)}static get[Symbol.species](){return rl}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new rl(...t[0].concat(this)):new rl(...t.concat(this))}};function IC(e){return yi(e)?kE(e,()=>{}):e}function xc(e,t,i){return e.has(t)?e.get(t):e.set(t,i(t)).get(t)}function nU(e){return typeof e=="boolean"}var iU=()=>function(t){const{thunk:i=!0,immutableCheck:s=!0,serializableCheck:o=!0,actionCreatorCheck:l=!0}=t??{};let c=new jE;return i&&(nU(i)?c.push(JB):c.push(eU(i.extraArgument))),c},rU="RTK_autoBatch",FC=e=>t=>{setTimeout(t,e)},sU=(e={type:"raf"})=>t=>(...i)=>{const s=t(...i);let o=!0,l=!1,c=!1;const f=new Set,h=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:FC(10):e.type==="callback"?e.queueNotification:FC(e.timeout),p=()=>{c=!1,l&&(l=!1,f.forEach(g=>g()))};return Object.assign({},s,{subscribe(g){const y=()=>o&&g(),v=s.subscribe(y);return f.add(g),()=>{v(),f.delete(g)}},dispatch(g){try{return o=!g?.meta?.[rU],l=!o,l&&(c||(c=!0,h(p))),s.dispatch(g)}finally{o=!0}}})},aU=e=>function(i){const{autoBatch:s=!0}=i??{};let o=new jE(e);return s&&o.push(sU(typeof s=="object"?s:void 0)),o};function oU(e){const t=iU(),{reducer:i=void 0,middleware:s,devTools:o=!0,preloadedState:l=void 0,enhancers:c=void 0}=e||{};let f;if(typeof i=="function")f=i;else if(Ry(i))f=kB(i);else throw new Error(ar(1));let h;typeof s=="function"?h=s(t):h=t();let p=nf;o&&(p=tU({trace:!1,...typeof o=="object"&&o}));const g=PB(...h),y=aU(g);let v=typeof c=="function"?c(y):y();const x=p(...v);return EE(f,l,x)}function BE(e){const t={},i=[];let s;const o={addCase(l,c){const f=typeof l=="string"?l:l.type;if(!f)throw new Error(ar(28));if(f in t)throw new Error(ar(29));return t[f]=c,o},addAsyncThunk(l,c){return c.pending&&(t[l.pending.type]=c.pending),c.rejected&&(t[l.rejected.type]=c.rejected),c.fulfilled&&(t[l.fulfilled.type]=c.fulfilled),c.settled&&i.push({matcher:l.settled,reducer:c.settled}),o},addMatcher(l,c){return i.push({matcher:l,reducer:c}),o},addDefaultCase(l){return s=l,o}};return e(o),[t,i,s]}function lU(e){return typeof e=="function"}function uU(e,t){let[i,s,o]=BE(t),l;if(lU(e))l=()=>IC(e());else{const f=IC(e);l=()=>f}function c(f=l(),h){let p=[i[h.type],...s.filter(({matcher:g})=>g(h)).map(({reducer:g})=>g)];return p.filter(g=>!!g).length===0&&(p=[o]),p.reduce((g,y)=>{if(y)if(cr(g)){const x=y(g,h);return x===void 0?g:x}else{if(yi(g))return kE(g,v=>y(v,h));{const v=y(g,h);if(v===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}}return g},f)}return c.getInitialState=l,c}var cU=Symbol.for("rtk-slice-createasyncthunk");function fU(e,t){return`${e}/${t}`}function dU({creators:e}={}){const t=e?.asyncThunk?.[cU];return function(s){const{name:o,reducerPath:l=o}=s;if(!o)throw new Error(ar(11));const c=(typeof s.reducers=="function"?s.reducers(mU()):s.reducers)||{},f=Object.keys(c),h={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(R,w){const M=typeof R=="string"?R:R.type;if(!M)throw new Error(ar(12));if(M in h.sliceCaseReducersByType)throw new Error(ar(13));return h.sliceCaseReducersByType[M]=w,p},addMatcher(R,w){return h.sliceMatchers.push({matcher:R,reducer:w}),p},exposeAction(R,w){return h.actionCreators[R]=w,p},exposeCaseReducer(R,w){return h.sliceCaseReducersByName[R]=w,p}};f.forEach(R=>{const w=c[R],M={reducerName:R,type:fU(o,R),createNotation:typeof s.reducers=="function"};yU(w)?bU(M,w,p,t):gU(M,w,p)});function g(){const[R={},w=[],M=void 0]=typeof s.extraReducers=="function"?BE(s.extraReducers):[s.extraReducers],N={...R,...h.sliceCaseReducersByType};return uU(s.initialState,k=>{for(let B in N)k.addCase(B,N[B]);for(let B of h.sliceMatchers)k.addMatcher(B.matcher,B.reducer);for(let B of w)k.addMatcher(B.matcher,B.reducer);M&&k.addDefaultCase(M)})}const y=R=>R,v=new Map,x=new WeakMap;let S;function C(R,w){return S||(S=g()),S(R,w)}function T(){return S||(S=g()),S.getInitialState()}function D(R,w=!1){function M(k){let B=k[R];return typeof B>"u"&&w&&(B=xc(x,M,T)),B}function N(k=y){const B=xc(v,w,()=>new WeakMap);return xc(B,k,()=>{const G={};for(const[Q,J]of Object.entries(s.selectors??{}))G[Q]=hU(J,k,()=>xc(x,k,T),w);return G})}return{reducerPath:R,getSelectors:N,get selectors(){return N(M)},selectSlice:M}}const L={name:o,reducer:C,actions:h.actionCreators,caseReducers:h.sliceCaseReducersByName,getInitialState:T,...D(l),injectInto(R,{reducerPath:w,...M}={}){const N=w??l;return R.inject({reducerPath:N,reducer:C},M),{...L,...D(N,!0)}}};return L}}function hU(e,t,i,s){function o(l,...c){let f=t(l);return typeof f>"u"&&s&&(f=i()),e(f,...c)}return o.unwrapped=e,o}var pU=dU();function mU(){function e(t,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...i}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...i){return t(...i)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:i}},asyncThunk:e}}function gU({type:e,reducerName:t,createNotation:i},s,o){let l,c;if("reducer"in s){if(i&&!vU(s))throw new Error(ar(17));l=s.reducer,c=s.prepare}else l=s;o.addCase(e,l).exposeCaseReducer(t,l).exposeAction(t,c?HC(e,c):HC(e))}function yU(e){return e._reducerDefinitionType==="asyncThunk"}function vU(e){return e._reducerDefinitionType==="reducerWithPrepare"}function bU({type:e,reducerName:t},i,s,o){if(!o)throw new Error(ar(18));const{payloadCreator:l,fulfilled:c,pending:f,rejected:h,settled:p,options:g}=i,y=o(e,l,g);s.exposeAction(t,y),c&&s.addCase(y.fulfilled,c),f&&s.addCase(y.pending,f),h&&s.addCase(y.rejected,h),p&&s.addMatcher(y.settled,p),s.exposeCaseReducer(t,{fulfilled:c||Cc,pending:f||Cc,rejected:h||Cc,settled:p||Cc})}function Cc(){}function ar(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. `}const SU=["en","de"],fr="en",lg="dqm.locale",xU="dqmUiLang",Jp=e=>{if(!e)return null;const i=e.toLowerCase().split("-")[0];return SU.includes(i)?i:null},Rl=(e,t,i,s=fr)=>{const o=new URLSearchParams(e||""),l=Jp(o.get(xU));if(l)return{locale:l,source:"url",userOverride:!1};const c=Jp(t);if(c)return{locale:c,source:"user",userOverride:!0};const f=Jp(i);return f?{locale:f,source:"navigator",userOverride:!1}:{locale:s,source:"default",userOverride:!1}},ba=e=>{typeof window>"u"||(e?localStorage.setItem(lg,e):localStorage.removeItem(lg))},lf=()=>typeof window>"u"?null:localStorage.getItem(lg),CU=()=>typeof window>"u"?{locale:fr,source:"default",userOverride:!1}:Rl(window.location.search,lf(),navigator.language,fr),TU=CU(),UE=pU({name:"locale",initialState:TU,reducers:{setResolvedLocale:(e,t)=>{const i=t.payload;e.locale=i.locale,e.source=i.source,e.userOverride=i.userOverride,i.userOverride?ba(i.locale):i.source!=="user"&&ba(null)},setUserLocale:(e,t)=>{e.locale=t.payload,e.source="user",e.userOverride=!0,ba(t.payload)},applyNavigatorLocale:e=>{if(typeof window>"u"||e.userOverride||e.source==="url")return;const t=Rl(window.location.search,lf(),navigator.language,fr);e.locale=t.locale,e.source=t.source,e.userOverride=t.userOverride,t.userOverride?ba(t.locale):ba(null)},resetLocale:e=>{if(typeof window>"u")return;ba(null);const t=Rl(window.location.search,null,navigator.language,fr);e.locale=t.locale,e.source=t.source,e.userOverride=t.userOverride}}}),{setResolvedLocale:qC,setUserLocale:wU,applyNavigatorLocale:EU,resetLocale:RU}=UE.actions,AU=UE.reducer,KC={url:"common:source_url",user:"common:source_user",navigator:"common:source_navigator",default:"common:source_default"},Bc=({index:e=0})=>{const{t}=Hg(["common"]),s=E.useContext(g2)?.store,[o,l]=E.useState(()=>s?.getState()?.locale);if(E.useEffect(()=>s?(l(s.getState().locale),s.subscribe(()=>{l(s.getState().locale)})):void 0,[s]),!s||!o)return null;const{locale:c,source:f,userOverride:h}=o,p=S=>{s.dispatch(wU(S))},g=()=>{s.dispatch(RU()),s.dispatch(EU())},y=f==="url",v=KC[f]??KC.default,x=E.useMemo(()=>({en:t("common:language_en"),de:t("common:language_de")}),[t]);return _.jsx(_B,{locale:c,isUrlControlled:y,userOverride:!!h,switchLabel:t("common:language_switch_label"),sourceLabel:t(v),localeLabels:x,onSelect:p,onReset:g,resetLabel:t("common:reset"),index:e})},OU=()=>{const e=$a(),{t}=Hg(["server","common"]),[i,s]=E.useState(!1),[o,l]=E.useState(null),[c,f]=E.useState(""),[h,p]=E.useState(""),[g,y]=E.useState(!0),[v,x]=E.useState(null);E.useEffect(()=>{if(!v||v.paused)return;if(v.countdown===0){const w=new URLSearchParams(window.location.search).get("returnUrl")||"http://localhost:5173",M=new URL(w);M.searchParams.set("sessionToken",v.token),M.searchParams.set("websiteId",v.websiteId),M.searchParams.set("dqm","true"),window.location.href=M.toString();return}const L=setTimeout(()=>{x(R=>R?{...R,countdown:R.countdown-1}:null)},1e3);return()=>clearTimeout(L)},[v]);const S=()=>{x(L=>L?{...L,paused:!L.paused}:null)},C=()=>{localStorage.removeItem("dqm_stored_session_token"),localStorage.removeItem("dqm_stored_website_id"),x(null),y(!1)},T=()=>{if(!v)return;const R=new URLSearchParams(window.location.search).get("returnUrl")||"http://localhost:5173",w=new URL(R);w.searchParams.set("sessionToken",v.token),w.searchParams.set("websiteId",v.websiteId),w.searchParams.set("dqm","true"),window.location.href=w.toString()};E.useEffect(()=>{(async()=>{try{const R=localStorage.getItem("dqm_stored_session_token"),w=localStorage.getItem("dqm_stored_website_id");if(R&&w)if(console.log("[LoginPage] 🔍 Found stored session, validating..."),(await Mt.post("/auth/token/validate",{sessionToken:R})).data.valid){console.log("[LoginPage] ✅ Stored session is valid, showing auto-redirect screen..."),x({websiteId:w,token:R,countdown:5,paused:!1}),y(!1);return}else console.log("[LoginPage] ⚠️ Stored session expired, need new login"),localStorage.removeItem("dqm_stored_session_token"),localStorage.removeItem("dqm_stored_website_id")}catch(R){console.error("[LoginPage] Error checking session:",R),localStorage.removeItem("dqm_stored_session_token"),localStorage.removeItem("dqm_stored_website_id")}finally{y(!1)}})()},[]);const D=async L=>{L.preventDefault(),s(!0),l(null);try{const w=(await Mt.post("/auth/login",{apiKey:c,websiteId:h})).data;console.log("[LoginPage] ✅ Login successful"),console.log("[LoginPage] Session token:",w.sessionToken?.substring(0,20)+"..."),localStorage.setItem("dqm_stored_session_token",w.sessionToken),localStorage.setItem("dqm_stored_website_id",w.websiteId),console.log("[LoginPage] 💾 Session stored for SSO");const N=new URLSearchParams(window.location.search).get("returnUrl")||localStorage.getItem("dqm_return_url")||"http://localhost:5173";console.log("[LoginPage] 🔄 Redirecting back to:",N);const k=new URL(N);k.searchParams.set("sessionToken",w.sessionToken),k.searchParams.set("websiteId",w.websiteId),k.searchParams.set("dqm","true"),window.location.href=k.toString()}catch(R){const w=R.response?.data?.message||R.message||t("server:auth_failed");l(w),console.error("[LoginPage] ❌ Login error:",w)}finally{s(!1)}};return g?_.jsxs(bt,{sx:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:`linear-gradient(135deg, ${St(e.palette.primary.main,.1)} 0%, ${St(e.palette.secondary.main,.1)} 100%)`},children:[_.jsx(bt,{sx:{position:"absolute",top:16,right:16},children:_.jsx(Bc,{})}),_.jsxs(ms,{alignItems:"center",spacing:2,children:[_.jsx(_a,{size:60}),_.jsx(pt,{variant:"h6",color:"text.secondary",children:t("server:checking_session")})]})]}):v?_.jsxs(bt,{sx:{minHeight:"100vh",display:"flex",background:`linear-gradient(135deg, ${St(e.palette.primary.main,.1)} 0%, ${St(e.palette.secondary.main,.1)} 100%)`,position:"relative",overflow:"hidden"},children:[_.jsx(bt,{sx:{position:"absolute",top:16,right:16,zIndex:2},children:_.jsx(Bc,{})}),_.jsx(bt,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:"url(https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&q=80&w=2070)",backgroundSize:"cover",backgroundPosition:"center",opacity:.15,zIndex:0}}),_.jsx(Sm,{maxWidth:"sm",sx:{position:"relative",zIndex:1,display:"flex",alignItems:"center",py:4},children:_.jsx(va.div,{initial:{opacity:0,scale:.9,y:20},animate:{opacity:1,scale:1,y:0},transition:{duration:.5,ease:"easeOut"},style:{width:"100%"},children:_.jsx(vm,{elevation:24,sx:{width:"100%",backdropFilter:"blur(20px)",backgroundColor:St(e.palette.background.paper,.95),borderRadius:4,overflow:"hidden"},children:_.jsx(bm,{sx:{p:4},children:_.jsxs(ms,{spacing:4,alignItems:"center",children:[_.jsx(va.div,{initial:{scale:0,rotate:-180},animate:{scale:1,rotate:0},transition:{duration:.6,delay:.2,type:"spring",stiffness:200,damping:15},children:_.jsxs(bt,{sx:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center"},children:[_.jsx(_a,{variant:"determinate",value:(100-(5-v.countdown)/5)*100,size:120,thickness:2,sx:{color:e.palette.success.main,position:"absolute",transition:"all 0.8s ease-in-out"}}),_.jsx(bt,{sx:{width:100,height:100,borderRadius:"50%",background:`linear-gradient(135deg, ${e.palette.success.main} 0%, ${e.palette.success.dark} 100%)`,display:"flex",alignItems:"center",justifyContent:"center",boxShadow:`0 0 30px ${St(e.palette.success.main,.4)}`},children:_.jsx(NC,{sx:{fontSize:50,color:"white"}})})]})}),_.jsxs(va.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.3},style:{textAlign:"center"},children:[_.jsx(pt,{variant:"h4",gutterBottom:!0,fontWeight:700,color:"success.main",children:t("server:already_logged_in")}),_.jsx(pt,{variant:"body1",color:"text.secondary",children:t("server:already_auth")})]}),_.jsx(va.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.5,delay:.4},style:{width:"100%"},children:_.jsx(bt,{sx:{width:"100%",p:2,borderRadius:2,backgroundColor:St(e.palette.info.main,.05),border:`1px solid ${St(e.palette.info.main,.2)}`},children:_.jsxs(ms,{spacing:1,children:[_.jsxs(bt,{sx:{display:"flex",justifyContent:"space-between"},children:[_.jsx(pt,{variant:"body2",color:"text.secondary",children:t("server:session_website_id")}),_.jsxs(pt,{variant:"body2",fontWeight:600,children:[v.websiteId.substring(0,20),"..."]})]}),_.jsxs(bt,{sx:{display:"flex",justifyContent:"space-between"},children:[_.jsx(pt,{variant:"body2",color:"text.secondary",children:t("server:session_label")}),_.jsx(pt,{variant:"body2",fontWeight:600,color:"success.main",children:t("server:session_active")})]})]})})}),_.jsxs(bt,{sx:{textAlign:"center",minHeight:120},children:[_.jsx(HP,{mode:"wait",children:_.jsx(va.div,{initial:{scale:1.5,opacity:0,y:-20},animate:{scale:1,opacity:1,y:0},exit:{scale:.5,opacity:0,y:20},transition:{duration:.4,type:"spring",stiffness:300,damping:20},children:_.jsx(pt,{variant:"h1",fontWeight:700,color:"primary.main",sx:{fontSize:"6rem",lineHeight:1,textShadow:`0 0 20px ${St(e.palette.primary.main,.3)}`},children:v.countdown})},v.countdown)}),_.jsx(pt,{variant:"body2",color:"text.secondary",sx:{mt:2},children:t("server:redirecting_in",{count:v.countdown})})]}),_.jsx(va.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.5},style:{width:"100%"},children:_.jsxs(ms,{spacing:2,sx:{width:"100%"},children:[_.jsxs(ms,{direction:"row",spacing:2,children:[_.jsx(dc,{fullWidth:!0,variant:"contained",color:v.paused?"success":"warning",onClick:S,startIcon:v.paused?_.jsx(EB,{}):_.jsx(wB,{}),sx:{background:v.paused?`linear-gradient(135deg, ${e.palette.success.main} 0%, ${e.palette.success.dark} 100%)`:`linear-gradient(135deg, ${e.palette.warning.main} 0%, ${e.palette.warning.dark} 100%)`,"&:hover":{transform:"translateY(-2px)",boxShadow:v.paused?`0 8px 20px ${St(e.palette.success.main,.4)}`:`0 8px 20px ${St(e.palette.warning.main,.4)}`},transition:"all 0.3s ease"},children:v.paused?t("server:resume"):t("server:pause")}),_.jsx(dc,{fullWidth:!0,variant:"contained",color:"primary",onClick:T,startIcon:_.jsx(CB,{}),sx:{background:`linear-gradient(135deg, ${e.palette.primary.main} 0%, ${e.palette.primary.dark} 100%)`,"&:hover":{background:`linear-gradient(135deg, ${e.palette.primary.dark} 0%, ${e.palette.primary.main} 100%)`,transform:"translateY(-2px)",boxShadow:`0 8px 20px ${St(e.palette.primary.main,.4)}`},transition:"all 0.3s ease"},children:t("server:continue")})]}),_.jsx(dc,{fullWidth:!0,variant:"outlined",color:"error",startIcon:_.jsx(LC,{}),onClick:C,children:t("server:logout")})]})})]})})})})})]}):_.jsxs(bt,{sx:{minHeight:"100vh",display:"flex",background:`linear-gradient(135deg, ${St(e.palette.primary.main,.1)} 0%, ${St(e.palette.secondary.main,.1)} 100%)`,position:"relative",overflow:"hidden"},children:[_.jsx(bt,{sx:{position:"absolute",top:16,right:16,zIndex:2},children:_.jsx(Bc,{})}),_.jsx(bt,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:"url(https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&q=80&w=2070)",backgroundSize:"cover",backgroundPosition:"center",opacity:.15,zIndex:0}}),_.jsx(Sm,{maxWidth:"sm",sx:{position:"relative",zIndex:1,display:"flex",alignItems:"center",py:4},children:_.jsxs(vm,{elevation:24,sx:{width:"100%",backdropFilter:"blur(20px)",backgroundColor:St(e.palette.background.paper,.95),borderRadius:4,overflow:"hidden"},children:[_.jsxs(bt,{sx:{background:`linear-gradient(135deg, ${e.palette.primary.main} 0%, ${e.palette.primary.dark} 100%)`,color:"white",p:4,textAlign:"center"},children:[_.jsx(LC,{sx:{fontSize:64,mb:2,opacity:.9}}),_.jsx(pt,{variant:"h4",fontWeight:"bold",gutterBottom:!0,children:t("server:brand_title")}),_.jsx(pt,{variant:"body2",sx:{opacity:.9},children:t("server:brand_subtitle")})]}),_.jsxs(bm,{sx:{p:4},children:[o&&_.jsx(s2,{severity:"error",sx:{mb:3},children:o}),_.jsx("form",{onSubmit:D,children:_.jsxs(ms,{spacing:3,children:[_.jsxs(bt,{textAlign:"center",children:[_.jsx(pt,{variant:"h6",gutterBottom:!0,children:t("server:login_heading")}),_.jsx(pt,{variant:"body2",color:"text.secondary",children:t("server:login_subheading")})]}),_.jsx(WS,{autoComplete:"username",label:t("server:website_id"),fullWidth:!0,type:"text",required:!0,value:h,onChange:L=>p(L.target.value),disabled:i,placeholder:t("server:website_id")}),_.jsx(WS,{label:t("server:api_key"),type:"password",fullWidth:!0,required:!0,value:c,onChange:L=>f(L.target.value),disabled:i,placeholder:t("server:api_key"),InputProps:{startAdornment:_.jsx(OB,{sx:{mr:1,color:"text.secondary"}})}}),_.jsx(dc,{type:"submit",variant:"contained",size:"large",fullWidth:!0,disabled:i||!c||!h,startIcon:i?_.jsx(_a,{size:20}):_.jsx(NC,{}),sx:{py:1.5,textTransform:"none",fontSize:"1rem",fontWeight:600,boxShadow:e.shadows[4],"&:hover":{boxShadow:e.shadows[8]}},children:t(i?"server:signin_loading":"server:sign_in")}),_.jsx(bt,{textAlign:"center",mt:2,children:_.jsx(pt,{variant:"caption",color:"text.secondary",children:t("server:credentials_note")})})]})})]}),_.jsx(bt,{sx:{p:2,textAlign:"center",borderTop:1,borderColor:"divider",backgroundColor:St(e.palette.background.default,.5)},children:_.jsx(pt,{variant:"caption",color:"text.secondary",children:t("server:footer")})})]})})]})},MU=()=>{const e=$a(),{t}=Hg(["server","common"]),[i,s]=E.useState("loading"),[o,l]=E.useState(t("server:processing_auth"));return E.useEffect(()=>{(async()=>{try{const f=new URLSearchParams(window.location.search),h=f.get("code"),p=f.get("state"),g=f.get("error");if(g)throw new Error(f.get("error_description")||g);if(!h||!p)throw new Error("Missing authorization code or state parameter");const y=sessionStorage.getItem("auth_state");if(p!==y)throw new Error("Invalid state parameter - possible CSRF attack");const v=await fetch("/auth/callback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:h,redirectUri:window.location.origin+"/auth/callback"})});if(!v.ok){const S=await v.json();throw new Error(S.message||"Token exchange failed")}const x=await v.json();localStorage.setItem("dqm_sessionToken",x.sessionToken),sessionStorage.removeItem("auth_state"),(window.opener||window.parent!==window)&&(window.opener||window.parent).postMessage({type:"DQM_AUTH_SUCCESS",sessionToken:x.sessionToken,websiteId:x.websiteId},"*"),s("success"),l(t("server:auth_close")),window.opener&&setTimeout(()=>{window.close()},2e3)}catch(f){console.error("[Auth Callback] Error:",f),s("error"),l(f instanceof Error?f.message:"Authentication failed")}})()},[]),_.jsxs(bt,{sx:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:`linear-gradient(135deg, ${St(e.palette.primary.main,.1)} 0%, ${St(e.palette.secondary.main,.1)} 100%)`},children:[_.jsx(bt,{sx:{position:"absolute",top:16,right:16},children:_.jsx(Bc,{})}),_.jsx(Sm,{maxWidth:"sm",children:_.jsx(vm,{elevation:8,sx:{backdropFilter:"blur(20px)",backgroundColor:St(e.palette.background.paper,.95),borderRadius:4},children:_.jsx(bm,{sx:{p:6},children:_.jsxs(ms,{spacing:4,alignItems:"center",textAlign:"center",children:[i==="loading"&&_.jsxs(_.Fragment,{children:[_.jsx(_a,{size:64,thickness:4}),_.jsx(pt,{variant:"h5",fontWeight:"600",children:t("server:auth_loading")}),_.jsx(pt,{variant:"body2",color:"text.secondary",children:t("server:auth_wait")})]}),i==="success"&&_.jsxs(_.Fragment,{children:[_.jsx(SB,{sx:{fontSize:80,color:e.palette.success.main}}),_.jsx(pt,{variant:"h5",fontWeight:"600",color:"success.main",children:t("server:auth_success")}),_.jsx(pt,{variant:"body1",color:"text.secondary",children:o})]}),i==="error"&&_.jsxs(_.Fragment,{children:[_.jsx(xB,{sx:{fontSize:80,color:e.palette.error.main}}),_.jsx(pt,{variant:"h5",fontWeight:"600",color:"error.main",children:t("server:auth_failed")}),_.jsx(s2,{severity:"error",sx:{width:"100%"},children:o}),_.jsx(pt,{variant:"body2",color:"text.secondary",children:t("server:auth_retry")})]})]})})})})]})},wa=oU({reducer:{locale:AU}}),Ee=e=>typeof e=="string",Qo=()=>{let e,t;const i=new Promise((s,o)=>{e=s,t=o});return i.resolve=e,i.reject=t,i},GC=e=>e==null?"":""+e,DU=(e,t,i)=>{e.forEach(s=>{t[s]&&(i[s]=t[s])})},_U=/###/g,YC=e=>e&&e.indexOf("###")>-1?e.replace(_U,"."):e,XC=e=>!e||Ee(e),dl=(e,t,i)=>{const s=Ee(t)?t.split("."):t;let o=0;for(;o<s.length-1;){if(XC(e))return{};const l=YC(s[o]);!e[l]&&i&&(e[l]=new i),Object.prototype.hasOwnProperty.call(e,l)?e=e[l]:e={},++o}return XC(e)?{}:{obj:e,k:YC(s[o])}},WC=(e,t,i)=>{const{obj:s,k:o}=dl(e,t,Object);if(s!==void 0||t.length===1){s[o]=i;return}let l=t[t.length-1],c=t.slice(0,t.length-1),f=dl(e,c,Object);for(;f.obj===void 0&&c.length;)l=`${c[c.length-1]}.${l}`,c=c.slice(0,c.length-1),f=dl(e,c,Object),f&&f.obj&&typeof f.obj[`${f.k}.${l}`]<"u"&&(f.obj=void 0);f.obj[`${f.k}.${l}`]=i},LU=(e,t,i,s)=>{const{obj:o,k:l}=dl(e,t,Object);o[l]=o[l]||[],o[l].push(i)},uf=(e,t)=>{const{obj:i,k:s}=dl(e,t);if(i)return i[s]},NU=(e,t,i)=>{const s=uf(e,i);return s!==void 0?s:uf(t,i)},VE=(e,t,i)=>{for(const s in t)s!=="__proto__"&&s!=="constructor"&&(s in e?Ee(e[s])||e[s]instanceof String||Ee(t[s])||t[s]instanceof String?i&&(e[s]=t[s]):VE(e[s],t[s],i):e[s]=t[s]);return e},Sa=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var zU={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const kU=e=>Ee(e)?e.replace(/[&<>"'\/]/g,t=>zU[t]):e;class PU{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const i=this.regExpMap.get(t);if(i!==void 0)return i;const s=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,s),this.regExpQueue.push(t),s}}const jU=[" ",",","?","!",";"],BU=new PU(20),UU=(e,t,i)=>{t=t||"",i=i||"";const s=jU.filter(c=>t.indexOf(c)<0&&i.indexOf(c)<0);if(s.length===0)return!0;const o=BU.getRegExp(`(${s.map(c=>c==="?"?"\\?":c).join("|")})`);let l=!o.test(e);if(!l){const c=e.indexOf(i);c>0&&!o.test(e.substring(0,c))&&(l=!0)}return l},ug=function(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const s=t.split(i);let o=e;for(let l=0;l<s.length;){if(!o||typeof o!="object")return;let c,f="";for(let h=l;h<s.length;++h)if(h!==l&&(f+=i),f+=s[h],c=o[f],c!==void 0){if(["string","number","boolean"].indexOf(typeof c)>-1&&h<s.length-1)continue;l+=h-l+1;break}o=c}return o},cf=e=>e&&e.replace("_","-"),VU={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class ff{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,i)}init(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=i.prefix||"i18next:",this.logger=t||VU,this.options=i,this.debug=i.debug}log(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return this.forward(i,"log","",!0)}warn(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return this.forward(i,"warn","",!0)}error(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return this.forward(i,"error","")}deprecate(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}forward(t,i,s,o){return o&&!this.debug?null:(Ee(t[0])&&(t[0]=`${s}${this.prefix} ${t[0]}`),this.logger[i](t))}create(t){return new ff(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new ff(this.logger,t)}}var Di=new ff;class Wf{constructor(){this.observers={}}on(t,i){return t.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const o=this.observers[s].get(i)||0;this.observers[s].set(i,o+1)}),this}off(t,i){if(this.observers[t]){if(!i){delete this.observers[t];return}this.observers[t].delete(i)}}emit(t){for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(c=>{let[f,h]=c;for(let p=0;p<h;p++)f(...s)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(c=>{let[f,h]=c;for(let p=0;p<h;p++)f.apply(f,[t,...s])})}}class QC extends Wf{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const i=this.options.ns.indexOf(t);i>-1&&this.options.ns.splice(i,1)}getResource(t,i,s){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,c=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let f;t.indexOf(".")>-1?f=t.split("."):(f=[t,i],s&&(Array.isArray(s)?f.push(...s):Ee(s)&&l?f.push(...s.split(l)):f.push(s)));const h=uf(this.data,f);return!h&&!i&&!s&&t.indexOf(".")>-1&&(t=f[0],i=f[1],s=f.slice(2).join(".")),h||!c||!Ee(s)?h:ug(this.data&&this.data[t]&&this.data[t][i],s,l)}addResource(t,i,s,o){let l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const c=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let f=[t,i];s&&(f=f.concat(c?s.split(c):s)),t.indexOf(".")>-1&&(f=t.split("."),o=i,i=f[1]),this.addNamespaces(i),WC(this.data,f,o),l.silent||this.emit("added",t,i,s,o)}addResources(t,i,s){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const l in s)(Ee(s[l])||Array.isArray(s[l]))&&this.addResource(t,i,l,s[l],{silent:!0});o.silent||this.emit("added",t,i,s)}addResourceBundle(t,i,s,o,l){let c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},f=[t,i];t.indexOf(".")>-1&&(f=t.split("."),o=s,s=i,i=f[1]),this.addNamespaces(i);let h=uf(this.data,f)||{};c.skipCopy||(s=JSON.parse(JSON.stringify(s))),o?VE(h,s,l):h={...h,...s},WC(this.data,f,h),c.silent||this.emit("added",t,i,s)}removeResourceBundle(t,i){this.hasResourceBundle(t,i)&&delete this.data[t][i],this.removeNamespaces(i),this.emit("removed",t,i)}hasResourceBundle(t,i){return this.getResource(t,i)!==void 0}getResourceBundle(t,i){return i||(i=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,i)}:this.getResource(t,i)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const i=this.getDataByLanguage(t);return!!(i&&Object.keys(i)||[]).find(o=>i[o]&&Object.keys(i[o]).length>0)}toJSON(){return this.data}}var $E={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,i,s,o){return e.forEach(l=>{this.processors[l]&&(t=this.processors[l].process(t,i,s,o))}),t}};const ZC={};class df extends Wf{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),DU(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Di.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const s=this.resolve(t,i);return s&&s.res!==void 0}extractFromKey(t,i){let s=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let l=i.ns||this.options.defaultNS||[];const c=s&&t.indexOf(s)>-1,f=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!UU(t,s,o);if(c&&!f){const h=t.match(this.interpolator.nestingRegexp);if(h&&h.length>0)return{key:t,namespaces:Ee(l)?[l]:l};const p=t.split(s);(s!==o||s===o&&this.options.ns.indexOf(p[0])>-1)&&(l=p.shift()),t=p.join(o)}return{key:t,namespaces:Ee(l)?[l]:l}}translate(t,i,s){if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,l=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:c,namespaces:f}=this.extractFromKey(t[t.length-1],i),h=f[f.length-1],p=i.lng||this.language,g=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(g){const w=i.nsSeparator||this.options.nsSeparator;return o?{res:`${h}${w}${c}`,usedKey:c,exactUsedKey:c,usedLng:p,usedNS:h,usedParams:this.getUsedParamsDetails(i)}:`${h}${w}${c}`}return o?{res:c,usedKey:c,exactUsedKey:c,usedLng:p,usedNS:h,usedParams:this.getUsedParamsDetails(i)}:c}const y=this.resolve(t,i);let v=y&&y.res;const x=y&&y.usedKey||c,S=y&&y.exactUsedKey||c,C=Object.prototype.toString.apply(v),T=["[object Number]","[object Function]","[object RegExp]"],D=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,L=!this.i18nFormat||this.i18nFormat.handleAsObject,R=!Ee(v)&&typeof v!="boolean"&&typeof v!="number";if(L&&v&&R&&T.indexOf(C)<0&&!(Ee(D)&&Array.isArray(v))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,v,{...i,ns:f}):`key '${c} (${this.language})' returned an object instead of string.`;return o?(y.res=w,y.usedParams=this.getUsedParamsDetails(i),y):w}if(l){const w=Array.isArray(v),M=w?[]:{},N=w?S:x;for(const k in v)if(Object.prototype.hasOwnProperty.call(v,k)){const B=`${N}${l}${k}`;M[k]=this.translate(B,{...i,joinArrays:!1,ns:f}),M[k]===B&&(M[k]=v[k])}v=M}}else if(L&&Ee(D)&&Array.isArray(v))v=v.join(D),v&&(v=this.extendTranslation(v,t,i,s));else{let w=!1,M=!1;const N=i.count!==void 0&&!Ee(i.count),k=df.hasDefaultValue(i),B=N?this.pluralResolver.getSuffix(p,i.count,i):"",G=i.ordinal&&N?this.pluralResolver.getSuffix(p,i.count,{ordinal:!1}):"",Q=N&&!i.ordinal&&i.count===0&&this.pluralResolver.shouldUseIntlApi(),J=Q&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${B}`]||i[`defaultValue${G}`]||i.defaultValue;!this.isValidLookup(v)&&k&&(w=!0,v=J),this.isValidLookup(v)||(M=!0,v=c);const Z=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&M?void 0:v,F=k&&J!==v&&this.options.updateMissing;if(M||w||F){if(this.logger.log(F?"updateKey":"missingKey",p,h,c,F?J:v),l){const ee=this.resolve(c,{...i,keySeparator:!1});ee&&ee.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Y=[];const P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&P&&P[0])for(let ee=0;ee<P.length;ee++)Y.push(P[ee]);else this.options.saveMissingTo==="all"?Y=this.languageUtils.toResolveHierarchy(i.lng||this.language):Y.push(i.lng||this.language);const I=(ee,se,le)=>{const z=k&&le!==v?le:Z;this.options.missingKeyHandler?this.options.missingKeyHandler(ee,h,se,z,F,i):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(ee,h,se,z,F,i),this.emit("missingKey",ee,h,se,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&N?Y.forEach(ee=>{const se=this.pluralResolver.getSuffixes(ee,i);Q&&i[`defaultValue${this.options.pluralSeparator}zero`]&&se.indexOf(`${this.options.pluralSeparator}zero`)<0&&se.push(`${this.options.pluralSeparator}zero`),se.forEach(le=>{I([ee],c+le,i[`defaultValue${le}`]||J)})}):I(Y,c,J))}v=this.extendTranslation(v,t,i,y,s),M&&v===c&&this.options.appendNamespaceToMissingKey&&(v=`${h}:${c}`),(M||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?v=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${h}:${c}`:c,w?v:void 0):v=this.options.parseMissingKeyHandler(v))}return o?(y.res=v,y.usedParams=this.getUsedParamsDetails(i),y):v}extendTranslation(t,i,s,o,l){var c=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const p=Ee(t)&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let g;if(p){const v=t.match(this.interpolator.nestingRegexp);g=v&&v.length}let y=s.replace&&!Ee(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(y={...this.options.interpolation.defaultVariables,...y}),t=this.interpolator.interpolate(t,y,s.lng||this.language||o.usedLng,s),p){const v=t.match(this.interpolator.nestingRegexp),x=v&&v.length;g<x&&(s.nest=!1)}!s.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(s.lng=this.language||o.usedLng),s.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var v=arguments.length,x=new Array(v),S=0;S<v;S++)x[S]=arguments[S];return l&&l[0]===x[0]&&!s.context?(c.logger.warn(`It seems you are nesting recursively key: ${x[0]} in key: ${i[0]}`),null):c.translate(...x,i)},s)),s.interpolation&&this.interpolator.reset()}const f=s.postProcess||this.options.postProcess,h=Ee(f)?[f]:f;return t!=null&&h&&h.length&&s.applyPostProcessor!==!1&&(t=$E.handle(h,t,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),t}resolve(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,o,l,c,f;return Ee(t)&&(t=[t]),t.forEach(h=>{if(this.isValidLookup(s))return;const p=this.extractFromKey(h,i),g=p.key;o=g;let y=p.namespaces;this.options.fallbackNS&&(y=y.concat(this.options.fallbackNS));const v=i.count!==void 0&&!Ee(i.count),x=v&&!i.ordinal&&i.count===0&&this.pluralResolver.shouldUseIntlApi(),S=i.context!==void 0&&(Ee(i.context)||typeof i.context=="number")&&i.context!=="",C=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);y.forEach(T=>{this.isValidLookup(s)||(f=T,!ZC[`${C[0]}-${T}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(f)&&(ZC[`${C[0]}-${T}`]=!0,this.logger.warn(`key "${o}" for languages "${C.join(", ")}" won't get resolved as namespace "${f}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),C.forEach(D=>{if(this.isValidLookup(s))return;c=D;const L=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(L,g,D,T,i);else{let w;v&&(w=this.pluralResolver.getSuffix(D,i.count,i));const M=`${this.options.pluralSeparator}zero`,N=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(L.push(g+w),i.ordinal&&w.indexOf(N)===0&&L.push(g+w.replace(N,this.options.pluralSeparator)),x&&L.push(g+M)),S){const k=`${g}${this.options.contextSeparator}${i.context}`;L.push(k),v&&(L.push(k+w),i.ordinal&&w.indexOf(N)===0&&L.push(k+w.replace(N,this.options.pluralSeparator)),x&&L.push(k+M))}}let R;for(;R=L.pop();)this.isValidLookup(s)||(l=R,s=this.getResource(D,T,R,i))}))})}),{res:s,usedKey:o,exactUsedKey:l,usedLng:c,usedNS:f}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,i,s){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,i,s,o):this.resourceStore.getResource(t,i,s,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=t.replace&&!Ee(t.replace);let o=s?t.replace:t;if(s&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!s){o={...o};for(const l of i)delete o[l]}return o}static hasDefaultValue(t){const i="defaultValue";for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&i===s.substring(0,i.length)&&t[s]!==void 0)return!0;return!1}}const em=e=>e.charAt(0).toUpperCase()+e.slice(1);class JC{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Di.create("languageUtils")}getScriptPartFromCode(t){if(t=cf(t),!t||t.indexOf("-")<0)return null;const i=t.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(t){if(t=cf(t),!t||t.indexOf("-")<0)return t;const i=t.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(t){if(Ee(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let o=Intl.getCanonicalLocales(t)[0];if(o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o)return o}catch{}const i=["hans","hant","latn","cyrl","cans","mong","arab"];let s=t.split("-");return this.options.lowerCaseLng?s=s.map(o=>o.toLowerCase()):s.length===2?(s[0]=s[0].toLowerCase(),s[1]=s[1].toUpperCase(),i.indexOf(s[1].toLowerCase())>-1&&(s[1]=em(s[1].toLowerCase()))):s.length===3&&(s[0]=s[0].toLowerCase(),s[1].length===2&&(s[1]=s[1].toUpperCase()),s[0]!=="sgn"&&s[2].length===2&&(s[2]=s[2].toUpperCase()),i.indexOf(s[1].toLowerCase())>-1&&(s[1]=em(s[1].toLowerCase())),i.indexOf(s[2].toLowerCase())>-1&&(s[2]=em(s[2].toLowerCase()))),s.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let i;return t.forEach(s=>{if(i)return;const o=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(o))&&(i=o)}),!i&&this.options.supportedLngs&&t.forEach(s=>{if(i)return;const o=this.getLanguagePartFromCode(s);if(this.isSupportedCode(o))return i=o;i=this.options.supportedLngs.find(l=>{if(l===o)return l;if(!(l.indexOf("-")<0&&o.indexOf("-")<0)&&(l.indexOf("-")>0&&o.indexOf("-")<0&&l.substring(0,l.indexOf("-"))===o||l.indexOf(o)===0&&o.length>1))return l})}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(t,i){if(!t)return[];if(typeof t=="function"&&(t=t(i)),Ee(t)&&(t=[t]),Array.isArray(t))return t;if(!i)return t.default||[];let s=t[i];return s||(s=t[this.getScriptPartFromCode(i)]),s||(s=t[this.formatLanguageCode(i)]),s||(s=t[this.getLanguagePartFromCode(i)]),s||(s=t.default),s||[]}toResolveHierarchy(t,i){const s=this.getFallbackCodes(i||this.options.fallbackLng||[],t),o=[],l=c=>{c&&(this.isSupportedCode(c)?o.push(c):this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`))};return Ee(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(t))):Ee(t)&&l(this.formatLanguageCode(t)),s.forEach(c=>{o.indexOf(c)<0&&l(this.formatLanguageCode(c))}),o}}let $U=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],HU={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const IU=["v1","v2","v3"],FU=["v4"],eT={zero:0,one:1,two:2,few:3,many:4,other:5},qU=()=>{const e={};return $U.forEach(t=>{t.lngs.forEach(i=>{e[i]={numbers:t.nr,plurals:HU[t.fc]}})}),e};class KU{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=i,this.logger=Di.create("pluralResolver"),(!this.options.compatibilityJSON||FU.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=qU(),this.pluralRulesCache={}}addRule(t,i){this.rules[t]=i}clearCache(){this.pluralRulesCache={}}getRule(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const s=cf(t==="dev"?"en":t),o=i.ordinal?"ordinal":"cardinal",l=JSON.stringify({cleanedCode:s,type:o});if(l in this.pluralRulesCache)return this.pluralRulesCache[l];let c;try{c=new Intl.PluralRules(s,{type:o})}catch{if(!t.match(/-|_/))return;const h=this.languageUtils.getLanguagePartFromCode(t);c=this.getRule(h,i)}return this.pluralRulesCache[l]=c,c}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this.getRule(t,i);return this.shouldUseIntlApi()?s&&s.resolvedOptions().pluralCategories.length>1:s&&s.numbers.length>1}getPluralFormsOfKey(t,i){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,s).map(o=>`${i}${o}`)}getSuffixes(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this.getRule(t,i);return s?this.shouldUseIntlApi()?s.resolvedOptions().pluralCategories.sort((o,l)=>eT[o]-eT[l]).map(o=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${o}`):s.numbers.map(o=>this.getSuffix(t,o,i)):[]}getSuffix(t,i){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,s);return o?this.shouldUseIntlApi()?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${o.select(i)}`:this.getSuffixRetroCompatible(o,i):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,i){const s=t.noAbs?t.plurals(i):t.plurals(Math.abs(i));let o=t.numbers[s];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const l=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:l():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?l():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}shouldUseIntlApi(){return!IU.includes(this.options.compatibilityJSON)}}const tT=function(e,t,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,l=NU(e,t,i);return!l&&o&&Ee(i)&&(l=ug(e,i,s),l===void 0&&(l=ug(t,i,s))),l},tm=e=>e.replace(/\$/g,"$$$$");class GU{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Di.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(i=>i),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:i,escapeValue:s,useRawValueToEscape:o,prefix:l,prefixEscaped:c,suffix:f,suffixEscaped:h,formatSeparator:p,unescapeSuffix:g,unescapePrefix:y,nestingPrefix:v,nestingPrefixEscaped:x,nestingSuffix:S,nestingSuffixEscaped:C,nestingOptionsSeparator:T,maxReplaces:D,alwaysFormat:L}=t.interpolation;this.escape=i!==void 0?i:kU,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=l?Sa(l):c||"{{",this.suffix=f?Sa(f):h||"}}",this.formatSeparator=p||",",this.unescapePrefix=g?"":y||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=v?Sa(v):x||Sa("$t("),this.nestingSuffix=S?Sa(S):C||Sa(")"),this.nestingOptionsSeparator=T||",",this.maxReplaces=D||1e3,this.alwaysFormat=L!==void 0?L:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(i,s)=>i&&i.source===s?(i.lastIndex=0,i):new RegExp(s,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,i,s,o){let l,c,f;const h=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=x=>{if(x.indexOf(this.formatSeparator)<0){const D=tT(i,h,x,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(D,void 0,s,{...o,...i,interpolationkey:x}):D}const S=x.split(this.formatSeparator),C=S.shift().trim(),T=S.join(this.formatSeparator).trim();return this.format(tT(i,h,C,this.options.keySeparator,this.options.ignoreJSONStructure),T,s,{...o,...i,interpolationkey:C})};this.resetRegExp();const g=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,y=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:x=>tm(x)},{regex:this.regexp,safeValue:x=>this.escapeValue?tm(this.escape(x)):tm(x)}].forEach(x=>{for(f=0;l=x.regex.exec(t);){const S=l[1].trim();if(c=p(S),c===void 0)if(typeof g=="function"){const T=g(t,l,o);c=Ee(T)?T:""}else if(o&&Object.prototype.hasOwnProperty.call(o,S))c="";else if(y){c=l[0];continue}else this.logger.warn(`missed to pass in variable ${S} for interpolating ${t}`),c="";else!Ee(c)&&!this.useRawValueToEscape&&(c=GC(c));const C=x.safeValue(c);if(t=t.replace(l[0],C),y?(x.regex.lastIndex+=c.length,x.regex.lastIndex-=l[0].length):x.regex.lastIndex=0,f++,f>=this.maxReplaces)break}}),t}nest(t,i){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,l,c;const f=(h,p)=>{const g=this.nestingOptionsSeparator;if(h.indexOf(g)<0)return h;const y=h.split(new RegExp(`${g}[ ]*{`));let v=`{${y[1]}`;h=y[0],v=this.interpolate(v,c);const x=v.match(/'/g),S=v.match(/"/g);(x&&x.length%2===0&&!S||S.length%2!==0)&&(v=v.replace(/'/g,'"'));try{c=JSON.parse(v),p&&(c={...p,...c})}catch(C){return this.logger.warn(`failed parsing options string in nesting for key ${h}`,C),`${h}${g}${v}`}return c.defaultValue&&c.defaultValue.indexOf(this.prefix)>-1&&delete c.defaultValue,h};for(;o=this.nestingRegexp.exec(t);){let h=[];c={...s},c=c.replace&&!Ee(c.replace)?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;let p=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const g=o[1].split(this.formatSeparator).map(y=>y.trim());o[1]=g.shift(),h=g,p=!0}if(l=i(f.call(this,o[1].trim(),c),c),l&&o[0]===t&&!Ee(l))return l;Ee(l)||(l=GC(l)),l||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),l=""),p&&(l=h.reduce((g,y)=>this.format(g,y,s.lng,{...s,interpolationkey:o[1].trim()}),l.trim())),t=t.replace(o[0],l),this.regexp.lastIndex=0}return t}}const YU=e=>{let t=e.toLowerCase().trim();const i={};if(e.indexOf("(")>-1){const s=e.split("(");t=s[0].toLowerCase().trim();const o=s[1].substring(0,s[1].length-1);t==="currency"&&o.indexOf(":")<0?i.currency||(i.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?i.range||(i.range=o.trim()):o.split(";").forEach(c=>{if(c){const[f,...h]=c.split(":"),p=h.join(":").trim().replace(/^'+|'+$/g,""),g=f.trim();i[g]||(i[g]=p),p==="false"&&(i[g]=!1),p==="true"&&(i[g]=!0),isNaN(p)||(i[g]=parseInt(p,10))}})}return{formatName:t,formatOptions:i}},xa=e=>{const t={};return(i,s,o)=>{let l=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(l={...l,[o.interpolationkey]:void 0});const c=s+JSON.stringify(l);let f=t[c];return f||(f=e(cf(s),o),t[c]=f),f(i)}};class XU{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Di.create("formatter"),this.options=t,this.formats={number:xa((i,s)=>{const o=new Intl.NumberFormat(i,{...s});return l=>o.format(l)}),currency:xa((i,s)=>{const o=new Intl.NumberFormat(i,{...s,style:"currency"});return l=>o.format(l)}),datetime:xa((i,s)=>{const o=new Intl.DateTimeFormat(i,{...s});return l=>o.format(l)}),relativetime:xa((i,s)=>{const o=new Intl.RelativeTimeFormat(i,{...s});return l=>o.format(l,s.range||"day")}),list:xa((i,s)=>{const o=new Intl.ListFormat(i,{...s});return l=>o.format(l)})},this.init(t)}init(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=i.interpolation.formatSeparator||","}add(t,i){this.formats[t.toLowerCase().trim()]=i}addCached(t,i){this.formats[t.toLowerCase().trim()]=xa(i)}format(t,i,s){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const l=i.split(this.formatSeparator);if(l.length>1&&l[0].indexOf("(")>1&&l[0].indexOf(")")<0&&l.find(f=>f.indexOf(")")>-1)){const f=l.findIndex(h=>h.indexOf(")")>-1);l[0]=[l[0],...l.splice(1,f)].join(this.formatSeparator)}return l.reduce((f,h)=>{const{formatName:p,formatOptions:g}=YU(h);if(this.formats[p]){let y=f;try{const v=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},x=v.locale||v.lng||o.locale||o.lng||s;y=this.formats[p](f,x,{...g,...o,...v})}catch(v){this.logger.warn(v)}return y}else this.logger.warn(`there was no format function for ${p}`);return f},t)}}const WU=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class QU extends Wf{constructor(t,i,s){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=i,this.services=s,this.languageUtils=s.languageUtils,this.options=o,this.logger=Di.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(s,o.backend,o)}queueLoad(t,i,s,o){const l={},c={},f={},h={};return t.forEach(p=>{let g=!0;i.forEach(y=>{const v=`${p}|${y}`;!s.reload&&this.store.hasResourceBundle(p,y)?this.state[v]=2:this.state[v]<0||(this.state[v]===1?c[v]===void 0&&(c[v]=!0):(this.state[v]=1,g=!1,c[v]===void 0&&(c[v]=!0),l[v]===void 0&&(l[v]=!0),h[y]===void 0&&(h[y]=!0)))}),g||(f[p]=!0)}),(Object.keys(l).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(l),pending:Object.keys(c),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(h)}}loaded(t,i,s){const o=t.split("|"),l=o[0],c=o[1];i&&this.emit("failedLoading",l,c,i),!i&&s&&this.store.addResourceBundle(l,c,s,void 0,void 0,{skipCopy:!0}),this.state[t]=i?-1:2,i&&s&&(this.state[t]=0);const f={};this.queue.forEach(h=>{LU(h.loaded,[l],c),WU(h,t),i&&h.errors.push(i),h.pendingCount===0&&!h.done&&(Object.keys(h.loaded).forEach(p=>{f[p]||(f[p]={});const g=h.loaded[p];g.length&&g.forEach(y=>{f[p][y]===void 0&&(f[p][y]=!0)})}),h.done=!0,h.errors.length?h.callback(h.errors):h.callback())}),this.emit("loaded",f),this.queue=this.queue.filter(h=>!h.done)}read(t,i,s){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!t.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:i,fcName:s,tried:o,wait:l,callback:c});return}this.readingCalls++;const f=(p,g)=>{if(this.readingCalls--,this.waitingReads.length>0){const y=this.waitingReads.shift();this.read(y.lng,y.ns,y.fcName,y.tried,y.wait,y.callback)}if(p&&g&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,i,s,o+1,l*2,c)},l);return}c(p,g)},h=this.backend[s].bind(this.backend);if(h.length===2){try{const p=h(t,i);p&&typeof p.then=="function"?p.then(g=>f(null,g)).catch(f):f(null,p)}catch(p){f(p)}return}return h(t,i,f)}prepareLoading(t,i){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();Ee(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Ee(i)&&(i=[i]);const l=this.queueLoad(t,i,s,o);if(!l.toLoad.length)return l.pending.length||o(),null;l.toLoad.forEach(c=>{this.loadOne(c)})}load(t,i,s){this.prepareLoading(t,i,{},s)}reload(t,i,s){this.prepareLoading(t,i,{reload:!0},s)}loadOne(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const s=t.split("|"),o=s[0],l=s[1];this.read(o,l,"read",void 0,void 0,(c,f)=>{c&&this.logger.warn(`${i}loading namespace ${l} for language ${o} failed`,c),!c&&f&&this.logger.log(`${i}loaded namespace ${l} for language ${o}`,f),this.loaded(t,c,f)})}saveMissing(t,i,s,o,l){let c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},f=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(i)){this.logger.warn(`did not save key "${s}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if(this.backend&&this.backend.create){const h={...c,isUpdate:l},p=this.backend.create.bind(this.backend);if(p.length<6)try{let g;p.length===5?g=p(t,i,s,o,h):g=p(t,i,s,o),g&&typeof g.then=="function"?g.then(y=>f(null,y)).catch(f):f(null,g)}catch(g){f(g)}else p(t,i,s,o,f,h)}!t||!t[0]||this.store.addResource(t[0],i,s,o)}}}const nT=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Ee(e[1])&&(t.defaultValue=e[1]),Ee(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const i=e[3]||e[2];Object.keys(i).forEach(s=>{t[s]=i[s]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),iT=e=>(Ee(e.ns)&&(e.ns=[e.ns]),Ee(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Ee(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Tc=()=>{},ZU=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(i=>{typeof e[i]=="function"&&(e[i]=e[i].bind(e))})};class Al extends Wf{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(super(),this.options=iT(t),this.services={},this.logger=Di,this.modules={external:[]},ZU(this),i&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,i),this;setTimeout(()=>{this.init(t,i)},0)}}init(){var t=this;let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof i=="function"&&(s=i,i={}),!i.defaultNS&&i.defaultNS!==!1&&i.ns&&(Ee(i.ns)?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const o=nT();this.options={...o,...this.options,...iT(i)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);const l=g=>g?typeof g=="function"?new g:g:null;if(!this.options.isClone){this.modules.logger?Di.init(l(this.modules.logger),this.options):Di.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=XU);const y=new JC(this.options);this.store=new QC(this.options.resources,this.options);const v=this.services;v.logger=Di,v.resourceStore=this.store,v.languageUtils=y,v.pluralResolver=new KU(y,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),g&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(v.formatter=l(g),v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new GU(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new QU(l(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",function(x){for(var S=arguments.length,C=new Array(S>1?S-1:0),T=1;T<S;T++)C[T-1]=arguments[T];t.emit(x,...C)}),this.modules.languageDetector&&(v.languageDetector=l(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=l(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new df(this.services,this.options),this.translator.on("*",function(x){for(var S=arguments.length,C=new Array(S>1?S-1:0),T=1;T<S;T++)C[T-1]=arguments[T];t.emit(x,...C)}),this.modules.external.forEach(x=>{x.init&&x.init(this)})}if(this.format=this.options.interpolation.format,s||(s=Tc),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=function(){return t.store[g](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=function(){return t.store[g](...arguments),t}});const h=Qo(),p=()=>{const g=(y,v)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),h.resolve(v),s(y,v)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)};return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),h}loadResources(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Tc;const o=Ee(t)?t:this.language;if(typeof t=="function"&&(s=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const l=[],c=f=>{if(!f||f==="cimode")return;this.services.languageUtils.toResolveHierarchy(f).forEach(p=>{p!=="cimode"&&l.indexOf(p)<0&&l.push(p)})};o?c(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(h=>c(h)),this.options.preload&&this.options.preload.forEach(f=>c(f)),this.services.backendConnector.load(l,this.options.ns,f=>{!f&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(f)})}else s(null)}reloadResources(t,i,s){const o=Qo();return typeof t=="function"&&(s=t,t=void 0),typeof i=="function"&&(s=i,i=void 0),t||(t=this.languages),i||(i=this.options.ns),s||(s=Tc),this.services.backendConnector.reload(t,i,l=>{o.resolve(),s(l)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&$E.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let i=0;i<this.languages.length;i++){const s=this.languages[i];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}changeLanguage(t,i){var s=this;this.isLanguageChangingTo=t;const o=Qo();this.emit("languageChanging",t);const l=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},c=(h,p)=>{p?(l(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,o.resolve(function(){return s.t(...arguments)}),i&&i(h,function(){return s.t(...arguments)})},f=h=>{!t&&!h&&this.services.languageDetector&&(h=[]);const p=Ee(h)?h:this.services.languageUtils.getBestMatchFromCodes(h);p&&(this.language||l(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(p)),this.loadResources(p,g=>{c(g,p)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?f(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(f):this.services.languageDetector.detect(f):f(t),o}getFixedT(t,i,s){var o=this;const l=function(c,f){let h;if(typeof f!="object"){for(var p=arguments.length,g=new Array(p>2?p-2:0),y=2;y<p;y++)g[y-2]=arguments[y];h=o.options.overloadTranslationOptionHandler([c,f].concat(g))}else h={...f};h.lng=h.lng||l.lng,h.lngs=h.lngs||l.lngs,h.ns=h.ns||l.ns,h.keyPrefix!==""&&(h.keyPrefix=h.keyPrefix||s||l.keyPrefix);const v=o.options.keySeparator||".";let x;return h.keyPrefix&&Array.isArray(c)?x=c.map(S=>`${h.keyPrefix}${v}${S}`):x=h.keyPrefix?`${h.keyPrefix}${v}${c}`:c,o.t(x,h)};return Ee(t)?l.lng=t:l.lngs=t,l.ns=i,l.keyPrefix=s,l}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=i.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const c=(f,h)=>{const p=this.services.backendConnector.state[`${f}|${h}`];return p===-1||p===0||p===2};if(i.precheck){const f=i.precheck(this,c);if(f!==void 0)return f}return!!(this.hasResourceBundle(s,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(s,t)&&(!o||c(l,t)))}loadNamespaces(t,i){const s=Qo();return this.options.ns?(Ee(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{s.resolve(),i&&i(o)}),s):(i&&i(),Promise.resolve())}loadLanguages(t,i){const s=Qo();Ee(t)&&(t=[t]);const o=this.options.preload||[],l=t.filter(c=>o.indexOf(c)<0&&this.services.languageUtils.isSupportedCode(c));return l.length?(this.options.preload=o.concat(l),this.loadResources(c=>{s.resolve(),i&&i(c)}),s):(i&&i(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=this.services&&this.services.languageUtils||new JC(nT());return i.indexOf(s.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;return new Al(t,i)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Tc;const s=t.forkResourceStore;s&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},l=new Al(o);return(t.debug!==void 0||t.prefix!==void 0)&&(l.logger=l.logger.clone(t)),["store","services","language"].forEach(f=>{l[f]=this[f]}),l.services={...this.services},l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},s&&(l.store=new QC(this.store.data,o),l.services.resourceStore=l.store),l.translator=new df(l.services,o),l.translator.on("*",function(f){for(var h=arguments.length,p=new Array(h>1?h-1:0),g=1;g<h;g++)p[g-1]=arguments[g];l.emit(f,...p)}),l.init(o,i),l.translator.options=o,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ht=Al.createInstance();Ht.createInstance=Al.createInstance;Ht.createInstance;Ht.dir;Ht.init;Ht.loadResources;Ht.reloadResources;Ht.use;Ht.changeLanguage;Ht.getFixedT;Ht.t;Ht.exists;Ht.setDefaultNamespace;Ht.hasLoadedNamespace;Ht.loadNamespaces;Ht.loadLanguages;const rT={en:{common:{language_switch_label:"Language",language_en:"English",language_de:"German",source_url:"URL overridden",source_user:"Custom selected",source_navigator:"Browser setting",source_default:"Default locale",reset:"Reset",logout:"Logout"},server:{checking_session:"Checking existing session...",already_logged_in:"Already Logged In! ✓",already_auth:"You're already authenticated with DQM",redirecting_in:"Redirecting in {{count}} second",redirecting_in_plural:"Redirecting in {{count}} seconds",pause:"Pause",resume:"Resume",continue:"Continue now",logout:"Logout",go_back:"Back to login",login_heading:"Authenticate to DQM",login_subheading:"Enter your API Key and Website ID to continue",api_key:"API Key",website_id:"Website ID",sign_in:"Sign In",signin_loading:"Signing in...",credentials_note:"Your credentials will be stored securely for future sessions",countdown_label:"Redirecting in {{seconds}}s...",auto_redirect_title:"Already Logged In! ✓",auto_redirect_message:"You're already authenticated with DQM",auth_failed:"Authentication Failed",processing_auth:"Processing authentication...",auth_success:"Success!",auth_wait:"Please wait while we complete your sign-in",auth_close:"Authentication successful! You can close this window.",auth_retry:"Please close this window and try again",auth_loading:"Authenticating...",session_website_id:"Website ID:",session_label:"Session:",session_active:"Active",brand_title:"Crownpeak DQM",brand_subtitle:"Digital Quality Management Platform",footer:"© 2025 Crownpeak Technology GmbH · Powered by Crownpeak DQM"}},de:{common:{language_switch_label:"Sprache",language_en:"Englisch",language_de:"Deutsch",source_url:"URL-Override",source_user:"Durch Benutzer ausgewählt",source_navigator:"Browser-Einstellung",source_default:"Standard-Sprache",reset:"Zurücksetzen",logout:"Abmelden"},server:{checking_session:"Bestehende Sitzung wird geprüft...",already_logged_in:"Bereits eingeloggt! ✓",already_auth:"Sie sind bereits bei DQM angemeldet",redirecting_in:"Weiterleitung in {{count}} Sekunde",redirecting_in_plural:"Weiterleitung in {{count}} Sekunden",pause:"Pause",resume:"Fortsetzen",continue:"Jetzt fortfahren",logout:"Abmelden",go_back:"Zurück zum Login",login_heading:"Bei DQM anmelden",login_subheading:"API-Schlüssel und Website-ID eingeben",api_key:"API-Schlüssel",website_id:"Website-ID",sign_in:"Anmelden",signin_loading:"Anmeldung läuft...",credentials_note:"Ihre Zugangsdaten werden sicher für zukünftige Sitzungen gespeichert",countdown_label:"Weiterleitung in {{seconds}}s...",auto_redirect_title:"Bereits eingeloggt! ✓",auto_redirect_message:"Sie sind bereits bei DQM angemeldet",auth_failed:"Authentifizierung fehlgeschlagen",processing_auth:"Authentifizierung wird verarbeitet...",auth_success:"Erfolg!",auth_wait:"Bitte warten Sie, während wir den Login abschließen",auth_close:"Authentifizierung erfolgreich! Sie können dieses Fenster schließen.",auth_retry:"Bitte schließen Sie dieses Fenster und versuchen Sie es erneut",auth_loading:"Authentifizierung läuft...",session_website_id:"Website-ID:",session_label:"Sitzung:",session_active:"Aktiv",brand_title:"Crownpeak DQM",brand_subtitle:"Plattform für Digitales Qualitätsmanagement",footer:"© 2025 Crownpeak Technology GmbH · Powered by Crownpeak DQM"}}};Ht.use(oN).init({resources:rT,lng:fr,fallbackLng:fr,interpolation:{escapeValue:!1},defaultNS:"common",supportedLngs:Object.keys(rT)});const JU=Mf({palette:{mode:"light",primary:{main:"#1976d2",dark:"#115293"},secondary:{main:"#dc004e"}},typography:{fontFamily:'"Inter", "Roboto", "Helvetica", "Arial", sans-serif'},shape:{borderRadius:12},components:{MuiButton:{styleOverrides:{root:{borderRadius:8}}},MuiCard:{styleOverrides:{root:{borderRadius:16}}}}}),e8=()=>window.location.pathname==="/auth/callback"?_.jsx(MU,{}):_.jsx(OU,{});if(typeof window<"u"){const e=Rl(window.location.search,lf(),navigator.language,fr);wa.dispatch(qC(e)),Ht.changeLanguage(e.locale),window.addEventListener("languagechange",()=>{const t=wa.getState().locale;if(t.userOverride||t.source==="url")return;const i=Rl(window.location.search,lf(),navigator.language,fr);wa.dispatch(qC(i)),Ht.changeLanguage(i.locale)}),wa.subscribe(()=>{const t=wa.getState().locale;Ht.changeLanguage(t.locale)})}fO.createRoot(document.getElementById("root")).render(_.jsx(ti.StrictMode,{children:_.jsx(X4,{store:wa,children:_.jsx(fN,{i18n:Ht,children:_.jsxs(K3,{theme:JU,children:[_.jsx(I_,{}),_.jsx(e8,{})]})})})}));