function iE(e,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const l in a)if(l!=="default"&&!(l in e)){const s=Object.getOwnPropertyDescriptor(a,l);s&&Object.defineProperty(e,l,s.get?s:{enumerable:!0,get:()=>a[l]})}}}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 l of document.querySelectorAll('link[rel="modulepreload"]'))a(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&a(u)}).observe(document,{childList:!0,subtree:!0});function r(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(l){if(l.ep)return;l.ep=!0;const s=r(l);fetch(l.href,s)}})();function Kc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ip={exports:{}},Hl={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var gv;function aE(){if(gv)return Hl;gv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(a,l,s){var u=null;if(s!==void 0&&(u=""+s),l.key!==void 0&&(u=""+l.key),"key"in l){s={};for(var f in l)f!=="key"&&(s[f]=l[f])}else s=l;return l=s.ref,{$$typeof:e,type:a,key:u,ref:l!==void 0?l:null,props:s}}return Hl.Fragment=t,Hl.jsx=r,Hl.jsxs=r,Hl}var yv;function oE(){return yv||(yv=1,Ip.exports=aE()),Ip.exports}var w=oE(),$p={exports:{}},Ue={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var bv;function lE(){if(bv)return Ue;bv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.iterator;function v(k){return k===null||typeof k!="object"?null:(k=g&&k[g]||k["@@iterator"],typeof k=="function"?k:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,C={};function R(k,K,re){this.props=k,this.context=K,this.refs=C,this.updater=re||b}R.prototype.isReactComponent={},R.prototype.setState=function(k,K){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,K,"setState")},R.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function E(){}E.prototype=R.prototype;function M(k,K,re){this.props=k,this.context=K,this.refs=C,this.updater=re||b}var O=M.prototype=new E;O.constructor=M,x(O,R.prototype),O.isPureReactComponent=!0;var L=Array.isArray,j={H:null,A:null,T:null,S:null,V:null},z=Object.prototype.hasOwnProperty;function I(k,K,re,P,se,me){return re=me.ref,{$$typeof:e,type:k,key:K,ref:re!==void 0?re:null,props:me}}function V(k,K){return I(k.type,K,void 0,void 0,void 0,k.props)}function F(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function N(k){var K={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(re){return K[re]})}var q=/\/+/g;function A(k,K){return typeof k=="object"&&k!==null&&k.key!=null?N(""+k.key):K.toString(36)}function B(){}function H(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(B,B):(k.status="pending",k.then(function(K){k.status==="pending"&&(k.status="fulfilled",k.value=K)},function(K){k.status==="pending"&&(k.status="rejected",k.reason=K)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function U(k,K,re,P,se){var me=typeof k;(me==="undefined"||me==="boolean")&&(k=null);var fe=!1;if(k===null)fe=!0;else switch(me){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(k.$$typeof){case e:case t:fe=!0;break;case m:return fe=k._init,U(fe(k._payload),K,re,P,se)}}if(fe)return se=se(k),fe=P===""?"."+A(k,0):P,L(se)?(re="",fe!=null&&(re=fe.replace(q,"$&/")+"/"),U(se,K,re,"",function(be){return be})):se!=null&&(F(se)&&(se=V(se,re+(se.key==null||k&&k.key===se.key?"":(""+se.key).replace(q,"$&/")+"/")+fe)),K.push(se)),1;fe=0;var ce=P===""?".":P+":";if(L(k))for(var ye=0;ye<k.length;ye++)P=k[ye],me=ce+A(P,ye),fe+=U(P,K,re,me,se);else if(ye=v(k),typeof ye=="function")for(k=ye.call(k),ye=0;!(P=k.next()).done;)P=P.value,me=ce+A(P,ye++),fe+=U(P,K,re,me,se);else if(me==="object"){if(typeof k.then=="function")return U(H(k),K,re,P,se);throw K=String(k),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return fe}function _(k,K,re){if(k==null)return k;var P=[],se=0;return U(k,P,"","",function(me){return K.call(re,me,se++)}),P}function G(k){if(k._status===-1){var K=k._result;K=K(),K.then(function(re){(k._status===0||k._status===-1)&&(k._status=1,k._result=re)},function(re){(k._status===0||k._status===-1)&&(k._status=2,k._result=re)}),k._status===-1&&(k._status=0,k._result=K)}if(k._status===1)return k._result.default;throw k._result}var Z=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)};function J(){}return Ue.Children={map:_,forEach:function(k,K,re){_(k,function(){K.apply(this,arguments)},re)},count:function(k){var K=0;return _(k,function(){K++}),K},toArray:function(k){return _(k,function(K){return K})||[]},only:function(k){if(!F(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},Ue.Component=R,Ue.Fragment=r,Ue.Profiler=l,Ue.PureComponent=M,Ue.StrictMode=a,Ue.Suspense=d,Ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,Ue.__COMPILER_RUNTIME={__proto__:null,c:function(k){return j.H.useMemoCache(k)}},Ue.cache=function(k){return function(){return k.apply(null,arguments)}},Ue.cloneElement=function(k,K,re){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var P=x({},k.props),se=k.key,me=void 0;if(K!=null)for(fe in K.ref!==void 0&&(me=void 0),K.key!==void 0&&(se=""+K.key),K)!z.call(K,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&K.ref===void 0||(P[fe]=K[fe]);var fe=arguments.length-2;if(fe===1)P.children=re;else if(1<fe){for(var ce=Array(fe),ye=0;ye<fe;ye++)ce[ye]=arguments[ye+2];P.children=ce}return I(k.type,se,void 0,void 0,me,P)},Ue.createContext=function(k){return k={$$typeof:u,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:s,_context:k},k},Ue.createElement=function(k,K,re){var P,se={},me=null;if(K!=null)for(P in K.key!==void 0&&(me=""+K.key),K)z.call(K,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(se[P]=K[P]);var fe=arguments.length-2;if(fe===1)se.children=re;else if(1<fe){for(var ce=Array(fe),ye=0;ye<fe;ye++)ce[ye]=arguments[ye+2];se.children=ce}if(k&&k.defaultProps)for(P in fe=k.defaultProps,fe)se[P]===void 0&&(se[P]=fe[P]);return I(k,me,void 0,void 0,null,se)},Ue.createRef=function(){return{current:null}},Ue.forwardRef=function(k){return{$$typeof:f,render:k}},Ue.isValidElement=F,Ue.lazy=function(k){return{$$typeof:m,_payload:{_status:-1,_result:k},_init:G}},Ue.memo=function(k,K){return{$$typeof:p,type:k,compare:K===void 0?null:K}},Ue.startTransition=function(k){var K=j.T,re={};j.T=re;try{var P=k(),se=j.S;se!==null&&se(re,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(J,Z)}catch(me){Z(me)}finally{j.T=K}},Ue.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},Ue.use=function(k){return j.H.use(k)},Ue.useActionState=function(k,K,re){return j.H.useActionState(k,K,re)},Ue.useCallback=function(k,K){return j.H.useCallback(k,K)},Ue.useContext=function(k){return j.H.useContext(k)},Ue.useDebugValue=function(){},Ue.useDeferredValue=function(k,K){return j.H.useDeferredValue(k,K)},Ue.useEffect=function(k,K,re){var P=j.H;if(typeof re=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return P.useEffect(k,K)},Ue.useId=function(){return j.H.useId()},Ue.useImperativeHandle=function(k,K,re){return j.H.useImperativeHandle(k,K,re)},Ue.useInsertionEffect=function(k,K){return j.H.useInsertionEffect(k,K)},Ue.useLayoutEffect=function(k,K){return j.H.useLayoutEffect(k,K)},Ue.useMemo=function(k,K){return j.H.useMemo(k,K)},Ue.useOptimistic=function(k,K){return j.H.useOptimistic(k,K)},Ue.useReducer=function(k,K,re){return j.H.useReducer(k,K,re)},Ue.useRef=function(k){return j.H.useRef(k)},Ue.useState=function(k){return j.H.useState(k)},Ue.useSyncExternalStore=function(k,K,re){return j.H.useSyncExternalStore(k,K,re)},Ue.useTransition=function(){return j.H.useTransition()},Ue.version="19.1.1",Ue}var vv;function cm(){return vv||(vv=1,$p.exports=lE()),$p.exports}var S=cm();const gr=Kc(S),Dc=iE({__proto__:null,default:gr},[S]);var Hp={exports:{}},Ul={},Up={exports:{}},Fp={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var xv;function sE(){return xv||(xv=1,(function(e){function t(_,G){var Z=_.length;_.push(G);e:for(;0<Z;){var J=Z-1>>>1,k=_[J];if(0<l(k,G))_[J]=G,_[Z]=k,Z=J;else break e}}function r(_){return _.length===0?null:_[0]}function a(_){if(_.length===0)return null;var G=_[0],Z=_.pop();if(Z!==G){_[0]=Z;e:for(var J=0,k=_.length,K=k>>>1;J<K;){var re=2*(J+1)-1,P=_[re],se=re+1,me=_[se];if(0>l(P,Z))se<k&&0>l(me,P)?(_[J]=me,_[se]=Z,J=se):(_[J]=P,_[re]=Z,J=re);else if(se<k&&0>l(me,Z))_[J]=me,_[se]=Z,J=se;else break e}}return G}function l(_,G){var Z=_.sortIndex-G.sortIndex;return Z!==0?Z:_.id-G.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var d=[],p=[],m=1,g=null,v=3,b=!1,x=!1,C=!1,R=!1,E=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function L(_){for(var G=r(p);G!==null;){if(G.callback===null)a(p);else if(G.startTime<=_)a(p),G.sortIndex=G.expirationTime,t(d,G);else break;G=r(p)}}function j(_){if(C=!1,L(_),!x)if(r(d)!==null)x=!0,z||(z=!0,A());else{var G=r(p);G!==null&&U(j,G.startTime-_)}}var z=!1,I=-1,V=5,F=-1;function N(){return R?!0:!(e.unstable_now()-F<V)}function q(){if(R=!1,z){var _=e.unstable_now();F=_;var G=!0;try{e:{x=!1,C&&(C=!1,M(I),I=-1),b=!0;var Z=v;try{t:{for(L(_),g=r(d);g!==null&&!(g.expirationTime>_&&N());){var J=g.callback;if(typeof J=="function"){g.callback=null,v=g.priorityLevel;var k=J(g.expirationTime<=_);if(_=e.unstable_now(),typeof k=="function"){g.callback=k,L(_),G=!0;break t}g===r(d)&&a(d),L(_)}else a(d);g=r(d)}if(g!==null)G=!0;else{var K=r(p);K!==null&&U(j,K.startTime-_),G=!1}}break e}finally{g=null,v=Z,b=!1}G=void 0}}finally{G?A():z=!1}}}var A;if(typeof O=="function")A=function(){O(q)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,H=B.port2;B.port1.onmessage=q,A=function(){H.postMessage(null)}}else A=function(){E(q,0)};function U(_,G){I=E(function(){_(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(_){_.callback=null},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(_){switch(v){case 1:case 2:case 3:var G=3;break;default:G=v}var Z=v;v=G;try{return _()}finally{v=Z}},e.unstable_requestPaint=function(){R=!0},e.unstable_runWithPriority=function(_,G){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var Z=v;v=_;try{return G()}finally{v=Z}},e.unstable_scheduleCallback=function(_,G,Z){var J=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?J+Z:J):Z=J,_){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=Z+k,_={id:m++,callback:G,priorityLevel:_,startTime:Z,expirationTime:k,sortIndex:-1},Z>J?(_.sortIndex=Z,t(p,_),r(d)===null&&_===r(p)&&(C?(M(I),I=-1):C=!0,U(j,Z-J))):(_.sortIndex=k,t(d,_),x||b||(x=!0,z||(z=!0,A()))),_},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(_){var G=v;return function(){var Z=v;v=G;try{return _.apply(this,arguments)}finally{v=Z}}}})(Fp)),Fp}var Sv;function uE(){return Sv||(Sv=1,Up.exports=sE()),Up.exports}var qp={exports:{}},pn={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var wv;function cE(){if(wv)return pn;wv=1;var e=cm();function t(d){var p="https://react.dev/errors/"+d;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)p+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var a={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},l=Symbol.for("react.portal");function s(d,p,m){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:g==null?null:""+g,children:d,containerInfo:p,implementation:m}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,p){if(d==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return pn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,pn.createPortal=function(d,p){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return s(d,p,null,m)},pn.flushSync=function(d){var p=u.T,m=a.p;try{if(u.T=null,a.p=2,d)return d()}finally{u.T=p,a.p=m,a.d.f()}},pn.preconnect=function(d,p){typeof d=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,a.d.C(d,p))},pn.prefetchDNS=function(d){typeof d=="string"&&a.d.D(d)},pn.preinit=function(d,p){if(typeof d=="string"&&p&&typeof p.as=="string"){var m=p.as,g=f(m,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,b=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;m==="style"?a.d.S(d,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:b}):m==="script"&&a.d.X(d,{crossOrigin:g,integrity:v,fetchPriority:b,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},pn.preinitModule=function(d,p){if(typeof d=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var m=f(p.as,p.crossOrigin);a.d.M(d,{crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&a.d.M(d)},pn.preload=function(d,p){if(typeof d=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var m=p.as,g=f(m,p.crossOrigin);a.d.L(d,m,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},pn.preloadModule=function(d,p){if(typeof d=="string")if(p){var m=f(p.as,p.crossOrigin);a.d.m(d,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else a.d.m(d)},pn.requestFormReset=function(d){a.d.r(d)},pn.unstable_batchedUpdates=function(d,p){return d(p)},pn.useFormState=function(d,p,m){return u.H.useFormState(d,p,m)},pn.useFormStatus=function(){return u.H.useHostTransitionStatus()},pn.version="19.1.1",pn}var Cv;function Xx(){if(Cv)return qp.exports;Cv=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(),qp.exports=cE(),qp.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var kv;function fE(){if(kv)return Ul;kv=1;var e=uE(),t=cm(),r=Xx();function a(n){var i="https://react.dev/errors/"+n;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)i+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function s(n){var i=n,o=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(o=i.return),n=i.return;while(n)}return i.tag===3?o:null}function u(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function f(n){if(s(n)!==n)throw Error(a(188))}function d(n){var i=n.alternate;if(!i){if(i=s(n),i===null)throw Error(a(188));return i!==n?null:n}for(var o=n,c=i;;){var h=o.return;if(h===null)break;var y=h.alternate;if(y===null){if(c=h.return,c!==null){o=c;continue}break}if(h.child===y.child){for(y=h.child;y;){if(y===o)return f(h),n;if(y===c)return f(h),i;y=y.sibling}throw Error(a(188))}if(o.return!==c.return)o=h,c=y;else{for(var T=!1,D=h.child;D;){if(D===o){T=!0,o=h,c=y;break}if(D===c){T=!0,c=h,o=y;break}D=D.sibling}if(!T){for(D=y.child;D;){if(D===o){T=!0,o=y,c=h;break}if(D===c){T=!0,c=y,o=h;break}D=D.sibling}if(!T)throw Error(a(189))}}if(o.alternate!==c)throw Error(a(190))}if(o.tag!==3)throw Error(a(188));return o.stateNode.current===o?n:i}function p(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=p(n),i!==null)return i;n=n.sibling}return null}var m=Object.assign,g=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),M=Symbol.for("react.consumer"),O=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),N=Symbol.for("react.memo_cache_sentinel"),q=Symbol.iterator;function A(n){return n===null||typeof n!="object"?null:(n=q&&n[q]||n["@@iterator"],typeof n=="function"?n:null)}var B=Symbol.for("react.client.reference");function H(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===B?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case x:return"Fragment";case R:return"Profiler";case C:return"StrictMode";case j:return"Suspense";case z:return"SuspenseList";case F:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case b:return"Portal";case O:return(n.displayName||"Context")+".Provider";case M:return(n._context.displayName||"Context")+".Consumer";case L:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case I:return i=n.displayName||null,i!==null?i:H(n.type)||"Memo";case V:i=n._payload,n=n._init;try{return H(n(i))}catch{}}return null}var U=Array.isArray,_=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},J=[],k=-1;function K(n){return{current:n}}function re(n){0>k||(n.current=J[k],J[k]=null,k--)}function P(n,i){k++,J[k]=n.current,n.current=i}var se=K(null),me=K(null),fe=K(null),ce=K(null);function ye(n,i){switch(P(fe,i),P(me,n),P(se,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?qb(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=qb(i),n=Vb(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}re(se),P(se,n)}function be(){re(se),re(me),re(fe)}function ve(n){n.memoizedState!==null&&P(ce,n);var i=se.current,o=Vb(i,n.type);i!==o&&(P(me,n),P(se,o))}function pe(n){me.current===n&&(re(se),re(me)),ce.current===n&&(re(ce),Nl._currentValue=Z)}var ge=Object.prototype.hasOwnProperty,Ce=e.unstable_scheduleCallback,de=e.unstable_cancelCallback,Oe=e.unstable_shouldYield,ze=e.unstable_requestPaint,Me=e.unstable_now,qe=e.unstable_getCurrentPriorityLevel,Xe=e.unstable_ImmediatePriority,Ze=e.unstable_UserBlockingPriority,We=e.unstable_NormalPriority,Ee=e.unstable_LowPriority,Ut=e.unstable_IdlePriority,ht=e.log,tn=e.unstable_setDisableYieldValue,ne=null,ie=null;function Se(n){if(typeof ht=="function"&&tn(n),ie&&typeof ie.setStrictMode=="function")try{ie.setStrictMode(ne,n)}catch{}}var we=Math.clz32?Math.clz32:Pt,$e=Math.log,Le=Math.LN2;function Pt(n){return n>>>=0,n===0?32:31-($e(n)/Le|0)|0}var kt=256,Qt=4194304;function Re(n){var i=n&42;if(i!==0)return i;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:case 262144:case 524288:case 1048576:case 2097152:return n&4194048;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 Be(n,i,o){var c=n.pendingLanes;if(c===0)return 0;var h=0,y=n.suspendedLanes,T=n.pingedLanes;n=n.warmLanes;var D=c&134217727;return D!==0?(c=D&~y,c!==0?h=Re(c):(T&=D,T!==0?h=Re(T):o||(o=D&~n,o!==0&&(h=Re(o))))):(D=c&~y,D!==0?h=Re(D):T!==0?h=Re(T):o||(o=c&~n,o!==0&&(h=Re(o)))),h===0?0:i!==0&&i!==h&&(i&y)===0&&(y=h&-h,o=i&-i,y>=o||y===32&&(o&4194048)!==0)?i:h}function st(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}function zt(n,i){switch(n){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 Vi(){var n=kt;return kt<<=1,(kt&4194048)===0&&(kt=256),n}function Ys(){var n=Qt;return Qt<<=1,(Qt&62914560)===0&&(Qt=4194304),n}function Vo(n){for(var i=[],o=0;31>o;o++)i.push(n);return i}function Yi(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Of(n,i,o,c,h,y){var T=n.pendingLanes;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=o,n.entangledLanes&=o,n.errorRecoveryDisabledLanes&=o,n.shellSuspendCounter=0;var D=n.entanglements,$=n.expirationTimes,Q=n.hiddenUpdates;for(o=T&~o;0<o;){var oe=31-we(o),ue=1<<oe;D[oe]=0,$[oe]=-1;var ee=Q[oe];if(ee!==null)for(Q[oe]=null,oe=0;oe<ee.length;oe++){var te=ee[oe];te!==null&&(te.lane&=-536870913)}o&=~ue}c!==0&&Gs(n,c,0),y!==0&&h===0&&n.tag!==0&&(n.suspendedLanes|=y&~(T&~i))}function Gs(n,i,o){n.pendingLanes|=i,n.suspendedLanes&=~i;var c=31-we(i);n.entangledLanes|=i,n.entanglements[c]=n.entanglements[c]|1073741824|o&4194090}function Xs(n,i){var o=n.entangledLanes|=i;for(n=n.entanglements;o;){var c=31-we(o),h=1<<c;h&i|n[c]&i&&(n[c]|=i),o&=~h}}function Yo(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 He(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function dr(){var n=G.p;return n!==0?n:(n=window.event,n===void 0?32:cv(n.type))}function GC(n,i){var o=G.p;try{return G.p=n,i()}finally{G.p=o}}var di=Math.random().toString(36).slice(2),fn="__reactFiber$"+di,kn="__reactProps$"+di,Ra="__reactContainer$"+di,zf="__reactEvents$"+di,XC="__reactListeners$"+di,WC="__reactHandles$"+di,Dg="__reactResources$"+di,Go="__reactMarker$"+di;function Df(n){delete n[fn],delete n[kn],delete n[zf],delete n[XC],delete n[WC]}function Aa(n){var i=n[fn];if(i)return i;for(var o=n.parentNode;o;){if(i=o[Ra]||o[fn]){if(o=i.alternate,i.child!==null||o!==null&&o.child!==null)for(n=Wb(n);n!==null;){if(o=n[fn])return o;n=Wb(n)}return i}n=o,o=n.parentNode}return null}function Ma(n){if(n=n[fn]||n[Ra]){var i=n.tag;if(i===5||i===6||i===13||i===26||i===27||i===3)return n}return null}function Xo(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error(a(33))}function Oa(n){var i=n[Dg];return i||(i=n[Dg]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function nn(n){n[Go]=!0}var jg=new Set,Lg={};function Gi(n,i){za(n,i),za(n+"Capture",i)}function za(n,i){for(Lg[n]=i,n=0;n<i.length;n++)jg.add(i[n])}var KC=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]*$"),Pg={},Ng={};function QC(n){return ge.call(Ng,n)?!0:ge.call(Pg,n)?!1:KC.test(n)?Ng[n]=!0:(Pg[n]=!0,!1)}function Ws(n,i,o){if(QC(i))if(o===null)n.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":n.removeAttribute(i);return;case"boolean":var c=i.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){n.removeAttribute(i);return}}n.setAttribute(i,""+o)}}function Ks(n,i,o){if(o===null)n.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttribute(i,""+o)}}function Hr(n,i,o,c){if(c===null)n.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(o);return}n.setAttributeNS(i,o,""+c)}}var jf,_g;function Da(n){if(jf===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);jf=i&&i[1]||"",_g=-1<o.stack.indexOf(`
    at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
`+jf+n+_g}var Lf=!1;function Pf(n,i){if(!n||Lf)return"";Lf=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(i){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(te){var ee=te}Reflect.construct(n,[],ue)}else{try{ue.call()}catch(te){ee=te}n.call(ue.prototype)}}else{try{throw Error()}catch(te){ee=te}(ue=n())&&typeof ue.catch=="function"&&ue.catch(function(){})}}catch(te){if(te&&ee&&typeof te.stack=="string")return[te.stack,ee.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=c.DetermineComponentFrameRoot(),T=y[0],D=y[1];if(T&&D){var $=T.split(`
`),Q=D.split(`
`);for(h=c=0;c<$.length&&!$[c].includes("DetermineComponentFrameRoot");)c++;for(;h<Q.length&&!Q[h].includes("DetermineComponentFrameRoot");)h++;if(c===$.length||h===Q.length)for(c=$.length-1,h=Q.length-1;1<=c&&0<=h&&$[c]!==Q[h];)h--;for(;1<=c&&0<=h;c--,h--)if($[c]!==Q[h]){if(c!==1||h!==1)do if(c--,h--,0>h||$[c]!==Q[h]){var oe=`
`+$[c].replace(" at new "," at ");return n.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",n.displayName)),oe}while(1<=c&&0<=h);break}}}finally{Lf=!1,Error.prepareStackTrace=o}return(o=n?n.displayName||n.name:"")?Da(o):""}function ZC(n){switch(n.tag){case 26:case 27:case 5:return Da(n.type);case 16:return Da("Lazy");case 13:return Da("Suspense");case 19:return Da("SuspenseList");case 0:case 15:return Pf(n.type,!1);case 11:return Pf(n.type.render,!1);case 1:return Pf(n.type,!0);case 31:return Da("Activity");default:return""}}function Bg(n){try{var i="";do i+=ZC(n),n=n.return;while(n);return i}catch(o){return`
Error generating stack: `+o.message+`
`+o.stack}}function Kn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Ig(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function JC(n){var i=Ig(n)?"checked":"value",o=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),c=""+n[i];if(!n.hasOwnProperty(i)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var h=o.get,y=o.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return h.call(this)},set:function(T){c=""+T,y.call(this,T)}}),Object.defineProperty(n,i,{enumerable:o.enumerable}),{getValue:function(){return c},setValue:function(T){c=""+T},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Qs(n){n._valueTracker||(n._valueTracker=JC(n))}function $g(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var o=i.getValue(),c="";return n&&(c=Ig(n)?n.checked?"true":"false":n.value),n=c,n!==o?(i.setValue(n),!0):!1}function Zs(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 e2=/[\n"\\]/g;function Qn(n){return n.replace(e2,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Nf(n,i,o,c,h,y,T,D){n.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?n.type=T:n.removeAttribute("type"),i!=null?T==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+Kn(i)):n.value!==""+Kn(i)&&(n.value=""+Kn(i)):T!=="submit"&&T!=="reset"||n.removeAttribute("value"),i!=null?_f(n,T,Kn(i)):o!=null?_f(n,T,Kn(o)):c!=null&&n.removeAttribute("value"),h==null&&y!=null&&(n.defaultChecked=!!y),h!=null&&(n.checked=h&&typeof h!="function"&&typeof h!="symbol"),D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?n.name=""+Kn(D):n.removeAttribute("name")}function Hg(n,i,o,c,h,y,T,D){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(n.type=y),i!=null||o!=null){if(!(y!=="submit"&&y!=="reset"||i!=null))return;o=o!=null?""+Kn(o):"",i=i!=null?""+Kn(i):o,D||i===n.value||(n.value=i),n.defaultValue=i}c=c??h,c=typeof c!="function"&&typeof c!="symbol"&&!!c,n.checked=D?n.checked:!!c,n.defaultChecked=!!c,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(n.name=T)}function _f(n,i,o){i==="number"&&Zs(n.ownerDocument)===n||n.defaultValue===""+o||(n.defaultValue=""+o)}function ja(n,i,o,c){if(n=n.options,i){i={};for(var h=0;h<o.length;h++)i["$"+o[h]]=!0;for(o=0;o<n.length;o++)h=i.hasOwnProperty("$"+n[o].value),n[o].selected!==h&&(n[o].selected=h),h&&c&&(n[o].defaultSelected=!0)}else{for(o=""+Kn(o),i=null,h=0;h<n.length;h++){if(n[h].value===o){n[h].selected=!0,c&&(n[h].defaultSelected=!0);return}i!==null||n[h].disabled||(i=n[h])}i!==null&&(i.selected=!0)}}function Ug(n,i,o){if(i!=null&&(i=""+Kn(i),i!==n.value&&(n.value=i),o==null)){n.defaultValue!==i&&(n.defaultValue=i);return}n.defaultValue=o!=null?""+Kn(o):""}function Fg(n,i,o,c){if(i==null){if(c!=null){if(o!=null)throw Error(a(92));if(U(c)){if(1<c.length)throw Error(a(93));c=c[0]}o=c}o==null&&(o=""),i=o}o=Kn(i),n.defaultValue=o,c=n.textContent,c===o&&c!==""&&c!==null&&(n.value=c)}function La(n,i){if(i){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===3){o.nodeValue=i;return}}n.textContent=i}var t2=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 qg(n,i,o){var c=i.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?c?n.setProperty(i,""):i==="float"?n.cssFloat="":n[i]="":c?n.setProperty(i,o):typeof o!="number"||o===0||t2.has(i)?i==="float"?n.cssFloat=o:n[i]=(""+o).trim():n[i]=o+"px"}function Vg(n,i,o){if(i!=null&&typeof i!="object")throw Error(a(62));if(n=n.style,o!=null){for(var c in o)!o.hasOwnProperty(c)||i!=null&&i.hasOwnProperty(c)||(c.indexOf("--")===0?n.setProperty(c,""):c==="float"?n.cssFloat="":n[c]="");for(var h in i)c=i[h],i.hasOwnProperty(h)&&o[h]!==c&&qg(n,h,c)}else for(var y in i)i.hasOwnProperty(y)&&qg(n,y,i[y])}function Bf(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 n2=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),r2=/^[\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 Js(n){return r2.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var If=null;function $f(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Pa=null,Na=null;function Yg(n){var i=Ma(n);if(i&&(n=i.stateNode)){var o=n[kn]||null;e:switch(n=i.stateNode,i.type){case"input":if(Nf(n,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),i=o.name,o.type==="radio"&&i!=null){for(o=n;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Qn(""+i)+'"][type="radio"]'),i=0;i<o.length;i++){var c=o[i];if(c!==n&&c.form===n.form){var h=c[kn]||null;if(!h)throw Error(a(90));Nf(c,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(i=0;i<o.length;i++)c=o[i],c.form===n.form&&$g(c)}break e;case"textarea":Ug(n,o.value,o.defaultValue);break e;case"select":i=o.value,i!=null&&ja(n,!!o.multiple,i,!1)}}}var Hf=!1;function Gg(n,i,o){if(Hf)return n(i,o);Hf=!0;try{var c=n(i);return c}finally{if(Hf=!1,(Pa!==null||Na!==null)&&(Bu(),Pa&&(i=Pa,n=Na,Na=Pa=null,Yg(i),n)))for(i=0;i<n.length;i++)Yg(n[i])}}function Wo(n,i){var o=n.stateNode;if(o===null)return null;var c=o[kn]||null;if(c===null)return null;o=c[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(n=n.type,c=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!c;break e;default:n=!1}if(n)return null;if(o&&typeof o!="function")throw Error(a(231,i,typeof o));return o}var Ur=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uf=!1;if(Ur)try{var Ko={};Object.defineProperty(Ko,"passive",{get:function(){Uf=!0}}),window.addEventListener("test",Ko,Ko),window.removeEventListener("test",Ko,Ko)}catch{Uf=!1}var pi=null,Ff=null,eu=null;function Xg(){if(eu)return eu;var n,i=Ff,o=i.length,c,h="value"in pi?pi.value:pi.textContent,y=h.length;for(n=0;n<o&&i[n]===h[n];n++);var T=o-n;for(c=1;c<=T&&i[o-c]===h[y-c];c++);return eu=h.slice(n,1<c?1-c:void 0)}function tu(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function nu(){return!0}function Wg(){return!1}function En(n){function i(o,c,h,y,T){this._reactName=o,this._targetInst=h,this.type=c,this.nativeEvent=y,this.target=T,this.currentTarget=null;for(var D in n)n.hasOwnProperty(D)&&(o=n[D],this[D]=o?o(y):y[D]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?nu:Wg,this.isPropagationStopped=Wg,this}return m(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=nu)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=nu)},persist:function(){},isPersistent:nu}),i}var Xi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ru=En(Xi),Qo=m({},Xi,{view:0,detail:0}),i2=En(Qo),qf,Vf,Zo,iu=m({},Qo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gf,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!==Zo&&(Zo&&n.type==="mousemove"?(qf=n.screenX-Zo.screenX,Vf=n.screenY-Zo.screenY):Vf=qf=0,Zo=n),qf)},movementY:function(n){return"movementY"in n?n.movementY:Vf}}),Kg=En(iu),a2=m({},iu,{dataTransfer:0}),o2=En(a2),l2=m({},Qo,{relatedTarget:0}),Yf=En(l2),s2=m({},Xi,{animationName:0,elapsedTime:0,pseudoElement:0}),u2=En(s2),c2=m({},Xi,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),f2=En(c2),d2=m({},Xi,{data:0}),Qg=En(d2),p2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},h2={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"},m2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function g2(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=m2[n])?!!i[n]:!1}function Gf(){return g2}var y2=m({},Qo,{key:function(n){if(n.key){var i=p2[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=tu(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?h2[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gf,charCode:function(n){return n.type==="keypress"?tu(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?tu(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),b2=En(y2),v2=m({},iu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zg=En(v2),x2=m({},Qo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gf}),S2=En(x2),w2=m({},Xi,{propertyName:0,elapsedTime:0,pseudoElement:0}),C2=En(w2),k2=m({},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}),E2=En(k2),T2=m({},Xi,{newState:0,oldState:0}),R2=En(T2),A2=[9,13,27,32],Xf=Ur&&"CompositionEvent"in window,Jo=null;Ur&&"documentMode"in document&&(Jo=document.documentMode);var M2=Ur&&"TextEvent"in window&&!Jo,Jg=Ur&&(!Xf||Jo&&8<Jo&&11>=Jo),ey=" ",ty=!1;function ny(n,i){switch(n){case"keyup":return A2.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ry(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var _a=!1;function O2(n,i){switch(n){case"compositionend":return ry(i);case"keypress":return i.which!==32?null:(ty=!0,ey);case"textInput":return n=i.data,n===ey&&ty?null:n;default:return null}}function z2(n,i){if(_a)return n==="compositionend"||!Xf&&ny(n,i)?(n=Xg(),eu=Ff=pi=null,_a=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Jg&&i.locale!=="ko"?null:i.data;default:return null}}var D2={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 iy(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!D2[n.type]:i==="textarea"}function ay(n,i,o,c){Pa?Na?Na.push(c):Na=[c]:Pa=c,i=qu(i,"onChange"),0<i.length&&(o=new ru("onChange","change",null,o,c),n.push({event:o,listeners:i}))}var el=null,tl=null;function j2(n){Ib(n,0)}function au(n){var i=Xo(n);if($g(i))return n}function oy(n,i){if(n==="change")return i}var ly=!1;if(Ur){var Wf;if(Ur){var Kf="oninput"in document;if(!Kf){var sy=document.createElement("div");sy.setAttribute("oninput","return;"),Kf=typeof sy.oninput=="function"}Wf=Kf}else Wf=!1;ly=Wf&&(!document.documentMode||9<document.documentMode)}function uy(){el&&(el.detachEvent("onpropertychange",cy),tl=el=null)}function cy(n){if(n.propertyName==="value"&&au(tl)){var i=[];ay(i,tl,n,$f(n)),Gg(j2,i)}}function L2(n,i,o){n==="focusin"?(uy(),el=i,tl=o,el.attachEvent("onpropertychange",cy)):n==="focusout"&&uy()}function P2(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return au(tl)}function N2(n,i){if(n==="click")return au(i)}function _2(n,i){if(n==="input"||n==="change")return au(i)}function B2(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var _n=typeof Object.is=="function"?Object.is:B2;function nl(n,i){if(_n(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var o=Object.keys(n),c=Object.keys(i);if(o.length!==c.length)return!1;for(c=0;c<o.length;c++){var h=o[c];if(!ge.call(i,h)||!_n(n[h],i[h]))return!1}return!0}function fy(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function dy(n,i){var o=fy(n);n=0;for(var c;o;){if(o.nodeType===3){if(c=n+o.textContent.length,n<=i&&c>=i)return{node:o,offset:i-n};n=c}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=fy(o)}}function py(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?py(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function hy(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var i=Zs(n.document);i instanceof n.HTMLIFrameElement;){try{var o=typeof i.contentWindow.location.href=="string"}catch{o=!1}if(o)n=i.contentWindow;else break;i=Zs(n.document)}return i}function Qf(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}var I2=Ur&&"documentMode"in document&&11>=document.documentMode,Ba=null,Zf=null,rl=null,Jf=!1;function my(n,i,o){var c=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Jf||Ba==null||Ba!==Zs(c)||(c=Ba,"selectionStart"in c&&Qf(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),rl&&nl(rl,c)||(rl=c,c=qu(Zf,"onSelect"),0<c.length&&(i=new ru("onSelect","select",null,i,o),n.push({event:i,listeners:c}),i.target=Ba)))}function Wi(n,i){var o={};return o[n.toLowerCase()]=i.toLowerCase(),o["Webkit"+n]="webkit"+i,o["Moz"+n]="moz"+i,o}var Ia={animationend:Wi("Animation","AnimationEnd"),animationiteration:Wi("Animation","AnimationIteration"),animationstart:Wi("Animation","AnimationStart"),transitionrun:Wi("Transition","TransitionRun"),transitionstart:Wi("Transition","TransitionStart"),transitioncancel:Wi("Transition","TransitionCancel"),transitionend:Wi("Transition","TransitionEnd")},ed={},gy={};Ur&&(gy=document.createElement("div").style,"AnimationEvent"in window||(delete Ia.animationend.animation,delete Ia.animationiteration.animation,delete Ia.animationstart.animation),"TransitionEvent"in window||delete Ia.transitionend.transition);function Ki(n){if(ed[n])return ed[n];if(!Ia[n])return n;var i=Ia[n],o;for(o in i)if(i.hasOwnProperty(o)&&o in gy)return ed[n]=i[o];return n}var yy=Ki("animationend"),by=Ki("animationiteration"),vy=Ki("animationstart"),$2=Ki("transitionrun"),H2=Ki("transitionstart"),U2=Ki("transitioncancel"),xy=Ki("transitionend"),Sy=new Map,td="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(" ");td.push("scrollEnd");function pr(n,i){Sy.set(n,i),Gi(i,[n])}var wy=new WeakMap;function Zn(n,i){if(typeof n=="object"&&n!==null){var o=wy.get(n);return o!==void 0?o:(i={value:n,source:i,stack:Bg(i)},wy.set(n,i),i)}return{value:n,source:i,stack:Bg(i)}}var Jn=[],$a=0,nd=0;function ou(){for(var n=$a,i=nd=$a=0;i<n;){var o=Jn[i];Jn[i++]=null;var c=Jn[i];Jn[i++]=null;var h=Jn[i];Jn[i++]=null;var y=Jn[i];if(Jn[i++]=null,c!==null&&h!==null){var T=c.pending;T===null?h.next=h:(h.next=T.next,T.next=h),c.pending=h}y!==0&&Cy(o,h,y)}}function lu(n,i,o,c){Jn[$a++]=n,Jn[$a++]=i,Jn[$a++]=o,Jn[$a++]=c,nd|=c,n.lanes|=c,n=n.alternate,n!==null&&(n.lanes|=c)}function rd(n,i,o,c){return lu(n,i,o,c),su(n)}function Ha(n,i){return lu(n,null,null,i),su(n)}function Cy(n,i,o){n.lanes|=o;var c=n.alternate;c!==null&&(c.lanes|=o);for(var h=!1,y=n.return;y!==null;)y.childLanes|=o,c=y.alternate,c!==null&&(c.childLanes|=o),y.tag===22&&(n=y.stateNode,n===null||n._visibility&1||(h=!0)),n=y,y=y.return;return n.tag===3?(y=n.stateNode,h&&i!==null&&(h=31-we(o),n=y.hiddenUpdates,c=n[h],c===null?n[h]=[i]:c.push(i),i.lane=o|536870912),y):null}function su(n){if(50<Al)throw Al=0,up=null,Error(a(185));for(var i=n.return;i!==null;)n=i,i=n.return;return n.tag===3?n.stateNode:null}var Ua={};function F2(n,i,o,c){this.tag=n,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bn(n,i,o,c){return new F2(n,i,o,c)}function id(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Fr(n,i){var o=n.alternate;return o===null?(o=Bn(n.tag,i,n.key,n.mode),o.elementType=n.elementType,o.type=n.type,o.stateNode=n.stateNode,o.alternate=n,n.alternate=o):(o.pendingProps=i,o.type=n.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=n.flags&65011712,o.childLanes=n.childLanes,o.lanes=n.lanes,o.child=n.child,o.memoizedProps=n.memoizedProps,o.memoizedState=n.memoizedState,o.updateQueue=n.updateQueue,i=n.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},o.sibling=n.sibling,o.index=n.index,o.ref=n.ref,o.refCleanup=n.refCleanup,o}function ky(n,i){n.flags&=65011714;var o=n.alternate;return o===null?(n.childLanes=0,n.lanes=i,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=o.childLanes,n.lanes=o.lanes,n.child=o.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=o.memoizedProps,n.memoizedState=o.memoizedState,n.updateQueue=o.updateQueue,n.type=o.type,i=o.dependencies,n.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),n}function uu(n,i,o,c,h,y){var T=0;if(c=n,typeof n=="function")id(n)&&(T=1);else if(typeof n=="string")T=Vk(n,o,se.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case F:return n=Bn(31,o,i,h),n.elementType=F,n.lanes=y,n;case x:return Qi(o.children,h,y,i);case C:T=8,h|=24;break;case R:return n=Bn(12,o,i,h|2),n.elementType=R,n.lanes=y,n;case j:return n=Bn(13,o,i,h),n.elementType=j,n.lanes=y,n;case z:return n=Bn(19,o,i,h),n.elementType=z,n.lanes=y,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case E:case O:T=10;break e;case M:T=9;break e;case L:T=11;break e;case I:T=14;break e;case V:T=16,c=null;break e}T=29,o=Error(a(130,n===null?"null":typeof n,"")),c=null}return i=Bn(T,o,i,h),i.elementType=n,i.type=c,i.lanes=y,i}function Qi(n,i,o,c){return n=Bn(7,n,c,i),n.lanes=o,n}function ad(n,i,o){return n=Bn(6,n,null,i),n.lanes=o,n}function od(n,i,o){return i=Bn(4,n.children!==null?n.children:[],n.key,i),i.lanes=o,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}var Fa=[],qa=0,cu=null,fu=0,er=[],tr=0,Zi=null,qr=1,Vr="";function Ji(n,i){Fa[qa++]=fu,Fa[qa++]=cu,cu=n,fu=i}function Ey(n,i,o){er[tr++]=qr,er[tr++]=Vr,er[tr++]=Zi,Zi=n;var c=qr;n=Vr;var h=32-we(c)-1;c&=~(1<<h),o+=1;var y=32-we(i)+h;if(30<y){var T=h-h%5;y=(c&(1<<T)-1).toString(32),c>>=T,h-=T,qr=1<<32-we(i)+h|o<<h|c,Vr=y+n}else qr=1<<y|o<<h|c,Vr=n}function ld(n){n.return!==null&&(Ji(n,1),Ey(n,1,0))}function sd(n){for(;n===cu;)cu=Fa[--qa],Fa[qa]=null,fu=Fa[--qa],Fa[qa]=null;for(;n===Zi;)Zi=er[--tr],er[tr]=null,Vr=er[--tr],er[tr]=null,qr=er[--tr],er[tr]=null}var vn=null,Nt=null,ft=!1,ea=null,kr=!1,ud=Error(a(519));function ta(n){var i=Error(a(418,""));throw ol(Zn(i,n)),ud}function Ty(n){var i=n.stateNode,o=n.type,c=n.memoizedProps;switch(i[fn]=n,i[kn]=c,o){case"dialog":et("cancel",i),et("close",i);break;case"iframe":case"object":case"embed":et("load",i);break;case"video":case"audio":for(o=0;o<Ol.length;o++)et(Ol[o],i);break;case"source":et("error",i);break;case"img":case"image":case"link":et("error",i),et("load",i);break;case"details":et("toggle",i);break;case"input":et("invalid",i),Hg(i,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0),Qs(i);break;case"select":et("invalid",i);break;case"textarea":et("invalid",i),Fg(i,c.value,c.defaultValue,c.children),Qs(i)}o=c.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||i.textContent===""+o||c.suppressHydrationWarning===!0||Fb(i.textContent,o)?(c.popover!=null&&(et("beforetoggle",i),et("toggle",i)),c.onScroll!=null&&et("scroll",i),c.onScrollEnd!=null&&et("scrollend",i),c.onClick!=null&&(i.onclick=Vu),i=!0):i=!1,i||ta(n)}function Ry(n){for(vn=n.return;vn;)switch(vn.tag){case 5:case 13:kr=!1;return;case 27:case 3:kr=!0;return;default:vn=vn.return}}function il(n){if(n!==vn)return!1;if(!ft)return Ry(n),ft=!0,!1;var i=n.tag,o;if((o=i!==3&&i!==27)&&((o=i===5)&&(o=n.type,o=!(o!=="form"&&o!=="button")||Ep(n.type,n.memoizedProps)),o=!o),o&&Nt&&ta(n),Ry(n),i===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));e:{for(n=n.nextSibling,i=0;n;){if(n.nodeType===8)if(o=n.data,o==="/$"){if(i===0){Nt=mr(n.nextSibling);break e}i--}else o!=="$"&&o!=="$!"&&o!=="$?"||i++;n=n.nextSibling}Nt=null}}else i===27?(i=Nt,Mi(n.type)?(n=Mp,Mp=null,Nt=n):Nt=i):Nt=vn?mr(n.stateNode.nextSibling):null;return!0}function al(){Nt=vn=null,ft=!1}function Ay(){var n=ea;return n!==null&&(An===null?An=n:An.push.apply(An,n),ea=null),n}function ol(n){ea===null?ea=[n]:ea.push(n)}var cd=K(null),na=null,Yr=null;function hi(n,i,o){P(cd,i._currentValue),i._currentValue=o}function Gr(n){n._currentValue=cd.current,re(cd)}function fd(n,i,o){for(;n!==null;){var c=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),n===o)break;n=n.return}}function dd(n,i,o,c){var h=n.child;for(h!==null&&(h.return=n);h!==null;){var y=h.dependencies;if(y!==null){var T=h.child;y=y.firstContext;e:for(;y!==null;){var D=y;y=h;for(var $=0;$<i.length;$++)if(D.context===i[$]){y.lanes|=o,D=y.alternate,D!==null&&(D.lanes|=o),fd(y.return,o,n),c||(T=null);break e}y=D.next}}else if(h.tag===18){if(T=h.return,T===null)throw Error(a(341));T.lanes|=o,y=T.alternate,y!==null&&(y.lanes|=o),fd(T,o,n),T=null}else T=h.child;if(T!==null)T.return=h;else for(T=h;T!==null;){if(T===n){T=null;break}if(h=T.sibling,h!==null){h.return=T.return,T=h;break}T=T.return}h=T}}function ll(n,i,o,c){n=null;for(var h=i,y=!1;h!==null;){if(!y){if((h.flags&524288)!==0)y=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var T=h.alternate;if(T===null)throw Error(a(387));if(T=T.memoizedProps,T!==null){var D=h.type;_n(h.pendingProps.value,T.value)||(n!==null?n.push(D):n=[D])}}else if(h===ce.current){if(T=h.alternate,T===null)throw Error(a(387));T.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(n!==null?n.push(Nl):n=[Nl])}h=h.return}n!==null&&dd(i,n,o,c),i.flags|=262144}function du(n){for(n=n.firstContext;n!==null;){if(!_n(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function ra(n){na=n,Yr=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function dn(n){return My(na,n)}function pu(n,i){return na===null&&ra(n),My(n,i)}function My(n,i){var o=i._currentValue;if(i={context:i,memoizedValue:o,next:null},Yr===null){if(n===null)throw Error(a(308));Yr=i,n.dependencies={lanes:0,firstContext:i},n.flags|=524288}else Yr=Yr.next=i;return o}var q2=typeof AbortController<"u"?AbortController:function(){var n=[],i=this.signal={aborted:!1,addEventListener:function(o,c){n.push(c)}};this.abort=function(){i.aborted=!0,n.forEach(function(o){return o()})}},V2=e.unstable_scheduleCallback,Y2=e.unstable_NormalPriority,Zt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function pd(){return{controller:new q2,data:new Map,refCount:0}}function sl(n){n.refCount--,n.refCount===0&&V2(Y2,function(){n.controller.abort()})}var ul=null,hd=0,Va=0,Ya=null;function G2(n,i){if(ul===null){var o=ul=[];hd=0,Va=gp(),Ya={status:"pending",value:void 0,then:function(c){o.push(c)}}}return hd++,i.then(Oy,Oy),i}function Oy(){if(--hd===0&&ul!==null){Ya!==null&&(Ya.status="fulfilled");var n=ul;ul=null,Va=0,Ya=null;for(var i=0;i<n.length;i++)(0,n[i])()}}function X2(n,i){var o=[],c={status:"pending",value:null,reason:null,then:function(h){o.push(h)}};return n.then(function(){c.status="fulfilled",c.value=i;for(var h=0;h<o.length;h++)(0,o[h])(i)},function(h){for(c.status="rejected",c.reason=h,h=0;h<o.length;h++)(0,o[h])(void 0)}),c}var zy=_.S;_.S=function(n,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&G2(n,i),zy!==null&&zy(n,i)};var ia=K(null);function md(){var n=ia.current;return n!==null?n:Rt.pooledCache}function hu(n,i){i===null?P(ia,ia.current):P(ia,i.pool)}function Dy(){var n=md();return n===null?null:{parent:Zt._currentValue,pool:n}}var cl=Error(a(460)),jy=Error(a(474)),mu=Error(a(542)),gd={then:function(){}};function Ly(n){return n=n.status,n==="fulfilled"||n==="rejected"}function gu(){}function Py(n,i,o){switch(o=n[o],o===void 0?n.push(i):o!==i&&(i.then(gu,gu),i=o),i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,_y(n),n;default:if(typeof i.status=="string")i.then(gu,gu);else{if(n=Rt,n!==null&&100<n.shellSuspendCounter)throw Error(a(482));n=i,n.status="pending",n.then(function(c){if(i.status==="pending"){var h=i;h.status="fulfilled",h.value=c}},function(c){if(i.status==="pending"){var h=i;h.status="rejected",h.reason=c}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,_y(n),n}throw fl=i,cl}}var fl=null;function Ny(){if(fl===null)throw Error(a(459));var n=fl;return fl=null,n}function _y(n){if(n===cl||n===mu)throw Error(a(483))}var mi=!1;function yd(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bd(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function gi(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function yi(n,i,o){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(gt&2)!==0){var h=c.pending;return h===null?i.next=i:(i.next=h.next,h.next=i),c.pending=i,i=su(n),Cy(n,null,o),i}return lu(n,c,i,o),su(n)}function dl(n,i,o){if(i=i.updateQueue,i!==null&&(i=i.shared,(o&4194048)!==0)){var c=i.lanes;c&=n.pendingLanes,o|=c,i.lanes=o,Xs(n,o)}}function vd(n,i){var o=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,o===c)){var h=null,y=null;if(o=o.firstBaseUpdate,o!==null){do{var T={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};y===null?h=y=T:y=y.next=T,o=o.next}while(o!==null);y===null?h=y=i:y=y.next=i}else h=y=i;o={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:y,shared:c.shared,callbacks:c.callbacks},n.updateQueue=o;return}n=o.lastBaseUpdate,n===null?o.firstBaseUpdate=i:n.next=i,o.lastBaseUpdate=i}var xd=!1;function pl(){if(xd){var n=Ya;if(n!==null)throw n}}function hl(n,i,o,c){xd=!1;var h=n.updateQueue;mi=!1;var y=h.firstBaseUpdate,T=h.lastBaseUpdate,D=h.shared.pending;if(D!==null){h.shared.pending=null;var $=D,Q=$.next;$.next=null,T===null?y=Q:T.next=Q,T=$;var oe=n.alternate;oe!==null&&(oe=oe.updateQueue,D=oe.lastBaseUpdate,D!==T&&(D===null?oe.firstBaseUpdate=Q:D.next=Q,oe.lastBaseUpdate=$))}if(y!==null){var ue=h.baseState;T=0,oe=Q=$=null,D=y;do{var ee=D.lane&-536870913,te=ee!==D.lane;if(te?(ot&ee)===ee:(c&ee)===ee){ee!==0&&ee===Va&&(xd=!0),oe!==null&&(oe=oe.next={lane:0,tag:D.tag,payload:D.payload,callback:null,next:null});e:{var Ie=n,Ne=D;ee=i;var wt=o;switch(Ne.tag){case 1:if(Ie=Ne.payload,typeof Ie=="function"){ue=Ie.call(wt,ue,ee);break e}ue=Ie;break e;case 3:Ie.flags=Ie.flags&-65537|128;case 0:if(Ie=Ne.payload,ee=typeof Ie=="function"?Ie.call(wt,ue,ee):Ie,ee==null)break e;ue=m({},ue,ee);break e;case 2:mi=!0}}ee=D.callback,ee!==null&&(n.flags|=64,te&&(n.flags|=8192),te=h.callbacks,te===null?h.callbacks=[ee]:te.push(ee))}else te={lane:ee,tag:D.tag,payload:D.payload,callback:D.callback,next:null},oe===null?(Q=oe=te,$=ue):oe=oe.next=te,T|=ee;if(D=D.next,D===null){if(D=h.shared.pending,D===null)break;te=D,D=te.next,te.next=null,h.lastBaseUpdate=te,h.shared.pending=null}}while(!0);oe===null&&($=ue),h.baseState=$,h.firstBaseUpdate=Q,h.lastBaseUpdate=oe,y===null&&(h.shared.lanes=0),Ei|=T,n.lanes=T,n.memoizedState=ue}}function By(n,i){if(typeof n!="function")throw Error(a(191,n));n.call(i)}function Iy(n,i){var o=n.callbacks;if(o!==null)for(n.callbacks=null,n=0;n<o.length;n++)By(o[n],i)}var Ga=K(null),yu=K(0);function $y(n,i){n=ei,P(yu,n),P(Ga,i),ei=n|i.baseLanes}function Sd(){P(yu,ei),P(Ga,Ga.current)}function wd(){ei=yu.current,re(Ga),re(yu)}var bi=0,Ve=null,xt=null,Yt=null,bu=!1,Xa=!1,aa=!1,vu=0,ml=0,Wa=null,W2=0;function Ft(){throw Error(a(321))}function Cd(n,i){if(i===null)return!1;for(var o=0;o<i.length&&o<n.length;o++)if(!_n(n[o],i[o]))return!1;return!0}function kd(n,i,o,c,h,y){return bi=y,Ve=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,_.H=n===null||n.memoizedState===null?C0:k0,aa=!1,y=o(c,h),aa=!1,Xa&&(y=Uy(i,o,c,h)),Hy(n),y}function Hy(n){_.H=Eu;var i=xt!==null&&xt.next!==null;if(bi=0,Yt=xt=Ve=null,bu=!1,ml=0,Wa=null,i)throw Error(a(300));n===null||rn||(n=n.dependencies,n!==null&&du(n)&&(rn=!0))}function Uy(n,i,o,c){Ve=n;var h=0;do{if(Xa&&(Wa=null),ml=0,Xa=!1,25<=h)throw Error(a(301));if(h+=1,Yt=xt=null,n.updateQueue!=null){var y=n.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}_.H=nk,y=i(o,c)}while(Xa);return y}function K2(){var n=_.H,i=n.useState()[0];return i=typeof i.then=="function"?gl(i):i,n=n.useState()[0],(xt!==null?xt.memoizedState:null)!==n&&(Ve.flags|=1024),i}function Ed(){var n=vu!==0;return vu=0,n}function Td(n,i,o){i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~o}function Rd(n){if(bu){for(n=n.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}bu=!1}bi=0,Yt=xt=Ve=null,Xa=!1,ml=vu=0,Wa=null}function Tn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yt===null?Ve.memoizedState=Yt=n:Yt=Yt.next=n,Yt}function Gt(){if(xt===null){var n=Ve.alternate;n=n!==null?n.memoizedState:null}else n=xt.next;var i=Yt===null?Ve.memoizedState:Yt.next;if(i!==null)Yt=i,xt=n;else{if(n===null)throw Ve.alternate===null?Error(a(467)):Error(a(310));xt=n,n={memoizedState:xt.memoizedState,baseState:xt.baseState,baseQueue:xt.baseQueue,queue:xt.queue,next:null},Yt===null?Ve.memoizedState=Yt=n:Yt=Yt.next=n}return Yt}function Ad(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gl(n){var i=ml;return ml+=1,Wa===null&&(Wa=[]),n=Py(Wa,n,i),i=Ve,(Yt===null?i.memoizedState:Yt.next)===null&&(i=i.alternate,_.H=i===null||i.memoizedState===null?C0:k0),n}function xu(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return gl(n);if(n.$$typeof===O)return dn(n)}throw Error(a(438,String(n)))}function Md(n){var i=null,o=Ve.updateQueue;if(o!==null&&(i=o.memoCache),i==null){var c=Ve.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(i={data:c.data.map(function(h){return h.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),o===null&&(o=Ad(),Ve.updateQueue=o),o.memoCache=i,o=i.data[i.index],o===void 0)for(o=i.data[i.index]=Array(n),c=0;c<n;c++)o[c]=N;return i.index++,o}function Xr(n,i){return typeof i=="function"?i(n):i}function Su(n){var i=Gt();return Od(i,xt,n)}function Od(n,i,o){var c=n.queue;if(c===null)throw Error(a(311));c.lastRenderedReducer=o;var h=n.baseQueue,y=c.pending;if(y!==null){if(h!==null){var T=h.next;h.next=y.next,y.next=T}i.baseQueue=h=y,c.pending=null}if(y=n.baseState,h===null)n.memoizedState=y;else{i=h.next;var D=T=null,$=null,Q=i,oe=!1;do{var ue=Q.lane&-536870913;if(ue!==Q.lane?(ot&ue)===ue:(bi&ue)===ue){var ee=Q.revertLane;if(ee===0)$!==null&&($=$.next={lane:0,revertLane:0,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),ue===Va&&(oe=!0);else if((bi&ee)===ee){Q=Q.next,ee===Va&&(oe=!0);continue}else ue={lane:0,revertLane:Q.revertLane,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},$===null?(D=$=ue,T=y):$=$.next=ue,Ve.lanes|=ee,Ei|=ee;ue=Q.action,aa&&o(y,ue),y=Q.hasEagerState?Q.eagerState:o(y,ue)}else ee={lane:ue,revertLane:Q.revertLane,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},$===null?(D=$=ee,T=y):$=$.next=ee,Ve.lanes|=ue,Ei|=ue;Q=Q.next}while(Q!==null&&Q!==i);if($===null?T=y:$.next=D,!_n(y,n.memoizedState)&&(rn=!0,oe&&(o=Ya,o!==null)))throw o;n.memoizedState=y,n.baseState=T,n.baseQueue=$,c.lastRenderedState=y}return h===null&&(c.lanes=0),[n.memoizedState,c.dispatch]}function zd(n){var i=Gt(),o=i.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=n;var c=o.dispatch,h=o.pending,y=i.memoizedState;if(h!==null){o.pending=null;var T=h=h.next;do y=n(y,T.action),T=T.next;while(T!==h);_n(y,i.memoizedState)||(rn=!0),i.memoizedState=y,i.baseQueue===null&&(i.baseState=y),o.lastRenderedState=y}return[y,c]}function Fy(n,i,o){var c=Ve,h=Gt(),y=ft;if(y){if(o===void 0)throw Error(a(407));o=o()}else o=i();var T=!_n((xt||h).memoizedState,o);T&&(h.memoizedState=o,rn=!0),h=h.queue;var D=Yy.bind(null,c,h,n);if(yl(2048,8,D,[n]),h.getSnapshot!==i||T||Yt!==null&&Yt.memoizedState.tag&1){if(c.flags|=2048,Ka(9,wu(),Vy.bind(null,c,h,o,i),null),Rt===null)throw Error(a(349));y||(bi&124)!==0||qy(c,i,o)}return o}function qy(n,i,o){n.flags|=16384,n={getSnapshot:i,value:o},i=Ve.updateQueue,i===null?(i=Ad(),Ve.updateQueue=i,i.stores=[n]):(o=i.stores,o===null?i.stores=[n]:o.push(n))}function Vy(n,i,o,c){i.value=o,i.getSnapshot=c,Gy(i)&&Xy(n)}function Yy(n,i,o){return o(function(){Gy(i)&&Xy(n)})}function Gy(n){var i=n.getSnapshot;n=n.value;try{var o=i();return!_n(n,o)}catch{return!0}}function Xy(n){var i=Ha(n,2);i!==null&&Fn(i,n,2)}function Dd(n){var i=Tn();if(typeof n=="function"){var o=n;if(n=o(),aa){Se(!0);try{o()}finally{Se(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xr,lastRenderedState:n},i}function Wy(n,i,o,c){return n.baseState=o,Od(n,xt,typeof c=="function"?c:Xr)}function Q2(n,i,o,c,h){if(ku(n))throw Error(a(485));if(n=i.action,n!==null){var y={payload:h,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){y.listeners.push(T)}};_.T!==null?o(!0):y.isTransition=!1,c(y),o=i.pending,o===null?(y.next=i.pending=y,Ky(i,y)):(y.next=o.next,i.pending=o.next=y)}}function Ky(n,i){var o=i.action,c=i.payload,h=n.state;if(i.isTransition){var y=_.T,T={};_.T=T;try{var D=o(h,c),$=_.S;$!==null&&$(T,D),Qy(n,i,D)}catch(Q){jd(n,i,Q)}finally{_.T=y}}else try{y=o(h,c),Qy(n,i,y)}catch(Q){jd(n,i,Q)}}function Qy(n,i,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(c){Zy(n,i,c)},function(c){return jd(n,i,c)}):Zy(n,i,o)}function Zy(n,i,o){i.status="fulfilled",i.value=o,Jy(i),n.state=o,i=n.pending,i!==null&&(o=i.next,o===i?n.pending=null:(o=o.next,i.next=o,Ky(n,o)))}function jd(n,i,o){var c=n.pending;if(n.pending=null,c!==null){c=c.next;do i.status="rejected",i.reason=o,Jy(i),i=i.next;while(i!==c)}n.action=null}function Jy(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}function e0(n,i){return i}function t0(n,i){if(ft){var o=Rt.formState;if(o!==null){e:{var c=Ve;if(ft){if(Nt){t:{for(var h=Nt,y=kr;h.nodeType!==8;){if(!y){h=null;break t}if(h=mr(h.nextSibling),h===null){h=null;break t}}y=h.data,h=y==="F!"||y==="F"?h:null}if(h){Nt=mr(h.nextSibling),c=h.data==="F!";break e}}ta(c)}c=!1}c&&(i=o[0])}}return o=Tn(),o.memoizedState=o.baseState=i,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e0,lastRenderedState:i},o.queue=c,o=x0.bind(null,Ve,c),c.dispatch=o,c=Dd(!1),y=Bd.bind(null,Ve,!1,c.queue),c=Tn(),h={state:i,dispatch:null,action:n,pending:null},c.queue=h,o=Q2.bind(null,Ve,h,y,o),h.dispatch=o,c.memoizedState=n,[i,o,!1]}function n0(n){var i=Gt();return r0(i,xt,n)}function r0(n,i,o){if(i=Od(n,i,e0)[0],n=Su(Xr)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var c=gl(i)}catch(T){throw T===cl?mu:T}else c=i;i=Gt();var h=i.queue,y=h.dispatch;return o!==i.memoizedState&&(Ve.flags|=2048,Ka(9,wu(),Z2.bind(null,h,o),null)),[c,y,n]}function Z2(n,i){n.action=i}function i0(n){var i=Gt(),o=xt;if(o!==null)return r0(i,o,n);Gt(),i=i.memoizedState,o=Gt();var c=o.queue.dispatch;return o.memoizedState=n,[i,c,!1]}function Ka(n,i,o,c){return n={tag:n,create:o,deps:c,inst:i,next:null},i=Ve.updateQueue,i===null&&(i=Ad(),Ve.updateQueue=i),o=i.lastEffect,o===null?i.lastEffect=n.next=n:(c=o.next,o.next=n,n.next=c,i.lastEffect=n),n}function wu(){return{destroy:void 0,resource:void 0}}function a0(){return Gt().memoizedState}function Cu(n,i,o,c){var h=Tn();c=c===void 0?null:c,Ve.flags|=n,h.memoizedState=Ka(1|i,wu(),o,c)}function yl(n,i,o,c){var h=Gt();c=c===void 0?null:c;var y=h.memoizedState.inst;xt!==null&&c!==null&&Cd(c,xt.memoizedState.deps)?h.memoizedState=Ka(i,y,o,c):(Ve.flags|=n,h.memoizedState=Ka(1|i,y,o,c))}function o0(n,i){Cu(8390656,8,n,i)}function l0(n,i){yl(2048,8,n,i)}function s0(n,i){return yl(4,2,n,i)}function u0(n,i){return yl(4,4,n,i)}function c0(n,i){if(typeof i=="function"){n=n();var o=i(n);return function(){typeof o=="function"?o():i(null)}}if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function f0(n,i,o){o=o!=null?o.concat([n]):null,yl(4,4,c0.bind(null,i,n),o)}function Ld(){}function d0(n,i){var o=Gt();i=i===void 0?null:i;var c=o.memoizedState;return i!==null&&Cd(i,c[1])?c[0]:(o.memoizedState=[n,i],n)}function p0(n,i){var o=Gt();i=i===void 0?null:i;var c=o.memoizedState;if(i!==null&&Cd(i,c[1]))return c[0];if(c=n(),aa){Se(!0);try{n()}finally{Se(!1)}}return o.memoizedState=[c,i],c}function Pd(n,i,o){return o===void 0||(bi&1073741824)!==0?n.memoizedState=i:(n.memoizedState=o,n=gb(),Ve.lanes|=n,Ei|=n,o)}function h0(n,i,o,c){return _n(o,i)?o:Ga.current!==null?(n=Pd(n,o,c),_n(n,i)||(rn=!0),n):(bi&42)===0?(rn=!0,n.memoizedState=o):(n=gb(),Ve.lanes|=n,Ei|=n,i)}function m0(n,i,o,c,h){var y=G.p;G.p=y!==0&&8>y?y:8;var T=_.T,D={};_.T=D,Bd(n,!1,i,o);try{var $=h(),Q=_.S;if(Q!==null&&Q(D,$),$!==null&&typeof $=="object"&&typeof $.then=="function"){var oe=X2($,c);bl(n,i,oe,Un(n))}else bl(n,i,c,Un(n))}catch(ue){bl(n,i,{then:function(){},status:"rejected",reason:ue},Un())}finally{G.p=y,_.T=T}}function J2(){}function Nd(n,i,o,c){if(n.tag!==5)throw Error(a(476));var h=g0(n).queue;m0(n,h,i,Z,o===null?J2:function(){return y0(n),o(c)})}function g0(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xr,lastRenderedState:Z},next:null};var o={};return i.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xr,lastRenderedState:o},next:null},n.memoizedState=i,n=n.alternate,n!==null&&(n.memoizedState=i),i}function y0(n){var i=g0(n).next.queue;bl(n,i,{},Un())}function _d(){return dn(Nl)}function b0(){return Gt().memoizedState}function v0(){return Gt().memoizedState}function ek(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var o=Un();n=gi(o);var c=yi(i,n,o);c!==null&&(Fn(c,i,o),dl(c,i,o)),i={cache:pd()},n.payload=i;return}i=i.return}}function tk(n,i,o){var c=Un();o={lane:c,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null},ku(n)?S0(i,o):(o=rd(n,i,o,c),o!==null&&(Fn(o,n,c),w0(o,i,c)))}function x0(n,i,o){var c=Un();bl(n,i,o,c)}function bl(n,i,o,c){var h={lane:c,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};if(ku(n))S0(i,h);else{var y=n.alternate;if(n.lanes===0&&(y===null||y.lanes===0)&&(y=i.lastRenderedReducer,y!==null))try{var T=i.lastRenderedState,D=y(T,o);if(h.hasEagerState=!0,h.eagerState=D,_n(D,T))return lu(n,i,h,0),Rt===null&&ou(),!1}catch{}finally{}if(o=rd(n,i,h,c),o!==null)return Fn(o,n,c),w0(o,i,c),!0}return!1}function Bd(n,i,o,c){if(c={lane:2,revertLane:gp(),action:c,hasEagerState:!1,eagerState:null,next:null},ku(n)){if(i)throw Error(a(479))}else i=rd(n,o,c,2),i!==null&&Fn(i,n,2)}function ku(n){var i=n.alternate;return n===Ve||i!==null&&i===Ve}function S0(n,i){Xa=bu=!0;var o=n.pending;o===null?i.next=i:(i.next=o.next,o.next=i),n.pending=i}function w0(n,i,o){if((o&4194048)!==0){var c=i.lanes;c&=n.pendingLanes,o|=c,i.lanes=o,Xs(n,o)}}var Eu={readContext:dn,use:xu,useCallback:Ft,useContext:Ft,useEffect:Ft,useImperativeHandle:Ft,useLayoutEffect:Ft,useInsertionEffect:Ft,useMemo:Ft,useReducer:Ft,useRef:Ft,useState:Ft,useDebugValue:Ft,useDeferredValue:Ft,useTransition:Ft,useSyncExternalStore:Ft,useId:Ft,useHostTransitionStatus:Ft,useFormState:Ft,useActionState:Ft,useOptimistic:Ft,useMemoCache:Ft,useCacheRefresh:Ft},C0={readContext:dn,use:xu,useCallback:function(n,i){return Tn().memoizedState=[n,i===void 0?null:i],n},useContext:dn,useEffect:o0,useImperativeHandle:function(n,i,o){o=o!=null?o.concat([n]):null,Cu(4194308,4,c0.bind(null,i,n),o)},useLayoutEffect:function(n,i){return Cu(4194308,4,n,i)},useInsertionEffect:function(n,i){Cu(4,2,n,i)},useMemo:function(n,i){var o=Tn();i=i===void 0?null:i;var c=n();if(aa){Se(!0);try{n()}finally{Se(!1)}}return o.memoizedState=[c,i],c},useReducer:function(n,i,o){var c=Tn();if(o!==void 0){var h=o(i);if(aa){Se(!0);try{o(i)}finally{Se(!1)}}}else h=i;return c.memoizedState=c.baseState=h,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:h},c.queue=n,n=n.dispatch=tk.bind(null,Ve,n),[c.memoizedState,n]},useRef:function(n){var i=Tn();return n={current:n},i.memoizedState=n},useState:function(n){n=Dd(n);var i=n.queue,o=x0.bind(null,Ve,i);return i.dispatch=o,[n.memoizedState,o]},useDebugValue:Ld,useDeferredValue:function(n,i){var o=Tn();return Pd(o,n,i)},useTransition:function(){var n=Dd(!1);return n=m0.bind(null,Ve,n.queue,!0,!1),Tn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,i,o){var c=Ve,h=Tn();if(ft){if(o===void 0)throw Error(a(407));o=o()}else{if(o=i(),Rt===null)throw Error(a(349));(ot&124)!==0||qy(c,i,o)}h.memoizedState=o;var y={value:o,getSnapshot:i};return h.queue=y,o0(Yy.bind(null,c,y,n),[n]),c.flags|=2048,Ka(9,wu(),Vy.bind(null,c,y,o,i),null),o},useId:function(){var n=Tn(),i=Rt.identifierPrefix;if(ft){var o=Vr,c=qr;o=(c&~(1<<32-we(c)-1)).toString(32)+o,i="«"+i+"R"+o,o=vu++,0<o&&(i+="H"+o.toString(32)),i+="»"}else o=W2++,i="«"+i+"r"+o.toString(32)+"»";return n.memoizedState=i},useHostTransitionStatus:_d,useFormState:t0,useActionState:t0,useOptimistic:function(n){var i=Tn();i.memoizedState=i.baseState=n;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=o,i=Bd.bind(null,Ve,!0,o),o.dispatch=i,[n,i]},useMemoCache:Md,useCacheRefresh:function(){return Tn().memoizedState=ek.bind(null,Ve)}},k0={readContext:dn,use:xu,useCallback:d0,useContext:dn,useEffect:l0,useImperativeHandle:f0,useInsertionEffect:s0,useLayoutEffect:u0,useMemo:p0,useReducer:Su,useRef:a0,useState:function(){return Su(Xr)},useDebugValue:Ld,useDeferredValue:function(n,i){var o=Gt();return h0(o,xt.memoizedState,n,i)},useTransition:function(){var n=Su(Xr)[0],i=Gt().memoizedState;return[typeof n=="boolean"?n:gl(n),i]},useSyncExternalStore:Fy,useId:b0,useHostTransitionStatus:_d,useFormState:n0,useActionState:n0,useOptimistic:function(n,i){var o=Gt();return Wy(o,xt,n,i)},useMemoCache:Md,useCacheRefresh:v0},nk={readContext:dn,use:xu,useCallback:d0,useContext:dn,useEffect:l0,useImperativeHandle:f0,useInsertionEffect:s0,useLayoutEffect:u0,useMemo:p0,useReducer:zd,useRef:a0,useState:function(){return zd(Xr)},useDebugValue:Ld,useDeferredValue:function(n,i){var o=Gt();return xt===null?Pd(o,n,i):h0(o,xt.memoizedState,n,i)},useTransition:function(){var n=zd(Xr)[0],i=Gt().memoizedState;return[typeof n=="boolean"?n:gl(n),i]},useSyncExternalStore:Fy,useId:b0,useHostTransitionStatus:_d,useFormState:i0,useActionState:i0,useOptimistic:function(n,i){var o=Gt();return xt!==null?Wy(o,xt,n,i):(o.baseState=n,[n,o.queue.dispatch])},useMemoCache:Md,useCacheRefresh:v0},Qa=null,vl=0;function Tu(n){var i=vl;return vl+=1,Qa===null&&(Qa=[]),Py(Qa,n,i)}function xl(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}function Ru(n,i){throw i.$$typeof===g?Error(a(525)):(n=Object.prototype.toString.call(i),Error(a(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n)))}function E0(n){var i=n._init;return i(n._payload)}function T0(n){function i(X,Y){if(n){var W=X.deletions;W===null?(X.deletions=[Y],X.flags|=16):W.push(Y)}}function o(X,Y){if(!n)return null;for(;Y!==null;)i(X,Y),Y=Y.sibling;return null}function c(X){for(var Y=new Map;X!==null;)X.key!==null?Y.set(X.key,X):Y.set(X.index,X),X=X.sibling;return Y}function h(X,Y){return X=Fr(X,Y),X.index=0,X.sibling=null,X}function y(X,Y,W){return X.index=W,n?(W=X.alternate,W!==null?(W=W.index,W<Y?(X.flags|=67108866,Y):W):(X.flags|=67108866,Y)):(X.flags|=1048576,Y)}function T(X){return n&&X.alternate===null&&(X.flags|=67108866),X}function D(X,Y,W,le){return Y===null||Y.tag!==6?(Y=ad(W,X.mode,le),Y.return=X,Y):(Y=h(Y,W),Y.return=X,Y)}function $(X,Y,W,le){var Ae=W.type;return Ae===x?oe(X,Y,W.props.children,le,W.key):Y!==null&&(Y.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===V&&E0(Ae)===Y.type)?(Y=h(Y,W.props),xl(Y,W),Y.return=X,Y):(Y=uu(W.type,W.key,W.props,null,X.mode,le),xl(Y,W),Y.return=X,Y)}function Q(X,Y,W,le){return Y===null||Y.tag!==4||Y.stateNode.containerInfo!==W.containerInfo||Y.stateNode.implementation!==W.implementation?(Y=od(W,X.mode,le),Y.return=X,Y):(Y=h(Y,W.children||[]),Y.return=X,Y)}function oe(X,Y,W,le,Ae){return Y===null||Y.tag!==7?(Y=Qi(W,X.mode,le,Ae),Y.return=X,Y):(Y=h(Y,W),Y.return=X,Y)}function ue(X,Y,W){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Y=ad(""+Y,X.mode,W),Y.return=X,Y;if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case v:return W=uu(Y.type,Y.key,Y.props,null,X.mode,W),xl(W,Y),W.return=X,W;case b:return Y=od(Y,X.mode,W),Y.return=X,Y;case V:var le=Y._init;return Y=le(Y._payload),ue(X,Y,W)}if(U(Y)||A(Y))return Y=Qi(Y,X.mode,W,null),Y.return=X,Y;if(typeof Y.then=="function")return ue(X,Tu(Y),W);if(Y.$$typeof===O)return ue(X,pu(X,Y),W);Ru(X,Y)}return null}function ee(X,Y,W,le){var Ae=Y!==null?Y.key:null;if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return Ae!==null?null:D(X,Y,""+W,le);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case v:return W.key===Ae?$(X,Y,W,le):null;case b:return W.key===Ae?Q(X,Y,W,le):null;case V:return Ae=W._init,W=Ae(W._payload),ee(X,Y,W,le)}if(U(W)||A(W))return Ae!==null?null:oe(X,Y,W,le,null);if(typeof W.then=="function")return ee(X,Y,Tu(W),le);if(W.$$typeof===O)return ee(X,Y,pu(X,W),le);Ru(X,W)}return null}function te(X,Y,W,le,Ae){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return X=X.get(W)||null,D(Y,X,""+le,Ae);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case v:return X=X.get(le.key===null?W:le.key)||null,$(Y,X,le,Ae);case b:return X=X.get(le.key===null?W:le.key)||null,Q(Y,X,le,Ae);case V:var Ke=le._init;return le=Ke(le._payload),te(X,Y,W,le,Ae)}if(U(le)||A(le))return X=X.get(W)||null,oe(Y,X,le,Ae,null);if(typeof le.then=="function")return te(X,Y,W,Tu(le),Ae);if(le.$$typeof===O)return te(X,Y,W,pu(Y,le),Ae);Ru(Y,le)}return null}function Ie(X,Y,W,le){for(var Ae=null,Ke=null,De=Y,_e=Y=0,on=null;De!==null&&_e<W.length;_e++){De.index>_e?(on=De,De=null):on=De.sibling;var ut=ee(X,De,W[_e],le);if(ut===null){De===null&&(De=on);break}n&&De&&ut.alternate===null&&i(X,De),Y=y(ut,Y,_e),Ke===null?Ae=ut:Ke.sibling=ut,Ke=ut,De=on}if(_e===W.length)return o(X,De),ft&&Ji(X,_e),Ae;if(De===null){for(;_e<W.length;_e++)De=ue(X,W[_e],le),De!==null&&(Y=y(De,Y,_e),Ke===null?Ae=De:Ke.sibling=De,Ke=De);return ft&&Ji(X,_e),Ae}for(De=c(De);_e<W.length;_e++)on=te(De,X,_e,W[_e],le),on!==null&&(n&&on.alternate!==null&&De.delete(on.key===null?_e:on.key),Y=y(on,Y,_e),Ke===null?Ae=on:Ke.sibling=on,Ke=on);return n&&De.forEach(function(Li){return i(X,Li)}),ft&&Ji(X,_e),Ae}function Ne(X,Y,W,le){if(W==null)throw Error(a(151));for(var Ae=null,Ke=null,De=Y,_e=Y=0,on=null,ut=W.next();De!==null&&!ut.done;_e++,ut=W.next()){De.index>_e?(on=De,De=null):on=De.sibling;var Li=ee(X,De,ut.value,le);if(Li===null){De===null&&(De=on);break}n&&De&&Li.alternate===null&&i(X,De),Y=y(Li,Y,_e),Ke===null?Ae=Li:Ke.sibling=Li,Ke=Li,De=on}if(ut.done)return o(X,De),ft&&Ji(X,_e),Ae;if(De===null){for(;!ut.done;_e++,ut=W.next())ut=ue(X,ut.value,le),ut!==null&&(Y=y(ut,Y,_e),Ke===null?Ae=ut:Ke.sibling=ut,Ke=ut);return ft&&Ji(X,_e),Ae}for(De=c(De);!ut.done;_e++,ut=W.next())ut=te(De,X,_e,ut.value,le),ut!==null&&(n&&ut.alternate!==null&&De.delete(ut.key===null?_e:ut.key),Y=y(ut,Y,_e),Ke===null?Ae=ut:Ke.sibling=ut,Ke=ut);return n&&De.forEach(function(rE){return i(X,rE)}),ft&&Ji(X,_e),Ae}function wt(X,Y,W,le){if(typeof W=="object"&&W!==null&&W.type===x&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case v:e:{for(var Ae=W.key;Y!==null;){if(Y.key===Ae){if(Ae=W.type,Ae===x){if(Y.tag===7){o(X,Y.sibling),le=h(Y,W.props.children),le.return=X,X=le;break e}}else if(Y.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===V&&E0(Ae)===Y.type){o(X,Y.sibling),le=h(Y,W.props),xl(le,W),le.return=X,X=le;break e}o(X,Y);break}else i(X,Y);Y=Y.sibling}W.type===x?(le=Qi(W.props.children,X.mode,le,W.key),le.return=X,X=le):(le=uu(W.type,W.key,W.props,null,X.mode,le),xl(le,W),le.return=X,X=le)}return T(X);case b:e:{for(Ae=W.key;Y!==null;){if(Y.key===Ae)if(Y.tag===4&&Y.stateNode.containerInfo===W.containerInfo&&Y.stateNode.implementation===W.implementation){o(X,Y.sibling),le=h(Y,W.children||[]),le.return=X,X=le;break e}else{o(X,Y);break}else i(X,Y);Y=Y.sibling}le=od(W,X.mode,le),le.return=X,X=le}return T(X);case V:return Ae=W._init,W=Ae(W._payload),wt(X,Y,W,le)}if(U(W))return Ie(X,Y,W,le);if(A(W)){if(Ae=A(W),typeof Ae!="function")throw Error(a(150));return W=Ae.call(W),Ne(X,Y,W,le)}if(typeof W.then=="function")return wt(X,Y,Tu(W),le);if(W.$$typeof===O)return wt(X,Y,pu(X,W),le);Ru(X,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,Y!==null&&Y.tag===6?(o(X,Y.sibling),le=h(Y,W),le.return=X,X=le):(o(X,Y),le=ad(W,X.mode,le),le.return=X,X=le),T(X)):o(X,Y)}return function(X,Y,W,le){try{vl=0;var Ae=wt(X,Y,W,le);return Qa=null,Ae}catch(De){if(De===cl||De===mu)throw De;var Ke=Bn(29,De,null,X.mode);return Ke.lanes=le,Ke.return=X,Ke}finally{}}}var Za=T0(!0),R0=T0(!1),nr=K(null),Er=null;function vi(n){var i=n.alternate;P(Jt,Jt.current&1),P(nr,n),Er===null&&(i===null||Ga.current!==null||i.memoizedState!==null)&&(Er=n)}function A0(n){if(n.tag===22){if(P(Jt,Jt.current),P(nr,n),Er===null){var i=n.alternate;i!==null&&i.memoizedState!==null&&(Er=n)}}else xi()}function xi(){P(Jt,Jt.current),P(nr,nr.current)}function Wr(n){re(nr),Er===n&&(Er=null),re(Jt)}var Jt=K(0);function Au(n){for(var i=n;i!==null;){if(i.tag===13){var o=i.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||Ap(o)))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}function Id(n,i,o,c){i=n.memoizedState,o=o(c,i),o=o==null?i:m({},i,o),n.memoizedState=o,n.lanes===0&&(n.updateQueue.baseState=o)}var $d={enqueueSetState:function(n,i,o){n=n._reactInternals;var c=Un(),h=gi(c);h.payload=i,o!=null&&(h.callback=o),i=yi(n,h,c),i!==null&&(Fn(i,n,c),dl(i,n,c))},enqueueReplaceState:function(n,i,o){n=n._reactInternals;var c=Un(),h=gi(c);h.tag=1,h.payload=i,o!=null&&(h.callback=o),i=yi(n,h,c),i!==null&&(Fn(i,n,c),dl(i,n,c))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var o=Un(),c=gi(o);c.tag=2,i!=null&&(c.callback=i),i=yi(n,c,o),i!==null&&(Fn(i,n,o),dl(i,n,o))}};function M0(n,i,o,c,h,y,T){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(c,y,T):i.prototype&&i.prototype.isPureReactComponent?!nl(o,c)||!nl(h,y):!0}function O0(n,i,o,c){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(o,c),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(o,c),i.state!==n&&$d.enqueueReplaceState(i,i.state,null)}function oa(n,i){var o=i;if("ref"in i){o={};for(var c in i)c!=="ref"&&(o[c]=i[c])}if(n=n.defaultProps){o===i&&(o=m({},o));for(var h in n)o[h]===void 0&&(o[h]=n[h])}return o}var Mu=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=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(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function z0(n){Mu(n)}function D0(n){console.error(n)}function j0(n){Mu(n)}function Ou(n,i){try{var o=n.onUncaughtError;o(i.value,{componentStack:i.stack})}catch(c){setTimeout(function(){throw c})}}function L0(n,i,o){try{var c=n.onCaughtError;c(o.value,{componentStack:o.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function Hd(n,i,o){return o=gi(o),o.tag=3,o.payload={element:null},o.callback=function(){Ou(n,i)},o}function P0(n){return n=gi(n),n.tag=3,n}function N0(n,i,o,c){var h=o.type.getDerivedStateFromError;if(typeof h=="function"){var y=c.value;n.payload=function(){return h(y)},n.callback=function(){L0(i,o,c)}}var T=o.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(n.callback=function(){L0(i,o,c),typeof h!="function"&&(Ti===null?Ti=new Set([this]):Ti.add(this));var D=c.stack;this.componentDidCatch(c.value,{componentStack:D!==null?D:""})})}function rk(n,i,o,c,h){if(o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(i=o.alternate,i!==null&&ll(i,o,h,!0),o=nr.current,o!==null){switch(o.tag){case 13:return Er===null?fp():o.alternate===null&&_t===0&&(_t=3),o.flags&=-257,o.flags|=65536,o.lanes=h,c===gd?o.flags|=16384:(i=o.updateQueue,i===null?o.updateQueue=new Set([c]):i.add(c),pp(n,c,h)),!1;case 22:return o.flags|=65536,c===gd?o.flags|=16384:(i=o.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([c])},o.updateQueue=i):(o=i.retryQueue,o===null?i.retryQueue=new Set([c]):o.add(c)),pp(n,c,h)),!1}throw Error(a(435,o.tag))}return pp(n,c,h),fp(),!1}if(ft)return i=nr.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=h,c!==ud&&(n=Error(a(422),{cause:c}),ol(Zn(n,o)))):(c!==ud&&(i=Error(a(423),{cause:c}),ol(Zn(i,o))),n=n.current.alternate,n.flags|=65536,h&=-h,n.lanes|=h,c=Zn(c,o),h=Hd(n.stateNode,c,h),vd(n,h),_t!==4&&(_t=2)),!1;var y=Error(a(520),{cause:c});if(y=Zn(y,o),Rl===null?Rl=[y]:Rl.push(y),_t!==4&&(_t=2),i===null)return!0;c=Zn(c,o),o=i;do{switch(o.tag){case 3:return o.flags|=65536,n=h&-h,o.lanes|=n,n=Hd(o.stateNode,c,n),vd(o,n),!1;case 1:if(i=o.type,y=o.stateNode,(o.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Ti===null||!Ti.has(y))))return o.flags|=65536,h&=-h,o.lanes|=h,h=P0(h),N0(h,n,o,c),vd(o,h),!1}o=o.return}while(o!==null);return!1}var _0=Error(a(461)),rn=!1;function ln(n,i,o,c){i.child=n===null?R0(i,null,o,c):Za(i,n.child,o,c)}function B0(n,i,o,c,h){o=o.render;var y=i.ref;if("ref"in c){var T={};for(var D in c)D!=="ref"&&(T[D]=c[D])}else T=c;return ra(i),c=kd(n,i,o,T,y,h),D=Ed(),n!==null&&!rn?(Td(n,i,h),Kr(n,i,h)):(ft&&D&&ld(i),i.flags|=1,ln(n,i,c,h),i.child)}function I0(n,i,o,c,h){if(n===null){var y=o.type;return typeof y=="function"&&!id(y)&&y.defaultProps===void 0&&o.compare===null?(i.tag=15,i.type=y,$0(n,i,y,c,h)):(n=uu(o.type,null,c,i,i.mode,h),n.ref=i.ref,n.return=i,i.child=n)}if(y=n.child,!Wd(n,h)){var T=y.memoizedProps;if(o=o.compare,o=o!==null?o:nl,o(T,c)&&n.ref===i.ref)return Kr(n,i,h)}return i.flags|=1,n=Fr(y,c),n.ref=i.ref,n.return=i,i.child=n}function $0(n,i,o,c,h){if(n!==null){var y=n.memoizedProps;if(nl(y,c)&&n.ref===i.ref)if(rn=!1,i.pendingProps=c=y,Wd(n,h))(n.flags&131072)!==0&&(rn=!0);else return i.lanes=n.lanes,Kr(n,i,h)}return Ud(n,i,o,c,h)}function H0(n,i,o){var c=i.pendingProps,h=c.children,y=n!==null?n.memoizedState:null;if(c.mode==="hidden"){if((i.flags&128)!==0){if(c=y!==null?y.baseLanes|o:o,n!==null){for(h=i.child=n.child,y=0;h!==null;)y=y|h.lanes|h.childLanes,h=h.sibling;i.childLanes=y&~c}else i.childLanes=0,i.child=null;return U0(n,i,c,o)}if((o&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&hu(i,y!==null?y.cachePool:null),y!==null?$y(i,y):Sd(),A0(i);else return i.lanes=i.childLanes=536870912,U0(n,i,y!==null?y.baseLanes|o:o,o)}else y!==null?(hu(i,y.cachePool),$y(i,y),xi(),i.memoizedState=null):(n!==null&&hu(i,null),Sd(),xi());return ln(n,i,h,o),i.child}function U0(n,i,o,c){var h=md();return h=h===null?null:{parent:Zt._currentValue,pool:h},i.memoizedState={baseLanes:o,cachePool:h},n!==null&&hu(i,null),Sd(),A0(i),n!==null&&ll(n,i,c,!0),null}function zu(n,i){var o=i.ref;if(o===null)n!==null&&n.ref!==null&&(i.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(a(284));(n===null||n.ref!==o)&&(i.flags|=4194816)}}function Ud(n,i,o,c,h){return ra(i),o=kd(n,i,o,c,void 0,h),c=Ed(),n!==null&&!rn?(Td(n,i,h),Kr(n,i,h)):(ft&&c&&ld(i),i.flags|=1,ln(n,i,o,h),i.child)}function F0(n,i,o,c,h,y){return ra(i),i.updateQueue=null,o=Uy(i,c,o,h),Hy(n),c=Ed(),n!==null&&!rn?(Td(n,i,y),Kr(n,i,y)):(ft&&c&&ld(i),i.flags|=1,ln(n,i,o,y),i.child)}function q0(n,i,o,c,h){if(ra(i),i.stateNode===null){var y=Ua,T=o.contextType;typeof T=="object"&&T!==null&&(y=dn(T)),y=new o(c,y),i.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=$d,i.stateNode=y,y._reactInternals=i,y=i.stateNode,y.props=c,y.state=i.memoizedState,y.refs={},yd(i),T=o.contextType,y.context=typeof T=="object"&&T!==null?dn(T):Ua,y.state=i.memoizedState,T=o.getDerivedStateFromProps,typeof T=="function"&&(Id(i,o,T,c),y.state=i.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(T=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),T!==y.state&&$d.enqueueReplaceState(y,y.state,null),hl(i,c,y,h),pl(),y.state=i.memoizedState),typeof y.componentDidMount=="function"&&(i.flags|=4194308),c=!0}else if(n===null){y=i.stateNode;var D=i.memoizedProps,$=oa(o,D);y.props=$;var Q=y.context,oe=o.contextType;T=Ua,typeof oe=="object"&&oe!==null&&(T=dn(oe));var ue=o.getDerivedStateFromProps;oe=typeof ue=="function"||typeof y.getSnapshotBeforeUpdate=="function",D=i.pendingProps!==D,oe||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(D||Q!==T)&&O0(i,y,c,T),mi=!1;var ee=i.memoizedState;y.state=ee,hl(i,c,y,h),pl(),Q=i.memoizedState,D||ee!==Q||mi?(typeof ue=="function"&&(Id(i,o,ue,c),Q=i.memoizedState),($=mi||M0(i,o,$,c,ee,Q,T))?(oe||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(i.flags|=4194308)):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=c,i.memoizedState=Q),y.props=c,y.state=Q,y.context=T,c=$):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{y=i.stateNode,bd(n,i),T=i.memoizedProps,oe=oa(o,T),y.props=oe,ue=i.pendingProps,ee=y.context,Q=o.contextType,$=Ua,typeof Q=="object"&&Q!==null&&($=dn(Q)),D=o.getDerivedStateFromProps,(Q=typeof D=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(T!==ue||ee!==$)&&O0(i,y,c,$),mi=!1,ee=i.memoizedState,y.state=ee,hl(i,c,y,h),pl();var te=i.memoizedState;T!==ue||ee!==te||mi||n!==null&&n.dependencies!==null&&du(n.dependencies)?(typeof D=="function"&&(Id(i,o,D,c),te=i.memoizedState),(oe=mi||M0(i,o,oe,c,ee,te,$)||n!==null&&n.dependencies!==null&&du(n.dependencies))?(Q||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(c,te,$),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(c,te,$)),typeof y.componentDidUpdate=="function"&&(i.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof y.componentDidUpdate!="function"||T===n.memoizedProps&&ee===n.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&ee===n.memoizedState||(i.flags|=1024),i.memoizedProps=c,i.memoizedState=te),y.props=c,y.state=te,y.context=$,c=oe):(typeof y.componentDidUpdate!="function"||T===n.memoizedProps&&ee===n.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&ee===n.memoizedState||(i.flags|=1024),c=!1)}return y=c,zu(n,i),c=(i.flags&128)!==0,y||c?(y=i.stateNode,o=c&&typeof o.getDerivedStateFromError!="function"?null:y.render(),i.flags|=1,n!==null&&c?(i.child=Za(i,n.child,null,h),i.child=Za(i,null,o,h)):ln(n,i,o,h),i.memoizedState=y.state,n=i.child):n=Kr(n,i,h),n}function V0(n,i,o,c){return al(),i.flags|=256,ln(n,i,o,c),i.child}var Fd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function qd(n){return{baseLanes:n,cachePool:Dy()}}function Vd(n,i,o){return n=n!==null?n.childLanes&~o:0,i&&(n|=rr),n}function Y0(n,i,o){var c=i.pendingProps,h=!1,y=(i.flags&128)!==0,T;if((T=y)||(T=n!==null&&n.memoizedState===null?!1:(Jt.current&2)!==0),T&&(h=!0,i.flags&=-129),T=(i.flags&32)!==0,i.flags&=-33,n===null){if(ft){if(h?vi(i):xi(),ft){var D=Nt,$;if($=D){e:{for($=D,D=kr;$.nodeType!==8;){if(!D){D=null;break e}if($=mr($.nextSibling),$===null){D=null;break e}}D=$}D!==null?(i.memoizedState={dehydrated:D,treeContext:Zi!==null?{id:qr,overflow:Vr}:null,retryLane:536870912,hydrationErrors:null},$=Bn(18,null,null,0),$.stateNode=D,$.return=i,i.child=$,vn=i,Nt=null,$=!0):$=!1}$||ta(i)}if(D=i.memoizedState,D!==null&&(D=D.dehydrated,D!==null))return Ap(D)?i.lanes=32:i.lanes=536870912,null;Wr(i)}return D=c.children,c=c.fallback,h?(xi(),h=i.mode,D=Du({mode:"hidden",children:D},h),c=Qi(c,h,o,null),D.return=i,c.return=i,D.sibling=c,i.child=D,h=i.child,h.memoizedState=qd(o),h.childLanes=Vd(n,T,o),i.memoizedState=Fd,c):(vi(i),Yd(i,D))}if($=n.memoizedState,$!==null&&(D=$.dehydrated,D!==null)){if(y)i.flags&256?(vi(i),i.flags&=-257,i=Gd(n,i,o)):i.memoizedState!==null?(xi(),i.child=n.child,i.flags|=128,i=null):(xi(),h=c.fallback,D=i.mode,c=Du({mode:"visible",children:c.children},D),h=Qi(h,D,o,null),h.flags|=2,c.return=i,h.return=i,c.sibling=h,i.child=c,Za(i,n.child,null,o),c=i.child,c.memoizedState=qd(o),c.childLanes=Vd(n,T,o),i.memoizedState=Fd,i=h);else if(vi(i),Ap(D)){if(T=D.nextSibling&&D.nextSibling.dataset,T)var Q=T.dgst;T=Q,c=Error(a(419)),c.stack="",c.digest=T,ol({value:c,source:null,stack:null}),i=Gd(n,i,o)}else if(rn||ll(n,i,o,!1),T=(o&n.childLanes)!==0,rn||T){if(T=Rt,T!==null&&(c=o&-o,c=(c&42)!==0?1:Yo(c),c=(c&(T.suspendedLanes|o))!==0?0:c,c!==0&&c!==$.retryLane))throw $.retryLane=c,Ha(n,c),Fn(T,n,c),_0;D.data==="$?"||fp(),i=Gd(n,i,o)}else D.data==="$?"?(i.flags|=192,i.child=n.child,i=null):(n=$.treeContext,Nt=mr(D.nextSibling),vn=i,ft=!0,ea=null,kr=!1,n!==null&&(er[tr++]=qr,er[tr++]=Vr,er[tr++]=Zi,qr=n.id,Vr=n.overflow,Zi=i),i=Yd(i,c.children),i.flags|=4096);return i}return h?(xi(),h=c.fallback,D=i.mode,$=n.child,Q=$.sibling,c=Fr($,{mode:"hidden",children:c.children}),c.subtreeFlags=$.subtreeFlags&65011712,Q!==null?h=Fr(Q,h):(h=Qi(h,D,o,null),h.flags|=2),h.return=i,c.return=i,c.sibling=h,i.child=c,c=h,h=i.child,D=n.child.memoizedState,D===null?D=qd(o):($=D.cachePool,$!==null?(Q=Zt._currentValue,$=$.parent!==Q?{parent:Q,pool:Q}:$):$=Dy(),D={baseLanes:D.baseLanes|o,cachePool:$}),h.memoizedState=D,h.childLanes=Vd(n,T,o),i.memoizedState=Fd,c):(vi(i),o=n.child,n=o.sibling,o=Fr(o,{mode:"visible",children:c.children}),o.return=i,o.sibling=null,n!==null&&(T=i.deletions,T===null?(i.deletions=[n],i.flags|=16):T.push(n)),i.child=o,i.memoizedState=null,o)}function Yd(n,i){return i=Du({mode:"visible",children:i},n.mode),i.return=n,n.child=i}function Du(n,i){return n=Bn(22,n,null,i),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function Gd(n,i,o){return Za(i,n.child,null,o),n=Yd(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function G0(n,i,o){n.lanes|=i;var c=n.alternate;c!==null&&(c.lanes|=i),fd(n.return,i,o)}function Xd(n,i,o,c,h){var y=n.memoizedState;y===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:c,tail:o,tailMode:h}:(y.isBackwards=i,y.rendering=null,y.renderingStartTime=0,y.last=c,y.tail=o,y.tailMode=h)}function X0(n,i,o){var c=i.pendingProps,h=c.revealOrder,y=c.tail;if(ln(n,i,c.children,o),c=Jt.current,(c&2)!==0)c=c&1|2,i.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&G0(n,o,i);else if(n.tag===19)G0(n,o,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}c&=1}switch(P(Jt,c),h){case"forwards":for(o=i.child,h=null;o!==null;)n=o.alternate,n!==null&&Au(n)===null&&(h=o),o=o.sibling;o=h,o===null?(h=i.child,i.child=null):(h=o.sibling,o.sibling=null),Xd(i,!1,h,o,y);break;case"backwards":for(o=null,h=i.child,i.child=null;h!==null;){if(n=h.alternate,n!==null&&Au(n)===null){i.child=h;break}n=h.sibling,h.sibling=o,o=h,h=n}Xd(i,!0,o,null,y);break;case"together":Xd(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Kr(n,i,o){if(n!==null&&(i.dependencies=n.dependencies),Ei|=i.lanes,(o&i.childLanes)===0)if(n!==null){if(ll(n,i,o,!1),(o&i.childLanes)===0)return null}else return null;if(n!==null&&i.child!==n.child)throw Error(a(153));if(i.child!==null){for(n=i.child,o=Fr(n,n.pendingProps),i.child=o,o.return=i;n.sibling!==null;)n=n.sibling,o=o.sibling=Fr(n,n.pendingProps),o.return=i;o.sibling=null}return i.child}function Wd(n,i){return(n.lanes&i)!==0?!0:(n=n.dependencies,!!(n!==null&&du(n)))}function ik(n,i,o){switch(i.tag){case 3:ye(i,i.stateNode.containerInfo),hi(i,Zt,n.memoizedState.cache),al();break;case 27:case 5:ve(i);break;case 4:ye(i,i.stateNode.containerInfo);break;case 10:hi(i,i.type,i.memoizedProps.value);break;case 13:var c=i.memoizedState;if(c!==null)return c.dehydrated!==null?(vi(i),i.flags|=128,null):(o&i.child.childLanes)!==0?Y0(n,i,o):(vi(i),n=Kr(n,i,o),n!==null?n.sibling:null);vi(i);break;case 19:var h=(n.flags&128)!==0;if(c=(o&i.childLanes)!==0,c||(ll(n,i,o,!1),c=(o&i.childLanes)!==0),h){if(c)return X0(n,i,o);i.flags|=128}if(h=i.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),P(Jt,Jt.current),c)break;return null;case 22:case 23:return i.lanes=0,H0(n,i,o);case 24:hi(i,Zt,n.memoizedState.cache)}return Kr(n,i,o)}function W0(n,i,o){if(n!==null)if(n.memoizedProps!==i.pendingProps)rn=!0;else{if(!Wd(n,o)&&(i.flags&128)===0)return rn=!1,ik(n,i,o);rn=(n.flags&131072)!==0}else rn=!1,ft&&(i.flags&1048576)!==0&&Ey(i,fu,i.index);switch(i.lanes=0,i.tag){case 16:e:{n=i.pendingProps;var c=i.elementType,h=c._init;if(c=h(c._payload),i.type=c,typeof c=="function")id(c)?(n=oa(c,n),i.tag=1,i=q0(null,i,c,n,o)):(i.tag=0,i=Ud(null,i,c,n,o));else{if(c!=null){if(h=c.$$typeof,h===L){i.tag=11,i=B0(null,i,c,n,o);break e}else if(h===I){i.tag=14,i=I0(null,i,c,n,o);break e}}throw i=H(c)||c,Error(a(306,i,""))}}return i;case 0:return Ud(n,i,i.type,i.pendingProps,o);case 1:return c=i.type,h=oa(c,i.pendingProps),q0(n,i,c,h,o);case 3:e:{if(ye(i,i.stateNode.containerInfo),n===null)throw Error(a(387));c=i.pendingProps;var y=i.memoizedState;h=y.element,bd(n,i),hl(i,c,null,o);var T=i.memoizedState;if(c=T.cache,hi(i,Zt,c),c!==y.cache&&dd(i,[Zt],o,!0),pl(),c=T.element,y.isDehydrated)if(y={element:c,isDehydrated:!1,cache:T.cache},i.updateQueue.baseState=y,i.memoizedState=y,i.flags&256){i=V0(n,i,c,o);break e}else if(c!==h){h=Zn(Error(a(424)),i),ol(h),i=V0(n,i,c,o);break e}else{switch(n=i.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Nt=mr(n.firstChild),vn=i,ft=!0,ea=null,kr=!0,o=R0(i,null,c,o),i.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(al(),c===h){i=Kr(n,i,o);break e}ln(n,i,c,o)}i=i.child}return i;case 26:return zu(n,i),n===null?(o=Jb(i.type,null,i.pendingProps,null))?i.memoizedState=o:ft||(o=i.type,n=i.pendingProps,c=Yu(fe.current).createElement(o),c[fn]=i,c[kn]=n,un(c,o,n),nn(c),i.stateNode=c):i.memoizedState=Jb(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return ve(i),n===null&&ft&&(c=i.stateNode=Kb(i.type,i.pendingProps,fe.current),vn=i,kr=!0,h=Nt,Mi(i.type)?(Mp=h,Nt=mr(c.firstChild)):Nt=h),ln(n,i,i.pendingProps.children,o),zu(n,i),n===null&&(i.flags|=4194304),i.child;case 5:return n===null&&ft&&((h=c=Nt)&&(c=Dk(c,i.type,i.pendingProps,kr),c!==null?(i.stateNode=c,vn=i,Nt=mr(c.firstChild),kr=!1,h=!0):h=!1),h||ta(i)),ve(i),h=i.type,y=i.pendingProps,T=n!==null?n.memoizedProps:null,c=y.children,Ep(h,y)?c=null:T!==null&&Ep(h,T)&&(i.flags|=32),i.memoizedState!==null&&(h=kd(n,i,K2,null,null,o),Nl._currentValue=h),zu(n,i),ln(n,i,c,o),i.child;case 6:return n===null&&ft&&((n=o=Nt)&&(o=jk(o,i.pendingProps,kr),o!==null?(i.stateNode=o,vn=i,Nt=null,n=!0):n=!1),n||ta(i)),null;case 13:return Y0(n,i,o);case 4:return ye(i,i.stateNode.containerInfo),c=i.pendingProps,n===null?i.child=Za(i,null,c,o):ln(n,i,c,o),i.child;case 11:return B0(n,i,i.type,i.pendingProps,o);case 7:return ln(n,i,i.pendingProps,o),i.child;case 8:return ln(n,i,i.pendingProps.children,o),i.child;case 12:return ln(n,i,i.pendingProps.children,o),i.child;case 10:return c=i.pendingProps,hi(i,i.type,c.value),ln(n,i,c.children,o),i.child;case 9:return h=i.type._context,c=i.pendingProps.children,ra(i),h=dn(h),c=c(h),i.flags|=1,ln(n,i,c,o),i.child;case 14:return I0(n,i,i.type,i.pendingProps,o);case 15:return $0(n,i,i.type,i.pendingProps,o);case 19:return X0(n,i,o);case 31:return c=i.pendingProps,o=i.mode,c={mode:c.mode,children:c.children},n===null?(o=Du(c,o),o.ref=i.ref,i.child=o,o.return=i,i=o):(o=Fr(n.child,c),o.ref=i.ref,i.child=o,o.return=i,i=o),i;case 22:return H0(n,i,o);case 24:return ra(i),c=dn(Zt),n===null?(h=md(),h===null&&(h=Rt,y=pd(),h.pooledCache=y,y.refCount++,y!==null&&(h.pooledCacheLanes|=o),h=y),i.memoizedState={parent:c,cache:h},yd(i),hi(i,Zt,h)):((n.lanes&o)!==0&&(bd(n,i),hl(i,null,null,o),pl()),h=n.memoizedState,y=i.memoizedState,h.parent!==c?(h={parent:c,cache:c},i.memoizedState=h,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=h),hi(i,Zt,c)):(c=y.cache,hi(i,Zt,c),c!==h.cache&&dd(i,[Zt],o,!0))),ln(n,i,i.pendingProps.children,o),i.child;case 29:throw i.pendingProps}throw Error(a(156,i.tag))}function Qr(n){n.flags|=4}function K0(n,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!iv(i)){if(i=nr.current,i!==null&&((ot&4194048)===ot?Er!==null:(ot&62914560)!==ot&&(ot&536870912)===0||i!==Er))throw fl=gd,jy;n.flags|=8192}}function ju(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?Ys():536870912,n.lanes|=i,no|=i)}function Sl(n,i){if(!ft)switch(n.tailMode){case"hidden":i=n.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?n.tail=null:o.sibling=null;break;case"collapsed":o=n.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:c.sibling=null}}function Dt(n){var i=n.alternate!==null&&n.alternate.child===n.child,o=0,c=0;if(i)for(var h=n.child;h!==null;)o|=h.lanes|h.childLanes,c|=h.subtreeFlags&65011712,c|=h.flags&65011712,h.return=n,h=h.sibling;else for(h=n.child;h!==null;)o|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=n,h=h.sibling;return n.subtreeFlags|=c,n.childLanes=o,i}function ak(n,i,o){var c=i.pendingProps;switch(sd(i),i.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(i),null;case 1:return Dt(i),null;case 3:return o=i.stateNode,c=null,n!==null&&(c=n.memoizedState.cache),i.memoizedState.cache!==c&&(i.flags|=2048),Gr(Zt),be(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(n===null||n.child===null)&&(il(i)?Qr(i):n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Ay())),Dt(i),null;case 26:return o=i.memoizedState,n===null?(Qr(i),o!==null?(Dt(i),K0(i,o)):(Dt(i),i.flags&=-16777217)):o?o!==n.memoizedState?(Qr(i),Dt(i),K0(i,o)):(Dt(i),i.flags&=-16777217):(n.memoizedProps!==c&&Qr(i),Dt(i),i.flags&=-16777217),null;case 27:pe(i),o=fe.current;var h=i.type;if(n!==null&&i.stateNode!=null)n.memoizedProps!==c&&Qr(i);else{if(!c){if(i.stateNode===null)throw Error(a(166));return Dt(i),null}n=se.current,il(i)?Ty(i):(n=Kb(h,c,o),i.stateNode=n,Qr(i))}return Dt(i),null;case 5:if(pe(i),o=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==c&&Qr(i);else{if(!c){if(i.stateNode===null)throw Error(a(166));return Dt(i),null}if(n=se.current,il(i))Ty(i);else{switch(h=Yu(fe.current),n){case 1:n=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:n=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":n=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":n=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":n=h.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof c.is=="string"?h.createElement("select",{is:c.is}):h.createElement("select"),c.multiple?n.multiple=!0:c.size&&(n.size=c.size);break;default:n=typeof c.is=="string"?h.createElement(o,{is:c.is}):h.createElement(o)}}n[fn]=i,n[kn]=c;e:for(h=i.child;h!==null;){if(h.tag===5||h.tag===6)n.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===i)break e;for(;h.sibling===null;){if(h.return===null||h.return===i)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}i.stateNode=n;e:switch(un(n,o,c),o){case"button":case"input":case"select":case"textarea":n=!!c.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Qr(i)}}return Dt(i),i.flags&=-16777217,null;case 6:if(n&&i.stateNode!=null)n.memoizedProps!==c&&Qr(i);else{if(typeof c!="string"&&i.stateNode===null)throw Error(a(166));if(n=fe.current,il(i)){if(n=i.stateNode,o=i.memoizedProps,c=null,h=vn,h!==null)switch(h.tag){case 27:case 5:c=h.memoizedProps}n[fn]=i,n=!!(n.nodeValue===o||c!==null&&c.suppressHydrationWarning===!0||Fb(n.nodeValue,o)),n||ta(i)}else n=Yu(n).createTextNode(c),n[fn]=i,i.stateNode=n}return Dt(i),null;case 13:if(c=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(h=il(i),c!==null&&c.dehydrated!==null){if(n===null){if(!h)throw Error(a(318));if(h=i.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(a(317));h[fn]=i}else al(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Dt(i),h=!1}else h=Ay(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=h),h=!0;if(!h)return i.flags&256?(Wr(i),i):(Wr(i),null)}if(Wr(i),(i.flags&128)!==0)return i.lanes=o,i;if(o=c!==null,n=n!==null&&n.memoizedState!==null,o){c=i.child,h=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(h=c.alternate.memoizedState.cachePool.pool);var y=null;c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(y=c.memoizedState.cachePool.pool),y!==h&&(c.flags|=2048)}return o!==n&&o&&(i.child.flags|=8192),ju(i,i.updateQueue),Dt(i),null;case 4:return be(),n===null&&xp(i.stateNode.containerInfo),Dt(i),null;case 10:return Gr(i.type),Dt(i),null;case 19:if(re(Jt),h=i.memoizedState,h===null)return Dt(i),null;if(c=(i.flags&128)!==0,y=h.rendering,y===null)if(c)Sl(h,!1);else{if(_t!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(y=Au(n),y!==null){for(i.flags|=128,Sl(h,!1),n=y.updateQueue,i.updateQueue=n,ju(i,n),i.subtreeFlags=0,n=o,o=i.child;o!==null;)ky(o,n),o=o.sibling;return P(Jt,Jt.current&1|2),i.child}n=n.sibling}h.tail!==null&&Me()>Nu&&(i.flags|=128,c=!0,Sl(h,!1),i.lanes=4194304)}else{if(!c)if(n=Au(y),n!==null){if(i.flags|=128,c=!0,n=n.updateQueue,i.updateQueue=n,ju(i,n),Sl(h,!0),h.tail===null&&h.tailMode==="hidden"&&!y.alternate&&!ft)return Dt(i),null}else 2*Me()-h.renderingStartTime>Nu&&o!==536870912&&(i.flags|=128,c=!0,Sl(h,!1),i.lanes=4194304);h.isBackwards?(y.sibling=i.child,i.child=y):(n=h.last,n!==null?n.sibling=y:i.child=y,h.last=y)}return h.tail!==null?(i=h.tail,h.rendering=i,h.tail=i.sibling,h.renderingStartTime=Me(),i.sibling=null,n=Jt.current,P(Jt,c?n&1|2:n&1),i):(Dt(i),null);case 22:case 23:return Wr(i),wd(),c=i.memoizedState!==null,n!==null?n.memoizedState!==null!==c&&(i.flags|=8192):c&&(i.flags|=8192),c?(o&536870912)!==0&&(i.flags&128)===0&&(Dt(i),i.subtreeFlags&6&&(i.flags|=8192)):Dt(i),o=i.updateQueue,o!==null&&ju(i,o.retryQueue),o=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048),n!==null&&re(ia),null;case 24:return o=null,n!==null&&(o=n.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),Gr(Zt),Dt(i),null;case 25:return null;case 30:return null}throw Error(a(156,i.tag))}function ok(n,i){switch(sd(i),i.tag){case 1:return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return Gr(Zt),be(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 26:case 27:case 5:return pe(i),null;case 13:if(Wr(i),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(a(340));al()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return re(Jt),null;case 4:return be(),null;case 10:return Gr(i.type),null;case 22:case 23:return Wr(i),wd(),n!==null&&re(ia),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 24:return Gr(Zt),null;case 25:return null;default:return null}}function Q0(n,i){switch(sd(i),i.tag){case 3:Gr(Zt),be();break;case 26:case 27:case 5:pe(i);break;case 4:be();break;case 13:Wr(i);break;case 19:re(Jt);break;case 10:Gr(i.type);break;case 22:case 23:Wr(i),wd(),n!==null&&re(ia);break;case 24:Gr(Zt)}}function wl(n,i){try{var o=i.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var h=c.next;o=h;do{if((o.tag&n)===n){c=void 0;var y=o.create,T=o.inst;c=y(),T.destroy=c}o=o.next}while(o!==h)}}catch(D){Et(i,i.return,D)}}function Si(n,i,o){try{var c=i.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var y=h.next;c=y;do{if((c.tag&n)===n){var T=c.inst,D=T.destroy;if(D!==void 0){T.destroy=void 0,h=i;var $=o,Q=D;try{Q()}catch(oe){Et(h,$,oe)}}}c=c.next}while(c!==y)}}catch(oe){Et(i,i.return,oe)}}function Z0(n){var i=n.updateQueue;if(i!==null){var o=n.stateNode;try{Iy(i,o)}catch(c){Et(n,n.return,c)}}}function J0(n,i,o){o.props=oa(n.type,n.memoizedProps),o.state=n.memoizedState;try{o.componentWillUnmount()}catch(c){Et(n,i,c)}}function Cl(n,i){try{var o=n.ref;if(o!==null){switch(n.tag){case 26:case 27:case 5:var c=n.stateNode;break;case 30:c=n.stateNode;break;default:c=n.stateNode}typeof o=="function"?n.refCleanup=o(c):o.current=c}}catch(h){Et(n,i,h)}}function Tr(n,i){var o=n.ref,c=n.refCleanup;if(o!==null)if(typeof c=="function")try{c()}catch(h){Et(n,i,h)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(h){Et(n,i,h)}else o.current=null}function eb(n){var i=n.type,o=n.memoizedProps,c=n.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":o.autoFocus&&c.focus();break e;case"img":o.src?c.src=o.src:o.srcSet&&(c.srcset=o.srcSet)}}catch(h){Et(n,n.return,h)}}function Kd(n,i,o){try{var c=n.stateNode;Rk(c,n.type,o,i),c[kn]=i}catch(h){Et(n,n.return,h)}}function tb(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Mi(n.type)||n.tag===4}function Qd(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||tb(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&&Mi(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 Zd(n,i,o){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(n,i):(i=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,i.appendChild(n),o=o._reactRootContainer,o!=null||i.onclick!==null||(i.onclick=Vu));else if(c!==4&&(c===27&&Mi(n.type)&&(o=n.stateNode,i=null),n=n.child,n!==null))for(Zd(n,i,o),n=n.sibling;n!==null;)Zd(n,i,o),n=n.sibling}function Lu(n,i,o){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?o.insertBefore(n,i):o.appendChild(n);else if(c!==4&&(c===27&&Mi(n.type)&&(o=n.stateNode),n=n.child,n!==null))for(Lu(n,i,o),n=n.sibling;n!==null;)Lu(n,i,o),n=n.sibling}function nb(n){var i=n.stateNode,o=n.memoizedProps;try{for(var c=n.type,h=i.attributes;h.length;)i.removeAttributeNode(h[0]);un(i,c,o),i[fn]=n,i[kn]=o}catch(y){Et(n,n.return,y)}}var Zr=!1,qt=!1,Jd=!1,rb=typeof WeakSet=="function"?WeakSet:Set,an=null;function lk(n,i){if(n=n.containerInfo,Cp=Zu,n=hy(n),Qf(n)){if("selectionStart"in n)var o={start:n.selectionStart,end:n.selectionEnd};else e:{o=(o=n.ownerDocument)&&o.defaultView||window;var c=o.getSelection&&o.getSelection();if(c&&c.rangeCount!==0){o=c.anchorNode;var h=c.anchorOffset,y=c.focusNode;c=c.focusOffset;try{o.nodeType,y.nodeType}catch{o=null;break e}var T=0,D=-1,$=-1,Q=0,oe=0,ue=n,ee=null;t:for(;;){for(var te;ue!==o||h!==0&&ue.nodeType!==3||(D=T+h),ue!==y||c!==0&&ue.nodeType!==3||($=T+c),ue.nodeType===3&&(T+=ue.nodeValue.length),(te=ue.firstChild)!==null;)ee=ue,ue=te;for(;;){if(ue===n)break t;if(ee===o&&++Q===h&&(D=T),ee===y&&++oe===c&&($=T),(te=ue.nextSibling)!==null)break;ue=ee,ee=ue.parentNode}ue=te}o=D===-1||$===-1?null:{start:D,end:$}}else o=null}o=o||{start:0,end:0}}else o=null;for(kp={focusedElem:n,selectionRange:o},Zu=!1,an=i;an!==null;)if(i=an,n=i.child,(i.subtreeFlags&1024)!==0&&n!==null)n.return=i,an=n;else for(;an!==null;){switch(i=an,y=i.alternate,n=i.flags,i.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&y!==null){n=void 0,o=i,h=y.memoizedProps,y=y.memoizedState,c=o.stateNode;try{var Ie=oa(o.type,h,o.elementType===o.type);n=c.getSnapshotBeforeUpdate(Ie,y),c.__reactInternalSnapshotBeforeUpdate=n}catch(Ne){Et(o,o.return,Ne)}}break;case 3:if((n&1024)!==0){if(n=i.stateNode.containerInfo,o=n.nodeType,o===9)Rp(n);else if(o===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Rp(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(a(163))}if(n=i.sibling,n!==null){n.return=i.return,an=n;break}an=i.return}}function ib(n,i,o){var c=o.flags;switch(o.tag){case 0:case 11:case 15:wi(n,o),c&4&&wl(5,o);break;case 1:if(wi(n,o),c&4)if(n=o.stateNode,i===null)try{n.componentDidMount()}catch(T){Et(o,o.return,T)}else{var h=oa(o.type,i.memoizedProps);i=i.memoizedState;try{n.componentDidUpdate(h,i,n.__reactInternalSnapshotBeforeUpdate)}catch(T){Et(o,o.return,T)}}c&64&&Z0(o),c&512&&Cl(o,o.return);break;case 3:if(wi(n,o),c&64&&(n=o.updateQueue,n!==null)){if(i=null,o.child!==null)switch(o.child.tag){case 27:case 5:i=o.child.stateNode;break;case 1:i=o.child.stateNode}try{Iy(n,i)}catch(T){Et(o,o.return,T)}}break;case 27:i===null&&c&4&&nb(o);case 26:case 5:wi(n,o),i===null&&c&4&&eb(o),c&512&&Cl(o,o.return);break;case 12:wi(n,o);break;case 13:wi(n,o),c&4&&lb(n,o),c&64&&(n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(o=gk.bind(null,o),Lk(n,o))));break;case 22:if(c=o.memoizedState!==null||Zr,!c){i=i!==null&&i.memoizedState!==null||qt,h=Zr;var y=qt;Zr=c,(qt=i)&&!y?Ci(n,o,(o.subtreeFlags&8772)!==0):wi(n,o),Zr=h,qt=y}break;case 30:break;default:wi(n,o)}}function ab(n){var i=n.alternate;i!==null&&(n.alternate=null,ab(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&Df(i)),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 Mt=null,Rn=!1;function Jr(n,i,o){for(o=o.child;o!==null;)ob(n,i,o),o=o.sibling}function ob(n,i,o){if(ie&&typeof ie.onCommitFiberUnmount=="function")try{ie.onCommitFiberUnmount(ne,o)}catch{}switch(o.tag){case 26:qt||Tr(o,i),Jr(n,i,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:qt||Tr(o,i);var c=Mt,h=Rn;Mi(o.type)&&(Mt=o.stateNode,Rn=!1),Jr(n,i,o),Dl(o.stateNode),Mt=c,Rn=h;break;case 5:qt||Tr(o,i);case 6:if(c=Mt,h=Rn,Mt=null,Jr(n,i,o),Mt=c,Rn=h,Mt!==null)if(Rn)try{(Mt.nodeType===9?Mt.body:Mt.nodeName==="HTML"?Mt.ownerDocument.body:Mt).removeChild(o.stateNode)}catch(y){Et(o,i,y)}else try{Mt.removeChild(o.stateNode)}catch(y){Et(o,i,y)}break;case 18:Mt!==null&&(Rn?(n=Mt,Xb(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,o.stateNode),$l(n)):Xb(Mt,o.stateNode));break;case 4:c=Mt,h=Rn,Mt=o.stateNode.containerInfo,Rn=!0,Jr(n,i,o),Mt=c,Rn=h;break;case 0:case 11:case 14:case 15:qt||Si(2,o,i),qt||Si(4,o,i),Jr(n,i,o);break;case 1:qt||(Tr(o,i),c=o.stateNode,typeof c.componentWillUnmount=="function"&&J0(o,i,c)),Jr(n,i,o);break;case 21:Jr(n,i,o);break;case 22:qt=(c=qt)||o.memoizedState!==null,Jr(n,i,o),qt=c;break;default:Jr(n,i,o)}}function lb(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{$l(n)}catch(o){Et(i,i.return,o)}}function sk(n){switch(n.tag){case 13:case 19:var i=n.stateNode;return i===null&&(i=n.stateNode=new rb),i;case 22:return n=n.stateNode,i=n._retryCache,i===null&&(i=n._retryCache=new rb),i;default:throw Error(a(435,n.tag))}}function ep(n,i){var o=sk(n);i.forEach(function(c){var h=yk.bind(null,n,c);o.has(c)||(o.add(c),c.then(h,h))})}function In(n,i){var o=i.deletions;if(o!==null)for(var c=0;c<o.length;c++){var h=o[c],y=n,T=i,D=T;e:for(;D!==null;){switch(D.tag){case 27:if(Mi(D.type)){Mt=D.stateNode,Rn=!1;break e}break;case 5:Mt=D.stateNode,Rn=!1;break e;case 3:case 4:Mt=D.stateNode.containerInfo,Rn=!0;break e}D=D.return}if(Mt===null)throw Error(a(160));ob(y,T,h),Mt=null,Rn=!1,y=h.alternate,y!==null&&(y.return=null),h.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)sb(i,n),i=i.sibling}var hr=null;function sb(n,i){var o=n.alternate,c=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:In(i,n),$n(n),c&4&&(Si(3,n,n.return),wl(3,n),Si(5,n,n.return));break;case 1:In(i,n),$n(n),c&512&&(qt||o===null||Tr(o,o.return)),c&64&&Zr&&(n=n.updateQueue,n!==null&&(c=n.callbacks,c!==null&&(o=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=o===null?c:o.concat(c))));break;case 26:var h=hr;if(In(i,n),$n(n),c&512&&(qt||o===null||Tr(o,o.return)),c&4){var y=o!==null?o.memoizedState:null;if(c=n.memoizedState,o===null)if(c===null)if(n.stateNode===null){e:{c=n.type,o=n.memoizedProps,h=h.ownerDocument||h;t:switch(c){case"title":y=h.getElementsByTagName("title")[0],(!y||y[Go]||y[fn]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=h.createElement(c),h.head.insertBefore(y,h.querySelector("head > title"))),un(y,c,o),y[fn]=n,nn(y),c=y;break e;case"link":var T=nv("link","href",h).get(c+(o.href||""));if(T){for(var D=0;D<T.length;D++)if(y=T[D],y.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&y.getAttribute("rel")===(o.rel==null?null:o.rel)&&y.getAttribute("title")===(o.title==null?null:o.title)&&y.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){T.splice(D,1);break t}}y=h.createElement(c),un(y,c,o),h.head.appendChild(y);break;case"meta":if(T=nv("meta","content",h).get(c+(o.content||""))){for(D=0;D<T.length;D++)if(y=T[D],y.getAttribute("content")===(o.content==null?null:""+o.content)&&y.getAttribute("name")===(o.name==null?null:o.name)&&y.getAttribute("property")===(o.property==null?null:o.property)&&y.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&y.getAttribute("charset")===(o.charSet==null?null:o.charSet)){T.splice(D,1);break t}}y=h.createElement(c),un(y,c,o),h.head.appendChild(y);break;default:throw Error(a(468,c))}y[fn]=n,nn(y),c=y}n.stateNode=c}else rv(h,n.type,n.stateNode);else n.stateNode=tv(h,c,n.memoizedProps);else y!==c?(y===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):y.count--,c===null?rv(h,n.type,n.stateNode):tv(h,c,n.memoizedProps)):c===null&&n.stateNode!==null&&Kd(n,n.memoizedProps,o.memoizedProps)}break;case 27:In(i,n),$n(n),c&512&&(qt||o===null||Tr(o,o.return)),o!==null&&c&4&&Kd(n,n.memoizedProps,o.memoizedProps);break;case 5:if(In(i,n),$n(n),c&512&&(qt||o===null||Tr(o,o.return)),n.flags&32){h=n.stateNode;try{La(h,"")}catch(te){Et(n,n.return,te)}}c&4&&n.stateNode!=null&&(h=n.memoizedProps,Kd(n,h,o!==null?o.memoizedProps:h)),c&1024&&(Jd=!0);break;case 6:if(In(i,n),$n(n),c&4){if(n.stateNode===null)throw Error(a(162));c=n.memoizedProps,o=n.stateNode;try{o.nodeValue=c}catch(te){Et(n,n.return,te)}}break;case 3:if(Wu=null,h=hr,hr=Gu(i.containerInfo),In(i,n),hr=h,$n(n),c&4&&o!==null&&o.memoizedState.isDehydrated)try{$l(i.containerInfo)}catch(te){Et(n,n.return,te)}Jd&&(Jd=!1,ub(n));break;case 4:c=hr,hr=Gu(n.stateNode.containerInfo),In(i,n),$n(n),hr=c;break;case 12:In(i,n),$n(n);break;case 13:In(i,n),$n(n),n.child.flags&8192&&n.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(op=Me()),c&4&&(c=n.updateQueue,c!==null&&(n.updateQueue=null,ep(n,c)));break;case 22:h=n.memoizedState!==null;var $=o!==null&&o.memoizedState!==null,Q=Zr,oe=qt;if(Zr=Q||h,qt=oe||$,In(i,n),qt=oe,Zr=Q,$n(n),c&8192)e:for(i=n.stateNode,i._visibility=h?i._visibility&-2:i._visibility|1,h&&(o===null||$||Zr||qt||la(n)),o=null,i=n;;){if(i.tag===5||i.tag===26){if(o===null){$=o=i;try{if(y=$.stateNode,h)T=y.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none";else{D=$.stateNode;var ue=$.memoizedProps.style,ee=ue!=null&&ue.hasOwnProperty("display")?ue.display:null;D.style.display=ee==null||typeof ee=="boolean"?"":(""+ee).trim()}}catch(te){Et($,$.return,te)}}}else if(i.tag===6){if(o===null){$=i;try{$.stateNode.nodeValue=h?"":$.memoizedProps}catch(te){Et($,$.return,te)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===n)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break e;for(;i.sibling===null;){if(i.return===null||i.return===n)break e;o===i&&(o=null),i=i.return}o===i&&(o=null),i.sibling.return=i.return,i=i.sibling}c&4&&(c=n.updateQueue,c!==null&&(o=c.retryQueue,o!==null&&(c.retryQueue=null,ep(n,o))));break;case 19:In(i,n),$n(n),c&4&&(c=n.updateQueue,c!==null&&(n.updateQueue=null,ep(n,c)));break;case 30:break;case 21:break;default:In(i,n),$n(n)}}function $n(n){var i=n.flags;if(i&2){try{for(var o,c=n.return;c!==null;){if(tb(c)){o=c;break}c=c.return}if(o==null)throw Error(a(160));switch(o.tag){case 27:var h=o.stateNode,y=Qd(n);Lu(n,y,h);break;case 5:var T=o.stateNode;o.flags&32&&(La(T,""),o.flags&=-33);var D=Qd(n);Lu(n,D,T);break;case 3:case 4:var $=o.stateNode.containerInfo,Q=Qd(n);Zd(n,Q,$);break;default:throw Error(a(161))}}catch(oe){Et(n,n.return,oe)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function ub(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;ub(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),n=n.sibling}}function wi(n,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)ib(n,i.alternate,i),i=i.sibling}function la(n){for(n=n.child;n!==null;){var i=n;switch(i.tag){case 0:case 11:case 14:case 15:Si(4,i,i.return),la(i);break;case 1:Tr(i,i.return);var o=i.stateNode;typeof o.componentWillUnmount=="function"&&J0(i,i.return,o),la(i);break;case 27:Dl(i.stateNode);case 26:case 5:Tr(i,i.return),la(i);break;case 22:i.memoizedState===null&&la(i);break;case 30:la(i);break;default:la(i)}n=n.sibling}}function Ci(n,i,o){for(o=o&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var c=i.alternate,h=n,y=i,T=y.flags;switch(y.tag){case 0:case 11:case 15:Ci(h,y,o),wl(4,y);break;case 1:if(Ci(h,y,o),c=y,h=c.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(Q){Et(c,c.return,Q)}if(c=y,h=c.updateQueue,h!==null){var D=c.stateNode;try{var $=h.shared.hiddenCallbacks;if($!==null)for(h.shared.hiddenCallbacks=null,h=0;h<$.length;h++)By($[h],D)}catch(Q){Et(c,c.return,Q)}}o&&T&64&&Z0(y),Cl(y,y.return);break;case 27:nb(y);case 26:case 5:Ci(h,y,o),o&&c===null&&T&4&&eb(y),Cl(y,y.return);break;case 12:Ci(h,y,o);break;case 13:Ci(h,y,o),o&&T&4&&lb(h,y);break;case 22:y.memoizedState===null&&Ci(h,y,o),Cl(y,y.return);break;case 30:break;default:Ci(h,y,o)}i=i.sibling}}function tp(n,i){var o=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),n=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(n=i.memoizedState.cachePool.pool),n!==o&&(n!=null&&n.refCount++,o!=null&&sl(o))}function np(n,i){n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&sl(n))}function Rr(n,i,o,c){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)cb(n,i,o,c),i=i.sibling}function cb(n,i,o,c){var h=i.flags;switch(i.tag){case 0:case 11:case 15:Rr(n,i,o,c),h&2048&&wl(9,i);break;case 1:Rr(n,i,o,c);break;case 3:Rr(n,i,o,c),h&2048&&(n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&sl(n)));break;case 12:if(h&2048){Rr(n,i,o,c),n=i.stateNode;try{var y=i.memoizedProps,T=y.id,D=y.onPostCommit;typeof D=="function"&&D(T,i.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch($){Et(i,i.return,$)}}else Rr(n,i,o,c);break;case 13:Rr(n,i,o,c);break;case 23:break;case 22:y=i.stateNode,T=i.alternate,i.memoizedState!==null?y._visibility&2?Rr(n,i,o,c):kl(n,i):y._visibility&2?Rr(n,i,o,c):(y._visibility|=2,Ja(n,i,o,c,(i.subtreeFlags&10256)!==0)),h&2048&&tp(T,i);break;case 24:Rr(n,i,o,c),h&2048&&np(i.alternate,i);break;default:Rr(n,i,o,c)}}function Ja(n,i,o,c,h){for(h=h&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;){var y=n,T=i,D=o,$=c,Q=T.flags;switch(T.tag){case 0:case 11:case 15:Ja(y,T,D,$,h),wl(8,T);break;case 23:break;case 22:var oe=T.stateNode;T.memoizedState!==null?oe._visibility&2?Ja(y,T,D,$,h):kl(y,T):(oe._visibility|=2,Ja(y,T,D,$,h)),h&&Q&2048&&tp(T.alternate,T);break;case 24:Ja(y,T,D,$,h),h&&Q&2048&&np(T.alternate,T);break;default:Ja(y,T,D,$,h)}i=i.sibling}}function kl(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var o=n,c=i,h=c.flags;switch(c.tag){case 22:kl(o,c),h&2048&&tp(c.alternate,c);break;case 24:kl(o,c),h&2048&&np(c.alternate,c);break;default:kl(o,c)}i=i.sibling}}var El=8192;function eo(n){if(n.subtreeFlags&El)for(n=n.child;n!==null;)fb(n),n=n.sibling}function fb(n){switch(n.tag){case 26:eo(n),n.flags&El&&n.memoizedState!==null&&Gk(hr,n.memoizedState,n.memoizedProps);break;case 5:eo(n);break;case 3:case 4:var i=hr;hr=Gu(n.stateNode.containerInfo),eo(n),hr=i;break;case 22:n.memoizedState===null&&(i=n.alternate,i!==null&&i.memoizedState!==null?(i=El,El=16777216,eo(n),El=i):eo(n));break;default:eo(n)}}function db(n){var i=n.alternate;if(i!==null&&(n=i.child,n!==null)){i.child=null;do i=n.sibling,n.sibling=null,n=i;while(n!==null)}}function Tl(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var c=i[o];an=c,hb(c,n)}db(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)pb(n),n=n.sibling}function pb(n){switch(n.tag){case 0:case 11:case 15:Tl(n),n.flags&2048&&Si(9,n,n.return);break;case 3:Tl(n);break;case 12:Tl(n);break;case 22:var i=n.stateNode;n.memoizedState!==null&&i._visibility&2&&(n.return===null||n.return.tag!==13)?(i._visibility&=-3,Pu(n)):Tl(n);break;default:Tl(n)}}function Pu(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var c=i[o];an=c,hb(c,n)}db(n)}for(n=n.child;n!==null;){switch(i=n,i.tag){case 0:case 11:case 15:Si(8,i,i.return),Pu(i);break;case 22:o=i.stateNode,o._visibility&2&&(o._visibility&=-3,Pu(i));break;default:Pu(i)}n=n.sibling}}function hb(n,i){for(;an!==null;){var o=an;switch(o.tag){case 0:case 11:case 15:Si(8,o,i);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var c=o.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:sl(o.memoizedState.cache)}if(c=o.child,c!==null)c.return=o,an=c;else e:for(o=n;an!==null;){c=an;var h=c.sibling,y=c.return;if(ab(c),c===o){an=null;break e}if(h!==null){h.return=y,an=h;break e}an=y}}}var uk={getCacheForType:function(n){var i=dn(Zt),o=i.data.get(n);return o===void 0&&(o=n(),i.data.set(n,o)),o}},ck=typeof WeakMap=="function"?WeakMap:Map,gt=0,Rt=null,Je=null,ot=0,yt=0,Hn=null,ki=!1,to=!1,rp=!1,ei=0,_t=0,Ei=0,sa=0,ip=0,rr=0,no=0,Rl=null,An=null,ap=!1,op=0,Nu=1/0,_u=null,Ti=null,sn=0,Ri=null,ro=null,io=0,lp=0,sp=null,mb=null,Al=0,up=null;function Un(){if((gt&2)!==0&&ot!==0)return ot&-ot;if(_.T!==null){var n=Va;return n!==0?n:gp()}return dr()}function gb(){rr===0&&(rr=(ot&536870912)===0||ft?Vi():536870912);var n=nr.current;return n!==null&&(n.flags|=32),rr}function Fn(n,i,o){(n===Rt&&(yt===2||yt===9)||n.cancelPendingCommit!==null)&&(ao(n,0),Ai(n,ot,rr,!1)),Yi(n,o),((gt&2)===0||n!==Rt)&&(n===Rt&&((gt&2)===0&&(sa|=o),_t===4&&Ai(n,ot,rr,!1)),Ar(n))}function yb(n,i,o){if((gt&6)!==0)throw Error(a(327));var c=!o&&(i&124)===0&&(i&n.expiredLanes)===0||st(n,i),h=c?pk(n,i):dp(n,i,!0),y=c;do{if(h===0){to&&!c&&Ai(n,i,0,!1);break}else{if(o=n.current.alternate,y&&!fk(o)){h=dp(n,i,!1),y=!1;continue}if(h===2){if(y=i,n.errorRecoveryDisabledLanes&y)var T=0;else T=n.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){i=T;e:{var D=n;h=Rl;var $=D.current.memoizedState.isDehydrated;if($&&(ao(D,T).flags|=256),T=dp(D,T,!1),T!==2){if(rp&&!$){D.errorRecoveryDisabledLanes|=y,sa|=y,h=4;break e}y=An,An=h,y!==null&&(An===null?An=y:An.push.apply(An,y))}h=T}if(y=!1,h!==2)continue}}if(h===1){ao(n,0),Ai(n,i,0,!0);break}e:{switch(c=n,y=h,y){case 0:case 1:throw Error(a(345));case 4:if((i&4194048)!==i)break;case 6:Ai(c,i,rr,!ki);break e;case 2:An=null;break;case 3:case 5:break;default:throw Error(a(329))}if((i&62914560)===i&&(h=op+300-Me(),10<h)){if(Ai(c,i,rr,!ki),Be(c,0,!0)!==0)break e;c.timeoutHandle=Yb(bb.bind(null,c,o,An,_u,ap,i,rr,sa,no,ki,y,2,-0,0),h);break e}bb(c,o,An,_u,ap,i,rr,sa,no,ki,y,0,-0,0)}}break}while(!0);Ar(n)}function bb(n,i,o,c,h,y,T,D,$,Q,oe,ue,ee,te){if(n.timeoutHandle=-1,ue=i.subtreeFlags,(ue&8192||(ue&16785408)===16785408)&&(Pl={stylesheets:null,count:0,unsuspend:Yk},fb(i),ue=Xk(),ue!==null)){n.cancelPendingCommit=ue(Eb.bind(null,n,i,y,o,c,h,T,D,$,oe,1,ee,te)),Ai(n,y,T,!Q);return}Eb(n,i,y,o,c,h,T,D,$)}function fk(n){for(var i=n;;){var o=i.tag;if((o===0||o===11||o===15)&&i.flags&16384&&(o=i.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var c=0;c<o.length;c++){var h=o[c],y=h.getSnapshot;h=h.value;try{if(!_n(y(),h))return!1}catch{return!1}}if(o=i.child,i.subtreeFlags&16384&&o!==null)o.return=i,i=o;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Ai(n,i,o,c){i&=~ip,i&=~sa,n.suspendedLanes|=i,n.pingedLanes&=~i,c&&(n.warmLanes|=i),c=n.expirationTimes;for(var h=i;0<h;){var y=31-we(h),T=1<<y;c[y]=-1,h&=~T}o!==0&&Gs(n,o,i)}function Bu(){return(gt&6)===0?(Ml(0),!1):!0}function cp(){if(Je!==null){if(yt===0)var n=Je.return;else n=Je,Yr=na=null,Rd(n),Qa=null,vl=0,n=Je;for(;n!==null;)Q0(n.alternate,n),n=n.return;Je=null}}function ao(n,i){var o=n.timeoutHandle;o!==-1&&(n.timeoutHandle=-1,Mk(o)),o=n.cancelPendingCommit,o!==null&&(n.cancelPendingCommit=null,o()),cp(),Rt=n,Je=o=Fr(n.current,null),ot=i,yt=0,Hn=null,ki=!1,to=st(n,i),rp=!1,no=rr=ip=sa=Ei=_t=0,An=Rl=null,ap=!1,(i&8)!==0&&(i|=i&32);var c=n.entangledLanes;if(c!==0)for(n=n.entanglements,c&=i;0<c;){var h=31-we(c),y=1<<h;i|=n[h],c&=~y}return ei=i,ou(),o}function vb(n,i){Ve=null,_.H=Eu,i===cl||i===mu?(i=Ny(),yt=3):i===jy?(i=Ny(),yt=4):yt=i===_0?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Hn=i,Je===null&&(_t=1,Ou(n,Zn(i,n.current)))}function xb(){var n=_.H;return _.H=Eu,n===null?Eu:n}function Sb(){var n=_.A;return _.A=uk,n}function fp(){_t=4,ki||(ot&4194048)!==ot&&nr.current!==null||(to=!0),(Ei&134217727)===0&&(sa&134217727)===0||Rt===null||Ai(Rt,ot,rr,!1)}function dp(n,i,o){var c=gt;gt|=2;var h=xb(),y=Sb();(Rt!==n||ot!==i)&&(_u=null,ao(n,i)),i=!1;var T=_t;e:do try{if(yt!==0&&Je!==null){var D=Je,$=Hn;switch(yt){case 8:cp(),T=6;break e;case 3:case 2:case 9:case 6:nr.current===null&&(i=!0);var Q=yt;if(yt=0,Hn=null,oo(n,D,$,Q),o&&to){T=0;break e}break;default:Q=yt,yt=0,Hn=null,oo(n,D,$,Q)}}dk(),T=_t;break}catch(oe){vb(n,oe)}while(!0);return i&&n.shellSuspendCounter++,Yr=na=null,gt=c,_.H=h,_.A=y,Je===null&&(Rt=null,ot=0,ou()),T}function dk(){for(;Je!==null;)wb(Je)}function pk(n,i){var o=gt;gt|=2;var c=xb(),h=Sb();Rt!==n||ot!==i?(_u=null,Nu=Me()+500,ao(n,i)):to=st(n,i);e:do try{if(yt!==0&&Je!==null){i=Je;var y=Hn;t:switch(yt){case 1:yt=0,Hn=null,oo(n,i,y,1);break;case 2:case 9:if(Ly(y)){yt=0,Hn=null,Cb(i);break}i=function(){yt!==2&&yt!==9||Rt!==n||(yt=7),Ar(n)},y.then(i,i);break e;case 3:yt=7;break e;case 4:yt=5;break e;case 7:Ly(y)?(yt=0,Hn=null,Cb(i)):(yt=0,Hn=null,oo(n,i,y,7));break;case 5:var T=null;switch(Je.tag){case 26:T=Je.memoizedState;case 5:case 27:var D=Je;if(!T||iv(T)){yt=0,Hn=null;var $=D.sibling;if($!==null)Je=$;else{var Q=D.return;Q!==null?(Je=Q,Iu(Q)):Je=null}break t}}yt=0,Hn=null,oo(n,i,y,5);break;case 6:yt=0,Hn=null,oo(n,i,y,6);break;case 8:cp(),_t=6;break e;default:throw Error(a(462))}}hk();break}catch(oe){vb(n,oe)}while(!0);return Yr=na=null,_.H=c,_.A=h,gt=o,Je!==null?0:(Rt=null,ot=0,ou(),_t)}function hk(){for(;Je!==null&&!Oe();)wb(Je)}function wb(n){var i=W0(n.alternate,n,ei);n.memoizedProps=n.pendingProps,i===null?Iu(n):Je=i}function Cb(n){var i=n,o=i.alternate;switch(i.tag){case 15:case 0:i=F0(o,i,i.pendingProps,i.type,void 0,ot);break;case 11:i=F0(o,i,i.pendingProps,i.type.render,i.ref,ot);break;case 5:Rd(i);default:Q0(o,i),i=Je=ky(i,ei),i=W0(o,i,ei)}n.memoizedProps=n.pendingProps,i===null?Iu(n):Je=i}function oo(n,i,o,c){Yr=na=null,Rd(i),Qa=null,vl=0;var h=i.return;try{if(rk(n,h,i,o,ot)){_t=1,Ou(n,Zn(o,n.current)),Je=null;return}}catch(y){if(h!==null)throw Je=h,y;_t=1,Ou(n,Zn(o,n.current)),Je=null;return}i.flags&32768?(ft||c===1?n=!0:to||(ot&536870912)!==0?n=!1:(ki=n=!0,(c===2||c===9||c===3||c===6)&&(c=nr.current,c!==null&&c.tag===13&&(c.flags|=16384))),kb(i,n)):Iu(i)}function Iu(n){var i=n;do{if((i.flags&32768)!==0){kb(i,ki);return}n=i.return;var o=ak(i.alternate,i,ei);if(o!==null){Je=o;return}if(i=i.sibling,i!==null){Je=i;return}Je=i=n}while(i!==null);_t===0&&(_t=5)}function kb(n,i){do{var o=ok(n.alternate,n);if(o!==null){o.flags&=32767,Je=o;return}if(o=n.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!i&&(n=n.sibling,n!==null)){Je=n;return}Je=n=o}while(n!==null);_t=6,Je=null}function Eb(n,i,o,c,h,y,T,D,$){n.cancelPendingCommit=null;do $u();while(sn!==0);if((gt&6)!==0)throw Error(a(327));if(i!==null){if(i===n.current)throw Error(a(177));if(y=i.lanes|i.childLanes,y|=nd,Of(n,o,y,T,D,$),n===Rt&&(Je=Rt=null,ot=0),ro=i,Ri=n,io=o,lp=y,sp=h,mb=c,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,bk(We,function(){return Ob(),null})):(n.callbackNode=null,n.callbackPriority=0),c=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||c){c=_.T,_.T=null,h=G.p,G.p=2,T=gt,gt|=4;try{lk(n,i,o)}finally{gt=T,G.p=h,_.T=c}}sn=1,Tb(),Rb(),Ab()}}function Tb(){if(sn===1){sn=0;var n=Ri,i=ro,o=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||o){o=_.T,_.T=null;var c=G.p;G.p=2;var h=gt;gt|=4;try{sb(i,n);var y=kp,T=hy(n.containerInfo),D=y.focusedElem,$=y.selectionRange;if(T!==D&&D&&D.ownerDocument&&py(D.ownerDocument.documentElement,D)){if($!==null&&Qf(D)){var Q=$.start,oe=$.end;if(oe===void 0&&(oe=Q),"selectionStart"in D)D.selectionStart=Q,D.selectionEnd=Math.min(oe,D.value.length);else{var ue=D.ownerDocument||document,ee=ue&&ue.defaultView||window;if(ee.getSelection){var te=ee.getSelection(),Ie=D.textContent.length,Ne=Math.min($.start,Ie),wt=$.end===void 0?Ne:Math.min($.end,Ie);!te.extend&&Ne>wt&&(T=wt,wt=Ne,Ne=T);var X=dy(D,Ne),Y=dy(D,wt);if(X&&Y&&(te.rangeCount!==1||te.anchorNode!==X.node||te.anchorOffset!==X.offset||te.focusNode!==Y.node||te.focusOffset!==Y.offset)){var W=ue.createRange();W.setStart(X.node,X.offset),te.removeAllRanges(),Ne>wt?(te.addRange(W),te.extend(Y.node,Y.offset)):(W.setEnd(Y.node,Y.offset),te.addRange(W))}}}}for(ue=[],te=D;te=te.parentNode;)te.nodeType===1&&ue.push({element:te,left:te.scrollLeft,top:te.scrollTop});for(typeof D.focus=="function"&&D.focus(),D=0;D<ue.length;D++){var le=ue[D];le.element.scrollLeft=le.left,le.element.scrollTop=le.top}}Zu=!!Cp,kp=Cp=null}finally{gt=h,G.p=c,_.T=o}}n.current=i,sn=2}}function Rb(){if(sn===2){sn=0;var n=Ri,i=ro,o=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||o){o=_.T,_.T=null;var c=G.p;G.p=2;var h=gt;gt|=4;try{ib(n,i.alternate,i)}finally{gt=h,G.p=c,_.T=o}}sn=3}}function Ab(){if(sn===4||sn===3){sn=0,ze();var n=Ri,i=ro,o=io,c=mb;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?sn=5:(sn=0,ro=Ri=null,Mb(n,n.pendingLanes));var h=n.pendingLanes;if(h===0&&(Ti=null),He(o),i=i.stateNode,ie&&typeof ie.onCommitFiberRoot=="function")try{ie.onCommitFiberRoot(ne,i,void 0,(i.current.flags&128)===128)}catch{}if(c!==null){i=_.T,h=G.p,G.p=2,_.T=null;try{for(var y=n.onRecoverableError,T=0;T<c.length;T++){var D=c[T];y(D.value,{componentStack:D.stack})}}finally{_.T=i,G.p=h}}(io&3)!==0&&$u(),Ar(n),h=n.pendingLanes,(o&4194090)!==0&&(h&42)!==0?n===up?Al++:(Al=0,up=n):Al=0,Ml(0)}}function Mb(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,sl(i)))}function $u(n){return Tb(),Rb(),Ab(),Ob()}function Ob(){if(sn!==5)return!1;var n=Ri,i=lp;lp=0;var o=He(io),c=_.T,h=G.p;try{G.p=32>o?32:o,_.T=null,o=sp,sp=null;var y=Ri,T=io;if(sn=0,ro=Ri=null,io=0,(gt&6)!==0)throw Error(a(331));var D=gt;if(gt|=4,pb(y.current),cb(y,y.current,T,o),gt=D,Ml(0,!1),ie&&typeof ie.onPostCommitFiberRoot=="function")try{ie.onPostCommitFiberRoot(ne,y)}catch{}return!0}finally{G.p=h,_.T=c,Mb(n,i)}}function zb(n,i,o){i=Zn(o,i),i=Hd(n.stateNode,i,2),n=yi(n,i,2),n!==null&&(Yi(n,2),Ar(n))}function Et(n,i,o){if(n.tag===3)zb(n,n,o);else for(;i!==null;){if(i.tag===3){zb(i,n,o);break}else if(i.tag===1){var c=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Ti===null||!Ti.has(c))){n=Zn(o,n),o=P0(2),c=yi(i,o,2),c!==null&&(N0(o,c,i,n),Yi(c,2),Ar(c));break}}i=i.return}}function pp(n,i,o){var c=n.pingCache;if(c===null){c=n.pingCache=new ck;var h=new Set;c.set(i,h)}else h=c.get(i),h===void 0&&(h=new Set,c.set(i,h));h.has(o)||(rp=!0,h.add(o),n=mk.bind(null,n,i,o),i.then(n,n))}function mk(n,i,o){var c=n.pingCache;c!==null&&c.delete(i),n.pingedLanes|=n.suspendedLanes&o,n.warmLanes&=~o,Rt===n&&(ot&o)===o&&(_t===4||_t===3&&(ot&62914560)===ot&&300>Me()-op?(gt&2)===0&&ao(n,0):ip|=o,no===ot&&(no=0)),Ar(n)}function Db(n,i){i===0&&(i=Ys()),n=Ha(n,i),n!==null&&(Yi(n,i),Ar(n))}function gk(n){var i=n.memoizedState,o=0;i!==null&&(o=i.retryLane),Db(n,o)}function yk(n,i){var o=0;switch(n.tag){case 13:var c=n.stateNode,h=n.memoizedState;h!==null&&(o=h.retryLane);break;case 19:c=n.stateNode;break;case 22:c=n.stateNode._retryCache;break;default:throw Error(a(314))}c!==null&&c.delete(i),Db(n,o)}function bk(n,i){return Ce(n,i)}var Hu=null,lo=null,hp=!1,Uu=!1,mp=!1,ua=0;function Ar(n){n!==lo&&n.next===null&&(lo===null?Hu=lo=n:lo=lo.next=n),Uu=!0,hp||(hp=!0,xk())}function Ml(n,i){if(!mp&&Uu){mp=!0;do for(var o=!1,c=Hu;c!==null;){if(n!==0){var h=c.pendingLanes;if(h===0)var y=0;else{var T=c.suspendedLanes,D=c.pingedLanes;y=(1<<31-we(42|n)+1)-1,y&=h&~(T&~D),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(o=!0,Nb(c,y))}else y=ot,y=Be(c,c===Rt?y:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(y&3)===0||st(c,y)||(o=!0,Nb(c,y));c=c.next}while(o);mp=!1}}function vk(){jb()}function jb(){Uu=hp=!1;var n=0;ua!==0&&(Ak()&&(n=ua),ua=0);for(var i=Me(),o=null,c=Hu;c!==null;){var h=c.next,y=Lb(c,i);y===0?(c.next=null,o===null?Hu=h:o.next=h,h===null&&(lo=o)):(o=c,(n!==0||(y&3)!==0)&&(Uu=!0)),c=h}Ml(n)}function Lb(n,i){for(var o=n.suspendedLanes,c=n.pingedLanes,h=n.expirationTimes,y=n.pendingLanes&-62914561;0<y;){var T=31-we(y),D=1<<T,$=h[T];$===-1?((D&o)===0||(D&c)!==0)&&(h[T]=zt(D,i)):$<=i&&(n.expiredLanes|=D),y&=~D}if(i=Rt,o=ot,o=Be(n,n===i?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),c=n.callbackNode,o===0||n===i&&(yt===2||yt===9)||n.cancelPendingCommit!==null)return c!==null&&c!==null&&de(c),n.callbackNode=null,n.callbackPriority=0;if((o&3)===0||st(n,o)){if(i=o&-o,i===n.callbackPriority)return i;switch(c!==null&&de(c),He(o)){case 2:case 8:o=Ze;break;case 32:o=We;break;case 268435456:o=Ut;break;default:o=We}return c=Pb.bind(null,n),o=Ce(o,c),n.callbackPriority=i,n.callbackNode=o,i}return c!==null&&c!==null&&de(c),n.callbackPriority=2,n.callbackNode=null,2}function Pb(n,i){if(sn!==0&&sn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var o=n.callbackNode;if($u()&&n.callbackNode!==o)return null;var c=ot;return c=Be(n,n===Rt?c:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),c===0?null:(yb(n,c,i),Lb(n,Me()),n.callbackNode!=null&&n.callbackNode===o?Pb.bind(null,n):null)}function Nb(n,i){if($u())return null;yb(n,i,!0)}function xk(){Ok(function(){(gt&6)!==0?Ce(Xe,vk):jb()})}function gp(){return ua===0&&(ua=Vi()),ua}function _b(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Js(""+n)}function Bb(n,i){var o=i.ownerDocument.createElement("input");return o.name=i.name,o.value=i.value,n.id&&o.setAttribute("form",n.id),i.parentNode.insertBefore(o,i),n=new FormData(n),o.parentNode.removeChild(o),n}function Sk(n,i,o,c,h){if(i==="submit"&&o&&o.stateNode===h){var y=_b((h[kn]||null).action),T=c.submitter;T&&(i=(i=T[kn]||null)?_b(i.formAction):T.getAttribute("formAction"),i!==null&&(y=i,T=null));var D=new ru("action","action",null,c,h);n.push({event:D,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(ua!==0){var $=T?Bb(h,T):new FormData(h);Nd(o,{pending:!0,data:$,method:h.method,action:y},null,$)}}else typeof y=="function"&&(D.preventDefault(),$=T?Bb(h,T):new FormData(h),Nd(o,{pending:!0,data:$,method:h.method,action:y},y,$))},currentTarget:h}]})}}for(var yp=0;yp<td.length;yp++){var bp=td[yp],wk=bp.toLowerCase(),Ck=bp[0].toUpperCase()+bp.slice(1);pr(wk,"on"+Ck)}pr(yy,"onAnimationEnd"),pr(by,"onAnimationIteration"),pr(vy,"onAnimationStart"),pr("dblclick","onDoubleClick"),pr("focusin","onFocus"),pr("focusout","onBlur"),pr($2,"onTransitionRun"),pr(H2,"onTransitionStart"),pr(U2,"onTransitionCancel"),pr(xy,"onTransitionEnd"),za("onMouseEnter",["mouseout","mouseover"]),za("onMouseLeave",["mouseout","mouseover"]),za("onPointerEnter",["pointerout","pointerover"]),za("onPointerLeave",["pointerout","pointerover"]),Gi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Gi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Gi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Gi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Gi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Gi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ol="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(" "),kk=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ol));function Ib(n,i){i=(i&4)!==0;for(var o=0;o<n.length;o++){var c=n[o],h=c.event;c=c.listeners;e:{var y=void 0;if(i)for(var T=c.length-1;0<=T;T--){var D=c[T],$=D.instance,Q=D.currentTarget;if(D=D.listener,$!==y&&h.isPropagationStopped())break e;y=D,h.currentTarget=Q;try{y(h)}catch(oe){Mu(oe)}h.currentTarget=null,y=$}else for(T=0;T<c.length;T++){if(D=c[T],$=D.instance,Q=D.currentTarget,D=D.listener,$!==y&&h.isPropagationStopped())break e;y=D,h.currentTarget=Q;try{y(h)}catch(oe){Mu(oe)}h.currentTarget=null,y=$}}}}function et(n,i){var o=i[zf];o===void 0&&(o=i[zf]=new Set);var c=n+"__bubble";o.has(c)||($b(i,n,2,!1),o.add(c))}function vp(n,i,o){var c=0;i&&(c|=4),$b(o,n,c,i)}var Fu="_reactListening"+Math.random().toString(36).slice(2);function xp(n){if(!n[Fu]){n[Fu]=!0,jg.forEach(function(o){o!=="selectionchange"&&(kk.has(o)||vp(o,!1,n),vp(o,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[Fu]||(i[Fu]=!0,vp("selectionchange",!1,i))}}function $b(n,i,o,c){switch(cv(i)){case 2:var h=Qk;break;case 8:h=Zk;break;default:h=Lp}o=h.bind(null,i,o,n),h=void 0,!Uf||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(h=!0),c?h!==void 0?n.addEventListener(i,o,{capture:!0,passive:h}):n.addEventListener(i,o,!0):h!==void 0?n.addEventListener(i,o,{passive:h}):n.addEventListener(i,o,!1)}function Sp(n,i,o,c,h){var y=c;if((i&1)===0&&(i&2)===0&&c!==null)e:for(;;){if(c===null)return;var T=c.tag;if(T===3||T===4){var D=c.stateNode.containerInfo;if(D===h)break;if(T===4)for(T=c.return;T!==null;){var $=T.tag;if(($===3||$===4)&&T.stateNode.containerInfo===h)return;T=T.return}for(;D!==null;){if(T=Aa(D),T===null)return;if($=T.tag,$===5||$===6||$===26||$===27){c=y=T;continue e}D=D.parentNode}}c=c.return}Gg(function(){var Q=y,oe=$f(o),ue=[];e:{var ee=Sy.get(n);if(ee!==void 0){var te=ru,Ie=n;switch(n){case"keypress":if(tu(o)===0)break e;case"keydown":case"keyup":te=b2;break;case"focusin":Ie="focus",te=Yf;break;case"focusout":Ie="blur",te=Yf;break;case"beforeblur":case"afterblur":te=Yf;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":te=Kg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":te=o2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":te=S2;break;case yy:case by:case vy:te=u2;break;case xy:te=C2;break;case"scroll":case"scrollend":te=i2;break;case"wheel":te=E2;break;case"copy":case"cut":case"paste":te=f2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":te=Zg;break;case"toggle":case"beforetoggle":te=R2}var Ne=(i&4)!==0,wt=!Ne&&(n==="scroll"||n==="scrollend"),X=Ne?ee!==null?ee+"Capture":null:ee;Ne=[];for(var Y=Q,W;Y!==null;){var le=Y;if(W=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||W===null||X===null||(le=Wo(Y,X),le!=null&&Ne.push(zl(Y,le,W))),wt)break;Y=Y.return}0<Ne.length&&(ee=new te(ee,Ie,null,o,oe),ue.push({event:ee,listeners:Ne}))}}if((i&7)===0){e:{if(ee=n==="mouseover"||n==="pointerover",te=n==="mouseout"||n==="pointerout",ee&&o!==If&&(Ie=o.relatedTarget||o.fromElement)&&(Aa(Ie)||Ie[Ra]))break e;if((te||ee)&&(ee=oe.window===oe?oe:(ee=oe.ownerDocument)?ee.defaultView||ee.parentWindow:window,te?(Ie=o.relatedTarget||o.toElement,te=Q,Ie=Ie?Aa(Ie):null,Ie!==null&&(wt=s(Ie),Ne=Ie.tag,Ie!==wt||Ne!==5&&Ne!==27&&Ne!==6)&&(Ie=null)):(te=null,Ie=Q),te!==Ie)){if(Ne=Kg,le="onMouseLeave",X="onMouseEnter",Y="mouse",(n==="pointerout"||n==="pointerover")&&(Ne=Zg,le="onPointerLeave",X="onPointerEnter",Y="pointer"),wt=te==null?ee:Xo(te),W=Ie==null?ee:Xo(Ie),ee=new Ne(le,Y+"leave",te,o,oe),ee.target=wt,ee.relatedTarget=W,le=null,Aa(oe)===Q&&(Ne=new Ne(X,Y+"enter",Ie,o,oe),Ne.target=W,Ne.relatedTarget=wt,le=Ne),wt=le,te&&Ie)t:{for(Ne=te,X=Ie,Y=0,W=Ne;W;W=so(W))Y++;for(W=0,le=X;le;le=so(le))W++;for(;0<Y-W;)Ne=so(Ne),Y--;for(;0<W-Y;)X=so(X),W--;for(;Y--;){if(Ne===X||X!==null&&Ne===X.alternate)break t;Ne=so(Ne),X=so(X)}Ne=null}else Ne=null;te!==null&&Hb(ue,ee,te,Ne,!1),Ie!==null&&wt!==null&&Hb(ue,wt,Ie,Ne,!0)}}e:{if(ee=Q?Xo(Q):window,te=ee.nodeName&&ee.nodeName.toLowerCase(),te==="select"||te==="input"&&ee.type==="file")var Ae=oy;else if(iy(ee))if(ly)Ae=_2;else{Ae=P2;var Ke=L2}else te=ee.nodeName,!te||te.toLowerCase()!=="input"||ee.type!=="checkbox"&&ee.type!=="radio"?Q&&Bf(Q.elementType)&&(Ae=oy):Ae=N2;if(Ae&&(Ae=Ae(n,Q))){ay(ue,Ae,o,oe);break e}Ke&&Ke(n,ee,Q),n==="focusout"&&Q&&ee.type==="number"&&Q.memoizedProps.value!=null&&_f(ee,"number",ee.value)}switch(Ke=Q?Xo(Q):window,n){case"focusin":(iy(Ke)||Ke.contentEditable==="true")&&(Ba=Ke,Zf=Q,rl=null);break;case"focusout":rl=Zf=Ba=null;break;case"mousedown":Jf=!0;break;case"contextmenu":case"mouseup":case"dragend":Jf=!1,my(ue,o,oe);break;case"selectionchange":if(I2)break;case"keydown":case"keyup":my(ue,o,oe)}var De;if(Xf)e:{switch(n){case"compositionstart":var _e="onCompositionStart";break e;case"compositionend":_e="onCompositionEnd";break e;case"compositionupdate":_e="onCompositionUpdate";break e}_e=void 0}else _a?ny(n,o)&&(_e="onCompositionEnd"):n==="keydown"&&o.keyCode===229&&(_e="onCompositionStart");_e&&(Jg&&o.locale!=="ko"&&(_a||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&_a&&(De=Xg()):(pi=oe,Ff="value"in pi?pi.value:pi.textContent,_a=!0)),Ke=qu(Q,_e),0<Ke.length&&(_e=new Qg(_e,n,null,o,oe),ue.push({event:_e,listeners:Ke}),De?_e.data=De:(De=ry(o),De!==null&&(_e.data=De)))),(De=M2?O2(n,o):z2(n,o))&&(_e=qu(Q,"onBeforeInput"),0<_e.length&&(Ke=new Qg("onBeforeInput","beforeinput",null,o,oe),ue.push({event:Ke,listeners:_e}),Ke.data=De)),Sk(ue,n,Q,o,oe)}Ib(ue,i)})}function zl(n,i,o){return{instance:n,listener:i,currentTarget:o}}function qu(n,i){for(var o=i+"Capture",c=[];n!==null;){var h=n,y=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||y===null||(h=Wo(n,o),h!=null&&c.unshift(zl(n,h,y)),h=Wo(n,i),h!=null&&c.push(zl(n,h,y))),n.tag===3)return c;n=n.return}return[]}function so(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function Hb(n,i,o,c,h){for(var y=i._reactName,T=[];o!==null&&o!==c;){var D=o,$=D.alternate,Q=D.stateNode;if(D=D.tag,$!==null&&$===c)break;D!==5&&D!==26&&D!==27||Q===null||($=Q,h?(Q=Wo(o,y),Q!=null&&T.unshift(zl(o,Q,$))):h||(Q=Wo(o,y),Q!=null&&T.push(zl(o,Q,$)))),o=o.return}T.length!==0&&n.push({event:i,listeners:T})}var Ek=/\r\n?/g,Tk=/\u0000|\uFFFD/g;function Ub(n){return(typeof n=="string"?n:""+n).replace(Ek,`
`).replace(Tk,"")}function Fb(n,i){return i=Ub(i),Ub(n)===i}function Vu(){}function St(n,i,o,c,h,y){switch(o){case"children":typeof c=="string"?i==="body"||i==="textarea"&&c===""||La(n,c):(typeof c=="number"||typeof c=="bigint")&&i!=="body"&&La(n,""+c);break;case"className":Ks(n,"class",c);break;case"tabIndex":Ks(n,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Ks(n,o,c);break;case"style":Vg(n,c,y);break;case"data":if(i!=="object"){Ks(n,"data",c);break}case"src":case"href":if(c===""&&(i!=="a"||o!=="href")){n.removeAttribute(o);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(o);break}c=Js(""+c),n.setAttribute(o,c);break;case"action":case"formAction":if(typeof c=="function"){n.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof y=="function"&&(o==="formAction"?(i!=="input"&&St(n,i,"name",h.name,h,null),St(n,i,"formEncType",h.formEncType,h,null),St(n,i,"formMethod",h.formMethod,h,null),St(n,i,"formTarget",h.formTarget,h,null)):(St(n,i,"encType",h.encType,h,null),St(n,i,"method",h.method,h,null),St(n,i,"target",h.target,h,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(o);break}c=Js(""+c),n.setAttribute(o,c);break;case"onClick":c!=null&&(n.onclick=Vu);break;case"onScroll":c!=null&&et("scroll",n);break;case"onScrollEnd":c!=null&&et("scrollend",n);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(a(61));if(o=c.__html,o!=null){if(h.children!=null)throw Error(a(60));n.innerHTML=o}}break;case"multiple":n.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":n.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){n.removeAttribute("xlink:href");break}o=Js(""+c),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(o,""+c):n.removeAttribute(o);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":c&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(o,""):n.removeAttribute(o);break;case"capture":case"download":c===!0?n.setAttribute(o,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(o,c):n.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?n.setAttribute(o,c):n.removeAttribute(o);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?n.removeAttribute(o):n.setAttribute(o,c);break;case"popover":et("beforetoggle",n),et("toggle",n),Ws(n,"popover",c);break;case"xlinkActuate":Hr(n,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Hr(n,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Hr(n,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Hr(n,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Hr(n,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Hr(n,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Hr(n,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Hr(n,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Hr(n,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Ws(n,"is",c);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=n2.get(o)||o,Ws(n,o,c))}}function wp(n,i,o,c,h,y){switch(o){case"style":Vg(n,c,y);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(a(61));if(o=c.__html,o!=null){if(h.children!=null)throw Error(a(60));n.innerHTML=o}}break;case"children":typeof c=="string"?La(n,c):(typeof c=="number"||typeof c=="bigint")&&La(n,""+c);break;case"onScroll":c!=null&&et("scroll",n);break;case"onScrollEnd":c!=null&&et("scrollend",n);break;case"onClick":c!=null&&(n.onclick=Vu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Lg.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(h=o.endsWith("Capture"),i=o.slice(2,h?o.length-7:void 0),y=n[kn]||null,y=y!=null?y[o]:null,typeof y=="function"&&n.removeEventListener(i,y,h),typeof c=="function")){typeof y!="function"&&y!==null&&(o in n?n[o]=null:n.hasAttribute(o)&&n.removeAttribute(o)),n.addEventListener(i,c,h);break e}o in n?n[o]=c:c===!0?n.setAttribute(o,""):Ws(n,o,c)}}}function un(n,i,o){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":et("error",n),et("load",n);var c=!1,h=!1,y;for(y in o)if(o.hasOwnProperty(y)){var T=o[y];if(T!=null)switch(y){case"src":c=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:St(n,i,y,T,o,null)}}h&&St(n,i,"srcSet",o.srcSet,o,null),c&&St(n,i,"src",o.src,o,null);return;case"input":et("invalid",n);var D=y=T=h=null,$=null,Q=null;for(c in o)if(o.hasOwnProperty(c)){var oe=o[c];if(oe!=null)switch(c){case"name":h=oe;break;case"type":T=oe;break;case"checked":$=oe;break;case"defaultChecked":Q=oe;break;case"value":y=oe;break;case"defaultValue":D=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(a(137,i));break;default:St(n,i,c,oe,o,null)}}Hg(n,y,D,$,Q,T,h,!1),Qs(n);return;case"select":et("invalid",n),c=T=y=null;for(h in o)if(o.hasOwnProperty(h)&&(D=o[h],D!=null))switch(h){case"value":y=D;break;case"defaultValue":T=D;break;case"multiple":c=D;default:St(n,i,h,D,o,null)}i=y,o=T,n.multiple=!!c,i!=null?ja(n,!!c,i,!1):o!=null&&ja(n,!!c,o,!0);return;case"textarea":et("invalid",n),y=h=c=null;for(T in o)if(o.hasOwnProperty(T)&&(D=o[T],D!=null))switch(T){case"value":c=D;break;case"defaultValue":h=D;break;case"children":y=D;break;case"dangerouslySetInnerHTML":if(D!=null)throw Error(a(91));break;default:St(n,i,T,D,o,null)}Fg(n,c,h,y),Qs(n);return;case"option":for($ in o)if(o.hasOwnProperty($)&&(c=o[$],c!=null))switch($){case"selected":n.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:St(n,i,$,c,o,null)}return;case"dialog":et("beforetoggle",n),et("toggle",n),et("cancel",n),et("close",n);break;case"iframe":case"object":et("load",n);break;case"video":case"audio":for(c=0;c<Ol.length;c++)et(Ol[c],n);break;case"image":et("error",n),et("load",n);break;case"details":et("toggle",n);break;case"embed":case"source":case"link":et("error",n),et("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(Q in o)if(o.hasOwnProperty(Q)&&(c=o[Q],c!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:St(n,i,Q,c,o,null)}return;default:if(Bf(i)){for(oe in o)o.hasOwnProperty(oe)&&(c=o[oe],c!==void 0&&wp(n,i,oe,c,o,void 0));return}}for(D in o)o.hasOwnProperty(D)&&(c=o[D],c!=null&&St(n,i,D,c,o,null))}function Rk(n,i,o,c){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,y=null,T=null,D=null,$=null,Q=null,oe=null;for(te in o){var ue=o[te];if(o.hasOwnProperty(te)&&ue!=null)switch(te){case"checked":break;case"value":break;case"defaultValue":$=ue;default:c.hasOwnProperty(te)||St(n,i,te,null,c,ue)}}for(var ee in c){var te=c[ee];if(ue=o[ee],c.hasOwnProperty(ee)&&(te!=null||ue!=null))switch(ee){case"type":y=te;break;case"name":h=te;break;case"checked":Q=te;break;case"defaultChecked":oe=te;break;case"value":T=te;break;case"defaultValue":D=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(a(137,i));break;default:te!==ue&&St(n,i,ee,te,c,ue)}}Nf(n,T,D,$,Q,oe,y,h);return;case"select":te=T=D=ee=null;for(y in o)if($=o[y],o.hasOwnProperty(y)&&$!=null)switch(y){case"value":break;case"multiple":te=$;default:c.hasOwnProperty(y)||St(n,i,y,null,c,$)}for(h in c)if(y=c[h],$=o[h],c.hasOwnProperty(h)&&(y!=null||$!=null))switch(h){case"value":ee=y;break;case"defaultValue":D=y;break;case"multiple":T=y;default:y!==$&&St(n,i,h,y,c,$)}i=D,o=T,c=te,ee!=null?ja(n,!!o,ee,!1):!!c!=!!o&&(i!=null?ja(n,!!o,i,!0):ja(n,!!o,o?[]:"",!1));return;case"textarea":te=ee=null;for(D in o)if(h=o[D],o.hasOwnProperty(D)&&h!=null&&!c.hasOwnProperty(D))switch(D){case"value":break;case"children":break;default:St(n,i,D,null,c,h)}for(T in c)if(h=c[T],y=o[T],c.hasOwnProperty(T)&&(h!=null||y!=null))switch(T){case"value":ee=h;break;case"defaultValue":te=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(a(91));break;default:h!==y&&St(n,i,T,h,c,y)}Ug(n,ee,te);return;case"option":for(var Ie in o)if(ee=o[Ie],o.hasOwnProperty(Ie)&&ee!=null&&!c.hasOwnProperty(Ie))switch(Ie){case"selected":n.selected=!1;break;default:St(n,i,Ie,null,c,ee)}for($ in c)if(ee=c[$],te=o[$],c.hasOwnProperty($)&&ee!==te&&(ee!=null||te!=null))switch($){case"selected":n.selected=ee&&typeof ee!="function"&&typeof ee!="symbol";break;default:St(n,i,$,ee,c,te)}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 Ne in o)ee=o[Ne],o.hasOwnProperty(Ne)&&ee!=null&&!c.hasOwnProperty(Ne)&&St(n,i,Ne,null,c,ee);for(Q in c)if(ee=c[Q],te=o[Q],c.hasOwnProperty(Q)&&ee!==te&&(ee!=null||te!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(a(137,i));break;default:St(n,i,Q,ee,c,te)}return;default:if(Bf(i)){for(var wt in o)ee=o[wt],o.hasOwnProperty(wt)&&ee!==void 0&&!c.hasOwnProperty(wt)&&wp(n,i,wt,void 0,c,ee);for(oe in c)ee=c[oe],te=o[oe],!c.hasOwnProperty(oe)||ee===te||ee===void 0&&te===void 0||wp(n,i,oe,ee,c,te);return}}for(var X in o)ee=o[X],o.hasOwnProperty(X)&&ee!=null&&!c.hasOwnProperty(X)&&St(n,i,X,null,c,ee);for(ue in c)ee=c[ue],te=o[ue],!c.hasOwnProperty(ue)||ee===te||ee==null&&te==null||St(n,i,ue,ee,c,te)}var Cp=null,kp=null;function Yu(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 Vb(n,i){if(n===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&i==="foreignObject"?0:n}function Ep(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Tp=null;function Ak(){var n=window.event;return n&&n.type==="popstate"?n===Tp?!1:(Tp=n,!0):(Tp=null,!1)}var Yb=typeof setTimeout=="function"?setTimeout:void 0,Mk=typeof clearTimeout=="function"?clearTimeout:void 0,Gb=typeof Promise=="function"?Promise:void 0,Ok=typeof queueMicrotask=="function"?queueMicrotask:typeof Gb<"u"?function(n){return Gb.resolve(null).then(n).catch(zk)}:Yb;function zk(n){setTimeout(function(){throw n})}function Mi(n){return n==="head"}function Xb(n,i){var o=i,c=0,h=0;do{var y=o.nextSibling;if(n.removeChild(o),y&&y.nodeType===8)if(o=y.data,o==="/$"){if(0<c&&8>c){o=c;var T=n.ownerDocument;if(o&1&&Dl(T.documentElement),o&2&&Dl(T.body),o&4)for(o=T.head,Dl(o),T=o.firstChild;T;){var D=T.nextSibling,$=T.nodeName;T[Go]||$==="SCRIPT"||$==="STYLE"||$==="LINK"&&T.rel.toLowerCase()==="stylesheet"||o.removeChild(T),T=D}}if(h===0){n.removeChild(y),$l(i);return}h--}else o==="$"||o==="$?"||o==="$!"?h++:c=o.charCodeAt(0)-48;else c=0;o=y}while(o);$l(i)}function Rp(n){var i=n.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var o=i;switch(i=i.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":Rp(o),Df(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}n.removeChild(o)}}function Dk(n,i,o,c){for(;n.nodeType===1;){var h=o;if(n.nodeName.toLowerCase()!==i.toLowerCase()){if(!c&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(c){if(!n[Go])switch(i){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(y=n.getAttribute("rel"),y==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(y!==h.rel||n.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||n.getAttribute("title")!==(h.title==null?null:h.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(y=n.getAttribute("src"),(y!==(h.src==null?null:h.src)||n.getAttribute("type")!==(h.type==null?null:h.type)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&y&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){var y=h.name==null?null:""+h.name;if(h.type==="hidden"&&n.getAttribute("name")===y)return n}else return n;if(n=mr(n.nextSibling),n===null)break}return null}function jk(n,i,o){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!o||(n=mr(n.nextSibling),n===null))return null;return n}function Ap(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}function Lk(n,i){var o=n.ownerDocument;if(n.data!=="$?"||o.readyState==="complete")i();else{var c=function(){i(),o.removeEventListener("DOMContentLoaded",c)};o.addEventListener("DOMContentLoaded",c),n._reactRetry=c}}function mr(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?"||i==="F!"||i==="F")break;if(i==="/$")return null}}return n}var Mp=null;function Wb(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var o=n.data;if(o==="$"||o==="$!"||o==="$?"){if(i===0)return n;i--}else o==="/$"&&i++}n=n.previousSibling}return null}function Kb(n,i,o){switch(i=Yu(o),n){case"html":if(n=i.documentElement,!n)throw Error(a(452));return n;case"head":if(n=i.head,!n)throw Error(a(453));return n;case"body":if(n=i.body,!n)throw Error(a(454));return n;default:throw Error(a(451))}}function Dl(n){for(var i=n.attributes;i.length;)n.removeAttributeNode(i[0]);Df(n)}var ir=new Map,Qb=new Set;function Gu(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var ti=G.d;G.d={f:Pk,r:Nk,D:_k,C:Bk,L:Ik,m:$k,X:Uk,S:Hk,M:Fk};function Pk(){var n=ti.f(),i=Bu();return n||i}function Nk(n){var i=Ma(n);i!==null&&i.tag===5&&i.type==="form"?y0(i):ti.r(n)}var uo=typeof document>"u"?null:document;function Zb(n,i,o){var c=uo;if(c&&typeof i=="string"&&i){var h=Qn(i);h='link[rel="'+n+'"][href="'+h+'"]',typeof o=="string"&&(h+='[crossorigin="'+o+'"]'),Qb.has(h)||(Qb.add(h),n={rel:n,crossOrigin:o,href:i},c.querySelector(h)===null&&(i=c.createElement("link"),un(i,"link",n),nn(i),c.head.appendChild(i)))}}function _k(n){ti.D(n),Zb("dns-prefetch",n,null)}function Bk(n,i){ti.C(n,i),Zb("preconnect",n,i)}function Ik(n,i,o){ti.L(n,i,o);var c=uo;if(c&&n&&i){var h='link[rel="preload"][as="'+Qn(i)+'"]';i==="image"&&o&&o.imageSrcSet?(h+='[imagesrcset="'+Qn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(h+='[imagesizes="'+Qn(o.imageSizes)+'"]')):h+='[href="'+Qn(n)+'"]';var y=h;switch(i){case"style":y=co(n);break;case"script":y=fo(n)}ir.has(y)||(n=m({rel:"preload",href:i==="image"&&o&&o.imageSrcSet?void 0:n,as:i},o),ir.set(y,n),c.querySelector(h)!==null||i==="style"&&c.querySelector(jl(y))||i==="script"&&c.querySelector(Ll(y))||(i=c.createElement("link"),un(i,"link",n),nn(i),c.head.appendChild(i)))}}function $k(n,i){ti.m(n,i);var o=uo;if(o&&n){var c=i&&typeof i.as=="string"?i.as:"script",h='link[rel="modulepreload"][as="'+Qn(c)+'"][href="'+Qn(n)+'"]',y=h;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=fo(n)}if(!ir.has(y)&&(n=m({rel:"modulepreload",href:n},i),ir.set(y,n),o.querySelector(h)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Ll(y)))return}c=o.createElement("link"),un(c,"link",n),nn(c),o.head.appendChild(c)}}}function Hk(n,i,o){ti.S(n,i,o);var c=uo;if(c&&n){var h=Oa(c).hoistableStyles,y=co(n);i=i||"default";var T=h.get(y);if(!T){var D={loading:0,preload:null};if(T=c.querySelector(jl(y)))D.loading=5;else{n=m({rel:"stylesheet",href:n,"data-precedence":i},o),(o=ir.get(y))&&Op(n,o);var $=T=c.createElement("link");nn($),un($,"link",n),$._p=new Promise(function(Q,oe){$.onload=Q,$.onerror=oe}),$.addEventListener("load",function(){D.loading|=1}),$.addEventListener("error",function(){D.loading|=2}),D.loading|=4,Xu(T,i,c)}T={type:"stylesheet",instance:T,count:1,state:D},h.set(y,T)}}}function Uk(n,i){ti.X(n,i);var o=uo;if(o&&n){var c=Oa(o).hoistableScripts,h=fo(n),y=c.get(h);y||(y=o.querySelector(Ll(h)),y||(n=m({src:n,async:!0},i),(i=ir.get(h))&&zp(n,i),y=o.createElement("script"),nn(y),un(y,"link",n),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(h,y))}}function Fk(n,i){ti.M(n,i);var o=uo;if(o&&n){var c=Oa(o).hoistableScripts,h=fo(n),y=c.get(h);y||(y=o.querySelector(Ll(h)),y||(n=m({src:n,async:!0,type:"module"},i),(i=ir.get(h))&&zp(n,i),y=o.createElement("script"),nn(y),un(y,"link",n),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(h,y))}}function Jb(n,i,o,c){var h=(h=fe.current)?Gu(h):null;if(!h)throw Error(a(446));switch(n){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(i=co(o.href),o=Oa(h).hoistableStyles,c=o.get(i),c||(c={type:"style",instance:null,count:0,state:null},o.set(i,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){n=co(o.href);var y=Oa(h).hoistableStyles,T=y.get(n);if(T||(h=h.ownerDocument||h,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(n,T),(y=h.querySelector(jl(n)))&&!y._p&&(T.instance=y,T.state.loading=5),ir.has(n)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},ir.set(n,o),y||qk(h,n,o,T.state))),i&&c===null)throw Error(a(528,""));return T}if(i&&c!==null)throw Error(a(529,""));return null;case"script":return i=o.async,o=o.src,typeof o=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=fo(o),o=Oa(h).hoistableScripts,c=o.get(i),c||(c={type:"script",instance:null,count:0,state:null},o.set(i,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,n))}}function co(n){return'href="'+Qn(n)+'"'}function jl(n){return'link[rel="stylesheet"]['+n+"]"}function ev(n){return m({},n,{"data-precedence":n.precedence,precedence:null})}function qk(n,i,o,c){n.querySelector('link[rel="preload"][as="style"]['+i+"]")?c.loading=1:(i=n.createElement("link"),c.preload=i,i.addEventListener("load",function(){return c.loading|=1}),i.addEventListener("error",function(){return c.loading|=2}),un(i,"link",o),nn(i),n.head.appendChild(i))}function fo(n){return'[src="'+Qn(n)+'"]'}function Ll(n){return"script[async]"+n}function tv(n,i,o){if(i.count++,i.instance===null)switch(i.type){case"style":var c=n.querySelector('style[data-href~="'+Qn(o.href)+'"]');if(c)return i.instance=c,nn(c),c;var h=m({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return c=(n.ownerDocument||n).createElement("style"),nn(c),un(c,"style",h),Xu(c,o.precedence,n),i.instance=c;case"stylesheet":h=co(o.href);var y=n.querySelector(jl(h));if(y)return i.state.loading|=4,i.instance=y,nn(y),y;c=ev(o),(h=ir.get(h))&&Op(c,h),y=(n.ownerDocument||n).createElement("link"),nn(y);var T=y;return T._p=new Promise(function(D,$){T.onload=D,T.onerror=$}),un(y,"link",c),i.state.loading|=4,Xu(y,o.precedence,n),i.instance=y;case"script":return y=fo(o.src),(h=n.querySelector(Ll(y)))?(i.instance=h,nn(h),h):(c=o,(h=ir.get(y))&&(c=m({},o),zp(c,h)),n=n.ownerDocument||n,h=n.createElement("script"),nn(h),un(h,"link",c),n.head.appendChild(h),i.instance=h);case"void":return null;default:throw Error(a(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(c=i.instance,i.state.loading|=4,Xu(c,o.precedence,n));return i.instance}function Xu(n,i,o){for(var c=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=c.length?c[c.length-1]:null,y=h,T=0;T<c.length;T++){var D=c[T];if(D.dataset.precedence===i)y=D;else if(y!==h)break}y?y.parentNode.insertBefore(n,y.nextSibling):(i=o.nodeType===9?o.head:o,i.insertBefore(n,i.firstChild))}function Op(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}function zp(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}var Wu=null;function nv(n,i,o){if(Wu===null){var c=new Map,h=Wu=new Map;h.set(o,c)}else h=Wu,c=h.get(o),c||(c=new Map,h.set(o,c));if(c.has(n))return c;for(c.set(n,null),o=o.getElementsByTagName(n),h=0;h<o.length;h++){var y=o[h];if(!(y[Go]||y[fn]||n==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var T=y.getAttribute(i)||"";T=n+T;var D=c.get(T);D?D.push(y):c.set(T,[y])}}return c}function rv(n,i,o){n=n.ownerDocument||n,n.head.insertBefore(o,i==="title"?n.querySelector("head > title"):null)}function Vk(n,i,o){if(o===1||i.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return n=i.disabled,typeof i.precedence=="string"&&n==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function iv(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var Pl=null;function Yk(){}function Gk(n,i,o){if(Pl===null)throw Error(a(475));var c=Pl;if(i.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var h=co(o.href),y=n.querySelector(jl(h));if(y){n=y._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(c.count++,c=Ku.bind(c),n.then(c,c)),i.state.loading|=4,i.instance=y,nn(y);return}y=n.ownerDocument||n,o=ev(o),(h=ir.get(h))&&Op(o,h),y=y.createElement("link"),nn(y);var T=y;T._p=new Promise(function(D,$){T.onload=D,T.onerror=$}),un(y,"link",o),i.instance=y}c.stylesheets===null&&(c.stylesheets=new Map),c.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(c.count++,i=Ku.bind(c),n.addEventListener("load",i),n.addEventListener("error",i))}}function Xk(){if(Pl===null)throw Error(a(475));var n=Pl;return n.stylesheets&&n.count===0&&Dp(n,n.stylesheets),0<n.count?function(i){var o=setTimeout(function(){if(n.stylesheets&&Dp(n,n.stylesheets),n.unsuspend){var c=n.unsuspend;n.unsuspend=null,c()}},6e4);return n.unsuspend=i,function(){n.unsuspend=null,clearTimeout(o)}}:null}function Ku(){if(this.count--,this.count===0){if(this.stylesheets)Dp(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Qu=null;function Dp(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Qu=new Map,i.forEach(Wk,n),Qu=null,Ku.call(n))}function Wk(n,i){if(!(i.state.loading&4)){var o=Qu.get(n);if(o)var c=o.get(null);else{o=new Map,Qu.set(n,o);for(var h=n.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<h.length;y++){var T=h[y];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(o.set(T.dataset.precedence,T),c=T)}c&&o.set(null,c)}h=i.instance,T=h.getAttribute("data-precedence"),y=o.get(T)||c,y===c&&o.set(null,h),o.set(T,h),this.count++,c=Ku.bind(this),h.addEventListener("load",c),h.addEventListener("error",c),y?y.parentNode.insertBefore(h,y.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(h,n.firstChild)),i.state.loading|=4}}var Nl={$$typeof:O,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function Kk(n,i,o,c,h,y,T,D){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=Vo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vo(0),this.hiddenUpdates=Vo(null),this.identifierPrefix=c,this.onUncaughtError=h,this.onCaughtError=y,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=D,this.incompleteTransitions=new Map}function av(n,i,o,c,h,y,T,D,$,Q,oe,ue){return n=new Kk(n,i,o,T,D,$,Q,ue),i=1,y===!0&&(i|=24),y=Bn(3,null,null,i),n.current=y,y.stateNode=n,i=pd(),i.refCount++,n.pooledCache=i,i.refCount++,y.memoizedState={element:c,isDehydrated:o,cache:i},yd(y),n}function ov(n){return n?(n=Ua,n):Ua}function lv(n,i,o,c,h,y){h=ov(h),c.context===null?c.context=h:c.pendingContext=h,c=gi(i),c.payload={element:o},y=y===void 0?null:y,y!==null&&(c.callback=y),o=yi(n,c,i),o!==null&&(Fn(o,n,i),dl(o,n,i))}function sv(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var o=n.retryLane;n.retryLane=o!==0&&o<i?o:i}}function jp(n,i){sv(n,i),(n=n.alternate)&&sv(n,i)}function uv(n){if(n.tag===13){var i=Ha(n,67108864);i!==null&&Fn(i,n,67108864),jp(n,67108864)}}var Zu=!0;function Qk(n,i,o,c){var h=_.T;_.T=null;var y=G.p;try{G.p=2,Lp(n,i,o,c)}finally{G.p=y,_.T=h}}function Zk(n,i,o,c){var h=_.T;_.T=null;var y=G.p;try{G.p=8,Lp(n,i,o,c)}finally{G.p=y,_.T=h}}function Lp(n,i,o,c){if(Zu){var h=Pp(c);if(h===null)Sp(n,i,c,Ju,o),fv(n,c);else if(eE(h,n,i,o,c))c.stopPropagation();else if(fv(n,c),i&4&&-1<Jk.indexOf(n)){for(;h!==null;){var y=Ma(h);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var T=Re(y.pendingLanes);if(T!==0){var D=y;for(D.pendingLanes|=2,D.entangledLanes|=2;T;){var $=1<<31-we(T);D.entanglements[1]|=$,T&=~$}Ar(y),(gt&6)===0&&(Nu=Me()+500,Ml(0))}}break;case 13:D=Ha(y,2),D!==null&&Fn(D,y,2),Bu(),jp(y,2)}if(y=Pp(c),y===null&&Sp(n,i,c,Ju,o),y===h)break;h=y}h!==null&&c.stopPropagation()}else Sp(n,i,c,null,o)}}function Pp(n){return n=$f(n),Np(n)}var Ju=null;function Np(n){if(Ju=null,n=Aa(n),n!==null){var i=s(n);if(i===null)n=null;else{var o=i.tag;if(o===13){if(n=u(i),n!==null)return n;n=null}else if(o===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return Ju=n,null}function cv(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(qe()){case Xe:return 2;case Ze:return 8;case We:case Ee:return 32;case Ut:return 268435456;default:return 32}default:return 32}}var _p=!1,Oi=null,zi=null,Di=null,_l=new Map,Bl=new Map,ji=[],Jk="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 fv(n,i){switch(n){case"focusin":case"focusout":Oi=null;break;case"dragenter":case"dragleave":zi=null;break;case"mouseover":case"mouseout":Di=null;break;case"pointerover":case"pointerout":_l.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bl.delete(i.pointerId)}}function Il(n,i,o,c,h,y){return n===null||n.nativeEvent!==y?(n={blockedOn:i,domEventName:o,eventSystemFlags:c,nativeEvent:y,targetContainers:[h]},i!==null&&(i=Ma(i),i!==null&&uv(i)),n):(n.eventSystemFlags|=c,i=n.targetContainers,h!==null&&i.indexOf(h)===-1&&i.push(h),n)}function eE(n,i,o,c,h){switch(i){case"focusin":return Oi=Il(Oi,n,i,o,c,h),!0;case"dragenter":return zi=Il(zi,n,i,o,c,h),!0;case"mouseover":return Di=Il(Di,n,i,o,c,h),!0;case"pointerover":var y=h.pointerId;return _l.set(y,Il(_l.get(y)||null,n,i,o,c,h)),!0;case"gotpointercapture":return y=h.pointerId,Bl.set(y,Il(Bl.get(y)||null,n,i,o,c,h)),!0}return!1}function dv(n){var i=Aa(n.target);if(i!==null){var o=s(i);if(o!==null){if(i=o.tag,i===13){if(i=u(o),i!==null){n.blockedOn=i,GC(n.priority,function(){if(o.tag===13){var c=Un();c=Yo(c);var h=Ha(o,c);h!==null&&Fn(h,o,c),jp(o,c)}});return}}else if(i===3&&o.stateNode.current.memoizedState.isDehydrated){n.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}n.blockedOn=null}function ec(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var o=Pp(n.nativeEvent);if(o===null){o=n.nativeEvent;var c=new o.constructor(o.type,o);If=c,o.target.dispatchEvent(c),If=null}else return i=Ma(o),i!==null&&uv(i),n.blockedOn=o,!1;i.shift()}return!0}function pv(n,i,o){ec(n)&&o.delete(i)}function tE(){_p=!1,Oi!==null&&ec(Oi)&&(Oi=null),zi!==null&&ec(zi)&&(zi=null),Di!==null&&ec(Di)&&(Di=null),_l.forEach(pv),Bl.forEach(pv)}function tc(n,i){n.blockedOn===i&&(n.blockedOn=null,_p||(_p=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,tE)))}var nc=null;function hv(n){nc!==n&&(nc=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){nc===n&&(nc=null);for(var i=0;i<n.length;i+=3){var o=n[i],c=n[i+1],h=n[i+2];if(typeof c!="function"){if(Np(c||o)===null)continue;break}var y=Ma(o);y!==null&&(n.splice(i,3),i-=3,Nd(y,{pending:!0,data:h,method:o.method,action:c},c,h))}}))}function $l(n){function i($){return tc($,n)}Oi!==null&&tc(Oi,n),zi!==null&&tc(zi,n),Di!==null&&tc(Di,n),_l.forEach(i),Bl.forEach(i);for(var o=0;o<ji.length;o++){var c=ji[o];c.blockedOn===n&&(c.blockedOn=null)}for(;0<ji.length&&(o=ji[0],o.blockedOn===null);)dv(o),o.blockedOn===null&&ji.shift();if(o=(n.ownerDocument||n).$$reactFormReplay,o!=null)for(c=0;c<o.length;c+=3){var h=o[c],y=o[c+1],T=h[kn]||null;if(typeof y=="function")T||hv(o);else if(T){var D=null;if(y&&y.hasAttribute("formAction")){if(h=y,T=y[kn]||null)D=T.formAction;else if(Np(h)!==null)continue}else D=T.action;typeof D=="function"?o[c+1]=D:(o.splice(c,3),c-=3),hv(o)}}}function Bp(n){this._internalRoot=n}rc.prototype.render=Bp.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(a(409));var o=i.current,c=Un();lv(o,c,n,i,null,null)},rc.prototype.unmount=Bp.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;lv(n.current,2,null,n,null,null),Bu(),i[Ra]=null}};function rc(n){this._internalRoot=n}rc.prototype.unstable_scheduleHydration=function(n){if(n){var i=dr();n={blockedOn:null,target:n,priority:i};for(var o=0;o<ji.length&&i!==0&&i<ji[o].priority;o++);ji.splice(o,0,n),o===0&&dv(n)}};var mv=t.version;if(mv!=="19.1.1")throw Error(a(527,mv,"19.1.1"));G.findDOMNode=function(n){var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(a(188)):(n=Object.keys(n).join(","),Error(a(268,n)));return n=d(i),n=n!==null?p(n):null,n=n===null?null:n.stateNode,n};var nE={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ic=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ic.isDisabled&&ic.supportsFiber)try{ne=ic.inject(nE),ie=ic}catch{}}return Ul.createRoot=function(n,i){if(!l(n))throw Error(a(299));var o=!1,c="",h=z0,y=D0,T=j0,D=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onUncaughtError!==void 0&&(h=i.onUncaughtError),i.onCaughtError!==void 0&&(y=i.onCaughtError),i.onRecoverableError!==void 0&&(T=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(D=i.unstable_transitionCallbacks)),i=av(n,1,!1,null,null,o,c,h,y,T,D,null),n[Ra]=i.current,xp(n),new Bp(i)},Ul.hydrateRoot=function(n,i,o){if(!l(n))throw Error(a(299));var c=!1,h="",y=z0,T=D0,D=j0,$=null,Q=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(y=o.onUncaughtError),o.onCaughtError!==void 0&&(T=o.onCaughtError),o.onRecoverableError!==void 0&&(D=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&($=o.unstable_transitionCallbacks),o.formState!==void 0&&(Q=o.formState)),i=av(n,1,!0,i,o??null,c,h,y,T,D,$,Q),i.context=ov(null),o=i.current,c=Un(),c=Yo(c),h=gi(c),h.callback=null,yi(o,h,c),o=c,i.current.lanes=o,Yi(i,o),Ar(i),n[Ra]=i.current,xp(n),new rc(i)},Ul.version="19.1.1",Ul}var Ev;function dE(){if(Ev)return Hp.exports;Ev=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(),Hp.exports=fE(),Hp.exports}var pE=dE();/**
 * react-router v7.9.3
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var Tv="popstate";function hE(e={}){function t(l,s){let{pathname:u="/",search:f="",hash:d=""}=Ea(l.location.hash.substring(1));return!u.startsWith("/")&&!u.startsWith(".")&&(u="/"+u),Eh("",{pathname:u,search:f,hash:d},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(l,s){let u=l.document.querySelector("base"),f="";if(u&&u.getAttribute("href")){let d=l.location.href,p=d.indexOf("#");f=p===-1?d:d.slice(0,p)}return f+"#"+(typeof s=="string"?s:ms(s))}function a(l,s){xr(l.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(s)})`)}return gE(t,r,a,e)}function jt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function xr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function mE(){return Math.random().toString(36).substring(2,10)}function Rv(e,t){return{usr:e.state,key:e.key,idx:t}}function Eh(e,t,r=null,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ea(t):t,state:r,key:t&&t.key||a||mE()}}function ms({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Ea(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function gE(e,t,r,a={}){let{window:l=document.defaultView,v5Compat:s=!1}=a,u=l.history,f="POP",d=null,p=m();p==null&&(p=0,u.replaceState({...u.state,idx:p},""));function m(){return(u.state||{idx:null}).idx}function g(){f="POP";let R=m(),E=R==null?null:R-p;p=R,d&&d({action:f,location:C.location,delta:E})}function v(R,E){f="PUSH";let M=Eh(C.location,R,E);r&&r(M,R),p=m()+1;let O=Rv(M,p),L=C.createHref(M);try{u.pushState(O,"",L)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;l.location.assign(L)}s&&d&&d({action:f,location:C.location,delta:1})}function b(R,E){f="REPLACE";let M=Eh(C.location,R,E);r&&r(M,R),p=m();let O=Rv(M,p),L=C.createHref(M);u.replaceState(O,"",L),s&&d&&d({action:f,location:C.location,delta:0})}function x(R){return yE(R)}let C={get action(){return f},get location(){return e(l,u)},listen(R){if(d)throw new Error("A history only accepts one active listener");return l.addEventListener(Tv,g),d=R,()=>{l.removeEventListener(Tv,g),d=null}},createHref(R){return t(l,R)},createURL:x,encodeLocation(R){let E=x(R);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:v,replace:b,go(R){return u.go(R)}};return C}function yE(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),jt(r,"No window.location.(origin|href) available to create URL");let a=typeof e=="string"?e:ms(e);return a=a.replace(/ $/,"%20"),!t&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function Wx(e,t,r="/"){return bE(e,t,r,!1)}function bE(e,t,r,a){let l=typeof t=="string"?Ea(t):t,s=oi(l.pathname||"/",r);if(s==null)return null;let u=Kx(e);vE(u);let f=null;for(let d=0;f==null&&d<u.length;++d){let p=OE(s);f=AE(u[d],p,a)}return f}function Kx(e,t=[],r=[],a="",l=!1){let s=(u,f,d=l,p)=>{let m={relativePath:p===void 0?u.path||"":p,caseSensitive:u.caseSensitive===!0,childrenIndex:f,route:u};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(a)&&d)return;jt(m.relativePath.startsWith(a),`Absolute route path "${m.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(a.length)}let g=ai([a,m.relativePath]),v=r.concat(m);u.children&&u.children.length>0&&(jt(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Kx(u.children,t,v,g,d)),!(u.path==null&&!u.index)&&t.push({path:g,score:TE(g,u.index),routesMeta:v})};return e.forEach((u,f)=>{if(u.path===""||!u.path?.includes("?"))s(u,f);else for(let d of Qx(u.path))s(u,f,!0,d)}),t}function Qx(e){let t=e.split("/");if(t.length===0)return[];let[r,...a]=t,l=r.endsWith("?"),s=r.replace(/\?$/,"");if(a.length===0)return l?[s,""]:[s];let u=Qx(a.join("/")),f=[];return f.push(...u.map(d=>d===""?s:[s,d].join("/"))),l&&f.push(...u),f.map(d=>e.startsWith("/")&&d===""?"/":d)}function vE(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:RE(t.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}var xE=/^:[\w-]+$/,SE=3,wE=2,CE=1,kE=10,EE=-2,Av=e=>e==="*";function TE(e,t){let r=e.split("/"),a=r.length;return r.some(Av)&&(a+=EE),t&&(a+=wE),r.filter(l=>!Av(l)).reduce((l,s)=>l+(xE.test(s)?SE:s===""?CE:kE),a)}function RE(e,t){return e.length===t.length&&e.slice(0,-1).every((a,l)=>a===t[l])?e[e.length-1]-t[t.length-1]:0}function AE(e,t,r=!1){let{routesMeta:a}=e,l={},s="/",u=[];for(let f=0;f<a.length;++f){let d=a[f],p=f===a.length-1,m=s==="/"?t:t.slice(s.length)||"/",g=jc({path:d.relativePath,caseSensitive:d.caseSensitive,end:p},m),v=d.route;if(!g&&p&&r&&!a[a.length-1].route.index&&(g=jc({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!g)return null;Object.assign(l,g.params),u.push({params:l,pathname:ai([s,g.pathname]),pathnameBase:LE(ai([s,g.pathnameBase])),route:v}),g.pathnameBase!=="/"&&(s=ai([s,g.pathnameBase]))}return u}function jc(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,a]=ME(e.path,e.caseSensitive,e.end),l=t.match(r);if(!l)return null;let s=l[0],u=s.replace(/(.)\/+$/,"$1"),f=l.slice(1);return{params:a.reduce((p,{paramName:m,isOptional:g},v)=>{if(m==="*"){let x=f[v]||"";u=s.slice(0,s.length-x.length).replace(/(.)\/+$/,"$1")}const b=f[v];return g&&!b?p[m]=void 0:p[m]=(b||"").replace(/%2F/g,"/"),p},{}),pathname:s,pathnameBase:u,pattern:e}}function ME(e,t=!1,r=!0){xr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,f,d)=>(a.push({paramName:f,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),a]}function OE(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return xr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function oi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,a=e.charAt(r);return a&&a!=="/"?null:e.slice(r)||"/"}function zE(e,t="/"){let{pathname:r,search:a="",hash:l=""}=typeof e=="string"?Ea(e):e;return{pathname:r?r.startsWith("/")?r:DE(r,t):t,search:PE(a),hash:NE(l)}}function DE(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?r.length>1&&r.pop():l!=="."&&r.push(l)}),r.length>1?r.join("/"):"/"}function Vp(e,t,r,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}].  Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function jE(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Zx(e){let t=jE(e);return t.map((r,a)=>a===t.length-1?r.pathname:r.pathnameBase)}function Jx(e,t,r,a=!1){let l;typeof e=="string"?l=Ea(e):(l={...e},jt(!l.pathname||!l.pathname.includes("?"),Vp("?","pathname","search",l)),jt(!l.pathname||!l.pathname.includes("#"),Vp("#","pathname","hash",l)),jt(!l.search||!l.search.includes("#"),Vp("#","search","hash",l)));let s=e===""||l.pathname==="",u=s?"/":l.pathname,f;if(u==null)f=r;else{let g=t.length-1;if(!a&&u.startsWith("..")){let v=u.split("/");for(;v[0]==="..";)v.shift(),g-=1;l.pathname=v.join("/")}f=g>=0?t[g]:"/"}let d=zE(l,f),p=u&&u!=="/"&&u.endsWith("/"),m=(s||u===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(p||m)&&(d.pathname+="/"),d}var ai=e=>e.join("/").replace(/\/\/+/g,"/"),LE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),PE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,NE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function _E(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var eS=["POST","PUT","PATCH","DELETE"];new Set(eS);var BE=["GET",...eS];new Set(BE);var No=S.createContext(null);No.displayName="DataRouter";var Qc=S.createContext(null);Qc.displayName="DataRouterState";S.createContext(!1);var tS=S.createContext({isTransitioning:!1});tS.displayName="ViewTransition";var IE=S.createContext(new Map);IE.displayName="Fetchers";var $E=S.createContext(null);$E.displayName="Await";var Ir=S.createContext(null);Ir.displayName="Navigation";var As=S.createContext(null);As.displayName="Location";var ci=S.createContext({outlet:null,matches:[],isDataRoute:!1});ci.displayName="Route";var fm=S.createContext(null);fm.displayName="RouteError";function HE(e,{relative:t}={}){jt(Ms(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:a}=S.useContext(Ir),{hash:l,pathname:s,search:u}=Os(e,{relative:t}),f=s;return r!=="/"&&(f=s==="/"?r:ai([r,s])),a.createHref({pathname:f,search:u,hash:l})}function Ms(){return S.useContext(As)!=null}function $i(){return jt(Ms(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(As).location}var nS="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function rS(e){S.useContext(Ir).static||S.useLayoutEffect(e)}function dm(){let{isDataRoute:e}=S.useContext(ci);return e?eT():UE()}function UE(){jt(Ms(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(No),{basename:t,navigator:r}=S.useContext(Ir),{matches:a}=S.useContext(ci),{pathname:l}=$i(),s=JSON.stringify(Zx(a)),u=S.useRef(!1);return rS(()=>{u.current=!0}),S.useCallback((d,p={})=>{if(xr(u.current,nS),!u.current)return;if(typeof d=="number"){r.go(d);return}let m=Jx(d,JSON.parse(s),l,p.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:ai([t,m.pathname])),(p.replace?r.replace:r.push)(m,p.state,p)},[t,r,s,l,e])}S.createContext(null);function Os(e,{relative:t}={}){let{matches:r}=S.useContext(ci),{pathname:a}=$i(),l=JSON.stringify(Zx(r));return S.useMemo(()=>Jx(e,JSON.parse(l),a,t==="path"),[e,l,a,t])}function FE(e,t){return iS(e,t)}function iS(e,t,r,a,l){jt(Ms(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=S.useContext(Ir),{matches:u}=S.useContext(ci),f=u[u.length-1],d=f?f.params:{},p=f?f.pathname:"/",m=f?f.pathnameBase:"/",g=f&&f.route;{let M=g&&g.path||"";aS(p,!g||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${M}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${M}"> to <Route path="${M==="/"?"*":`${M}/*`}">.`)}let v=$i(),b;if(t){let M=typeof t=="string"?Ea(t):t;jt(m==="/"||M.pathname?.startsWith(m),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${M.pathname}" was given in the \`location\` prop.`),b=M}else b=v;let x=b.pathname||"/",C=x;if(m!=="/"){let M=m.replace(/^\//,"").split("/");C="/"+x.replace(/^\//,"").split("/").slice(M.length).join("/")}let R=Wx(e,{pathname:C});xr(g||R!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),xr(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let E=XE(R&&R.map(M=>Object.assign({},M,{params:Object.assign({},d,M.params),pathname:ai([m,s.encodeLocation?s.encodeLocation(M.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?m:ai([m,s.encodeLocation?s.encodeLocation(M.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),u,r,a,l);return t&&E?S.createElement(As.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},E):E}function qE(){let e=JE(),t=_E(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:a},s={padding:"2px 4px",backgroundColor:a},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:s},"ErrorBoundary")," or"," ",S.createElement("code",{style:s},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),r?S.createElement("pre",{style:l},r):null,u)}var VE=S.createElement(qE,null),YE=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?S.createElement(ci.Provider,{value:this.props.routeContext},S.createElement(fm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function GE({routeContext:e,match:t,children:r}){let a=S.useContext(No);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(ci.Provider,{value:e},r)}function XE(e,t=[],r=null,a=null,l=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,u=r?.errors;if(u!=null){let p=s.findIndex(m=>m.route.id&&u?.[m.route.id]!==void 0);jt(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),s=s.slice(0,Math.min(s.length,p+1))}let f=!1,d=-1;if(r)for(let p=0;p<s.length;p++){let m=s[p];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(d=p),m.route.id){let{loaderData:g,errors:v}=r,b=m.route.loader&&!g.hasOwnProperty(m.route.id)&&(!v||v[m.route.id]===void 0);if(m.route.lazy||b){f=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}return s.reduceRight((p,m,g)=>{let v,b=!1,x=null,C=null;r&&(v=u&&m.route.id?u[m.route.id]:void 0,x=m.route.errorElement||VE,f&&(d<0&&g===0?(aS("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,C=null):d===g&&(b=!0,C=m.route.hydrateFallbackElement||null)));let R=t.concat(s.slice(0,g+1)),E=()=>{let M;return v?M=x:b?M=C:m.route.Component?M=S.createElement(m.route.Component,null):m.route.element?M=m.route.element:M=p,S.createElement(GE,{match:m,routeContext:{outlet:p,matches:R,isDataRoute:r!=null},children:M})};return r&&(m.route.ErrorBoundary||m.route.errorElement||g===0)?S.createElement(YE,{location:r.location,revalidation:r.revalidation,component:x,error:v,children:E(),routeContext:{outlet:null,matches:R,isDataRoute:!0},unstable_onError:a}):E()},null)}function pm(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function WE(e){let t=S.useContext(No);return jt(t,pm(e)),t}function KE(e){let t=S.useContext(Qc);return jt(t,pm(e)),t}function QE(e){let t=S.useContext(ci);return jt(t,pm(e)),t}function hm(e){let t=QE(e),r=t.matches[t.matches.length-1];return jt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function ZE(){return hm("useRouteId")}function JE(){let e=S.useContext(fm),t=KE("useRouteError"),r=hm("useRouteError");return e!==void 0?e:t.errors?.[r]}function eT(){let{router:e}=WE("useNavigate"),t=hm("useNavigate"),r=S.useRef(!1);return rS(()=>{r.current=!0}),S.useCallback(async(l,s={})=>{xr(r.current,nS),r.current&&(typeof l=="number"?e.navigate(l):await e.navigate(l,{fromRouteId:t,...s}))},[e,t])}var Mv={};function aS(e,t,r){!t&&!Mv[e]&&(Mv[e]=!0,xr(!1,r))}S.memo(tT);function tT({routes:e,future:t,state:r,unstable_onError:a}){return iS(e,void 0,r,a,t)}function Th(e){jt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function nT({basename:e="/",children:t=null,location:r,navigationType:a="POP",navigator:l,static:s=!1}){jt(!Ms(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),f=S.useMemo(()=>({basename:u,navigator:l,static:s,future:{}}),[u,l,s]);typeof r=="string"&&(r=Ea(r));let{pathname:d="/",search:p="",hash:m="",state:g=null,key:v="default"}=r,b=S.useMemo(()=>{let x=oi(d,u);return x==null?null:{location:{pathname:x,search:p,hash:m,state:g,key:v},navigationType:a}},[u,d,p,m,g,v,a]);return xr(b!=null,`<Router basename="${u}"> is not able to match the URL "${d}${p}${m}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:S.createElement(Ir.Provider,{value:f},S.createElement(As.Provider,{children:t,value:b}))}function rT({children:e,location:t}){return FE(Rh(e),t)}function Rh(e,t=[]){let r=[];return S.Children.forEach(e,(a,l)=>{if(!S.isValidElement(a))return;let s=[...t,l];if(a.type===S.Fragment){r.push.apply(r,Rh(a.props.children,s));return}jt(a.type===Th,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),jt(!a.props.index||!a.props.children,"An index route cannot have child routes.");let u={id:a.props.id||s.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,middleware:a.props.middleware,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(u.children=Rh(a.props.children,s)),r.push(u)}),r}var wc="get",Cc="application/x-www-form-urlencoded";function Zc(e){return e!=null&&typeof e.tagName=="string"}function iT(e){return Zc(e)&&e.tagName.toLowerCase()==="button"}function aT(e){return Zc(e)&&e.tagName.toLowerCase()==="form"}function oT(e){return Zc(e)&&e.tagName.toLowerCase()==="input"}function lT(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sT(e,t){return e.button===0&&(!t||t==="_self")&&!lT(e)}var ac=null;function uT(){if(ac===null)try{new FormData(document.createElement("form"),0),ac=!1}catch{ac=!0}return ac}var cT=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Yp(e){return e!=null&&!cT.has(e)?(xr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Cc}"`),null):e}function fT(e,t){let r,a,l,s,u;if(aT(e)){let f=e.getAttribute("action");a=f?oi(f,t):null,r=e.getAttribute("method")||wc,l=Yp(e.getAttribute("enctype"))||Cc,s=new FormData(e)}else if(iT(e)||oT(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||f.getAttribute("action");if(a=d?oi(d,t):null,r=e.getAttribute("formmethod")||f.getAttribute("method")||wc,l=Yp(e.getAttribute("formenctype"))||Yp(f.getAttribute("enctype"))||Cc,s=new FormData(f,e),!uT()){let{name:p,type:m,value:g}=e;if(m==="image"){let v=p?`${p}.`:"";s.append(`${v}x`,"0"),s.append(`${v}y`,"0")}else p&&s.append(p,g)}}else{if(Zc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=wc,a=null,l=Cc,u=e}return s&&l==="text/plain"&&(u=s,s=void 0),{action:a,method:r.toLowerCase(),encType:l,formData:s,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function mm(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dT(e,t,r){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return a.pathname==="/"?a.pathname=`_root.${r}`:t&&oi(a.pathname,t)==="/"?a.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${r}`,a}async function pT(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function hT(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function mT(e,t,r){let a=await Promise.all(e.map(async l=>{let s=t.routes[l.route.id];if(s){let u=await pT(s,r);return u.links?u.links():[]}return[]}));return vT(a.flat(1).filter(hT).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function Ov(e,t,r,a,l,s){let u=(d,p)=>r[p]?d.route.id!==r[p].route.id:!0,f=(d,p)=>r[p].pathname!==d.pathname||r[p].route.path?.endsWith("*")&&r[p].params["*"]!==d.params["*"];return s==="assets"?t.filter((d,p)=>u(d,p)||f(d,p)):s==="data"?t.filter((d,p)=>{let m=a.routes[d.route.id];if(!m||!m.hasLoader)return!1;if(u(d,p)||f(d,p))return!0;if(d.route.shouldRevalidate){let g=d.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function gT(e,t,{includeHydrateFallback:r}={}){return yT(e.map(a=>{let l=t.routes[a.route.id];if(!l)return[];let s=[l.module];return l.clientActionModule&&(s=s.concat(l.clientActionModule)),l.clientLoaderModule&&(s=s.concat(l.clientLoaderModule)),r&&l.hydrateFallbackModule&&(s=s.concat(l.hydrateFallbackModule)),l.imports&&(s=s.concat(l.imports)),s}).flat(1))}function yT(e){return[...new Set(e)]}function bT(e){let t={},r=Object.keys(e).sort();for(let a of r)t[a]=e[a];return t}function vT(e,t){let r=new Set;return new Set(t),e.reduce((a,l)=>{let s=JSON.stringify(bT(l));return r.has(s)||(r.add(s),a.push({key:s,link:l})),a},[])}function oS(){let e=S.useContext(No);return mm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function xT(){let e=S.useContext(Qc);return mm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var gm=S.createContext(void 0);gm.displayName="FrameworkContext";function lS(){let e=S.useContext(gm);return mm(e,"You must render this element inside a <HydratedRouter> element"),e}function ST(e,t){let r=S.useContext(gm),[a,l]=S.useState(!1),[s,u]=S.useState(!1),{onFocus:f,onBlur:d,onMouseEnter:p,onMouseLeave:m,onTouchStart:g}=t,v=S.useRef(null);S.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let C=E=>{E.forEach(M=>{u(M.isIntersecting)})},R=new IntersectionObserver(C,{threshold:.5});return v.current&&R.observe(v.current),()=>{R.disconnect()}}},[e]),S.useEffect(()=>{if(a){let C=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(C)}}},[a]);let b=()=>{l(!0)},x=()=>{l(!1),u(!1)};return r?e!=="intent"?[s,v,{}]:[s,v,{onFocus:Fl(f,b),onBlur:Fl(d,x),onMouseEnter:Fl(p,b),onMouseLeave:Fl(m,x),onTouchStart:Fl(g,b)}]:[!1,v,{}]}function Fl(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function wT({page:e,...t}){let{router:r}=oS(),a=S.useMemo(()=>Wx(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?S.createElement(kT,{page:e,matches:a,...t}):null}function CT(e){let{manifest:t,routeModules:r}=lS(),[a,l]=S.useState([]);return S.useEffect(()=>{let s=!1;return mT(e,t,r).then(u=>{s||l(u)}),()=>{s=!0}},[e,t,r]),a}function kT({page:e,matches:t,...r}){let a=$i(),{manifest:l,routeModules:s}=lS(),{basename:u}=oS(),{loaderData:f,matches:d}=xT(),p=S.useMemo(()=>Ov(e,t,d,l,a,"data"),[e,t,d,l,a]),m=S.useMemo(()=>Ov(e,t,d,l,a,"assets"),[e,t,d,l,a]),g=S.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let x=new Set,C=!1;if(t.forEach(E=>{let M=l.routes[E.route.id];!M||!M.hasLoader||(!p.some(O=>O.route.id===E.route.id)&&E.route.id in f&&s[E.route.id]?.shouldRevalidate||M.hasClientLoader?C=!0:x.add(E.route.id))}),x.size===0)return[];let R=dT(e,u,"data");return C&&x.size>0&&R.searchParams.set("_routes",t.filter(E=>x.has(E.route.id)).map(E=>E.route.id).join(",")),[R.pathname+R.search]},[u,f,a,l,p,t,e,s]),v=S.useMemo(()=>gT(m,l),[m,l]),b=CT(m);return S.createElement(S.Fragment,null,g.map(x=>S.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...r})),v.map(x=>S.createElement("link",{key:x,rel:"modulepreload",href:x,...r})),b.map(({key:x,link:C})=>S.createElement("link",{key:x,nonce:r.nonce,...C})))}function ET(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var sS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{sS&&(window.__reactRouterVersion="7.9.3")}catch{}function TT({basename:e,children:t,window:r}){let a=S.useRef();a.current==null&&(a.current=hE({window:r,v5Compat:!0}));let l=a.current,[s,u]=S.useState({action:l.action,location:l.location}),f=S.useCallback(d=>{S.startTransition(()=>u(d))},[u]);return S.useLayoutEffect(()=>l.listen(f),[l,f]),S.createElement(nT,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:l})}var uS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cS=S.forwardRef(function({onClick:t,discover:r="render",prefetch:a="none",relative:l,reloadDocument:s,replace:u,state:f,target:d,to:p,preventScrollReset:m,viewTransition:g,...v},b){let{basename:x}=S.useContext(Ir),C=typeof p=="string"&&uS.test(p),R,E=!1;if(typeof p=="string"&&C&&(R=p,sS))try{let F=new URL(window.location.href),N=p.startsWith("//")?new URL(F.protocol+p):new URL(p),q=oi(N.pathname,x);N.origin===F.origin&&q!=null?p=q+N.search+N.hash:E=!0}catch{xr(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let M=HE(p,{relative:l}),[O,L,j]=ST(a,v),z=OT(p,{replace:u,state:f,target:d,preventScrollReset:m,relative:l,viewTransition:g});function I(F){t&&t(F),F.defaultPrevented||z(F)}let V=S.createElement("a",{...v,...j,href:R||M,onClick:E||s?t:I,ref:ET(b,L),target:d,"data-discover":!C&&r==="render"?"true":void 0});return O&&!C?S.createElement(S.Fragment,null,V,S.createElement(wT,{page:M})):V});cS.displayName="Link";var RT=S.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:a="",end:l=!1,style:s,to:u,viewTransition:f,children:d,...p},m){let g=Os(u,{relative:p.relative}),v=$i(),b=S.useContext(Qc),{navigator:x,basename:C}=S.useContext(Ir),R=b!=null&&PT(g)&&f===!0,E=x.encodeLocation?x.encodeLocation(g).pathname:g.pathname,M=v.pathname,O=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;r||(M=M.toLowerCase(),O=O?O.toLowerCase():null,E=E.toLowerCase()),O&&C&&(O=oi(O,C)||O);const L=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let j=M===E||!l&&M.startsWith(E)&&M.charAt(L)==="/",z=O!=null&&(O===E||!l&&O.startsWith(E)&&O.charAt(E.length)==="/"),I={isActive:j,isPending:z,isTransitioning:R},V=j?t:void 0,F;typeof a=="function"?F=a(I):F=[a,j?"active":null,z?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let N=typeof s=="function"?s(I):s;return S.createElement(cS,{...p,"aria-current":V,className:F,ref:m,style:N,to:u,viewTransition:f},typeof d=="function"?d(I):d)});RT.displayName="NavLink";var AT=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:a,replace:l,state:s,method:u=wc,action:f,onSubmit:d,relative:p,preventScrollReset:m,viewTransition:g,...v},b)=>{let x=jT(),C=LT(f,{relative:p}),R=u.toLowerCase()==="get"?"get":"post",E=typeof f=="string"&&uS.test(f),M=O=>{if(d&&d(O),O.defaultPrevented)return;O.preventDefault();let L=O.nativeEvent.submitter,j=L?.getAttribute("formmethod")||u;x(L||O.currentTarget,{fetcherKey:t,method:j,navigate:r,replace:l,state:s,relative:p,preventScrollReset:m,viewTransition:g})};return S.createElement("form",{ref:b,method:R,action:C,onSubmit:a?d:M,...v,"data-discover":!E&&e==="render"?"true":void 0})});AT.displayName="Form";function MT(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function fS(e){let t=S.useContext(No);return jt(t,MT(e)),t}function OT(e,{target:t,replace:r,state:a,preventScrollReset:l,relative:s,viewTransition:u}={}){let f=dm(),d=$i(),p=Os(e,{relative:s});return S.useCallback(m=>{if(sT(m,t)){m.preventDefault();let g=r!==void 0?r:ms(d)===ms(p);f(e,{replace:g,state:a,preventScrollReset:l,relative:s,viewTransition:u})}},[d,f,p,r,a,t,e,l,s,u])}var zT=0,DT=()=>`__${String(++zT)}__`;function jT(){let{router:e}=fS("useSubmit"),{basename:t}=S.useContext(Ir),r=ZE();return S.useCallback(async(a,l={})=>{let{action:s,method:u,encType:f,formData:d,body:p}=fT(a,t);if(l.navigate===!1){let m=l.fetcherKey||DT();await e.fetch(m,r,l.action||s,{preventScrollReset:l.preventScrollReset,formData:d,body:p,formMethod:l.method||u,formEncType:l.encType||f,flushSync:l.flushSync})}else await e.navigate(l.action||s,{preventScrollReset:l.preventScrollReset,formData:d,body:p,formMethod:l.method||u,formEncType:l.encType||f,replace:l.replace,state:l.state,fromRouteId:r,flushSync:l.flushSync,viewTransition:l.viewTransition})},[e,t,r])}function LT(e,{relative:t}={}){let{basename:r}=S.useContext(Ir),a=S.useContext(ci);jt(a,"useFormAction must be used inside a RouteContext");let[l]=a.matches.slice(-1),s={...Os(e||".",{relative:t})},u=$i();if(e==null){s.search=u.search;let f=new URLSearchParams(s.search),d=f.getAll("index");if(d.some(m=>m==="")){f.delete("index"),d.filter(g=>g).forEach(g=>f.append("index",g));let m=f.toString();s.search=m?`?${m}`:""}}return(!e||e===".")&&l.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:ai([r,s.pathname])),ms(s)}function PT(e,{relative:t}={}){let r=S.useContext(tS);jt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=fS("useViewTransitionState"),l=Os(e,{relative:t});if(!r.isTransitioning)return!1;let s=oi(r.currentLocation.pathname,a)||r.currentLocation.pathname,u=oi(r.nextLocation.pathname,a)||r.nextLocation.pathname;return jc(l.pathname,u)!=null||jc(l.pathname,s)!=null}var Lc=Xx();const oc=Kc(Lc),Wn="";function NT(e){return async()=>{const t=await fetch(`${Wn}/apps/${e.selectedAgent}/users/${e.user.sub}/sessions`,{method:"POST",credentials:"include"});Sr(t,e);let r=await t.json();return{user_id:r.user_id,session_id:r.id}}}function _T(e){return async({parts:t,session_id:r,controller:a})=>{const l=await fetch(`${Wn}/run`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({app_name:e.selectedAgent,user_id:e.user.sub,session_id:r,new_message:{role:"user",parts:t},streaming:!1}),signal:a.signal});return Sr(l,e),await l.json()}}function BT(e){return async({selectedAgent:t})=>{const r=await fetch(`${Wn}/apps/${t}/users/${e.user.sub}/sessions`,{method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"});return Sr(r,e),await r.json()}}function dS(e){return async({session_id:t,selected_agent:r,user:a})=>{const l=await fetch(`${Wn}/apps/${r??e.selectedAgent}/users/${a??e.user.sub}/sessions/${t}`,{method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"});return Sr(l,e),await l.json()}}function IT(e){return async()=>{const t=await fetch(`${Wn}/list-apps`,{method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"});return Sr(t,e),await t.json()}}function $T(e){return async()=>{const t=await fetch(`${Wn}/user`,{method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"});return Sr(t,e),await t.json()}}function HT(e){return async()=>{const t=await fetch(`${Wn}/health`,{method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"});return Sr(t,e),await t.json()}}async function UT(){return await(await fetch(`${Wn}/config`,{method:"GET",headers:{"Content-Type":"application/json"}})).json()}function zv(e){return async({feedback_category:t,feedback_text:r,id:a})=>{const l=await fetch(`${Wn}/feedback`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({feedback_category:t,feedback_text:r,id:a})});return Sr(l,e),await l.text()}}function FT(e){return async({artifact_name:t,version:r})=>{const a=await fetch(`${Wn}/apps/${e.selectedAgent}/users/${e.user.sub}/sessions/${e.session}/artifacts/${t}?version=${r}`,{method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"});return Sr(a,e),await a.json()}}async function qT(e){const t=await fetch(`${Wn}/logout`,{method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"});return Sr(t,e)}function VT(e){return async t=>{const r=await fetch(`${Wn}/apps/${e.selectedAgent}/users/${e.user.sub}/sessions/${t}`,{method:"DELETE",headers:{"Content-Type":"application/json"},credentials:"include"});return Sr(r,e),await r.json()}}function Sr(e,t){if(e.status!=200)throw e.status==401?(t.setUser(),new Jc):e.status==404?new GT:new bm(e.status)}const Pr="Unauthorized",ym="NotFound",YT="HttpError";class bm extends Error{constructor(t){super(`Weird error has occured with status code ${t}`),this.name=YT,Error.captureStackTrace&&Error.captureStackTrace(this,bm)}}class Jc extends Error{constructor(){super("Unauthorized to access API"),this.name=Pr,Error.captureStackTrace&&Error.captureStackTrace(this,Jc)}}class GT extends Error{constructor(){super("Unauthorized to access API"),this.name=ym,Error.captureStackTrace&&Error.captureStackTrace(this,Jc)}}function li(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(a=>r.searchParams.append("args[]",a)),`Minified MUI error #${e}; visit ${r} for the full message.`}const yr="$$material";function Pc(){return Pc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Pc.apply(null,arguments)}function XT(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 WT(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 KT=(function(){function e(r){var a=this;this._insertTag=function(l){var s;a.tags.length===0?a.insertionPoint?s=a.insertionPoint.nextSibling:a.prepend?s=a.container.firstChild:s=a.before:s=a.tags[a.tags.length-1].nextSibling,a.container.insertBefore(l,s),a.tags.push(l)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(a){a.forEach(this._insertTag)},t.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(WT(this));var l=this.tags[this.tags.length-1];if(this.isSpeedy){var s=XT(l);try{s.insertRule(a,s.cssRules.length)}catch{}}else l.appendChild(document.createTextNode(a));this.ctr++},t.flush=function(){this.tags.forEach(function(a){var l;return(l=a.parentNode)==null?void 0:l.removeChild(a)}),this.tags=[],this.ctr=0},e})(),hn="-ms-",Nc="-moz-",dt="-webkit-",pS="comm",vm="rule",xm="decl",QT="@import",hS="@keyframes",ZT="@layer",JT=Math.abs,ef=String.fromCharCode,eR=Object.assign;function tR(e,t){return cn(e,0)^45?(((t<<2^cn(e,0))<<2^cn(e,1))<<2^cn(e,2))<<2^cn(e,3):0}function mS(e){return e.trim()}function nR(e,t){return(e=t.exec(e))?e[0]:e}function pt(e,t,r){return e.replace(t,r)}function Ah(e,t){return e.indexOf(t)}function cn(e,t){return e.charCodeAt(t)|0}function gs(e,t,r){return e.slice(t,r)}function Dr(e){return e.length}function Sm(e){return e.length}function lc(e,t){return t.push(e),e}function rR(e,t){return e.map(t).join("")}var tf=1,Ao=1,gS=0,Ln=0,Wt=0,_o="";function nf(e,t,r,a,l,s,u){return{value:e,root:t,parent:r,type:a,props:l,children:s,line:tf,column:Ao,length:u,return:""}}function ql(e,t){return eR(nf("",null,null,"",null,null,0),e,{length:-e.length},t)}function iR(){return Wt}function aR(){return Wt=Ln>0?cn(_o,--Ln):0,Ao--,Wt===10&&(Ao=1,tf--),Wt}function Yn(){return Wt=Ln<gS?cn(_o,Ln++):0,Ao++,Wt===10&&(Ao=1,tf++),Wt}function Nr(){return cn(_o,Ln)}function kc(){return Ln}function zs(e,t){return gs(_o,e,t)}function ys(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 yS(e){return tf=Ao=1,gS=Dr(_o=e),Ln=0,[]}function bS(e){return _o="",e}function Ec(e){return mS(zs(Ln-1,Mh(e===91?e+2:e===40?e+1:e)))}function oR(e){for(;(Wt=Nr())&&Wt<33;)Yn();return ys(e)>2||ys(Wt)>3?"":" "}function lR(e,t){for(;--t&&Yn()&&!(Wt<48||Wt>102||Wt>57&&Wt<65||Wt>70&&Wt<97););return zs(e,kc()+(t<6&&Nr()==32&&Yn()==32))}function Mh(e){for(;Yn();)switch(Wt){case e:return Ln;case 34:case 39:e!==34&&e!==39&&Mh(Wt);break;case 40:e===41&&Mh(e);break;case 92:Yn();break}return Ln}function sR(e,t){for(;Yn()&&e+Wt!==57;)if(e+Wt===84&&Nr()===47)break;return"/*"+zs(t,Ln-1)+"*"+ef(e===47?e:Yn())}function uR(e){for(;!ys(Nr());)Yn();return zs(e,Ln)}function cR(e){return bS(Tc("",null,null,null,[""],e=yS(e),0,[0],e))}function Tc(e,t,r,a,l,s,u,f,d){for(var p=0,m=0,g=u,v=0,b=0,x=0,C=1,R=1,E=1,M=0,O="",L=l,j=s,z=a,I=O;R;)switch(x=M,M=Yn()){case 40:if(x!=108&&cn(I,g-1)==58){Ah(I+=pt(Ec(M),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:I+=Ec(M);break;case 9:case 10:case 13:case 32:I+=oR(x);break;case 92:I+=lR(kc()-1,7);continue;case 47:switch(Nr()){case 42:case 47:lc(fR(sR(Yn(),kc()),t,r),d);break;default:I+="/"}break;case 123*C:f[p++]=Dr(I)*E;case 125*C:case 59:case 0:switch(M){case 0:case 125:R=0;case 59+m:E==-1&&(I=pt(I,/\f/g,"")),b>0&&Dr(I)-g&&lc(b>32?jv(I+";",a,r,g-1):jv(pt(I," ","")+";",a,r,g-2),d);break;case 59:I+=";";default:if(lc(z=Dv(I,t,r,p,m,l,f,O,L=[],j=[],g),s),M===123)if(m===0)Tc(I,t,z,z,L,s,g,f,j);else switch(v===99&&cn(I,3)===110?100:v){case 100:case 108:case 109:case 115:Tc(e,z,z,a&&lc(Dv(e,z,z,0,0,l,f,O,l,L=[],g),j),l,j,g,f,a?L:j);break;default:Tc(I,z,z,z,[""],j,0,f,j)}}p=m=b=0,C=E=1,O=I="",g=u;break;case 58:g=1+Dr(I),b=x;default:if(C<1){if(M==123)--C;else if(M==125&&C++==0&&aR()==125)continue}switch(I+=ef(M),M*C){case 38:E=m>0?1:(I+="\f",-1);break;case 44:f[p++]=(Dr(I)-1)*E,E=1;break;case 64:Nr()===45&&(I+=Ec(Yn())),v=Nr(),m=g=Dr(O=I+=uR(kc())),M++;break;case 45:x===45&&Dr(I)==2&&(C=0)}}return s}function Dv(e,t,r,a,l,s,u,f,d,p,m){for(var g=l-1,v=l===0?s:[""],b=Sm(v),x=0,C=0,R=0;x<a;++x)for(var E=0,M=gs(e,g+1,g=JT(C=u[x])),O=e;E<b;++E)(O=mS(C>0?v[E]+" "+M:pt(M,/&\f/g,v[E])))&&(d[R++]=O);return nf(e,t,r,l===0?vm:f,d,p,m)}function fR(e,t,r){return nf(e,t,r,pS,ef(iR()),gs(e,2,-2),0)}function jv(e,t,r,a){return nf(e,t,r,xm,gs(e,0,a),gs(e,a+1,-1),a)}function Eo(e,t){for(var r="",a=Sm(e),l=0;l<a;l++)r+=t(e[l],l,e,t)||"";return r}function dR(e,t,r,a){switch(e.type){case ZT:if(e.children.length)break;case QT:case xm:return e.return=e.return||e.value;case pS:return"";case hS:return e.return=e.value+"{"+Eo(e.children,a)+"}";case vm:e.value=e.props.join(",")}return Dr(r=Eo(e.children,a))?e.return=e.value+"{"+r+"}":""}function pR(e){var t=Sm(e);return function(r,a,l,s){for(var u="",f=0;f<t;f++)u+=e[f](r,a,l,s)||"";return u}}function hR(e){return function(t){t.root||(t=t.return)&&e(t)}}function vS(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var mR=function(t,r,a){for(var l=0,s=0;l=s,s=Nr(),l===38&&s===12&&(r[a]=1),!ys(s);)Yn();return zs(t,Ln)},gR=function(t,r){var a=-1,l=44;do switch(ys(l)){case 0:l===38&&Nr()===12&&(r[a]=1),t[a]+=mR(Ln-1,r,a);break;case 2:t[a]+=Ec(l);break;case 4:if(l===44){t[++a]=Nr()===58?"&\f":"",r[a]=t[a].length;break}default:t[a]+=ef(l)}while(l=Yn());return t},yR=function(t,r){return bS(gR(yS(t),r))},Lv=new WeakMap,bR=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,a=t.parent,l=t.column===a.column&&t.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Lv.get(a))&&!l){Lv.set(t,!0);for(var s=[],u=yR(r,s),f=a.props,d=0,p=0;d<u.length;d++)for(var m=0;m<f.length;m++,p++)t.props[p]=s[d]?u[d].replace(/&\f/g,f[m]):f[m]+" "+u[d]}}},vR=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function xS(e,t){switch(tR(e,t)){case 5103:return dt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return dt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return dt+e+Nc+e+hn+e+e;case 6828:case 4268:return dt+e+hn+e+e;case 6165:return dt+e+hn+"flex-"+e+e;case 5187:return dt+e+pt(e,/(\w+).+(:[^]+)/,dt+"box-$1$2"+hn+"flex-$1$2")+e;case 5443:return dt+e+hn+"flex-item-"+pt(e,/flex-|-self/,"")+e;case 4675:return dt+e+hn+"flex-line-pack"+pt(e,/align-content|flex-|-self/,"")+e;case 5548:return dt+e+hn+pt(e,"shrink","negative")+e;case 5292:return dt+e+hn+pt(e,"basis","preferred-size")+e;case 6060:return dt+"box-"+pt(e,"-grow","")+dt+e+hn+pt(e,"grow","positive")+e;case 4554:return dt+pt(e,/([^-])(transform)/g,"$1"+dt+"$2")+e;case 6187:return pt(pt(pt(e,/(zoom-|grab)/,dt+"$1"),/(image-set)/,dt+"$1"),e,"")+e;case 5495:case 3959:return pt(e,/(image-set\([^]*)/,dt+"$1$`$1");case 4968:return pt(pt(e,/(.+:)(flex-)?(.*)/,dt+"box-pack:$3"+hn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+dt+e+e;case 4095:case 3583:case 4068:case 2532:return pt(e,/(.+)-inline(.+)/,dt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Dr(e)-1-t>6)switch(cn(e,t+1)){case 109:if(cn(e,t+4)!==45)break;case 102:return pt(e,/(.+:)(.+)-([^]+)/,"$1"+dt+"$2-$3$1"+Nc+(cn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ah(e,"stretch")?xS(pt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(cn(e,t+1)!==115)break;case 6444:switch(cn(e,Dr(e)-3-(~Ah(e,"!important")&&10))){case 107:return pt(e,":",":"+dt)+e;case 101:return pt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dt+(cn(e,14)===45?"inline-":"")+"box$3$1"+dt+"$2$3$1"+hn+"$2box$3")+e}break;case 5936:switch(cn(e,t+11)){case 114:return dt+e+hn+pt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dt+e+hn+pt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dt+e+hn+pt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return dt+e+hn+e+e}return e}var xR=function(t,r,a,l){if(t.length>-1&&!t.return)switch(t.type){case xm:t.return=xS(t.value,t.length);break;case hS:return Eo([ql(t,{value:pt(t.value,"@","@"+dt)})],l);case vm:if(t.length)return rR(t.props,function(s){switch(nR(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Eo([ql(t,{props:[pt(s,/:(read-\w+)/,":"+Nc+"$1")]})],l);case"::placeholder":return Eo([ql(t,{props:[pt(s,/:(plac\w+)/,":"+dt+"input-$1")]}),ql(t,{props:[pt(s,/:(plac\w+)/,":"+Nc+"$1")]}),ql(t,{props:[pt(s,/:(plac\w+)/,hn+"input-$1")]})],l)}return""})}},SR=[xR],wR=function(t){var r=t.key;if(r==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(C){var R=C.getAttribute("data-emotion");R.indexOf(" ")!==-1&&(document.head.appendChild(C),C.setAttribute("data-s",""))})}var l=t.stylisPlugins||SR,s={},u,f=[];u=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(C){for(var R=C.getAttribute("data-emotion").split(" "),E=1;E<R.length;E++)s[R[E]]=!0;f.push(C)});var d,p=[bR,vR];{var m,g=[dR,hR(function(C){m.insert(C)})],v=pR(p.concat(l,g)),b=function(R){return Eo(cR(R),v)};d=function(R,E,M,O){m=M,b(R?R+"{"+E.styles+"}":E.styles),O&&(x.inserted[E.name]=!0)}}var x={key:r,sheet:new KT({key:r,container:u,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:d};return x.sheet.hydrate(f),x},Gp={exports:{}},mt={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Pv;function CR(){if(Pv)return mt;Pv=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,R=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function O(j){if(typeof j=="object"&&j!==null){var z=j.$$typeof;switch(z){case t:switch(j=j.type,j){case d:case p:case a:case s:case l:case g:return j;default:switch(j=j&&j.$$typeof,j){case f:case m:case x:case b:case u:return j;default:return z}}case r:return z}}}function L(j){return O(j)===p}return mt.AsyncMode=d,mt.ConcurrentMode=p,mt.ContextConsumer=f,mt.ContextProvider=u,mt.Element=t,mt.ForwardRef=m,mt.Fragment=a,mt.Lazy=x,mt.Memo=b,mt.Portal=r,mt.Profiler=s,mt.StrictMode=l,mt.Suspense=g,mt.isAsyncMode=function(j){return L(j)||O(j)===d},mt.isConcurrentMode=L,mt.isContextConsumer=function(j){return O(j)===f},mt.isContextProvider=function(j){return O(j)===u},mt.isElement=function(j){return typeof j=="object"&&j!==null&&j.$$typeof===t},mt.isForwardRef=function(j){return O(j)===m},mt.isFragment=function(j){return O(j)===a},mt.isLazy=function(j){return O(j)===x},mt.isMemo=function(j){return O(j)===b},mt.isPortal=function(j){return O(j)===r},mt.isProfiler=function(j){return O(j)===s},mt.isStrictMode=function(j){return O(j)===l},mt.isSuspense=function(j){return O(j)===g},mt.isValidElementType=function(j){return typeof j=="string"||typeof j=="function"||j===a||j===p||j===s||j===l||j===g||j===v||typeof j=="object"&&j!==null&&(j.$$typeof===x||j.$$typeof===b||j.$$typeof===u||j.$$typeof===f||j.$$typeof===m||j.$$typeof===R||j.$$typeof===E||j.$$typeof===M||j.$$typeof===C)},mt.typeOf=O,mt}var Nv;function kR(){return Nv||(Nv=1,Gp.exports=CR()),Gp.exports}var Xp,_v;function ER(){if(_v)return Xp;_v=1;var e=kR(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=a,s[e.Memo]=l;function u(x){return e.isMemo(x)?l:s[x.$$typeof]||t}var f=Object.defineProperty,d=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,v=Object.prototype;function b(x,C,R){if(typeof C!="string"){if(v){var E=g(C);E&&E!==v&&b(x,E,R)}var M=d(C);p&&(M=M.concat(p(C)));for(var O=u(x),L=u(C),j=0;j<M.length;++j){var z=M[j];if(!r[z]&&!(R&&R[z])&&!(L&&L[z])&&!(O&&O[z])){var I=m(C,z);try{f(x,z,I)}catch{}}}}return x}return Xp=b,Xp}ER();var TR=!0;function SS(e,t,r){var a="";return r.split(" ").forEach(function(l){e[l]!==void 0?t.push(e[l]+";"):l&&(a+=l+" ")}),a}var wm=function(t,r,a){var l=t.key+"-"+r.name;(a===!1||TR===!1)&&t.registered[l]===void 0&&(t.registered[l]=r.styles)},Cm=function(t,r,a){wm(t,r,a);var l=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+l:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function RR(e){for(var t=0,r,a=0,l=e.length;l>=4;++a,l-=4)r=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(a+2)&255)<<16;case 2:t^=(e.charCodeAt(a+1)&255)<<8;case 1:t^=e.charCodeAt(a)&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 AR={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},MR=/[A-Z]|^ms/g,OR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wS=function(t){return t.charCodeAt(1)===45},Bv=function(t){return t!=null&&typeof t!="boolean"},Wp=vS(function(e){return wS(e)?e:e.replace(MR,"-$&").toLowerCase()}),Iv=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(OR,function(a,l,s){return jr={name:l,styles:s,next:jr},l})}return AR[t]!==1&&!wS(t)&&typeof r=="number"&&r!==0?r+"px":r};function bs(e,t,r){if(r==null)return"";var a=r;if(a.__emotion_styles!==void 0)return a;switch(typeof r){case"boolean":return"";case"object":{var l=r;if(l.anim===1)return jr={name:l.name,styles:l.styles,next:jr},l.name;var s=r;if(s.styles!==void 0){var u=s.next;if(u!==void 0)for(;u!==void 0;)jr={name:u.name,styles:u.styles,next:jr},u=u.next;var f=s.styles+";";return f}return zR(e,t,r)}case"function":{if(e!==void 0){var d=jr,p=r(e);return jr=d,bs(e,t,p)}break}}var m=r;if(t==null)return m;var g=t[m];return g!==void 0?g:m}function zR(e,t,r){var a="";if(Array.isArray(r))for(var l=0;l<r.length;l++)a+=bs(e,t,r[l])+";";else for(var s in r){var u=r[s];if(typeof u!="object"){var f=u;t!=null&&t[f]!==void 0?a+=s+"{"+t[f]+"}":Bv(f)&&(a+=Wp(s)+":"+Iv(s,f)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var d=0;d<u.length;d++)Bv(u[d])&&(a+=Wp(s)+":"+Iv(s,u[d])+";");else{var p=bs(e,t,u);switch(s){case"animation":case"animationName":{a+=Wp(s)+":"+p+";";break}default:a+=s+"{"+p+"}"}}}return a}var $v=/label:\s*([^\s;{]+)\s*(;|$)/g,jr;function Ds(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var a=!0,l="";jr=void 0;var s=e[0];if(s==null||s.raw===void 0)a=!1,l+=bs(r,t,s);else{var u=s;l+=u[0]}for(var f=1;f<e.length;f++)if(l+=bs(r,t,e[f]),a){var d=s;l+=d[f]}$v.lastIndex=0;for(var p="",m;(m=$v.exec(l))!==null;)p+="-"+m[1];var g=RR(l)+p;return{name:g,styles:l,next:jr}}var DR=function(t){return t()},CS=Dc.useInsertionEffect?Dc.useInsertionEffect:!1,kS=CS||DR,Hv=CS||S.useLayoutEffect,ES=S.createContext(typeof HTMLElement<"u"?wR({key:"css"}):null);ES.Provider;var km=function(t){return S.forwardRef(function(r,a){var l=S.useContext(ES);return t(r,l,a)})},Bo=S.createContext({}),TS=function(){return S.useContext(Bo)},Em={}.hasOwnProperty,Oh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",jR=function(t,r){var a={};for(var l in r)Em.call(r,l)&&(a[l]=r[l]);return a[Oh]=t,a},LR=function(t){var r=t.cache,a=t.serialized,l=t.isStringTag;return wm(r,a,l),kS(function(){return Cm(r,a,l)}),null},PR=km(function(e,t,r){var a=e.css;typeof a=="string"&&t.registered[a]!==void 0&&(a=t.registered[a]);var l=e[Oh],s=[a],u="";typeof e.className=="string"?u=SS(t.registered,s,e.className):e.className!=null&&(u=e.className+" ");var f=Ds(s,void 0,S.useContext(Bo));u+=t.key+"-"+f.name;var d={};for(var p in e)Em.call(e,p)&&p!=="css"&&p!==Oh&&(d[p]=e[p]);return d.className=u,r&&(d.ref=r),S.createElement(S.Fragment,null,S.createElement(LR,{cache:t,serialized:f,isStringTag:typeof l=="string"}),S.createElement(l,d))}),NR=PR,Uv=function(t,r){var a=arguments;if(r==null||!Em.call(r,"css"))return S.createElement.apply(void 0,a);var l=a.length,s=new Array(l);s[0]=NR,s[1]=jR(t,r);for(var u=2;u<l;u++)s[u]=a[u];return S.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Uv||(Uv={}));var _R=km(function(e,t){var r=e.styles,a=Ds([r],void 0,S.useContext(Bo)),l=S.useRef();return Hv(function(){var s=t.key+"-global",u=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),f=!1,d=document.querySelector('style[data-emotion="'+s+" "+a.name+'"]');return t.sheet.tags.length&&(u.before=t.sheet.tags[0]),d!==null&&(f=!0,d.setAttribute("data-emotion",s),u.hydrate([d])),l.current=[u,f],function(){u.flush()}},[t]),Hv(function(){var s=l.current,u=s[0],f=s[1];if(f){s[1]=!1;return}if(a.next!==void 0&&Cm(t,a.next,!0),u.tags.length){var d=u.tags[u.tags.length-1].nextElementSibling;u.before=d,u.flush()}t.insert("",a,u,!1)},[t,a.name]),null});function Io(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ds(t)}function Hi(){var e=Io.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 BR=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,IR=vS(function(e){return BR.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),$R=IR,HR=function(t){return t!=="theme"},Fv=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?$R:HR},qv=function(t,r,a){var l;if(r){var s=r.shouldForwardProp;l=t.__emotion_forwardProp&&s?function(u){return t.__emotion_forwardProp(u)&&s(u)}:s}return typeof l!="function"&&a&&(l=t.__emotion_forwardProp),l},UR=function(t){var r=t.cache,a=t.serialized,l=t.isStringTag;return wm(r,a,l),kS(function(){return Cm(r,a,l)}),null},FR=function e(t,r){var a=t.__emotion_real===t,l=a&&t.__emotion_base||t,s,u;r!==void 0&&(s=r.label,u=r.target);var f=qv(t,r,a),d=f||Fv(l),p=!d("as");return function(){var m=arguments,g=a&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&g.push("label:"+s+";"),m[0]==null||m[0].raw===void 0)g.push.apply(g,m);else{var v=m[0];g.push(v[0]);for(var b=m.length,x=1;x<b;x++)g.push(m[x],v[x])}var C=km(function(R,E,M){var O=p&&R.as||l,L="",j=[],z=R;if(R.theme==null){z={};for(var I in R)z[I]=R[I];z.theme=S.useContext(Bo)}typeof R.className=="string"?L=SS(E.registered,j,R.className):R.className!=null&&(L=R.className+" ");var V=Ds(g.concat(j),E.registered,z);L+=E.key+"-"+V.name,u!==void 0&&(L+=" "+u);var F=p&&f===void 0?Fv(O):d,N={};for(var q in R)p&&q==="as"||F(q)&&(N[q]=R[q]);return N.className=L,M&&(N.ref=M),S.createElement(S.Fragment,null,S.createElement(UR,{cache:E,serialized:V,isStringTag:typeof O=="string"}),S.createElement(O,N))});return C.displayName=s!==void 0?s:"Styled("+(typeof l=="string"?l:l.displayName||l.name||"Component")+")",C.defaultProps=t.defaultProps,C.__emotion_real=C,C.__emotion_base=l,C.__emotion_styles=g,C.__emotion_forwardProp=f,Object.defineProperty(C,"toString",{value:function(){return"."+u}}),C.withComponent=function(R,E){var M=e(R,Pc({},r,E,{shouldForwardProp:qv(C,E,!0)}));return M.apply(void 0,g)},C}},qR=["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"],zh=FR.bind(null);qR.forEach(function(e){zh[e]=zh(e)});function VR(e){return e==null||Object.keys(e).length===0}function RS(e){const{styles:t,defaultTheme:r={}}=e,a=typeof t=="function"?l=>t(VR(l)?r:l):t;return w.jsx(_R,{styles:a})}function AS(e,t){return zh(e,t)}function YR(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Vv=[];function _i(e){return Vv[0]=e,Ds(Vv)}var Kp={exports:{}},Ct={};/**
 * @license React
 * react-is.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Yv;function GR(){if(Yv)return Ct;Yv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function x(C){if(typeof C=="object"&&C!==null){var R=C.$$typeof;switch(R){case e:switch(C=C.type,C){case r:case l:case a:case d:case p:case v:return C;default:switch(C=C&&C.$$typeof,C){case u:case f:case g:case m:return C;case s:return C;default:return R}}case t:return R}}}return Ct.ContextConsumer=s,Ct.ContextProvider=u,Ct.Element=e,Ct.ForwardRef=f,Ct.Fragment=r,Ct.Lazy=g,Ct.Memo=m,Ct.Portal=t,Ct.Profiler=l,Ct.StrictMode=a,Ct.Suspense=d,Ct.SuspenseList=p,Ct.isContextConsumer=function(C){return x(C)===s},Ct.isContextProvider=function(C){return x(C)===u},Ct.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},Ct.isForwardRef=function(C){return x(C)===f},Ct.isFragment=function(C){return x(C)===r},Ct.isLazy=function(C){return x(C)===g},Ct.isMemo=function(C){return x(C)===m},Ct.isPortal=function(C){return x(C)===t},Ct.isProfiler=function(C){return x(C)===l},Ct.isStrictMode=function(C){return x(C)===a},Ct.isSuspense=function(C){return x(C)===d},Ct.isSuspenseList=function(C){return x(C)===p},Ct.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===l||C===a||C===d||C===p||typeof C=="object"&&C!==null&&(C.$$typeof===g||C.$$typeof===m||C.$$typeof===u||C.$$typeof===s||C.$$typeof===f||C.$$typeof===b||C.getModuleId!==void 0)},Ct.typeOf=x,Ct}var Gv;function XR(){return Gv||(Gv=1,Kp.exports=GR()),Kp.exports}var MS=XR();function Lr(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 OS(e){if(S.isValidElement(e)||MS.isValidElementType(e)||!Lr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=OS(e[r])}),t}function gn(e,t,r={clone:!0}){const a=r.clone?{...e}:e;return Lr(e)&&Lr(t)&&Object.keys(t).forEach(l=>{S.isValidElement(t[l])||MS.isValidElementType(t[l])?a[l]=t[l]:Lr(t[l])&&Object.prototype.hasOwnProperty.call(e,l)&&Lr(e[l])?a[l]=gn(e[l],t[l],r):r.clone?a[l]=Lr(t[l])?OS(t[l]):t[l]:a[l]=t[l]}),a}const WR=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,a)=>r.val-a.val),t.reduce((r,a)=>({...r,[a.key]:a.val}),{})};function KR(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:a=5,...l}=e,s=WR(t),u=Object.keys(s);function f(v){return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${r})`}function d(v){return`@media (max-width:${(typeof t[v]=="number"?t[v]:v)-a/100}${r})`}function p(v,b){const x=u.indexOf(b);return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${r}) and (max-width:${(x!==-1&&typeof t[u[x]]=="number"?t[u[x]]:b)-a/100}${r})`}function m(v){return u.indexOf(v)+1<u.length?p(v,u[u.indexOf(v)+1]):f(v)}function g(v){const b=u.indexOf(v);return b===0?f(u[1]):b===u.length-1?d(u[b]):p(v,u[u.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:u,values:s,up:f,down:d,between:p,only:m,not:g,unit:r,...l}}function Xv(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(a=>a.startsWith("@container")).sort((a,l)=>{const s=/min-width:\s*([0-9.]+)/;return+(a.match(s)?.[1]||0)-+(l.match(s)?.[1]||0)});return r.length?r.reduce((a,l)=>{const s=t[l];return delete a[l],a[l]=s,a},{...t}):t}function QR(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function ZR(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,a,l]=r,s=Number.isNaN(+a)?a||0:+a;return e.containerQueries(l).up(s)}function JR(e){const t=(s,u)=>s.replace("@media",u?`@container ${u}`:"@container");function r(s,u){s.up=(...f)=>t(e.breakpoints.up(...f),u),s.down=(...f)=>t(e.breakpoints.down(...f),u),s.between=(...f)=>t(e.breakpoints.between(...f),u),s.only=(...f)=>t(e.breakpoints.only(...f),u),s.not=(...f)=>{const d=t(e.breakpoints.not(...f),u);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const a={},l=s=>(r(a,s),a);return r(l),{...e,containerQueries:l}}const eA={borderRadius:4};function ls(e,t){return t?gn(e,t,{clone:!1}):e}const rf={xs:0,sm:600,md:900,lg:1200,xl:1536},Wv={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${rf[e]}px)`},tA={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:rf[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function si(e,t,r){const a=e.theme||{};if(Array.isArray(t)){const s=a.breakpoints||Wv;return t.reduce((u,f,d)=>(u[s.up(s.keys[d])]=r(t[d]),u),{})}if(typeof t=="object"){const s=a.breakpoints||Wv;return Object.keys(t).reduce((u,f)=>{if(QR(s.keys,f)){const d=ZR(a.containerQueries?a:tA,f);d&&(u[d]=r(t[f],f))}else if(Object.keys(s.values||rf).includes(f)){const d=s.up(f);u[d]=r(t[f],f)}else{const d=f;u[d]=t[d]}return u},{})}return r(t)}function nA(e={}){return e.keys?.reduce((r,a)=>{const l=e.up(a);return r[l]={},r},{})||{}}function Kv(e,t){return e.reduce((r,a)=>{const l=r[a];return(!l||Object.keys(l).length===0)&&delete r[a],r},t)}function Te(e){if(typeof e!="string")throw new Error(li(7));return e.charAt(0).toUpperCase()+e.slice(1)}function af(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const a=`vars.${t}`.split(".").reduce((l,s)=>l&&l[s]?l[s]:null,e);if(a!=null)return a}return t.split(".").reduce((a,l)=>a&&a[l]!=null?a[l]:null,e)}function _c(e,t,r,a=r){let l;return typeof e=="function"?l=e(r):Array.isArray(e)?l=e[r]||a:l=af(e,r)||a,t&&(l=t(l,a,e)),l}function Vt(e){const{prop:t,cssProperty:r=e.prop,themeKey:a,transform:l}=e,s=u=>{if(u[t]==null)return null;const f=u[t],d=u.theme,p=af(d,a)||{};return si(u,f,g=>{let v=_c(p,l,g);return g===v&&typeof g=="string"&&(v=_c(p,l,`${t}${g==="default"?"":Te(g)}`,g)),r===!1?v:{[r]:v}})};return s.propTypes={},s.filterProps=[t],s}function rA(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const iA={m:"margin",p:"padding"},aA={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Qv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},oA=rA(e=>{if(e.length>2)if(Qv[e])e=Qv[e];else return[e];const[t,r]=e.split(""),a=iA[t],l=aA[r]||"";return Array.isArray(l)?l.map(s=>a+s):[a+l]}),Tm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Rm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Tm,...Rm];function js(e,t,r,a){const l=af(e,t,!0)??r;return typeof l=="number"||typeof l=="string"?s=>typeof s=="string"?s:typeof l=="string"?l.startsWith("var(")&&s===0?0:l.startsWith("var(")&&s===1?l:`calc(${s} * ${l})`:l*s:Array.isArray(l)?s=>{if(typeof s=="string")return s;const u=Math.abs(s),f=l[u];return s>=0?f:typeof f=="number"?-f:typeof f=="string"&&f.startsWith("var(")?`calc(-1 * ${f})`:`-${f}`}:typeof l=="function"?l:()=>{}}function Am(e){return js(e,"spacing",8)}function Ls(e,t){return typeof t=="string"||t==null?t:e(t)}function lA(e,t){return r=>e.reduce((a,l)=>(a[l]=Ls(t,r),a),{})}function sA(e,t,r,a){if(!t.includes(r))return null;const l=oA(r),s=lA(l,a),u=e[r];return si(e,u,s)}function zS(e,t){const r=Am(e.theme);return Object.keys(e).map(a=>sA(e,t,a,r)).reduce(ls,{})}function Bt(e){return zS(e,Tm)}Bt.propTypes={};Bt.filterProps=Tm;function It(e){return zS(e,Rm)}It.propTypes={};It.filterProps=Rm;function DS(e=8,t=Am({spacing:e})){if(e.mui)return e;const r=(...a)=>(a.length===0?[1]:a).map(s=>{const u=t(s);return typeof u=="number"?`${u}px`:u}).join(" ");return r.mui=!0,r}function of(...e){const t=e.reduce((a,l)=>(l.filterProps.forEach(s=>{a[s]=l}),a),{}),r=a=>Object.keys(a).reduce((l,s)=>t[s]?ls(l,t[s](a)):l,{});return r.propTypes={},r.filterProps=e.reduce((a,l)=>a.concat(l.filterProps),[]),r}function or(e){return typeof e!="number"?e:`${e}px solid`}function fr(e,t){return Vt({prop:e,themeKey:"borders",transform:t})}const uA=fr("border",or),cA=fr("borderTop",or),fA=fr("borderRight",or),dA=fr("borderBottom",or),pA=fr("borderLeft",or),hA=fr("borderColor"),mA=fr("borderTopColor"),gA=fr("borderRightColor"),yA=fr("borderBottomColor"),bA=fr("borderLeftColor"),vA=fr("outline",or),xA=fr("outlineColor"),lf=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=js(e.theme,"shape.borderRadius",4),r=a=>({borderRadius:Ls(t,a)});return si(e,e.borderRadius,r)}return null};lf.propTypes={};lf.filterProps=["borderRadius"];of(uA,cA,fA,dA,pA,hA,mA,gA,yA,bA,lf,vA,xA);const sf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=js(e.theme,"spacing",8),r=a=>({gap:Ls(t,a)});return si(e,e.gap,r)}return null};sf.propTypes={};sf.filterProps=["gap"];const uf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=js(e.theme,"spacing",8),r=a=>({columnGap:Ls(t,a)});return si(e,e.columnGap,r)}return null};uf.propTypes={};uf.filterProps=["columnGap"];const cf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=js(e.theme,"spacing",8),r=a=>({rowGap:Ls(t,a)});return si(e,e.rowGap,r)}return null};cf.propTypes={};cf.filterProps=["rowGap"];const SA=Vt({prop:"gridColumn"}),wA=Vt({prop:"gridRow"}),CA=Vt({prop:"gridAutoFlow"}),kA=Vt({prop:"gridAutoColumns"}),EA=Vt({prop:"gridAutoRows"}),TA=Vt({prop:"gridTemplateColumns"}),RA=Vt({prop:"gridTemplateRows"}),AA=Vt({prop:"gridTemplateAreas"}),MA=Vt({prop:"gridArea"});of(sf,uf,cf,SA,wA,CA,kA,EA,TA,RA,AA,MA);function To(e,t){return t==="grey"?t:e}const OA=Vt({prop:"color",themeKey:"palette",transform:To}),zA=Vt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:To}),DA=Vt({prop:"backgroundColor",themeKey:"palette",transform:To});of(OA,zA,DA);function Vn(e){return e<=1&&e!==0?`${e*100}%`:e}const jA=Vt({prop:"width",transform:Vn}),Mm=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const a=e.theme?.breakpoints?.values?.[r]||rf[r];return a?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Vn(r)}};return si(e,e.maxWidth,t)}return null};Mm.filterProps=["maxWidth"];const LA=Vt({prop:"minWidth",transform:Vn}),PA=Vt({prop:"height",transform:Vn}),NA=Vt({prop:"maxHeight",transform:Vn}),_A=Vt({prop:"minHeight",transform:Vn});Vt({prop:"size",cssProperty:"width",transform:Vn});Vt({prop:"size",cssProperty:"height",transform:Vn});const BA=Vt({prop:"boxSizing"});of(jA,Mm,LA,PA,NA,_A,BA);const Ps={border:{themeKey:"borders",transform:or},borderTop:{themeKey:"borders",transform:or},borderRight:{themeKey:"borders",transform:or},borderBottom:{themeKey:"borders",transform:or},borderLeft:{themeKey:"borders",transform:or},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:or},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:lf},color:{themeKey:"palette",transform:To},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:To},backgroundColor:{themeKey:"palette",transform:To},p:{style:It},pt:{style:It},pr:{style:It},pb:{style:It},pl:{style:It},px:{style:It},py:{style:It},padding:{style:It},paddingTop:{style:It},paddingRight:{style:It},paddingBottom:{style:It},paddingLeft:{style:It},paddingX:{style:It},paddingY:{style:It},paddingInline:{style:It},paddingInlineStart:{style:It},paddingInlineEnd:{style:It},paddingBlock:{style:It},paddingBlockStart:{style:It},paddingBlockEnd:{style:It},m:{style:Bt},mt:{style:Bt},mr:{style:Bt},mb:{style:Bt},ml:{style:Bt},mx:{style:Bt},my:{style:Bt},margin:{style:Bt},marginTop:{style:Bt},marginRight:{style:Bt},marginBottom:{style:Bt},marginLeft:{style:Bt},marginX:{style:Bt},marginY:{style:Bt},marginInline:{style:Bt},marginInlineStart:{style:Bt},marginInlineEnd:{style:Bt},marginBlock:{style:Bt},marginBlockStart:{style:Bt},marginBlockEnd:{style:Bt},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:sf},rowGap:{style:cf},columnGap:{style:uf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Vn},maxWidth:{style:Mm},minWidth:{transform:Vn},height:{transform:Vn},maxHeight:{transform:Vn},minHeight:{transform:Vn},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 IA(...e){const t=e.reduce((a,l)=>a.concat(Object.keys(l)),[]),r=new Set(t);return e.every(a=>r.size===Object.keys(a).length)}function $A(e,t){return typeof e=="function"?e(t):e}function HA(){function e(r,a,l,s){const u={[r]:a,theme:l},f=s[r];if(!f)return{[r]:a};const{cssProperty:d=r,themeKey:p,transform:m,style:g}=f;if(a==null)return null;if(p==="typography"&&a==="inherit")return{[r]:a};const v=af(l,p)||{};return g?g(u):si(u,a,x=>{let C=_c(v,m,x);return x===C&&typeof x=="string"&&(C=_c(v,m,`${r}${x==="default"?"":Te(x)}`,x)),d===!1?C:{[d]:C}})}function t(r){const{sx:a,theme:l={},nested:s}=r||{};if(!a)return null;const u=l.unstable_sxConfig??Ps;function f(d){let p=d;if(typeof d=="function")p=d(l);else if(typeof d!="object")return d;if(!p)return null;const m=nA(l.breakpoints),g=Object.keys(m);let v=m;return Object.keys(p).forEach(b=>{const x=$A(p[b],l);if(x!=null)if(typeof x=="object")if(u[b])v=ls(v,e(b,x,l,u));else{const C=si({theme:l},x,R=>({[b]:R}));IA(C,x)?v[b]=t({sx:x,theme:l,nested:!0}):v=ls(v,C)}else v=ls(v,e(b,x,l,u))}),!s&&l.modularCssLayers?{"@layer sx":Xv(l,Kv(g,v))}:Xv(l,Kv(g,v))}return Array.isArray(a)?a.map(f):f(a)}return t}const Bi=HA();Bi.filterProps=["sx"];function UA(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let a=r.getColorSchemeSelector(e);return a==="&"?t:((a.includes("data-")||a.includes("."))&&(a=`*:where(${a.replace(/\s*&$/,"")}) &`),{[a]:t})}return r.palette.mode===e?t:{}}function Om(e={},...t){const{breakpoints:r={},palette:a={},spacing:l,shape:s={},...u}=e,f=KR(r),d=DS(l);let p=gn({breakpoints:f,direction:"ltr",components:{},palette:{mode:"light",...a},spacing:d,shape:{...eA,...s}},u);return p=JR(p),p.applyStyles=UA,p=t.reduce((m,g)=>gn(m,g),p),p.unstable_sxConfig={...Ps,...u?.unstable_sxConfig},p.unstable_sx=function(g){return Bi({sx:g,theme:this})},p}function FA(e){return Object.keys(e).length===0}function ff(e=null){const t=S.useContext(Bo);return!t||FA(t)?e:t}const qA=Om();function zm(e=qA){return ff(e)}function Qp(e){const t=_i(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function jS({styles:e,themeId:t,defaultTheme:r={}}){const a=zm(r),l=t&&a[t]||a;let s=typeof e=="function"?e(l):e;return l.modularCssLayers&&(Array.isArray(s)?s=s.map(u=>Qp(typeof u=="function"?u(l):u)):s=Qp(s)),w.jsx(RS,{styles:s})}const VA=e=>{const t={systemProps:{},otherProps:{}},r=e?.theme?.unstable_sxConfig??Ps;return Object.keys(e).forEach(a=>{r[a]?t.systemProps[a]=e[a]:t.otherProps[a]=e[a]}),t};function LS(e){const{sx:t,...r}=e,{systemProps:a,otherProps:l}=VA(r);let s;return Array.isArray(t)?s=[a,...t]:typeof t=="function"?s=(...u)=>{const f=t(...u);return Lr(f)?{...a,...f}:a}:s={...a,...t},{...l,sx:s}}const Zv=e=>e,YA=()=>{let e=Zv;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Zv}}},PS=YA();function NS(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(r=NS(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function je(){for(var e,t,r=0,a="",l=arguments.length;r<l;r++)(e=arguments[r])&&(t=NS(e))&&(a&&(a+=" "),a+=t);return a}function GA(e={}){const{themeId:t,defaultTheme:r,defaultClassName:a="MuiBox-root",generateClassName:l}=e,s=AS("div",{shouldForwardProp:f=>f!=="theme"&&f!=="sx"&&f!=="as"})(Bi);return S.forwardRef(function(d,p){const m=zm(r),{className:g,component:v="div",...b}=LS(d);return w.jsx(s,{as:v,ref:p,className:je(g,l?l(a):a),theme:t&&m[t]||m,...b})})}const XA={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 nt(e,t,r="Mui"){const a=XA[t];return a?`${r}-${a}`:`${PS.generate(e)}-${t}`}function Ge(e,t,r="Mui"){const a={};return t.forEach(l=>{a[l]=nt(e,l,r)}),a}function _S(e){const{variants:t,...r}=e,a={variants:t,style:_i(r),isProcessed:!0};return a.style===r||t&&t.forEach(l=>{typeof l.style!="function"&&(l.style=_i(l.style))}),a}const WA=Om();function Zp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ba(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function KA(e){return e?(t,r)=>r[e]:null}function QA(e,t,r){e.theme=e5(e.theme)?r:e.theme[t]||e.theme}function Rc(e,t,r){const a=typeof t=="function"?t(e):t;if(Array.isArray(a))return a.flatMap(l=>Rc(e,l,r));if(Array.isArray(a?.variants)){let l;if(a.isProcessed)l=r?ba(a.style,r):a.style;else{const{variants:s,...u}=a;l=r?ba(_i(u),r):u}return BS(e,a.variants,[l],r)}return a?.isProcessed?r?ba(_i(a.style),r):a.style:r?ba(_i(a),r):a}function BS(e,t,r=[],a=void 0){let l;e:for(let s=0;s<t.length;s+=1){const u=t[s];if(typeof u.props=="function"){if(l??={...e,...e.ownerState,ownerState:e.ownerState},!u.props(l))continue}else for(const f in u.props)if(e[f]!==u.props[f]&&e.ownerState?.[f]!==u.props[f])continue e;typeof u.style=="function"?(l??={...e,...e.ownerState,ownerState:e.ownerState},r.push(a?ba(_i(u.style(l)),a):u.style(l))):r.push(a?ba(_i(u.style),a):u.style)}return r}function ZA(e={}){const{themeId:t,defaultTheme:r=WA,rootShouldForwardProp:a=Zp,slotShouldForwardProp:l=Zp}=e;function s(f){QA(f,t,r)}return(f,d={})=>{YR(f,z=>z.filter(I=>I!==Bi));const{name:p,slot:m,skipVariantsResolver:g,skipSx:v,overridesResolver:b=KA(n5(m)),...x}=d,C=p&&p.startsWith("Mui")||m?"components":"custom",R=g!==void 0?g:m&&m!=="Root"&&m!=="root"||!1,E=v||!1;let M=Zp;m==="Root"||m==="root"?M=a:m?M=l:t5(f)&&(M=void 0);const O=AS(f,{shouldForwardProp:M,label:JA(),...x}),L=z=>{if(z.__emotion_real===z)return z;if(typeof z=="function")return function(V){return Rc(V,z,V.theme.modularCssLayers?C:void 0)};if(Lr(z)){const I=_S(z);return function(F){return I.variants?Rc(F,I,F.theme.modularCssLayers?C:void 0):F.theme.modularCssLayers?ba(I.style,C):I.style}}return z},j=(...z)=>{const I=[],V=z.map(L),F=[];if(I.push(s),p&&b&&F.push(function(B){const U=B.theme.components?.[p]?.styleOverrides;if(!U)return null;const _={};for(const G in U)_[G]=Rc(B,U[G],B.theme.modularCssLayers?"theme":void 0);return b(B,_)}),p&&!R&&F.push(function(B){const U=B.theme?.components?.[p]?.variants;return U?BS(B,U,[],B.theme.modularCssLayers?"theme":void 0):null}),E||F.push(Bi),Array.isArray(V[0])){const A=V.shift(),B=new Array(I.length).fill(""),H=new Array(F.length).fill("");let U;U=[...B,...A,...H],U.raw=[...B,...A.raw,...H],I.unshift(U)}const N=[...I,...V,...F],q=O(...N);return f.muiName&&(q.muiName=f.muiName),q};return O.withConfig&&(j.withConfig=O.withConfig),j}}function JA(e,t){return void 0}function e5(e){for(const t in e)return!1;return!0}function t5(e){return typeof e=="string"&&e.charCodeAt(0)>96}function n5(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function vs(e,t,r=!1){const a={...t};for(const l in e)if(Object.prototype.hasOwnProperty.call(e,l)){const s=l;if(s==="components"||s==="slots")a[s]={...e[s],...a[s]};else if(s==="componentsProps"||s==="slotProps"){const u=e[s],f=t[s];if(!f)a[s]=u||{};else if(!u)a[s]=f;else{a[s]={...f};for(const d in u)if(Object.prototype.hasOwnProperty.call(u,d)){const p=d;a[s][p]=vs(u[p],f[p],r)}}}else s==="className"&&r&&t.className?a.className=je(e?.className,t?.className):s==="style"&&r&&t.style?a.style={...e?.style,...t?.style}:a[s]===void 0&&(a[s]=e[s])}return a}function r5(e){const{theme:t,name:r,props:a}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?a:vs(t.components[r].defaultProps,a)}const yn=typeof window<"u"?S.useLayoutEffect:S.useEffect;function i5(e,t,r,a,l){const[s,u]=S.useState(()=>l&&r?r(e).matches:a?a(e).matches:t);return yn(()=>{if(!r)return;const f=r(e),d=()=>{u(f.matches)};return d(),f.addEventListener("change",d),()=>{f.removeEventListener("change",d)}},[e,r]),s}const a5={...Dc},IS=a5.useSyncExternalStore;function o5(e,t,r,a,l){const s=S.useCallback(()=>t,[t]),u=S.useMemo(()=>{if(l&&r)return()=>r(e).matches;if(a!==null){const{matches:m}=a(e);return()=>m}return s},[s,e,a,l,r]),[f,d]=S.useMemo(()=>{if(r===null)return[s,()=>()=>{}];const m=r(e);return[()=>m.matches,g=>(m.addEventListener("change",g),()=>{m.removeEventListener("change",g)})]},[s,r,e]);return IS(d,f,u)}function $S(e={}){const{themeId:t}=e;return function(a,l={}){let s=ff();s&&t&&(s=s[t]||s);const u=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:f=!1,matchMedia:d=u?window.matchMedia:null,ssrMatchMedia:p=null,noSsr:m=!1}=r5({name:"MuiUseMediaQuery",props:l,theme:s});let g=typeof a=="function"?a(s):a;return g=g.replace(/^@media( ?)/m,""),g.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
`)),(IS!==void 0?o5:i5)(g,f,d,p,m)}}$S();function l5(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Dm(e,t=0,r=1){return l5(e,t,r)}function s5(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(a=>a+a)),r?`rgb${r.length===4?"a":""}(${r.map((a,l)=>l<3?parseInt(a,16):Math.round(parseInt(a,16)/255*1e3)/1e3).join(", ")})`:""}function Ii(e){if(e.type)return e;if(e.charAt(0)==="#")return Ii(s5(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(li(9,e));let a=e.substring(t+1,e.length-1),l;if(r==="color"){if(a=a.split(" "),l=a.shift(),a.length===4&&a[3].charAt(0)==="/"&&(a[3]=a[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(l))throw new Error(li(10,l))}else a=a.split(",");return a=a.map(s=>parseFloat(s)),{type:r,values:a,colorSpace:l}}const u5=e=>{const t=Ii(e);return t.values.slice(0,3).map((r,a)=>t.type.includes("hsl")&&a!==0?`${r}%`:r).join(" ")},rs=(e,t)=>{try{return u5(e)}catch{return e}};function df(e){const{type:t,colorSpace:r}=e;let{values:a}=e;return t.includes("rgb")?a=a.map((l,s)=>s<3?parseInt(l,10):l):t.includes("hsl")&&(a[1]=`${a[1]}%`,a[2]=`${a[2]}%`),t.includes("color")?a=`${r} ${a.join(" ")}`:a=`${a.join(", ")}`,`${t}(${a})`}function HS(e){e=Ii(e);const{values:t}=e,r=t[0],a=t[1]/100,l=t[2]/100,s=a*Math.min(l,1-l),u=(p,m=(p+r/30)%12)=>l-s*Math.max(Math.min(m-3,9-m,1),-1);let f="rgb";const d=[Math.round(u(0)*255),Math.round(u(8)*255),Math.round(u(4)*255)];return e.type==="hsla"&&(f+="a",d.push(t[3])),df({type:f,values:d})}function Dh(e){e=Ii(e);let t=e.type==="hsl"||e.type==="hsla"?Ii(HS(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c5(e,t){const r=Dh(e),a=Dh(t);return(Math.max(r,a)+.05)/(Math.min(r,a)+.05)}function Bc(e,t){return e=Ii(e),t=Dm(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,df(e)}function ca(e,t,r){try{return Bc(e,t)}catch{return e}}function pf(e,t){if(e=Ii(e),t=Dm(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return df(e)}function bt(e,t,r){try{return pf(e,t)}catch{return e}}function hf(e,t){if(e=Ii(e),t=Dm(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return df(e)}function vt(e,t,r){try{return hf(e,t)}catch{return e}}function jh(e,t=.15){return Dh(e)>.5?pf(e,t):hf(e,t)}function sc(e,t,r){try{return jh(e,t)}catch{return e}}const US=S.createContext(null);function jm(){return S.useContext(US)}const f5=typeof Symbol=="function"&&Symbol.for,d5=f5?Symbol.for("mui.nested"):"__THEME_NESTED__";function p5(e,t){return typeof t=="function"?t(e):{...e,...t}}function h5(e){const{children:t,theme:r}=e,a=jm(),l=S.useMemo(()=>{const s=a===null?{...r}:p5(a,r);return s!=null&&(s[d5]=a!==null),s},[r,a]);return w.jsx(US.Provider,{value:l,children:t})}const FS=S.createContext();function m5({value:e,...t}){return w.jsx(FS.Provider,{value:e??!0,...t})}const Ns=()=>S.useContext(FS)??!1,qS=S.createContext(void 0);function g5({value:e,children:t}){return w.jsx(qS.Provider,{value:e,children:t})}function y5(e){const{theme:t,name:r,props:a}=e;if(!t||!t.components||!t.components[r])return a;const l=t.components[r];return l.defaultProps?vs(l.defaultProps,a,t.components.mergeClassNameAndStyle):!l.styleOverrides&&!l.variants?vs(l,a,t.components.mergeClassNameAndStyle):a}function b5({props:e,name:t}){const r=S.useContext(qS);return y5({props:e,name:t,theme:{components:r}})}let Jv=0;function v5(e){const[t,r]=S.useState(e),a=e||t;return S.useEffect(()=>{t==null&&(Jv+=1,r(`mui-${Jv}`))},[t]),a}const x5={...Dc},e1=x5.useId;function $o(e){if(e1!==void 0){const t=e1();return e??t}return v5(e)}function S5(e){const t=ff(),r=$o()||"",{modularCssLayers:a}=e;let l="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!a||t!==null?l="":typeof a=="string"?l=a.replace(/mui(?!\.)/g,l):l=`@layer ${l};`,yn(()=>{const s=document.querySelector("head");if(!s)return;const u=s.firstChild;if(l){if(u&&u.hasAttribute?.("data-mui-layer-order")&&u.getAttribute("data-mui-layer-order")===r)return;const f=document.createElement("style");f.setAttribute("data-mui-layer-order",r),f.textContent=l,s.prepend(f)}else s.querySelector(`style[data-mui-layer-order="${r}"]`)?.remove()},[l,r]),l?w.jsx(jS,{styles:l}):null}const t1={};function n1(e,t,r,a=!1){return S.useMemo(()=>{const l=e&&t[e]||t;if(typeof r=="function"){const s=r(l),u=e?{...t,[e]:s}:s;return a?()=>u:u}return e?{...t,[e]:r}:{...t,...r}},[e,t,r,a])}function VS(e){const{children:t,theme:r,themeId:a}=e,l=ff(t1),s=jm()||t1,u=n1(a,l,r),f=n1(a,s,r,!0),d=(a?u[a]:u).direction==="rtl",p=S5(u);return w.jsx(h5,{theme:f,children:w.jsx(Bo.Provider,{value:u,children:w.jsx(m5,{value:d,children:w.jsxs(g5,{value:a?u[a].components:u.components,children:[p,t]})})})})}const r1={theme:void 0};function w5(e){let t,r;return function(l){let s=t;return(s===void 0||l.theme!==r)&&(r1.theme=l.theme,s=_S(e(r1)),t=s,r=l.theme),s}}const Lm="mode",Pm="color-scheme",C5="data-color-scheme";function k5(e){const{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:a="dark",modeStorageKey:l=Lm,colorSchemeStorageKey:s=Pm,attribute:u=C5,colorSchemeNode:f="document.documentElement",nonce:d}=e||{};let p="",m=u;if(u==="class"&&(m=".%s"),u==="data"&&(m="[data-%s]"),m.startsWith(".")){const v=m.substring(1);p+=`${f}.classList.remove('${v}'.replace('%s', light), '${v}'.replace('%s', dark));
      ${f}.classList.add('${v}'.replace('%s', colorScheme));`}const g=m.match(/\[([^[\]]+)\]/);if(g){const[v,b]=g[1].split("=");b||(p+=`${f}.removeAttribute('${v}'.replace('%s', light));
      ${f}.removeAttribute('${v}'.replace('%s', dark));`),p+=`
      ${f}.setAttribute('${v}'.replace('%s', colorScheme), ${b?`${b}.replace('%s', colorScheme)`:'""'});`}else p+=`${f}.setAttribute('${m}', colorScheme);`;return w.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?d:"",dangerouslySetInnerHTML:{__html:`(function() {
try {
  let colorScheme = '';
  const mode = localStorage.getItem('${l}') || '${t}';
  const dark = localStorage.getItem('${s}-dark') || '${a}';
  const light = localStorage.getItem('${s}-light') || '${r}';
  if (mode === 'system') {
    // handle system mode
    const mql = window.matchMedia('(prefers-color-scheme: dark)');
    if (mql.matches) {
      colorScheme = dark
    } else {
      colorScheme = light
    }
  }
  if (mode === 'light') {
    colorScheme = light;
  }
  if (mode === 'dark') {
    colorScheme = dark;
  }
  if (colorScheme) {
    ${p}
  }
} catch(e){}})();`}},"mui-color-scheme-init")}function E5(){}const T5=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(r){if(typeof window>"u")return;if(!t)return r;let a;try{a=t.localStorage.getItem(e)}catch{}return a||r},set:r=>{if(t)try{t.localStorage.setItem(e,r)}catch{}},subscribe:r=>{if(!t)return E5;const a=l=>{const s=l.newValue;l.key===e&&r(s)};return t.addEventListener("storage",a),()=>{t.removeEventListener("storage",a)}}});function Jp(){}function i1(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function YS(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 R5(e){return YS(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function A5(e){const{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:a,supportedColorSchemes:l=[],modeStorageKey:s=Lm,colorSchemeStorageKey:u=Pm,storageWindow:f=typeof window>"u"?void 0:window,storageManager:d=T5,noSsr:p=!1}=e,m=l.join(","),g=l.length>1,v=S.useMemo(()=>d?.({key:s,storageWindow:f}),[d,s,f]),b=S.useMemo(()=>d?.({key:`${u}-light`,storageWindow:f}),[d,u,f]),x=S.useMemo(()=>d?.({key:`${u}-dark`,storageWindow:f}),[d,u,f]),[C,R]=S.useState(()=>{const V=v?.get(t)||t,F=b?.get(r)||r,N=x?.get(a)||a;return{mode:V,systemMode:i1(V),lightColorScheme:F,darkColorScheme:N}}),[E,M]=S.useState(p||!g);S.useEffect(()=>{M(!0)},[]);const O=R5(C),L=S.useCallback(V=>{R(F=>{if(V===F.mode)return F;const N=V??t;return v?.set(N),{...F,mode:N,systemMode:i1(N)}})},[v,t]),j=S.useCallback(V=>{V?typeof V=="string"?V&&!m.includes(V)?console.error(`\`${V}\` does not exist in \`theme.colorSchemes\`.`):R(F=>{const N={...F};return YS(F,q=>{q==="light"&&(b?.set(V),N.lightColorScheme=V),q==="dark"&&(x?.set(V),N.darkColorScheme=V)}),N}):R(F=>{const N={...F},q=V.light===null?r:V.light,A=V.dark===null?a:V.dark;return q&&(m.includes(q)?(N.lightColorScheme=q,b?.set(q)):console.error(`\`${q}\` does not exist in \`theme.colorSchemes\`.`)),A&&(m.includes(A)?(N.darkColorScheme=A,x?.set(A)):console.error(`\`${A}\` does not exist in \`theme.colorSchemes\`.`)),N}):R(F=>(b?.set(r),x?.set(a),{...F,lightColorScheme:r,darkColorScheme:a}))},[m,b,x,r,a]),z=S.useCallback(V=>{C.mode==="system"&&R(F=>{const N=V?.matches?"dark":"light";return F.systemMode===N?F:{...F,systemMode:N}})},[C.mode]),I=S.useRef(z);return I.current=z,S.useEffect(()=>{if(typeof window.matchMedia!="function"||!g)return;const V=(...N)=>I.current(...N),F=window.matchMedia("(prefers-color-scheme: dark)");return F.addListener(V),V(F),()=>{F.removeListener(V)}},[g]),S.useEffect(()=>{if(g){const V=v?.subscribe(q=>{(!q||["light","dark","system"].includes(q))&&L(q||t)})||Jp,F=b?.subscribe(q=>{(!q||m.match(q))&&j({light:q})})||Jp,N=x?.subscribe(q=>{(!q||m.match(q))&&j({dark:q})})||Jp;return()=>{V(),F(),N()}}},[j,L,m,t,f,g,v,b,x]),{...C,mode:E?C.mode:void 0,systemMode:E?C.systemMode:void 0,colorScheme:E?O:void 0,setMode:L,setColorScheme:j}}const M5="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function O5(e){const{themeId:t,theme:r={},modeStorageKey:a=Lm,colorSchemeStorageKey:l=Pm,disableTransitionOnChange:s=!1,defaultColorScheme:u,resolveTheme:f}=e,d={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},p=S.createContext(void 0),m=()=>S.useContext(p)||d,g={},v={};function b(E){const{children:M,theme:O,modeStorageKey:L=a,colorSchemeStorageKey:j=l,disableTransitionOnChange:z=s,storageManager:I,storageWindow:V=typeof window>"u"?void 0:window,documentNode:F=typeof document>"u"?void 0:document,colorSchemeNode:N=typeof document>"u"?void 0:document.documentElement,disableNestedContext:q=!1,disableStyleSheetGeneration:A=!1,defaultMode:B="system",forceThemeRerender:H=!1,noSsr:U}=E,_=S.useRef(!1),G=jm(),Z=S.useContext(p),J=!!Z&&!q,k=S.useMemo(()=>O||(typeof r=="function"?r():r),[O]),K=k[t],re=K||k,{colorSchemes:P=g,components:se=v,cssVarPrefix:me}=re,fe=Object.keys(P).filter(ne=>!!P[ne]).join(","),ce=S.useMemo(()=>fe.split(","),[fe]),ye=typeof u=="string"?u:u.light,be=typeof u=="string"?u:u.dark,ve=P[ye]&&P[be]?B:P[re.defaultColorScheme]?.palette?.mode||re.palette?.mode,{mode:pe,setMode:ge,systemMode:Ce,lightColorScheme:de,darkColorScheme:Oe,colorScheme:ze,setColorScheme:Me}=A5({supportedColorSchemes:ce,defaultLightColorScheme:ye,defaultDarkColorScheme:be,modeStorageKey:L,colorSchemeStorageKey:j,defaultMode:ve,storageManager:I,storageWindow:V,noSsr:U});let qe=pe,Xe=ze;J&&(qe=Z.mode,Xe=Z.colorScheme);let Ze=Xe||re.defaultColorScheme;re.vars&&!H&&(Ze=re.defaultColorScheme);const We=S.useMemo(()=>{const ne=re.generateThemeVars?.()||re.vars,ie={...re,components:se,colorSchemes:P,cssVarPrefix:me,vars:ne};if(typeof ie.generateSpacing=="function"&&(ie.spacing=ie.generateSpacing()),Ze){const Se=P[Ze];Se&&typeof Se=="object"&&Object.keys(Se).forEach(we=>{Se[we]&&typeof Se[we]=="object"?ie[we]={...ie[we],...Se[we]}:ie[we]=Se[we]})}return f?f(ie):ie},[re,Ze,se,P,me]),Ee=re.colorSchemeSelector;yn(()=>{if(Xe&&N&&Ee&&Ee!=="media"){const ne=Ee;let ie=Ee;if(ne==="class"&&(ie=".%s"),ne==="data"&&(ie="[data-%s]"),ne?.startsWith("data-")&&!ne.includes("%s")&&(ie=`[${ne}="%s"]`),ie.startsWith("."))N.classList.remove(...ce.map(Se=>ie.substring(1).replace("%s",Se))),N.classList.add(ie.substring(1).replace("%s",Xe));else{const Se=ie.replace("%s",Xe).match(/\[([^\]]+)\]/);if(Se){const[we,$e]=Se[1].split("=");$e||ce.forEach(Le=>{N.removeAttribute(we.replace(Xe,Le))}),N.setAttribute(we,$e?$e.replace(/"|'/g,""):"")}else N.setAttribute(ie,Xe)}}},[Xe,Ee,N,ce]),S.useEffect(()=>{let ne;if(z&&_.current&&F){const ie=F.createElement("style");ie.appendChild(F.createTextNode(M5)),F.head.appendChild(ie),window.getComputedStyle(F.body),ne=setTimeout(()=>{F.head.removeChild(ie)},1)}return()=>{clearTimeout(ne)}},[Xe,z,F]),S.useEffect(()=>(_.current=!0,()=>{_.current=!1}),[]);const Ut=S.useMemo(()=>({allColorSchemes:ce,colorScheme:Xe,darkColorScheme:Oe,lightColorScheme:de,mode:qe,setColorScheme:Me,setMode:ge,systemMode:Ce}),[ce,Xe,Oe,de,qe,Me,ge,Ce,We.colorSchemeSelector]);let ht=!0;(A||re.cssVariables===!1||J&&G?.cssVarPrefix===me)&&(ht=!1);const tn=w.jsxs(S.Fragment,{children:[w.jsx(VS,{themeId:K?t:void 0,theme:We,children:M}),ht&&w.jsx(RS,{styles:We.generateStyleSheets?.()||[]})]});return J?tn:w.jsx(p.Provider,{value:Ut,children:tn})}const x=typeof u=="string"?u:u.light,C=typeof u=="string"?u:u.dark;return{CssVarsProvider:b,useColorScheme:m,getInitColorSchemeScript:E=>k5({colorSchemeStorageKey:l,defaultLightColorScheme:x,defaultDarkColorScheme:C,modeStorageKey:a,...E})}}function z5(e=""){function t(...a){if(!a.length)return"";const l=a[0];return typeof l=="string"&&!l.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}-`:""}${l}${t(...a.slice(1))})`:`, ${l}`}return(a,...l)=>`var(--${e?`${e}-`:""}${a}${t(...l)})`}const a1=(e,t,r,a=[])=>{let l=e;t.forEach((s,u)=>{u===t.length-1?Array.isArray(l)?l[Number(s)]=r:l&&typeof l=="object"&&(l[s]=r):l&&typeof l=="object"&&(l[s]||(l[s]=a.includes(s)?[]:{}),l=l[s])})},D5=(e,t,r)=>{function a(l,s=[],u=[]){Object.entries(l).forEach(([f,d])=>{(!r||r&&!r([...s,f]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?a(d,[...s,f],Array.isArray(d)?[...u,f]:u):t([...s,f],d,u))})}a(e)},j5=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(a=>e.includes(a))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function eh(e,t){const{prefix:r,shouldSkipGeneratingVar:a}=t||{},l={},s={},u={};return D5(e,(f,d,p)=>{if((typeof d=="string"||typeof d=="number")&&(!a||!a(f,d))){const m=`--${r?`${r}-`:""}${f.join("-")}`,g=j5(f,d);Object.assign(l,{[m]:g}),a1(s,f,`var(${m})`,p),a1(u,f,`var(${m}, ${g})`,p)}},f=>f[0]==="vars"),{css:l,vars:s,varsWithDefaults:u}}function L5(e,t={}){const{getSelector:r=E,disableCssColorScheme:a,colorSchemeSelector:l,enableContrastVars:s}=t,{colorSchemes:u={},components:f,defaultColorScheme:d="light",...p}=e,{vars:m,css:g,varsWithDefaults:v}=eh(p,t);let b=v;const x={},{[d]:C,...R}=u;if(Object.entries(R||{}).forEach(([L,j])=>{const{vars:z,css:I,varsWithDefaults:V}=eh(j,t);b=gn(b,V),x[L]={css:I,vars:z}}),C){const{css:L,vars:j,varsWithDefaults:z}=eh(C,t);b=gn(b,z),x[d]={css:L,vars:j}}function E(L,j){let z=l;if(l==="class"&&(z=".%s"),l==="data"&&(z="[data-%s]"),l?.startsWith("data-")&&!l.includes("%s")&&(z=`[${l}="%s"]`),L){if(z==="media")return e.defaultColorScheme===L?":root":{[`@media (prefers-color-scheme: ${u[L]?.palette?.mode||L})`]:{":root":j}};if(z)return e.defaultColorScheme===L?`:root, ${z.replace("%s",String(L))}`:z.replace("%s",String(L))}return":root"}return{vars:b,generateThemeVars:()=>{let L={...m};return Object.entries(x).forEach(([,{vars:j}])=>{L=gn(L,j)}),L},generateStyleSheets:()=>{const L=[],j=e.defaultColorScheme||"light";function z(F,N){Object.keys(N).length&&L.push(typeof F=="string"?{[F]:{...N}}:F)}z(r(void 0,{...g}),g);const{[j]:I,...V}=x;if(I){const{css:F}=I,N=u[j]?.palette?.mode,q=!a&&N?{colorScheme:N,...F}:{...F};z(r(j,{...q}),q)}return Object.entries(V).forEach(([F,{css:N}])=>{const q=u[F]?.palette?.mode,A=!a&&q?{colorScheme:q,...N}:{...N};z(r(F,{...A}),A)}),s&&L.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)"}}),L}}}function P5(e){return function(r){return e==="media"?`@media (prefers-color-scheme: ${r})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}function rt(e,t,r=void 0){const a={};for(const l in e){const s=e[l];let u="",f=!0;for(let d=0;d<s.length;d+=1){const p=s[d];p&&(u+=(f===!0?"":" ")+t(p),f=!1,r&&r[p]&&(u+=" "+r[p]))}a[l]=u}return a}function Ac(e,t){return S.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const xs={black:"#000",white:"#fff"},N5={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"},po={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ho={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Vl={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},mo={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},go={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},yo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function GS(){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:xs.white,default:xs.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 XS=GS();function WS(){return{text:{primary:xs.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:xs.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 Lh=WS();function o1(e,t,r,a){const l=a.light||a,s=a.dark||a*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=hf(e.main,l):t==="dark"&&(e.dark=pf(e.main,s)))}function l1(e,t,r,a,l){const s=l.light||l,u=l.dark||l*1.5;t[r]||(t.hasOwnProperty(a)?t[r]=t[a]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(u*100).toFixed(0)}%)`))}function _5(e="light"){return e==="dark"?{main:mo[200],light:mo[50],dark:mo[400]}:{main:mo[700],light:mo[400],dark:mo[800]}}function B5(e="light"){return e==="dark"?{main:po[200],light:po[50],dark:po[400]}:{main:po[500],light:po[300],dark:po[700]}}function I5(e="light"){return e==="dark"?{main:ho[500],light:ho[300],dark:ho[700]}:{main:ho[700],light:ho[400],dark:ho[800]}}function $5(e="light"){return e==="dark"?{main:go[400],light:go[300],dark:go[700]}:{main:go[700],light:go[500],dark:go[900]}}function H5(e="light"){return e==="dark"?{main:yo[400],light:yo[300],dark:yo[700]}:{main:yo[800],light:yo[500],dark:yo[900]}}function U5(e="light"){return e==="dark"?{main:Vl[400],light:Vl[300],dark:Vl[700]}:{main:"#ed6c02",light:Vl[500],dark:Vl[900]}}function F5(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Nm(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:a=.2,colorSpace:l,...s}=e,u=e.primary||_5(t),f=e.secondary||B5(t),d=e.error||I5(t),p=e.info||$5(t),m=e.success||H5(t),g=e.warning||U5(t);function v(R){return l?F5(R):c5(R,Lh.text.primary)>=r?Lh.text.primary:XS.text.primary}const b=({color:R,name:E,mainShade:M=500,lightShade:O=300,darkShade:L=700})=>{if(R={...R},!R.main&&R[M]&&(R.main=R[M]),!R.hasOwnProperty("main"))throw new Error(li(11,E?` (${E})`:"",M));if(typeof R.main!="string")throw new Error(li(12,E?` (${E})`:"",JSON.stringify(R.main)));return l?(l1(l,R,"light",O,a),l1(l,R,"dark",L,a)):(o1(R,"light",O,a),o1(R,"dark",L,a)),R.contrastText||(R.contrastText=v(R.main)),R};let x;return t==="light"?x=GS():t==="dark"&&(x=WS()),gn({common:{...xs},mode:t,primary:b({color:u,name:"primary"}),secondary:b({color:f,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:d,name:"error"}),warning:b({color:g,name:"warning"}),info:b({color:p,name:"info"}),success:b({color:m,name:"success"}),grey:N5,contrastThreshold:r,getContrastText:v,augmentColor:b,tonalOffset:a,...x},s)}function q5(e){const t={};return Object.entries(e).forEach(a=>{const[l,s]=a;typeof s=="object"&&(t[l]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function V5(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Y5(e){return Math.round(e*1e5)/1e5}const s1={textTransform:"uppercase"},u1='"Roboto", "Helvetica", "Arial", sans-serif';function KS(e,t){const{fontFamily:r=u1,fontSize:a=14,fontWeightLight:l=300,fontWeightRegular:s=400,fontWeightMedium:u=500,fontWeightBold:f=700,htmlFontSize:d=16,allVariants:p,pxToRem:m,...g}=typeof t=="function"?t(e):t,v=a/14,b=m||(R=>`${R/d*v}rem`),x=(R,E,M,O,L)=>({fontFamily:r,fontWeight:R,fontSize:b(E),lineHeight:M,...r===u1?{letterSpacing:`${Y5(O/E)}em`}:{},...L,...p}),C={h1:x(l,96,1.167,-1.5),h2:x(l,60,1.2,-.5),h3:x(s,48,1.167,0),h4:x(s,34,1.235,.25),h5:x(s,24,1.334,0),h6:x(u,20,1.6,.15),subtitle1:x(s,16,1.75,.15),subtitle2:x(u,14,1.57,.1),body1:x(s,16,1.5,.15),body2:x(s,14,1.43,.15),button:x(u,14,1.75,.4,s1),caption:x(s,12,1.66,.4),overline:x(s,12,2.66,1,s1),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return gn({htmlFontSize:d,pxToRem:b,fontFamily:r,fontSize:a,fontWeightLight:l,fontWeightRegular:s,fontWeightMedium:u,fontWeightBold:f,...C},g,{clone:!1})}const G5=.2,X5=.14,W5=.12;function Ot(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${G5})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${X5})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${W5})`].join(",")}const K5=["none",Ot(0,2,1,-1,0,1,1,0,0,1,3,0),Ot(0,3,1,-2,0,2,2,0,0,1,5,0),Ot(0,3,3,-2,0,3,4,0,0,1,8,0),Ot(0,2,4,-1,0,4,5,0,0,1,10,0),Ot(0,3,5,-1,0,5,8,0,0,1,14,0),Ot(0,3,5,-1,0,6,10,0,0,1,18,0),Ot(0,4,5,-2,0,7,10,1,0,2,16,1),Ot(0,5,5,-3,0,8,10,1,0,3,14,2),Ot(0,5,6,-3,0,9,12,1,0,3,16,2),Ot(0,6,6,-3,0,10,14,1,0,4,18,3),Ot(0,6,7,-4,0,11,15,1,0,4,20,3),Ot(0,7,8,-4,0,12,17,2,0,5,22,4),Ot(0,7,8,-4,0,13,19,2,0,5,24,4),Ot(0,7,9,-4,0,14,21,2,0,5,26,4),Ot(0,8,9,-5,0,15,22,2,0,6,28,5),Ot(0,8,10,-5,0,16,24,2,0,6,30,5),Ot(0,8,11,-5,0,17,26,2,0,6,32,5),Ot(0,9,11,-5,0,18,28,2,0,7,34,6),Ot(0,9,12,-6,0,19,29,2,0,7,36,6),Ot(0,10,13,-6,0,20,31,3,0,8,38,7),Ot(0,10,13,-6,0,21,33,3,0,8,40,7),Ot(0,10,14,-6,0,22,35,3,0,8,42,7),Ot(0,11,14,-7,0,23,36,3,0,9,44,8),Ot(0,11,15,-7,0,24,38,3,0,9,46,8)],Q5={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)"},Z5={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function c1(e){return`${Math.round(e)}ms`}function J5(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function eM(e){const t={...Q5,...e.easing},r={...Z5,...e.duration};return{getAutoHeightDuration:J5,create:(l=["all"],s={})=>{const{duration:u=r.standard,easing:f=t.easeInOut,delay:d=0,...p}=s;return(Array.isArray(l)?l:[l]).map(m=>`${m} ${typeof u=="string"?u:c1(u)} ${f} ${typeof d=="string"?d:c1(d)}`).join(",")},...e,easing:t,duration:r}}const tM={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function nM(e){return Lr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function QS(e={}){const t={...e};function r(a){const l=Object.entries(a);for(let s=0;s<l.length;s++){const[u,f]=l[s];!nM(f)||u.startsWith("unstable_")?delete a[u]:Lr(f)&&(a[u]={...f},r(a[u]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';

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

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

export default theme;`}function f1(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const rM=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let a=0;a<t.length;a+=1)r+=+t[a];return r};function iM(e){Object.assign(e,{alpha(t,r){const a=this||e;return a.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:a.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:Bc(t,rM(r))},lighten(t,r){const a=this||e;return a.colorSpace?`color-mix(in ${a.colorSpace}, ${t}, #fff ${f1(r)})`:hf(t,r)},darken(t,r){const a=this||e;return a.colorSpace?`color-mix(in ${a.colorSpace}, ${t}, #000 ${f1(r)})`:pf(t,r)}})}function Ph(e={},...t){const{breakpoints:r,mixins:a={},spacing:l,palette:s={},transitions:u={},typography:f={},shape:d,colorSpace:p,...m}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(li(20));const g=Nm({...s,colorSpace:p}),v=Om(e);let b=gn(v,{mixins:V5(v.breakpoints,a),palette:g,shadows:K5.slice(),typography:KS(g,f),transitions:eM(u),zIndex:{...tM}});return b=gn(b,m),b=t.reduce((x,C)=>gn(x,C),b),b.unstable_sxConfig={...Ps,...m?.unstable_sxConfig},b.unstable_sx=function(C){return Bi({sx:C,theme:this})},b.toRuntimeSource=QS,iM(b),b}function Nh(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 aM=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=Nh(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function ZS(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function JS(e){return e==="dark"?aM:[]}function oM(e){const{palette:t={mode:"light"},opacity:r,overlays:a,colorSpace:l,...s}=e,u=Nm({...t,colorSpace:l});return{palette:u,opacity:{...ZS(u.mode),...r},overlays:a||JS(u.mode),...s}}function lM(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 sM=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],uM=e=>(t,r)=>{const a=e.rootSelector||":root",l=e.colorSchemeSelector;let s=l;if(l==="class"&&(s=".%s"),l==="data"&&(s="[data-%s]"),l?.startsWith("data-")&&!l.includes("%s")&&(s=`[${l}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const u={};return sM(e.cssVarPrefix).forEach(f=>{u[f]=r[f],delete r[f]}),s==="media"?{[a]:r,"@media (prefers-color-scheme: dark)":{[a]:u}}:s?{[s.replace("%s",t)]:u,[`${a}, ${s.replace("%s",t)}`]:r}:{[a]:{...r,...u}}}if(s&&s!=="media")return`${a}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[a]:r}};if(s)return s.replace("%s",String(t))}return a};function cM(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function ae(e,t,r){!e[t]&&r&&(e[t]=r)}function is(e){return typeof e!="string"||!e.startsWith("hsl")?e:HS(e)}function ni(e,t){`${t}Channel`in e||(e[`${t}Channel`]=rs(is(e[t])))}function fM(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Mr=e=>{try{return e()}catch{}},dM=(e="mui")=>z5(e);function th(e,t,r,a,l){if(!r)return;r=r===!0?{}:r;const s=l==="dark"?"dark":"light";if(!a){t[l]=oM({...r,palette:{mode:s,...r?.palette},colorSpace:e});return}const{palette:u,...f}=Ph({...a,palette:{mode:s,...r?.palette},colorSpace:e});return t[l]={...r,palette:u,opacity:{...ZS(s),...r?.opacity},overlays:r?.overlays||JS(s)},f}function pM(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:a,disableCssColorScheme:l=!1,cssVarPrefix:s="mui",nativeColor:u=!1,shouldSkipGeneratingVar:f=lM,colorSchemeSelector:d=r.light&&r.dark?"media":void 0,rootSelector:p=":root",...m}=e,g=Object.keys(r)[0],v=a||(r.light&&g!=="light"?"light":g),b=dM(s),{[v]:x,light:C,dark:R,...E}=r,M={...E};let O=x;if((v==="dark"&&!("dark"in r)||v==="light"&&!("light"in r))&&(O=!0),!O)throw new Error(li(21,v));let L;u&&(L="oklch");const j=th(L,M,O,m,v);C&&!M.light&&th(L,M,C,void 0,"light"),R&&!M.dark&&th(L,M,R,void 0,"dark");let z={defaultColorScheme:v,...j,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:p,getCssVar:b,colorSchemes:M,font:{...q5(j.typography),...j.font},spacing:fM(m.spacing)};Object.keys(z.colorSchemes).forEach(q=>{const A=z.colorSchemes[q].palette,B=U=>{const _=U.split("-"),G=_[1],Z=_[2];return b(U,A[G][Z])};A.mode==="light"&&(ae(A.common,"background","#fff"),ae(A.common,"onBackground","#000")),A.mode==="dark"&&(ae(A.common,"background","#000"),ae(A.common,"onBackground","#fff"));function H(U,_,G){if(L){let Z;return U===ca&&(Z=`transparent ${((1-G)*100).toFixed(0)}%`),U===bt&&(Z=`#000 ${(G*100).toFixed(0)}%`),U===vt&&(Z=`#fff ${(G*100).toFixed(0)}%`),`color-mix(in ${L}, ${_}, ${Z})`}return U(_,G)}if(cM(A,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),A.mode==="light"){ae(A.Alert,"errorColor",H(bt,A.error.light,.6)),ae(A.Alert,"infoColor",H(bt,A.info.light,.6)),ae(A.Alert,"successColor",H(bt,A.success.light,.6)),ae(A.Alert,"warningColor",H(bt,A.warning.light,.6)),ae(A.Alert,"errorFilledBg",B("palette-error-main")),ae(A.Alert,"infoFilledBg",B("palette-info-main")),ae(A.Alert,"successFilledBg",B("palette-success-main")),ae(A.Alert,"warningFilledBg",B("palette-warning-main")),ae(A.Alert,"errorFilledColor",Mr(()=>A.getContrastText(A.error.main))),ae(A.Alert,"infoFilledColor",Mr(()=>A.getContrastText(A.info.main))),ae(A.Alert,"successFilledColor",Mr(()=>A.getContrastText(A.success.main))),ae(A.Alert,"warningFilledColor",Mr(()=>A.getContrastText(A.warning.main))),ae(A.Alert,"errorStandardBg",H(vt,A.error.light,.9)),ae(A.Alert,"infoStandardBg",H(vt,A.info.light,.9)),ae(A.Alert,"successStandardBg",H(vt,A.success.light,.9)),ae(A.Alert,"warningStandardBg",H(vt,A.warning.light,.9)),ae(A.Alert,"errorIconColor",B("palette-error-main")),ae(A.Alert,"infoIconColor",B("palette-info-main")),ae(A.Alert,"successIconColor",B("palette-success-main")),ae(A.Alert,"warningIconColor",B("palette-warning-main")),ae(A.AppBar,"defaultBg",B("palette-grey-100")),ae(A.Avatar,"defaultBg",B("palette-grey-400")),ae(A.Button,"inheritContainedBg",B("palette-grey-300")),ae(A.Button,"inheritContainedHoverBg",B("palette-grey-A100")),ae(A.Chip,"defaultBorder",B("palette-grey-400")),ae(A.Chip,"defaultAvatarColor",B("palette-grey-700")),ae(A.Chip,"defaultIconColor",B("palette-grey-700")),ae(A.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ae(A.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ae(A.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ae(A.LinearProgress,"primaryBg",H(vt,A.primary.main,.62)),ae(A.LinearProgress,"secondaryBg",H(vt,A.secondary.main,.62)),ae(A.LinearProgress,"errorBg",H(vt,A.error.main,.62)),ae(A.LinearProgress,"infoBg",H(vt,A.info.main,.62)),ae(A.LinearProgress,"successBg",H(vt,A.success.main,.62)),ae(A.LinearProgress,"warningBg",H(vt,A.warning.main,.62)),ae(A.Skeleton,"bg",L?H(ca,A.text.primary,.11):`rgba(${B("palette-text-primaryChannel")} / 0.11)`),ae(A.Slider,"primaryTrack",H(vt,A.primary.main,.62)),ae(A.Slider,"secondaryTrack",H(vt,A.secondary.main,.62)),ae(A.Slider,"errorTrack",H(vt,A.error.main,.62)),ae(A.Slider,"infoTrack",H(vt,A.info.main,.62)),ae(A.Slider,"successTrack",H(vt,A.success.main,.62)),ae(A.Slider,"warningTrack",H(vt,A.warning.main,.62));const U=L?H(bt,A.background.default,.6825):sc(A.background.default,.8);ae(A.SnackbarContent,"bg",U),ae(A.SnackbarContent,"color",Mr(()=>L?Lh.text.primary:A.getContrastText(U))),ae(A.SpeedDialAction,"fabHoverBg",sc(A.background.paper,.15)),ae(A.StepConnector,"border",B("palette-grey-400")),ae(A.StepContent,"border",B("palette-grey-400")),ae(A.Switch,"defaultColor",B("palette-common-white")),ae(A.Switch,"defaultDisabledColor",B("palette-grey-100")),ae(A.Switch,"primaryDisabledColor",H(vt,A.primary.main,.62)),ae(A.Switch,"secondaryDisabledColor",H(vt,A.secondary.main,.62)),ae(A.Switch,"errorDisabledColor",H(vt,A.error.main,.62)),ae(A.Switch,"infoDisabledColor",H(vt,A.info.main,.62)),ae(A.Switch,"successDisabledColor",H(vt,A.success.main,.62)),ae(A.Switch,"warningDisabledColor",H(vt,A.warning.main,.62)),ae(A.TableCell,"border",H(vt,H(ca,A.divider,1),.88)),ae(A.Tooltip,"bg",H(ca,A.grey[700],.92))}if(A.mode==="dark"){ae(A.Alert,"errorColor",H(vt,A.error.light,.6)),ae(A.Alert,"infoColor",H(vt,A.info.light,.6)),ae(A.Alert,"successColor",H(vt,A.success.light,.6)),ae(A.Alert,"warningColor",H(vt,A.warning.light,.6)),ae(A.Alert,"errorFilledBg",B("palette-error-dark")),ae(A.Alert,"infoFilledBg",B("palette-info-dark")),ae(A.Alert,"successFilledBg",B("palette-success-dark")),ae(A.Alert,"warningFilledBg",B("palette-warning-dark")),ae(A.Alert,"errorFilledColor",Mr(()=>A.getContrastText(A.error.dark))),ae(A.Alert,"infoFilledColor",Mr(()=>A.getContrastText(A.info.dark))),ae(A.Alert,"successFilledColor",Mr(()=>A.getContrastText(A.success.dark))),ae(A.Alert,"warningFilledColor",Mr(()=>A.getContrastText(A.warning.dark))),ae(A.Alert,"errorStandardBg",H(bt,A.error.light,.9)),ae(A.Alert,"infoStandardBg",H(bt,A.info.light,.9)),ae(A.Alert,"successStandardBg",H(bt,A.success.light,.9)),ae(A.Alert,"warningStandardBg",H(bt,A.warning.light,.9)),ae(A.Alert,"errorIconColor",B("palette-error-main")),ae(A.Alert,"infoIconColor",B("palette-info-main")),ae(A.Alert,"successIconColor",B("palette-success-main")),ae(A.Alert,"warningIconColor",B("palette-warning-main")),ae(A.AppBar,"defaultBg",B("palette-grey-900")),ae(A.AppBar,"darkBg",B("palette-background-paper")),ae(A.AppBar,"darkColor",B("palette-text-primary")),ae(A.Avatar,"defaultBg",B("palette-grey-600")),ae(A.Button,"inheritContainedBg",B("palette-grey-800")),ae(A.Button,"inheritContainedHoverBg",B("palette-grey-700")),ae(A.Chip,"defaultBorder",B("palette-grey-700")),ae(A.Chip,"defaultAvatarColor",B("palette-grey-300")),ae(A.Chip,"defaultIconColor",B("palette-grey-300")),ae(A.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ae(A.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ae(A.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ae(A.LinearProgress,"primaryBg",H(bt,A.primary.main,.5)),ae(A.LinearProgress,"secondaryBg",H(bt,A.secondary.main,.5)),ae(A.LinearProgress,"errorBg",H(bt,A.error.main,.5)),ae(A.LinearProgress,"infoBg",H(bt,A.info.main,.5)),ae(A.LinearProgress,"successBg",H(bt,A.success.main,.5)),ae(A.LinearProgress,"warningBg",H(bt,A.warning.main,.5)),ae(A.Skeleton,"bg",L?H(ca,A.text.primary,.13):`rgba(${B("palette-text-primaryChannel")} / 0.13)`),ae(A.Slider,"primaryTrack",H(bt,A.primary.main,.5)),ae(A.Slider,"secondaryTrack",H(bt,A.secondary.main,.5)),ae(A.Slider,"errorTrack",H(bt,A.error.main,.5)),ae(A.Slider,"infoTrack",H(bt,A.info.main,.5)),ae(A.Slider,"successTrack",H(bt,A.success.main,.5)),ae(A.Slider,"warningTrack",H(bt,A.warning.main,.5));const U=L?H(vt,A.background.default,.985):sc(A.background.default,.98);ae(A.SnackbarContent,"bg",U),ae(A.SnackbarContent,"color",Mr(()=>L?XS.text.primary:A.getContrastText(U))),ae(A.SpeedDialAction,"fabHoverBg",sc(A.background.paper,.15)),ae(A.StepConnector,"border",B("palette-grey-600")),ae(A.StepContent,"border",B("palette-grey-600")),ae(A.Switch,"defaultColor",B("palette-grey-300")),ae(A.Switch,"defaultDisabledColor",B("palette-grey-600")),ae(A.Switch,"primaryDisabledColor",H(bt,A.primary.main,.55)),ae(A.Switch,"secondaryDisabledColor",H(bt,A.secondary.main,.55)),ae(A.Switch,"errorDisabledColor",H(bt,A.error.main,.55)),ae(A.Switch,"infoDisabledColor",H(bt,A.info.main,.55)),ae(A.Switch,"successDisabledColor",H(bt,A.success.main,.55)),ae(A.Switch,"warningDisabledColor",H(bt,A.warning.main,.55)),ae(A.TableCell,"border",H(bt,H(ca,A.divider,1),.68)),ae(A.Tooltip,"bg",H(ca,A.grey[700],.92))}ni(A.background,"default"),ni(A.background,"paper"),ni(A.common,"background"),ni(A.common,"onBackground"),ni(A,"divider"),Object.keys(A).forEach(U=>{const _=A[U];U!=="tonalOffset"&&_&&typeof _=="object"&&(_.main&&ae(A[U],"mainChannel",rs(is(_.main))),_.light&&ae(A[U],"lightChannel",rs(is(_.light))),_.dark&&ae(A[U],"darkChannel",rs(is(_.dark))),_.contrastText&&ae(A[U],"contrastTextChannel",rs(is(_.contrastText))),U==="text"&&(ni(A[U],"primary"),ni(A[U],"secondary")),U==="action"&&(_.active&&ni(A[U],"active"),_.selected&&ni(A[U],"selected")))})}),z=t.reduce((q,A)=>gn(q,A),z);const I={prefix:s,disableCssColorScheme:l,shouldSkipGeneratingVar:f,getSelector:uM(z),enableContrastVars:u},{vars:V,generateThemeVars:F,generateStyleSheets:N}=L5(z,I);return z.vars=V,Object.entries(z.colorSchemes[z.defaultColorScheme]).forEach(([q,A])=>{z[q]=A}),z.generateThemeVars=F,z.generateStyleSheets=N,z.generateSpacing=function(){return DS(m.spacing,Am(this))},z.getColorSchemeSelector=P5(d),z.spacing=z.generateSpacing(),z.shouldSkipGeneratingVar=f,z.unstable_sxConfig={...Ps,...m?.unstable_sxConfig},z.unstable_sx=function(A){return Bi({sx:A,theme:this})},z.toRuntimeSource=QS,z}function d1(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Nm({...r===!0?{}:r.palette,mode:t})})}function _s(e={},...t){const{palette:r,cssVariables:a=!1,colorSchemes:l=r?void 0:{light:!0},defaultColorScheme:s=r?.mode,...u}=e,f=s||"light",d=l?.[f],p={...l,...r?{[f]:{...typeof d!="boolean"&&d,palette:r}}:void 0};if(a===!1){if(!("colorSchemes"in e))return Ph(e,...t);let m=r;"palette"in e||p[f]&&(p[f]!==!0?m=p[f].palette:f==="dark"&&(m={mode:"dark"}));const g=Ph({...e,palette:m},...t);return g.defaultColorScheme=f,g.colorSchemes=p,g.palette.mode==="light"&&(g.colorSchemes.light={...p.light!==!0&&p.light,palette:g.palette},d1(g,"dark",p.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:g.palette},d1(g,"light",p.light)),g}return!r&&!("light"in p)&&f==="light"&&(p.light=!0),pM({...u,colorSchemes:p,defaultColorScheme:f,...typeof a!="boolean"&&a},...t)}const _m=_s();function en(){const e=zm(_m);return e[yr]||e}function ew(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Cn=e=>ew(e)&&e!=="classes",xe=ZA({themeId:yr,defaultTheme:_m,rootShouldForwardProp:Cn});function hM({theme:e,...t}){const r=yr in e?e[yr]:void 0;return w.jsx(VS,{...t,themeId:r?yr:void 0,theme:r||e})}const uc={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:mM}=O5({themeId:yr,theme:()=>_s({cssVariables:!0}),colorSchemeStorageKey:uc.colorSchemeStorageKey,modeStorageKey:uc.modeStorageKey,defaultColorScheme:{light:uc.defaultLightColorScheme,dark:uc.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:KS(e.palette,e.typography)};return t.unstable_sx=function(a){return Bi({sx:a,theme:this})},t}}),gM=mM;function yM({theme:e,...t}){const r=S.useMemo(()=>{if(typeof e=="function")return e;const a=yr in e?e[yr]:e;return"colorSchemes"in a?null:"vars"in a?e:{...e,vars:null}},[e]);return r?w.jsx(hM,{theme:r,...t}):w.jsx(gM,{theme:e,...t})}const tw="760px",nw={app:{isMobileQuery:e=>e.breakpoints.down(960)},shape:{borderRadius:8},typography:{fontFamily:'Inter, "Helvetica Neue", Arial, sans-serif',button:{fontWeight:500,fontSize:"14px",textTransform:"none",letterSpacing:"normal",lineHeight:"normal"},h1:{fontWeight:500,fontSize:"36px",lineHeight:"38.4px",letterSpacing:"0.1px"},p:{fontSize:"16px",fontWeight:400,wordBreak:"break-word",lineHeight:"26px"}}},rw=e=>({components:{MuiPaper:{styleOverrides:{root:{"--Paper-overlay":"none !important",background:e.background.card}}},MuiButton:{styleOverrides:{root:{color:e.text.tertiary}}},MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:e.tooltip.background,color:e.tooltip.text}}},MuiTypography:{styleOverrides:{h2:{fontWeight:500,fontSize:"26px",lineHeight:"28px",letterSpacing:"0.1px",color:e.text.tertiary},h3:{fontWeight:500,fontSize:"24px",lineHeight:"28px",letterSpacing:"0.1px",color:e.text.tertiary},h4:{fontWeight:500,fontSize:"14px",lineHeight:"20px",letterSpacing:"normal",color:e.text.tertiary},h5:{fontWeight:500,fontSize:"14px",lineHeight:"20px",letterSpacing:"normal",color:e.text.h5},h6:{fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:"0.1px",color:e.text.tertiary}}}}}),p1=e=>_s({...nw,palette:e.theme.lightPalette,...rw(e.theme.lightPalette)}),h1=e=>_s({...nw,palette:e.theme.darkPalette,...rw(e.theme.darkPalette)}),Ht=S.createContext(),Bm=S.createContext(),wr=S.createContext(),mf=S.createContext();function bM({config:e,children:t}){const[r,a]=S.useState("system"),l=u=>{a(u)},s=S.useCallback(()=>e?r=="light"?p1(e):r=="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches?h1(e):p1(e):void 0,[r]);return w.jsx(Bm.Provider,{value:{theme:r,setTheme:l,config:e},children:w.jsx(yM,{theme:s(),children:t})})}function vM({children:e}){const[t,r]=S.useState();let a=async()=>{try{if(sessionStorage.getItem("config")){r(JSON.parse(sessionStorage.getItem("config")));return}let l=await UT();sessionStorage.setItem("config",JSON.stringify(l)),r(l)}catch(l){console.error(l),alert("Some error has occured, Please try again later")}};return S.useEffect(()=>{a()},[]),t?w.jsx(bM,{config:t,children:e}):null}const xM=Ge("MuiBox",["root"]),SM=_s(),ke=GA({themeId:yr,defaultTheme:SM,defaultClassName:xM.root,generateClassName:PS.generate});function wM(e){return w.jsx(jS,{...e,defaultTheme:_m,themeId:yr})}function Im(e){return function(r){return w.jsx(wM,{styles:typeof e=="function"?a=>e({theme:a,...r}):e})}}function CM(){return LS}function Qe(e){return b5(e)}const _h=typeof Im({})=="function",kM=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),EM=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}}),iw=(e,t=!1)=>{const r={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([s,u])=>{const f=e.getColorSchemeSelector(s);f.startsWith("@")?r[f]={":root":{colorScheme:u.palette?.mode}}:r[f.replace(/\s*&/,"")]={colorScheme:u.palette?.mode}});let a={html:kM(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...EM(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...r};const l=e.components?.MuiCssBaseline?.styleOverrides;return l&&(a=[a,l]),a},Mc="mui-ecs",TM=e=>{const t=iw(e,!1),r=Array.isArray(t)?t[0]:t;return!e.vars&&r&&(r.html[`:root:has(${Mc})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,l])=>{const s=e.getColorSchemeSelector(a);s.startsWith("@")?r[s]={[`:root:not(:has(.${Mc}))`]:{colorScheme:l.palette?.mode}}:r[s.replace(/\s*&/,"")]={[`&:not(:has(.${Mc}))`]:{colorScheme:l.palette?.mode}}}),t},RM=Im(_h?({theme:e,enableColorScheme:t})=>iw(e,t):({theme:e})=>TM(e));function AM(e){const t=Qe({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:a=!1}=t;return w.jsxs(S.Fragment,{children:[_h&&w.jsx(RM,{enableColorScheme:a}),!_h&&!a&&w.jsx("span",{className:Mc,style:{display:"none"}}),r]})}function m1(...e){return e.reduce((t,r)=>r==null?t:function(...l){t.apply(this,l),r.apply(this,l)},()=>{})}const Ye=w5;function MM(e){return nt("MuiSvgIcon",e)}Ge("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const OM=e=>{const{color:t,fontSize:r,classes:a}=e,l={root:["root",t!=="inherit"&&`color${Te(t)}`,`fontSize${Te(r)}`]};return rt(l,MM,a)},zM=xe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Te(r.color)}`],t[`fontSize${Te(r.fontSize)}`]]}})(Ye(({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}}]}))),Bh=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiSvgIcon"}),{children:l,className:s,color:u="inherit",component:f="svg",fontSize:d="medium",htmlColor:p,inheritViewBox:m=!1,titleAccess:g,viewBox:v="0 0 24 24",...b}=a,x=S.isValidElement(l)&&l.type==="svg",C={...a,color:u,component:f,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:v,hasSvgAsChild:x},R={};m||(R.viewBox=v);const E=OM(C);return w.jsxs(zM,{as:f,className:je(E.root,s),focusable:"false",color:p,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:r,...R,...b,...x&&l.props,ownerState:C,children:[x?l.props.children:l,g?w.jsx("title",{children:g}):null]})});Bh.muiName="SvgIcon";function ct(e,t){function r(a,l){return w.jsx(Bh,{"data-testid":void 0,ref:l,...a,children:e})}return r.muiName=Bh.muiName,S.memo(S.forwardRef(r))}function $m(e,t=166){let r;function a(...l){const s=()=>{e.apply(this,l)};clearTimeout(r),r=setTimeout(s,t)}return a.clear=()=>{clearTimeout(r)},a}function Kt(e){return e&&e.ownerDocument||document}function Sn(e){return Kt(e).defaultView||window}function g1(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Ih(e){const{controlled:t,default:r,name:a,state:l="value"}=e,{current:s}=S.useRef(t!==void 0),[u,f]=S.useState(r),d=s?t:u,p=S.useCallback(m=>{s||f(m)},[]);return[d,p]}function wn(e){const t=S.useRef(e);return yn(()=>{t.current=e}),S.useRef((...r)=>(0,t.current)(...r)).current}function Lt(...e){const t=S.useRef(void 0),r=S.useCallback(a=>{const l=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const u=s,f=u(a);return typeof f=="function"?f:()=>{u(null)}}return s.current=a,()=>{s.current=null}});return()=>{l.forEach(s=>s?.())}},e);return S.useMemo(()=>e.every(a=>a==null)?null:a=>{t.current&&(t.current(),t.current=void 0),a!=null&&(t.current=r(a))},e)}function DM(e,t){const r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof t=="function"}function Ic(e,t){if(!e)return t;function r(u,f){const d={};return Object.keys(f).forEach(p=>{DM(p,f[p])&&typeof u[p]=="function"&&(d[p]=(...m)=>{u[p](...m),f[p](...m)})}),d}if(typeof e=="function"||typeof t=="function")return u=>{const f=typeof t=="function"?t(u):t,d=typeof e=="function"?e({...u,...f}):e,p=je(u?.className,f?.className,d?.className),m=r(d,f);return{...f,...d,...m,...!!p&&{className:p},...f?.style&&d?.style&&{style:{...f.style,...d.style}},...f?.sx&&d?.sx&&{sx:[...Array.isArray(f.sx)?f.sx:[f.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const a=t,l=r(e,a),s=je(a?.className,e?.className);return{...t,...e,...l,...!!s&&{className:s},...a?.style&&e?.style&&{style:{...a.style,...e.style}},...a?.sx&&e?.sx&&{sx:[...Array.isArray(a.sx)?a.sx:[a.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function aw(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function $h(e,t){return $h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},$h(e,t)}function ow(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$h(e,t)}const y1={disabled:!1},$c=gr.createContext(null);var jM=function(t){return t.scrollTop},as="unmounted",ma="exited",ga="entering",So="entered",Hh="exiting",Cr=(function(e){ow(t,e);function t(a,l){var s;s=e.call(this,a,l)||this;var u=l,f=u&&!u.isMounting?a.enter:a.appear,d;return s.appearStatus=null,a.in?f?(d=ma,s.appearStatus=ga):d=So:a.unmountOnExit||a.mountOnEnter?d=as:d=ma,s.state={status:d},s.nextCallback=null,s}t.getDerivedStateFromProps=function(l,s){var u=l.in;return u&&s.status===as?{status:ma}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(l){var s=null;if(l!==this.props){var u=this.state.status;this.props.in?u!==ga&&u!==So&&(s=ga):(u===ga||u===So)&&(s=Hh)}this.updateStatus(!1,s)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var l=this.props.timeout,s,u,f;return s=u=f=l,l!=null&&typeof l!="number"&&(s=l.exit,u=l.enter,f=l.appear!==void 0?l.appear:u),{exit:s,enter:u,appear:f}},r.updateStatus=function(l,s){if(l===void 0&&(l=!1),s!==null)if(this.cancelNextCallback(),s===ga){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:oc.findDOMNode(this);u&&jM(u)}this.performEnter(l)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ma&&this.setState({status:as})},r.performEnter=function(l){var s=this,u=this.props.enter,f=this.context?this.context.isMounting:l,d=this.props.nodeRef?[f]:[oc.findDOMNode(this),f],p=d[0],m=d[1],g=this.getTimeouts(),v=f?g.appear:g.enter;if(!l&&!u||y1.disabled){this.safeSetState({status:So},function(){s.props.onEntered(p)});return}this.props.onEnter(p,m),this.safeSetState({status:ga},function(){s.props.onEntering(p,m),s.onTransitionEnd(v,function(){s.safeSetState({status:So},function(){s.props.onEntered(p,m)})})})},r.performExit=function(){var l=this,s=this.props.exit,u=this.getTimeouts(),f=this.props.nodeRef?void 0:oc.findDOMNode(this);if(!s||y1.disabled){this.safeSetState({status:ma},function(){l.props.onExited(f)});return}this.props.onExit(f),this.safeSetState({status:Hh},function(){l.props.onExiting(f),l.onTransitionEnd(u.exit,function(){l.safeSetState({status:ma},function(){l.props.onExited(f)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(l,s){s=this.setNextCallback(s),this.setState(l,s)},r.setNextCallback=function(l){var s=this,u=!0;return this.nextCallback=function(f){u&&(u=!1,s.nextCallback=null,l(f))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},r.onTransitionEnd=function(l,s){this.setNextCallback(s);var u=this.props.nodeRef?this.props.nodeRef.current:oc.findDOMNode(this),f=l==null&&!this.props.addEndListener;if(!u||f){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],p=d[0],m=d[1];this.props.addEndListener(p,m)}l!=null&&setTimeout(this.nextCallback,l)},r.render=function(){var l=this.state.status;if(l===as)return null;var s=this.props,u=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var f=aw(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return gr.createElement($c.Provider,{value:null},typeof u=="function"?u(l,f):gr.cloneElement(gr.Children.only(u),f))},t})(gr.Component);Cr.contextType=$c;Cr.propTypes={};function bo(){}Cr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:bo,onEntering:bo,onEntered:bo,onExit:bo,onExiting:bo,onExited:bo};Cr.UNMOUNTED=as;Cr.EXITED=ma;Cr.ENTERING=ga;Cr.ENTERED=So;Cr.EXITING=Hh;function LM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hm(e,t){var r=function(s){return t&&S.isValidElement(s)?t(s):s},a=Object.create(null);return e&&S.Children.map(e,function(l){return l}).forEach(function(l){a[l.key]=r(l)}),a}function PM(e,t){e=e||{},t=t||{};function r(m){return m in t?t[m]:e[m]}var a=Object.create(null),l=[];for(var s in e)s in t?l.length&&(a[s]=l,l=[]):l.push(s);var u,f={};for(var d in t){if(a[d])for(u=0;u<a[d].length;u++){var p=a[d][u];f[a[d][u]]=r(p)}f[d]=r(d)}for(u=0;u<l.length;u++)f[l[u]]=r(l[u]);return f}function va(e,t,r){return r[t]!=null?r[t]:e.props[t]}function NM(e,t){return Hm(e.children,function(r){return S.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:va(r,"appear",e),enter:va(r,"enter",e),exit:va(r,"exit",e)})})}function _M(e,t,r){var a=Hm(e.children),l=PM(t,a);return Object.keys(l).forEach(function(s){var u=l[s];if(S.isValidElement(u)){var f=s in t,d=s in a,p=t[s],m=S.isValidElement(p)&&!p.props.in;d&&(!f||m)?l[s]=S.cloneElement(u,{onExited:r.bind(null,u),in:!0,exit:va(u,"exit",e),enter:va(u,"enter",e)}):!d&&f&&!m?l[s]=S.cloneElement(u,{in:!1}):d&&f&&S.isValidElement(p)&&(l[s]=S.cloneElement(u,{onExited:r.bind(null,u),in:p.props.in,exit:va(u,"exit",e),enter:va(u,"enter",e)}))}}),l}var BM=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},IM={component:"div",childFactory:function(t){return t}},Um=(function(e){ow(t,e);function t(a,l){var s;s=e.call(this,a,l)||this;var u=s.handleExited.bind(LM(s));return s.state={contextValue:{isMounting:!0},handleExited:u,firstRender:!0},s}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(l,s){var u=s.children,f=s.handleExited,d=s.firstRender;return{children:d?NM(l,f):_M(l,u,f),firstRender:!1}},r.handleExited=function(l,s){var u=Hm(this.props.children);l.key in u||(l.props.onExited&&l.props.onExited(s),this.mounted&&this.setState(function(f){var d=Pc({},f.children);return delete d[l.key],{children:d}}))},r.render=function(){var l=this.props,s=l.component,u=l.childFactory,f=aw(l,["component","childFactory"]),d=this.state.contextValue,p=BM(this.state.children).map(u);return delete f.appear,delete f.enter,delete f.exit,s===null?gr.createElement($c.Provider,{value:d},p):gr.createElement($c.Provider,{value:d},gr.createElement(s,f,p))},t})(gr.Component);Um.propTypes={};Um.defaultProps=IM;const b1={};function lw(e,t){const r=S.useRef(b1);return r.current===b1&&(r.current=e(t)),r}const $M=[];function HM(e){S.useEffect(e,$M)}class gf{static create(){return new gf}currentId=null;start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function xa(){const e=lw(gf.create).current;return HM(e.disposeEffect),e}const Fm=e=>e.scrollTop;function wa(e,t){const{timeout:r,easing:a,style:l={}}=e;return{duration:l.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:l.transitionTimingFunction??(typeof a=="object"?a[t.mode]:a),delay:l.transitionDelay}}function UM(e){return nt("MuiPaper",e)}Ge("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 FM=e=>{const{square:t,elevation:r,variant:a,classes:l}=e,s={root:["root",a,!t&&"rounded",a==="elevation"&&`elevation${r}`]};return rt(s,UM,l)},qM=xe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(Ye(({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)"}}]}))),qm=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiPaper"}),l=en(),{className:s,component:u="div",elevation:f=1,square:d=!1,variant:p="elevation",...m}=a,g={...a,component:u,elevation:f,square:d,variant:p},v=FM(g);return w.jsx(qM,{as:u,ownerState:g,className:je(v.root,s),ref:r,...m,style:{...p==="elevation"&&{"--Paper-shadow":(l.vars||l).shadows[f],...l.vars&&{"--Paper-overlay":l.vars.overlays?.[f]},...!l.vars&&l.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Bc("#fff",Nh(f))}, ${Bc("#fff",Nh(f))})`}},...m.style}})});function Mo(e){return typeof e=="string"}function sw(e,t,r){return e===void 0||Mo(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function uw(e,t,r){return typeof e=="function"?e(t,r):e}function Hc(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(a=>a.match(/^on[A-Z]/)&&typeof e[a]=="function"&&!t.includes(a)).forEach(a=>{r[a]=e[a]}),r}function v1(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function cw(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:a,externalForwardedProps:l,className:s}=e;if(!t){const b=je(r?.className,s,l?.className,a?.className),x={...r?.style,...l?.style,...a?.style},C={...r,...l,...a};return b.length>0&&(C.className=b),Object.keys(x).length>0&&(C.style=x),{props:C,internalRef:void 0}}const u=Hc({...l,...a}),f=v1(a),d=v1(l),p=t(u),m=je(p?.className,r?.className,s,l?.className,a?.className),g={...p?.style,...r?.style,...l?.style,...a?.style},v={...p,...r,...d,...f};return m.length>0&&(v.className=m),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:p.ref}}function at(e,t){const{className:r,elementType:a,ownerState:l,externalForwardedProps:s,internalForwardedProps:u,shouldForwardComponentProp:f=!1,...d}=t,{component:p,slots:m={[e]:void 0},slotProps:g={[e]:void 0},...v}=s,b=m[e]||a,x=uw(g[e],l),{props:{component:C,...R},internalRef:E}=cw({className:r,...d,externalForwardedProps:e==="root"?v:void 0,externalSlotProps:x}),M=Lt(E,x?.ref,t.ref),O=e==="root"?C||p:C,L=sw(b,{...e==="root"&&!p&&!m[e]&&u,...e!=="root"&&!m[e]&&u,...R,...O&&!f&&{as:O},...O&&f&&{component:O},ref:M},l);return[b,L]}function Uc(e){try{return e.matches(":focus-visible")}catch{}return!1}class Fc{static create(){return new Fc}static use(){const t=lw(Fc.create).current,[r,a]=S.useState(!1);return t.shouldMount=r,t.setShouldMount=a,S.useEffect(t.mountEffect,[r]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=YM(),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 VM(){return Fc.use()}function YM(){let e,t;const r=new Promise((a,l)=>{e=a,t=l});return r.resolve=e,r.reject=t,r}function GM(e){const{className:t,classes:r,pulsate:a=!1,rippleX:l,rippleY:s,rippleSize:u,in:f,onExited:d,timeout:p}=e,[m,g]=S.useState(!1),v=je(t,r.ripple,r.rippleVisible,a&&r.ripplePulsate),b={width:u,height:u,top:-(u/2)+s,left:-(u/2)+l},x=je(r.child,m&&r.childLeaving,a&&r.childPulsate);return!f&&!m&&g(!0),S.useEffect(()=>{if(!f&&d!=null){const C=setTimeout(d,p);return()=>{clearTimeout(C)}}},[d,f,p]),w.jsx("span",{className:v,style:b,children:w.jsx("span",{className:x})})}const ar=Ge("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Uh=550,XM=80,WM=Hi`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

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

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

  50% {
    transform: scale(0.92);
  }

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

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

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

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

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

  & .${ar.childPulsate} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${QM};
    animation-duration: 2500ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`,e4=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiTouchRipple"}),{center:l=!1,classes:s={},className:u,...f}=a,[d,p]=S.useState([]),m=S.useRef(0),g=S.useRef(null);S.useEffect(()=>{g.current&&(g.current(),g.current=null)},[d]);const v=S.useRef(!1),b=xa(),x=S.useRef(null),C=S.useRef(null),R=S.useCallback(L=>{const{pulsate:j,rippleX:z,rippleY:I,rippleSize:V,cb:F}=L;p(N=>[...N,w.jsx(JM,{classes:{ripple:je(s.ripple,ar.ripple),rippleVisible:je(s.rippleVisible,ar.rippleVisible),ripplePulsate:je(s.ripplePulsate,ar.ripplePulsate),child:je(s.child,ar.child),childLeaving:je(s.childLeaving,ar.childLeaving),childPulsate:je(s.childPulsate,ar.childPulsate)},timeout:Uh,pulsate:j,rippleX:z,rippleY:I,rippleSize:V},m.current)]),m.current+=1,g.current=F},[s]),E=S.useCallback((L={},j={},z=()=>{})=>{const{pulsate:I=!1,center:V=l||j.pulsate,fakeElement:F=!1}=j;if(L?.type==="mousedown"&&v.current){v.current=!1;return}L?.type==="touchstart"&&(v.current=!0);const N=F?null:C.current,q=N?N.getBoundingClientRect():{width:0,height:0,left:0,top:0};let A,B,H;if(V||L===void 0||L.clientX===0&&L.clientY===0||!L.clientX&&!L.touches)A=Math.round(q.width/2),B=Math.round(q.height/2);else{const{clientX:U,clientY:_}=L.touches&&L.touches.length>0?L.touches[0]:L;A=Math.round(U-q.left),B=Math.round(_-q.top)}if(V)H=Math.sqrt((2*q.width**2+q.height**2)/3),H%2===0&&(H+=1);else{const U=Math.max(Math.abs((N?N.clientWidth:0)-A),A)*2+2,_=Math.max(Math.abs((N?N.clientHeight:0)-B),B)*2+2;H=Math.sqrt(U**2+_**2)}L?.touches?x.current===null&&(x.current=()=>{R({pulsate:I,rippleX:A,rippleY:B,rippleSize:H,cb:z})},b.start(XM,()=>{x.current&&(x.current(),x.current=null)})):R({pulsate:I,rippleX:A,rippleY:B,rippleSize:H,cb:z})},[l,R,b]),M=S.useCallback(()=>{E({},{pulsate:!0})},[E]),O=S.useCallback((L,j)=>{if(b.clear(),L?.type==="touchend"&&x.current){x.current(),x.current=null,b.start(0,()=>{O(L,j)});return}x.current=null,p(z=>z.length>0?z.slice(1):z),g.current=j},[b]);return S.useImperativeHandle(r,()=>({pulsate:M,start:E,stop:O}),[M,E,O]),w.jsx(ZM,{className:je(ar.root,s.root,u),ref:C,...f,children:w.jsx(Um,{component:null,exit:!0,children:d})})});function t4(e){return nt("MuiButtonBase",e)}const n4=Ge("MuiButtonBase",["root","disabled","focusVisible"]),r4=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:a,classes:l}=e,u=rt({root:["root",t&&"disabled",r&&"focusVisible"]},t4,l);return r&&a&&(u.root+=` ${a}`),u},i4=xe("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"},[`&.${n4.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),yf=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiButtonBase"}),{action:l,centerRipple:s=!1,children:u,className:f,component:d="button",disabled:p=!1,disableRipple:m=!1,disableTouchRipple:g=!1,focusRipple:v=!1,focusVisibleClassName:b,LinkComponent:x="a",onBlur:C,onClick:R,onContextMenu:E,onDragLeave:M,onFocus:O,onFocusVisible:L,onKeyDown:j,onKeyUp:z,onMouseDown:I,onMouseLeave:V,onMouseUp:F,onTouchEnd:N,onTouchMove:q,onTouchStart:A,tabIndex:B=0,TouchRippleProps:H,touchRippleRef:U,type:_,...G}=a,Z=S.useRef(null),J=VM(),k=Lt(J.ref,U),[K,re]=S.useState(!1);p&&K&&re(!1),S.useImperativeHandle(l,()=>({focusVisible:()=>{re(!0),Z.current.focus()}}),[]);const P=J.shouldMount&&!m&&!p;S.useEffect(()=>{K&&v&&!m&&J.pulsate()},[m,v,K,J]);const se=ri(J,"start",I,g),me=ri(J,"stop",E,g),fe=ri(J,"stop",M,g),ce=ri(J,"stop",F,g),ye=ri(J,"stop",Ee=>{K&&Ee.preventDefault(),V&&V(Ee)},g),be=ri(J,"start",A,g),ve=ri(J,"stop",N,g),pe=ri(J,"stop",q,g),ge=ri(J,"stop",Ee=>{Uc(Ee.target)||re(!1),C&&C(Ee)},!1),Ce=wn(Ee=>{Z.current||(Z.current=Ee.currentTarget),Uc(Ee.target)&&(re(!0),L&&L(Ee)),O&&O(Ee)}),de=()=>{const Ee=Z.current;return d&&d!=="button"&&!(Ee.tagName==="A"&&Ee.href)},Oe=wn(Ee=>{v&&!Ee.repeat&&K&&Ee.key===" "&&J.stop(Ee,()=>{J.start(Ee)}),Ee.target===Ee.currentTarget&&de()&&Ee.key===" "&&Ee.preventDefault(),j&&j(Ee),Ee.target===Ee.currentTarget&&de()&&Ee.key==="Enter"&&!p&&(Ee.preventDefault(),R&&R(Ee))}),ze=wn(Ee=>{v&&Ee.key===" "&&K&&!Ee.defaultPrevented&&J.stop(Ee,()=>{J.pulsate(Ee)}),z&&z(Ee),R&&Ee.target===Ee.currentTarget&&de()&&Ee.key===" "&&!Ee.defaultPrevented&&R(Ee)});let Me=d;Me==="button"&&(G.href||G.to)&&(Me=x);const qe={};Me==="button"?(qe.type=_===void 0?"button":_,qe.disabled=p):(!G.href&&!G.to&&(qe.role="button"),p&&(qe["aria-disabled"]=p));const Xe=Lt(r,Z),Ze={...a,centerRipple:s,component:d,disabled:p,disableRipple:m,disableTouchRipple:g,focusRipple:v,tabIndex:B,focusVisible:K},We=r4(Ze);return w.jsxs(i4,{as:Me,className:je(We.root,f),ownerState:Ze,onBlur:ge,onClick:R,onContextMenu:me,onFocus:Ce,onKeyDown:Oe,onKeyUp:ze,onMouseDown:se,onMouseLeave:ye,onMouseUp:ce,onDragLeave:fe,onTouchEnd:ve,onTouchMove:pe,onTouchStart:be,ref:Xe,tabIndex:p?-1:B,type:_,...qe,...G,children:[u,P?w.jsx(e4,{ref:k,center:s,...H}):null]})});function ri(e,t,r,a=!1){return wn(l=>(r&&r(l),a||e[t](l),!0))}function a4(e){return typeof e.main=="string"}function o4(e,t=[]){if(!a4(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function Pn(e=[]){return([,t])=>t&&o4(t,e)}function l4(e){return nt("MuiCircularProgress",e)}Ge("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Pi=44,Fh=Hi`
  0% {
    transform: rotate(0deg);
  }

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

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

  100% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: -126px;
  }
`,s4=typeof Fh!="string"?Io`
        animation: ${Fh} 1.4s linear infinite;
      `:null,u4=typeof qh!="string"?Io`
        animation: ${qh} 1.4s ease-in-out infinite;
      `:null,c4=e=>{const{classes:t,variant:r,color:a,disableShrink:l}=e,s={root:["root",r,`color${Te(a)}`],svg:["svg"],circle:["circle",`circle${Te(r)}`,l&&"circleDisableShrink"]};return rt(s,l4,t)},f4=xe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Te(r.color)}`]]}})(Ye(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:s4||{animation:`${Fh} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Pn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),d4=xe("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),p4=xe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Te(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(Ye(({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:u4||{animation:`${qh} 1.4s ease-in-out infinite`}}]}))),Vm=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiCircularProgress"}),{className:l,color:s="primary",disableShrink:u=!1,size:f=40,style:d,thickness:p=3.6,value:m=0,variant:g="indeterminate",...v}=a,b={...a,color:s,disableShrink:u,size:f,thickness:p,value:m,variant:g},x=c4(b),C={},R={},E={};if(g==="determinate"){const M=2*Math.PI*((Pi-p)/2);C.strokeDasharray=M.toFixed(3),E["aria-valuenow"]=Math.round(m),C.strokeDashoffset=`${((100-m)/100*M).toFixed(3)}px`,R.transform="rotate(-90deg)"}return w.jsx(f4,{className:je(x.root,l),style:{width:f,height:f,...R,...d},ownerState:b,ref:r,role:"progressbar",...E,...v,children:w.jsx(d4,{className:x.svg,ownerState:b,viewBox:`${Pi/2} ${Pi/2} ${Pi} ${Pi}`,children:w.jsx(p4,{className:x.circle,style:C,ownerState:b,cx:Pi,cy:Pi,r:(Pi-p)/2,fill:"none",strokeWidth:p})})})});function h4(e){return nt("MuiIconButton",e)}const x1=Ge("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),m4=e=>{const{classes:t,disabled:r,color:a,edge:l,size:s,loading:u}=e,f={root:["root",u&&"loading",r&&"disabled",a!=="default"&&`color${Te(a)}`,l&&`edge${Te(l)}`,`size${Te(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return rt(f,h4,t)},g4=xe(yf,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${Te(r.color)}`],r.edge&&t[`edge${Te(r.edge)}`],t[`size${Te(r.size)}`]]}})(Ye(({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}}]})),Ye(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Pn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Pn()).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)}}],[`&.${x1.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${x1.loading}`]:{color:"transparent"}}))),y4=xe("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"}}]})),On=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiIconButton"}),{edge:l=!1,children:s,className:u,color:f="default",disabled:d=!1,disableFocusRipple:p=!1,size:m="medium",id:g,loading:v=null,loadingIndicator:b,...x}=a,C=$o(g),R=b??w.jsx(Vm,{"aria-labelledby":C,color:"inherit",size:16}),E={...a,edge:l,color:f,disabled:d,disableFocusRipple:p,loading:v,loadingIndicator:R,size:m},M=m4(E);return w.jsxs(g4,{id:v?C:g,className:je(M.root,u),centerRipple:!0,focusRipple:!p,disabled:d||v,ref:r,...x,ownerState:E,children:[typeof v=="boolean"&&w.jsx("span",{className:M.loadingWrapper,style:{display:"contents"},children:w.jsx(y4,{className:M.loadingIndicator,ownerState:E,children:v&&R})}),s]})});function b4(e){return nt("MuiTypography",e)}const S1=Ge("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),v4={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},x4=CM(),S4=e=>{const{align:t,gutterBottom:r,noWrap:a,paragraph:l,variant:s,classes:u}=e,f={root:["root",s,e.align!=="inherit"&&`align${Te(t)}`,r&&"gutterBottom",a&&"noWrap",l&&"paragraph"]};return rt(f,b4,u)},w4=xe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Te(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Ye(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,r])=>t!=="inherit"&&r&&typeof r=="object").map(([t,r])=>({props:{variant:t},style:r})),...Object.entries(e.palette).filter(Pn()).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${Te(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}}]}))),w1={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},it=S.forwardRef(function(t,r){const{color:a,...l}=Qe({props:t,name:"MuiTypography"}),s=!v4[a],u=x4({...l,...s&&{color:a}}),{align:f="inherit",className:d,component:p,gutterBottom:m=!1,noWrap:g=!1,paragraph:v=!1,variant:b="body1",variantMapping:x=w1,...C}=u,R={...u,align:f,color:a,className:d,component:p,gutterBottom:m,noWrap:g,paragraph:v,variant:b,variantMapping:x},E=p||(v?"p":x[b]||w1[b])||"span",M=S4(R);return w.jsx(w4,{as:E,ref:r,className:je(M.root,d),...C,ownerState:R,style:{...f!=="inherit"&&{"--Typography-textAlign":f},...C.style}})});var zn="top",ur="bottom",cr="right",Dn="left",Ym="auto",Bs=[zn,ur,cr,Dn],Oo="start",Ss="end",C4="clippingParents",fw="viewport",Yl="popper",k4="reference",C1=Bs.reduce(function(e,t){return e.concat([t+"-"+Oo,t+"-"+Ss])},[]),dw=[].concat(Bs,[Ym]).reduce(function(e,t){return e.concat([t,t+"-"+Oo,t+"-"+Ss])},[]),E4="beforeRead",T4="read",R4="afterRead",A4="beforeMain",M4="main",O4="afterMain",z4="beforeWrite",D4="write",j4="afterWrite",L4=[E4,T4,R4,A4,M4,O4,z4,D4,j4];function Br(e){return e?(e.nodeName||"").toLowerCase():null}function Xn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ca(e){var t=Xn(e).Element;return e instanceof t||e instanceof Element}function sr(e){var t=Xn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Gm(e){if(typeof ShadowRoot>"u")return!1;var t=Xn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function P4(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var a=t.styles[r]||{},l=t.attributes[r]||{},s=t.elements[r];!sr(s)||!Br(s)||(Object.assign(s.style,a),Object.keys(l).forEach(function(u){var f=l[u];f===!1?s.removeAttribute(u):s.setAttribute(u,f===!0?"":f)}))})}function N4(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(a){var l=t.elements[a],s=t.attributes[a]||{},u=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:r[a]),f=u.reduce(function(d,p){return d[p]="",d},{});!sr(l)||!Br(l)||(Object.assign(l.style,f),Object.keys(s).forEach(function(d){l.removeAttribute(d)}))})}}const _4={name:"applyStyles",enabled:!0,phase:"write",fn:P4,effect:N4,requires:["computeStyles"]};function _r(e){return e.split("-")[0]}var Sa=Math.max,qc=Math.min,zo=Math.round;function Vh(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function pw(){return!/^((?!chrome|android).)*safari/i.test(Vh())}function Do(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var a=e.getBoundingClientRect(),l=1,s=1;t&&sr(e)&&(l=e.offsetWidth>0&&zo(a.width)/e.offsetWidth||1,s=e.offsetHeight>0&&zo(a.height)/e.offsetHeight||1);var u=Ca(e)?Xn(e):window,f=u.visualViewport,d=!pw()&&r,p=(a.left+(d&&f?f.offsetLeft:0))/l,m=(a.top+(d&&f?f.offsetTop:0))/s,g=a.width/l,v=a.height/s;return{width:g,height:v,top:m,right:p+g,bottom:m+v,left:p,x:p,y:m}}function Xm(e){var t=Do(e),r=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:a}}function hw(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Gm(r)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function ui(e){return Xn(e).getComputedStyle(e)}function B4(e){return["table","td","th"].indexOf(Br(e))>=0}function Ui(e){return((Ca(e)?e.ownerDocument:e.document)||window.document).documentElement}function bf(e){return Br(e)==="html"?e:e.assignedSlot||e.parentNode||(Gm(e)?e.host:null)||Ui(e)}function k1(e){return!sr(e)||ui(e).position==="fixed"?null:e.offsetParent}function I4(e){var t=/firefox/i.test(Vh()),r=/Trident/i.test(Vh());if(r&&sr(e)){var a=ui(e);if(a.position==="fixed")return null}var l=bf(e);for(Gm(l)&&(l=l.host);sr(l)&&["html","body"].indexOf(Br(l))<0;){var s=ui(l);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return l;l=l.parentNode}return null}function Is(e){for(var t=Xn(e),r=k1(e);r&&B4(r)&&ui(r).position==="static";)r=k1(r);return r&&(Br(r)==="html"||Br(r)==="body"&&ui(r).position==="static")?t:r||I4(e)||t}function Wm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ss(e,t,r){return Sa(e,qc(t,r))}function $4(e,t,r){var a=ss(e,t,r);return a>r?r:a}function mw(){return{top:0,right:0,bottom:0,left:0}}function gw(e){return Object.assign({},mw(),e)}function yw(e,t){return t.reduce(function(r,a){return r[a]=e,r},{})}var H4=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,gw(typeof t!="number"?t:yw(t,Bs))};function U4(e){var t,r=e.state,a=e.name,l=e.options,s=r.elements.arrow,u=r.modifiersData.popperOffsets,f=_r(r.placement),d=Wm(f),p=[Dn,cr].indexOf(f)>=0,m=p?"height":"width";if(!(!s||!u)){var g=H4(l.padding,r),v=Xm(s),b=d==="y"?zn:Dn,x=d==="y"?ur:cr,C=r.rects.reference[m]+r.rects.reference[d]-u[d]-r.rects.popper[m],R=u[d]-r.rects.reference[d],E=Is(s),M=E?d==="y"?E.clientHeight||0:E.clientWidth||0:0,O=C/2-R/2,L=g[b],j=M-v[m]-g[x],z=M/2-v[m]/2+O,I=ss(L,z,j),V=d;r.modifiersData[a]=(t={},t[V]=I,t.centerOffset=I-z,t)}}function F4(e){var t=e.state,r=e.options,a=r.element,l=a===void 0?"[data-popper-arrow]":a;l!=null&&(typeof l=="string"&&(l=t.elements.popper.querySelector(l),!l)||hw(t.elements.popper,l)&&(t.elements.arrow=l))}const q4={name:"arrow",enabled:!0,phase:"main",fn:U4,effect:F4,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function jo(e){return e.split("-")[1]}var V4={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Y4(e,t){var r=e.x,a=e.y,l=t.devicePixelRatio||1;return{x:zo(r*l)/l||0,y:zo(a*l)/l||0}}function E1(e){var t,r=e.popper,a=e.popperRect,l=e.placement,s=e.variation,u=e.offsets,f=e.position,d=e.gpuAcceleration,p=e.adaptive,m=e.roundOffsets,g=e.isFixed,v=u.x,b=v===void 0?0:v,x=u.y,C=x===void 0?0:x,R=typeof m=="function"?m({x:b,y:C}):{x:b,y:C};b=R.x,C=R.y;var E=u.hasOwnProperty("x"),M=u.hasOwnProperty("y"),O=Dn,L=zn,j=window;if(p){var z=Is(r),I="clientHeight",V="clientWidth";if(z===Xn(r)&&(z=Ui(r),ui(z).position!=="static"&&f==="absolute"&&(I="scrollHeight",V="scrollWidth")),z=z,l===zn||(l===Dn||l===cr)&&s===Ss){L=ur;var F=g&&z===j&&j.visualViewport?j.visualViewport.height:z[I];C-=F-a.height,C*=d?1:-1}if(l===Dn||(l===zn||l===ur)&&s===Ss){O=cr;var N=g&&z===j&&j.visualViewport?j.visualViewport.width:z[V];b-=N-a.width,b*=d?1:-1}}var q=Object.assign({position:f},p&&V4),A=m===!0?Y4({x:b,y:C},Xn(r)):{x:b,y:C};if(b=A.x,C=A.y,d){var B;return Object.assign({},q,(B={},B[L]=M?"0":"",B[O]=E?"0":"",B.transform=(j.devicePixelRatio||1)<=1?"translate("+b+"px, "+C+"px)":"translate3d("+b+"px, "+C+"px, 0)",B))}return Object.assign({},q,(t={},t[L]=M?C+"px":"",t[O]=E?b+"px":"",t.transform="",t))}function G4(e){var t=e.state,r=e.options,a=r.gpuAcceleration,l=a===void 0?!0:a,s=r.adaptive,u=s===void 0?!0:s,f=r.roundOffsets,d=f===void 0?!0:f,p={placement:_r(t.placement),variation:jo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:l,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,E1(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,E1(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const X4={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:G4,data:{}};var cc={passive:!0};function W4(e){var t=e.state,r=e.instance,a=e.options,l=a.scroll,s=l===void 0?!0:l,u=a.resize,f=u===void 0?!0:u,d=Xn(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(m){m.addEventListener("scroll",r.update,cc)}),f&&d.addEventListener("resize",r.update,cc),function(){s&&p.forEach(function(m){m.removeEventListener("scroll",r.update,cc)}),f&&d.removeEventListener("resize",r.update,cc)}}const K4={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:W4,data:{}};var Q4={left:"right",right:"left",bottom:"top",top:"bottom"};function Oc(e){return e.replace(/left|right|bottom|top/g,function(t){return Q4[t]})}var Z4={start:"end",end:"start"};function T1(e){return e.replace(/start|end/g,function(t){return Z4[t]})}function Km(e){var t=Xn(e),r=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:r,scrollTop:a}}function Qm(e){return Do(Ui(e)).left+Km(e).scrollLeft}function J4(e,t){var r=Xn(e),a=Ui(e),l=r.visualViewport,s=a.clientWidth,u=a.clientHeight,f=0,d=0;if(l){s=l.width,u=l.height;var p=pw();(p||!p&&t==="fixed")&&(f=l.offsetLeft,d=l.offsetTop)}return{width:s,height:u,x:f+Qm(e),y:d}}function eO(e){var t,r=Ui(e),a=Km(e),l=(t=e.ownerDocument)==null?void 0:t.body,s=Sa(r.scrollWidth,r.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),u=Sa(r.scrollHeight,r.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),f=-a.scrollLeft+Qm(e),d=-a.scrollTop;return ui(l||r).direction==="rtl"&&(f+=Sa(r.clientWidth,l?l.clientWidth:0)-s),{width:s,height:u,x:f,y:d}}function Zm(e){var t=ui(e),r=t.overflow,a=t.overflowX,l=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+l+a)}function bw(e){return["html","body","#document"].indexOf(Br(e))>=0?e.ownerDocument.body:sr(e)&&Zm(e)?e:bw(bf(e))}function us(e,t){var r;t===void 0&&(t=[]);var a=bw(e),l=a===((r=e.ownerDocument)==null?void 0:r.body),s=Xn(a),u=l?[s].concat(s.visualViewport||[],Zm(a)?a:[]):a,f=t.concat(u);return l?f:f.concat(us(bf(u)))}function Yh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function tO(e,t){var r=Do(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function R1(e,t,r){return t===fw?Yh(J4(e,r)):Ca(t)?tO(t,r):Yh(eO(Ui(e)))}function nO(e){var t=us(bf(e)),r=["absolute","fixed"].indexOf(ui(e).position)>=0,a=r&&sr(e)?Is(e):e;return Ca(a)?t.filter(function(l){return Ca(l)&&hw(l,a)&&Br(l)!=="body"}):[]}function rO(e,t,r,a){var l=t==="clippingParents"?nO(e):[].concat(t),s=[].concat(l,[r]),u=s[0],f=s.reduce(function(d,p){var m=R1(e,p,a);return d.top=Sa(m.top,d.top),d.right=qc(m.right,d.right),d.bottom=qc(m.bottom,d.bottom),d.left=Sa(m.left,d.left),d},R1(e,u,a));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function vw(e){var t=e.reference,r=e.element,a=e.placement,l=a?_r(a):null,s=a?jo(a):null,u=t.x+t.width/2-r.width/2,f=t.y+t.height/2-r.height/2,d;switch(l){case zn:d={x:u,y:t.y-r.height};break;case ur:d={x:u,y:t.y+t.height};break;case cr:d={x:t.x+t.width,y:f};break;case Dn:d={x:t.x-r.width,y:f};break;default:d={x:t.x,y:t.y}}var p=l?Wm(l):null;if(p!=null){var m=p==="y"?"height":"width";switch(s){case Oo:d[p]=d[p]-(t[m]/2-r[m]/2);break;case Ss:d[p]=d[p]+(t[m]/2-r[m]/2);break}}return d}function ws(e,t){t===void 0&&(t={});var r=t,a=r.placement,l=a===void 0?e.placement:a,s=r.strategy,u=s===void 0?e.strategy:s,f=r.boundary,d=f===void 0?C4:f,p=r.rootBoundary,m=p===void 0?fw:p,g=r.elementContext,v=g===void 0?Yl:g,b=r.altBoundary,x=b===void 0?!1:b,C=r.padding,R=C===void 0?0:C,E=gw(typeof R!="number"?R:yw(R,Bs)),M=v===Yl?k4:Yl,O=e.rects.popper,L=e.elements[x?M:v],j=rO(Ca(L)?L:L.contextElement||Ui(e.elements.popper),d,m,u),z=Do(e.elements.reference),I=vw({reference:z,element:O,placement:l}),V=Yh(Object.assign({},O,I)),F=v===Yl?V:z,N={top:j.top-F.top+E.top,bottom:F.bottom-j.bottom+E.bottom,left:j.left-F.left+E.left,right:F.right-j.right+E.right},q=e.modifiersData.offset;if(v===Yl&&q){var A=q[l];Object.keys(N).forEach(function(B){var H=[cr,ur].indexOf(B)>=0?1:-1,U=[zn,ur].indexOf(B)>=0?"y":"x";N[B]+=A[U]*H})}return N}function iO(e,t){t===void 0&&(t={});var r=t,a=r.placement,l=r.boundary,s=r.rootBoundary,u=r.padding,f=r.flipVariations,d=r.allowedAutoPlacements,p=d===void 0?dw:d,m=jo(a),g=m?f?C1:C1.filter(function(x){return jo(x)===m}):Bs,v=g.filter(function(x){return p.indexOf(x)>=0});v.length===0&&(v=g);var b=v.reduce(function(x,C){return x[C]=ws(e,{placement:C,boundary:l,rootBoundary:s,padding:u})[_r(C)],x},{});return Object.keys(b).sort(function(x,C){return b[x]-b[C]})}function aO(e){if(_r(e)===Ym)return[];var t=Oc(e);return[T1(e),t,T1(t)]}function oO(e){var t=e.state,r=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var l=r.mainAxis,s=l===void 0?!0:l,u=r.altAxis,f=u===void 0?!0:u,d=r.fallbackPlacements,p=r.padding,m=r.boundary,g=r.rootBoundary,v=r.altBoundary,b=r.flipVariations,x=b===void 0?!0:b,C=r.allowedAutoPlacements,R=t.options.placement,E=_r(R),M=E===R,O=d||(M||!x?[Oc(R)]:aO(R)),L=[R].concat(O).reduce(function(se,me){return se.concat(_r(me)===Ym?iO(t,{placement:me,boundary:m,rootBoundary:g,padding:p,flipVariations:x,allowedAutoPlacements:C}):me)},[]),j=t.rects.reference,z=t.rects.popper,I=new Map,V=!0,F=L[0],N=0;N<L.length;N++){var q=L[N],A=_r(q),B=jo(q)===Oo,H=[zn,ur].indexOf(A)>=0,U=H?"width":"height",_=ws(t,{placement:q,boundary:m,rootBoundary:g,altBoundary:v,padding:p}),G=H?B?cr:Dn:B?ur:zn;j[U]>z[U]&&(G=Oc(G));var Z=Oc(G),J=[];if(s&&J.push(_[A]<=0),f&&J.push(_[G]<=0,_[Z]<=0),J.every(function(se){return se})){F=q,V=!1;break}I.set(q,J)}if(V)for(var k=x?3:1,K=function(me){var fe=L.find(function(ce){var ye=I.get(ce);if(ye)return ye.slice(0,me).every(function(be){return be})});if(fe)return F=fe,"break"},re=k;re>0;re--){var P=K(re);if(P==="break")break}t.placement!==F&&(t.modifiersData[a]._skip=!0,t.placement=F,t.reset=!0)}}const lO={name:"flip",enabled:!0,phase:"main",fn:oO,requiresIfExists:["offset"],data:{_skip:!1}};function A1(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function M1(e){return[zn,cr,ur,Dn].some(function(t){return e[t]>=0})}function sO(e){var t=e.state,r=e.name,a=t.rects.reference,l=t.rects.popper,s=t.modifiersData.preventOverflow,u=ws(t,{elementContext:"reference"}),f=ws(t,{altBoundary:!0}),d=A1(u,a),p=A1(f,l,s),m=M1(d),g=M1(p);t.modifiersData[r]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:m,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":g})}const uO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sO};function cO(e,t,r){var a=_r(e),l=[Dn,zn].indexOf(a)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,u=s[0],f=s[1];return u=u||0,f=(f||0)*l,[Dn,cr].indexOf(a)>=0?{x:f,y:u}:{x:u,y:f}}function fO(e){var t=e.state,r=e.options,a=e.name,l=r.offset,s=l===void 0?[0,0]:l,u=dw.reduce(function(m,g){return m[g]=cO(g,t.rects,s),m},{}),f=u[t.placement],d=f.x,p=f.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=p),t.modifiersData[a]=u}const dO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:fO};function pO(e){var t=e.state,r=e.name;t.modifiersData[r]=vw({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const hO={name:"popperOffsets",enabled:!0,phase:"read",fn:pO,data:{}};function mO(e){return e==="x"?"y":"x"}function gO(e){var t=e.state,r=e.options,a=e.name,l=r.mainAxis,s=l===void 0?!0:l,u=r.altAxis,f=u===void 0?!1:u,d=r.boundary,p=r.rootBoundary,m=r.altBoundary,g=r.padding,v=r.tether,b=v===void 0?!0:v,x=r.tetherOffset,C=x===void 0?0:x,R=ws(t,{boundary:d,rootBoundary:p,padding:g,altBoundary:m}),E=_r(t.placement),M=jo(t.placement),O=!M,L=Wm(E),j=mO(L),z=t.modifiersData.popperOffsets,I=t.rects.reference,V=t.rects.popper,F=typeof C=="function"?C(Object.assign({},t.rects,{placement:t.placement})):C,N=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),q=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(z){if(s){var B,H=L==="y"?zn:Dn,U=L==="y"?ur:cr,_=L==="y"?"height":"width",G=z[L],Z=G+R[H],J=G-R[U],k=b?-V[_]/2:0,K=M===Oo?I[_]:V[_],re=M===Oo?-V[_]:-I[_],P=t.elements.arrow,se=b&&P?Xm(P):{width:0,height:0},me=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:mw(),fe=me[H],ce=me[U],ye=ss(0,I[_],se[_]),be=O?I[_]/2-k-ye-fe-N.mainAxis:K-ye-fe-N.mainAxis,ve=O?-I[_]/2+k+ye+ce+N.mainAxis:re+ye+ce+N.mainAxis,pe=t.elements.arrow&&Is(t.elements.arrow),ge=pe?L==="y"?pe.clientTop||0:pe.clientLeft||0:0,Ce=(B=q?.[L])!=null?B:0,de=G+be-Ce-ge,Oe=G+ve-Ce,ze=ss(b?qc(Z,de):Z,G,b?Sa(J,Oe):J);z[L]=ze,A[L]=ze-G}if(f){var Me,qe=L==="x"?zn:Dn,Xe=L==="x"?ur:cr,Ze=z[j],We=j==="y"?"height":"width",Ee=Ze+R[qe],Ut=Ze-R[Xe],ht=[zn,Dn].indexOf(E)!==-1,tn=(Me=q?.[j])!=null?Me:0,ne=ht?Ee:Ze-I[We]-V[We]-tn+N.altAxis,ie=ht?Ze+I[We]+V[We]-tn-N.altAxis:Ut,Se=b&&ht?$4(ne,Ze,ie):ss(b?ne:Ee,Ze,b?ie:Ut);z[j]=Se,A[j]=Se-Ze}t.modifiersData[a]=A}}const yO={name:"preventOverflow",enabled:!0,phase:"main",fn:gO,requiresIfExists:["offset"]};function bO(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function vO(e){return e===Xn(e)||!sr(e)?Km(e):bO(e)}function xO(e){var t=e.getBoundingClientRect(),r=zo(t.width)/e.offsetWidth||1,a=zo(t.height)/e.offsetHeight||1;return r!==1||a!==1}function SO(e,t,r){r===void 0&&(r=!1);var a=sr(t),l=sr(t)&&xO(t),s=Ui(t),u=Do(e,l,r),f={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(a||!a&&!r)&&((Br(t)!=="body"||Zm(s))&&(f=vO(t)),sr(t)?(d=Do(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=Qm(s))),{x:u.left+f.scrollLeft-d.x,y:u.top+f.scrollTop-d.y,width:u.width,height:u.height}}function wO(e){var t=new Map,r=new Set,a=[];e.forEach(function(s){t.set(s.name,s)});function l(s){r.add(s.name);var u=[].concat(s.requires||[],s.requiresIfExists||[]);u.forEach(function(f){if(!r.has(f)){var d=t.get(f);d&&l(d)}}),a.push(s)}return e.forEach(function(s){r.has(s.name)||l(s)}),a}function CO(e){var t=wO(e);return L4.reduce(function(r,a){return r.concat(t.filter(function(l){return l.phase===a}))},[])}function kO(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function EO(e){var t=e.reduce(function(r,a){var l=r[a.name];return r[a.name]=l?Object.assign({},l,a,{options:Object.assign({},l.options,a.options),data:Object.assign({},l.data,a.data)}):a,r},{});return Object.keys(t).map(function(r){return t[r]})}var O1={placement:"bottom",modifiers:[],strategy:"absolute"};function z1(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function TO(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,a=r===void 0?[]:r,l=t.defaultOptions,s=l===void 0?O1:l;return function(f,d,p){p===void 0&&(p=s);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},O1,s),modifiersData:{},elements:{reference:f,popper:d},attributes:{},styles:{}},g=[],v=!1,b={state:m,setOptions:function(E){var M=typeof E=="function"?E(m.options):E;C(),m.options=Object.assign({},s,m.options,M),m.scrollParents={reference:Ca(f)?us(f):f.contextElement?us(f.contextElement):[],popper:us(d)};var O=CO(EO([].concat(a,m.options.modifiers)));return m.orderedModifiers=O.filter(function(L){return L.enabled}),x(),b.update()},forceUpdate:function(){if(!v){var E=m.elements,M=E.reference,O=E.popper;if(z1(M,O)){m.rects={reference:SO(M,Is(O),m.options.strategy==="fixed"),popper:Xm(O)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(N){return m.modifiersData[N.name]=Object.assign({},N.data)});for(var L=0;L<m.orderedModifiers.length;L++){if(m.reset===!0){m.reset=!1,L=-1;continue}var j=m.orderedModifiers[L],z=j.fn,I=j.options,V=I===void 0?{}:I,F=j.name;typeof z=="function"&&(m=z({state:m,options:V,name:F,instance:b})||m)}}}},update:kO(function(){return new Promise(function(R){b.forceUpdate(),R(m)})}),destroy:function(){C(),v=!0}};if(!z1(f,d))return b;b.setOptions(p).then(function(R){!v&&p.onFirstUpdate&&p.onFirstUpdate(R)});function x(){m.orderedModifiers.forEach(function(R){var E=R.name,M=R.options,O=M===void 0?{}:M,L=R.effect;if(typeof L=="function"){var j=L({state:m,name:E,instance:b,options:O}),z=function(){};g.push(j||z)}})}function C(){g.forEach(function(R){return R()}),g=[]}return b}}var RO=[K4,hO,X4,_4,dO,lO,yO,q4,uO],AO=TO({defaultModifiers:RO});function xw(e){const{elementType:t,externalSlotProps:r,ownerState:a,skipResolvingSlotProps:l=!1,...s}=e,u=l?{}:uw(r,a),{props:f,internalRef:d}=cw({...s,externalSlotProps:u}),p=Lt(d,u?.ref,e.additionalProps?.ref);return sw(t,{...f,ref:p},a)}function Fi(e){return parseInt(S.version,10)>=19?e?.props?.ref||null:e?.ref||null}function MO(e){return typeof e=="function"?e():e}const Sw=S.forwardRef(function(t,r){const{children:a,container:l,disablePortal:s=!1}=t,[u,f]=S.useState(null),d=Lt(S.isValidElement(a)?Fi(a):null,r);if(yn(()=>{s||f(MO(l)||document.body)},[l,s]),yn(()=>{if(u&&!s)return g1(r,u),()=>{g1(r,null)}},[r,u,s]),s){if(S.isValidElement(a)){const p={ref:d};return S.cloneElement(a,p)}return a}return u&&Lc.createPortal(a,u)});function OO(e){return nt("MuiPopper",e)}Ge("MuiPopper",["root"]);function zO(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Gh(e){return typeof e=="function"?e():e}function DO(e){return e.nodeType!==void 0}const jO=e=>{const{classes:t}=e;return rt({root:["root"]},OO,t)},LO={},PO=S.forwardRef(function(t,r){const{anchorEl:a,children:l,direction:s,disablePortal:u,modifiers:f,open:d,placement:p,popperOptions:m,popperRef:g,slotProps:v={},slots:b={},TransitionProps:x,ownerState:C,...R}=t,E=S.useRef(null),M=Lt(E,r),O=S.useRef(null),L=Lt(O,g),j=S.useRef(L);yn(()=>{j.current=L},[L]),S.useImperativeHandle(g,()=>O.current,[]);const z=zO(p,s),[I,V]=S.useState(z),[F,N]=S.useState(Gh(a));S.useEffect(()=>{O.current&&O.current.forceUpdate()}),S.useEffect(()=>{a&&N(Gh(a))},[a]),yn(()=>{if(!F||!d)return;const U=Z=>{V(Z.placement)};let _=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Z})=>{U(Z)}}];f!=null&&(_=_.concat(f)),m&&m.modifiers!=null&&(_=_.concat(m.modifiers));const G=AO(F,E.current,{placement:z,...m,modifiers:_});return j.current(G),()=>{G.destroy(),j.current(null)}},[F,u,f,d,m,z]);const q={placement:I};x!==null&&(q.TransitionProps=x);const A=jO(t),B=b.root??"div",H=xw({elementType:B,externalSlotProps:v.root,externalForwardedProps:R,additionalProps:{role:"tooltip",ref:M},ownerState:t,className:A.root});return w.jsx(B,{...H,children:typeof l=="function"?l(q):l})}),NO=S.forwardRef(function(t,r){const{anchorEl:a,children:l,container:s,direction:u="ltr",disablePortal:f=!1,keepMounted:d=!1,modifiers:p,open:m,placement:g="bottom",popperOptions:v=LO,popperRef:b,style:x,transition:C=!1,slotProps:R={},slots:E={},...M}=t,[O,L]=S.useState(!0),j=()=>{L(!1)},z=()=>{L(!0)};if(!d&&!m&&(!C||O))return null;let I;if(s)I=s;else if(a){const N=Gh(a);I=N&&DO(N)?Kt(N).body:Kt(null).body}const V=!m&&d&&(!C||O)?"none":void 0,F=C?{in:m,onEnter:j,onExited:z}:void 0;return w.jsx(Sw,{disablePortal:f,container:I,children:w.jsx(PO,{anchorEl:a,direction:u,disablePortal:f,modifiers:p,ref:r,open:C?!O:m,placement:g,popperOptions:v,popperRef:b,slotProps:R,slots:E,...M,style:{position:"fixed",top:0,left:0,display:V,...x},TransitionProps:F,children:l})})}),_O=xe(NO,{name:"MuiPopper",slot:"Root"})({}),ww=S.forwardRef(function(t,r){const a=Ns(),l=Qe({props:t,name:"MuiPopper"}),{anchorEl:s,component:u,components:f,componentsProps:d,container:p,disablePortal:m,keepMounted:g,modifiers:v,open:b,placement:x,popperOptions:C,popperRef:R,transition:E,slots:M,slotProps:O,...L}=l,j=M?.root??f?.Root,z={anchorEl:s,container:p,disablePortal:m,keepMounted:g,modifiers:v,open:b,placement:x,popperOptions:C,popperRef:R,transition:E,...L};return w.jsx(_O,{as:u,direction:a?"rtl":"ltr",slots:{root:j},slotProps:O??d,...z,ref:r})});function fc(e){return parseInt(e,10)||0}const BO={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function IO(e){for(const t in e)return!1;return!0}function D1(e){return IO(e)||e.outerHeightStyle===0&&!e.overflowing}const $O=S.forwardRef(function(t,r){const{onChange:a,maxRows:l,minRows:s=1,style:u,value:f,...d}=t,{current:p}=S.useRef(f!=null),m=S.useRef(null),g=Lt(r,m),v=S.useRef(null),b=S.useRef(null),x=S.useCallback(()=>{const O=m.current,L=b.current;if(!O||!L)return;const z=Sn(O).getComputedStyle(O);if(z.width==="0px")return{outerHeightStyle:0,overflowing:!1};L.style.width=z.width,L.value=O.value||t.placeholder||"x",L.value.slice(-1)===`
`&&(L.value+=" ");const I=z.boxSizing,V=fc(z.paddingBottom)+fc(z.paddingTop),F=fc(z.borderBottomWidth)+fc(z.borderTopWidth),N=L.scrollHeight;L.value="x";const q=L.scrollHeight;let A=N;s&&(A=Math.max(Number(s)*q,A)),l&&(A=Math.min(Number(l)*q,A)),A=Math.max(A,q);const B=A+(I==="border-box"?V+F:0),H=Math.abs(A-N)<=1;return{outerHeightStyle:B,overflowing:H}},[l,s,t.placeholder]),C=wn(()=>{const O=m.current,L=x();if(!O||!L||D1(L))return!1;const j=L.outerHeightStyle;return v.current!=null&&v.current!==j}),R=S.useCallback(()=>{const O=m.current,L=x();if(!O||!L||D1(L))return;const j=L.outerHeightStyle;v.current!==j&&(v.current=j,O.style.height=`${j}px`),O.style.overflow=L.overflowing?"hidden":""},[x]),E=S.useRef(-1);yn(()=>{const O=$m(R),L=m?.current;if(!L)return;const j=Sn(L);j.addEventListener("resize",O);let z;return typeof ResizeObserver<"u"&&(z=new ResizeObserver(()=>{C()&&(z.unobserve(L),cancelAnimationFrame(E.current),R(),E.current=requestAnimationFrame(()=>{z.observe(L)}))}),z.observe(L)),()=>{O.clear(),cancelAnimationFrame(E.current),j.removeEventListener("resize",O),z&&z.disconnect()}},[x,R,C]),yn(()=>{R()});const M=O=>{p||R();const L=O.target,j=L.value.length,z=L.value.endsWith(`
`),I=L.selectionStart===j;z&&I&&L.setSelectionRange(j,j),a&&a(O)};return w.jsxs(S.Fragment,{children:[w.jsx("textarea",{value:f,onChange:M,ref:g,rows:s,style:u,...d}),w.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:{...BO.shadow,...u,paddingTop:0,paddingBottom:0}})]})});function Ho({props:e,states:t,muiFormControl:r}){return t.reduce((a,l)=>(a[l]=e[l],r&&typeof e[l]>"u"&&(a[l]=r[l]),a),{})}const Jm=S.createContext(void 0);function Uo(){return S.useContext(Jm)}function j1(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Vc(e,t=!1){return e&&(j1(e.value)&&e.value!==""||t&&j1(e.defaultValue)&&e.defaultValue!=="")}function HO(e){return e.startAdornment}function UO(e){return nt("MuiInputBase",e)}const Lo=Ge("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var L1;const vf=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Te(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},xf=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},FO=e=>{const{classes:t,color:r,disabled:a,error:l,endAdornment:s,focused:u,formControl:f,fullWidth:d,hiddenLabel:p,multiline:m,readOnly:g,size:v,startAdornment:b,type:x}=e,C={root:["root",`color${Te(r)}`,a&&"disabled",l&&"error",d&&"fullWidth",u&&"focused",f&&"formControl",v&&v!=="medium"&&`size${Te(v)}`,m&&"multiline",b&&"adornedStart",s&&"adornedEnd",p&&"hiddenLabel",g&&"readOnly"],input:["input",a&&"disabled",x==="search"&&"inputTypeSearch",m&&"inputMultiline",v==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",b&&"inputAdornedStart",s&&"inputAdornedEnd",g&&"readOnly"]};return rt(C,UO,t)},Sf=xe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:vf})(Ye(({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",[`&.${Lo.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:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),wf=xe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:xf})(Ye(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},a={opacity:"0 !important"},l=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":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Lo.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":l,"&:focus::-moz-placeholder":l,"&:focus::-ms-input-placeholder":l},[`&.${Lo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),P1=Im({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Cf=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiInputBase"}),{"aria-describedby":l,autoComplete:s,autoFocus:u,className:f,color:d,components:p={},componentsProps:m={},defaultValue:g,disabled:v,disableInjectingGlobalStyles:b,endAdornment:x,error:C,fullWidth:R=!1,id:E,inputComponent:M="input",inputProps:O={},inputRef:L,margin:j,maxRows:z,minRows:I,multiline:V=!1,name:F,onBlur:N,onChange:q,onClick:A,onFocus:B,onKeyDown:H,onKeyUp:U,placeholder:_,readOnly:G,renderSuffix:Z,rows:J,size:k,slotProps:K={},slots:re={},startAdornment:P,type:se="text",value:me,...fe}=a,ce=O.value!=null?O.value:me,{current:ye}=S.useRef(ce!=null),be=S.useRef(),ve=S.useCallback(Le=>{},[]),pe=Lt(be,L,O.ref,ve),[ge,Ce]=S.useState(!1),de=Uo(),Oe=Ho({props:a,muiFormControl:de,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Oe.focused=de?de.focused:ge,S.useEffect(()=>{!de&&v&&ge&&(Ce(!1),N&&N())},[de,v,ge,N]);const ze=de&&de.onFilled,Me=de&&de.onEmpty,qe=S.useCallback(Le=>{Vc(Le)?ze&&ze():Me&&Me()},[ze,Me]);yn(()=>{ye&&qe({value:ce})},[ce,qe,ye]);const Xe=Le=>{B&&B(Le),O.onFocus&&O.onFocus(Le),de&&de.onFocus?de.onFocus(Le):Ce(!0)},Ze=Le=>{N&&N(Le),O.onBlur&&O.onBlur(Le),de&&de.onBlur?de.onBlur(Le):Ce(!1)},We=(Le,...Pt)=>{if(!ye){const kt=Le.target||be.current;if(kt==null)throw new Error(li(1));qe({value:kt.value})}O.onChange&&O.onChange(Le,...Pt),q&&q(Le,...Pt)};S.useEffect(()=>{qe(be.current)},[]);const Ee=Le=>{be.current&&Le.currentTarget===Le.target&&be.current.focus(),A&&A(Le)};let Ut=M,ht=O;V&&Ut==="input"&&(J?ht={type:void 0,minRows:J,maxRows:J,...ht}:ht={type:void 0,maxRows:z,minRows:I,...ht},Ut=$O);const tn=Le=>{qe(Le.animationName==="mui-auto-fill-cancel"?be.current:{value:"x"})};S.useEffect(()=>{de&&de.setAdornedStart(!!P)},[de,P]);const ne={...a,color:Oe.color||"primary",disabled:Oe.disabled,endAdornment:x,error:Oe.error,focused:Oe.focused,formControl:de,fullWidth:R,hiddenLabel:Oe.hiddenLabel,multiline:V,size:Oe.size,startAdornment:P,type:se},ie=FO(ne),Se=re.root||p.Root||Sf,we=K.root||m.root||{},$e=re.input||p.Input||wf;return ht={...ht,...K.input??m.input},w.jsxs(S.Fragment,{children:[!b&&typeof P1=="function"&&(L1||(L1=w.jsx(P1,{}))),w.jsxs(Se,{...we,ref:r,onClick:Ee,...fe,...!Mo(Se)&&{ownerState:{...ne,...we.ownerState}},className:je(ie.root,we.className,f,G&&"MuiInputBase-readOnly"),children:[P,w.jsx(Jm.Provider,{value:null,children:w.jsx($e,{"aria-invalid":Oe.error,"aria-describedby":l,autoComplete:s,autoFocus:u,defaultValue:g,disabled:Oe.disabled,id:E,onAnimationStart:tn,name:F,placeholder:_,readOnly:G,required:Oe.required,rows:J,value:ce,onKeyDown:H,onKeyUp:U,type:se,...ht,...!Mo($e)&&{as:Ut,ownerState:{...ne,...ht.ownerState}},ref:pe,className:je(ie.input,ht.className,G&&"MuiInputBase-readOnly"),onBlur:Ze,onChange:We,onFocus:Xe})}),x,Z?Z({...Oe,startAdornment:P}):null]})]})});function qO(e){return nt("MuiInput",e)}const Gl={...Lo,...Ge("MuiInput",["root","underline","input"])};function VO(e){return nt("MuiOutlinedInput",e)}const Or={...Lo,...Ge("MuiOutlinedInput",["root","notchedOutline","input"])};function YO(e){return nt("MuiFilledInput",e)}const fa={...Lo,...Ge("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},GO=ct(w.jsx("path",{d:"M7 10l5 5 5-5z"})),XO=ct(w.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}));function WO(e){return nt("MuiAvatar",e)}Ge("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const KO=e=>{const{classes:t,variant:r,colorDefault:a}=e;return rt({root:["root",r,a&&"colorDefault"],img:["img"],fallback:["fallback"]},WO,t)},QO=xe("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(Ye(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),ZO=xe("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),JO=xe(XO,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function e3({crossOrigin:e,referrerPolicy:t,src:r,srcSet:a}){const[l,s]=S.useState(!1);return S.useEffect(()=>{if(!r&&!a)return;s(!1);let u=!0;const f=new Image;return f.onload=()=>{u&&s("loaded")},f.onerror=()=>{u&&s("error")},f.crossOrigin=e,f.referrerPolicy=t,f.src=r,a&&(f.srcset=a),()=>{u=!1}},[e,t,r,a]),l}const N1=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiAvatar"}),{alt:l,children:s,className:u,component:f="div",slots:d={},slotProps:p={},imgProps:m,sizes:g,src:v,srcSet:b,variant:x="circular",...C}=a;let R=null;const E={...a,component:f,variant:x},M=e3({...m,...typeof p.img=="function"?p.img(E):p.img,src:v,srcSet:b}),O=v||b,L=O&&M!=="error";E.colorDefault=!L,delete E.ownerState;const j=KO(E),[z,I]=at("root",{ref:r,className:je(j.root,u),elementType:QO,externalForwardedProps:{slots:d,slotProps:p,component:f,...C},ownerState:E}),[V,F]=at("img",{className:j.img,elementType:ZO,externalForwardedProps:{slots:d,slotProps:{img:{...m,...p.img}}},additionalProps:{alt:l,src:v,srcSet:b,sizes:g},ownerState:E}),[N,q]=at("fallback",{className:j.fallback,elementType:JO,externalForwardedProps:{slots:d,slotProps:p},shouldForwardComponentProp:!0,ownerState:E});return L?R=w.jsx(V,{...F}):s||s===0?R=s:O&&l?R=l[0]:R=w.jsx(N,{...q}),w.jsx(z,{...I,children:R})}),t3={entering:{opacity:1},entered:{opacity:1}},n3=S.forwardRef(function(t,r){const a=en(),l={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{addEndListener:s,appear:u=!0,children:f,easing:d,in:p,onEnter:m,onEntered:g,onEntering:v,onExit:b,onExited:x,onExiting:C,style:R,timeout:E=l,TransitionComponent:M=Cr,...O}=t,L=S.useRef(null),j=Lt(L,Fi(f),r),z=H=>U=>{if(H){const _=L.current;U===void 0?H(_):H(_,U)}},I=z(v),V=z((H,U)=>{Fm(H);const _=wa({style:R,timeout:E,easing:d},{mode:"enter"});H.style.webkitTransition=a.transitions.create("opacity",_),H.style.transition=a.transitions.create("opacity",_),m&&m(H,U)}),F=z(g),N=z(C),q=z(H=>{const U=wa({style:R,timeout:E,easing:d},{mode:"exit"});H.style.webkitTransition=a.transitions.create("opacity",U),H.style.transition=a.transitions.create("opacity",U),b&&b(H)}),A=z(x),B=H=>{s&&s(L.current,H)};return w.jsx(M,{appear:u,in:p,nodeRef:L,onEnter:V,onEntered:F,onEntering:I,onExit:q,onExited:A,onExiting:N,addEndListener:B,timeout:E,...O,children:(H,{ownerState:U,..._})=>S.cloneElement(f,{style:{opacity:0,visibility:H==="exited"&&!p?"hidden":void 0,...t3[H],...R,...f.props.style},ref:j,..._})})});function r3(e){return nt("MuiBackdrop",e)}Ge("MuiBackdrop",["root","invisible"]);const i3=e=>{const{classes:t,invisible:r}=e;return rt({root:["root",r&&"invisible"]},r3,t)},a3=xe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.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"}}]}),o3=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiBackdrop"}),{children:l,className:s,component:u="div",invisible:f=!1,open:d,components:p={},componentsProps:m={},slotProps:g={},slots:v={},TransitionComponent:b,transitionDuration:x,...C}=a,R={...a,component:u,invisible:f},E=i3(R),M={transition:b,root:p.Root,...v},O={...m,...g},L={component:u,slots:M,slotProps:O},[j,z]=at("root",{elementType:a3,externalForwardedProps:L,className:je(E.root,s),ownerState:R}),[I,V]=at("transition",{elementType:n3,externalForwardedProps:L,ownerState:R});return w.jsx(I,{in:d,timeout:x,...C,...V,children:w.jsx(j,{"aria-hidden":!0,...z,classes:E,ref:r,children:l})})});function l3(e){return nt("MuiButton",e)}const da=Ge("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"]),s3=S.createContext({}),u3=S.createContext(void 0),c3=e=>{const{color:t,disableElevation:r,fullWidth:a,size:l,variant:s,loading:u,loadingPosition:f,classes:d}=e,p={root:["root",u&&"loading",s,`${s}${Te(t)}`,`size${Te(l)}`,`${s}Size${Te(l)}`,`color${Te(t)}`,r&&"disableElevation",a&&"fullWidth",u&&`loadingPosition${Te(f)}`],startIcon:["icon","startIcon",`iconSize${Te(l)}`],endIcon:["icon","endIcon",`iconSize${Te(l)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},m=rt(p,l3,d);return{...d,...m}},Cw=[{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}}}],f3=xe(yf,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Te(r.color)}`],t[`size${Te(r.size)}`],t[`${r.variant}Size${Te(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(Ye(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=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"},[`&.${da.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]},[`&.${da.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${da.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)",[`&.${da.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(Pn()).map(([a])=>({props:{color:a},style:{"--variant-textColor":(e.vars||e).palette[a].main,"--variant-outlinedColor":(e.vars||e).palette[a].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[a].main,.5),"--variant-containedColor":(e.vars||e).palette[a].contrastText,"--variant-containedBg":(e.vars||e).palette[a].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[a].dark,"--variant-textBg":e.alpha((e.vars||e).palette[a].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[a].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[a].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:r,"--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"},[`&.${da.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${da.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}),[`&.${da.loading}`]:{color:"transparent"}}}]}})),d3=xe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${Te(r.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}},...Cw]})),p3=xe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${Te(r.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}},...Cw]})),h3=xe("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}}]})),_1=xe("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),$s=S.forwardRef(function(t,r){const a=S.useContext(s3),l=S.useContext(u3),s=vs(a,t),u=Qe({props:s,name:"MuiButton"}),{children:f,color:d="primary",component:p="button",className:m,disabled:g=!1,disableElevation:v=!1,disableFocusRipple:b=!1,endIcon:x,focusVisibleClassName:C,fullWidth:R=!1,id:E,loading:M=null,loadingIndicator:O,loadingPosition:L="center",size:j="medium",startIcon:z,type:I,variant:V="text",...F}=u,N=$o(E),q=O??w.jsx(Vm,{"aria-labelledby":N,color:"inherit",size:16}),A={...u,color:d,component:p,disabled:g,disableElevation:v,disableFocusRipple:b,fullWidth:R,loading:M,loadingIndicator:q,loadingPosition:L,size:j,type:I,variant:V},B=c3(A),H=(z||M&&L==="start")&&w.jsx(d3,{className:B.startIcon,ownerState:A,children:z||w.jsx(_1,{className:B.loadingIconPlaceholder,ownerState:A})}),U=(x||M&&L==="end")&&w.jsx(p3,{className:B.endIcon,ownerState:A,children:x||w.jsx(_1,{className:B.loadingIconPlaceholder,ownerState:A})}),_=l||"",G=typeof M=="boolean"?w.jsx("span",{className:B.loadingWrapper,style:{display:"contents"},children:M&&w.jsx(h3,{className:B.loadingIndicator,ownerState:A,children:q})}):null;return w.jsxs(f3,{ownerState:A,className:je(a.className,B.root,m,_),component:p,disabled:g||M,focusRipple:!b,focusVisibleClassName:je(B.focusVisible,C),ref:r,type:I,id:M?N:E,...F,classes:B,children:[H,L!=="end"&&G,f,L==="end"&&G,U]})});function B1(e){return e.substring(2).toLowerCase()}function m3(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function g3(e){const{children:t,disableReactTree:r=!1,mouseEvent:a="onClick",onClickAway:l,touchEvent:s="onTouchEnd"}=e,u=S.useRef(!1),f=S.useRef(null),d=S.useRef(!1),p=S.useRef(!1);S.useEffect(()=>(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const m=Lt(Fi(t),f),g=wn(x=>{const C=p.current;p.current=!1;const R=Kt(f.current);if(!d.current||!f.current||"clientX"in x&&m3(x,R))return;if(u.current){u.current=!1;return}let E;x.composedPath?E=x.composedPath().includes(f.current):E=!R.documentElement.contains(x.target)||f.current.contains(x.target),!E&&(r||!C)&&l(x)}),v=x=>C=>{p.current=!0;const R=t.props[x];R&&R(C)},b={ref:m};return s!==!1&&(b[s]=v(s)),S.useEffect(()=>{if(s!==!1){const x=B1(s),C=Kt(f.current),R=()=>{u.current=!0};return C.addEventListener(x,g),C.addEventListener("touchmove",R),()=>{C.removeEventListener(x,g),C.removeEventListener("touchmove",R)}}},[g,s]),a!==!1&&(b[a]=v(a)),S.useEffect(()=>{if(a!==!1){const x=B1(a),C=Kt(f.current);return C.addEventListener(x,g),()=>{C.removeEventListener(x,g)}}},[g,a]),S.cloneElement(t,b)}function kw(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function y3(e){const t=Kt(e);return t.body===e?Sn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function cs(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function I1(e){return parseInt(Sn(e).getComputedStyle(e).paddingRight,10)||0}function b3(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),a=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||a}function $1(e,t,r,a,l){const s=[t,r,...a];[].forEach.call(e.children,u=>{const f=!s.includes(u),d=!b3(u);f&&d&&cs(u,l)})}function nh(e,t){let r=-1;return e.some((a,l)=>t(a)?(r=l,!0):!1),r}function v3(e,t){const r=[],a=e.container;if(!t.disableScrollLock){if(y3(a)){const u=kw(Sn(a));r.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${I1(a)+u}px`;const f=Kt(a).querySelectorAll(".mui-fixed");[].forEach.call(f,d=>{r.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${I1(d)+u}px`})}let s;if(a.parentNode instanceof DocumentFragment)s=Kt(a).body;else{const u=a.parentElement,f=Sn(a);s=u?.nodeName==="HTML"&&f.getComputedStyle(u).overflowY==="scroll"?u:a}r.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{r.forEach(({value:s,el:u,property:f})=>{s?u.style.setProperty(f,s):u.style.removeProperty(f)})}}function x3(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class S3{constructor(){this.modals=[],this.containers=[]}add(t,r){let a=this.modals.indexOf(t);if(a!==-1)return a;a=this.modals.length,this.modals.push(t),t.modalRef&&cs(t.modalRef,!1);const l=x3(r);$1(r,t.mount,t.modalRef,l,!0);const s=nh(this.containers,u=>u.container===r);return s!==-1?(this.containers[s].modals.push(t),a):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:l}),a)}mount(t,r){const a=nh(this.containers,s=>s.modals.includes(t)),l=this.containers[a];l.restore||(l.restore=v3(l,r))}remove(t,r=!0){const a=this.modals.indexOf(t);if(a===-1)return a;const l=nh(this.containers,u=>u.modals.includes(t)),s=this.containers[l];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(a,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&cs(t.modalRef,r),$1(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(l,1);else{const u=s.modals[s.modals.length-1];u.modalRef&&cs(u.modalRef,!1)}return a}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const w3=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function C3(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 k3(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=a=>e.ownerDocument.querySelector(`input[type="radio"]${a}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function E3(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||k3(e))}function T3(e){const t=[],r=[];return Array.from(e.querySelectorAll(w3)).forEach((a,l)=>{const s=C3(a);s===-1||!E3(a)||(s===0?t.push(a):r.push({documentOrder:l,tabIndex:s,node:a}))}),r.sort((a,l)=>a.tabIndex===l.tabIndex?a.documentOrder-l.documentOrder:a.tabIndex-l.tabIndex).map(a=>a.node).concat(t)}function R3(){return!0}function A3(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:a=!1,disableRestoreFocus:l=!1,getTabbable:s=T3,isEnabled:u=R3,open:f}=e,d=S.useRef(!1),p=S.useRef(null),m=S.useRef(null),g=S.useRef(null),v=S.useRef(null),b=S.useRef(!1),x=S.useRef(null),C=Lt(Fi(t),x),R=S.useRef(null);S.useEffect(()=>{!f||!x.current||(b.current=!r)},[r,f]),S.useEffect(()=>{if(!f||!x.current)return;const O=Kt(x.current);return x.current.contains(O.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),b.current&&x.current.focus()),()=>{l||(g.current&&g.current.focus&&(d.current=!0,g.current.focus()),g.current=null)}},[f]),S.useEffect(()=>{if(!f||!x.current)return;const O=Kt(x.current),L=I=>{R.current=I,!(a||!u()||I.key!=="Tab")&&O.activeElement===x.current&&I.shiftKey&&(d.current=!0,m.current&&m.current.focus())},j=()=>{const I=x.current;if(I===null)return;if(!O.hasFocus()||!u()||d.current){d.current=!1;return}if(I.contains(O.activeElement)||a&&O.activeElement!==p.current&&O.activeElement!==m.current)return;if(O.activeElement!==v.current)v.current=null;else if(v.current!==null)return;if(!b.current)return;let V=[];if((O.activeElement===p.current||O.activeElement===m.current)&&(V=s(x.current)),V.length>0){const F=!!(R.current?.shiftKey&&R.current?.key==="Tab"),N=V[0],q=V[V.length-1];typeof N!="string"&&typeof q!="string"&&(F?q.focus():N.focus())}else I.focus()};O.addEventListener("focusin",j),O.addEventListener("keydown",L,!0);const z=setInterval(()=>{O.activeElement&&O.activeElement.tagName==="BODY"&&j()},50);return()=>{clearInterval(z),O.removeEventListener("focusin",j),O.removeEventListener("keydown",L,!0)}},[r,a,l,u,f,s]);const E=O=>{g.current===null&&(g.current=O.relatedTarget),b.current=!0,v.current=O.target;const L=t.props.onFocus;L&&L(O)},M=O=>{g.current===null&&(g.current=O.relatedTarget),b.current=!0};return w.jsxs(S.Fragment,{children:[w.jsx("div",{tabIndex:f?0:-1,onFocus:M,ref:p,"data-testid":"sentinelStart"}),S.cloneElement(t,{ref:C,onFocus:E}),w.jsx("div",{tabIndex:f?0:-1,onFocus:M,ref:m,"data-testid":"sentinelEnd"})]})}function M3(e){return typeof e=="function"?e():e}function O3(e){return e?e.props.hasOwnProperty("in"):!1}const H1=()=>{},dc=new S3;function z3(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:a=!1,closeAfterTransition:l=!1,onTransitionEnter:s,onTransitionExited:u,children:f,onClose:d,open:p,rootRef:m}=e,g=S.useRef({}),v=S.useRef(null),b=S.useRef(null),x=Lt(b,m),[C,R]=S.useState(!p),E=O3(f);let M=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(M=!1);const O=()=>Kt(v.current),L=()=>(g.current.modalRef=b.current,g.current.mount=v.current,g.current),j=()=>{dc.mount(L(),{disableScrollLock:a}),b.current&&(b.current.scrollTop=0)},z=wn(()=>{const U=M3(t)||O().body;dc.add(L(),U),b.current&&j()}),I=()=>dc.isTopModal(L()),V=wn(U=>{v.current=U,U&&(p&&I()?j():b.current&&cs(b.current,M))}),F=S.useCallback(()=>{dc.remove(L(),M)},[M]);S.useEffect(()=>()=>{F()},[F]),S.useEffect(()=>{p?z():(!E||!l)&&F()},[p,F,E,l,z]);const N=U=>_=>{U.onKeyDown?.(_),!(_.key!=="Escape"||_.which===229||!I())&&(r||(_.stopPropagation(),d&&d(_,"escapeKeyDown")))},q=U=>_=>{U.onClick?.(_),_.target===_.currentTarget&&d&&d(_,"backdropClick")};return{getRootProps:(U={})=>{const _=Hc(e);delete _.onTransitionEnter,delete _.onTransitionExited;const G={..._,...U};return{role:"presentation",...G,onKeyDown:N(G),ref:x}},getBackdropProps:(U={})=>{const _=U;return{"aria-hidden":!0,..._,onClick:q(_),open:p}},getTransitionProps:()=>{const U=()=>{R(!1),s&&s()},_=()=>{R(!0),u&&u(),l&&F()};return{onEnter:m1(U,f?.props.onEnter??H1),onExited:m1(_,f?.props.onExited??H1)}},rootRef:x,portalRef:V,isTopModal:I,exited:C,hasTransition:E}}function D3(e){return nt("MuiModal",e)}Ge("MuiModal",["root","hidden","backdrop"]);const j3=e=>{const{open:t,exited:r,classes:a}=e;return rt({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},D3,a)},L3=xe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Ye(({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"}}]}))),P3=xe(o3,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Ew=S.forwardRef(function(t,r){const a=Qe({name:"MuiModal",props:t}),{BackdropComponent:l=P3,BackdropProps:s,classes:u,className:f,closeAfterTransition:d=!1,children:p,container:m,component:g,components:v={},componentsProps:b={},disableAutoFocus:x=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:R=!1,disablePortal:E=!1,disableRestoreFocus:M=!1,disableScrollLock:O=!1,hideBackdrop:L=!1,keepMounted:j=!1,onClose:z,onTransitionEnter:I,onTransitionExited:V,open:F,slotProps:N={},slots:q={},theme:A,...B}=a,H={...a,closeAfterTransition:d,disableAutoFocus:x,disableEnforceFocus:C,disableEscapeKeyDown:R,disablePortal:E,disableRestoreFocus:M,disableScrollLock:O,hideBackdrop:L,keepMounted:j},{getRootProps:U,getBackdropProps:_,getTransitionProps:G,portalRef:Z,isTopModal:J,exited:k,hasTransition:K}=z3({...H,rootRef:r}),re={...H,exited:k},P=j3(re),se={};if(p.props.tabIndex===void 0&&(se.tabIndex="-1"),K){const{onEnter:ve,onExited:pe}=G();se.onEnter=ve,se.onExited=pe}const me={slots:{root:v.Root,backdrop:v.Backdrop,...q},slotProps:{...b,...N}},[fe,ce]=at("root",{ref:r,elementType:L3,externalForwardedProps:{...me,...B,component:g},getSlotProps:U,ownerState:re,className:je(f,P?.root,!re.open&&re.exited&&P?.hidden)}),[ye,be]=at("backdrop",{ref:s?.ref,elementType:l,externalForwardedProps:me,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:ve=>_({...ve,onClick:pe=>{ve?.onClick&&ve.onClick(pe)}}),className:je(s?.className,P?.backdrop),ownerState:re});return!j&&!F&&(!K||k)?null:w.jsx(Sw,{ref:Z,container:m,disablePortal:E,children:w.jsxs(fe,{...ce,children:[!L&&l?w.jsx(ye,{...be}):null,w.jsx(A3,{disableEnforceFocus:C,disableAutoFocus:x,disableRestoreFocus:M,isEnabled:J,open:F,children:S.cloneElement(p,se)})]})})}),U1=Ge("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function N3(e,t,r){const a=t.getBoundingClientRect(),l=r&&r.getBoundingClientRect(),s=Sn(t);let u;if(t.fakeTransform)u=t.fakeTransform;else{const p=s.getComputedStyle(t);u=p.getPropertyValue("-webkit-transform")||p.getPropertyValue("transform")}let f=0,d=0;if(u&&u!=="none"&&typeof u=="string"){const p=u.split("(")[1].split(")")[0].split(",");f=parseInt(p[4],10),d=parseInt(p[5],10)}return e==="left"?l?`translateX(${l.right+f-a.left}px)`:`translateX(${s.innerWidth+f-a.left}px)`:e==="right"?l?`translateX(-${a.right-l.left-f}px)`:`translateX(-${a.left+a.width-f}px)`:e==="up"?l?`translateY(${l.bottom+d-a.top}px)`:`translateY(${s.innerHeight+d-a.top}px)`:l?`translateY(-${a.top-l.top+a.height-d}px)`:`translateY(-${a.top+a.height-d}px)`}function _3(e){return typeof e=="function"?e():e}function pc(e,t,r){const a=_3(r),l=N3(e,t,a);l&&(t.style.webkitTransform=l,t.style.transform=l)}const B3=S.forwardRef(function(t,r){const a=en(),l={enter:a.transitions.easing.easeOut,exit:a.transitions.easing.sharp},s={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{addEndListener:u,appear:f=!0,children:d,container:p,direction:m="down",easing:g=l,in:v,onEnter:b,onEntered:x,onEntering:C,onExit:R,onExited:E,onExiting:M,style:O,timeout:L=s,TransitionComponent:j=Cr,...z}=t,I=S.useRef(null),V=Lt(Fi(d),I,r),F=Z=>J=>{Z&&(J===void 0?Z(I.current):Z(I.current,J))},N=F((Z,J)=>{pc(m,Z,p),Fm(Z),b&&b(Z,J)}),q=F((Z,J)=>{const k=wa({timeout:L,style:O,easing:g},{mode:"enter"});Z.style.webkitTransition=a.transitions.create("-webkit-transform",{...k}),Z.style.transition=a.transitions.create("transform",{...k}),Z.style.webkitTransform="none",Z.style.transform="none",C&&C(Z,J)}),A=F(x),B=F(M),H=F(Z=>{const J=wa({timeout:L,style:O,easing:g},{mode:"exit"});Z.style.webkitTransition=a.transitions.create("-webkit-transform",J),Z.style.transition=a.transitions.create("transform",J),pc(m,Z,p),R&&R(Z)}),U=F(Z=>{Z.style.webkitTransition="",Z.style.transition="",E&&E(Z)}),_=Z=>{u&&u(I.current,Z)},G=S.useCallback(()=>{I.current&&pc(m,I.current,p)},[m,p]);return S.useEffect(()=>{if(v||m==="down"||m==="right")return;const Z=$m(()=>{I.current&&pc(m,I.current,p)}),J=Sn(I.current);return J.addEventListener("resize",Z),()=>{Z.clear(),J.removeEventListener("resize",Z)}},[m,v,p]),S.useEffect(()=>{v||G()},[v,G]),w.jsx(j,{nodeRef:I,onEnter:N,onEntered:A,onEntering:q,onExit:H,onExited:U,onExiting:B,addEndListener:_,appear:f,in:v,timeout:L,...z,children:(Z,{ownerState:J,...k})=>S.cloneElement(d,{ref:V,style:{visibility:Z==="exited"&&!v?"hidden":void 0,...O,...d.props.style},...k})})});function I3(e){return nt("MuiDrawer",e)}Ge("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Tw=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},$3=e=>{const{classes:t,anchor:r,variant:a}=e,l={root:["root",`anchor${Te(r)}`],docked:[(a==="permanent"||a==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Te(r)}`,a!=="temporary"&&`paperAnchorDocked${Te(r)}`]};return rt(l,I3,t)},H3=xe(Ew,{name:"MuiDrawer",slot:"Root",overridesResolver:Tw})(Ye(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),U3=xe("div",{shouldForwardProp:Cn,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Tw})({flex:"0 0 auto"}),F3=xe(qm,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${Te(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${Te(r.anchor)}`]]}})(Ye(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),Rw={left:"right",right:"left",top:"down",bottom:"up"};function ya(e){return["left","right"].includes(e)}function os({direction:e},t){return e==="rtl"&&ya(t)?Rw[t]:t}const eg=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiDrawer"}),l=en(),s=Ns(),u={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{anchor:f="left",BackdropProps:d,children:p,className:m,elevation:g=16,hideBackdrop:v=!1,ModalProps:{BackdropProps:b,...x}={},onClose:C,open:R=!1,PaperProps:E={},SlideProps:M,TransitionComponent:O,transitionDuration:L=u,variant:j="temporary",slots:z={},slotProps:I={},...V}=a,F=S.useRef(!1);S.useEffect(()=>{F.current=!0},[]);const N=os({direction:s?"rtl":"ltr"},f),A={...a,anchor:f,elevation:g,open:R,variant:j,...V},B=$3(A),H={slots:{transition:O,...z},slotProps:{paper:E,transition:M,...I,backdrop:Ic(I.backdrop||{...d,...b},{transitionDuration:L})}},[U,_]=at("root",{ref:r,elementType:H3,className:je(B.root,B.modal,m),shouldForwardComponentProp:!0,ownerState:A,externalForwardedProps:{...H,...V,...x},additionalProps:{open:R,onClose:C,hideBackdrop:v,slots:{backdrop:H.slots.backdrop},slotProps:{backdrop:H.slotProps.backdrop}}}),[G,Z]=at("paper",{elementType:F3,shouldForwardComponentProp:!0,className:je(B.paper,E.className),ownerState:A,externalForwardedProps:H,additionalProps:{elevation:j==="temporary"?g:0,square:!0,...j==="temporary"&&{role:"dialog","aria-modal":"true"}}}),[J,k]=at("docked",{elementType:U3,ref:r,className:je(B.root,B.docked,m),ownerState:A,externalForwardedProps:H,additionalProps:V}),[K,re]=at("transition",{elementType:B3,ownerState:A,externalForwardedProps:H,additionalProps:{in:R,direction:Rw[N],timeout:L,appear:F.current}}),P=w.jsx(G,{...Z,children:p});if(j==="permanent")return w.jsx(J,{...k,children:P});const se=w.jsx(K,{...re,children:P});return j==="persistent"?w.jsx(J,{...k,children:se}):w.jsx(U,{..._,children:se})}),q3=e=>{const{classes:t,disableUnderline:r,startAdornment:a,endAdornment:l,size:s,hiddenLabel:u,multiline:f}=e,d={root:["root",!r&&"underline",a&&"adornedStart",l&&"adornedEnd",s==="small"&&`size${Te(s)}`,u&&"hiddenLabel",f&&"multiline"],input:["input"]},p=rt(d,YO,t);return{...t,...p}},V3=xe(Sf,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...vf(e,t),!r.disableUnderline&&t.underline]}})(Ye(({theme:e})=>{const t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,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:l,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${fa.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${fa.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:u})=>!u.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${fa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${fa.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):r}`,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(.${fa.disabled}, .${fa.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${fa.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Pn()).map(([u])=>({props:{disableUnderline:!1,color:u},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[u]?.main}`}}})),{props:({ownerState:u})=>u.startAdornment,style:{paddingLeft:12}},{props:({ownerState:u})=>u.endAdornment,style:{paddingRight:12}},{props:({ownerState:u})=>u.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:u,size:f})=>u.multiline&&f==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:u})=>u.multiline&&u.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:u})=>u.multiline&&u.hiddenLabel&&u.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),Y3=xe(wf,{name:"MuiFilledInput",slot:"Input",overridesResolver:xf})(Ye(({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}}]}))),tg=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiFilledInput"}),{disableUnderline:l=!1,components:s={},componentsProps:u,fullWidth:f=!1,hiddenLabel:d,inputComponent:p="input",multiline:m=!1,slotProps:g,slots:v={},type:b="text",...x}=a,C={...a,disableUnderline:l,fullWidth:f,inputComponent:p,multiline:m,type:b},R=q3(a),E={root:{ownerState:C},input:{ownerState:C}},M=g??u?gn(E,g??u):E,O=v.root??s.Root??V3,L=v.input??s.Input??Y3;return w.jsx(Cf,{slots:{root:O,input:L},slotProps:M,fullWidth:f,inputComponent:p,multiline:m,ref:r,type:b,...x,classes:R})});tg.muiName="Input";function G3(e){return nt("MuiFormControl",e)}Ge("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const X3=e=>{const{classes:t,margin:r,fullWidth:a}=e,l={root:["root",r!=="none"&&`margin${Te(r)}`,a&&"fullWidth"]};return rt(l,G3,t)},W3=xe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${Te(r.margin)}`],r.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%"}}]}),K3=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiFormControl"}),{children:l,className:s,color:u="primary",component:f="div",disabled:d=!1,error:p=!1,focused:m,fullWidth:g=!1,hiddenLabel:v=!1,margin:b="none",required:x=!1,size:C="medium",variant:R="outlined",...E}=a,M={...a,color:u,component:f,disabled:d,error:p,fullWidth:g,hiddenLabel:v,margin:b,required:x,size:C,variant:R},O=X3(M),[L,j]=S.useState(()=>{let U=!1;return l&&S.Children.forEach(l,_=>{if(!Ac(_,["Input","Select"]))return;const G=Ac(_,["Select"])?_.props.input:_;G&&HO(G.props)&&(U=!0)}),U}),[z,I]=S.useState(()=>{let U=!1;return l&&S.Children.forEach(l,_=>{Ac(_,["Input","Select"])&&(Vc(_.props,!0)||Vc(_.props.inputProps,!0))&&(U=!0)}),U}),[V,F]=S.useState(!1);d&&V&&F(!1);const N=m!==void 0&&!d?m:V;let q;S.useRef(!1);const A=S.useCallback(()=>{I(!0)},[]),B=S.useCallback(()=>{I(!1)},[]),H=S.useMemo(()=>({adornedStart:L,setAdornedStart:j,color:u,disabled:d,error:p,filled:z,focused:N,fullWidth:g,hiddenLabel:v,size:C,onBlur:()=>{F(!1)},onFocus:()=>{F(!0)},onEmpty:B,onFilled:A,registerEffect:q,required:x,variant:R}),[L,u,d,p,z,N,g,v,q,B,A,x,C,R]);return w.jsx(Jm.Provider,{value:H,children:w.jsx(W3,{as:f,ownerState:M,className:je(O.root,s),ref:r,...E,children:l})})});function Q3(e){return nt("MuiFormHelperText",e)}const F1=Ge("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var q1;const Z3=e=>{const{classes:t,contained:r,size:a,disabled:l,error:s,filled:u,focused:f,required:d}=e,p={root:["root",l&&"disabled",s&&"error",a&&`size${Te(a)}`,r&&"contained",f&&"focused",u&&"filled",d&&"required"]};return rt(p,Q3,t)},J3=xe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Te(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(Ye(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${F1.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${F1.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}}]}))),ez=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiFormHelperText"}),{children:l,className:s,component:u="p",disabled:f,error:d,filled:p,focused:m,margin:g,required:v,variant:b,...x}=a,C=Uo(),R=Ho({props:a,muiFormControl:C,states:["variant","size","disabled","error","filled","focused","required"]}),E={...a,component:u,contained:R.variant==="filled"||R.variant==="outlined",variant:R.variant,size:R.size,disabled:R.disabled,error:R.error,filled:R.filled,focused:R.focused,required:R.required};delete E.ownerState;const M=Z3(E);return w.jsx(J3,{as:u,className:je(M.root,s),ref:r,...x,ownerState:E,children:l===" "?q1||(q1=w.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):l})});function tz(e){return nt("MuiFormLabel",e)}const fs=Ge("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),nz=e=>{const{classes:t,color:r,focused:a,disabled:l,error:s,filled:u,required:f}=e,d={root:["root",`color${Te(r)}`,l&&"disabled",s&&"error",u&&"filled",a&&"focused",f&&"required"],asterisk:["asterisk",s&&"error"]};return rt(d,tz,t)},rz=xe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(Ye(({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(Pn()).map(([t])=>({props:{color:t},style:{[`&.${fs.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${fs.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${fs.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),iz=xe("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ye(({theme:e})=>({[`&.${fs.error}`]:{color:(e.vars||e).palette.error.main}}))),az=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiFormLabel"}),{children:l,className:s,color:u,component:f="label",disabled:d,error:p,filled:m,focused:g,required:v,...b}=a,x=Uo(),C=Ho({props:a,muiFormControl:x,states:["color","required","focused","disabled","error","filled"]}),R={...a,color:C.color||"primary",component:f,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required},E=nz(R);return w.jsxs(rz,{as:f,ownerState:R,className:je(E.root,s),ref:r,...b,children:[l,C.required&&w.jsxs(iz,{ownerState:R,"aria-hidden":!0,className:E.asterisk,children:[" ","*"]})]})});function Xh(e){return`scale(${e}, ${e**2})`}const oz={entering:{opacity:1,transform:Xh(1)},entered:{opacity:1,transform:"none"}},rh=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Cs=S.forwardRef(function(t,r){const{addEndListener:a,appear:l=!0,children:s,easing:u,in:f,onEnter:d,onEntered:p,onEntering:m,onExit:g,onExited:v,onExiting:b,style:x,timeout:C="auto",TransitionComponent:R=Cr,...E}=t,M=xa(),O=S.useRef(),L=en(),j=S.useRef(null),z=Lt(j,Fi(s),r),I=U=>_=>{if(U){const G=j.current;_===void 0?U(G):U(G,_)}},V=I(m),F=I((U,_)=>{Fm(U);const{duration:G,delay:Z,easing:J}=wa({style:x,timeout:C,easing:u},{mode:"enter"});let k;C==="auto"?(k=L.transitions.getAutoHeightDuration(U.clientHeight),O.current=k):k=G,U.style.transition=[L.transitions.create("opacity",{duration:k,delay:Z}),L.transitions.create("transform",{duration:rh?k:k*.666,delay:Z,easing:J})].join(","),d&&d(U,_)}),N=I(p),q=I(b),A=I(U=>{const{duration:_,delay:G,easing:Z}=wa({style:x,timeout:C,easing:u},{mode:"exit"});let J;C==="auto"?(J=L.transitions.getAutoHeightDuration(U.clientHeight),O.current=J):J=_,U.style.transition=[L.transitions.create("opacity",{duration:J,delay:G}),L.transitions.create("transform",{duration:rh?J:J*.666,delay:rh?G:G||J*.333,easing:Z})].join(","),U.style.opacity=0,U.style.transform=Xh(.75),g&&g(U)}),B=I(v),H=U=>{C==="auto"&&M.start(O.current||0,U),a&&a(j.current,U)};return w.jsx(R,{appear:l,in:f,nodeRef:j,onEnter:F,onEntered:N,onEntering:V,onExit:A,onExited:B,onExiting:q,addEndListener:H,timeout:C==="auto"?null:C,...E,children:(U,{ownerState:_,...G})=>S.cloneElement(s,{style:{opacity:0,transform:Xh(.75),visibility:U==="exited"&&!f?"hidden":void 0,...oz[U],...x,...s.props.style},ref:z,...G})})});Cs&&(Cs.muiSupportAuto=!0);const lz=e=>{const{classes:t,disableUnderline:r}=e,l=rt({root:["root",!r&&"underline"],input:["input"]},qO,t);return{...t,...l}},sz=xe(Sf,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...vf(e,t),!r.disableUnderline&&t.underline]}})(Ye(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:a})=>a.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:a})=>!a.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"},[`&.${Gl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Gl.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,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(.${Gl.disabled}, .${Gl.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Gl.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Pn()).map(([a])=>({props:{color:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a].main}`}}}))]}})),uz=xe(wf,{name:"MuiInput",slot:"Input",overridesResolver:xf})({}),ng=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiInput"}),{disableUnderline:l=!1,components:s={},componentsProps:u,fullWidth:f=!1,inputComponent:d="input",multiline:p=!1,slotProps:m,slots:g={},type:v="text",...b}=a,x=lz(a),R={root:{ownerState:{disableUnderline:l}}},E=m??u?gn(m??u,R):R,M=g.root??s.Root??sz,O=g.input??s.Input??uz;return w.jsx(Cf,{slots:{root:M,input:O},slotProps:E,fullWidth:f,inputComponent:d,multiline:p,ref:r,type:v,...b,classes:x})});ng.muiName="Input";function cz(e){return nt("MuiInputLabel",e)}Ge("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const fz=e=>{const{classes:t,formControl:r,size:a,shrink:l,disableAnimation:s,variant:u,required:f}=e,d={root:["root",r&&"formControl",!s&&"animated",l&&"shrink",a&&a!=="medium"&&`size${Te(a)}`,u],asterisk:[f&&"asterisk"]},p=rt(d,cz,t);return{...t,...p}},dz=xe(az,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${fs.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(Ye(({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:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:a})=>t==="filled"&&r.shrink&&a==="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:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),pz=S.forwardRef(function(t,r){const a=Qe({name:"MuiInputLabel",props:t}),{disableAnimation:l=!1,margin:s,shrink:u,variant:f,className:d,...p}=a,m=Uo();let g=u;typeof g>"u"&&m&&(g=m.filled||m.focused||m.adornedStart);const v=Ho({props:a,muiFormControl:m,states:["size","variant","required","focused"]}),b={...a,disableAnimation:l,formControl:m,shrink:g,size:v.size,variant:v.variant,required:v.required,focused:v.focused},x=fz(b);return w.jsx(dz,{"data-shrink":g,ref:r,className:je(x.root,d),...p,ownerState:b,classes:x})});function hz(e){return nt("MuiLinearProgress",e)}Ge("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Wh=4,Kh=Hi`
  0% {
    left: -35%;
    right: 100%;
  }

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

  100% {
    left: 100%;
    right: -90%;
  }
`,mz=typeof Kh!="string"?Io`
        animation: ${Kh} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
      `:null,Qh=Hi`
  0% {
    left: -200%;
    right: 100%;
  }

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

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

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

  100% {
    opacity: 1;
    background-position: -200px -23px;
  }
`,yz=typeof Zh!="string"?Io`
        animation: ${Zh} 3s infinite linear;
      `:null,bz=e=>{const{classes:t,variant:r,color:a}=e,l={root:["root",`color${Te(a)}`,r],dashed:["dashed",`dashedColor${Te(a)}`],bar1:["bar","bar1",`barColor${Te(a)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",r!=="buffer"&&`barColor${Te(a)}`,r==="buffer"&&`color${Te(a)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return rt(l,hz,t)},rg=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),vz=xe("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Te(r.color)}`],t[r.variant]]}})(Ye(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Pn()).map(([t])=>({props:{color:t},style:{backgroundColor:rg(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),xz=xe("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${Te(r.color)}`]]}})(Ye(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(Pn()).map(([t])=>{const r=rg(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),yz||{animation:`${Zh} 3s infinite linear`}),Sz=xe("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t.bar1,t[`barColor${Te(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar1Indeterminate,r.variant==="determinate"&&t.bar1Determinate,r.variant==="buffer"&&t.bar1Buffer]}})(Ye(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(Pn()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Wh}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Wh}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:mz||{animation:`${Kh} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),wz=xe("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t.bar2,t[`barColor${Te(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar2Indeterminate,r.variant==="buffer"&&t.bar2Buffer]}})(Ye(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(Pn()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(Pn()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:rg(e,t),transition:`transform .${Wh}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:gz||{animation:`${Qh} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),Cz=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiLinearProgress"}),{className:l,color:s="primary",value:u,valueBuffer:f,variant:d="indeterminate",...p}=a,m={...a,color:s,variant:d},g=bz(m),v=Ns(),b={},x={bar1:{},bar2:{}};if((d==="determinate"||d==="buffer")&&u!==void 0){b["aria-valuenow"]=Math.round(u),b["aria-valuemin"]=0,b["aria-valuemax"]=100;let C=u-100;v&&(C=-C),x.bar1.transform=`translateX(${C}%)`}if(d==="buffer"&&f!==void 0){let C=(f||0)-100;v&&(C=-C),x.bar2.transform=`translateX(${C}%)`}return w.jsxs(vz,{className:je(g.root,l),ownerState:m,role:"progressbar",...b,ref:r,...p,children:[d==="buffer"?w.jsx(xz,{className:g.dashed,ownerState:m}):null,w.jsx(Sz,{className:g.bar1,ownerState:m,style:x.bar1}),d==="determinate"?null:w.jsx(wz,{className:g.bar2,ownerState:m,style:x.bar2})]})}),br=S.createContext({});function kz(e){return nt("MuiList",e)}Ge("MuiList",["root","padding","dense","subheader"]);const Ez=e=>{const{classes:t,disablePadding:r,dense:a,subheader:l}=e;return rt({root:["root",!r&&"padding",a&&"dense",l&&"subheader"]},kz,t)},Tz=xe("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.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}}]}),ig=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiList"}),{children:l,className:s,component:u="ul",dense:f=!1,disablePadding:d=!1,subheader:p,...m}=a,g=S.useMemo(()=>({dense:f}),[f]),v={...a,component:u,dense:f,disablePadding:d},b=Ez(v);return w.jsx(br.Provider,{value:g,children:w.jsxs(Tz,{as:u,className:je(b.root,s),ref:r,ownerState:v,...m,children:[p,l]})})});function Rz(e){return nt("MuiListItem",e)}Ge("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function Az(e){return nt("MuiListItemButton",e)}const wo=Ge("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Mz=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters]},Oz=e=>{const{alignItems:t,classes:r,dense:a,disabled:l,disableGutters:s,divider:u,selected:f}=e,p=rt({root:["root",a&&"dense",!s&&"gutters",u&&"divider",l&&"disabled",t==="flex-start"&&"alignItemsFlexStart",f&&"selected"]},Az,r);return{...r,...p}},zz=xe(yf,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Mz})(Ye(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wo.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${wo.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${wo.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)}},[`&.${wo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),ks=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiListItemButton"}),{alignItems:l="center",autoFocus:s=!1,component:u="div",children:f,dense:d=!1,disableGutters:p=!1,divider:m=!1,focusVisibleClassName:g,selected:v=!1,className:b,...x}=a,C=S.useContext(br),R=S.useMemo(()=>({dense:d||C.dense||!1,alignItems:l,disableGutters:p}),[l,C.dense,d,p]),E=S.useRef(null);yn(()=>{s&&E.current&&E.current.focus()},[s]);const M={...a,alignItems:l,dense:R.dense,disableGutters:p,divider:m,selected:v},O=Oz(M),L=Lt(E,r);return w.jsx(br.Provider,{value:R,children:w.jsx(zz,{ref:L,href:x.href||x.to,component:(x.href||x.to)&&u==="div"?"button":u,focusVisibleClassName:je(O.focusVisible,g),ownerState:M,className:je(O.root,b),...x,classes:O,children:f})})});function Dz(e){return nt("MuiListItemSecondaryAction",e)}Ge("MuiListItemSecondaryAction",["root","disableGutters"]);const jz=e=>{const{disableGutters:t,classes:r}=e;return rt({root:["root",t&&"disableGutters"]},Dz,r)},Lz=xe("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Aw=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiListItemSecondaryAction"}),{className:l,...s}=a,u=S.useContext(br),f={...a,disableGutters:u.disableGutters},d=jz(f);return w.jsx(Lz,{className:je(d.root,l),ownerState:f,ref:r,...s})});Aw.muiName="ListItemSecondaryAction";const Pz=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.hasSecondaryAction&&t.secondaryAction]},Nz=e=>{const{alignItems:t,classes:r,dense:a,disableGutters:l,disablePadding:s,divider:u,hasSecondaryAction:f}=e;return rt({root:["root",a&&"dense",!l&&"gutters",!s&&"padding",u&&"divider",t==="flex-start"&&"alignItemsFlexStart",f&&"secondaryAction"],container:["container"]},Rz,r)},_z=xe("div",{name:"MuiListItem",slot:"Root",overridesResolver:Pz})(Ye(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${wo.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),Bz=xe("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Es=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiListItem"}),{alignItems:l="center",children:s,className:u,component:f,components:d={},componentsProps:p={},ContainerComponent:m="li",ContainerProps:{className:g,...v}={},dense:b=!1,disableGutters:x=!1,disablePadding:C=!1,divider:R=!1,secondaryAction:E,slotProps:M={},slots:O={},...L}=a,j=S.useContext(br),z=S.useMemo(()=>({dense:b||j.dense||!1,alignItems:l,disableGutters:x}),[l,j.dense,b,x]),I=S.useRef(null),V=S.Children.toArray(s),F=V.length&&Ac(V[V.length-1],["ListItemSecondaryAction"]),N={...a,alignItems:l,dense:z.dense,disableGutters:x,disablePadding:C,divider:R,hasSecondaryAction:F},q=Nz(N),A=Lt(I,r),B=O.root||d.Root||_z,H=M.root||p.root||{},U={className:je(q.root,H.className,u),...L};let _=f||"li";return F?(_=!U.component&&!f?"div":_,m==="li"&&(_==="li"?_="div":U.component==="li"&&(U.component="div")),w.jsx(br.Provider,{value:z,children:w.jsxs(Bz,{as:m,className:je(q.container,g),ref:A,ownerState:N,...v,children:[w.jsx(B,{...H,...!Mo(B)&&{as:_,ownerState:{...N,...H.ownerState}},...U,children:V}),V.pop()]})})):w.jsx(br.Provider,{value:z,children:w.jsxs(B,{...H,as:_,ref:A,...!Mo(B)&&{ownerState:{...N,...H.ownerState}},...U,children:[V,E&&w.jsx(Aw,{children:E})]})})});function Iz(e){return nt("MuiListItemIcon",e)}const V1=Ge("MuiListItemIcon",["root","alignItemsFlexStart"]),$z=e=>{const{alignItems:t,classes:r}=e;return rt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Iz,r)},Hz=xe("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Ye(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),ag=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiListItemIcon"}),{className:l,...s}=a,u=S.useContext(br),f={...a,alignItems:u.alignItems},d=$z(f);return w.jsx(Hz,{className:je(d.root,l),ownerState:f,ref:r,...s})});function Uz(e){return nt("MuiListItemText",e)}const ko=Ge("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Fz=e=>{const{classes:t,inset:r,primary:a,secondary:l,dense:s}=e;return rt({root:["root",r&&"inset",s&&"dense",a&&l&&"multiline"],primary:["primary"],secondary:["secondary"]},Uz,t)},qz=xe("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ko.primary}`]:t.primary},{[`& .${ko.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${S1.root}:where(& .${ko.primary})`]:{display:"block"},[`.${S1.root}:where(& .${ko.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),og=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiListItemText"}),{children:l,className:s,disableTypography:u=!1,inset:f=!1,primary:d,primaryTypographyProps:p,secondary:m,secondaryTypographyProps:g,slots:v={},slotProps:b={},...x}=a,{dense:C}=S.useContext(br);let R=d??l,E=m;const M={...a,disableTypography:u,inset:f,primary:!!R,secondary:!!E,dense:C},O=Fz(M),L={slots:v,slotProps:{primary:p,secondary:g,...b}},[j,z]=at("root",{className:je(O.root,s),elementType:qz,externalForwardedProps:{...L,...x},ownerState:M,ref:r}),[I,V]=at("primary",{className:O.primary,elementType:it,externalForwardedProps:L,ownerState:M}),[F,N]=at("secondary",{className:O.secondary,elementType:it,externalForwardedProps:L,ownerState:M});return R!=null&&R.type!==it&&!u&&(R=w.jsx(I,{variant:C?"body2":"body1",component:V?.variant?void 0:"span",...V,children:R})),E!=null&&E.type!==it&&!u&&(E=w.jsx(F,{variant:"body2",color:"textSecondary",...N,children:E})),w.jsxs(j,{...z,children:[R,E]})});function ih(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Y1(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Mw(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function Xl(e,t,r,a,l,s){let u=!1,f=l(e,t,t?r:!1);for(;f;){if(f===e.firstChild){if(u)return!1;u=!0}const d=a?!1:f.disabled||f.getAttribute("aria-disabled")==="true";if(!f.hasAttribute("tabindex")||!Mw(f,s)||d)f=l(e,f,r);else return f.focus(),!0}return!1}const Vz=S.forwardRef(function(t,r){const{actions:a,autoFocus:l=!1,autoFocusItem:s=!1,children:u,className:f,disabledItemsFocusable:d=!1,disableListWrap:p=!1,onKeyDown:m,variant:g="selectedMenu",...v}=t,b=S.useRef(null),x=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});yn(()=>{l&&b.current.focus()},[l]),S.useImperativeHandle(a,()=>({adjustStyleForScrollbar:(O,{direction:L})=>{const j=!b.current.style.width;if(O.clientHeight<b.current.clientHeight&&j){const z=`${kw(Sn(O))}px`;b.current.style[L==="rtl"?"paddingLeft":"paddingRight"]=z,b.current.style.width=`calc(100% + ${z})`}return b.current}}),[]);const C=O=>{const L=b.current,j=O.key;if(O.ctrlKey||O.metaKey||O.altKey){m&&m(O);return}const I=Kt(L).activeElement;if(j==="ArrowDown")O.preventDefault(),Xl(L,I,p,d,ih);else if(j==="ArrowUp")O.preventDefault(),Xl(L,I,p,d,Y1);else if(j==="Home")O.preventDefault(),Xl(L,null,p,d,ih);else if(j==="End")O.preventDefault(),Xl(L,null,p,d,Y1);else if(j.length===1){const V=x.current,F=j.toLowerCase(),N=performance.now();V.keys.length>0&&(N-V.lastTime>500?(V.keys=[],V.repeating=!0,V.previousKeyMatched=!0):V.repeating&&F!==V.keys[0]&&(V.repeating=!1)),V.lastTime=N,V.keys.push(F);const q=I&&!V.repeating&&Mw(I,V);V.previousKeyMatched&&(q||Xl(L,I,!1,d,ih,V))?O.preventDefault():V.previousKeyMatched=!1}m&&m(O)},R=Lt(b,r);let E=-1;S.Children.forEach(u,(O,L)=>{if(!S.isValidElement(O)){E===L&&(E+=1,E>=u.length&&(E=-1));return}O.props.disabled||(g==="selectedMenu"&&O.props.selected||E===-1)&&(E=L),E===L&&(O.props.disabled||O.props.muiSkipListHighlight||O.type.muiSkipListHighlight)&&(E+=1,E>=u.length&&(E=-1))});const M=S.Children.map(u,(O,L)=>{if(L===E){const j={};return s&&(j.autoFocus=!0),O.props.tabIndex===void 0&&g==="selectedMenu"&&(j.tabIndex=0),S.cloneElement(O,j)}return O});return w.jsx(ig,{role:"menu",ref:R,className:f,onKeyDown:C,tabIndex:l?0:-1,...v,children:M})});function Yz(e){return nt("MuiPopover",e)}Ge("MuiPopover",["root","paper"]);function G1(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function X1(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function W1(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function hc(e){return typeof e=="function"?e():e}const Gz=e=>{const{classes:t}=e;return rt({root:["root"],paper:["paper"]},Yz,t)},Xz=xe(Ew,{name:"MuiPopover",slot:"Root"})({}),Ow=xe(qm,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Wz=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiPopover"}),{action:l,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:d="anchorEl",children:p,className:m,container:g,elevation:v=8,marginThreshold:b=16,open:x,PaperProps:C={},slots:R={},slotProps:E={},transformOrigin:M={vertical:"top",horizontal:"left"},TransitionComponent:O,transitionDuration:L="auto",TransitionProps:j={},disableScrollLock:z=!1,...I}=a,V=S.useRef(),F={...a,anchorOrigin:u,anchorReference:d,elevation:v,marginThreshold:b,transformOrigin:M,TransitionComponent:O,transitionDuration:L,TransitionProps:j},N=Gz(F),q=S.useCallback(()=>{if(d==="anchorPosition")return f;const ve=hc(s),ge=(ve&&ve.nodeType===1?ve:Kt(V.current).body).getBoundingClientRect();return{top:ge.top+G1(ge,u.vertical),left:ge.left+X1(ge,u.horizontal)}},[s,u.horizontal,u.vertical,f,d]),A=S.useCallback(ve=>({vertical:G1(ve,M.vertical),horizontal:X1(ve,M.horizontal)}),[M.horizontal,M.vertical]),B=S.useCallback(ve=>{const pe={width:ve.offsetWidth,height:ve.offsetHeight},ge=A(pe);if(d==="none")return{top:null,left:null,transformOrigin:W1(ge)};const Ce=q();let de=Ce.top-ge.vertical,Oe=Ce.left-ge.horizontal;const ze=de+pe.height,Me=Oe+pe.width,qe=Sn(hc(s)),Xe=qe.innerHeight-b,Ze=qe.innerWidth-b;if(b!==null&&de<b){const We=de-b;de-=We,ge.vertical+=We}else if(b!==null&&ze>Xe){const We=ze-Xe;de-=We,ge.vertical+=We}if(b!==null&&Oe<b){const We=Oe-b;Oe-=We,ge.horizontal+=We}else if(Me>Ze){const We=Me-Ze;Oe-=We,ge.horizontal+=We}return{top:`${Math.round(de)}px`,left:`${Math.round(Oe)}px`,transformOrigin:W1(ge)}},[s,d,q,A,b]),[H,U]=S.useState(x),_=S.useCallback(()=>{const ve=V.current;if(!ve)return;const pe=B(ve);pe.top!==null&&ve.style.setProperty("top",pe.top),pe.left!==null&&(ve.style.left=pe.left),ve.style.transformOrigin=pe.transformOrigin,U(!0)},[B]);S.useEffect(()=>(z&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_)),[s,z,_]);const G=()=>{_()},Z=()=>{U(!1)};S.useEffect(()=>{x&&_()}),S.useImperativeHandle(l,()=>x?{updatePosition:()=>{_()}}:null,[x,_]),S.useEffect(()=>{if(!x)return;const ve=$m(()=>{_()}),pe=Sn(hc(s));return pe.addEventListener("resize",ve),()=>{ve.clear(),pe.removeEventListener("resize",ve)}},[s,x,_]);let J=L;const k={slots:{transition:O,...R},slotProps:{transition:j,paper:C,...E}},[K,re]=at("transition",{elementType:Cs,externalForwardedProps:k,ownerState:F,getSlotProps:ve=>({...ve,onEntering:(pe,ge)=>{ve.onEntering?.(pe,ge),G()},onExited:pe=>{ve.onExited?.(pe),Z()}}),additionalProps:{appear:!0,in:x}});L==="auto"&&!K.muiSupportAuto&&(J=void 0);const P=g||(s?Kt(hc(s)).body:void 0),[se,{slots:me,slotProps:fe,...ce}]=at("root",{ref:r,elementType:Xz,externalForwardedProps:{...k,...I},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:R.backdrop},slotProps:{backdrop:Ic(typeof E.backdrop=="function"?E.backdrop(F):E.backdrop,{invisible:!0})},container:P,open:x},ownerState:F,className:je(N.root,m)}),[ye,be]=at("paper",{ref:V,className:N.paper,elementType:Ow,externalForwardedProps:k,shouldForwardComponentProp:!0,additionalProps:{elevation:v,style:H?void 0:{opacity:0}},ownerState:F});return w.jsx(se,{...ce,...!Mo(se)&&{slots:me,slotProps:fe,disableScrollLock:z},children:w.jsx(K,{...re,timeout:J,children:w.jsx(ye,{...be,children:p})})})});function Kz(e){return nt("MuiMenu",e)}Ge("MuiMenu",["root","paper","list"]);const Qz={vertical:"top",horizontal:"right"},Zz={vertical:"top",horizontal:"left"},Jz=e=>{const{classes:t}=e;return rt({root:["root"],paper:["paper"],list:["list"]},Kz,t)},e6=xe(Wz,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),t6=xe(Ow,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),n6=xe(Vz,{name:"MuiMenu",slot:"List"})({outline:0}),Hs=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiMenu"}),{autoFocus:l=!0,children:s,className:u,disableAutoFocusItem:f=!1,MenuListProps:d={},onClose:p,open:m,PaperProps:g={},PopoverClasses:v,transitionDuration:b="auto",TransitionProps:{onEntering:x,...C}={},variant:R="selectedMenu",slots:E={},slotProps:M={},...O}=a,L=Ns(),j={...a,autoFocus:l,disableAutoFocusItem:f,MenuListProps:d,onEntering:x,PaperProps:g,transitionDuration:b,TransitionProps:C,variant:R},z=Jz(j),I=l&&!f&&m,V=S.useRef(null),F=(J,k)=>{V.current&&V.current.adjustStyleForScrollbar(J,{direction:L?"rtl":"ltr"}),x&&x(J,k)},N=J=>{J.key==="Tab"&&(J.preventDefault(),p&&p(J,"tabKeyDown"))};let q=-1;S.Children.map(s,(J,k)=>{S.isValidElement(J)&&(J.props.disabled||(R==="selectedMenu"&&J.props.selected||q===-1)&&(q=k))});const A={slots:E,slotProps:{list:d,transition:C,paper:g,...M}},B=xw({elementType:E.root,externalSlotProps:M.root,ownerState:j,className:[z.root,u]}),[H,U]=at("paper",{className:z.paper,elementType:t6,externalForwardedProps:A,shouldForwardComponentProp:!0,ownerState:j}),[_,G]=at("list",{className:je(z.list,d.className),elementType:n6,shouldForwardComponentProp:!0,externalForwardedProps:A,getSlotProps:J=>({...J,onKeyDown:k=>{N(k),J.onKeyDown?.(k)}}),ownerState:j}),Z=typeof A.slotProps.transition=="function"?A.slotProps.transition(j):A.slotProps.transition;return w.jsx(e6,{onClose:p,anchorOrigin:{vertical:"bottom",horizontal:L?"right":"left"},transformOrigin:L?Qz:Zz,slots:{root:E.root,paper:H,backdrop:E.backdrop,...E.transition&&{transition:E.transition}},slotProps:{root:B,paper:U,backdrop:typeof M.backdrop=="function"?M.backdrop(j):M.backdrop,transition:{...Z,onEntering:(...J)=>{F(...J),Z?.onEntering?.(...J)}}},open:m,ref:r,transitionDuration:b,ownerState:j,...O,classes:v,children:w.jsx(_,{actions:V,autoFocus:l&&(q===-1||f),autoFocusItem:I,variant:R,...G,children:s})})});function r6(e){return nt("MuiMenuItem",e)}const Wl=Ge("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),i6=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},a6=e=>{const{disabled:t,dense:r,divider:a,disableGutters:l,selected:s,classes:u}=e,d=rt({root:["root",r&&"dense",t&&"disabled",!l&&"gutters",a&&"divider",s&&"selected"]},r6,u);return{...u,...d}},o6=xe(yf,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:i6})(Ye(({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"}},[`&.${Wl.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Wl.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Wl.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)}},[`&.${Wl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Wl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${U1.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${U1.inset}`]:{marginLeft:52},[`& .${ko.root}`]:{marginTop:0,marginBottom:0},[`& .${ko.inset}`]:{paddingLeft:36},[`& .${V1.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,[`& .${V1.root} svg`]:{fontSize:"1.25rem"}}}]}))),lg=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiMenuItem"}),{autoFocus:l=!1,component:s="li",dense:u=!1,divider:f=!1,disableGutters:d=!1,focusVisibleClassName:p,role:m="menuitem",tabIndex:g,className:v,...b}=a,x=S.useContext(br),C=S.useMemo(()=>({dense:u||x.dense||!1,disableGutters:d}),[x.dense,u,d]),R=S.useRef(null);yn(()=>{l&&R.current&&R.current.focus()},[l]);const E={...a,dense:C.dense,divider:f,disableGutters:d},M=a6(a),O=Lt(R,r);let L;return a.disabled||(L=g!==void 0?g:-1),w.jsx(br.Provider,{value:C,children:w.jsx(o6,{ref:O,role:m,tabIndex:L,component:s,focusVisibleClassName:je(M.focusVisible,p),className:je(M.root,v),...b,ownerState:E,classes:M})})});function l6(e){return nt("MuiNativeSelect",e)}const sg=Ge("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),s6=e=>{const{classes:t,variant:r,disabled:a,multiple:l,open:s,error:u}=e,f={select:["select",r,a&&"disabled",l&&"multiple",u&&"error"],icon:["icon",`icon${Te(r)}`,s&&"iconOpen",a&&"disabled"]};return rt(f,l6,t)},zw=xe("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${sg.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}}}]})),u6=xe(zw,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Cn,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${sg.multiple}`]:t.multiple}]}})({}),Dw=xe("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${sg.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}}]})),c6=xe(Dw,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Te(r.variant)}`],r.open&&t.iconOpen]}})({}),f6=S.forwardRef(function(t,r){const{className:a,disabled:l,error:s,IconComponent:u,inputRef:f,variant:d="standard",...p}=t,m={...t,disabled:l,variant:d,error:s},g=s6(m);return w.jsxs(S.Fragment,{children:[w.jsx(u6,{ownerState:m,className:je(g.select,a),disabled:l,ref:f||r,...p}),t.multiple?null:w.jsx(c6,{as:u,ownerState:m,className:g.icon})]})});function d6(e){const{children:t,defer:r=!1,fallback:a=null}=e,[l,s]=S.useState(!1);return yn(()=>{r||s(!0)},[r]),S.useEffect(()=>{r&&s(!0)},[r]),l?t:a}var K1;const p6=xe("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Cn})({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%"}),h6=xe("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Cn})(Ye(({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 m6(e){const{children:t,classes:r,className:a,label:l,notched:s,...u}=e,f=l!=null&&l!=="",d={...e,notched:s,withLabel:f};return w.jsx(p6,{"aria-hidden":!0,className:a,ownerState:d,...u,children:w.jsx(h6,{ownerState:d,children:f?w.jsx("span",{children:l}):K1||(K1=w.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const g6=e=>{const{classes:t}=e,a=rt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},VO,t);return{...t,...a}},y6=xe(Sf,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:vf})(Ye(({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 .${Or.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Or.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Or.focused} .${Or.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Pn()).map(([r])=>({props:{color:r},style:{[`&.${Or.focused} .${Or.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${Or.error} .${Or.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Or.disabled} .${Or.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:a})=>r.multiline&&a==="small",style:{padding:"8.5px 14px"}}]}})),b6=xe(m6,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Ye(({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}})),v6=xe(wf,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:xf})(Ye(({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}}]}))),ug=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiOutlinedInput"}),{components:l={},fullWidth:s=!1,inputComponent:u="input",label:f,multiline:d=!1,notched:p,slots:m={},slotProps:g={},type:v="text",...b}=a,x=g6(a),C=Uo(),R=Ho({props:a,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),E={...a,color:R.color||"primary",disabled:R.disabled,error:R.error,focused:R.focused,formControl:C,fullWidth:s,hiddenLabel:R.hiddenLabel,multiline:d,size:R.size,type:v},M=m.root??l.Root??y6,O=m.input??l.Input??v6,[L,j]=at("notchedOutline",{elementType:b6,className:x.notchedOutline,shouldForwardComponentProp:!0,ownerState:E,externalForwardedProps:{slots:m,slotProps:g},additionalProps:{label:f!=null&&f!==""&&R.required?w.jsxs(S.Fragment,{children:[f," ","*"]}):f}});return w.jsx(Cf,{slots:{root:M,input:O},slotProps:g,renderSuffix:z=>w.jsx(L,{...j,notched:typeof p<"u"?p:!!(z.startAdornment||z.filled||z.focused)}),fullWidth:s,inputComponent:u,multiline:d,ref:r,type:v,...b,classes:{...x,notchedOutline:null}})});ug.muiName="Input";function jw(e){return nt("MuiSelect",e)}const Kl=Ge("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Q1;const x6=xe(zw,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Kl.select}`]:t.select},{[`&.${Kl.select}`]:t[r.variant]},{[`&.${Kl.error}`]:t.error},{[`&.${Kl.multiple}`]:t.multiple}]}})({[`&.${Kl.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),S6=xe(Dw,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Te(r.variant)}`],r.open&&t.iconOpen]}})({}),w6=xe("input",{shouldForwardProp:e=>ew(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Z1(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function C6(e){return e==null||typeof e=="string"&&!e.trim()}const k6=e=>{const{classes:t,variant:r,disabled:a,multiple:l,open:s,error:u}=e,f={select:["select",r,a&&"disabled",l&&"multiple",u&&"error"],icon:["icon",`icon${Te(r)}`,s&&"iconOpen",a&&"disabled"],nativeInput:["nativeInput"]};return rt(f,jw,t)},E6=S.forwardRef(function(t,r){const{"aria-describedby":a,"aria-label":l,autoFocus:s,autoWidth:u,children:f,className:d,defaultOpen:p,defaultValue:m,disabled:g,displayEmpty:v,error:b=!1,IconComponent:x,inputRef:C,labelId:R,MenuProps:E={},multiple:M,name:O,onBlur:L,onChange:j,onClose:z,onFocus:I,onOpen:V,open:F,readOnly:N,renderValue:q,required:A,SelectDisplayProps:B={},tabIndex:H,type:U,value:_,variant:G="standard",...Z}=t,[J,k]=Ih({controlled:_,default:m,name:"Select"}),[K,re]=Ih({controlled:F,default:p,name:"Select"}),P=S.useRef(null),se=S.useRef(null),[me,fe]=S.useState(null),{current:ce}=S.useRef(F!=null),[ye,be]=S.useState(),ve=Lt(r,C),pe=S.useCallback(Re=>{se.current=Re,Re&&fe(Re)},[]),ge=me?.parentNode;S.useImperativeHandle(ve,()=>({focus:()=>{se.current.focus()},node:P.current,value:J}),[J]),S.useEffect(()=>{p&&K&&me&&!ce&&(be(u?null:ge.clientWidth),se.current.focus())},[me,u]),S.useEffect(()=>{s&&se.current.focus()},[s]),S.useEffect(()=>{if(!R)return;const Re=Kt(se.current).getElementById(R);if(Re){const Be=()=>{getSelection().isCollapsed&&se.current.focus()};return Re.addEventListener("click",Be),()=>{Re.removeEventListener("click",Be)}}},[R]);const Ce=(Re,Be)=>{Re?V&&V(Be):z&&z(Be),ce||(be(u?null:ge.clientWidth),re(Re))},de=Re=>{Re.button===0&&(Re.preventDefault(),se.current.focus(),Ce(!0,Re))},Oe=Re=>{Ce(!1,Re)},ze=S.Children.toArray(f),Me=Re=>{const Be=ze.find(st=>st.props.value===Re.target.value);Be!==void 0&&(k(Be.props.value),j&&j(Re,Be))},qe=Re=>Be=>{let st;if(Be.currentTarget.hasAttribute("tabindex")){if(M){st=Array.isArray(J)?J.slice():[];const zt=J.indexOf(Re.props.value);zt===-1?st.push(Re.props.value):st.splice(zt,1)}else st=Re.props.value;if(Re.props.onClick&&Re.props.onClick(Be),J!==st&&(k(st),j)){const zt=Be.nativeEvent||Be,Vi=new zt.constructor(zt.type,zt);Object.defineProperty(Vi,"target",{writable:!0,value:{value:st,name:O}}),j(Vi,Re)}M||Ce(!1,Be)}},Xe=Re=>{N||[" ","ArrowUp","ArrowDown","Enter"].includes(Re.key)&&(Re.preventDefault(),Ce(!0,Re))},Ze=me!==null&&K,We=Re=>{!Ze&&L&&(Object.defineProperty(Re,"target",{writable:!0,value:{value:J,name:O}}),L(Re))};delete Z["aria-invalid"];let Ee,Ut;const ht=[];let tn=!1;(Vc({value:J})||v)&&(q?Ee=q(J):tn=!0);const ne=ze.map(Re=>{if(!S.isValidElement(Re))return null;let Be;if(M){if(!Array.isArray(J))throw new Error(li(2));Be=J.some(st=>Z1(st,Re.props.value)),Be&&tn&&ht.push(Re.props.children)}else Be=Z1(J,Re.props.value),Be&&tn&&(Ut=Re.props.children);return S.cloneElement(Re,{"aria-selected":Be?"true":"false",onClick:qe(Re),onKeyUp:st=>{st.key===" "&&st.preventDefault(),Re.props.onKeyUp&&Re.props.onKeyUp(st)},role:"option",selected:Be,value:void 0,"data-value":Re.props.value})});tn&&(M?ht.length===0?Ee=null:Ee=ht.reduce((Re,Be,st)=>(Re.push(Be),st<ht.length-1&&Re.push(", "),Re),[]):Ee=Ut);let ie=ye;!u&&ce&&me&&(ie=ge.clientWidth);let Se;typeof H<"u"?Se=H:Se=g?null:0;const we=B.id||(O?`mui-component-select-${O}`:void 0),$e={...t,variant:G,value:J,open:Ze,error:b},Le=k6($e),Pt={...E.PaperProps,...typeof E.slotProps?.paper=="function"?E.slotProps.paper($e):E.slotProps?.paper},kt={...E.MenuListProps,...typeof E.slotProps?.list=="function"?E.slotProps.list($e):E.slotProps?.list},Qt=$o();return w.jsxs(S.Fragment,{children:[w.jsx(x6,{as:"div",ref:pe,tabIndex:Se,role:"combobox","aria-controls":Ze?Qt:void 0,"aria-disabled":g?"true":void 0,"aria-expanded":Ze?"true":"false","aria-haspopup":"listbox","aria-label":l,"aria-labelledby":[R,we].filter(Boolean).join(" ")||void 0,"aria-describedby":a,"aria-required":A?"true":void 0,"aria-invalid":b?"true":void 0,onKeyDown:Xe,onMouseDown:g||N?null:de,onBlur:We,onFocus:I,...B,ownerState:$e,className:je(B.className,Le.select,d),id:we,children:C6(Ee)?Q1||(Q1=w.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Ee}),w.jsx(w6,{"aria-invalid":b,value:Array.isArray(J)?J.join(","):J,name:O,ref:P,"aria-hidden":!0,onChange:Me,tabIndex:-1,disabled:g,className:Le.nativeInput,autoFocus:s,required:A,...Z,ownerState:$e}),w.jsx(S6,{as:x,className:Le.icon,ownerState:$e}),w.jsx(Hs,{id:`menu-${O||""}`,anchorEl:ge,open:Ze,onClose:Oe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...E,slotProps:{...E.slotProps,list:{"aria-labelledby":R,role:"listbox","aria-multiselectable":M?"true":void 0,disableListWrap:!0,id:Qt,...kt},paper:{...Pt,style:{minWidth:ie,...Pt!=null?Pt.style:null}}},children:ne})]})}),T6=e=>{const{classes:t}=e,a=rt({root:["root"]},jw,t);return{...t,...a}},cg={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Cn(e)&&e!=="variant"},R6=xe(ng,cg)(""),A6=xe(ug,cg)(""),M6=xe(tg,cg)(""),Lw=S.forwardRef(function(t,r){const a=Qe({name:"MuiSelect",props:t}),{autoWidth:l=!1,children:s,classes:u={},className:f,defaultOpen:d=!1,displayEmpty:p=!1,IconComponent:m=GO,id:g,input:v,inputProps:b,label:x,labelId:C,MenuProps:R,multiple:E=!1,native:M=!1,onClose:O,onOpen:L,open:j,renderValue:z,SelectDisplayProps:I,variant:V="outlined",...F}=a,N=M?f6:E6,q=Uo(),A=Ho({props:a,muiFormControl:q,states:["variant","error"]}),B=A.variant||V,H={...a,variant:B,classes:u},U=T6(H),{root:_,...G}=U,Z=v||{standard:w.jsx(R6,{ownerState:H}),outlined:w.jsx(A6,{label:x,ownerState:H}),filled:w.jsx(M6,{ownerState:H})}[B],J=Lt(r,Fi(Z));return w.jsx(S.Fragment,{children:S.cloneElement(Z,{inputComponent:N,inputProps:{children:s,error:A.error,IconComponent:m,variant:B,type:void 0,multiple:E,...M?{id:g}:{autoWidth:l,defaultOpen:d,displayEmpty:p,labelId:C,MenuProps:R,onClose:O,onOpen:L,open:j,renderValue:z,SelectDisplayProps:{id:g,...I}},...b,classes:b?gn(G,b.classes):G,...v?v.props.inputProps:{}},...(E&&M||p)&&B==="outlined"?{notched:!0}:{},ref:J,className:je(Z.props.className,f,U.root),...!v&&{variant:B},...F})})});Lw.muiName="Select";function O6(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:a,open:l,resumeHideDuration:s}=e,u=xa();S.useEffect(()=>{if(!l)return;function E(M){M.defaultPrevented||M.key==="Escape"&&a?.(M,"escapeKeyDown")}return document.addEventListener("keydown",E),()=>{document.removeEventListener("keydown",E)}},[l,a]);const f=wn((E,M)=>{a?.(E,M)}),d=wn(E=>{!a||E==null||u.start(E,()=>{f(null,"timeout")})});S.useEffect(()=>(l&&d(t),u.clear),[l,t,d,u]);const p=E=>{a?.(E,"clickaway")},m=u.clear,g=S.useCallback(()=>{t!=null&&d(s??t*.5)},[t,s,d]),v=E=>M=>{const O=E.onBlur;O?.(M),g()},b=E=>M=>{const O=E.onFocus;O?.(M),m()},x=E=>M=>{const O=E.onMouseEnter;O?.(M),m()},C=E=>M=>{const O=E.onMouseLeave;O?.(M),g()};return S.useEffect(()=>{if(!r&&l)return window.addEventListener("focus",g),window.addEventListener("blur",m),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",m)}},[r,l,g,m]),{getRootProps:(E={})=>{const M={...Hc(e),...Hc(E)};return{role:"presentation",...E,...M,onBlur:v(M),onFocus:b(M),onMouseEnter:x(M),onMouseLeave:C(M)}},onClickAway:p}}function z6(e){return nt("MuiSnackbarContent",e)}Ge("MuiSnackbarContent",["root","message","action"]);const D6=e=>{const{classes:t}=e;return rt({root:["root"],action:["action"],message:["message"]},z6,t)},j6=xe(qm,{name:"MuiSnackbarContent",slot:"Root"})(Ye(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(jh(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:jh(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),L6=xe("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),P6=xe("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),N6=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiSnackbarContent"}),{action:l,className:s,message:u,role:f="alert",...d}=a,p=a,m=D6(p);return w.jsxs(j6,{role:f,elevation:6,className:je(m.root,s),ownerState:p,ref:r,...d,children:[w.jsx(L6,{className:m.message,ownerState:p,children:u}),l?w.jsx(P6,{className:m.action,ownerState:p,children:l}):null]})});function _6(e){return nt("MuiSnackbar",e)}Ge("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const B6=e=>{const{classes:t,anchorOrigin:r}=e,a={root:["root",`anchorOrigin${Te(r.vertical)}${Te(r.horizontal)}`]};return rt(a,_6,t)},I6=xe("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${Te(r.anchorOrigin.vertical)}${Te(r.anchorOrigin.horizontal)}`]]}})(Ye(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),$6=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiSnackbar"}),l=en(),s={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{action:u,anchorOrigin:{vertical:f,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:p=null,children:m,className:g,ClickAwayListenerProps:v,ContentProps:b,disableWindowBlurListener:x=!1,message:C,onBlur:R,onClose:E,onFocus:M,onMouseEnter:O,onMouseLeave:L,open:j,resumeHideDuration:z,slots:I={},slotProps:V={},TransitionComponent:F,transitionDuration:N=s,TransitionProps:{onEnter:q,onExited:A,...B}={},...H}=a,U={...a,anchorOrigin:{vertical:f,horizontal:d},autoHideDuration:p,disableWindowBlurListener:x,TransitionComponent:F,transitionDuration:N},_=B6(U),{getRootProps:G,onClickAway:Z}=O6({...U}),[J,k]=S.useState(!0),K=Ce=>{k(!0),A&&A(Ce)},re=(Ce,de)=>{k(!1),q&&q(Ce,de)},P={slots:{transition:F,...I},slotProps:{content:b,clickAwayListener:v,transition:B,...V}},[se,me]=at("root",{ref:r,className:[_.root,g],elementType:I6,getSlotProps:G,externalForwardedProps:{...P,...H},ownerState:U}),[fe,{ownerState:ce,...ye}]=at("clickAwayListener",{elementType:g3,externalForwardedProps:P,getSlotProps:Ce=>({onClickAway:(...de)=>{const Oe=de[0];Ce.onClickAway?.(...de),!Oe?.defaultMuiPrevented&&Z(...de)}}),ownerState:U}),[be,ve]=at("content",{elementType:N6,shouldForwardComponentProp:!0,externalForwardedProps:P,additionalProps:{message:C,action:u},ownerState:U}),[pe,ge]=at("transition",{elementType:Cs,externalForwardedProps:P,getSlotProps:Ce=>({onEnter:(...de)=>{Ce.onEnter?.(...de),re(...de)},onExited:(...de)=>{Ce.onExited?.(...de),K(...de)}}),additionalProps:{appear:!0,in:j,timeout:N,direction:f==="top"?"down":"up"},ownerState:U});return!j&&J?null:w.jsx(fe,{...ye,...I.clickAwayListener&&{ownerState:ce},children:w.jsx(se,{...me,children:w.jsx(pe,{...ge,children:m||w.jsx(be,{...ve})})})})});function H6(e){return nt("MuiTooltip",e)}const $t=Ge("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function U6(e){return Math.round(e*1e5)/1e5}const F6=e=>{const{classes:t,disableInteractive:r,arrow:a,touch:l,placement:s}=e,u={popper:["popper",!r&&"popperInteractive",a&&"popperArrow"],tooltip:["tooltip",a&&"tooltipArrow",l&&"touch",`tooltipPlacement${Te(s.split("-")[0])}`],arrow:["arrow"]};return rt(u,H6,t)},q6=xe(ww,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(Ye(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${$t.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${$t.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${$t.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${$t.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${$t.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${$t.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${$t.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${$t.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),V6=xe("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${Te(r.placement.split("-")[0])}`]]}})(Ye(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${$t.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${$t.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${$t.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${$t.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${U6(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${$t.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${$t.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${$t.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${$t.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${$t.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${$t.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${$t.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${$t.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${$t.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${$t.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Y6=xe("span",{name:"MuiTooltip",slot:"Arrow"})(Ye(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let mc=!1;const J1=new gf;let Ql={x:0,y:0};function gc(e,t){return(r,...a)=>{t&&t(r,...a),e(r,...a)}}const jn=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiTooltip"}),{arrow:l=!1,children:s,classes:u,components:f={},componentsProps:d={},describeChild:p=!1,disableFocusListener:m=!1,disableHoverListener:g=!1,disableInteractive:v=!1,disableTouchListener:b=!1,enterDelay:x=100,enterNextDelay:C=0,enterTouchDelay:R=700,followCursor:E=!1,id:M,leaveDelay:O=0,leaveTouchDelay:L=1500,onClose:j,onOpen:z,open:I,placement:V="bottom",PopperComponent:F,PopperProps:N={},slotProps:q={},slots:A={},title:B,TransitionComponent:H,TransitionProps:U,..._}=a,G=S.isValidElement(s)?s:w.jsx("span",{children:s}),Z=en(),J=Ns(),[k,K]=S.useState(),[re,P]=S.useState(null),se=S.useRef(!1),me=v||E,fe=xa(),ce=xa(),ye=xa(),be=xa(),[ve,pe]=Ih({controlled:I,default:!1,name:"Tooltip",state:"open"});let ge=ve;const Ce=$o(M),de=S.useRef(),Oe=wn(()=>{de.current!==void 0&&(document.body.style.WebkitUserSelect=de.current,de.current=void 0),be.clear()});S.useEffect(()=>Oe,[Oe]);const ze=He=>{J1.clear(),mc=!0,pe(!0),z&&!ge&&z(He)},Me=wn(He=>{J1.start(800+O,()=>{mc=!1}),pe(!1),j&&ge&&j(He),fe.start(Z.transitions.duration.shortest,()=>{se.current=!1})}),qe=He=>{se.current&&He.type!=="touchstart"||(k&&k.removeAttribute("title"),ce.clear(),ye.clear(),x||mc&&C?ce.start(mc?C:x,()=>{ze(He)}):ze(He))},Xe=He=>{ce.clear(),ye.start(O,()=>{Me(He)})},[,Ze]=S.useState(!1),We=He=>{Uc(He.target)||(Ze(!1),Xe(He))},Ee=He=>{k||K(He.currentTarget),Uc(He.target)&&(Ze(!0),qe(He))},Ut=He=>{se.current=!0;const dr=G.props;dr.onTouchStart&&dr.onTouchStart(He)},ht=He=>{Ut(He),ye.clear(),fe.clear(),Oe(),de.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",be.start(R,()=>{document.body.style.WebkitUserSelect=de.current,qe(He)})},tn=He=>{G.props.onTouchEnd&&G.props.onTouchEnd(He),Oe(),ye.start(L,()=>{Me(He)})};S.useEffect(()=>{if(!ge)return;function He(dr){dr.key==="Escape"&&Me(dr)}return document.addEventListener("keydown",He),()=>{document.removeEventListener("keydown",He)}},[Me,ge]);const ne=Lt(Fi(G),K,r);!B&&B!==0&&(ge=!1);const ie=S.useRef(),Se=He=>{const dr=G.props;dr.onMouseMove&&dr.onMouseMove(He),Ql={x:He.clientX,y:He.clientY},ie.current&&ie.current.update()},we={},$e=typeof B=="string";p?(we.title=!ge&&$e&&!g?B:null,we["aria-describedby"]=ge?Ce:null):(we["aria-label"]=$e?B:null,we["aria-labelledby"]=ge&&!$e?Ce:null);const Le={...we,..._,...G.props,className:je(_.className,G.props.className),onTouchStart:Ut,ref:ne,...E?{onMouseMove:Se}:{}},Pt={};b||(Le.onTouchStart=ht,Le.onTouchEnd=tn),g||(Le.onMouseOver=gc(qe,Le.onMouseOver),Le.onMouseLeave=gc(Xe,Le.onMouseLeave),me||(Pt.onMouseOver=qe,Pt.onMouseLeave=Xe)),m||(Le.onFocus=gc(Ee,Le.onFocus),Le.onBlur=gc(We,Le.onBlur),me||(Pt.onFocus=Ee,Pt.onBlur=We));const kt={...a,isRtl:J,arrow:l,disableInteractive:me,placement:V,PopperComponentProp:F,touch:se.current},Qt=typeof q.popper=="function"?q.popper(kt):q.popper,Re=S.useMemo(()=>{let He=[{name:"arrow",enabled:!!re,options:{element:re,padding:4}}];return N.popperOptions?.modifiers&&(He=He.concat(N.popperOptions.modifiers)),Qt?.popperOptions?.modifiers&&(He=He.concat(Qt.popperOptions.modifiers)),{...N.popperOptions,...Qt?.popperOptions,modifiers:He}},[re,N.popperOptions,Qt?.popperOptions]),Be=F6(kt),st=typeof q.transition=="function"?q.transition(kt):q.transition,zt={slots:{popper:f.Popper,transition:f.Transition??H,tooltip:f.Tooltip,arrow:f.Arrow,...A},slotProps:{arrow:q.arrow??d.arrow,popper:{...N,...Qt??d.popper},tooltip:q.tooltip??d.tooltip,transition:{...U,...st??d.transition}}},[Vi,Ys]=at("popper",{elementType:q6,externalForwardedProps:zt,ownerState:kt,className:je(Be.popper,N?.className)}),[Vo,Yi]=at("transition",{elementType:Cs,externalForwardedProps:zt,ownerState:kt}),[Of,Gs]=at("tooltip",{elementType:V6,className:Be.tooltip,externalForwardedProps:zt,ownerState:kt}),[Xs,Yo]=at("arrow",{elementType:Y6,className:Be.arrow,externalForwardedProps:zt,ownerState:kt,ref:P});return w.jsxs(S.Fragment,{children:[S.cloneElement(G,Le),w.jsx(Vi,{as:F??ww,placement:V,anchorEl:E?{getBoundingClientRect:()=>({top:Ql.y,left:Ql.x,right:Ql.x,bottom:Ql.y,width:0,height:0})}:k,popperRef:ie,open:k?ge:!1,id:Ce,transition:!0,...Pt,...Ys,popperOptions:Re,children:({TransitionProps:He})=>w.jsx(Vo,{timeout:Z.transitions.duration.shorter,...He,...Yi,children:w.jsxs(Of,{...Gs,children:[B,l?w.jsx(Xs,{...Yo}):null]})})})]})}),G6=xe("div",{name:"MuiSwipeArea",shouldForwardProp:Cn})(Ye(({theme:e})=>({position:"fixed",top:0,left:0,bottom:0,zIndex:e.zIndex.drawer-1,variants:[{props:{anchor:"left"},style:{right:"auto"}},{props:{anchor:"right"},style:{left:"auto",right:0}},{props:{anchor:"top"},style:{bottom:"auto",right:0}},{props:{anchor:"bottom"},style:{top:"auto",bottom:0,right:0}}]}))),X6=S.forwardRef(function(t,r){const{anchor:a,classes:l={},className:s,width:u,style:f,...d}=t,p=t;return w.jsx(G6,{className:je("PrivateSwipeArea-root",l.root,l[`anchor${Te(a)}`],s),ref:r,style:{[ya(a)?"width":"height"]:u,...f},ownerState:p,...d})}),yc=3,ah=20;let ii=null;function oh(e,t,r){return e==="right"?r.body.offsetWidth-t[0].pageX:t[0].pageX}function lh(e,t,r){return e==="bottom"?r.innerHeight-t[0].clientY:t[0].clientY}function Zl(e,t){return e?t.clientWidth:t.clientHeight}function ex(e,t,r,a){return Math.min(Math.max(r?t-e:a+t-e,0),a)}function W6(e,t){const r=[];for(;e&&e!==t.parentElement;){const a=Sn(t).getComputedStyle(e);a.getPropertyValue("position")==="absolute"||a.getPropertyValue("overflow-x")==="hidden"||(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&r.push(e),e=e.parentElement}return r}function K6({domTreeShapes:e,start:t,current:r,anchor:a}){const l={scrollPosition:{x:"scrollLeft",y:"scrollTop"},scrollLength:{x:"scrollWidth",y:"scrollHeight"},clientLength:{x:"clientWidth",y:"clientHeight"}};return e.some(s=>{let u=r>=t;(a==="top"||a==="left")&&(u=!u);const f=a==="left"||a==="right"?"x":"y",d=Math.round(s[l.scrollPosition[f]]),p=d>0,m=d+s[l.clientLength[f]]<s[l.scrollLength[f]];return!!(u&&m||!u&&p)})}const Q6=typeof navigator<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent),Pw=S.forwardRef(function(t,r){const a=Qe({name:"MuiSwipeableDrawer",props:t}),l=en(),s={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{anchor:u="left",disableBackdropTransition:f=!1,disableDiscovery:d=!1,disableSwipeToOpen:p=Q6,hideBackdrop:m,hysteresis:g=.52,allowSwipeInChildren:v=!1,minFlingVelocity:b=450,ModalProps:{BackdropProps:x,...C}={},onClose:R,onOpen:E,open:M=!1,PaperProps:O={},SwipeAreaProps:L,swipeAreaWidth:j=20,transitionDuration:z=s,variant:I="temporary",slots:V={},slotProps:F={},...N}=a,[q,A]=S.useState(!1),B=S.useRef({isSwiping:null}),H=S.useRef(),U=S.useRef(),_=S.useRef(),G=Lt(O.ref,_),Z=S.useRef(!1),J=S.useRef();yn(()=>{J.current=null},[M]);const k=S.useCallback((ce,ye={})=>{const{mode:be=null,changeTransition:ve=!0}=ye,pe=os(l,u),ge=["right","bottom"].includes(pe)?1:-1,Ce=ya(u),de=Ce?`translate(${ge*ce}px, 0)`:`translate(0, ${ge*ce}px)`,Oe=_.current.style;Oe.webkitTransform=de,Oe.transform=de;let ze="";if(be&&(ze=l.transitions.create("all",wa({easing:void 0,style:void 0,timeout:z},{mode:be}))),ve&&(Oe.webkitTransition=ze,Oe.transition=ze),!f&&!m){const Me=U.current.style;Me.opacity=1-ce/Zl(Ce,_.current),ve&&(Me.webkitTransition=ze,Me.transition=ze)}},[u,f,m,l,z]),K=wn(ce=>{if(!Z.current)return;if(ii=null,Z.current=!1,Lc.flushSync(()=>{A(!1)}),!B.current.isSwiping){B.current.isSwiping=null;return}B.current.isSwiping=null;const ye=os(l,u),be=ya(u);let ve;be?ve=oh(ye,ce.changedTouches,Kt(ce.currentTarget)):ve=lh(ye,ce.changedTouches,Sn(ce.currentTarget));const pe=be?B.current.startX:B.current.startY,ge=Zl(be,_.current),Ce=ex(ve,pe,M,ge),de=Ce/ge;if(Math.abs(B.current.velocity)>b&&(J.current=Math.abs((ge-Ce)/B.current.velocity)*1e3),M){B.current.velocity>b||de>g?R():k(0,{mode:"exit"});return}B.current.velocity<-b||1-de>g?E():k(Zl(be,_.current),{mode:"enter"})}),re=(ce=!1)=>{if(!q){(ce||!(d&&v))&&Lc.flushSync(()=>{A(!0)});const ye=ya(u);!M&&_.current&&k(Zl(ye,_.current)+(d?15:-ah),{changeTransition:!1}),B.current.velocity=0,B.current.lastTime=null,B.current.lastTranslate=null,B.current.paperHit=!1,Z.current=!0}},P=wn(ce=>{if(!_.current||!Z.current||ii!==null&&ii!==B.current)return;re(!0);const ye=os(l,u),be=ya(u),ve=oh(ye,ce.touches,Kt(ce.currentTarget)),pe=lh(ye,ce.touches,Sn(ce.currentTarget));if(M&&_.current.contains(ce.target)&&ii===null){const ze=W6(ce.target,_.current);if(K6({domTreeShapes:ze,start:be?B.current.startX:B.current.startY,current:be?ve:pe,anchor:u})){ii=!0;return}ii=B.current}if(B.current.isSwiping==null){const ze=Math.abs(ve-B.current.startX),Me=Math.abs(pe-B.current.startY),qe=be?ze>Me&&ze>yc:Me>ze&&Me>yc;if(qe&&ce.cancelable&&ce.preventDefault(),qe===!0||(be?Me>yc:ze>yc)){if(B.current.isSwiping=qe,!qe){K(ce);return}B.current.startX=ve,B.current.startY=pe,!d&&!M&&(be?B.current.startX-=ah:B.current.startY-=ah)}}if(!B.current.isSwiping)return;const ge=Zl(be,_.current);let Ce=be?B.current.startX:B.current.startY;M&&!B.current.paperHit&&(Ce=Math.min(Ce,ge));const de=ex(be?ve:pe,Ce,M,ge);if(M)if(B.current.paperHit)de===0&&(B.current.startX=ve,B.current.startY=pe);else if(be?ve<ge:pe<ge)B.current.paperHit=!0,B.current.startX=ve,B.current.startY=pe;else return;B.current.lastTranslate===null&&(B.current.lastTranslate=de,B.current.lastTime=performance.now()+1);const Oe=(de-B.current.lastTranslate)/(performance.now()-B.current.lastTime)*1e3;B.current.velocity=B.current.velocity*.4+Oe*.6,B.current.lastTranslate=de,B.current.lastTime=performance.now(),ce.cancelable&&ce.preventDefault(),k(de)}),se=wn(ce=>{if(ce.defaultPrevented||ce.defaultMuiPrevented||M&&(m||!U.current.contains(ce.target))&&!_.current.contains(ce.target))return;const ye=os(l,u),be=ya(u),ve=oh(ye,ce.touches,Kt(ce.currentTarget)),pe=lh(ye,ce.touches,Sn(ce.currentTarget));if(!M){if(p||!(ce.target===H.current||_.current?.contains(ce.target)&&(typeof v=="function"?v(ce,H.current,_.current):v)))return;if(be){if(ve>j)return}else if(pe>j)return}ce.defaultMuiPrevented=!0,ii=null,B.current.startX=ve,B.current.startY=pe,re()});S.useEffect(()=>{if(I==="temporary"){const ce=Kt(_.current);return ce.addEventListener("touchstart",se),ce.addEventListener("touchmove",P,{passive:!M}),ce.addEventListener("touchend",K),()=>{ce.removeEventListener("touchstart",se),ce.removeEventListener("touchmove",P,{passive:!M}),ce.removeEventListener("touchend",K)}}},[I,M,se,P,K]),S.useEffect(()=>()=>{ii===B.current&&(ii=null)},[]),S.useEffect(()=>{M||A(!1)},[M]);const[me,fe]=at("swipeArea",{ref:H,elementType:X6,ownerState:a,externalForwardedProps:{slots:V,slotProps:{swipeArea:L,...F}},additionalProps:{width:j,anchor:u}});return w.jsxs(S.Fragment,{children:[w.jsx(eg,{open:I==="temporary"&&q?!0:M,variant:I,ModalProps:{BackdropProps:{...x,ref:U},...I==="temporary"&&{keepMounted:!0},...C},hideBackdrop:m,anchor:u,transitionDuration:J.current||z,onClose:R,ref:r,slots:V,slotProps:{...F,backdrop:Ic(F.backdrop??x,{ref:U}),paper:Ic(F.paper??O,{style:{pointerEvents:I==="temporary"&&!M&&!v?"none":""},ref:G})},...N}),!p&&I==="temporary"&&w.jsx(d6,{children:w.jsx(me,{...fe})})]})});function Z6(e){return nt("MuiTextField",e)}Ge("MuiTextField",["root"]);const J6={standard:ng,filled:tg,outlined:ug},eD=e=>{const{classes:t}=e;return rt({root:["root"]},Z6,t)},tD=xe(K3,{name:"MuiTextField",slot:"Root"})({}),nD=S.forwardRef(function(t,r){const a=Qe({props:t,name:"MuiTextField"}),{autoComplete:l,autoFocus:s=!1,children:u,className:f,color:d="primary",defaultValue:p,disabled:m=!1,error:g=!1,FormHelperTextProps:v,fullWidth:b=!1,helperText:x,id:C,InputLabelProps:R,inputProps:E,InputProps:M,inputRef:O,label:L,maxRows:j,minRows:z,multiline:I=!1,name:V,onBlur:F,onChange:N,onFocus:q,placeholder:A,required:B=!1,rows:H,select:U=!1,SelectProps:_,slots:G={},slotProps:Z={},type:J,value:k,variant:K="outlined",...re}=a,P={...a,autoFocus:s,color:d,disabled:m,error:g,fullWidth:b,multiline:I,required:B,select:U,variant:K},se=eD(P),me=$o(C),fe=x&&me?`${me}-helper-text`:void 0,ce=L&&me?`${me}-label`:void 0,ye=J6[K],be={slots:G,slotProps:{input:M,inputLabel:R,htmlInput:E,formHelperText:v,select:_,...Z}},ve={},pe=be.slotProps.inputLabel;K==="outlined"&&(pe&&typeof pe.shrink<"u"&&(ve.notched=pe.shrink),ve.label=L),U&&((!_||!_.native)&&(ve.id=void 0),ve["aria-describedby"]=void 0);const[ge,Ce]=at("root",{elementType:tD,shouldForwardComponentProp:!0,externalForwardedProps:{...be,...re},ownerState:P,className:je(se.root,f),ref:r,additionalProps:{disabled:m,error:g,fullWidth:b,required:B,color:d,variant:K}}),[de,Oe]=at("input",{elementType:ye,externalForwardedProps:be,additionalProps:ve,ownerState:P}),[ze,Me]=at("inputLabel",{elementType:pz,externalForwardedProps:be,ownerState:P}),[qe,Xe]=at("htmlInput",{elementType:"input",externalForwardedProps:be,ownerState:P}),[Ze,We]=at("formHelperText",{elementType:ez,externalForwardedProps:be,ownerState:P}),[Ee,Ut]=at("select",{elementType:Lw,externalForwardedProps:be,ownerState:P}),ht=w.jsx(de,{"aria-describedby":fe,autoComplete:l,autoFocus:s,defaultValue:p,fullWidth:b,multiline:I,name:V,rows:H,maxRows:j,minRows:z,type:J,value:k,id:me,inputRef:O,onBlur:F,onChange:N,onFocus:q,placeholder:A,inputProps:Xe,slots:{input:G.htmlInput?qe:void 0},...Oe});return w.jsxs(ge,{...Ce,children:[L!=null&&L!==""&&w.jsx(ze,{htmlFor:me,id:ce,...Me,children:L}),U?w.jsx(Ee,{"aria-describedby":fe,id:me,labelId:ce,value:k,input:ht,...Ut,children:u}):ht,x&&w.jsx(Ze,{id:fe,...We,children:x})]})}),rD=$S({themeId:yr}),Nw=ct(w.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"})),Us=()=>{const e=en();return rD(e.app.isMobileQuery(e))};function fg({varient:e="contained",borderRadius:t="100px"}){const r=TS();return w.jsx($s,{onClick:()=>{window.location.href=`${Wn}/login`},sx:e=="contained"?{color:r.palette.background.default,padding:"10px 24px",borderRadius:t}:{color:r.palette.primary.main,paddingLeft:0,justifyContent:"flex-start",transition:"color 0.2s ease-in-out","&:hover":{background:"none",color:r.palette.text.selected}},disableRipple:e=="text",variant:e,children:"Sign in"})}const _w=ct(w.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));function iD(){const e=S.useContext(Ht),{setUser:t,setSnack:r,on_new_chat:a,config:l}=e;return w.jsx($s,{onClick:async()=>{try{await qT(),t(),a()}catch(s){if(s.name==Pr)return;console.error(s),r(l.errorMessage)}},color:"default",variant:"contained",sx:{padding:"10px 24px"},children:"Sign out"})}function aD(){const{user:e}=S.useContext(Ht),[t,r]=S.useState(null),a=!!t,l=u=>{r(u.currentTarget)},s=()=>{r(null)};return w.jsxs(w.Fragment,{children:[w.jsx(jn,{title:e.given_name,children:w.jsx(On,{id:"user-profile-button","aria-controls":a?"user-profile-menu":void 0,"aria-haspopup":"true","aria-expanded":a?"true":void 0,onClick:l,children:w.jsx(N1,{sx:{cursor:"pointer"},alt:e?.given_name,src:e.picture})})}),w.jsx(Hs,{id:"user-profile-menu",anchorEl:t,anchorOrigin:{vertical:60,horizontal:"left"},open:a,onClose:s,slotProps:{list:{"aria-labelledby":"agent-button"}},children:w.jsxs(ke,{sx:{display:"flex",flexDirection:"column",gap:"25px",position:"relative"},width:400,padding:"8px 16px",children:[w.jsxs(ke,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:[w.jsx(it,{textAlign:"center",flexGrow:1,fontStyle:700,variant:"h5",children:w.jsx("b",{children:e.email})}),w.jsx(On,{sx:{position:"absolute",right:10},onClick:s,children:w.jsx(_w,{})})]}),w.jsxs(ke,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"10px"},children:[w.jsx(N1,{sx:{width:70,height:70},alt:e?.given_name,src:e.picture}),w.jsxs(it,{fontSize:"22px",variant:"h1",children:["Hi, ",e.given_name,"!"]}),w.jsx(ke,{children:w.jsx(iD,{})})]})]})})]})}function oD(){const{loading:e,on_new_chat:t,user:r,health:a,config:l}=S.useContext(Ht),{setOpen:s}=S.useContext(wr),u=Us();return w.jsxs(ke,{sx:{position:"relative",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"0px 12px"},children:[w.jsxs(ke,{sx:{display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"16px"},mt:"12px",mb:"10px",padding:"6px 0px",children:[u&&w.jsx(On,{onClick:()=>{s(!0)},children:w.jsx(Nw,{fontSize:"small"})}),w.jsx(ke,{sx:{cursor:"pointer"},title:a?.version,onClick:()=>{t()},children:w.jsx(it,{sx:{userSelect:"none"},fontSize:"22px",lineHeight:"26px",variant:"h4",children:l.title})})]}),e?null:w.jsx(w.Fragment,{children:r?w.jsx(aD,{}):w.jsx(ke,{children:w.jsx(fg,{borderRadius:"4px"})})}),e&&w.jsxs(ke,{sx:{position:"absolute",left:0,bottom:-20,width:"100%"},children:[w.jsx(Cz,{}),w.jsx("br",{})]})]})}const lD=ct(w.jsx("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10c1.38 0 2.5-1.12 2.5-2.5 0-.61-.23-1.2-.64-1.67-.08-.1-.13-.21-.13-.33 0-.28.22-.5.5-.5H16c3.31 0 6-2.69 6-6 0-4.96-4.49-9-10-9m5.5 11c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m-3-4c-.83 0-1.5-.67-1.5-1.5S13.67 6 14.5 6s1.5.67 1.5 1.5S15.33 9 14.5 9M5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S7.33 13 6.5 13 5 12.33 5 11.5m6-4c0 .83-.67 1.5-1.5 1.5S8 8.33 8 7.5 8.67 6 9.5 6s1.5.67 1.5 1.5"})),sD=ct(w.jsx("path",{d:"m10 17 5-5-5-5z"})),uD=ct(w.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}));function dg(e){return w.jsx(ig,{sx:{display:"flex",flexDirection:"column",gap:"2px","& .MuiListItem-root:first-of-type .MuiListItemButton-root":{borderTopLeftRadius:"12px",borderTopRightRadius:"12px"},"& .MuiListItem-root:last-of-type .MuiListItemButton-root":{borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"}},children:e.children})}function cD(){const{setThemeDrawerOpen:e,setSettingsDrawerOpen:t,themeDrawerOpen:r,currentTheme:a,setTheme:l}=S.useContext(wr),s=en();return w.jsx(Pw,{anchor:"bottom",open:r,onClose:()=>{t(!1),e(!1)},children:w.jsxs(ke,{p:2,children:[w.jsx(it,{variant:"h5",children:"Select a theme"}),w.jsx(dg,{children:["System","Light","Dark"].map(u=>w.jsx(Es,{disablePadding:!0,children:w.jsxs(ks,{sx:{backgroundColor:s.palette.background.default},onClick:()=>{l(u.toLowerCase())},children:[w.jsx(og,{primary:u}),a===u.toLowerCase()?w.jsx(uD,{fontSize:"small"}):null]})},u))})]})})}function fD(){const{setThemeDrawerOpen:e,setSettingsDrawerOpen:t,settingsDrawerOpen:r}=S.useContext(wr),a=en();return w.jsxs(w.Fragment,{children:[w.jsx(Pw,{anchor:"bottom",open:r,onClose:()=>{t(!1)},children:w.jsx(ke,{p:2,children:w.jsx(dg,{children:w.jsx(Es,{disablePadding:!0,children:w.jsxs(ks,{sx:{backgroundColor:a.palette.background.default},onClick:()=>e(!0),children:[w.jsx(ag,{children:w.jsx(lD,{})}),w.jsx(og,{primary:"Theme"}),w.jsx(sD,{})]})})})})}),w.jsx(cD,{})]})}function pg({icon:e,title:t,onClick:r,tooltip:a="",disabled:l=!1}){const{isDrawerOpen:s}=S.useContext(wr),u=s();return w.jsx(ig,{children:w.jsx(Es,{disablePadding:!0,sx:{display:"block"},children:w.jsxs(ks,{onClick:r,disableRipple:!0,disabled:l,sx:[{minHeight:48,px:2.5},u?{justifyContent:"initial"}:{justifyContent:"center"}],children:[w.jsx(jn,{title:a,children:w.jsx(ag,{sx:[{minWidth:0,justifyContent:"center"},u?{mr:3}:{mr:"auto"}],children:e})}),w.jsx(og,{children:w.jsx(it,{fontWeight:300,variant:"h5",sx:[u?{opacity:1}:{opacity:0}],children:t})})]})})})}function dD(){const{open:e,setOpen:t,setHoverOpen:r}=S.useContext(wr);return w.jsx(pg,{tooltip:"Expand menu",icon:w.jsx(Nw,{fontSize:"small"}),title:"",onClick:()=>{t(!e),r(!1)}})}const pD=ct(w.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}));function hD(){const{setOpen:e,setSettingsDrawerOpen:t}=S.useContext(wr);return w.jsx(pg,{tooltip:"Settings",icon:w.jsx(pD,{fontSize:"small"}),title:"Settings & help",onClick:()=>{e(!1),t(!0)}})}const kf=308,tx=e=>({width:kf,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden"}),nx=e=>({transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:`calc(${e.spacing(7)} + 1px)`,[e.breakpoints.up("sm")]:{width:`calc(${e.spacing(8)} + 1px)`}}),mD=xe(eg,{shouldForwardProp:e=>e!=="open"})(({theme:e})=>({width:kf,flexShrink:0,whiteSpace:"nowrap",boxSizing:"border-box",variants:[{props:({open:t})=>t,style:{...tx(e),"& .MuiDrawer-paper":tx(e)}},{props:({open:t})=>!t,style:{...nx(e),"& .MuiDrawer-paper":nx(e)}}]})),gD=ct(w.jsx("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"})),yD=ct(w.jsx("path",{d:"M8 6h8c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2H8c-1.1 0-2-.9-2-2V8c0-1.1.9-2 2-2"})),bD=ct(w.jsx("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"})),vD=ct(w.jsx("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"})),xD=ct(w.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"})),Bw=ct(w.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"}));function SD(){const{currentModel:e,user:t,config:r}=S.useContext(Ht),[a,l]=S.useState(null),s=!!a,u=p=>{l(p.currentTarget)},f=()=>{l(null)},d=-100-(r.models.length-1)*50;return t?w.jsxs(S.Fragment,{children:[w.jsx($s,{id:"model-button","aria-controls":s?"model-menu":void 0,"aria-haspopup":"true","aria-expanded":s?"true":void 0,onClick:u,endIcon:w.jsx(xD,{fontSize:"small"}),sx:{borderRadius:"24px",padding:"0 16px",height:"40px",width:"120px"},children:e}),w.jsx(Hs,{id:"model-menu",anchorEl:a,anchorOrigin:{vertical:d,horizontal:"left"},open:s,onClose:f,slotProps:{list:{"aria-labelledby":"model-button"}},children:w.jsxs(ke,{sx:{width:320},children:[w.jsx(it,{sx:{padding:"8px 16px"},variant:"h4",children:"Choose your model"}),r.models.map(({model:p,tagline:m})=>w.jsx(wD,{model:p,tagline:m},p))]})})]}):null}function wD({model:e,tagline:t}){const{currentModel:r}=S.useContext(Ht);return w.jsx(lg,{children:w.jsxs(ke,{sx:{width:"100%",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:[w.jsxs(ke,{sx:{display:"flex",flexDirection:"column"},children:[w.jsx(it,{variant:"h5",children:t}),w.jsx(it,{variant:"h6",children:e})]}),r==e?w.jsx(ke,{children:w.jsx(Bw,{color:"primary"})}):null]})},e)}const CD=ct(w.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}));function kD(e){return new Promise((t,r)=>{const a=new FileReader;a.readAsDataURL(e),a.onload=()=>{const l=a.result.toString().split(",")[1];t({data:l,type:e.type,name:e.name})},a.onerror=l=>r(l)})}function rx(e,t){return`data:${t};base64,${ED(e)}`}function ED(e){for(e=e.replace(/-/g,"+").replace(/_/g,"/");e.length%4!==0;)e+="=";return e}function TD(e){try{JSON.parse(e)}catch(t){return console.debug(t),!1}return!0}const RD=ct(w.jsx("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6z"})),Iw=(e,t)=>r=>{const{user:a}=S.useContext(Ht);return a?w.jsx(e,{...r}):w.jsxs(ke,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"4px 16px",gap:"35px"},children:[w.jsx(it,{variant:"h6",children:t}),w.jsx(fg,{})]})},AD=[{title:"Upload files",icon:w.jsx(RD,{fontSize:"small"})}];function MD(e){const[t,r]=S.useState(null),a=S.useRef(null),{setSnack:l}=S.useContext(Ht),s=!!t,u=g=>{r(g.currentTarget)},f=()=>{r(null)},d=()=>{a.current.click()},p=g=>!!(e.files??[]).find(b=>b.name===g),m=async g=>{const v=[...e.files];if(g.target.files&&g.target.files.length)for(let b of g.target.files){if(p(b.name)){l(`You already uploaded a file named ${b.name}`);continue}const{data:x,type:C}=await kD(b);v.push({name:b.name,version:0,type:"upload",inlineData:{data:x,mimeType:C}})}e.setFiles([...v]),f(),a.current&&(a.current.value="")};return w.jsxs("div",{children:[w.jsx(jn,{title:"Add files",children:w.jsx(On,{id:"file-button",color:"default","aria-label":"add file","aria-controls":s?"file-menu":void 0,"aria-haspopup":"true","aria-expanded":s?"true":void 0,onClick:u,children:w.jsx(CD,{fontSize:"medium"})})}),w.jsx("input",{ref:a,onChange:m,type:"file",id:"file-upload",name:"myFile",multiple:!0,style:{display:"none"}}),w.jsx(Hs,{id:"file-menu",anchorEl:t,anchorOrigin:{vertical:-50,horizontal:"left"},open:s,onClose:f,slotProps:{list:{"aria-labelledby":"file-button"}},children:w.jsx(OD,{onFileUpload:d})})]})}const OD=Iw(e=>w.jsx(ke,{sx:{width:200},children:AD.map(({title:t,icon:r})=>w.jsxs(lg,{onClick:()=>e.uploadFile(),children:[w.jsx(ag,{children:r}),w.jsx(it,{variant:"h5",children:t})]},t))}),"Sign in to upload files"),zD=ct(w.jsx("path",{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm0 6-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25zm-7.5-5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zm-1.51 3.49L9 15.17l-.99-2.18L5.83 12l2.18-.99L9 8.83l.99 2.18 2.18.99z"}));function DD(){const[e,t]=S.useState(null),{agents:r}=S.useContext(Ht),a=!!e,l=u=>{t(u.currentTarget)},s=()=>{t(null)};return w.jsxs("div",{children:[w.jsx(jn,{title:"Add files",children:w.jsx($s,{id:"agent-button","aria-controls":a?"agent-menu":void 0,"aria-haspopup":"true","aria-expanded":a?"true":void 0,onClick:l,startIcon:w.jsx(zD,{fontSize:"small"}),sx:{borderRadius:"24px",padding:"0 16px",height:"40px",width:"120px"},children:"Agents"})}),w.jsxs(Hs,{id:"agent-menu",anchorEl:e,anchorOrigin:{vertical:-110,horizontal:"left"},open:a,onClose:s,slotProps:{list:{"aria-labelledby":"agent-button"}},children:[w.jsx(ke,{sx:{width:320},children:w.jsx(it,{sx:{padding:"8px 16px"},variant:"h4",children:"Choose your agent"})}),w.jsx(jD,{agents:r})]})]})}const jD=Iw(e=>w.jsx(ke,{sx:{width:300},children:e.agents.map(t=>w.jsx(LD,{agent:t},t))}),"Sign in to select agents");function LD({agent:e}){const{selectedAgent:t,setSelectedAgent:r,on_new_chat:a}=S.useContext(Ht);return w.jsx(lg,{onClick:()=>{r(e),a()},children:w.jsxs(ke,{sx:{width:"100%",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:[w.jsxs(ke,{sx:{display:"flex",flexDirection:"column"},children:[w.jsx(it,{textTransform:"capitalize",variant:"h5",children:e.replaceAll("_"," ")}),w.jsx(it,{variant:"h6",children:e})]}),t==e?w.jsx(ke,{mt:"5px",children:w.jsx(Bw,{color:"primary"})}):null]})},e)}const PD=ct(w.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));function $w(e){const t=S.useContext(Ht),{config:r}=t,a=e.file,l=TS(),s=a.name,u=s.split("."),f=u[0],d=u[u.length-1],p=async()=>{try{if(e.showClear)return;let m;if(a.inlineData?m=a.inlineData:a.type==="artifact"&&(m=(await FT(t)({artifact_name:a.name,version:a.version})).inlineData),!m)return;const v=await(await fetch(rx(m.data,m.mimeType||m.mime_type))).blob(),b=URL.createObjectURL(v);window.open(b,"_blank")}catch(m){if(m.name==Pr)return;console.error(m),t.setSnack(r.errorMessage)}};return["jpg","jpeg","png","svg","gif","webp"].includes(d)?w.jsx(jn,{title:s,children:w.jsx("img",{style:{width:"80px",height:"80px",objectFit:"cover",cursor:"pointer"},src:rx(a.inlineData.data,a.inlineData.mimeType),onClick:p,alt:s})},s):w.jsx(jn,{title:s,children:w.jsx(ke,{onClick:p,sx:{minWidth:"150px",width:"210px",display:"flex",justifyContent:"flex-start",borderRadius:"16px",padding:"16px 16px 16px 16px","&:hover .file-clear-button":{opacity:"1"},cursor:e.showClear?void 0:"pointer",backgroundColor:l.palette.background?.card,"&:hover":{backgroundColor:e.showClear?void 0:l.palette.background?.cardHover}},children:w.jsxs(ke,{sx:{display:"flex",flexDirection:"column",gap:"10px",width:"100%"},children:[w.jsxs(ke,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"5px",position:"relative"},children:[w.jsx(it,{noWrap:!0,color:l.palette.text.primary,variant:"h5",children:f}),e.showClear&&w.jsx(On,{onClick:()=>e.onClearFile(s),className:"file-clear-button",sx:{backgroundColor:l.palette.background.default,opacity:"0",position:"absolute",right:-10,top:-10},children:w.jsx(PD,{fontSize:"small"})})]}),w.jsxs(ke,{sx:{display:"flex",gap:"10px"},children:[w.jsx("img",{style:{width:"16px",height:"16px"},src:d=="pdf"?"/pdf.png":"/csv.png",alt:d}),w.jsx(it,{variant:"h6",textTransform:"uppercase",fontWeight:500,children:d})]})]})},s)},s)}function ND(){const{prompt:e,setPrompt:t,send:r,promptLoading:a,files:l,setFiles:s,cancelApi:u,user:f,config:d}=S.useContext(Ht),p=en(),[m,g]=S.useState(!1),v=M=>{M.preventDefault(),r(e,{submittedFiles:[...l]})},b=M=>{M.key==="Enter"&&!M.shiftKey&&(M?.preventDefault(),v(M))},x=M=>{s(O=>[...O.filter(L=>L.name!==M)])};let C="0 -25px 15px -5px rgba(255, 255, 255, 1)";p.palette.mode=="dark"&&(C="0 -25px 15px -5px rgba(19, 19, 20, 0.5)");let R="1px solid #c4c7c5";p.palette.mode=="dark"&&(R="1px solid #4a5050");const E=M=>{M.preventDefault();const O=M.clipboardData.getData("text/plain"),j=e+O;t(j)};return w.jsxs(ke,{sx:{width:"100%",maxWidth:tw,margin:"0 16px",transition:"box-shadow 0.3s ease, border-color 0.3s ease",boxShadow:C,zIndex:"999"},children:[w.jsxs(ke,{component:"form",onSubmit:v,sx:{p:"8px",flexDirection:"column",display:"flex",border:R,borderRadius:"24px",boxSizing:"border-box",transition:"box-shadow 0.3s ease, border-radius .1s cubic-bezier(.2,0,0,1), height .15s cubic-bezier(.2,0,0,1)"},children:[w.jsx(ke,{sx:{display:"flex",flexWrap:"wrap",gap:"10px"},children:l.map(M=>w.jsx($w,{file:M,showClear:!0,onClearFile:x},M.name))}),w.jsxs(ke,{sx:{display:"flex",alignItems:"flex-start"},children:[w.jsx(Cf,{value:e,onChange:M=>t(M.target.value),onKeyDown:b,onPaste:E,disabled:!f,autoFocus:!0,multiline:!0,fullWidth:!0,id:"input-base",autoComplete:"off",sx:{padding:"2px 12px",flex:1,"& .MuiInputBase-inputMultiline":{transition:"height 0.3s ease",maxHeight:"500px",minHeight:"25px",height:"25px",padding:"10px 0px",overflowY:"auto !important","&::placeholder":{opacity:.8}}},placeholder:f?`Ask ${d.title}`:`Sign in to ask ${d.title}`,inputProps:{"aria-label":`Ask ${d.title}`,style:{height:m?"500px":void 0}}}),e?.length>164||m?w.jsx(ke,{sx:{position:"relative",width:"15px",height:"15px"},children:w.jsx(jn,{title:"Fullscreen",children:w.jsx(On,{sx:{position:"absolute",left:"-20px",top:"-5px"},onClick:()=>g(!m),children:m?w.jsx(vD,{}):w.jsx(bD,{})})})}):null]}),w.jsxs(ke,{sx:{display:"flex",justifyContent:"space-between"},children:[w.jsxs(ke,{sx:{display:"flex",justifyContent:"flex-start",gap:"5px"},children:[w.jsx(MD,{setFiles:s,files:l}),w.jsx(DD,{setFiles:s,files:l})]}),w.jsxs(ke,{sx:{display:"flex",gap:"5px",justifyContent:"center",alignItems:"center"},children:[w.jsx(SD,{}),a?w.jsx(jn,{title:"Stop response",children:w.jsx(On,{onClick:u,sx:{backgroundColor:p.palette.background.paper},color:"primary","aria-label":"directions",children:w.jsx(yD,{sx:{color:p.palette.text.selected},fontSize:"medium"})})}):w.jsx(jn,{title:"Submit",children:w.jsx(On,{disabled:!e||!f,onClick:v,sx:{backgroundColor:p.palette.background.paper},color:"default","aria-label":"directions",children:w.jsx(gD,{fontSize:"medium"})})})]})]})]}),w.jsx(ke,{sx:{textAlign:"center",marginTop:"16px",marginBottom:"16px"},children:w.jsxs(it,{variant:"h6",children:[d.title," can make mistakes, so double-check it"]})})]})}function _D(){return w.jsx(ke,{sx:{flexShrink:0,display:"flex",justifyContent:"center",alignItems:"center"},children:w.jsx(ND,{})})}const BD=ct(w.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}));function ID(){const e=S.useContext(Ht),{config:t}=e,{isDrawerOpen:r}=S.useContext(wr),a=en();return w.jsx(w.Fragment,{children:w.jsxs(ke,{display:"flex",flexDirection:"column",padding:"0 16px",gap:"2px",children:[w.jsx(it,{display:r()?"block":"none",fontSize:"14px",variant:"h6",pb:"8px",className:"fade-in-animation",children:"Recent"}),e.user?e.sessions.map(l=>w.jsx($D,{session:l},l.id)):w.jsxs(ke,{width:r()?"auto":0,display:r()?"flex":"none",className:"fade-in-animation",sx:{flexDirection:"column",justifyContent:"space-between",alignItems:"flex-start",gap:"25px",background:a.palette.background.cardHover,borderTopLeftRadius:"24px",borderTopRightRadius:"24px",padding:"16px 20px"},children:[w.jsxs(ke,{width:"auto",sx:{display:"flex",flexWrap:"wrap",flexDirection:"column",gap:"5px"},children:[w.jsx(it,{variant:"h5",children:"Sign in to start saving your chats"}),w.jsx(it,{variant:"h6",sx:{textWrap:"wrap"},children:"Once you're signed in, you can access your recent chats here."})]}),w.jsx(fg,{varient:"text"})]})]})})}function $D(e){const t=S.useContext(Ht),r=en(),a=dm(),l=e.session,[s,u]=S.useState(l.id),{isDrawerOpen:f,setOpen:d}=S.useContext(wr),p=Us(),m=async()=>{try{const E=(await dS(t)({session_id:l.id})).events.filter(M=>M.content.role=="user")[0].content.parts.filter(M=>M.text)[0];u(E.text)}catch(b){if(b.name==Pr)return;console.debug(`Unable to parse title for session ${l.id}`),console.debug(b),u(l.id)}},g=t.session===l.id,v=async b=>{b?.stopPropagation();try{await VT(t)(l.id),t.setSessions(x=>[...x.filter(C=>C.id!==l.id)]),g&&t.on_new_chat()}catch(x){if(x.name==Pr)return;if(x.name==ym){t.on_new_chat();return}console.error(x),t.setSnack(config.errorMessage)}};return S.useEffect(()=>{m()},[]),w.jsxs(ke,{className:"session-history",height:f()?"auto":0,width:f()?kf-35:0,onClick:async()=>{await t.getSession({sessionId:l.id}),await a(`/${l.id}`),t.setSession(l.id),p&&d(!1)},sx:{opacity:f()?"1":"0",cursor:"pointer",padding:"8px 8px 8px 12px",borderRadius:"16px",display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:f()&&g?r.palette.background.history:void 0,"&:hover":{backgroundColor:g?r.palette.background.history:r.palette.background.cardHover,".session-trash-button":{opacity:1}}},children:[w.jsx(jn,{placement:"right",title:s,slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,24]}}]}},children:w.jsx(it,{sx:{flexGrow:1},color:g?r.palette.text.selected:void 0,fontWeight:500,fontSize:"14px",lineHeight:"20px",variant:"h6",noWrap:!0,children:s})}),w.jsx(On,{onClick:v,className:"session-trash-button session-history",sx:{opacity:"0",padding:"4px","&:hover":{background:g?r.palette.background.default:void 0}},children:w.jsx(BD,{fontSize:"small"})})]},l.id)}const HD=ct(w.jsx("path",{d:"M22 4c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4zm-2 13.17L18.83 16H4V4h16zM13 5h-2v4H7v2h4v4h2v-4h4V9h-4z"}));function UD(){const{on_new_chat:e,promptLoading:t,user:r}=S.useContext(Ht),{setOpen:a}=S.useContext(wr),l=Us();return w.jsx(pg,{disabled:t||!r,tooltip:"New Chat (Ctrl+Shift+O)",icon:w.jsx(HD,{fontSize:"small"}),title:"New chat",onClick:()=>{e(),l&&a(!1)}})}function FD(e){const[t,r]=S.useState(!1),[a,l]=S.useState(!1),[s,u]=S.useState(!1),[f,d]=S.useState(!1),p=Us(),m=en(),{theme:g,setTheme:v}=S.useContext(Bm),b=S.useRef(null);let x=()=>p?t:t||a;return S.useEffect(()=>{if(b.current){let C=document.querySelector(".chat-item-box-user:last-of-type");if(!C)return;C.scrollIntoView({behavior:"smooth",inline:"start",block:"start"})}},[e.history]),w.jsx(wr.Provider,{value:{open:t,setOpen:r,setHoverOpen:l,isDrawerOpen:x,settingsDrawerOpen:s,setSettingsDrawerOpen:u,themeDrawerOpen:f,setThemeDrawerOpen:d,theme:m,currentTheme:g,setTheme:v},children:w.jsxs(ke,{sx:{display:"flex",flexFlow:1},children:[w.jsx(AM,{}),w.jsx(qD,{children:w.jsxs(ke,{sx:{height:"100vh",display:"flex",flexDirection:"column"},children:[!p&&w.jsx(dD,{}),w.jsxs(ke,{onMouseLeave:()=>l(!1),onMouseEnter:()=>l(!0),sx:{flexGrow:1,display:"flex",flexDirection:"column"},children:[w.jsx(UD,{}),w.jsx(ke,{sx:{flexGrow:1,display:"flex",overflowY:"auto",overflowX:"hidden"},children:w.jsx(ID,{})}),w.jsx(hD,{})]})]})}),w.jsx(fD,{}),w.jsx(ke,{component:"main",sx:{flexGrow:1},children:w.jsxs(ke,{sx:{height:"100vh",display:"flex",flexDirection:"column"},children:[w.jsx(oD,{}),w.jsx(ke,{sx:{flexGrow:1,overflowY:"auto",padding:"0 16px"},ref:b,children:e.children}),w.jsx(_D,{})]})})]})})}function qD(e){const{isDrawerOpen:t,setOpen:r}=S.useContext(wr);return Us()?w.jsx(eg,{sx:{"& .MuiDrawer-paper":{minWidth:kf,boxSizing:"border-box"}},ModalProps:{keepMounted:!0},onClose:()=>{r(!1)},open:t(),children:e.children}):w.jsx(mD,{variant:"permanent",open:t(),children:e.children})}const VD=ct(w.jsx("path",{d:"m13.11 5.72-.57 2.89c-.12.59.04 1.2.42 1.66s.94.73 1.54.73H20v1.08L17.43 18H9.34c-.18 0-.34-.16-.34-.34V9.82zM14 2 7.59 8.41C7.21 8.79 7 9.3 7 9.83v7.83C7 18.95 8.05 20 9.34 20h8.1c.71 0 1.36-.37 1.72-.97l2.67-6.15c.11-.25.17-.52.17-.8V11c0-1.1-.9-2-2-2h-5.5l.92-4.65c.05-.22.02-.46-.08-.66-.23-.45-.52-.86-.88-1.22zM4 9H2v11h2c.55 0 1-.45 1-1v-9c0-.55-.45-1-1-1"})),YD=ct(w.jsx("path",{d:"m10.89 18.28.57-2.89c.12-.59-.04-1.2-.42-1.66S10.1 13 9.5 13H4v-1.08L6.57 6h8.09c.18 0 .34.16.34.34v7.84zM10 22l6.41-6.41c.38-.38.59-.89.59-1.42V6.34C17 5.05 15.95 4 14.66 4h-8.1c-.71 0-1.36.37-1.72.97l-2.67 6.15c-.11.25-.17.52-.17.8V13c0 1.1.9 2 2 2h5.5l-.92 4.65c-.05.22-.02.46.08.66.23.45.52.86.88 1.22zm10-7h2V4h-2c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1"})),GD=ct(w.jsx("path",{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2m4 0v12h4V3z"})),XD=ct(w.jsx("path",{d:"M1 21h4V9H1zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73z"})),WD=ct(w.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"})),KD=ct(w.jsx("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92M18 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1M6 13c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m12 7.02c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1"})),Hw=ct(w.jsx("path",{d:"M18 2H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H9V4h9zM3 15v-2h2v2zm0-5.5h2v2H3zM10 20h2v2h-2zm-7-1.5v-2h2v2zM5 22c-1.1 0-2-.9-2-2h2zm3.5 0h-2v-2h2zm5 0v-2h2c0 1.1-.9 2-2 2M5 6v2H3c0-1.1.9-2 2-2"}));function QD(e){const{send:t,setSnack:r,config:a}=S.useContext(Ht),{feedback:l,setFeedback:s,postPostiveFeedback:u,chat:f,setNegativeFeedbackToggle:d}=S.useContext(mf),p=[{icon:w.jsx(VD,{fontSize:"small"}),filledIcon:w.jsx(XD,{fontSize:"small"}),value:a.feedback.positive.value,tooltip:"Good response",onClick:async()=>{if(l?.feedback_category===a.feedback.positive.value){s();return}const v={feedback_category:a.feedback.positive.value,feedback_text:""};await u(v)}},{icon:w.jsx(YD,{fontSize:"small"}),filledIcon:w.jsx(GD,{fontSize:"small"}),value:a.feedback.negative.value,tooltip:"Bad response",onClick:async()=>{if(l?.feedback_category===a.feedback.negative.value){s();return}const v={feedback_category:a.feedback.negative.value,feedback_text:"",id:f.id};s(v),d(!0)}},{icon:w.jsx(WD,{fontSize:"small"}),tooltip:"Redo",onClick:()=>{let v=f.prompt;t(v)}},{icon:w.jsx(KD,{fontSize:"small"}),tooltip:"Share & export",onClick:()=>{}},{icon:w.jsx(Hw,{fontSize:"small"}),tooltip:"Copy response",onClick:async()=>{await navigator.clipboard.writeText(e.part.text),r("Copied to clipboard")}}];let m=v=>[a.feedback.negative.value,a.feedback.positive.value].includes(v.value)&&l?.feedback_category==v.value?"primary":"default",g=v=>[a.feedback.negative.value,a.feedback.positive.value].includes(v.value)&&l?.feedback_category==v.value?v.filledIcon:v.icon;return w.jsx(ke,{className:"actions-child actions-child-model",sx:{marginLeft:"60px",opacity:l?"1":"0",transition:"opacity 0.5s ease"},children:p.map(v=>w.jsx(jn,{title:v.tooltip,children:w.jsx(On,{color:m(v),onClick:v.onClick,children:g(v)},v.tooltip)},v.tooltip))})}function ZD(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const JD=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ej=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tj={};function ix(e,t){return(tj.jsx?ej:JD).test(e)}const nj=/[ \t\n\f\r]/g;function rj(e){return typeof e=="object"?e.type==="text"?ax(e.value):!1:ax(e)}function ax(e){return e.replace(nj,"")===""}class Fs{constructor(t,r,a){this.normal=r,this.property=t,a&&(this.space=a)}}Fs.prototype.normal={};Fs.prototype.property={};Fs.prototype.space=void 0;function Uw(e,t){const r={},a={};for(const l of e)Object.assign(r,l.property),Object.assign(a,l.normal);return new Fs(r,a,t)}function Jh(e){return e.toLowerCase()}class Nn{constructor(t,r){this.attribute=r,this.property=t}}Nn.prototype.attribute="";Nn.prototype.booleanish=!1;Nn.prototype.boolean=!1;Nn.prototype.commaOrSpaceSeparated=!1;Nn.prototype.commaSeparated=!1;Nn.prototype.defined=!1;Nn.prototype.mustUseProperty=!1;Nn.prototype.number=!1;Nn.prototype.overloadedBoolean=!1;Nn.prototype.property="";Nn.prototype.spaceSeparated=!1;Nn.prototype.space=void 0;let ij=0;const Fe=Ta(),Xt=Ta(),em=Ta(),he=Ta(),At=Ta(),Ro=Ta(),qn=Ta();function Ta(){return 2**++ij}const tm=Object.freeze(Object.defineProperty({__proto__:null,boolean:Fe,booleanish:Xt,commaOrSpaceSeparated:qn,commaSeparated:Ro,number:he,overloadedBoolean:em,spaceSeparated:At},Symbol.toStringTag,{value:"Module"})),sh=Object.keys(tm);class hg extends Nn{constructor(t,r,a,l){let s=-1;if(super(t,r),ox(this,"space",l),typeof a=="number")for(;++s<sh.length;){const u=sh[s];ox(this,sh[s],(a&tm[u])===tm[u])}}}hg.prototype.defined=!0;function ox(e,t,r){r&&(e[t]=r)}function Fo(e){const t={},r={};for(const[a,l]of Object.entries(e.properties)){const s=new hg(a,e.transform(e.attributes||{},a),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(s.mustUseProperty=!0),t[a]=s,r[Jh(a)]=a,r[Jh(s.attribute)]=a}return new Fs(t,r,e.space)}const Fw=Fo({properties:{ariaActiveDescendant:null,ariaAtomic:Xt,ariaAutoComplete:null,ariaBusy:Xt,ariaChecked:Xt,ariaColCount:he,ariaColIndex:he,ariaColSpan:he,ariaControls:At,ariaCurrent:null,ariaDescribedBy:At,ariaDetails:null,ariaDisabled:Xt,ariaDropEffect:At,ariaErrorMessage:null,ariaExpanded:Xt,ariaFlowTo:At,ariaGrabbed:Xt,ariaHasPopup:null,ariaHidden:Xt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:At,ariaLevel:he,ariaLive:null,ariaModal:Xt,ariaMultiLine:Xt,ariaMultiSelectable:Xt,ariaOrientation:null,ariaOwns:At,ariaPlaceholder:null,ariaPosInSet:he,ariaPressed:Xt,ariaReadOnly:Xt,ariaRelevant:null,ariaRequired:Xt,ariaRoleDescription:At,ariaRowCount:he,ariaRowIndex:he,ariaRowSpan:he,ariaSelected:Xt,ariaSetSize:he,ariaSort:null,ariaValueMax:he,ariaValueMin:he,ariaValueNow:he,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function qw(e,t){return t in e?e[t]:t}function Vw(e,t){return qw(e,t.toLowerCase())}const aj=Fo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ro,acceptCharset:At,accessKey:At,action:null,allow:null,allowFullScreen:Fe,allowPaymentRequest:Fe,allowUserMedia:Fe,alt:null,as:null,async:Fe,autoCapitalize:null,autoComplete:At,autoFocus:Fe,autoPlay:Fe,blocking:At,capture:null,charSet:null,checked:Fe,cite:null,className:At,cols:he,colSpan:null,content:null,contentEditable:Xt,controls:Fe,controlsList:At,coords:he|Ro,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Fe,defer:Fe,dir:null,dirName:null,disabled:Fe,download:em,draggable:Xt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Fe,formTarget:null,headers:At,height:he,hidden:em,high:he,href:null,hrefLang:null,htmlFor:At,httpEquiv:At,id:null,imageSizes:null,imageSrcSet:null,inert:Fe,inputMode:null,integrity:null,is:null,isMap:Fe,itemId:null,itemProp:At,itemRef:At,itemScope:Fe,itemType:At,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Fe,low:he,manifest:null,max:null,maxLength:he,media:null,method:null,min:null,minLength:he,multiple:Fe,muted:Fe,name:null,nonce:null,noModule:Fe,noValidate:Fe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Fe,optimum:he,pattern:null,ping:At,placeholder:null,playsInline:Fe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Fe,referrerPolicy:null,rel:At,required:Fe,reversed:Fe,rows:he,rowSpan:he,sandbox:At,scope:null,scoped:Fe,seamless:Fe,selected:Fe,shadowRootClonable:Fe,shadowRootDelegatesFocus:Fe,shadowRootMode:null,shape:null,size:he,sizes:null,slot:null,span:he,spellCheck:Xt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:he,step:null,style:null,tabIndex:he,target:null,title:null,translate:null,type:null,typeMustMatch:Fe,useMap:null,value:Xt,width:he,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:At,axis:null,background:null,bgColor:null,border:he,borderColor:null,bottomMargin:he,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Fe,declare:Fe,event:null,face:null,frame:null,frameBorder:null,hSpace:he,leftMargin:he,link:null,longDesc:null,lowSrc:null,marginHeight:he,marginWidth:he,noResize:Fe,noHref:Fe,noShade:Fe,noWrap:Fe,object:null,profile:null,prompt:null,rev:null,rightMargin:he,rules:null,scheme:null,scrolling:Xt,standby:null,summary:null,text:null,topMargin:he,valueType:null,version:null,vAlign:null,vLink:null,vSpace:he,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Fe,disableRemotePlayback:Fe,prefix:null,property:null,results:he,security:null,unselectable:null},space:"html",transform:Vw}),oj=Fo({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:qn,accentHeight:he,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:he,amplitude:he,arabicForm:null,ascent:he,attributeName:null,attributeType:null,azimuth:he,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:he,by:null,calcMode:null,capHeight:he,className:At,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:he,diffuseConstant:he,direction:null,display:null,dur:null,divisor:he,dominantBaseline:null,download:Fe,dx:null,dy:null,edgeMode:null,editable:null,elevation:he,enableBackground:null,end:null,event:null,exponent:he,externalResourcesRequired:null,fill:null,fillOpacity:he,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ro,g2:Ro,glyphName:Ro,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:he,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:he,horizOriginX:he,horizOriginY:he,id:null,ideographic:he,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:he,k:he,k1:he,k2:he,k3:he,k4:he,kernelMatrix:qn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:he,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:he,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:he,overlineThickness:he,paintOrder:null,panose1:null,path:null,pathLength:he,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:At,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:he,pointsAtY:he,pointsAtZ:he,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:qn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:qn,rev:qn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:qn,requiredFeatures:qn,requiredFonts:qn,requiredFormats:qn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:he,specularExponent:he,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:he,strikethroughThickness:he,string:null,stroke:null,strokeDashArray:qn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:he,strokeOpacity:he,strokeWidth:null,style:null,surfaceScale:he,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:qn,tabIndex:he,tableValues:null,target:null,targetX:he,targetY:he,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:qn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:he,underlineThickness:he,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:he,values:null,vAlphabetic:he,vMathematical:he,vectorEffect:null,vHanging:he,vIdeographic:he,version:null,vertAdvY:he,vertOriginX:he,vertOriginY:he,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:he,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:qw}),Yw=Fo({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Gw=Fo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Vw}),Xw=Fo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),lj={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},sj=/[A-Z]/g,lx=/-[a-z]/g,uj=/^data[-\w.:]+$/i;function cj(e,t){const r=Jh(t);let a=t,l=Nn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&uj.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(lx,dj);a="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!lx.test(s)){let u=s.replace(sj,fj);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}l=hg}return new l(a,t)}function fj(e){return"-"+e.toLowerCase()}function dj(e){return e.charAt(1).toUpperCase()}const pj=Uw([Fw,aj,Yw,Gw,Xw],"html"),mg=Uw([Fw,oj,Yw,Gw,Xw],"svg");function hj(e){return e.join(" ").trim()}var vo={},uh,sx;function mj(){if(sx)return uh;sx=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,f=/^\s+|\s+$/g,d=`
`,p="/",m="*",g="",v="comment",b="declaration";uh=function(C,R){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];R=R||{};var E=1,M=1;function O(B){var H=B.match(t);H&&(E+=H.length);var U=B.lastIndexOf(d);M=~U?B.length-U:M+B.length}function L(){var B={line:E,column:M};return function(H){return H.position=new j(B),V(),H}}function j(B){this.start=B,this.end={line:E,column:M},this.source=R.source}j.prototype.content=C;function z(B){var H=new Error(R.source+":"+E+":"+M+": "+B);if(H.reason=B,H.filename=R.source,H.line=E,H.column=M,H.source=C,!R.silent)throw H}function I(B){var H=B.exec(C);if(H){var U=H[0];return O(U),C=C.slice(U.length),H}}function V(){I(r)}function F(B){var H;for(B=B||[];H=N();)H!==!1&&B.push(H);return B}function N(){var B=L();if(!(p!=C.charAt(0)||m!=C.charAt(1))){for(var H=2;g!=C.charAt(H)&&(m!=C.charAt(H)||p!=C.charAt(H+1));)++H;if(H+=2,g===C.charAt(H-1))return z("End of comment missing");var U=C.slice(2,H-2);return M+=2,O(U),C=C.slice(H),M+=2,B({type:v,comment:U})}}function q(){var B=L(),H=I(a);if(H){if(N(),!I(l))return z("property missing ':'");var U=I(s),_=B({type:b,property:x(H[0].replace(e,g)),value:U?x(U[0].replace(e,g)):g});return I(u),_}}function A(){var B=[];F(B);for(var H;H=q();)H!==!1&&(B.push(H),F(B));return B}return V(),A()};function x(C){return C?C.replace(f,g):g}return uh}var ux;function gj(){if(ux)return vo;ux=1;var e=vo&&vo.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(vo,"__esModule",{value:!0}),vo.default=r;var t=e(mj());function r(a,l){var s=null;if(!a||typeof a!="string")return s;var u=(0,t.default)(a),f=typeof l=="function";return u.forEach(function(d){if(d.type==="declaration"){var p=d.property,m=d.value;f?l(p,m,d):m&&(s=s||{},s[p]=m)}}),s}return vo}var Jl={},cx;function yj(){if(cx)return Jl;cx=1,Object.defineProperty(Jl,"__esModule",{value:!0}),Jl.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,s=function(p){return!p||r.test(p)||e.test(p)},u=function(p,m){return m.toUpperCase()},f=function(p,m){return"".concat(m,"-")},d=function(p,m){return m===void 0&&(m={}),s(p)?p:(p=p.toLowerCase(),m.reactCompat?p=p.replace(l,f):p=p.replace(a,f),p.replace(t,u))};return Jl.camelCase=d,Jl}var es,fx;function bj(){if(fx)return es;fx=1;var e=es&&es.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(gj()),r=yj();function a(l,s){var u={};return!l||typeof l!="string"||(0,t.default)(l,function(f,d){f&&d&&(u[(0,r.camelCase)(f,s)]=d)}),u}return a.default=a,es=a,es}var vj=bj();const xj=Kc(vj),Ww=Kw("end"),gg=Kw("start");function Kw(e){return t;function t(r){const a=r&&r.position&&r.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function Sj(e){const t=gg(e),r=Ww(e);if(t&&r)return{start:t,end:r}}function ds(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?dx(e.position):"start"in e||"end"in e?dx(e):"line"in e||"column"in e?nm(e):""}function nm(e){return px(e&&e.line)+":"+px(e&&e.column)}function dx(e){return nm(e&&e.start)+"-"+nm(e&&e.end)}function px(e){return e&&typeof e=="number"?e:1}class bn extends Error{constructor(t,r,a){super(),typeof r=="string"&&(a=r,r=void 0);let l="",s={},u=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof t=="string"?l=t:!s.cause&&t&&(u=!0,l=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof a=="string"){const d=a.indexOf(":");d===-1?s.ruleId=a:(s.source=a.slice(0,d),s.ruleId=a.slice(d+1))}if(!s.place&&s.ancestors&&s.ancestors){const d=s.ancestors[s.ancestors.length-1];d&&(s.place=d.position)}const f=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=f?f.line:void 0,this.name=ds(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=u&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}bn.prototype.file="";bn.prototype.name="";bn.prototype.reason="";bn.prototype.message="";bn.prototype.stack="";bn.prototype.column=void 0;bn.prototype.line=void 0;bn.prototype.ancestors=void 0;bn.prototype.cause=void 0;bn.prototype.fatal=void 0;bn.prototype.place=void 0;bn.prototype.ruleId=void 0;bn.prototype.source=void 0;const yg={}.hasOwnProperty,wj=new Map,Cj=/[A-Z]/g,kj=new Set(["table","tbody","thead","tfoot","tr"]),Ej=new Set(["td","th"]),Qw="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Tj(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=Lj(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=jj(r,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?mg:pj,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=Zw(l,e,void 0);return s&&typeof s!="string"?s:l.create(e,l.Fragment,{children:s||void 0},void 0)}function Zw(e,t,r){if(t.type==="element")return Rj(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Aj(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Oj(e,t,r);if(t.type==="mdxjsEsm")return Mj(e,t);if(t.type==="root")return zj(e,t,r);if(t.type==="text")return Dj(e,t)}function Rj(e,t,r){const a=e.schema;let l=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(l=mg,e.schema=l),e.ancestors.push(t);const s=eC(e,t.tagName,!1),u=Pj(e,t);let f=vg(e,t);return kj.has(t.tagName)&&(f=f.filter(function(d){return typeof d=="string"?!rj(d):!0})),Jw(e,u,s,t),bg(u,f),e.ancestors.pop(),e.schema=a,e.create(t,s,u,r)}function Aj(e,t){if(t.data&&t.data.estree&&e.evaluater){const a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}Ts(e,t.position)}function Mj(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ts(e,t.position)}function Oj(e,t,r){const a=e.schema;let l=a;t.name==="svg"&&a.space==="html"&&(l=mg,e.schema=l),e.ancestors.push(t);const s=t.name===null?e.Fragment:eC(e,t.name,!0),u=Nj(e,t),f=vg(e,t);return Jw(e,u,s,t),bg(u,f),e.ancestors.pop(),e.schema=a,e.create(t,s,u,r)}function zj(e,t,r){const a={};return bg(a,vg(e,t)),e.create(t,e.Fragment,a,r)}function Dj(e,t){return t.value}function Jw(e,t,r,a){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=a)}function bg(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function jj(e,t,r){return a;function a(l,s,u,f){const p=Array.isArray(u.children)?r:t;return f?p(s,u,f):p(s,u)}}function Lj(e,t){return r;function r(a,l,s,u){const f=Array.isArray(s.children),d=gg(a);return t(l,s,u,f,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function Pj(e,t){const r={};let a,l;for(l in t.properties)if(l!=="children"&&yg.call(t.properties,l)){const s=_j(e,l,t.properties[l]);if(s){const[u,f]=s;e.tableCellAlignToStyle&&u==="align"&&typeof f=="string"&&Ej.has(t.tagName)?a=f:r[u]=f}}if(a){const s=r.style||(r.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return r}function Nj(e,t){const r={};for(const a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const s=a.data.estree.body[0];s.type;const u=s.expression;u.type;const f=u.properties[0];f.type,Object.assign(r,e.evaluater.evaluateExpression(f.argument))}else Ts(e,t.position);else{const l=a.name;let s;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const f=a.value.data.estree.body[0];f.type,s=e.evaluater.evaluateExpression(f.expression)}else Ts(e,t.position);else s=a.value===null?!0:a.value;r[l]=s}return r}function vg(e,t){const r=[];let a=-1;const l=e.passKeys?new Map:wj;for(;++a<t.children.length;){const s=t.children[a];let u;if(e.passKeys){const d=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(d){const p=l.get(d)||0;u=d+"-"+p,l.set(d,p+1)}}const f=Zw(e,s,u);f!==void 0&&r.push(f)}return r}function _j(e,t,r){const a=cj(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?ZD(r):hj(r)),a.property==="style"){let l=typeof r=="object"?r:Bj(e,String(r));return e.stylePropertyNameCase==="css"&&(l=Ij(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&a.space?lj[a.property]||a.property:a.attribute,r]}}function Bj(e,t){try{return xj(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const a=r,l=new bn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=Qw+"#cannot-parse-style-attribute",l}}function eC(e,t,r){let a;if(!r)a={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let s=-1,u;for(;++s<l.length;){const f=ix(l[s])?{type:"Identifier",name:l[s]}:{type:"Literal",value:l[s]};u=u?{type:"MemberExpression",object:u,property:f,computed:!!(s&&f.type==="Literal"),optional:!1}:f}a=u}else a=ix(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){const l=a.value;return yg.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(a);Ts(e)}function Ts(e,t){const r=new bn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Qw+"#cannot-handle-mdx-estrees-without-createevaluater",r}function Ij(e){const t={};let r;for(r in e)yg.call(e,r)&&(t[$j(r)]=e[r]);return t}function $j(e){let t=e.replace(Cj,Hj);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Hj(e){return"-"+e.toLowerCase()}const ch={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Uj={};function xg(e,t){const r=Uj,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,l=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return tC(e,a,l)}function tC(e,t,r){if(Fj(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return hx(e.children,t,r)}return Array.isArray(e)?hx(e,t,r):""}function hx(e,t,r){const a=[];let l=-1;for(;++l<e.length;)a[l]=tC(e[l],t,r);return a.join("")}function Fj(e){return!!(e&&typeof e=="object")}const mx=document.createElement("i");function Sg(e){const t="&"+e+";";mx.innerHTML=t;const r=mx.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function Gn(e,t,r,a){const l=e.length;let s=0,u;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,r=r>0?r:0,a.length<1e4)u=Array.from(a),u.unshift(t,r),e.splice(...u);else for(r&&e.splice(t,r);s<a.length;)u=a.slice(s,s+1e4),u.unshift(t,0),e.splice(...u),s+=1e4,t+=1e4}function lr(e,t){return e.length>0?(Gn(e,e.length,0,t),e):t}const gx={}.hasOwnProperty;function nC(e){const t={};let r=-1;for(;++r<e.length;)qj(t,e[r]);return t}function qj(e,t){let r;for(r in t){const l=(gx.call(e,r)?e[r]:void 0)||(e[r]={}),s=t[r];let u;if(s)for(u in s){gx.call(l,u)||(l[u]=[]);const f=s[u];Vj(l[u],Array.isArray(f)?f:f?[f]:[])}}}function Vj(e,t){let r=-1;const a=[];for(;++r<t.length;)(t[r].add==="after"?e:a).push(t[r]);Gn(e,0,0,a)}function rC(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function vr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const xn=qi(/[A-Za-z]/),mn=qi(/[\dA-Za-z]/),Yj=qi(/[#-'*+\--9=?A-Z^-~]/);function Yc(e){return e!==null&&(e<32||e===127)}const rm=qi(/\d/),Gj=qi(/[\dA-Fa-f]/),Xj=qi(/[!-/:-@[-`{-~]/);function Pe(e){return e!==null&&e<-2}function Tt(e){return e!==null&&(e<0||e===32)}function tt(e){return e===-2||e===-1||e===32}const Ef=qi(new RegExp("\\p{P}|\\p{S}","u")),ka=qi(/\s/);function qi(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function qo(e){const t=[];let r=-1,a=0,l=0;for(;++r<e.length;){const s=e.charCodeAt(r);let u="";if(s===37&&mn(e.charCodeAt(r+1))&&mn(e.charCodeAt(r+2)))l=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(u=String.fromCharCode(s));else if(s>55295&&s<57344){const f=e.charCodeAt(r+1);s<56320&&f>56319&&f<57344?(u=String.fromCharCode(s,f),l=1):u="�"}else u=String.fromCharCode(s);u&&(t.push(e.slice(a,r),encodeURIComponent(u)),a=r+l+1,u=""),l&&(r+=l,l=0)}return t.join("")+e.slice(a)}function lt(e,t,r,a){const l=a?a-1:Number.POSITIVE_INFINITY;let s=0;return u;function u(d){return tt(d)?(e.enter(r),f(d)):t(d)}function f(d){return tt(d)&&s++<l?(e.consume(d),f):(e.exit(r),t(d))}}const Wj={tokenize:Kj};function Kj(e){const t=e.attempt(this.parser.constructs.contentInitial,a,l);let r;return t;function a(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),lt(e,t,"linePrefix")}function l(f){return e.enter("paragraph"),s(f)}function s(f){const d=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=d),r=d,u(f)}function u(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return Pe(f)?(e.consume(f),e.exit("chunkText"),s):(e.consume(f),u)}}const Qj={tokenize:Zj},yx={tokenize:Jj};function Zj(e){const t=this,r=[];let a=0,l,s,u;return f;function f(O){if(a<r.length){const L=r[a];return t.containerState=L[1],e.attempt(L[0].continuation,d,p)(O)}return p(O)}function d(O){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&M();const L=t.events.length;let j=L,z;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){z=t.events[j][1].end;break}E(a);let I=L;for(;I<t.events.length;)t.events[I][1].end={...z},I++;return Gn(t.events,j+1,0,t.events.slice(L)),t.events.length=I,p(O)}return f(O)}function p(O){if(a===r.length){if(!l)return v(O);if(l.currentConstruct&&l.currentConstruct.concrete)return x(O);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(yx,m,g)(O)}function m(O){return l&&M(),E(a),v(O)}function g(O){return t.parser.lazy[t.now().line]=a!==r.length,u=t.now().offset,x(O)}function v(O){return t.containerState={},e.attempt(yx,b,x)(O)}function b(O){return a++,r.push([t.currentConstruct,t.containerState]),v(O)}function x(O){if(O===null){l&&M(),E(0),e.consume(O);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:s}),C(O)}function C(O){if(O===null){R(e.exit("chunkFlow"),!0),E(0),e.consume(O);return}return Pe(O)?(e.consume(O),R(e.exit("chunkFlow")),a=0,t.interrupt=void 0,f):(e.consume(O),C)}function R(O,L){const j=t.sliceStream(O);if(L&&j.push(null),O.previous=s,s&&(s.next=O),s=O,l.defineSkip(O.start),l.write(j),t.parser.lazy[O.start.line]){let z=l.events.length;for(;z--;)if(l.events[z][1].start.offset<u&&(!l.events[z][1].end||l.events[z][1].end.offset>u))return;const I=t.events.length;let V=I,F,N;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){if(F){N=t.events[V][1].end;break}F=!0}for(E(a),z=I;z<t.events.length;)t.events[z][1].end={...N},z++;Gn(t.events,V+1,0,t.events.slice(I)),t.events.length=z}}function E(O){let L=r.length;for(;L-- >O;){const j=r[L];t.containerState=j[1],j[0].exit.call(t,e)}r.length=O}function M(){l.write([null]),s=void 0,l=void 0,t.containerState._closeFlow=void 0}}function Jj(e,t,r){return lt(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Po(e){if(e===null||Tt(e)||ka(e))return 1;if(Ef(e))return 2}function Tf(e,t,r){const a=[];let l=-1;for(;++l<e.length;){const s=e[l].resolveAll;s&&!a.includes(s)&&(t=s(t,r),a.push(s))}return t}const im={name:"attention",resolveAll:eL,tokenize:tL};function eL(e,t){let r=-1,a,l,s,u,f,d,p,m;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(a=r;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&t.sliceSerialize(e[a][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[a][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;d=e[a][1].end.offset-e[a][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const g={...e[a][1].end},v={...e[r][1].start};bx(g,-d),bx(v,d),u={type:d>1?"strongSequence":"emphasisSequence",start:g,end:{...e[a][1].end}},f={type:d>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:v},s={type:d>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[r][1].start}},l={type:d>1?"strong":"emphasis",start:{...u.start},end:{...f.end}},e[a][1].end={...u.start},e[r][1].start={...f.end},p=[],e[a][1].end.offset-e[a][1].start.offset&&(p=lr(p,[["enter",e[a][1],t],["exit",e[a][1],t]])),p=lr(p,[["enter",l,t],["enter",u,t],["exit",u,t],["enter",s,t]]),p=lr(p,Tf(t.parser.constructs.insideSpan.null,e.slice(a+1,r),t)),p=lr(p,[["exit",s,t],["enter",f,t],["exit",f,t],["exit",l,t]]),e[r][1].end.offset-e[r][1].start.offset?(m=2,p=lr(p,[["enter",e[r][1],t],["exit",e[r][1],t]])):m=0,Gn(e,a-1,r-a+3,p),r=a+p.length-m-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function tL(e,t){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,l=Po(a);let s;return u;function u(d){return s=d,e.enter("attentionSequence"),f(d)}function f(d){if(d===s)return e.consume(d),f;const p=e.exit("attentionSequence"),m=Po(d),g=!m||m===2&&l||r.includes(d),v=!l||l===2&&m||r.includes(a);return p._open=!!(s===42?g:g&&(l||!v)),p._close=!!(s===42?v:v&&(m||!g)),t(d)}}function bx(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const nL={name:"autolink",tokenize:rL};function rL(e,t,r){let a=0;return l;function l(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(b){return xn(b)?(e.consume(b),u):b===64?r(b):p(b)}function u(b){return b===43||b===45||b===46||mn(b)?(a=1,f(b)):p(b)}function f(b){return b===58?(e.consume(b),a=0,d):(b===43||b===45||b===46||mn(b))&&a++<32?(e.consume(b),f):(a=0,p(b))}function d(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):b===null||b===32||b===60||Yc(b)?r(b):(e.consume(b),d)}function p(b){return b===64?(e.consume(b),m):Yj(b)?(e.consume(b),p):r(b)}function m(b){return mn(b)?g(b):r(b)}function g(b){return b===46?(e.consume(b),a=0,m):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):v(b)}function v(b){if((b===45||mn(b))&&a++<63){const x=b===45?v:g;return e.consume(b),x}return r(b)}}const qs={partial:!0,tokenize:iL};function iL(e,t,r){return a;function a(s){return tt(s)?lt(e,l,"linePrefix")(s):l(s)}function l(s){return s===null||Pe(s)?t(s):r(s)}}const iC={continuation:{tokenize:oL},exit:lL,name:"blockQuote",tokenize:aL};function aL(e,t,r){const a=this;return l;function l(u){if(u===62){const f=a.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),s}return r(u)}function s(u){return tt(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function oL(e,t,r){const a=this;return l;function l(u){return tt(u)?lt(e,s,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):s(u)}function s(u){return e.attempt(iC,t,r)(u)}}function lL(e){e.exit("blockQuote")}const aC={name:"characterEscape",tokenize:sL};function sL(e,t,r){return a;function a(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),l}function l(s){return Xj(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(s)}}const oC={name:"characterReference",tokenize:uL};function uL(e,t,r){const a=this;let l=0,s,u;return f;function f(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),d}function d(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),s=31,u=mn,m(g))}function p(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,u=Gj,m):(e.enter("characterReferenceValue"),s=7,u=rm,m(g))}function m(g){if(g===59&&l){const v=e.exit("characterReferenceValue");return u===mn&&!Sg(a.sliceSerialize(v))?r(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(g)&&l++<s?(e.consume(g),m):r(g)}}const vx={partial:!0,tokenize:fL},xx={concrete:!0,name:"codeFenced",tokenize:cL};function cL(e,t,r){const a=this,l={partial:!0,tokenize:j};let s=0,u=0,f;return d;function d(z){return p(z)}function p(z){const I=a.events[a.events.length-1];return s=I&&I[1].type==="linePrefix"?I[2].sliceSerialize(I[1],!0).length:0,f=z,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(z)}function m(z){return z===f?(u++,e.consume(z),m):u<3?r(z):(e.exit("codeFencedFenceSequence"),tt(z)?lt(e,g,"whitespace")(z):g(z))}function g(z){return z===null||Pe(z)?(e.exit("codeFencedFence"),a.interrupt?t(z):e.check(vx,C,L)(z)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(z))}function v(z){return z===null||Pe(z)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(z)):tt(z)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),lt(e,b,"whitespace")(z)):z===96&&z===f?r(z):(e.consume(z),v)}function b(z){return z===null||Pe(z)?g(z):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(z))}function x(z){return z===null||Pe(z)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(z)):z===96&&z===f?r(z):(e.consume(z),x)}function C(z){return e.attempt(l,L,R)(z)}function R(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),E}function E(z){return s>0&&tt(z)?lt(e,M,"linePrefix",s+1)(z):M(z)}function M(z){return z===null||Pe(z)?e.check(vx,C,L)(z):(e.enter("codeFlowValue"),O(z))}function O(z){return z===null||Pe(z)?(e.exit("codeFlowValue"),M(z)):(e.consume(z),O)}function L(z){return e.exit("codeFenced"),t(z)}function j(z,I,V){let F=0;return N;function N(U){return z.enter("lineEnding"),z.consume(U),z.exit("lineEnding"),q}function q(U){return z.enter("codeFencedFence"),tt(U)?lt(z,A,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):A(U)}function A(U){return U===f?(z.enter("codeFencedFenceSequence"),B(U)):V(U)}function B(U){return U===f?(F++,z.consume(U),B):F>=u?(z.exit("codeFencedFenceSequence"),tt(U)?lt(z,H,"whitespace")(U):H(U)):V(U)}function H(U){return U===null||Pe(U)?(z.exit("codeFencedFence"),I(U)):V(U)}}}function fL(e,t,r){const a=this;return l;function l(u){return u===null?r(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s)}function s(u){return a.parser.lazy[a.now().line]?r(u):t(u)}}const fh={name:"codeIndented",tokenize:pL},dL={partial:!0,tokenize:hL};function pL(e,t,r){const a=this;return l;function l(p){return e.enter("codeIndented"),lt(e,s,"linePrefix",5)(p)}function s(p){const m=a.events[a.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?u(p):r(p)}function u(p){return p===null?d(p):Pe(p)?e.attempt(dL,u,d)(p):(e.enter("codeFlowValue"),f(p))}function f(p){return p===null||Pe(p)?(e.exit("codeFlowValue"),u(p)):(e.consume(p),f)}function d(p){return e.exit("codeIndented"),t(p)}}function hL(e,t,r){const a=this;return l;function l(u){return a.parser.lazy[a.now().line]?r(u):Pe(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):lt(e,s,"linePrefix",5)(u)}function s(u){const f=a.events[a.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):Pe(u)?l(u):r(u)}}const mL={name:"codeText",previous:yL,resolve:gL,tokenize:bL};function gL(e){let t=e.length-4,r=3,a,l;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=r;++a<t;)if(e[a][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(a=r-1,t++;++a<=t;)l===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(l=a):(a===t||e[a][1].type==="lineEnding")&&(e[l][1].type="codeTextData",a!==l+2&&(e[l][1].end=e[a-1][1].end,e.splice(l+2,a-l-2),t-=a-l-2,a=l+2),l=void 0);return e}function yL(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function bL(e,t,r){let a=0,l,s;return u;function u(g){return e.enter("codeText"),e.enter("codeTextSequence"),f(g)}function f(g){return g===96?(e.consume(g),a++,f):(e.exit("codeTextSequence"),d(g))}function d(g){return g===null?r(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),d):g===96?(s=e.enter("codeTextSequence"),l=0,m(g)):Pe(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||Pe(g)?(e.exit("codeTextData"),d(g)):(e.consume(g),p)}function m(g){return g===96?(e.consume(g),l++,m):l===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(s.type="codeTextData",p(g))}}class vL{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const a=r??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(t,a):t>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(t,r,a){const l=r||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return a&&ts(this.left,a),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ts(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ts(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);ts(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ts(this.left,r.reverse())}}}function ts(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function lC(e){const t={};let r=-1,a,l,s,u,f,d,p;const m=new vL(e);for(;++r<m.length;){for(;r in t;)r=t[r];if(a=m.get(r),r&&a[1].type==="chunkFlow"&&m.get(r-1)[1].type==="listItemPrefix"&&(d=a[1]._tokenizer.events,s=0,s<d.length&&d[s][1].type==="lineEndingBlank"&&(s+=2),s<d.length&&d[s][1].type==="content"))for(;++s<d.length&&d[s][1].type!=="content";)d[s][1].type==="chunkText"&&(d[s][1]._isInFirstContentOfListItem=!0,s++);if(a[0]==="enter")a[1].contentType&&(Object.assign(t,xL(m,r)),r=t[r],p=!0);else if(a[1]._container){for(s=r,l=void 0;s--;)if(u=m.get(s),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(l&&(m.get(l)[1].type="lineEndingBlank"),u[1].type="lineEnding",l=s);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;l&&(a[1].end={...m.get(l)[1].start},f=m.slice(l,r),f.unshift(a),m.splice(l,r-l+1,f))}}return Gn(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!p}function xL(e,t){const r=e.get(t)[1],a=e.get(t)[2];let l=t-1;const s=[];let u=r._tokenizer;u||(u=a.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const f=u.events,d=[],p={};let m,g,v=-1,b=r,x=0,C=0;const R=[C];for(;b;){for(;e.get(++l)[1]!==b;);s.push(l),b._tokenizer||(m=a.sliceStream(b),b.next||m.push(null),g&&u.defineSkip(b.start),b._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(m),b._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),g=b,b=b.next}for(b=r;++v<f.length;)f[v][0]==="exit"&&f[v-1][0]==="enter"&&f[v][1].type===f[v-1][1].type&&f[v][1].start.line!==f[v][1].end.line&&(C=v+1,R.push(C),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(u.events=[],b?(b._tokenizer=void 0,b.previous=void 0):R.pop(),v=R.length;v--;){const E=f.slice(R[v],R[v+1]),M=s.pop();d.push([M,M+E.length-1]),e.splice(M,2,E)}for(d.reverse(),v=-1;++v<d.length;)p[x+d[v][0]]=x+d[v][1],x+=d[v][1]-d[v][0]-1;return p}const SL={resolve:CL,tokenize:kL},wL={partial:!0,tokenize:EL};function CL(e){return lC(e),e}function kL(e,t){let r;return a;function a(f){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),l(f)}function l(f){return f===null?s(f):Pe(f)?e.check(wL,u,s)(f):(e.consume(f),l)}function s(f){return e.exit("chunkContent"),e.exit("content"),t(f)}function u(f){return e.consume(f),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,l}}function EL(e,t,r){const a=this;return l;function l(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),lt(e,s,"linePrefix")}function s(u){if(u===null||Pe(u))return r(u);const f=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):e.interrupt(a.parser.constructs.flow,r,t)(u)}}function sC(e,t,r,a,l,s,u,f,d){const p=d||Number.POSITIVE_INFINITY;let m=0;return g;function g(E){return E===60?(e.enter(a),e.enter(l),e.enter(s),e.consume(E),e.exit(s),v):E===null||E===32||E===41||Yc(E)?r(E):(e.enter(a),e.enter(u),e.enter(f),e.enter("chunkString",{contentType:"string"}),C(E))}function v(E){return E===62?(e.enter(s),e.consume(E),e.exit(s),e.exit(l),e.exit(a),t):(e.enter(f),e.enter("chunkString",{contentType:"string"}),b(E))}function b(E){return E===62?(e.exit("chunkString"),e.exit(f),v(E)):E===null||E===60||Pe(E)?r(E):(e.consume(E),E===92?x:b)}function x(E){return E===60||E===62||E===92?(e.consume(E),b):b(E)}function C(E){return!m&&(E===null||E===41||Tt(E))?(e.exit("chunkString"),e.exit(f),e.exit(u),e.exit(a),t(E)):m<p&&E===40?(e.consume(E),m++,C):E===41?(e.consume(E),m--,C):E===null||E===32||E===40||Yc(E)?r(E):(e.consume(E),E===92?R:C)}function R(E){return E===40||E===41||E===92?(e.consume(E),C):C(E)}}function uC(e,t,r,a,l,s){const u=this;let f=0,d;return p;function p(b){return e.enter(a),e.enter(l),e.consume(b),e.exit(l),e.enter(s),m}function m(b){return f>999||b===null||b===91||b===93&&!d||b===94&&!f&&"_hiddenFootnoteSupport"in u.parser.constructs?r(b):b===93?(e.exit(s),e.enter(l),e.consume(b),e.exit(l),e.exit(a),t):Pe(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===null||b===91||b===93||Pe(b)||f++>999?(e.exit("chunkString"),m(b)):(e.consume(b),d||(d=!tt(b)),b===92?v:g)}function v(b){return b===91||b===92||b===93?(e.consume(b),f++,g):g(b)}}function cC(e,t,r,a,l,s){let u;return f;function f(v){return v===34||v===39||v===40?(e.enter(a),e.enter(l),e.consume(v),e.exit(l),u=v===40?41:v,d):r(v)}function d(v){return v===u?(e.enter(l),e.consume(v),e.exit(l),e.exit(a),t):(e.enter(s),p(v))}function p(v){return v===u?(e.exit(s),d(u)):v===null?r(v):Pe(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),lt(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(v))}function m(v){return v===u||v===null||Pe(v)?(e.exit("chunkString"),p(v)):(e.consume(v),v===92?g:m)}function g(v){return v===u||v===92?(e.consume(v),m):m(v)}}function ps(e,t){let r;return a;function a(l){return Pe(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r=!0,a):tt(l)?lt(e,a,r?"linePrefix":"lineSuffix")(l):t(l)}}const TL={name:"definition",tokenize:AL},RL={partial:!0,tokenize:ML};function AL(e,t,r){const a=this;let l;return s;function s(b){return e.enter("definition"),u(b)}function u(b){return uC.call(a,e,f,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function f(b){return l=vr(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),d):r(b)}function d(b){return Tt(b)?ps(e,p)(b):p(b)}function p(b){return sC(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function m(b){return e.attempt(RL,g,g)(b)}function g(b){return tt(b)?lt(e,v,"whitespace")(b):v(b)}function v(b){return b===null||Pe(b)?(e.exit("definition"),a.parser.defined.push(l),t(b)):r(b)}}function ML(e,t,r){return a;function a(f){return Tt(f)?ps(e,l)(f):r(f)}function l(f){return cC(e,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function s(f){return tt(f)?lt(e,u,"whitespace")(f):u(f)}function u(f){return f===null||Pe(f)?t(f):r(f)}}const OL={name:"hardBreakEscape",tokenize:zL};function zL(e,t,r){return a;function a(s){return e.enter("hardBreakEscape"),e.consume(s),l}function l(s){return Pe(s)?(e.exit("hardBreakEscape"),t(s)):r(s)}}const DL={name:"headingAtx",resolve:jL,tokenize:LL};function jL(e,t){let r=e.length-2,a=3,l,s;return e[a][1].type==="whitespace"&&(a+=2),r-2>a&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&e[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a&&(l={type:"atxHeadingText",start:e[a][1].start,end:e[r][1].end},s={type:"chunkText",start:e[a][1].start,end:e[r][1].end,contentType:"text"},Gn(e,a,r-a+1,[["enter",l,t],["enter",s,t],["exit",s,t],["exit",l,t]])),e}function LL(e,t,r){let a=0;return l;function l(m){return e.enter("atxHeading"),s(m)}function s(m){return e.enter("atxHeadingSequence"),u(m)}function u(m){return m===35&&a++<6?(e.consume(m),u):m===null||Tt(m)?(e.exit("atxHeadingSequence"),f(m)):r(m)}function f(m){return m===35?(e.enter("atxHeadingSequence"),d(m)):m===null||Pe(m)?(e.exit("atxHeading"),t(m)):tt(m)?lt(e,f,"whitespace")(m):(e.enter("atxHeadingText"),p(m))}function d(m){return m===35?(e.consume(m),d):(e.exit("atxHeadingSequence"),f(m))}function p(m){return m===null||m===35||Tt(m)?(e.exit("atxHeadingText"),f(m)):(e.consume(m),p)}}const PL=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Sx=["pre","script","style","textarea"],NL={concrete:!0,name:"htmlFlow",resolveTo:IL,tokenize:$L},_L={partial:!0,tokenize:UL},BL={partial:!0,tokenize:HL};function IL(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function $L(e,t,r){const a=this;let l,s,u,f,d;return p;function p(P){return m(P)}function m(P){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(P),g}function g(P){return P===33?(e.consume(P),v):P===47?(e.consume(P),s=!0,C):P===63?(e.consume(P),l=3,a.interrupt?t:k):xn(P)?(e.consume(P),u=String.fromCharCode(P),R):r(P)}function v(P){return P===45?(e.consume(P),l=2,b):P===91?(e.consume(P),l=5,f=0,x):xn(P)?(e.consume(P),l=4,a.interrupt?t:k):r(P)}function b(P){return P===45?(e.consume(P),a.interrupt?t:k):r(P)}function x(P){const se="CDATA[";return P===se.charCodeAt(f++)?(e.consume(P),f===se.length?a.interrupt?t:A:x):r(P)}function C(P){return xn(P)?(e.consume(P),u=String.fromCharCode(P),R):r(P)}function R(P){if(P===null||P===47||P===62||Tt(P)){const se=P===47,me=u.toLowerCase();return!se&&!s&&Sx.includes(me)?(l=1,a.interrupt?t(P):A(P)):PL.includes(u.toLowerCase())?(l=6,se?(e.consume(P),E):a.interrupt?t(P):A(P)):(l=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(P):s?M(P):O(P))}return P===45||mn(P)?(e.consume(P),u+=String.fromCharCode(P),R):r(P)}function E(P){return P===62?(e.consume(P),a.interrupt?t:A):r(P)}function M(P){return tt(P)?(e.consume(P),M):N(P)}function O(P){return P===47?(e.consume(P),N):P===58||P===95||xn(P)?(e.consume(P),L):tt(P)?(e.consume(P),O):N(P)}function L(P){return P===45||P===46||P===58||P===95||mn(P)?(e.consume(P),L):j(P)}function j(P){return P===61?(e.consume(P),z):tt(P)?(e.consume(P),j):O(P)}function z(P){return P===null||P===60||P===61||P===62||P===96?r(P):P===34||P===39?(e.consume(P),d=P,I):tt(P)?(e.consume(P),z):V(P)}function I(P){return P===d?(e.consume(P),d=null,F):P===null||Pe(P)?r(P):(e.consume(P),I)}function V(P){return P===null||P===34||P===39||P===47||P===60||P===61||P===62||P===96||Tt(P)?j(P):(e.consume(P),V)}function F(P){return P===47||P===62||tt(P)?O(P):r(P)}function N(P){return P===62?(e.consume(P),q):r(P)}function q(P){return P===null||Pe(P)?A(P):tt(P)?(e.consume(P),q):r(P)}function A(P){return P===45&&l===2?(e.consume(P),_):P===60&&l===1?(e.consume(P),G):P===62&&l===4?(e.consume(P),K):P===63&&l===3?(e.consume(P),k):P===93&&l===5?(e.consume(P),J):Pe(P)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(_L,re,B)(P)):P===null||Pe(P)?(e.exit("htmlFlowData"),B(P)):(e.consume(P),A)}function B(P){return e.check(BL,H,re)(P)}function H(P){return e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),U}function U(P){return P===null||Pe(P)?B(P):(e.enter("htmlFlowData"),A(P))}function _(P){return P===45?(e.consume(P),k):A(P)}function G(P){return P===47?(e.consume(P),u="",Z):A(P)}function Z(P){if(P===62){const se=u.toLowerCase();return Sx.includes(se)?(e.consume(P),K):A(P)}return xn(P)&&u.length<8?(e.consume(P),u+=String.fromCharCode(P),Z):A(P)}function J(P){return P===93?(e.consume(P),k):A(P)}function k(P){return P===62?(e.consume(P),K):P===45&&l===2?(e.consume(P),k):A(P)}function K(P){return P===null||Pe(P)?(e.exit("htmlFlowData"),re(P)):(e.consume(P),K)}function re(P){return e.exit("htmlFlow"),t(P)}}function HL(e,t,r){const a=this;return l;function l(u){return Pe(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):r(u)}function s(u){return a.parser.lazy[a.now().line]?r(u):t(u)}}function UL(e,t,r){return a;function a(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(qs,t,r)}}const FL={name:"htmlText",tokenize:qL};function qL(e,t,r){const a=this;let l,s,u;return f;function f(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),d}function d(k){return k===33?(e.consume(k),p):k===47?(e.consume(k),j):k===63?(e.consume(k),O):xn(k)?(e.consume(k),V):r(k)}function p(k){return k===45?(e.consume(k),m):k===91?(e.consume(k),s=0,x):xn(k)?(e.consume(k),M):r(k)}function m(k){return k===45?(e.consume(k),b):r(k)}function g(k){return k===null?r(k):k===45?(e.consume(k),v):Pe(k)?(u=g,G(k)):(e.consume(k),g)}function v(k){return k===45?(e.consume(k),b):g(k)}function b(k){return k===62?_(k):k===45?v(k):g(k)}function x(k){const K="CDATA[";return k===K.charCodeAt(s++)?(e.consume(k),s===K.length?C:x):r(k)}function C(k){return k===null?r(k):k===93?(e.consume(k),R):Pe(k)?(u=C,G(k)):(e.consume(k),C)}function R(k){return k===93?(e.consume(k),E):C(k)}function E(k){return k===62?_(k):k===93?(e.consume(k),E):C(k)}function M(k){return k===null||k===62?_(k):Pe(k)?(u=M,G(k)):(e.consume(k),M)}function O(k){return k===null?r(k):k===63?(e.consume(k),L):Pe(k)?(u=O,G(k)):(e.consume(k),O)}function L(k){return k===62?_(k):O(k)}function j(k){return xn(k)?(e.consume(k),z):r(k)}function z(k){return k===45||mn(k)?(e.consume(k),z):I(k)}function I(k){return Pe(k)?(u=I,G(k)):tt(k)?(e.consume(k),I):_(k)}function V(k){return k===45||mn(k)?(e.consume(k),V):k===47||k===62||Tt(k)?F(k):r(k)}function F(k){return k===47?(e.consume(k),_):k===58||k===95||xn(k)?(e.consume(k),N):Pe(k)?(u=F,G(k)):tt(k)?(e.consume(k),F):_(k)}function N(k){return k===45||k===46||k===58||k===95||mn(k)?(e.consume(k),N):q(k)}function q(k){return k===61?(e.consume(k),A):Pe(k)?(u=q,G(k)):tt(k)?(e.consume(k),q):F(k)}function A(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(e.consume(k),l=k,B):Pe(k)?(u=A,G(k)):tt(k)?(e.consume(k),A):(e.consume(k),H)}function B(k){return k===l?(e.consume(k),l=void 0,U):k===null?r(k):Pe(k)?(u=B,G(k)):(e.consume(k),B)}function H(k){return k===null||k===34||k===39||k===60||k===61||k===96?r(k):k===47||k===62||Tt(k)?F(k):(e.consume(k),H)}function U(k){return k===47||k===62||Tt(k)?F(k):r(k)}function _(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):r(k)}function G(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),Z}function Z(k){return tt(k)?lt(e,J,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):J(k)}function J(k){return e.enter("htmlTextData"),u(k)}}const wg={name:"labelEnd",resolveAll:XL,resolveTo:WL,tokenize:KL},VL={tokenize:QL},YL={tokenize:ZL},GL={tokenize:JL};function XL(e){let t=-1;const r=[];for(;++t<e.length;){const a=e[t][1];if(r.push(e[t]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const l=a.type==="labelImage"?4:2;a.type="data",t+=l}}return e.length!==r.length&&Gn(e,0,e.length,r),e}function WL(e,t){let r=e.length,a=0,l,s,u,f;for(;r--;)if(l=e[r][1],s){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[r][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(u){if(e[r][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(s=r,l.type!=="labelLink")){a=2;break}}else l.type==="labelEnd"&&(u=r);const d={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[s][1].start},end:{...e[u][1].end}},m={type:"labelText",start:{...e[s+a+2][1].end},end:{...e[u-2][1].start}};return f=[["enter",d,t],["enter",p,t]],f=lr(f,e.slice(s+1,s+a+3)),f=lr(f,[["enter",m,t]]),f=lr(f,Tf(t.parser.constructs.insideSpan.null,e.slice(s+a+4,u-3),t)),f=lr(f,[["exit",m,t],e[u-2],e[u-1],["exit",p,t]]),f=lr(f,e.slice(u+1)),f=lr(f,[["exit",d,t]]),Gn(e,s,e.length,f),e}function KL(e,t,r){const a=this;let l=a.events.length,s,u;for(;l--;)if((a.events[l][1].type==="labelImage"||a.events[l][1].type==="labelLink")&&!a.events[l][1]._balanced){s=a.events[l][1];break}return f;function f(v){return s?s._inactive?g(v):(u=a.parser.defined.includes(vr(a.sliceSerialize({start:s.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),d):r(v)}function d(v){return v===40?e.attempt(VL,m,u?m:g)(v):v===91?e.attempt(YL,m,u?p:g)(v):u?m(v):g(v)}function p(v){return e.attempt(GL,m,g)(v)}function m(v){return t(v)}function g(v){return s._balanced=!0,r(v)}}function QL(e,t,r){return a;function a(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),l}function l(g){return Tt(g)?ps(e,s)(g):s(g)}function s(g){return g===41?m(g):sC(e,u,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function u(g){return Tt(g)?ps(e,d)(g):m(g)}function f(g){return r(g)}function d(g){return g===34||g===39||g===40?cC(e,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):m(g)}function p(g){return Tt(g)?ps(e,m)(g):m(g)}function m(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):r(g)}}function ZL(e,t,r){const a=this;return l;function l(f){return uC.call(a,e,s,u,"reference","referenceMarker","referenceString")(f)}function s(f){return a.parser.defined.includes(vr(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(f):r(f)}function u(f){return r(f)}}function JL(e,t,r){return a;function a(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),l}function l(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):r(s)}}const eP={name:"labelStartImage",resolveAll:wg.resolveAll,tokenize:tP};function tP(e,t,r){const a=this;return l;function l(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),s}function s(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),u):r(f)}function u(f){return f===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(f):t(f)}}const nP={name:"labelStartLink",resolveAll:wg.resolveAll,tokenize:rP};function rP(e,t,r){const a=this;return l;function l(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),s}function s(u){return u===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(u):t(u)}}const dh={name:"lineEnding",tokenize:iP};function iP(e,t){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),lt(e,t,"linePrefix")}}const zc={name:"thematicBreak",tokenize:aP};function aP(e,t,r){let a=0,l;return s;function s(p){return e.enter("thematicBreak"),u(p)}function u(p){return l=p,f(p)}function f(p){return p===l?(e.enter("thematicBreakSequence"),d(p)):a>=3&&(p===null||Pe(p))?(e.exit("thematicBreak"),t(p)):r(p)}function d(p){return p===l?(e.consume(p),a++,d):(e.exit("thematicBreakSequence"),tt(p)?lt(e,f,"whitespace")(p):f(p))}}const Mn={continuation:{tokenize:uP},exit:fP,name:"list",tokenize:sP},oP={partial:!0,tokenize:dP},lP={partial:!0,tokenize:cP};function sP(e,t,r){const a=this,l=a.events[a.events.length-1];let s=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,u=0;return f;function f(b){const x=a.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!a.containerState.marker||b===a.containerState.marker:rm(b)){if(a.containerState.type||(a.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(zc,r,p)(b):p(b);if(!a.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(b)}return r(b)}function d(b){return rm(b)&&++u<10?(e.consume(b),d):(!a.interrupt||u<2)&&(a.containerState.marker?b===a.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),p(b)):r(b)}function p(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||b,e.check(qs,a.interrupt?r:m,e.attempt(oP,v,g))}function m(b){return a.containerState.initialBlankLine=!0,s++,v(b)}function g(b){return tt(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),v):r(b)}function v(b){return a.containerState.size=s+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(b)}}function uP(e,t,r){const a=this;return a.containerState._closeFlow=void 0,e.check(qs,l,s);function l(f){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,lt(e,t,"listItemIndent",a.containerState.size+1)(f)}function s(f){return a.containerState.furtherBlankLines||!tt(f)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,u(f)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(lP,t,u)(f))}function u(f){return a.containerState._closeFlow=!0,a.interrupt=void 0,lt(e,e.attempt(Mn,t,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function cP(e,t,r){const a=this;return lt(e,l,"listItemIndent",a.containerState.size+1);function l(s){const u=a.events[a.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===a.containerState.size?t(s):r(s)}}function fP(e){e.exit(this.containerState.type)}function dP(e,t,r){const a=this;return lt(e,l,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(s){const u=a.events[a.events.length-1];return!tt(s)&&u&&u[1].type==="listItemPrefixWhitespace"?t(s):r(s)}}const wx={name:"setextUnderline",resolveTo:pP,tokenize:hP};function pP(e,t){let r=e.length,a,l,s;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){a=r;break}e[r][1].type==="paragraph"&&(l=r)}else e[r][1].type==="content"&&e.splice(r,1),!s&&e[r][1].type==="definition"&&(s=r);const u={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",s?(e.splice(l,0,["enter",u,t]),e.splice(s+1,0,["exit",e[a][1],t]),e[a][1].end={...e[s][1].end}):e[a][1]=u,e.push(["exit",u,t]),e}function hP(e,t,r){const a=this;let l;return s;function s(p){let m=a.events.length,g;for(;m--;)if(a.events[m][1].type!=="lineEnding"&&a.events[m][1].type!=="linePrefix"&&a.events[m][1].type!=="content"){g=a.events[m][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||g)?(e.enter("setextHeadingLine"),l=p,u(p)):r(p)}function u(p){return e.enter("setextHeadingLineSequence"),f(p)}function f(p){return p===l?(e.consume(p),f):(e.exit("setextHeadingLineSequence"),tt(p)?lt(e,d,"lineSuffix")(p):d(p))}function d(p){return p===null||Pe(p)?(e.exit("setextHeadingLine"),t(p)):r(p)}}const mP={tokenize:gP};function gP(e){const t=this,r=e.attempt(qs,a,e.attempt(this.parser.constructs.flowInitial,l,lt(e,e.attempt(this.parser.constructs.flow,l,e.attempt(SL,l)),"linePrefix")));return r;function a(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function l(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const yP={resolveAll:dC()},bP=fC("string"),vP=fC("text");function fC(e){return{resolveAll:dC(e==="text"?xP:void 0),tokenize:t};function t(r){const a=this,l=this.parser.constructs[e],s=r.attempt(l,u,f);return u;function u(m){return p(m)?s(m):f(m)}function f(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),d}function d(m){return p(m)?(r.exit("data"),s(m)):(r.consume(m),d)}function p(m){if(m===null)return!0;const g=l[m];let v=-1;if(g)for(;++v<g.length;){const b=g[v];if(!b.previous||b.previous.call(a,a.previous))return!0}return!1}}}function dC(e){return t;function t(r,a){let l=-1,s;for(;++l<=r.length;)s===void 0?r[l]&&r[l][1].type==="data"&&(s=l,l++):(!r[l]||r[l][1].type!=="data")&&(l!==s+2&&(r[s][1].end=r[l-1][1].end,r.splice(s+2,l-s-2),l=s+2),s=void 0);return e?e(r,a):r}}function xP(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const a=e[r-1][1],l=t.sliceStream(a);let s=l.length,u=-1,f=0,d;for(;s--;){const p=l[s];if(typeof p=="string"){for(u=p.length;p.charCodeAt(u-1)===32;)f++,u--;if(u)break;u=-1}else if(p===-2)d=!0,f++;else if(p!==-1){s++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(f=0),f){const p={type:r===e.length||d||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?u:a.start._bufferIndex+u,_index:a.start._index+s,line:a.end.line,column:a.end.column-f,offset:a.end.offset-f},end:{...a.end}};a.end={...p.start},a.start.offset===a.end.offset?Object.assign(a,p):(e.splice(r,0,["enter",p,t],["exit",p,t]),r+=2)}r++}return e}const SP={42:Mn,43:Mn,45:Mn,48:Mn,49:Mn,50:Mn,51:Mn,52:Mn,53:Mn,54:Mn,55:Mn,56:Mn,57:Mn,62:iC},wP={91:TL},CP={[-2]:fh,[-1]:fh,32:fh},kP={35:DL,42:zc,45:[wx,zc],60:NL,61:wx,95:zc,96:xx,126:xx},EP={38:oC,92:aC},TP={[-5]:dh,[-4]:dh,[-3]:dh,33:eP,38:oC,42:im,60:[nL,FL],91:nP,92:[OL,aC],93:wg,95:im,96:mL},RP={null:[im,yP]},AP={null:[42,95]},MP={null:[]},OP=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:AP,contentInitial:wP,disable:MP,document:SP,flow:kP,flowInitial:CP,insideSpan:RP,string:EP,text:TP},Symbol.toStringTag,{value:"Module"}));function zP(e,t,r){let a={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const l={},s=[];let u=[],f=[];const d={attempt:I(j),check:I(z),consume:M,enter:O,exit:L,interrupt:I(z,{interrupt:!0})},p={code:null,containerState:{},defineSkip:C,events:[],now:x,parser:e,previous:null,sliceSerialize:v,sliceStream:b,write:g};let m=t.tokenize.call(p,d);return t.resolveAll&&s.push(t),p;function g(q){return u=lr(u,q),R(),u[u.length-1]!==null?[]:(V(t,0),p.events=Tf(s,p.events,p),p.events)}function v(q,A){return jP(b(q),A)}function b(q){return DP(u,q)}function x(){const{_bufferIndex:q,_index:A,line:B,column:H,offset:U}=a;return{_bufferIndex:q,_index:A,line:B,column:H,offset:U}}function C(q){l[q.line]=q.column,N()}function R(){let q;for(;a._index<u.length;){const A=u[a._index];if(typeof A=="string")for(q=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===q&&a._bufferIndex<A.length;)E(A.charCodeAt(a._bufferIndex));else E(A)}}function E(q){m=m(q)}function M(q){Pe(q)?(a.line++,a.column=1,a.offset+=q===-3?2:1,N()):q!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===u[a._index].length&&(a._bufferIndex=-1,a._index++)),p.previous=q}function O(q,A){const B=A||{};return B.type=q,B.start=x(),p.events.push(["enter",B,p]),f.push(B),B}function L(q){const A=f.pop();return A.end=x(),p.events.push(["exit",A,p]),A}function j(q,A){V(q,A.from)}function z(q,A){A.restore()}function I(q,A){return B;function B(H,U,_){let G,Z,J,k;return Array.isArray(H)?re(H):"tokenize"in H?re([H]):K(H);function K(fe){return ce;function ce(ye){const be=ye!==null&&fe[ye],ve=ye!==null&&fe.null,pe=[...Array.isArray(be)?be:be?[be]:[],...Array.isArray(ve)?ve:ve?[ve]:[]];return re(pe)(ye)}}function re(fe){return G=fe,Z=0,fe.length===0?_:P(fe[Z])}function P(fe){return ce;function ce(ye){return k=F(),J=fe,fe.partial||(p.currentConstruct=fe),fe.name&&p.parser.constructs.disable.null.includes(fe.name)?me():fe.tokenize.call(A?Object.assign(Object.create(p),A):p,d,se,me)(ye)}}function se(fe){return q(J,k),U}function me(fe){return k.restore(),++Z<G.length?P(G[Z]):_}}}function V(q,A){q.resolveAll&&!s.includes(q)&&s.push(q),q.resolve&&Gn(p.events,A,p.events.length-A,q.resolve(p.events.slice(A),p)),q.resolveTo&&(p.events=q.resolveTo(p.events,p))}function F(){const q=x(),A=p.previous,B=p.currentConstruct,H=p.events.length,U=Array.from(f);return{from:H,restore:_};function _(){a=q,p.previous=A,p.currentConstruct=B,p.events.length=H,f=U,N()}}function N(){a.line in l&&a.column<2&&(a.column=l[a.line],a.offset+=l[a.line]-1)}}function DP(e,t){const r=t.start._index,a=t.start._bufferIndex,l=t.end._index,s=t.end._bufferIndex;let u;if(r===l)u=[e[r].slice(a,s)];else{if(u=e.slice(r,l),a>-1){const f=u[0];typeof f=="string"?u[0]=f.slice(a):u.shift()}s>0&&u.push(e[l].slice(0,s))}return u}function jP(e,t){let r=-1;const a=[];let l;for(;++r<e.length;){const s=e[r];let u;if(typeof s=="string")u=s;else switch(s){case-5:{u="\r";break}case-4:{u=`
`;break}case-3:{u=`\r
`;break}case-2:{u=t?" ":"	";break}case-1:{if(!t&&l)continue;u=" ";break}default:u=String.fromCharCode(s)}l=s===-2,a.push(u)}return a.join("")}function LP(e){const a={constructs:nC([OP,...(e||{}).extensions||[]]),content:l(Wj),defined:[],document:l(Qj),flow:l(mP),lazy:{},string:l(bP),text:l(vP)};return a;function l(s){return u;function u(f){return zP(a,s,f)}}}function PP(e){for(;!lC(e););return e}const Cx=/[\0\t\n\r]/g;function NP(){let e=1,t="",r=!0,a;return l;function l(s,u,f){const d=[];let p,m,g,v,b;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(u||void 0).decode(s)),g=0,t="",r&&(s.charCodeAt(0)===65279&&g++,r=void 0);g<s.length;){if(Cx.lastIndex=g,p=Cx.exec(s),v=p&&p.index!==void 0?p.index:s.length,b=s.charCodeAt(v),!p){t=s.slice(g);break}if(b===10&&g===v&&a)d.push(-3),a=void 0;else switch(a&&(d.push(-5),a=void 0),g<v&&(d.push(s.slice(g,v)),e+=v-g),b){case 0:{d.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,d.push(-2);e++<m;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:a=!0,e=1}g=v+1}return f&&(a&&d.push(-5),t&&d.push(t),d.push(null)),d}}const _P=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function BP(e){return e.replace(_P,IP)}function IP(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const l=r.charCodeAt(1),s=l===120||l===88;return rC(r.slice(s?2:1),s?16:10)}return Sg(r)||e}const pC={}.hasOwnProperty;function $P(e,t,r){return typeof t!="string"&&(r=t,t=void 0),HP(r)(PP(LP(r).document().write(NP()(e,t,!0))))}function HP(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Xe),autolinkProtocol:F,autolinkEmail:F,atxHeading:s(Oe),blockQuote:s(ve),characterEscape:F,characterReference:F,codeFenced:s(pe),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(pe,u),codeText:s(ge,u),codeTextData:F,data:F,codeFlowValue:F,definition:s(Ce),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(de),hardBreakEscape:s(ze),hardBreakTrailing:s(ze),htmlFlow:s(Me,u),htmlFlowData:F,htmlText:s(Me,u),htmlTextData:F,image:s(qe),label:u,link:s(Xe),listItem:s(We),listItemValue:v,listOrdered:s(Ze,g),listUnordered:s(Ze),paragraph:s(Ee),reference:P,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(Oe),strong:s(Ut),thematicBreak:s(tn)},exit:{atxHeading:d(),atxHeadingSequence:j,autolink:d(),autolinkEmail:be,autolinkProtocol:ye,blockQuote:d(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:me,characterReferenceMarkerNumeric:me,characterReferenceValue:fe,characterReference:ce,codeFenced:d(R),codeFencedFence:C,codeFencedFenceInfo:b,codeFencedFenceMeta:x,codeFlowValue:N,codeIndented:d(E),codeText:d(U),codeTextData:N,data:N,definition:d(),definitionDestinationString:L,definitionLabelString:M,definitionTitleString:O,emphasis:d(),hardBreakEscape:d(A),hardBreakTrailing:d(A),htmlFlow:d(B),htmlFlowData:N,htmlText:d(H),htmlTextData:N,image:d(G),label:J,labelText:Z,lineEnding:q,link:d(_),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:se,resourceDestinationString:k,resourceTitleString:K,resource:re,setextHeading:d(V),setextHeadingLineSequence:I,setextHeadingText:z,strong:d(),thematicBreak:d()}};hC(t,(e||{}).mdastExtensions||[]);const r={};return a;function a(ne){let ie={type:"root",children:[]};const Se={stack:[ie],tokenStack:[],config:t,enter:f,exit:p,buffer:u,resume:m,data:r},we=[];let $e=-1;for(;++$e<ne.length;)if(ne[$e][1].type==="listOrdered"||ne[$e][1].type==="listUnordered")if(ne[$e][0]==="enter")we.push($e);else{const Le=we.pop();$e=l(ne,Le,$e)}for($e=-1;++$e<ne.length;){const Le=t[ne[$e][0]];pC.call(Le,ne[$e][1].type)&&Le[ne[$e][1].type].call(Object.assign({sliceSerialize:ne[$e][2].sliceSerialize},Se),ne[$e][1])}if(Se.tokenStack.length>0){const Le=Se.tokenStack[Se.tokenStack.length-1];(Le[1]||kx).call(Se,void 0,Le[0])}for(ie.position={start:Ni(ne.length>0?ne[0][1].start:{line:1,column:1,offset:0}),end:Ni(ne.length>0?ne[ne.length-2][1].end:{line:1,column:1,offset:0})},$e=-1;++$e<t.transforms.length;)ie=t.transforms[$e](ie)||ie;return ie}function l(ne,ie,Se){let we=ie-1,$e=-1,Le=!1,Pt,kt,Qt,Re;for(;++we<=Se;){const Be=ne[we];switch(Be[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Be[0]==="enter"?$e++:$e--,Re=void 0;break}case"lineEndingBlank":{Be[0]==="enter"&&(Pt&&!Re&&!$e&&!Qt&&(Qt=we),Re=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Re=void 0}if(!$e&&Be[0]==="enter"&&Be[1].type==="listItemPrefix"||$e===-1&&Be[0]==="exit"&&(Be[1].type==="listUnordered"||Be[1].type==="listOrdered")){if(Pt){let st=we;for(kt=void 0;st--;){const zt=ne[st];if(zt[1].type==="lineEnding"||zt[1].type==="lineEndingBlank"){if(zt[0]==="exit")continue;kt&&(ne[kt][1].type="lineEndingBlank",Le=!0),zt[1].type="lineEnding",kt=st}else if(!(zt[1].type==="linePrefix"||zt[1].type==="blockQuotePrefix"||zt[1].type==="blockQuotePrefixWhitespace"||zt[1].type==="blockQuoteMarker"||zt[1].type==="listItemIndent"))break}Qt&&(!kt||Qt<kt)&&(Pt._spread=!0),Pt.end=Object.assign({},kt?ne[kt][1].start:Be[1].end),ne.splice(kt||we,0,["exit",Pt,Be[2]]),we++,Se++}if(Be[1].type==="listItemPrefix"){const st={type:"listItem",_spread:!1,start:Object.assign({},Be[1].start),end:void 0};Pt=st,ne.splice(we,0,["enter",st,Be[2]]),we++,Se++,Qt=void 0,Re=!0}}}return ne[ie][1]._spread=Le,Se}function s(ne,ie){return Se;function Se(we){f.call(this,ne(we),we),ie&&ie.call(this,we)}}function u(){this.stack.push({type:"fragment",children:[]})}function f(ne,ie,Se){this.stack[this.stack.length-1].children.push(ne),this.stack.push(ne),this.tokenStack.push([ie,Se||void 0]),ne.position={start:Ni(ie.start),end:void 0}}function d(ne){return ie;function ie(Se){ne&&ne.call(this,Se),p.call(this,Se)}}function p(ne,ie){const Se=this.stack.pop(),we=this.tokenStack.pop();if(we)we[0].type!==ne.type&&(ie?ie.call(this,ne,we[0]):(we[1]||kx).call(this,ne,we[0]));else throw new Error("Cannot close `"+ne.type+"` ("+ds({start:ne.start,end:ne.end})+"): it’s not open");Se.position.end=Ni(ne.end)}function m(){return xg(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(ne){if(this.data.expectingFirstListItemValue){const ie=this.stack[this.stack.length-2];ie.start=Number.parseInt(this.sliceSerialize(ne),10),this.data.expectingFirstListItemValue=void 0}}function b(){const ne=this.resume(),ie=this.stack[this.stack.length-1];ie.lang=ne}function x(){const ne=this.resume(),ie=this.stack[this.stack.length-1];ie.meta=ne}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function R(){const ne=this.resume(),ie=this.stack[this.stack.length-1];ie.value=ne.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const ne=this.resume(),ie=this.stack[this.stack.length-1];ie.value=ne.replace(/(\r?\n|\r)$/g,"")}function M(ne){const ie=this.resume(),Se=this.stack[this.stack.length-1];Se.label=ie,Se.identifier=vr(this.sliceSerialize(ne)).toLowerCase()}function O(){const ne=this.resume(),ie=this.stack[this.stack.length-1];ie.title=ne}function L(){const ne=this.resume(),ie=this.stack[this.stack.length-1];ie.url=ne}function j(ne){const ie=this.stack[this.stack.length-1];if(!ie.depth){const Se=this.sliceSerialize(ne).length;ie.depth=Se}}function z(){this.data.setextHeadingSlurpLineEnding=!0}function I(ne){const ie=this.stack[this.stack.length-1];ie.depth=this.sliceSerialize(ne).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function F(ne){const Se=this.stack[this.stack.length-1].children;let we=Se[Se.length-1];(!we||we.type!=="text")&&(we=ht(),we.position={start:Ni(ne.start),end:void 0},Se.push(we)),this.stack.push(we)}function N(ne){const ie=this.stack.pop();ie.value+=this.sliceSerialize(ne),ie.position.end=Ni(ne.end)}function q(ne){const ie=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Se=ie.children[ie.children.length-1];Se.position.end=Ni(ne.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ie.type)&&(F.call(this,ne),N.call(this,ne))}function A(){this.data.atHardBreak=!0}function B(){const ne=this.resume(),ie=this.stack[this.stack.length-1];ie.value=ne}function H(){const ne=this.resume(),ie=this.stack[this.stack.length-1];ie.value=ne}function U(){const ne=this.resume(),ie=this.stack[this.stack.length-1];ie.value=ne}function _(){const ne=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";ne.type+="Reference",ne.referenceType=ie,delete ne.url,delete ne.title}else delete ne.identifier,delete ne.label;this.data.referenceType=void 0}function G(){const ne=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";ne.type+="Reference",ne.referenceType=ie,delete ne.url,delete ne.title}else delete ne.identifier,delete ne.label;this.data.referenceType=void 0}function Z(ne){const ie=this.sliceSerialize(ne),Se=this.stack[this.stack.length-2];Se.label=BP(ie),Se.identifier=vr(ie).toLowerCase()}function J(){const ne=this.stack[this.stack.length-1],ie=this.resume(),Se=this.stack[this.stack.length-1];if(this.data.inReference=!0,Se.type==="link"){const we=ne.children;Se.children=we}else Se.alt=ie}function k(){const ne=this.resume(),ie=this.stack[this.stack.length-1];ie.url=ne}function K(){const ne=this.resume(),ie=this.stack[this.stack.length-1];ie.title=ne}function re(){this.data.inReference=void 0}function P(){this.data.referenceType="collapsed"}function se(ne){const ie=this.resume(),Se=this.stack[this.stack.length-1];Se.label=ie,Se.identifier=vr(this.sliceSerialize(ne)).toLowerCase(),this.data.referenceType="full"}function me(ne){this.data.characterReferenceType=ne.type}function fe(ne){const ie=this.sliceSerialize(ne),Se=this.data.characterReferenceType;let we;Se?(we=rC(ie,Se==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):we=Sg(ie);const $e=this.stack[this.stack.length-1];$e.value+=we}function ce(ne){const ie=this.stack.pop();ie.position.end=Ni(ne.end)}function ye(ne){N.call(this,ne);const ie=this.stack[this.stack.length-1];ie.url=this.sliceSerialize(ne)}function be(ne){N.call(this,ne);const ie=this.stack[this.stack.length-1];ie.url="mailto:"+this.sliceSerialize(ne)}function ve(){return{type:"blockquote",children:[]}}function pe(){return{type:"code",lang:null,meta:null,value:""}}function ge(){return{type:"inlineCode",value:""}}function Ce(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function de(){return{type:"emphasis",children:[]}}function Oe(){return{type:"heading",depth:0,children:[]}}function ze(){return{type:"break"}}function Me(){return{type:"html",value:""}}function qe(){return{type:"image",title:null,url:"",alt:null}}function Xe(){return{type:"link",title:null,url:"",children:[]}}function Ze(ne){return{type:"list",ordered:ne.type==="listOrdered",start:null,spread:ne._spread,children:[]}}function We(ne){return{type:"listItem",spread:ne._spread,checked:null,children:[]}}function Ee(){return{type:"paragraph",children:[]}}function Ut(){return{type:"strong",children:[]}}function ht(){return{type:"text",value:""}}function tn(){return{type:"thematicBreak"}}}function Ni(e){return{line:e.line,column:e.column,offset:e.offset}}function hC(e,t){let r=-1;for(;++r<t.length;){const a=t[r];Array.isArray(a)?hC(e,a):UP(e,a)}}function UP(e,t){let r;for(r in t)if(pC.call(t,r))switch(r){case"canContainEols":{const a=t[r];a&&e[r].push(...a);break}case"transforms":{const a=t[r];a&&e[r].push(...a);break}case"enter":case"exit":{const a=t[r];a&&Object.assign(e[r],a);break}}}function kx(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ds({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ds({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ds({start:t.start,end:t.end})+") is still open")}function FP(e){const t=this;t.parser=r;function r(a){return $P(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function qP(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function VP(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
`}]}function YP(e,t){const r=t.value?t.value+`
`:"",a={};t.lang&&(a.className=["language-"+t.lang]);let l={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function GP(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function XP(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function WP(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),l=qo(a.toLowerCase()),s=e.footnoteOrder.indexOf(a);let u,f=e.footnoteCounts.get(a);f===void 0?(f=0,e.footnoteOrder.push(a),u=e.footnoteOrder.length):u=s+1,f+=1,e.footnoteCounts.set(a,f);const d={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,d);const p={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,p),e.applyData(t,p)}function KP(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function QP(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function mC(e,t){const r=t.referenceType;let a="]";if(r==="collapsed"?a+="[]":r==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const l=e.all(t),s=l[0];s&&s.type==="text"?s.value="["+s.value:l.unshift({type:"text",value:"["});const u=l[l.length-1];return u&&u.type==="text"?u.value+=a:l.push({type:"text",value:a}),l}function ZP(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return mC(e,t);const l={src:qo(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(l.title=a.title);const s={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,s),e.applyData(t,s)}function JP(e,t){const r={src:qo(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,a),e.applyData(t,a)}function eN(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,a),e.applyData(t,a)}function tN(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return mC(e,t);const l={href:qo(a.url||"")};a.title!==null&&a.title!==void 0&&(l.title=a.title);const s={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function nN(e,t){const r={href:qo(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const a={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function rN(e,t,r){const a=e.all(t),l=r?iN(r):gC(t),s={},u=[];if(typeof t.checked=="boolean"){const m=a[0];let g;m&&m.type==="element"&&m.tagName==="p"?g=m:(g={type:"element",tagName:"p",properties:{},children:[]},a.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let f=-1;for(;++f<a.length;){const m=a[f];(l||f!==0||m.type!=="element"||m.tagName!=="p")&&u.push({type:"text",value:`
`}),m.type==="element"&&m.tagName==="p"&&!l?u.push(...m.children):u.push(m)}const d=a[a.length-1];d&&(l||d.type!=="element"||d.tagName!=="p")&&u.push({type:"text",value:`
`});const p={type:"element",tagName:"li",properties:s,children:u};return e.patch(t,p),e.applyData(t,p)}function iN(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let a=-1;for(;!t&&++a<r.length;)t=gC(r[a])}return t}function gC(e){const t=e.spread;return t??e.children.length>1}function aN(e,t){const r={},a=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++l<a.length;){const u=a[l];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(a,!0)};return e.patch(t,s),e.applyData(t,s)}function oN(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function lN(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function sN(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function uN(e,t){const r=e.all(t),a=r.shift(),l=[];if(a){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],u),l.push(u)}if(r.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},f=gg(t.children[1]),d=Ww(t.children[t.children.length-1]);f&&d&&(u.position={start:f,end:d}),l.push(u)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,s),e.applyData(t,s)}function cN(e,t,r){const a=r?r.children:void 0,s=(a?a.indexOf(t):1)===0?"th":"td",u=r&&r.type==="table"?r.align:void 0,f=u?u.length:t.children.length;let d=-1;const p=[];for(;++d<f;){const g=t.children[d],v={},b=u?u[d]:void 0;b&&(v.align=b);let x={type:"element",tagName:s,properties:v,children:[]};g&&(x.children=e.all(g),e.patch(g,x),x=e.applyData(g,x)),p.push(x)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(p,!0)};return e.patch(t,m),e.applyData(t,m)}function fN(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const Ex=9,Tx=32;function dN(e){const t=String(e),r=/\r?\n|\r/g;let a=r.exec(t),l=0;const s=[];for(;a;)s.push(Rx(t.slice(l,a.index),l>0,!0),a[0]),l=a.index+a[0].length,a=r.exec(t);return s.push(Rx(t.slice(l),l>0,!1)),s.join("")}function Rx(e,t,r){let a=0,l=e.length;if(t){let s=e.codePointAt(a);for(;s===Ex||s===Tx;)a++,s=e.codePointAt(a)}if(r){let s=e.codePointAt(l-1);for(;s===Ex||s===Tx;)l--,s=e.codePointAt(l-1)}return l>a?e.slice(a,l):""}function pN(e,t){const r={type:"text",value:dN(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function hN(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const mN={blockquote:qP,break:VP,code:YP,delete:GP,emphasis:XP,footnoteReference:WP,heading:KP,html:QP,imageReference:ZP,image:JP,inlineCode:eN,linkReference:tN,link:nN,listItem:rN,list:aN,paragraph:oN,root:lN,strong:sN,table:uN,tableCell:fN,tableRow:cN,text:pN,thematicBreak:hN,toml:bc,yaml:bc,definition:bc,footnoteDefinition:bc};function bc(){}const yC=-1,Rf=0,hs=1,Gc=2,Cg=3,kg=4,Eg=5,Tg=6,bC=7,vC=8,Ax=typeof self=="object"?self:globalThis,gN=(e,t)=>{const r=(l,s)=>(e.set(s,l),l),a=l=>{if(e.has(l))return e.get(l);const[s,u]=t[l];switch(s){case Rf:case yC:return r(u,l);case hs:{const f=r([],l);for(const d of u)f.push(a(d));return f}case Gc:{const f=r({},l);for(const[d,p]of u)f[a(d)]=a(p);return f}case Cg:return r(new Date(u),l);case kg:{const{source:f,flags:d}=u;return r(new RegExp(f,d),l)}case Eg:{const f=r(new Map,l);for(const[d,p]of u)f.set(a(d),a(p));return f}case Tg:{const f=r(new Set,l);for(const d of u)f.add(a(d));return f}case bC:{const{name:f,message:d}=u;return r(new Ax[f](d),l)}case vC:return r(BigInt(u),l);case"BigInt":return r(Object(BigInt(u)),l);case"ArrayBuffer":return r(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:f}=new Uint8Array(u);return r(new DataView(f),u)}}return r(new Ax[s](u),l)};return a},Mx=e=>gN(new Map,e)(0),xo="",{toString:yN}={},{keys:bN}=Object,ns=e=>{const t=typeof e;if(t!=="object"||!e)return[Rf,t];const r=yN.call(e).slice(8,-1);switch(r){case"Array":return[hs,xo];case"Object":return[Gc,xo];case"Date":return[Cg,xo];case"RegExp":return[kg,xo];case"Map":return[Eg,xo];case"Set":return[Tg,xo];case"DataView":return[hs,r]}return r.includes("Array")?[hs,r]:r.includes("Error")?[bC,r]:[Gc,r]},vc=([e,t])=>e===Rf&&(t==="function"||t==="symbol"),vN=(e,t,r,a)=>{const l=(u,f)=>{const d=a.push(u)-1;return r.set(f,d),d},s=u=>{if(r.has(u))return r.get(u);let[f,d]=ns(u);switch(f){case Rf:{let m=u;switch(d){case"bigint":f=vC,m=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);m=null;break;case"undefined":return l([yC],u)}return l([f,m],u)}case hs:{if(d){let v=u;return d==="DataView"?v=new Uint8Array(u.buffer):d==="ArrayBuffer"&&(v=new Uint8Array(u)),l([d,[...v]],u)}const m=[],g=l([f,m],u);for(const v of u)m.push(s(v));return g}case Gc:{if(d)switch(d){case"BigInt":return l([d,u.toString()],u);case"Boolean":case"Number":case"String":return l([d,u.valueOf()],u)}if(t&&"toJSON"in u)return s(u.toJSON());const m=[],g=l([f,m],u);for(const v of bN(u))(e||!vc(ns(u[v])))&&m.push([s(v),s(u[v])]);return g}case Cg:return l([f,u.toISOString()],u);case kg:{const{source:m,flags:g}=u;return l([f,{source:m,flags:g}],u)}case Eg:{const m=[],g=l([f,m],u);for(const[v,b]of u)(e||!(vc(ns(v))||vc(ns(b))))&&m.push([s(v),s(b)]);return g}case Tg:{const m=[],g=l([f,m],u);for(const v of u)(e||!vc(ns(v)))&&m.push(s(v));return g}}const{message:p}=u;return l([f,{name:d,message:p}],u)};return s},Ox=(e,{json:t,lossy:r}={})=>{const a=[];return vN(!(t||r),!!t,new Map,a)(e),a},Xc=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Mx(Ox(e,t)):structuredClone(e):(e,t)=>Mx(Ox(e,t));function xN(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function SN(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function wN(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||xN,a=e.options.footnoteBackLabel||SN,l=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let d=-1;for(;++d<e.footnoteOrder.length;){const p=e.footnoteById.get(e.footnoteOrder[d]);if(!p)continue;const m=e.all(p),g=String(p.identifier).toUpperCase(),v=qo(g.toLowerCase());let b=0;const x=[],C=e.footnoteCounts.get(g);for(;C!==void 0&&++b<=C;){x.length>0&&x.push({type:"text",value:" "});let M=typeof r=="string"?r:r(d,b);typeof M=="string"&&(M={type:"text",value:M}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+v+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(d,b),className:["data-footnote-backref"]},children:Array.isArray(M)?M:[M]})}const R=m[m.length-1];if(R&&R.type==="element"&&R.tagName==="p"){const M=R.children[R.children.length-1];M&&M.type==="text"?M.value+=" ":R.children.push({type:"text",value:" "}),R.children.push(...x)}else m.push(...x);const E={type:"element",tagName:"li",properties:{id:t+"fn-"+v},children:e.wrap(m,!0)};e.patch(p,E),f.push(E)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Xc(u),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
`}]}}const Af=(function(e){if(e==null)return TN;if(typeof e=="function")return Mf(e);if(typeof e=="object")return Array.isArray(e)?CN(e):kN(e);if(typeof e=="string")return EN(e);throw new Error("Expected function, string, or object as test")});function CN(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Af(e[r]);return Mf(a);function a(...l){let s=-1;for(;++s<t.length;)if(t[s].apply(this,l))return!0;return!1}}function kN(e){const t=e;return Mf(r);function r(a){const l=a;let s;for(s in e)if(l[s]!==t[s])return!1;return!0}}function EN(e){return Mf(t);function t(r){return r&&r.type===e}}function Mf(e){return t;function t(r,a,l){return!!(RN(r)&&e.call(this,r,typeof a=="number"?a:void 0,l||void 0))}}function TN(){return!0}function RN(e){return e!==null&&typeof e=="object"&&"type"in e}const xC=[],AN=!0,am=!1,MN="skip";function SC(e,t,r,a){let l;typeof t=="function"&&typeof r!="function"?(a=r,r=t):l=t;const s=Af(l),u=a?-1:1;f(e,void 0,[])();function f(d,p,m){const g=d&&typeof d=="object"?d:{};if(typeof g.type=="string"){const b=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(d.type+(b?"<"+b+">":""))+")"})}return v;function v(){let b=xC,x,C,R;if((!t||s(d,p,m[m.length-1]||void 0))&&(b=ON(r(d,m)),b[0]===am))return b;if("children"in d&&d.children){const E=d;if(E.children&&b[0]!==MN)for(C=(a?E.children.length:-1)+u,R=m.concat(E);C>-1&&C<E.children.length;){const M=E.children[C];if(x=f(M,C,R)(),x[0]===am)return x;C=typeof x[1]=="number"?x[1]:C+u}}return b}}}function ON(e){return Array.isArray(e)?e:typeof e=="number"?[AN,e]:e==null?xC:[e]}function Rg(e,t,r,a){let l,s,u;typeof t=="function"&&typeof r!="function"?(s=void 0,u=t,l=r):(s=t,u=r,l=a),SC(e,s,f,l);function f(d,p){const m=p[p.length-1],g=m?m.children.indexOf(d):void 0;return u(d,g,m)}}const om={}.hasOwnProperty,zN={};function DN(e,t){const r=t||zN,a=new Map,l=new Map,s=new Map,u={...mN,...r.handlers},f={all:p,applyData:LN,definitionById:a,footnoteById:l,footnoteCounts:s,footnoteOrder:[],handlers:u,one:d,options:r,patch:jN,wrap:NN};return Rg(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const g=m.type==="definition"?a:l,v=String(m.identifier).toUpperCase();g.has(v)||g.set(v,m)}}),f;function d(m,g){const v=m.type,b=f.handlers[v];if(om.call(f.handlers,v)&&b)return b(f,m,g);if(f.options.passThrough&&f.options.passThrough.includes(v)){if("children"in m){const{children:C,...R}=m,E=Xc(R);return E.children=f.all(m),E}return Xc(m)}return(f.options.unknownHandler||PN)(f,m,g)}function p(m){const g=[];if("children"in m){const v=m.children;let b=-1;for(;++b<v.length;){const x=f.one(v[b],m);if(x){if(b&&v[b-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=zx(x.value)),!Array.isArray(x)&&x.type==="element")){const C=x.children[0];C&&C.type==="text"&&(C.value=zx(C.value))}Array.isArray(x)?g.push(...x):g.push(x)}}}return g}}function jN(e,t){e.position&&(t.position=Sj(e))}function LN(e,t){let r=t;if(e&&e.data){const a=e.data.hName,l=e.data.hChildren,s=e.data.hProperties;if(typeof a=="string")if(r.type==="element")r.tagName=a;else{const u="children"in r?r.children:[r];r={type:"element",tagName:a,properties:{},children:u}}r.type==="element"&&s&&Object.assign(r.properties,Xc(s)),"children"in r&&r.children&&l!==null&&l!==void 0&&(r.children=l)}return r}function PN(e,t){const r=t.data||{},a="value"in t&&!(om.call(r,"hProperties")||om.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function NN(e,t){const r=[];let a=-1;for(t&&r.push({type:"text",value:`
`});++a<e.length;)a&&r.push({type:"text",value:`
`}),r.push(e[a]);return t&&e.length>0&&r.push({type:"text",value:`
`}),r}function zx(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Dx(e,t){const r=DN(e,t),a=r.one(e,void 0),l=wN(r),s=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return l&&s.children.push({type:"text",value:`
`},l),s}function _N(e,t){return e&&"run"in e?async function(r,a){const l=Dx(r,{file:a,...t});await e.run(l,a)}:function(r,a){return Dx(r,{file:a,...e||t})}}function jx(e){if(e)throw e}var ph,Lx;function BN(){if(Lx)return ph;Lx=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=function(p){return typeof Array.isArray=="function"?Array.isArray(p):t.call(p)==="[object Array]"},s=function(p){if(!p||t.call(p)!=="[object Object]")return!1;var m=e.call(p,"constructor"),g=p.constructor&&p.constructor.prototype&&e.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!m&&!g)return!1;var v;for(v in p);return typeof v>"u"||e.call(p,v)},u=function(p,m){r&&m.name==="__proto__"?r(p,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):p[m.name]=m.newValue},f=function(p,m){if(m==="__proto__")if(e.call(p,m)){if(a)return a(p,m).value}else return;return p[m]};return ph=function d(){var p,m,g,v,b,x,C=arguments[0],R=1,E=arguments.length,M=!1;for(typeof C=="boolean"&&(M=C,C=arguments[1]||{},R=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});R<E;++R)if(p=arguments[R],p!=null)for(m in p)g=f(C,m),v=f(p,m),C!==v&&(M&&v&&(s(v)||(b=l(v)))?(b?(b=!1,x=g&&l(g)?g:[]):x=g&&s(g)?g:{},u(C,{name:m,newValue:d(M,x,v)})):typeof v<"u"&&u(C,{name:m,newValue:v}));return C},ph}var IN=BN();const hh=Kc(IN);function lm(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 $N(){const e=[],t={run:r,use:a};return t;function r(...l){let s=-1;const u=l.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);f(null,...l);function f(d,...p){const m=e[++s];let g=-1;if(d){u(d);return}for(;++g<l.length;)(p[g]===null||p[g]===void 0)&&(p[g]=l[g]);l=p,m?HN(m,f)(...p):u(null,...p)}}function a(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function HN(e,t){let r;return a;function a(...u){const f=e.length>u.length;let d;f&&u.push(l);try{d=e.apply(this,u)}catch(p){const m=p;if(f&&r)throw m;return l(m)}f||(d&&d.then&&typeof d.then=="function"?d.then(s,l):d instanceof Error?l(d):s(d))}function l(u,...f){r||(r=!0,t(u,...f))}function s(u){l(null,u)}}const zr={basename:UN,dirname:FN,extname:qN,join:VN,sep:"/"};function UN(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Vs(e);let r=0,a=-1,l=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(s){r=l+1;break}}else a<0&&(s=!0,a=l+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let u=-1,f=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(s){r=l+1;break}}else u<0&&(s=!0,u=l+1),f>-1&&(e.codePointAt(l)===t.codePointAt(f--)?f<0&&(a=l):(f=-1,a=u));return r===a?a=u:a<0&&(a=e.length),e.slice(r,a)}function FN(e){if(Vs(e),e.length===0)return".";let t=-1,r=e.length,a;for(;--r;)if(e.codePointAt(r)===47){if(a){t=r;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function qN(e){Vs(e);let t=e.length,r=-1,a=0,l=-1,s=0,u;for(;t--;){const f=e.codePointAt(t);if(f===47){if(u){a=t+1;break}continue}r<0&&(u=!0,r=t+1),f===46?l<0?l=t:s!==1&&(s=1):l>-1&&(s=-1)}return l<0||r<0||s===0||s===1&&l===r-1&&l===a+1?"":e.slice(l,r)}function VN(...e){let t=-1,r;for(;++t<e.length;)Vs(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":YN(r)}function YN(e){Vs(e);const t=e.codePointAt(0)===47;let r=GN(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function GN(e,t){let r="",a=0,l=-1,s=0,u=-1,f,d;for(;++u<=e.length;){if(u<e.length)f=e.codePointAt(u);else{if(f===47)break;f=47}if(f===47){if(!(l===u-1||s===1))if(l!==u-1&&s===2){if(r.length<2||a!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(d=r.lastIndexOf("/"),d!==r.length-1){d<0?(r="",a=0):(r=r.slice(0,d),a=r.length-1-r.lastIndexOf("/")),l=u,s=0;continue}}else if(r.length>0){r="",a=0,l=u,s=0;continue}}t&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+e.slice(l+1,u):r=e.slice(l+1,u),a=u-l-1;l=u,s=0}else f===46&&s>-1?s++:s=-1}return r}function Vs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const XN={cwd:WN};function WN(){return"/"}function sm(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function KN(e){if(typeof e=="string")e=new URL(e);else if(!sm(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return QN(e)}function QN(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const a=t.codePointAt(r+2);if(a===70||a===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}const mh=["history","path","basename","stem","extname","dirname"];class wC{constructor(t){let r;t?sm(t)?r={path:t}:typeof t=="string"||ZN(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":XN.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<mh.length;){const s=mh[a];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let l;for(l in r)mh.includes(l)||(this[l]=r[l])}get basename(){return typeof this.path=="string"?zr.basename(this.path):void 0}set basename(t){yh(t,"basename"),gh(t,"basename"),this.path=zr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?zr.dirname(this.path):void 0}set dirname(t){Px(this.basename,"dirname"),this.path=zr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?zr.extname(this.path):void 0}set extname(t){if(gh(t,"extname"),Px(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=zr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){sm(t)&&(t=KN(t)),yh(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?zr.basename(this.path,this.extname):void 0}set stem(t){yh(t,"stem"),gh(t,"stem"),this.path=zr.join(this.dirname||"",t+(this.extname||""))}fail(t,r,a){const l=this.message(t,r,a);throw l.fatal=!0,l}info(t,r,a){const l=this.message(t,r,a);return l.fatal=void 0,l}message(t,r,a){const l=new bn(t,r,a);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function gh(e,t){if(e&&e.includes(zr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+zr.sep+"`")}function yh(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Px(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function ZN(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const JN=(function(e){const a=this.constructor.prototype,l=a[e],s=function(){return l.apply(s,arguments)};return Object.setPrototypeOf(s,a),s}),e_={}.hasOwnProperty;class Ag extends JN{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=$N()}copy(){const t=new Ag;let r=-1;for(;++r<this.attachers.length;){const a=this.attachers[r];t.use(...a)}return t.data(hh(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(xh("data",this.frozen),this.namespace[t]=r,this):e_.call(this.namespace,t)&&this.namespace[t]||void 0:t?(xh("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const l=r.call(t,...a);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=xc(t),a=this.parser||this.Parser;return bh("parse",a),a(String(r),r)}process(t,r){const a=this;return this.freeze(),bh("process",this.parser||this.Parser),vh("process",this.compiler||this.Compiler),r?l(void 0,r):new Promise(l);function l(s,u){const f=xc(t),d=a.parse(f);a.run(d,f,function(m,g,v){if(m||!g||!v)return p(m);const b=g,x=a.stringify(b,v);r_(x)?v.value=x:v.result=x,p(m,v)});function p(m,g){m||!g?u(m):s?s(g):r(void 0,g)}}}processSync(t){let r=!1,a;return this.freeze(),bh("processSync",this.parser||this.Parser),vh("processSync",this.compiler||this.Compiler),this.process(t,l),_x("processSync","process",r),a;function l(s,u){r=!0,jx(s),a=u}}run(t,r,a){Nx(t),this.freeze();const l=this.transformers;return!a&&typeof r=="function"&&(a=r,r=void 0),a?s(void 0,a):new Promise(s);function s(u,f){const d=xc(r);l.run(t,d,p);function p(m,g,v){const b=g||t;m?f(m):u?u(b):a(void 0,b,v)}}}runSync(t,r){let a=!1,l;return this.run(t,r,s),_x("runSync","run",a),l;function s(u,f){jx(u),l=f,a=!0}}stringify(t,r){this.freeze();const a=xc(r),l=this.compiler||this.Compiler;return vh("stringify",l),Nx(t),l(t,a)}use(t,...r){const a=this.attachers,l=this.namespace;if(xh("use",this.frozen),t!=null)if(typeof t=="function")d(t,r);else if(typeof t=="object")Array.isArray(t)?f(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(p){if(typeof p=="function")d(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[m,...g]=p;d(m,g)}else u(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function u(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(p.plugins),p.settings&&(l.settings=hh(!0,l.settings,p.settings))}function f(p){let m=-1;if(p!=null)if(Array.isArray(p))for(;++m<p.length;){const g=p[m];s(g)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function d(p,m){let g=-1,v=-1;for(;++g<a.length;)if(a[g][0]===p){v=g;break}if(v===-1)a.push([p,...m]);else if(m.length>0){let[b,...x]=m;const C=a[v][1];lm(C)&&lm(b)&&(b=hh(!0,C,b)),a[v]=[p,b,...x]}}}}const t_=new Ag().freeze();function bh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function vh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function xh(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Nx(e){if(!lm(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function _x(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function xc(e){return n_(e)?e:new wC(e)}function n_(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function r_(e){return typeof e=="string"||i_(e)}function i_(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const a_="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Bx=[],Ix={allowDangerousHtml:!0},o_=/^(https?|ircs?|mailto|xmpp)$/i,l_=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function s_(e){const t=u_(e),r=c_(e);return f_(t.runSync(t.parse(r),r),e)}function u_(e){const t=e.rehypePlugins||Bx,r=e.remarkPlugins||Bx,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ix}:Ix;return t_().use(FP).use(r).use(_N,a).use(t)}function c_(e){const t=e.children||"",r=new wC;return typeof t=="string"&&(r.value=t),r}function f_(e,t){const r=t.allowedElements,a=t.allowElement,l=t.components,s=t.disallowedElements,u=t.skipHtml,f=t.unwrapDisallowed,d=t.urlTransform||d_;for(const m of l_)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+a_+m.id,void 0);return Rg(e,p),Tj(e,{Fragment:w.Fragment,components:l,ignoreInvalidStyle:!0,jsx:w.jsx,jsxs:w.jsxs,passKeys:!0,passNode:!0});function p(m,g,v){if(m.type==="raw"&&v&&typeof g=="number")return u?v.children.splice(g,1):v.children[g]={type:"text",value:m.value},g;if(m.type==="element"){let b;for(b in ch)if(Object.hasOwn(ch,b)&&Object.hasOwn(m.properties,b)){const x=m.properties[b],C=ch[b];(C===null||C.includes(m.tagName))&&(m.properties[b]=d(String(x||""),b,m))}}if(m.type==="element"){let b=r?!r.includes(m.tagName):s?s.includes(m.tagName):!1;if(!b&&a&&typeof g=="number"&&(b=!a(m,g,v)),b&&v&&typeof g=="number")return f&&m.children?v.children.splice(g,1,...m.children):v.children.splice(g,1),g}}}function d_(e){const t=e.indexOf(":"),r=e.indexOf("?"),a=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||r!==-1&&t>r||a!==-1&&t>a||o_.test(e.slice(0,t))?e:""}function $x(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let a=0,l=r.indexOf(t);for(;l!==-1;)a++,l=r.indexOf(t,l+t.length);return a}function p_(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function h_(e,t,r){const l=Af((r||{}).ignore||[]),s=m_(t);let u=-1;for(;++u<s.length;)SC(e,"text",f);function f(p,m){let g=-1,v;for(;++g<m.length;){const b=m[g],x=v?v.children:void 0;if(l(b,x?x.indexOf(b):void 0,v))return;v=b}if(v)return d(p,m)}function d(p,m){const g=m[m.length-1],v=s[u][0],b=s[u][1];let x=0;const R=g.children.indexOf(p);let E=!1,M=[];v.lastIndex=0;let O=v.exec(p.value);for(;O;){const L=O.index,j={index:O.index,input:O.input,stack:[...m,p]};let z=b(...O,j);if(typeof z=="string"&&(z=z.length>0?{type:"text",value:z}:void 0),z===!1?v.lastIndex=L+1:(x!==L&&M.push({type:"text",value:p.value.slice(x,L)}),Array.isArray(z)?M.push(...z):z&&M.push(z),x=L+O[0].length,E=!0),!v.global)break;O=v.exec(p.value)}return E?(x<p.value.length&&M.push({type:"text",value:p.value.slice(x)}),g.children.splice(R,1,...M)):M=[p],R+M.length}}function m_(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let a=-1;for(;++a<r.length;){const l=r[a];t.push([g_(l[0]),y_(l[1])])}return t}function g_(e){return typeof e=="string"?new RegExp(p_(e),"g"):e}function y_(e){return typeof e=="function"?e:function(){return e}}const Sh="phrasing",wh=["autolink","link","image","label"];function b_(){return{transforms:[E_],enter:{literalAutolink:x_,literalAutolinkEmail:Ch,literalAutolinkHttp:Ch,literalAutolinkWww:Ch},exit:{literalAutolink:k_,literalAutolinkEmail:C_,literalAutolinkHttp:S_,literalAutolinkWww:w_}}}function v_(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Sh,notInConstruct:wh},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Sh,notInConstruct:wh},{character:":",before:"[ps]",after:"\\/",inConstruct:Sh,notInConstruct:wh}]}}function x_(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ch(e){this.config.enter.autolinkProtocol.call(this,e)}function S_(e){this.config.exit.autolinkProtocol.call(this,e)}function w_(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function C_(e){this.config.exit.autolinkEmail.call(this,e)}function k_(e){this.exit(e)}function E_(e){h_(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,T_],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),R_]],{ignore:["link","linkReference"]})}function T_(e,t,r,a,l){let s="";if(!CC(l)||(/^w/i.test(t)&&(r=t+r,t="",s="http://"),!A_(r)))return!1;const u=M_(r+a);if(!u[0])return!1;const f={type:"link",title:null,url:s+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[f,{type:"text",value:u[1]}]:f}function R_(e,t,r,a){return!CC(a,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function A_(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function M_(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],a=r.indexOf(")");const l=$x(e,"(");let s=$x(e,")");for(;a!==-1&&l>s;)e+=r.slice(0,a+1),r=r.slice(a+1),a=r.indexOf(")"),s++;return[e,r]}function CC(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||ka(r)||Ef(r))&&(!t||r!==47)}kC.peek=B_;function O_(){this.buffer()}function z_(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function D_(){this.buffer()}function j_(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function L_(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=vr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function P_(e){this.exit(e)}function N_(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=vr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function __(e){this.exit(e)}function B_(){return"["}function kC(e,t,r,a){const l=r.createTracker(a);let s=l.move("[^");const u=r.enter("footnoteReference"),f=r.enter("reference");return s+=l.move(r.safe(r.associationId(e),{after:"]",before:s})),f(),u(),s+=l.move("]"),s}function I_(){return{enter:{gfmFootnoteCallString:O_,gfmFootnoteCall:z_,gfmFootnoteDefinitionLabelString:D_,gfmFootnoteDefinition:j_},exit:{gfmFootnoteCallString:L_,gfmFootnoteCall:P_,gfmFootnoteDefinitionLabelString:N_,gfmFootnoteDefinition:__}}}function $_(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:kC},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(a,l,s,u){const f=s.createTracker(u);let d=f.move("[^");const p=s.enter("footnoteDefinition"),m=s.enter("label");return d+=f.move(s.safe(s.associationId(a),{before:d,after:"]"})),m(),d+=f.move("]:"),a.children&&a.children.length>0&&(f.shift(4),d+=f.move((t?`
`:" ")+s.indentLines(s.containerFlow(a,f.current()),t?EC:H_))),p(),d}}function H_(e,t,r){return t===0?e:EC(e,t,r)}function EC(e,t,r){return(r?"":"    ")+e}const U_=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];TC.peek=G_;function F_(){return{canContainEols:["delete"],enter:{strikethrough:V_},exit:{strikethrough:Y_}}}function q_(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:U_}],handlers:{delete:TC}}}function V_(e){this.enter({type:"delete",children:[]},e)}function Y_(e){this.exit(e)}function TC(e,t,r,a){const l=r.createTracker(a),s=r.enter("strikethrough");let u=l.move("~~");return u+=r.containerPhrasing(e,{...l.current(),before:u,after:"~"}),u+=l.move("~~"),s(),u}function G_(){return"~"}function X_(e){return e.length}function W_(e,t){const r=t||{},a=(r.align||[]).concat(),l=r.stringLength||X_,s=[],u=[],f=[],d=[];let p=0,m=-1;for(;++m<e.length;){const C=[],R=[];let E=-1;for(e[m].length>p&&(p=e[m].length);++E<e[m].length;){const M=K_(e[m][E]);if(r.alignDelimiters!==!1){const O=l(M);R[E]=O,(d[E]===void 0||O>d[E])&&(d[E]=O)}C.push(M)}u[m]=C,f[m]=R}let g=-1;if(typeof a=="object"&&"length"in a)for(;++g<p;)s[g]=Hx(a[g]);else{const C=Hx(a);for(;++g<p;)s[g]=C}g=-1;const v=[],b=[];for(;++g<p;){const C=s[g];let R="",E="";C===99?(R=":",E=":"):C===108?R=":":C===114&&(E=":");let M=r.alignDelimiters===!1?1:Math.max(1,d[g]-R.length-E.length);const O=R+"-".repeat(M)+E;r.alignDelimiters!==!1&&(M=R.length+M+E.length,M>d[g]&&(d[g]=M),b[g]=M),v[g]=O}u.splice(1,0,v),f.splice(1,0,b),m=-1;const x=[];for(;++m<u.length;){const C=u[m],R=f[m];g=-1;const E=[];for(;++g<p;){const M=C[g]||"";let O="",L="";if(r.alignDelimiters!==!1){const j=d[g]-(R[g]||0),z=s[g];z===114?O=" ".repeat(j):z===99?j%2?(O=" ".repeat(j/2+.5),L=" ".repeat(j/2-.5)):(O=" ".repeat(j/2),L=O):L=" ".repeat(j)}r.delimiterStart!==!1&&!g&&E.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&M==="")&&(r.delimiterStart!==!1||g)&&E.push(" "),r.alignDelimiters!==!1&&E.push(O),E.push(M),r.alignDelimiters!==!1&&E.push(L),r.padding!==!1&&E.push(" "),(r.delimiterEnd!==!1||g!==p-1)&&E.push("|")}x.push(r.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return x.join(`
`)}function K_(e){return e==null?"":String(e)}function Hx(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Q_(e,t,r,a){const l=r.enter("blockquote"),s=r.createTracker(a);s.move("> "),s.shift(2);const u=r.indentLines(r.containerFlow(e,s.current()),Z_);return l(),u}function Z_(e,t,r){return">"+(r?"":" ")+e}function J_(e,t){return Ux(e,t.inConstruct,!0)&&!Ux(e,t.notInConstruct,!1)}function Ux(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let a=-1;for(;++a<t.length;)if(e.includes(t[a]))return!0;return!1}function Fx(e,t,r,a){let l=-1;for(;++l<r.unsafe.length;)if(r.unsafe[l].character===`
`&&J_(r.stack,r.unsafe[l]))return/[ \t]/.test(a.before)?"":" ";return`\\
`}function eB(e,t){const r=String(e);let a=r.indexOf(t),l=a,s=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===l?++s>u&&(u=s):s=1,l=a+t.length,a=r.indexOf(t,l);return u}function tB(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function nB(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function rB(e,t,r,a){const l=nB(r),s=e.value||"",u=l==="`"?"GraveAccent":"Tilde";if(tB(e,r)){const g=r.enter("codeIndented"),v=r.indentLines(s,iB);return g(),v}const f=r.createTracker(a),d=l.repeat(Math.max(eB(s,l)+1,3)),p=r.enter("codeFenced");let m=f.move(d);if(e.lang){const g=r.enter(`codeFencedLang${u}`);m+=f.move(r.safe(e.lang,{before:m,after:" ",encode:["`"],...f.current()})),g()}if(e.lang&&e.meta){const g=r.enter(`codeFencedMeta${u}`);m+=f.move(" "),m+=f.move(r.safe(e.meta,{before:m,after:`
`,encode:["`"],...f.current()})),g()}return m+=f.move(`
`),s&&(m+=f.move(s+`
`)),m+=f.move(d),p(),m}function iB(e,t,r){return(r?"":"    ")+e}function Mg(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function aB(e,t,r,a){const l=Mg(r),s=l==='"'?"Quote":"Apostrophe",u=r.enter("definition");let f=r.enter("label");const d=r.createTracker(a);let p=d.move("[");return p+=d.move(r.safe(r.associationId(e),{before:p,after:"]",...d.current()})),p+=d.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),p+=d.move("<"),p+=d.move(r.safe(e.url,{before:p,after:">",...d.current()})),p+=d.move(">")):(f=r.enter("destinationRaw"),p+=d.move(r.safe(e.url,{before:p,after:e.title?" ":`
`,...d.current()}))),f(),e.title&&(f=r.enter(`title${s}`),p+=d.move(" "+l),p+=d.move(r.safe(e.title,{before:p,after:l,...d.current()})),p+=d.move(l),f()),u(),p}function oB(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Rs(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Wc(e,t,r){const a=Po(e),l=Po(t);return a===void 0?l===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}RC.peek=lB;function RC(e,t,r,a){const l=oB(r),s=r.enter("emphasis"),u=r.createTracker(a),f=u.move(l);let d=u.move(r.containerPhrasing(e,{after:l,before:f,...u.current()}));const p=d.charCodeAt(0),m=Wc(a.before.charCodeAt(a.before.length-1),p,l);m.inside&&(d=Rs(p)+d.slice(1));const g=d.charCodeAt(d.length-1),v=Wc(a.after.charCodeAt(0),g,l);v.inside&&(d=d.slice(0,-1)+Rs(g));const b=u.move(l);return s(),r.attentionEncodeSurroundingInfo={after:v.outside,before:m.outside},f+d+b}function lB(e,t,r){return r.options.emphasis||"*"}function sB(e,t){let r=!1;return Rg(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return r=!0,am}),!!((!e.depth||e.depth<3)&&xg(e)&&(t.options.setext||r))}function uB(e,t,r,a){const l=Math.max(Math.min(6,e.depth||1),1),s=r.createTracker(a);if(sB(e,r)){const m=r.enter("headingSetext"),g=r.enter("phrasing"),v=r.containerPhrasing(e,{...s.current(),before:`
`,after:`
`});return g(),m(),v+`
`+(l===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
`))+1))}const u="#".repeat(l),f=r.enter("headingAtx"),d=r.enter("phrasing");s.move(u+" ");let p=r.containerPhrasing(e,{before:"# ",after:`
`,...s.current()});return/^[\t ]/.test(p)&&(p=Rs(p.charCodeAt(0))+p.slice(1)),p=p?u+" "+p:u,r.options.closeAtx&&(p+=" "+u),d(),f(),p}AC.peek=cB;function AC(e){return e.value||""}function cB(){return"<"}MC.peek=fB;function MC(e,t,r,a){const l=Mg(r),s=l==='"'?"Quote":"Apostrophe",u=r.enter("image");let f=r.enter("label");const d=r.createTracker(a);let p=d.move("![");return p+=d.move(r.safe(e.alt,{before:p,after:"]",...d.current()})),p+=d.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),p+=d.move("<"),p+=d.move(r.safe(e.url,{before:p,after:">",...d.current()})),p+=d.move(">")):(f=r.enter("destinationRaw"),p+=d.move(r.safe(e.url,{before:p,after:e.title?" ":")",...d.current()}))),f(),e.title&&(f=r.enter(`title${s}`),p+=d.move(" "+l),p+=d.move(r.safe(e.title,{before:p,after:l,...d.current()})),p+=d.move(l),f()),p+=d.move(")"),u(),p}function fB(){return"!"}OC.peek=dB;function OC(e,t,r,a){const l=e.referenceType,s=r.enter("imageReference");let u=r.enter("label");const f=r.createTracker(a);let d=f.move("![");const p=r.safe(e.alt,{before:d,after:"]",...f.current()});d+=f.move(p+"]["),u();const m=r.stack;r.stack=[],u=r.enter("reference");const g=r.safe(r.associationId(e),{before:d,after:"]",...f.current()});return u(),r.stack=m,s(),l==="full"||!p||p!==g?d+=f.move(g+"]"):l==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function dB(){return"!"}zC.peek=pB;function zC(e,t,r){let a=e.value||"",l="`",s=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(a);)l+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++s<r.unsafe.length;){const u=r.unsafe[s],f=r.compilePattern(u);let d;if(u.atBreak)for(;d=f.exec(a);){let p=d.index;a.charCodeAt(p)===10&&a.charCodeAt(p-1)===13&&p--,a=a.slice(0,p)+" "+a.slice(d.index+1)}}return l+a+l}function pB(){return"`"}function DC(e,t){const r=xg(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}jC.peek=hB;function jC(e,t,r,a){const l=Mg(r),s=l==='"'?"Quote":"Apostrophe",u=r.createTracker(a);let f,d;if(DC(e,r)){const m=r.stack;r.stack=[],f=r.enter("autolink");let g=u.move("<");return g+=u.move(r.containerPhrasing(e,{before:g,after:">",...u.current()})),g+=u.move(">"),f(),r.stack=m,g}f=r.enter("link"),d=r.enter("label");let p=u.move("[");return p+=u.move(r.containerPhrasing(e,{before:p,after:"](",...u.current()})),p+=u.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),p+=u.move("<"),p+=u.move(r.safe(e.url,{before:p,after:">",...u.current()})),p+=u.move(">")):(d=r.enter("destinationRaw"),p+=u.move(r.safe(e.url,{before:p,after:e.title?" ":")",...u.current()}))),d(),e.title&&(d=r.enter(`title${s}`),p+=u.move(" "+l),p+=u.move(r.safe(e.title,{before:p,after:l,...u.current()})),p+=u.move(l),d()),p+=u.move(")"),f(),p}function hB(e,t,r){return DC(e,r)?"<":"["}LC.peek=mB;function LC(e,t,r,a){const l=e.referenceType,s=r.enter("linkReference");let u=r.enter("label");const f=r.createTracker(a);let d=f.move("[");const p=r.containerPhrasing(e,{before:d,after:"]",...f.current()});d+=f.move(p+"]["),u();const m=r.stack;r.stack=[],u=r.enter("reference");const g=r.safe(r.associationId(e),{before:d,after:"]",...f.current()});return u(),r.stack=m,s(),l==="full"||!p||p!==g?d+=f.move(g+"]"):l==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function mB(){return"["}function Og(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function gB(e){const t=Og(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function yB(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function PC(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function bB(e,t,r,a){const l=r.enter("list"),s=r.bulletCurrent;let u=e.ordered?yB(r):Og(r);const f=e.ordered?u==="."?")":".":gB(r);let d=t&&r.bulletLastUsed?u===r.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&m&&(!m.children||!m.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(d=!0),PC(r)===u&&m){let g=-1;for(;++g<e.children.length;){const v=e.children[g];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(u=f),r.bulletCurrent=u;const p=r.containerFlow(e,a);return r.bulletLastUsed=u,r.bulletCurrent=s,l(),p}function vB(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function xB(e,t,r,a){const l=vB(r);let s=r.bulletCurrent||Og(r);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let u=s.length+1;(l==="tab"||l==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(u=Math.ceil(u/4)*4);const f=r.createTracker(a);f.move(s+" ".repeat(u-s.length)),f.shift(u);const d=r.enter("listItem"),p=r.indentLines(r.containerFlow(e,f.current()),m);return d(),p;function m(g,v,b){return v?(b?"":" ".repeat(u))+g:(b?s:s+" ".repeat(u-s.length))+g}}function SB(e,t,r,a){const l=r.enter("paragraph"),s=r.enter("phrasing"),u=r.containerPhrasing(e,a);return s(),l(),u}const wB=Af(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function CB(e,t,r,a){return(e.children.some(function(u){return wB(u)})?r.containerPhrasing:r.containerFlow).call(r,e,a)}function kB(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}NC.peek=EB;function NC(e,t,r,a){const l=kB(r),s=r.enter("strong"),u=r.createTracker(a),f=u.move(l+l);let d=u.move(r.containerPhrasing(e,{after:l,before:f,...u.current()}));const p=d.charCodeAt(0),m=Wc(a.before.charCodeAt(a.before.length-1),p,l);m.inside&&(d=Rs(p)+d.slice(1));const g=d.charCodeAt(d.length-1),v=Wc(a.after.charCodeAt(0),g,l);v.inside&&(d=d.slice(0,-1)+Rs(g));const b=u.move(l+l);return s(),r.attentionEncodeSurroundingInfo={after:v.outside,before:m.outside},f+d+b}function EB(e,t,r){return r.options.strong||"*"}function TB(e,t,r,a){return r.safe(e.value,a)}function RB(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function AB(e,t,r){const a=(PC(r)+(r.options.ruleSpaces?" ":"")).repeat(RB(r));return r.options.ruleSpaces?a.slice(0,-1):a}const _C={blockquote:Q_,break:Fx,code:rB,definition:aB,emphasis:RC,hardBreak:Fx,heading:uB,html:AC,image:MC,imageReference:OC,inlineCode:zC,link:jC,linkReference:LC,list:bB,listItem:xB,paragraph:SB,root:CB,strong:NC,text:TB,thematicBreak:AB};function MB(){return{enter:{table:OB,tableData:qx,tableHeader:qx,tableRow:DB},exit:{codeText:jB,table:zB,tableData:kh,tableHeader:kh,tableRow:kh}}}function OB(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function zB(e){this.exit(e),this.data.inTable=void 0}function DB(e){this.enter({type:"tableRow",children:[]},e)}function kh(e){this.exit(e)}function qx(e){this.enter({type:"tableCell",children:[]},e)}function jB(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,LB));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function LB(e,t){return t==="|"?t:e}function PB(e){const t=e||{},r=t.tableCellPadding,a=t.tablePipeAlign,l=t.stringLength,s=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:u,tableCell:d,tableRow:f}};function u(b,x,C,R){return p(m(b,C,R),b.align)}function f(b,x,C,R){const E=g(b,C,R),M=p([E]);return M.slice(0,M.indexOf(`
`))}function d(b,x,C,R){const E=C.enter("tableCell"),M=C.enter("phrasing"),O=C.containerPhrasing(b,{...R,before:s,after:s});return M(),E(),O}function p(b,x){return W_(b,{align:x,alignDelimiters:a,padding:r,stringLength:l})}function m(b,x,C){const R=b.children;let E=-1;const M=[],O=x.enter("table");for(;++E<R.length;)M[E]=g(R[E],x,C);return O(),M}function g(b,x,C){const R=b.children;let E=-1;const M=[],O=x.enter("tableRow");for(;++E<R.length;)M[E]=d(R[E],b,x,C);return O(),M}function v(b,x,C){let R=_C.inlineCode(b,x,C);return C.stack.includes("tableCell")&&(R=R.replace(/\|/g,"\\$&")),R}}function NB(){return{exit:{taskListCheckValueChecked:Vx,taskListCheckValueUnchecked:Vx,paragraph:BB}}}function _B(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:IB}}}function Vx(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function BB(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const a=r.children[0];if(a&&a.type==="text"){const l=t.children;let s=-1,u;for(;++s<l.length;){const f=l[s];if(f.type==="paragraph"){u=f;break}}u===r&&(a.value=a.value.slice(1),a.value.length===0?r.children.shift():r.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,r.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function IB(e,t,r,a){const l=e.children[0],s=typeof e.checked=="boolean"&&l&&l.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",f=r.createTracker(a);s&&f.move(u);let d=_C.listItem(e,t,r,{...a,...f.current()});return s&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),d;function p(m){return m+u}}function $B(){return[b_(),I_(),F_(),MB(),NB()]}function HB(e){return{extensions:[v_(),$_(e),q_(),PB(e),_B()]}}const UB={tokenize:XB,partial:!0},BC={tokenize:WB,partial:!0},IC={tokenize:KB,partial:!0},$C={tokenize:QB,partial:!0},FB={tokenize:ZB,partial:!0},HC={name:"wwwAutolink",tokenize:YB,previous:FC},UC={name:"protocolAutolink",tokenize:GB,previous:qC},fi={name:"emailAutolink",tokenize:VB,previous:VC},$r={};function qB(){return{text:$r}}let pa=48;for(;pa<123;)$r[pa]=fi,pa++,pa===58?pa=65:pa===91&&(pa=97);$r[43]=fi;$r[45]=fi;$r[46]=fi;$r[95]=fi;$r[72]=[fi,UC];$r[104]=[fi,UC];$r[87]=[fi,HC];$r[119]=[fi,HC];function VB(e,t,r){const a=this;let l,s;return u;function u(g){return!um(g)||!VC.call(a,a.previous)||zg(a.events)?r(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(g))}function f(g){return um(g)?(e.consume(g),f):g===64?(e.consume(g),d):r(g)}function d(g){return g===46?e.check(FB,m,p)(g):g===45||g===95||mn(g)?(s=!0,e.consume(g),d):m(g)}function p(g){return e.consume(g),l=!0,d}function m(g){return s&&l&&xn(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(g)):r(g)}}function YB(e,t,r){const a=this;return l;function l(u){return u!==87&&u!==119||!FC.call(a,a.previous)||zg(a.events)?r(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(UB,e.attempt(BC,e.attempt(IC,s),r),r)(u))}function s(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function GB(e,t,r){const a=this;let l="",s=!1;return u;function u(g){return(g===72||g===104)&&qC.call(a,a.previous)&&!zg(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(g),e.consume(g),f):r(g)}function f(g){if(xn(g)&&l.length<5)return l+=String.fromCodePoint(g),e.consume(g),f;if(g===58){const v=l.toLowerCase();if(v==="http"||v==="https")return e.consume(g),d}return r(g)}function d(g){return g===47?(e.consume(g),s?p:(s=!0,d)):r(g)}function p(g){return g===null||Yc(g)||Tt(g)||ka(g)||Ef(g)?r(g):e.attempt(BC,e.attempt(IC,m),r)(g)}function m(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(g)}}function XB(e,t,r){let a=0;return l;function l(u){return(u===87||u===119)&&a<3?(a++,e.consume(u),l):u===46&&a===3?(e.consume(u),s):r(u)}function s(u){return u===null?r(u):t(u)}}function WB(e,t,r){let a,l,s;return u;function u(p){return p===46||p===95?e.check($C,d,f)(p):p===null||Tt(p)||ka(p)||p!==45&&Ef(p)?d(p):(s=!0,e.consume(p),u)}function f(p){return p===95?a=!0:(l=a,a=void 0),e.consume(p),u}function d(p){return l||a||!s?r(p):t(p)}}function KB(e,t){let r=0,a=0;return l;function l(u){return u===40?(r++,e.consume(u),l):u===41&&a<r?s(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check($C,t,s)(u):u===null||Tt(u)||ka(u)?t(u):(e.consume(u),l)}function s(u){return u===41&&a++,e.consume(u),l}}function QB(e,t,r){return a;function a(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),a):f===38?(e.consume(f),s):f===93?(e.consume(f),l):f===60||f===null||Tt(f)||ka(f)?t(f):r(f)}function l(f){return f===null||f===40||f===91||Tt(f)||ka(f)?t(f):a(f)}function s(f){return xn(f)?u(f):r(f)}function u(f){return f===59?(e.consume(f),a):xn(f)?(e.consume(f),u):r(f)}}function ZB(e,t,r){return a;function a(s){return e.consume(s),l}function l(s){return mn(s)?r(s):t(s)}}function FC(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Tt(e)}function qC(e){return!xn(e)}function VC(e){return!(e===47||um(e))}function um(e){return e===43||e===45||e===46||e===95||mn(e)}function zg(e){let t=e.length,r=!1;for(;t--;){const a=e[t][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){r=!0;break}if(a._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const JB={tokenize:l9,partial:!0};function e9(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:i9,continuation:{tokenize:a9},exit:o9}},text:{91:{name:"gfmFootnoteCall",tokenize:r9},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:t9,resolveTo:n9}}}}function t9(e,t,r){const a=this;let l=a.events.length;const s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let u;for(;l--;){const d=a.events[l][1];if(d.type==="labelImage"){u=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return f;function f(d){if(!u||!u._balanced)return r(d);const p=vr(a.sliceSerialize({start:u.end,end:a.now()}));return p.codePointAt(0)!==94||!s.includes(p.slice(1))?r(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function n9(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},f=[e[r+1],e[r+2],["enter",a,t],e[r+3],e[r+4],["enter",l,t],["exit",l,t],["enter",s,t],["enter",u,t],["exit",u,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",a,t]];return e.splice(r,e.length-r+1,...f),e}function r9(e,t,r){const a=this,l=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s=0,u;return f;function f(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),d}function d(g){return g!==94?r(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",p)}function p(g){if(s>999||g===93&&!u||g===null||g===91||Tt(g))return r(g);if(g===93){e.exit("chunkString");const v=e.exit("gfmFootnoteCallString");return l.includes(vr(a.sliceSerialize(v)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(g)}return Tt(g)||(u=!0),s++,e.consume(g),g===92?m:p}function m(g){return g===91||g===92||g===93?(e.consume(g),s++,p):p(g)}}function i9(e,t,r){const a=this,l=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s,u=0,f;return d;function d(x){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(x){return x===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):r(x)}function m(x){if(u>999||x===93&&!f||x===null||x===91||Tt(x))return r(x);if(x===93){e.exit("chunkString");const C=e.exit("gfmFootnoteDefinitionLabelString");return s=vr(a.sliceSerialize(C)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),v}return Tt(x)||(f=!0),u++,e.consume(x),x===92?g:m}function g(x){return x===91||x===92||x===93?(e.consume(x),u++,m):m(x)}function v(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),l.includes(s)||l.push(s),lt(e,b,"gfmFootnoteDefinitionWhitespace")):r(x)}function b(x){return t(x)}}function a9(e,t,r){return e.check(qs,t,e.attempt(JB,t,r))}function o9(e){e.exit("gfmFootnoteDefinition")}function l9(e,t,r){const a=this;return lt(e,l,"gfmFootnoteDefinitionIndent",5);function l(s){const u=a.events[a.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(s):r(s)}}function s9(e){let r=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:s,resolveAll:l};return r==null&&(r=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function l(u,f){let d=-1;for(;++d<u.length;)if(u[d][0]==="enter"&&u[d][1].type==="strikethroughSequenceTemporary"&&u[d][1]._close){let p=d;for(;p--;)if(u[p][0]==="exit"&&u[p][1].type==="strikethroughSequenceTemporary"&&u[p][1]._open&&u[d][1].end.offset-u[d][1].start.offset===u[p][1].end.offset-u[p][1].start.offset){u[d][1].type="strikethroughSequence",u[p][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},u[p][1].start),end:Object.assign({},u[d][1].end)},g={type:"strikethroughText",start:Object.assign({},u[p][1].end),end:Object.assign({},u[d][1].start)},v=[["enter",m,f],["enter",u[p][1],f],["exit",u[p][1],f],["enter",g,f]],b=f.parser.constructs.insideSpan.null;b&&Gn(v,v.length,0,Tf(b,u.slice(p+1,d),f)),Gn(v,v.length,0,[["exit",g,f],["enter",u[d][1],f],["exit",u[d][1],f],["exit",m,f]]),Gn(u,p-1,d-p+3,v),d=p+v.length-2;break}}for(d=-1;++d<u.length;)u[d][1].type==="strikethroughSequenceTemporary"&&(u[d][1].type="data");return u}function s(u,f,d){const p=this.previous,m=this.events;let g=0;return v;function v(x){return p===126&&m[m.length-1][1].type!=="characterEscape"?d(x):(u.enter("strikethroughSequenceTemporary"),b(x))}function b(x){const C=Po(p);if(x===126)return g>1?d(x):(u.consume(x),g++,b);if(g<2&&!r)return d(x);const R=u.exit("strikethroughSequenceTemporary"),E=Po(x);return R._open=!E||E===2&&!!C,R._close=!C||C===2&&!!E,f(x)}}}class u9{constructor(){this.map=[]}add(t,r,a){c9(this,t,r,a)}consume(t){if(this.map.sort(function(s,u){return s[0]-u[0]}),this.map.length===0)return;let r=this.map.length;const a=[];for(;r>0;)r-=1,a.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];a.push(t.slice()),t.length=0;let l=a.pop();for(;l;){for(const s of l)t.push(s);l=a.pop()}this.map.length=0}}function c9(e,t,r,a){let l=0;if(!(r===0&&a.length===0)){for(;l<e.map.length;){if(e.map[l][0]===t){e.map[l][1]+=r,e.map[l][2].push(...a);return}l+=1}e.map.push([t,r,a])}}function f9(e,t){let r=!1;const a=[];for(;t<e.length;){const l=e[t];if(r){if(l[0]==="enter")l[1].type==="tableContent"&&a.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=a.length-1;a[s]=a[s]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return a}function d9(){return{flow:{null:{name:"table",tokenize:p9,resolveAll:h9}}}}function p9(e,t,r){const a=this;let l=0,s=0,u;return f;function f(N){let q=a.events.length-1;for(;q>-1;){const H=a.events[q][1].type;if(H==="lineEnding"||H==="linePrefix")q--;else break}const A=q>-1?a.events[q][1].type:null,B=A==="tableHead"||A==="tableRow"?z:d;return B===z&&a.parser.lazy[a.now().line]?r(N):B(N)}function d(N){return e.enter("tableHead"),e.enter("tableRow"),p(N)}function p(N){return N===124||(u=!0,s+=1),m(N)}function m(N){return N===null?r(N):Pe(N)?s>1?(s=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),b):r(N):tt(N)?lt(e,m,"whitespace")(N):(s+=1,u&&(u=!1,l+=1),N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),u=!0,m):(e.enter("data"),g(N)))}function g(N){return N===null||N===124||Tt(N)?(e.exit("data"),m(N)):(e.consume(N),N===92?v:g)}function v(N){return N===92||N===124?(e.consume(N),g):g(N)}function b(N){return a.interrupt=!1,a.parser.lazy[a.now().line]?r(N):(e.enter("tableDelimiterRow"),u=!1,tt(N)?lt(e,x,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):x(N))}function x(N){return N===45||N===58?R(N):N===124?(u=!0,e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),C):j(N)}function C(N){return tt(N)?lt(e,R,"whitespace")(N):R(N)}function R(N){return N===58?(s+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),E):N===45?(s+=1,E(N)):N===null||Pe(N)?L(N):j(N)}function E(N){return N===45?(e.enter("tableDelimiterFiller"),M(N)):j(N)}function M(N){return N===45?(e.consume(N),M):N===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),O):(e.exit("tableDelimiterFiller"),O(N))}function O(N){return tt(N)?lt(e,L,"whitespace")(N):L(N)}function L(N){return N===124?x(N):N===null||Pe(N)?!u||l!==s?j(N):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(N)):j(N)}function j(N){return r(N)}function z(N){return e.enter("tableRow"),I(N)}function I(N){return N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),I):N===null||Pe(N)?(e.exit("tableRow"),t(N)):tt(N)?lt(e,I,"whitespace")(N):(e.enter("data"),V(N))}function V(N){return N===null||N===124||Tt(N)?(e.exit("data"),I(N)):(e.consume(N),N===92?F:V)}function F(N){return N===92||N===124?(e.consume(N),V):V(N)}}function h9(e,t){let r=-1,a=!0,l=0,s=[0,0,0,0],u=[0,0,0,0],f=!1,d=0,p,m,g;const v=new u9;for(;++r<e.length;){const b=e[r],x=b[1];b[0]==="enter"?x.type==="tableHead"?(f=!1,d!==0&&(Yx(v,t,d,p,m),m=void 0,d=0),p={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},v.add(r,0,[["enter",p,t]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(a=!0,g=void 0,s=[0,0,0,0],u=[0,r+1,0,0],f&&(f=!1,m={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},v.add(r,0,[["enter",m,t]])),l=x.type==="tableDelimiterRow"?2:m?3:1):l&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(a=!1,u[2]===0&&(s[1]!==0&&(u[0]=u[1],g=Sc(v,t,s,l,void 0,g),s=[0,0,0,0]),u[2]=r)):x.type==="tableCellDivider"&&(a?a=!1:(s[1]!==0&&(u[0]=u[1],g=Sc(v,t,s,l,void 0,g)),s=u,u=[s[1],r,0,0])):x.type==="tableHead"?(f=!0,d=r):x.type==="tableRow"||x.type==="tableDelimiterRow"?(d=r,s[1]!==0?(u[0]=u[1],g=Sc(v,t,s,l,r,g)):u[1]!==0&&(g=Sc(v,t,u,l,r,g)),l=0):l&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(u[3]=r)}for(d!==0&&Yx(v,t,d,p,m),v.consume(t.events),r=-1;++r<t.events.length;){const b=t.events[r];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=f9(t.events,r))}return e}function Sc(e,t,r,a,l,s){const u=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",f="tableContent";r[0]!==0&&(s.end=Object.assign({},Co(t.events,r[0])),e.add(r[0],0,[["exit",s,t]]));const d=Co(t.events,r[1]);if(s={type:u,start:Object.assign({},d),end:Object.assign({},d)},e.add(r[1],0,[["enter",s,t]]),r[2]!==0){const p=Co(t.events,r[2]),m=Co(t.events,r[3]),g={type:f,start:Object.assign({},p),end:Object.assign({},m)};if(e.add(r[2],0,[["enter",g,t]]),a!==2){const v=t.events[r[2]],b=t.events[r[3]];if(v[1].end=Object.assign({},b[1].end),v[1].type="chunkText",v[1].contentType="text",r[3]>r[2]+1){const x=r[2]+1,C=r[3]-r[2]-1;e.add(x,C,[])}}e.add(r[3]+1,0,[["exit",g,t]])}return l!==void 0&&(s.end=Object.assign({},Co(t.events,l)),e.add(l,0,[["exit",s,t]]),s=void 0),s}function Yx(e,t,r,a,l){const s=[],u=Co(t.events,r);l&&(l.end=Object.assign({},u),s.push(["exit",l,t])),a.end=Object.assign({},u),s.push(["exit",a,t]),e.add(r+1,0,s)}function Co(e,t){const r=e[t],a=r[0]==="enter"?"start":"end";return r[1][a]}const m9={name:"tasklistCheck",tokenize:y9};function g9(){return{text:{91:m9}}}function y9(e,t,r){const a=this;return l;function l(d){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?r(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),s)}function s(d){return Tt(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),u):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),u):r(d)}function u(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):r(d)}function f(d){return Pe(d)?t(d):tt(d)?e.check({tokenize:b9},t,r)(d):r(d)}}function b9(e,t,r){return lt(e,a,"whitespace");function a(l){return l===null?r(l):t(l)}}function v9(e){return nC([qB(),e9(),s9(e),d9(),g9()])}const x9={};function S9(e){const t=this,r=e||x9,a=t.data(),l=a.micromarkExtensions||(a.micromarkExtensions=[]),s=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),u=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);l.push(v9(r)),s.push($B()),u.push(HB(r))}function w9(e){const t=en();return w.jsx("div",{className:"react-markdown",children:w.jsx(s_,{remarkPlugins:[S9],components:{p:ha("p"),h1:ha("h1"),h2:ha("h2"),h3:ha("h3"),h4:ha("h4"),h5:ha("h5"),h6:ha("h6"),pre:r=>w.jsx("pre",{style:{backgroundColor:t.palette.background.paper,padding:"10px"},children:r.children})},children:e.children})})}function ha(e){return t=>w.jsx(it,{variant:e,children:t.children})}function C9(e){const t=S.useMemo(()=>w.jsx(w9,{children:e.part?.text}));return e.isUser()?w.jsx(k9,{...e}):w.jsx(w.Fragment,{children:t})}function k9(e){return e.isLargeText()?e.textExpand?w.jsx(it,{variant:"p",children:e.part.text}):w.jsxs(it,{variant:"p",children:[e.part.text.substring(0,116),"..."]}):w.jsx(it,{variant:"p",children:e.part.text})}const E9=ct(w.jsx("path",{d:"M11 21h-1l1-7H7.5c-.58 0-.57-.32-.38-.66s.05-.08.07-.12C8.48 10.94 10.42 7.54 13 3h1l-1 7h3.5c.49 0 .56.33.47.51l-.07.15C12.96 17.55 11 21 11 21"})),YC=ct(w.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),T9=ct(w.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"})),R9=ct(w.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}));function A9({textExpand:e,textExpandToggle:t}){return w.jsx(jn,{title:e?"Collapse text":"Expand text",children:w.jsx(On,{onClick:t,children:e?w.jsx(R9,{}):w.jsx(T9,{})})})}const M9=ct(w.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}));function O9(e){const{setSnack:t,setPrompt:r,input_focus:a}=S.useContext(Ht);return w.jsxs(ke,{className:"actions-child",sx:{marginLeft:"20px",opacity:"0",transition:"opacity 0.5s ease"},children:[w.jsx(jn,{title:"Copy prompt",children:w.jsx(On,{onClick:async()=>{await navigator.clipboard.writeText(e.text),t("Prompt copied")},children:w.jsx(Hw,{fontSize:"small"})})}),w.jsx(jn,{title:"Edit prompt",children:w.jsx(On,{onClick:()=>{r(e.text),a()},children:w.jsx(M9,{fontSize:"small"})})})]})}function z9(e){return w.jsx(ke,{sx:{display:"flex",flexDirection:"row",gap:"10px",alignSelf:e.alignSelf,justifyContent:e.justifyContent,width:"100%",alignItems:"center",flexWrap:"wrap",paddingLeft:"60px"},children:e.files.map(t=>w.jsx($w,{file:t},t.name))})}function D9(){const{config:e}=S.useContext(Ht),{feedback:t,postNegativeFeedback:r}=S.useContext(mf),[a,l]=S.useState(!1),[s,u]=S.useState(""),f=en();return w.jsxs(ke,{sx:{display:"flex",flexDirection:"column",justifyContent:"flex-start",marginTop:"10px",gap:"10px"},children:[w.jsxs(ke,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[w.jsx(it,{fontSize:"22px",color:f.palette.text.primary,variant:"p",children:"What went wrong?"}),w.jsx(On,{onClick:()=>{r({...t})},children:w.jsx(_w,{fontSize:"small"})})]}),w.jsxs(it,{variant:"h4",children:["Your feedback helps make ",e.title," better for everyone."]}),w.jsx(ke,{children:w.jsxs(dg,{children:[e.feedback.negative.categories.map(d=>w.jsx(Es,{disablePadding:!0,children:w.jsx(ks,{onClick:()=>{r({...t,feedback_text:d})},sx:{backgroundColor:f.palette.background.paper,padding:"12px 16px"},children:d})},d)),w.jsx(Es,{disablePadding:!0,children:w.jsx(ks,{disableRipple:!0,sx:{backgroundColor:`${f.palette.background.paper} !important`,padding:"12px 16px","&:hover, &:active":{backgroundColor:f.palette.background.paper}},children:w.jsxs(ke,{sx:{width:"100%",display:"flex",flexDirection:"column",gap:"24px"},children:[w.jsxs(ke,{sx:{display:"flex",justifyContent:"space-between"},onClick:()=>l(!a),children:[w.jsx(ke,{children:"Other"}),a&&w.jsx(YC,{fontSize:"small"})]}),a&&w.jsxs(w.Fragment,{children:[w.jsx(ke,{children:w.jsx(nD,{autoComplete:"off",value:s,onChange:d=>u(d.target.value),autoFocus:!0,fullWidth:!0,id:"outlined-basic",label:"Feedback",variant:"outlined",placeholder:"Provide additional feedback"})}),w.jsx(ke,{children:w.jsx($s,{onClick:()=>{r({...t,feedback_text:s})},sx:{color:f.palette.background.default,padding:"10px 24px",borderRadius:"100px"},variant:"contained",children:"Submit"})})]})]})})},"Other")]})})]})}function j9(e){const t=en(),{config:r}=S.useContext(Ht),{chat:a,feedback:l,negativeFeedbackToggle:s}=S.useContext(mf),[u,f]=S.useState(!1),d=e.part?.text??"";let p=()=>e.role=="user",m=()=>d.length>116,g=()=>e.part.functionResponse||e.part.functionCall,v=p()&&!g()?"flex-end":"flex-start",b=p()&&!g()?"flex-end":"flex-start",x=p()&&!g()?t.palette.background.paper:t.palette.background.default,C=()=>{f(!u)},R=S.useMemo(()=>a.cancelled?w.jsx(it,{sx:{opacity:"0.9"},fontSize:"16px",fontWeight:400,mt:1,variant:"h5",children:w.jsx("i",{children:e.part?.text})}):e.part.functionCall?w.jsxs(ke,{sx:{display:"flex",gap:"25px",justifyContent:"center",alignItems:"center"},children:[w.jsx(E9,{}),e.part.functionCall.name]}):e.part.functionResponse?w.jsxs(ke,{sx:{display:"flex",gap:"25px",justifyContent:"center",alignItems:"center"},children:[w.jsx(YC,{}),e.part.functionResponse.name]}):w.jsx(C9,{textExpand:u,isUser:p,isLargeText:m,part:e.part}),[e.part,d,u]);return w.jsxs(ke,{className:["chat-item-box",`chat-item-box-${e.role}`].join(" "),sx:{"&:hover .actions-child":{opacity:"1",transition:"opacity 0.2s ease"},display:"flex",flexDirection:"column",gap:e.files?.length?"5px":void 0},children:[w.jsx(z9,{alignSelf:b,justifyContent:v,files:e.files}),w.jsxs(ke,{sx:{display:"flex",flexDirection:"row",gap:"10px",alignSelf:b,justifyContent:v,width:"100%",alignItems:"flex-start"},children:[p()&&!g()&&w.jsx(O9,{text:d}),w.jsxs(ke,{sx:{backgroundColor:x,borderRadius:"24px",borderTopRightRadius:p()?"0px":void 0,borderTopLeftRadius:p()?void 0:"0px",maxWidth:p()?"452px":void 0,padding:p()?"12px 16px":"2px 16px",display:"flex",alignItems:"flex-start",gap:"20px"},children:[!p()&&!g()?w.jsx("img",{src:"/gemini.svg"}):null,R,p()&&m()&&!g()(w.jsx(A9,{textExpand:u,textExpandToggle:C}))]})]}),!p()&&!g()?w.jsx(QD,{...e}):null,l&&l.feedback_category==r.feedback.negative.value&&s&&w.jsx(D9,{}),a?.loading&&w.jsxs(ke,{className:"gemini-loader-container",sx:{borderRadius:"24px",padding:"2px 16px",display:"flex",alignItems:"center",gap:"20px"},children:[w.jsx(L9,{}),w.jsx(it,{className:"gemini-spark",variant:"p",children:"Just a sec..."})]})]})}function L9(){const e=()=>w.jsx("svg",{width:0,height:0,children:w.jsxs("linearGradient",{id:"linearColors",x1:0,y1:0,x2:1,y2:1,children:[w.jsx("stop",{offset:"0%",stopColor:"#4285F4"}),w.jsx("stop",{offset:"25%",stopColor:"#34A853"}),w.jsx("stop",{offset:"50%",stopColor:"#FBBC05"}),w.jsx("stop",{offset:"75%",stopColor:"#EA4335"}),w.jsx("stop",{offset:"100%",stopColor:"#4285F4"})]})});return w.jsxs(ke,{sx:{position:"relative",display:"inline-flex"},children:[w.jsx(e,{}),w.jsx(Vm,{variant:"indeterminate",size:30,sx:{"& .MuiCircularProgress-circle":{stroke:"url(#linearColors)"}}}),w.jsx(ke,{sx:{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:w.jsx("img",{src:"/gemini.svg",alt:"Loading icon",style:{width:"50%",height:"50%",borderRadius:"50%"}})})]})}function P9(){const{history:e,config:t}=S.useContext(Ht);return w.jsx(ke,{sx:{display:"flex",flexDirection:"column",width:"100%",alignItems:"center",position:"relative"},children:w.jsx(ke,{sx:{display:"flex",gap:"10px",flexDirection:"column",width:"100%",maxWidth:tw,"& .chat-item-box:last-of-type .actions-child-model":{opacity:"1"},"& .chat-item-box:last-of-type":{marginBottom:"500px"}},children:e.map(r=>w.jsx(N9,{chat:r},r.id))})})}function N9(e){const t=S.useContext(Ht),[r,a]=S.useState(),[l,s]=S.useState(!1),u=e.chat,f=async({feedback_category:v,feedback_text:b})=>{try{const x={feedback_category:v,feedback_text:b,id:u.id};await zv(t)(x),a(x),t.setSnack(`Thank you! Your feedback helps make ${config.title} better for everyone`)}catch(x){if(x.name==Pr)return;console.error(x),t.setSnack(config.errorMessage)}},d=async({feedback_category:v,feedback_text:b})=>{try{const x={feedback_category:v,feedback_text:b,id:u.id};await zv(t)(x),a(x),s(!1),t.setSnack(`Thank you for helping improve ${config.title}`)}catch(x){if(x.name==Pr)return;console.error(x),t.setSnack(config.errorMessage)}},[p,m]=S.useMemo(()=>{let v=[],b=[],x=[],C=[];for(let R of u.parts)if(R.text){let E=R.text;if(TD(E)){let M=JSON.parse(E);M.fileNames&&(b=M.fileNames??[])}else v.push(R)}else R.inline_data||R.inlineData?x.push(R.inline_data||R.inlineData):v.push(R);for(let R=0;R<b.length;R++){let E={name:b[R],version:0,type:"upload"};x[R]&&(E={...E,inlineData:{...x[R]}}),C.push(E)}return u?.actions?.artifact_delta&&Object.keys(u.actions.artifact_delta).forEach(R=>{C.push({name:R,version:u.actions.artifact_delta[R],type:"artifact"})}),[v,C]},[]),g={chat:u,files:m,postPostiveFeedback:f,feedback:r,setFeedback:a,postNegativeFeedback:d,negativeFeedbackToggle:l,setNegativeFeedbackToggle:s};return w.jsx(mf.Provider,{value:g,children:w.jsx(gr.Fragment,{children:p.map((v,b)=>w.jsx(j9,{part:v,role:u.role,files:m},b))},u.id)},u.id)}function Gx(){const{user:e,showHeading:t,config:r}=S.useContext(Ht),a=en();return w.jsxs(w.Fragment,{children:[t&&w.jsx(ke,{sx:{height:"50vh",gap:"10px",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"},children:e?w.jsxs(w.Fragment,{children:[w.jsxs(it,{className:"animated-text",variant:"h1",sx:{backgroundImage:"linear-gradient(90deg, #3186ff 0, #346bf1 50%, #4fa0ff 100%)",WebkitBackgroundClip:"text",color:"transparent"},children:["Hello, ",e?.given_name]}),w.jsx(it,{textAlign:"center",color:a.palette.text.tagline,fontWeight:400,variant:"h1",className:"tagline-text",children:r.greeting})]}):w.jsxs(w.Fragment,{children:[w.jsxs(it,{className:"animated-text",variant:"h1",fontWeight:500,fontSize:"45px",sx:{color:a.palette.text.primary},children:["Meet ",r.title,","]}),w.jsx(it,{textAlign:"center",color:a.palette.text.primary,fontWeight:500,fontSize:"45px",variant:"h1",className:"tagline-text",children:"your personal AI assistant"})]})}),w.jsx(P9,{})]})}function _9(){const{config:e}=S.useContext(Bm),[t,r]=S.useState(),[a,l]=S.useState(void 0),[s,u]=S.useState(void 0),[f,d]=S.useState(""),[p,m]=S.useState([]),[g,v]=S.useState([]),[b,x]=S.useState([]),[C,R]=S.useState(""),[E,M]=S.useState(!1),[O,L]=S.useState(!1),[j,z]=S.useState(""),[I,V]=S.useState(e.models[0].model),[F,N]=S.useState([]),[q,A]=S.useState(!1),[B,H]=S.useState(void 0),U=dm(),_=$i(),G=()=>!!t,Z=async()=>new Promise(pe=>{if(!B){pe();return}re({role:"model",id:`${new Date().getTime()}`,prompt:f,cancelled:!0,parts:[{text:"You stopped this response"}]}),B.abort(),setTimeout(()=>{pe()},100)}),J=async()=>{const ge=(await NT(be)()).session_id;return r(ge),ge},k=({prompt:pe,files:ge})=>{const Ce=[{text:pe}];if(ge?.length)return;const de=ge.map(ze=>({inline_data:{...ze.inlineData}})),Oe=ge.map(ze=>ze.name);return Ce.push(...de),Ce.push({text:JSON.stringify({fileNames:Oe})}),Ce},K=async(pe,ge={submittedFiles:[]})=>{if(!pe)return;let Ce=t;const de=!G(),Oe=`${new Date().getTime()}`;try{L(!0),de&&(Ce=await J()),await Z();const ze=new AbortController;H(ze);const Me=k({prompt:pe,files:ge.submittedFiles});A(!1),re({role:"user",id:Oe,prompt:pe,parts:Me,loading:!0}),d(""),N([]);const qe=await _T(be)({session_id:Ce,parts:Me,controller:ze});se(Oe,{loading:!1});for(let Xe of qe)re({...Xe.content,role:"model",id:Xe.id,prompt:pe,actions:{...Xe.actions}});de&&U(`/${Ce}`)}catch(ze){if(se(Oe,{loading:!1}),ze.name==="AbortError")return;if(ze.name===Pr){m([]),A(!0);return}d(pe),N(ge.submittedFiles),console.error(ze),z(e.errorMessage)}finally{H(void 0),L(!1),de&&v(ze=>[{id:Ce},...ze])}},re=pe=>{m(ge=>!ge||!ge.length?[pe]:[...ge,pe])},P=pe=>{m(ge=>[...ge.filter(Ce=>Ce.id!==pe)])},se=(pe,ge)=>{m(Ce=>[...Ce.map(de=>de.id!==pe?de:{...de,...ge})])},me=()=>{m([])},fe=()=>{document.getElementById("input-base")?.focus()},ce=()=>{me(),r(),U("/"),A(!0),fe()},ye=async({sessionId:pe,selectedAgent:ge,user:Ce})=>{try{M(!0);const de=await dS(be)({session_id:pe,selected_agent:ge,user:Ce?.sub});A(!1);let Oe=[],ze="";if(de&&de.events)for(let Me of de.events)Me.content.role=="user"&&(ze=Me?.content?.parts[0]?.text??ze),Oe.push({...Me.content,id:Me.id,prompt:ze,actions:{...Me.actions}});m(Oe),fe()}catch(de){if(de.name==Pr)return;if(de.name==ym){ce();return}console.error(de),z(e.errorMessage)}finally{setTimeout(()=>{M(!1)},500)}},be={session:t,setSession:r,user:a,setUser:l,prompt:f,setPrompt:d,isValidSession:G,send:K,loading:E,setLoading:M,currentModel:I,setCurrentModel:V,setSnack:z,files:F,setFiles:N,cancelApi:Z,history:p,add_history:re,delete_history:P,sessions:g,setSessions:v,clear_history:me,agents:b,selectedAgent:C,setSelectedAgent:R,promptLoading:O,getSession:ye,showHeading:q,on_new_chat:ce,input_focus:fe,health:s,config:e},ve=async()=>{try{M(!0);const pe=await HT(be)();u(pe);const ge=await $T(be)();if(!ge){A(!0);return}const Ce=ge.user_response;l(Ce);const de=await IT(be)(),Oe=de[0];x(de),R(Oe);const ze=await BT({...be,user:Ce})({selectedAgent:Oe});if(v([...ze].reverse()),_.pathname==="/"){A(!0);return}let Me=_.pathname.substring(1);await ye({sessionId:Me,selectedAgent:Oe,user:Ce}),r(Me)}catch(pe){if(A(!0),pe.name==Pr){U("/");return}console.error(pe),z(e.errorMessage)}finally{setTimeout(()=>{M(!1)},500)}};return S.useEffect(()=>{ve()},[]),w.jsx(w.Fragment,{children:w.jsxs(Ht.Provider,{value:be,children:[w.jsx(FD,{history:p,children:w.jsxs(rT,{children:[w.jsx(Th,{path:"/:sessionId",element:w.jsx(Gx,{})}),w.jsx(Th,{path:"/",element:w.jsx(Gx,{})})]})}),w.jsx($6,{open:!!j,autoHideDuration:2e3,onClose:()=>{z()},message:j})]})})}pE.createRoot(document.getElementById("root")).render(w.jsx(S.StrictMode,{children:w.jsx(vM,{children:w.jsx(TT,{children:w.jsx(_9,{})})})}));
