@mitodl/smoot-design 3.5.0 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles/remoteAiChatDrawer.es.js +8457 -8167
- package/dist/bundles/remoteAiChatDrawer.umd.js +47 -47
- package/dist/cjs/bundles/RemoteAiChatDrawer/RemoteAiChatDrawer.d.ts +14 -1
- package/dist/cjs/bundles/RemoteAiChatDrawer/RemoteAiChatDrawer.js +10 -4
- package/dist/cjs/bundles/remoteAiChatDrawer.d.ts +4 -0
- package/dist/cjs/bundles/remoteAiChatDrawer.js +30 -5
- package/dist/esm/bundles/RemoteAiChatDrawer/RemoteAiChatDrawer.d.ts +14 -1
- package/dist/esm/bundles/RemoteAiChatDrawer/RemoteAiChatDrawer.js +10 -4
- package/dist/esm/bundles/remoteAiChatDrawer.d.ts +4 -0
- package/dist/esm/bundles/remoteAiChatDrawer.js +31 -6
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(Cn,dn){typeof exports=="object"&&typeof module<"u"?dn(exports):typeof define=="function"&&define.amd?define(["exports"],dn):(Cn=typeof globalThis<"u"?globalThis:Cn||self,dn(Cn.remoteAiChatDrawer={}))})(this,function(Cn){"use strict";var uO=Object.defineProperty;var sO=(Cn,dn,Tn)=>dn in Cn?uO(Cn,dn,{enumerable:!0,configurable:!0,writable:!0,value:Tn}):Cn[dn]=Tn;var Lo=(Cn,dn,Tn)=>sO(Cn,typeof dn!="symbol"?dn+"":dn,Tn);function dn(e,r){for(var a=0;a<r.length;a++){const l=r[a];if(typeof l!="string"&&!Array.isArray(l)){for(const u in l)if(u!=="default"&&!(u in e)){const s=Object.getOwnPropertyDescriptor(l,u);s&&Object.defineProperty(e,u,s.get?s:{enumerable:!0,get:()=>l[u]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Tn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vs={exports:{}},ze={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Ip;function qS(){if(Ip)return ze;Ip=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function v(x){return x===null||typeof x!="object"?null:(x=y&&x[y]||x["@@iterator"],typeof x=="function"?x:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,T={};function N(x,K,se){this.props=x,this.context=K,this.refs=T,this.updater=se||S}N.prototype.isReactComponent={},N.prototype.setState=function(x,K){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,K,"setState")},N.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function w(){}w.prototype=N.prototype;function B(x,K,se){this.props=x,this.context=K,this.refs=T,this.updater=se||S}var k=B.prototype=new w;k.constructor=B,A(k,N.prototype),k.isPureReactComponent=!0;var z=Array.isArray,R={H:null,A:null,T:null,S:null},_=Object.prototype.hasOwnProperty;function H(x,K,se,O,ie,ye){return se=ye.ref,{$$typeof:e,type:x,key:K,ref:se!==void 0?se:null,props:ye}}function ne(x,K){return H(x.type,K,void 0,void 0,void 0,x.props)}function V(x){return typeof x=="object"&&x!==null&&x.$$typeof===e}function E(x){var K={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(se){return K[se]})}var I=/\/+/g;function Y(x,K){return typeof x=="object"&&x!==null&&x.key!=null?E(""+x.key):K.toString(36)}function F(){}function P(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(F,F):(x.status="pending",x.then(function(K){x.status==="pending"&&(x.status="fulfilled",x.value=K)},function(K){x.status==="pending"&&(x.status="rejected",x.reason=K)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function ee(x,K,se,O,ie){var ye=typeof x;(ye==="undefined"||ye==="boolean")&&(x=null);var he=!1;if(x===null)he=!0;else switch(ye){case"bigint":case"string":case"number":he=!0;break;case"object":switch(x.$$typeof){case e:case r:he=!0;break;case g:return he=x._init,ee(he(x._payload),K,se,O,ie)}}if(he)return ie=ie(x),he=O===""?"."+Y(x,0):O,z(ie)?(se="",he!=null&&(se=he.replace(I,"$&/")+"/"),ee(ie,K,se,"",function(Oe){return Oe})):ie!=null&&(V(ie)&&(ie=ne(ie,se+(ie.key==null||x&&x.key===ie.key?"":(""+ie.key).replace(I,"$&/")+"/")+he)),K.push(ie)),1;he=0;var Ue=O===""?".":O+":";if(z(x))for(var we=0;we<x.length;we++)O=x[we],ye=Ue+Y(O,we),he+=ee(O,K,se,ye,ie);else if(we=v(x),typeof we=="function")for(x=we.call(x),we=0;!(O=x.next()).done;)O=O.value,ye=Ue+Y(O,we++),he+=ee(O,K,se,ye,ie);else if(ye==="object"){if(typeof x.then=="function")return ee(P(x),K,se,O,ie);throw K=String(x),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return he}function q(x,K,se){if(x==null)return x;var O=[],ie=0;return ee(x,O,"","",function(ye){return K.call(se,ye,ie++)}),O}function Z(x){if(x._status===-1){var K=x._result;K=K(),K.then(function(se){(x._status===0||x._status===-1)&&(x._status=1,x._result=se)},function(se){(x._status===0||x._status===-1)&&(x._status=2,x._result=se)}),x._status===-1&&(x._status=0,x._result=K)}if(x._status===1)return x._result.default;throw x._result}var Q=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)};function ue(){}return ze.Children={map:q,forEach:function(x,K,se){q(x,function(){K.apply(this,arguments)},se)},count:function(x){var K=0;return q(x,function(){K++}),K},toArray:function(x){return q(x,function(K){return K})||[]},only:function(x){if(!V(x))throw Error("React.Children.only expected to receive a single React element child.");return x}},ze.Component=N,ze.Fragment=a,ze.Profiler=u,ze.PureComponent=B,ze.StrictMode=l,ze.Suspense=m,ze.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,ze.act=function(){throw Error("act(...) is not supported in production builds of React.")},ze.cache=function(x){return function(){return x.apply(null,arguments)}},ze.cloneElement=function(x,K,se){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var O=A({},x.props),ie=x.key,ye=void 0;if(K!=null)for(he in K.ref!==void 0&&(ye=void 0),K.key!==void 0&&(ie=""+K.key),K)!_.call(K,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&K.ref===void 0||(O[he]=K[he]);var he=arguments.length-2;if(he===1)O.children=se;else if(1<he){for(var Ue=Array(he),we=0;we<he;we++)Ue[we]=arguments[we+2];O.children=Ue}return H(x.type,ie,void 0,void 0,ye,O)},ze.createContext=function(x){return x={$$typeof:f,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:s,_context:x},x},ze.createElement=function(x,K,se){var O,ie={},ye=null;if(K!=null)for(O in K.key!==void 0&&(ye=""+K.key),K)_.call(K,O)&&O!=="key"&&O!=="__self"&&O!=="__source"&&(ie[O]=K[O]);var he=arguments.length-2;if(he===1)ie.children=se;else if(1<he){for(var Ue=Array(he),we=0;we<he;we++)Ue[we]=arguments[we+2];ie.children=Ue}if(x&&x.defaultProps)for(O in he=x.defaultProps,he)ie[O]===void 0&&(ie[O]=he[O]);return H(x,ye,void 0,void 0,null,ie)},ze.createRef=function(){return{current:null}},ze.forwardRef=function(x){return{$$typeof:d,render:x}},ze.isValidElement=V,ze.lazy=function(x){return{$$typeof:g,_payload:{_status:-1,_result:x},_init:Z}},ze.memo=function(x,K){return{$$typeof:h,type:x,compare:K===void 0?null:K}},ze.startTransition=function(x){var K=R.T,se={};R.T=se;try{var O=x(),ie=R.S;ie!==null&&ie(se,O),typeof O=="object"&&O!==null&&typeof O.then=="function"&&O.then(ue,Q)}catch(ye){Q(ye)}finally{R.T=K}},ze.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},ze.use=function(x){return R.H.use(x)},ze.useActionState=function(x,K,se){return R.H.useActionState(x,K,se)},ze.useCallback=function(x,K){return R.H.useCallback(x,K)},ze.useContext=function(x){return R.H.useContext(x)},ze.useDebugValue=function(){},ze.useDeferredValue=function(x,K){return R.H.useDeferredValue(x,K)},ze.useEffect=function(x,K){return R.H.useEffect(x,K)},ze.useId=function(){return R.H.useId()},ze.useImperativeHandle=function(x,K,se){return R.H.useImperativeHandle(x,K,se)},ze.useInsertionEffect=function(x,K){return R.H.useInsertionEffect(x,K)},ze.useLayoutEffect=function(x,K){return R.H.useLayoutEffect(x,K)},ze.useMemo=function(x,K){return R.H.useMemo(x,K)},ze.useOptimistic=function(x,K){return R.H.useOptimistic(x,K)},ze.useReducer=function(x,K,se){return R.H.useReducer(x,K,se)},ze.useRef=function(x){return R.H.useRef(x)},ze.useState=function(x){return R.H.useState(x)},ze.useSyncExternalStore=function(x,K,se){return R.H.useSyncExternalStore(x,K,se)},ze.useTransition=function(){return R.H.useTransition()},ze.version="19.0.0",ze}var Vp;function Uo(){return Vp||(Vp=1,Vs.exports=qS()),Vs.exports}var M=Uo();const dt=Tn(M),$p=dn({__proto__:null,default:dt},[M]);var $s={exports:{}},Ya={},qs={exports:{}},Gs={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* scheduler.production.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var qp;function GS(){return qp||(qp=1,function(e){function r(q,Z){var Q=q.length;q.push(Z);e:for(;0<Q;){var ue=Q-1>>>1,x=q[ue];if(0<u(x,Z))q[ue]=Z,q[Q]=x,Q=ue;else break e}}function a(q){return q.length===0?null:q[0]}function l(q){if(q.length===0)return null;var Z=q[0],Q=q.pop();if(Q!==Z){q[0]=Q;e:for(var ue=0,x=q.length,K=x>>>1;ue<K;){var se=2*(ue+1)-1,O=q[se],ie=se+1,ye=q[ie];if(0>u(O,Q))ie<x&&0>u(ye,O)?(q[ue]=ye,q[ie]=Q,ue=ie):(q[ue]=O,q[se]=Q,ue=se);else if(ie<x&&0>u(ye,Q))q[ue]=ye,q[ie]=Q,ue=ie;else break e}}return Z}function u(q,Z){var Q=q.sortIndex-Z.sortIndex;return Q!==0?Q:q.id-Z.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 f=Date,d=f.now();e.unstable_now=function(){return f.now()-d}}var m=[],h=[],g=1,y=null,v=3,S=!1,A=!1,T=!1,N=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function k(q){for(var Z=a(h);Z!==null;){if(Z.callback===null)l(h);else if(Z.startTime<=q)l(h),Z.sortIndex=Z.expirationTime,r(m,Z);else break;Z=a(h)}}function z(q){if(T=!1,k(q),!A)if(a(m)!==null)A=!0,P();else{var Z=a(h);Z!==null&&ee(z,Z.startTime-q)}}var R=!1,_=-1,H=5,ne=-1;function V(){return!(e.unstable_now()-ne<H)}function E(){if(R){var q=e.unstable_now();ne=q;var Z=!0;try{e:{A=!1,T&&(T=!1,w(_),_=-1),S=!0;var Q=v;try{t:{for(k(q),y=a(m);y!==null&&!(y.expirationTime>q&&V());){var ue=y.callback;if(typeof ue=="function"){y.callback=null,v=y.priorityLevel;var x=ue(y.expirationTime<=q);if(q=e.unstable_now(),typeof x=="function"){y.callback=x,k(q),Z=!0;break t}y===a(m)&&l(m),k(q)}else l(m);y=a(m)}if(y!==null)Z=!0;else{var K=a(h);K!==null&&ee(z,K.startTime-q),Z=!1}}break e}finally{y=null,v=Q,S=!1}Z=void 0}}finally{Z?I():R=!1}}}var I;if(typeof B=="function")I=function(){B(E)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,F=Y.port2;Y.port1.onmessage=E,I=function(){F.postMessage(null)}}else I=function(){N(E,0)};function P(){R||(R=!0,I())}function ee(q,Z){_=N(function(){q(e.unstable_now())},Z)}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(q){q.callback=null},e.unstable_continueExecution=function(){A||S||(A=!0,P())},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return a(m)},e.unstable_next=function(q){switch(v){case 1:case 2:case 3:var Z=3;break;default:Z=v}var Q=v;v=Z;try{return q()}finally{v=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(q,Z){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var Q=v;v=q;try{return Z()}finally{v=Q}},e.unstable_scheduleCallback=function(q,Z,Q){var ue=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ue+Q:ue):Q=ue,q){case 1:var x=-1;break;case 2:x=250;break;case 5:x=1073741823;break;case 4:x=1e4;break;default:x=5e3}return x=Q+x,q={id:g++,callback:Z,priorityLevel:q,startTime:Q,expirationTime:x,sortIndex:-1},Q>ue?(q.sortIndex=Q,r(h,q),a(m)===null&&q===a(h)&&(T?(w(_),_=-1):T=!0,ee(z,Q-ue))):(q.sortIndex=x,r(m,q),A||S||(A=!0,P())),q},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(q){var Z=v;return function(){var Q=v;v=Z;try{return q.apply(this,arguments)}finally{v=Q}}}}(Gs)),Gs}var Gp;function YS(){return Gp||(Gp=1,qs.exports=GS()),qs.exports}var Ys={exports:{}},Pt={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* react-dom.production.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var
|
|
25
|
+
*/var Yp;function FS(){if(Yp)return Pt;Yp=1;var e=Uo();function r(m){var h="https://react.dev/errors/"+m;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)h+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+m+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var l={d:{f:a,r:function(){throw Error(r(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},u=Symbol.for("react.portal");function s(m,h,g){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:y==null?null:""+y,children:m,containerInfo:h,implementation:g}}var f=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,h){if(m==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Pt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Pt.createPortal=function(m,h){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(r(299));return s(m,h,null,g)},Pt.flushSync=function(m){var h=f.T,g=l.p;try{if(f.T=null,l.p=2,m)return m()}finally{f.T=h,l.p=g,l.d.f()}},Pt.preconnect=function(m,h){typeof m=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,l.d.C(m,h))},Pt.prefetchDNS=function(m){typeof m=="string"&&l.d.D(m)},Pt.preinit=function(m,h){if(typeof m=="string"&&h&&typeof h.as=="string"){var g=h.as,y=d(g,h.crossOrigin),v=typeof h.integrity=="string"?h.integrity:void 0,S=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;g==="style"?l.d.S(m,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:v,fetchPriority:S}):g==="script"&&l.d.X(m,{crossOrigin:y,integrity:v,fetchPriority:S,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Pt.preinitModule=function(m,h){if(typeof m=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var g=d(h.as,h.crossOrigin);l.d.M(m,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&l.d.M(m)},Pt.preload=function(m,h){if(typeof m=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var g=h.as,y=d(g,h.crossOrigin);l.d.L(m,g,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Pt.preloadModule=function(m,h){if(typeof m=="string")if(h){var g=d(h.as,h.crossOrigin);l.d.m(m,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else l.d.m(m)},Pt.requestFormReset=function(m){l.d.r(m)},Pt.unstable_batchedUpdates=function(m,h){return m(h)},Pt.useFormState=function(m,h,g){return f.H.useFormState(m,h,g)},Pt.useFormStatus=function(){return f.H.useHostTransitionStatus()},Pt.version="19.0.0",Pt}var Fp;function Pp(){if(Fp)return Ys.exports;Fp=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(r){console.error(r)}}return e(),Ys.exports=FS(),Ys.exports}/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom-client.production.js
|
|
28
28
|
*
|
|
@@ -30,22 +30,22 @@
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var
|
|
33
|
+
*/var Xp;function PS(){if(Xp)return Ya;Xp=1;var e=YS(),r=Uo(),a=Pp();function l(t){var n="https://react.dev/errors/"+t;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}var s=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),v=Symbol.for("react.consumer"),S=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),z=Symbol.for("react.memo_cache_sentinel"),R=Symbol.iterator;function _(t){return t===null||typeof t!="object"?null:(t=R&&t[R]||t["@@iterator"],typeof t=="function"?t:null)}var H=Symbol.for("react.client.reference");function ne(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===H?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case m:return"Fragment";case d:return"Portal";case g:return"Profiler";case h:return"StrictMode";case T:return"Suspense";case N:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case S:return(t.displayName||"Context")+".Provider";case v:return(t._context.displayName||"Context")+".Consumer";case A:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case w:return n=t.displayName||null,n!==null?n:ne(t.type)||"Memo";case B:n=t._payload,t=t._init;try{return ne(t(n))}catch{}}return null}var V=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E=Object.assign,I,Y;function F(t){if(I===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);I=n&&n[1]||"",Y=-1<i.stack.indexOf(`
|
|
34
34
|
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
35
|
-
`+I+t+Y}var P=!1;function ee(t,n){if(!t||P)return"";P=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(n){var
|
|
35
|
+
`+I+t+Y}var P=!1;function ee(t,n){if(!t||P)return"";P=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(n){var le=function(){throw Error()};if(Object.defineProperty(le.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(le,[])}catch(J){var G=J}Reflect.construct(t,[],le)}else{try{le.call()}catch(J){G=J}t.call(le.prototype)}}else{try{throw Error()}catch(J){G=J}(le=t())&&typeof le.catch=="function"&&le.catch(function(){})}}catch(J){if(J&&G&&typeof J.stack=="string")return[J.stack,G.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=o.DetermineComponentFrameRoot(),b=p[0],C=p[1];if(b&&C){var D=b.split(`
|
|
36
36
|
`),U=C.split(`
|
|
37
37
|
`);for(c=o=0;o<D.length&&!D[o].includes("DetermineComponentFrameRoot");)o++;for(;c<U.length&&!U[c].includes("DetermineComponentFrameRoot");)c++;if(o===D.length||c===U.length)for(o=D.length-1,c=U.length-1;1<=o&&0<=c&&D[o]!==U[c];)c--;for(;1<=o&&0<=c;o--,c--)if(D[o]!==U[c]){if(o!==1||c!==1)do if(o--,c--,0>c||D[o]!==U[c]){var te=`
|
|
38
|
-
`+D[o].replace(" at new "," at ");return t.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",t.displayName)),te}while(1<=o&&0<=c);break}}}finally{P=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?F(i):""}function
|
|
38
|
+
`+D[o].replace(" at new "," at ");return t.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",t.displayName)),te}while(1<=o&&0<=c);break}}}finally{P=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?F(i):""}function q(t){switch(t.tag){case 26:case 27:case 5:return F(t.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 15:return t=ee(t.type,!1),t;case 11:return t=ee(t.type.render,!1),t;case 1:return t=ee(t.type,!0),t;default:return""}}function Z(t){try{var n="";do n+=q(t),t=t.return;while(t);return n}catch(i){return`
|
|
39
39
|
Error generating stack: `+i.message+`
|
|
40
|
-
`+i.stack}}function Q(t){var n=t,i=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,n.flags&4098&&(i=n.return),t=n.return;while(t)}return n.tag===3?i:null}function ue(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function x(t){if(Q(t)!==t)throw Error(a(188))}function K(t){var n=t.alternate;if(!n){if(n=Q(t),n===null)throw Error(a(188));return n!==t?null:t}for(var i=t,o=n;;){var c=i.return;if(c===null)break;var p=c.alternate;if(p===null){if(o=c.return,o!==null){i=o;continue}break}if(c.child===p.child){for(p=c.child;p;){if(p===i)return x(c),t;if(p===o)return x(c),n;p=p.sibling}throw Error(a(188))}if(i.return!==o.return)i=c,o=p;else{for(var b=!1,C=c.child;C;){if(C===i){b=!0,i=c,o=p;break}if(C===o){b=!0,o=c,i=p;break}C=C.sibling}if(!b){for(C=p.child;C;){if(C===i){b=!0,i=p,o=c;break}if(C===o){b=!0,o=p,i=c;break}C=C.sibling}if(!b)throw Error(a(189))}}if(i.alternate!==o)throw Error(a(190))}if(i.tag!==3)throw Error(a(188));return i.stateNode.current===i?t:n}function se(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(n=se(t),n!==null)return n;t=t.sibling}return null}var O=Array.isArray,ie=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye={pending:!1,data:null,method:null,action:null},he=[],Be=-1;function Ce(t){return{current:t}}function ke(t){0>Be||(t.current=he[Be],he[Be]=null,Be--)}function pe(t,n){Be++,he[Be]=t.current,t.current=n}var De=Ce(null),me=Ce(null),ge=Ce(null),fe=Ce(null);function Ee(t,n){switch(pe(ge,n),pe(me,t),pe(De,null),t=n.nodeType,t){case 9:case 11:n=(n=n.documentElement)&&(n=n.namespaceURI)?aS(n):0;break;default:if(t=t===8?n.parentNode:n,n=t.tagName,t=t.namespaceURI)t=aS(t),n=oS(t,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}ke(De),pe(De,n)}function qe(){ke(De),ke(me),ke(ge)}function Le(t){t.memoizedState!==null&&pe(fe,t);var n=De.current,i=oS(n,t.type);n!==i&&(pe(me,t),pe(De,i))}function Oe(t){me.current===t&&(ke(De),ke(me)),fe.current===t&&(ke(fe),ko._currentValue=ye)}var Pe=Object.prototype.hasOwnProperty,ht=e.unstable_scheduleCallback,Qt=e.unstable_cancelCallback,gn=e.unstable_shouldYield,xe=e.unstable_requestPaint,ze=e.unstable_now,Rt=e.unstable_getCurrentPriorityLevel,X=e.unstable_ImmediatePriority,le=e.unstable_UserBlockingPriority,de=e.unstable_NormalPriority,Ae=e.unstable_LowPriority,Ve=e.unstable_IdlePriority,Ue=e.log,on=e.unstable_setDisableYieldValue,Ut=null,Nt=null;function gi(t){if(Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(Ut,t,void 0,(t.current.flags&128)===128)}catch{}}function St(t){if(typeof Ue=="function"&&on(t),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(Ut,t)}catch{}}var Ot=Math.clz32?Math.clz32:B4,Fn=Math.log,N4=Math.LN2;function B4(t){return t>>>=0,t===0?32:31-(Fn(t)/N4|0)|0}var Ru=128,Ou=4194304;function yi(t){var n=t&42;if(n!==0)return n;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Mu(t,n){var i=t.pendingLanes;if(i===0)return 0;var o=0,c=t.suspendedLanes,p=t.pingedLanes,b=t.warmLanes;t=t.finishedLanes!==0;var C=i&134217727;return C!==0?(i=C&~c,i!==0?o=yi(i):(p&=C,p!==0?o=yi(p):t||(b=C&~b,b!==0&&(o=yi(b))))):(C=i&~c,C!==0?o=yi(C):p!==0?o=yi(p):t||(b=i&~b,b!==0&&(o=yi(b)))),o===0?0:n!==0&&n!==o&&!(n&c)&&(c=o&-o,b=n&-n,c>=b||c===32&&(b&4194176)!==0)?n:o}function La(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function L4(t,n){switch(t){case 1:case 2:case 4:case 8:return n+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Wy(){var t=Ru;return Ru<<=1,!(Ru&4194176)&&(Ru=128),t}function Jy(){var t=Ou;return Ou<<=1,!(Ou&62914560)&&(Ou=4194304),t}function _f(t){for(var n=[],i=0;31>i;i++)n.push(t);return n}function Ua(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function U4(t,n,i,o,c,p){var b=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var C=t.entanglements,D=t.expirationTimes,U=t.hiddenUpdates;for(i=b&~i;0<i;){var te=31-Ot(i),ae=1<<te;C[te]=0,D[te]=-1;var G=U[te];if(G!==null)for(U[te]=null,te=0;te<G.length;te++){var J=G[te];J!==null&&(J.lane&=-536870913)}i&=~ae}o!==0&&e0(t,o,0),p!==0&&c===0&&t.tag!==0&&(t.suspendedLanes|=p&~(b&~n))}function e0(t,n,i){t.pendingLanes|=n,t.suspendedLanes&=~n;var o=31-Ot(n);t.entangledLanes|=n,t.entanglements[o]=t.entanglements[o]|1073741824|i&4194218}function t0(t,n){var i=t.entangledLanes|=n;for(t=t.entanglements;i;){var o=31-Ot(i),c=1<<o;c&n|t[o]&n&&(t[o]|=n),i&=~c}}function n0(t){return t&=-t,2<t?8<t?t&134217727?32:268435456:8:2}function r0(){var t=ie.p;return t!==0?t:(t=window.event,t===void 0?32:wS(t.type))}function j4(t,n){var i=ie.p;try{return ie.p=t,n()}finally{ie.p=i}}var Vr=Math.random().toString(36).slice(2),Kt="__reactFiber$"+Vr,un="__reactProps$"+Vr,al="__reactContainer$"+Vr,Df="__reactEvents$"+Vr,H4="__reactListeners$"+Vr,I4="__reactHandles$"+Vr,i0="__reactResources$"+Vr,ja="__reactMarker$"+Vr;function zf(t){delete t[Kt],delete t[un],delete t[Df],delete t[H4],delete t[I4]}function bi(t){var n=t[Kt];if(n)return n;for(var i=t.parentNode;i;){if(n=i[al]||i[Kt]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(t=cS(t);t!==null;){if(i=t[Kt])return i;t=cS(t)}return n}t=i,i=t.parentNode}return null}function ol(t){if(t=t[Kt]||t[al]){var n=t.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return t}return null}function Ha(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error(a(33))}function ul(t){var n=t[i0];return n||(n=t[i0]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function jt(t){t[ja]=!0}var l0=new Set,a0={};function Si(t,n){sl(t,n),sl(t+"Capture",n)}function sl(t,n){for(a0[t]=n,t=0;t<n.length;t++)l0.add(n[t])}var yr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),V4=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]*$"),o0={},u0={};function q4(t){return Pe.call(u0,t)?!0:Pe.call(o0,t)?!1:V4.test(t)?u0[t]=!0:(o0[t]=!0,!1)}function _u(t,n,i){if(q4(n))if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(n);return;case"boolean":var o=n.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){t.removeAttribute(n);return}}t.setAttribute(n,""+i)}}function Du(t,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttribute(n,""+i)}}function br(t,n,i,o){if(o===null)t.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(n,i,""+o)}}function On(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function s0(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function $4(t){var n=s0(t)?"checked":"value",i=Object.getOwnPropertyDescriptor(t.constructor.prototype,n),o=""+t[n];if(!t.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var c=i.get,p=i.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return c.call(this)},set:function(b){o=""+b,p.call(this,b)}}),Object.defineProperty(t,n,{enumerable:i.enumerable}),{getValue:function(){return o},setValue:function(b){o=""+b},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function zu(t){t._valueTracker||(t._valueTracker=$4(t))}function c0(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var i=n.getValue(),o="";return t&&(o=s0(t)?t.checked?"true":"false":t.value),t=o,t!==i?(n.setValue(t),!0):!1}function Nu(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var G4=/[\n"\\]/g;function Mn(t){return t.replace(G4,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Nf(t,n,i,o,c,p,b,C){t.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.type=b:t.removeAttribute("type"),n!=null?b==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+On(n)):t.value!==""+On(n)&&(t.value=""+On(n)):b!=="submit"&&b!=="reset"||t.removeAttribute("value"),n!=null?Bf(t,b,On(n)):i!=null?Bf(t,b,On(i)):o!=null&&t.removeAttribute("value"),c==null&&p!=null&&(t.defaultChecked=!!p),c!=null&&(t.checked=c&&typeof c!="function"&&typeof c!="symbol"),C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?t.name=""+On(C):t.removeAttribute("name")}function f0(t,n,i,o,c,p,b,C){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(t.type=p),n!=null||i!=null){if(!(p!=="submit"&&p!=="reset"||n!=null))return;i=i!=null?""+On(i):"",n=n!=null?""+On(n):i,C||n===t.value||(t.value=n),t.defaultValue=n}o=o??c,o=typeof o!="function"&&typeof o!="symbol"&&!!o,t.checked=C?t.checked:!!o,t.defaultChecked=!!o,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(t.name=b)}function Bf(t,n,i){n==="number"&&Nu(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function cl(t,n,i,o){if(t=t.options,n){n={};for(var c=0;c<i.length;c++)n["$"+i[c]]=!0;for(i=0;i<t.length;i++)c=n.hasOwnProperty("$"+t[i].value),t[i].selected!==c&&(t[i].selected=c),c&&o&&(t[i].defaultSelected=!0)}else{for(i=""+On(i),n=null,c=0;c<t.length;c++){if(t[c].value===i){t[c].selected=!0,o&&(t[c].defaultSelected=!0);return}n!==null||t[c].disabled||(n=t[c])}n!==null&&(n.selected=!0)}}function d0(t,n,i){if(n!=null&&(n=""+On(n),n!==t.value&&(t.value=n),i==null)){t.defaultValue!==n&&(t.defaultValue=n);return}t.defaultValue=i!=null?""+On(i):""}function p0(t,n,i,o){if(n==null){if(o!=null){if(i!=null)throw Error(a(92));if(O(o)){if(1<o.length)throw Error(a(93));o=o[0]}i=o}i==null&&(i=""),n=i}i=On(n),t.defaultValue=i,o=t.textContent,o===i&&o!==""&&o!==null&&(t.value=o)}function fl(t,n){if(n){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=n;return}}t.textContent=n}var Y4=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 h0(t,n,i){var o=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?o?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="":o?t.setProperty(n,i):typeof i!="number"||i===0||Y4.has(n)?n==="float"?t.cssFloat=i:t[n]=(""+i).trim():t[n]=i+"px"}function m0(t,n,i){if(n!=null&&typeof n!="object")throw Error(a(62));if(t=t.style,i!=null){for(var o in i)!i.hasOwnProperty(o)||n!=null&&n.hasOwnProperty(o)||(o.indexOf("--")===0?t.setProperty(o,""):o==="float"?t.cssFloat="":t[o]="");for(var c in n)o=n[c],n.hasOwnProperty(c)&&i[c]!==o&&h0(t,c,o)}else for(var p in n)n.hasOwnProperty(p)&&h0(t,p,n[p])}function Lf(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var F4=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"]]),P4=/^[\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 Bu(t){return P4.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Uf=null;function jf(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var dl=null,pl=null;function g0(t){var n=ol(t);if(n&&(t=n.stateNode)){var i=t[un]||null;e:switch(t=n.stateNode,n.type){case"input":if(Nf(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Mn(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var o=i[n];if(o!==t&&o.form===t.form){var c=o[un]||null;if(!c)throw Error(a(90));Nf(o,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(n=0;n<i.length;n++)o=i[n],o.form===t.form&&c0(o)}break e;case"textarea":d0(t,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&cl(t,!!i.multiple,n,!1)}}}var Hf=!1;function y0(t,n,i){if(Hf)return t(n,i);Hf=!0;try{var o=t(n);return o}finally{if(Hf=!1,(dl!==null||pl!==null)&&(bs(),dl&&(n=dl,t=pl,pl=dl=null,g0(n),t)))for(n=0;n<t.length;n++)g0(t[n])}}function Ia(t,n){var i=t.stateNode;if(i===null)return null;var o=i[un]||null;if(o===null)return null;i=o[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(t=t.type,o=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!o;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(a(231,n,typeof i));return i}var If=!1;if(yr)try{var Va={};Object.defineProperty(Va,"passive",{get:function(){If=!0}}),window.addEventListener("test",Va,Va),window.removeEventListener("test",Va,Va)}catch{If=!1}var qr=null,Vf=null,Lu=null;function b0(){if(Lu)return Lu;var t,n=Vf,i=n.length,o,c="value"in qr?qr.value:qr.textContent,p=c.length;for(t=0;t<i&&n[t]===c[t];t++);var b=i-t;for(o=1;o<=b&&n[i-o]===c[p-o];o++);return Lu=c.slice(t,1<o?1-o:void 0)}function Uu(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function ju(){return!0}function S0(){return!1}function sn(t){function n(i,o,c,p,b){this._reactName=i,this._targetInst=c,this.type=o,this.nativeEvent=p,this.target=b,this.currentTarget=null;for(var C in t)t.hasOwnProperty(C)&&(i=t[C],this[C]=i?i(p):p[C]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?ju:S0,this.isPropagationStopped=S0,this}return E(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=ju)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=ju)},persist:function(){},isPersistent:ju}),n}var vi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hu=sn(vi),qa=E({},vi,{view:0,detail:0}),X4=sn(qa),qf,$f,$a,Iu=E({},qa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yf,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==$a&&($a&&t.type==="mousemove"?(qf=t.screenX-$a.screenX,$f=t.screenY-$a.screenY):$f=qf=0,$a=t),qf)},movementY:function(t){return"movementY"in t?t.movementY:$f}}),v0=sn(Iu),Q4=E({},Iu,{dataTransfer:0}),K4=sn(Q4),Z4=E({},qa,{relatedTarget:0}),Gf=sn(Z4),W4=E({},vi,{animationName:0,elapsedTime:0,pseudoElement:0}),J4=sn(W4),e3=E({},vi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),t3=sn(e3),n3=E({},vi,{data:0}),x0=sn(n3),r3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},i3={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"},l3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function a3(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=l3[t])?!!n[t]:!1}function Yf(){return a3}var o3=E({},qa,{key:function(t){if(t.key){var n=r3[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=Uu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?i3[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yf,charCode:function(t){return t.type==="keypress"?Uu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Uu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),u3=sn(o3),s3=E({},Iu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),E0=sn(s3),c3=E({},qa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yf}),f3=sn(c3),d3=E({},vi,{propertyName:0,elapsedTime:0,pseudoElement:0}),p3=sn(d3),h3=E({},Iu,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),m3=sn(h3),g3=E({},vi,{newState:0,oldState:0}),y3=sn(g3),b3=[9,13,27,32],Ff=yr&&"CompositionEvent"in window,Ga=null;yr&&"documentMode"in document&&(Ga=document.documentMode);var S3=yr&&"TextEvent"in window&&!Ga,C0=yr&&(!Ff||Ga&&8<Ga&&11>=Ga),T0=" ",w0=!1;function A0(t,n){switch(t){case"keyup":return b3.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function k0(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var hl=!1;function v3(t,n){switch(t){case"compositionend":return k0(n);case"keypress":return n.which!==32?null:(w0=!0,T0);case"textInput":return t=n.data,t===T0&&w0?null:t;default:return null}}function x3(t,n){if(hl)return t==="compositionend"||!Ff&&A0(t,n)?(t=b0(),Lu=Vf=qr=null,hl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return C0&&n.locale!=="ko"?null:n.data;default:return null}}var E3={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 R0(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!E3[t.type]:n==="textarea"}function O0(t,n,i,o){dl?pl?pl.push(o):pl=[o]:dl=o,n=Cs(n,"onChange"),0<n.length&&(i=new Hu("onChange","change",null,i,o),t.push({event:i,listeners:n}))}var Ya=null,Fa=null;function C3(t){tS(t,0)}function Vu(t){var n=Ha(t);if(c0(n))return t}function M0(t,n){if(t==="change")return n}var _0=!1;if(yr){var Pf;if(yr){var Xf="oninput"in document;if(!Xf){var D0=document.createElement("div");D0.setAttribute("oninput","return;"),Xf=typeof D0.oninput=="function"}Pf=Xf}else Pf=!1;_0=Pf&&(!document.documentMode||9<document.documentMode)}function z0(){Ya&&(Ya.detachEvent("onpropertychange",N0),Fa=Ya=null)}function N0(t){if(t.propertyName==="value"&&Vu(Fa)){var n=[];O0(n,Fa,t,jf(t)),y0(C3,n)}}function T3(t,n,i){t==="focusin"?(z0(),Ya=n,Fa=i,Ya.attachEvent("onpropertychange",N0)):t==="focusout"&&z0()}function w3(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Vu(Fa)}function A3(t,n){if(t==="click")return Vu(n)}function k3(t,n){if(t==="input"||t==="change")return Vu(n)}function R3(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var yn=typeof Object.is=="function"?Object.is:R3;function Pa(t,n){if(yn(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var i=Object.keys(t),o=Object.keys(n);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var c=i[o];if(!Pe.call(n,c)||!yn(t[c],n[c]))return!1}return!0}function B0(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function L0(t,n){var i=B0(t);t=0;for(var o;i;){if(i.nodeType===3){if(o=t+i.textContent.length,t<=n&&o>=n)return{node:i,offset:n-t};t=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=B0(i)}}function U0(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?U0(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function j0(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=Nu(t.document);n instanceof t.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)t=n.contentWindow;else break;n=Nu(t.document)}return n}function Qf(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}function O3(t,n){var i=j0(n);n=t.focusedElem;var o=t.selectionRange;if(i!==n&&n&&n.ownerDocument&&U0(n.ownerDocument.documentElement,n)){if(o!==null&&Qf(n)){if(t=o.start,i=o.end,i===void 0&&(i=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(i,n.value.length);else if(i=(t=n.ownerDocument||document)&&t.defaultView||window,i.getSelection){i=i.getSelection();var c=n.textContent.length,p=Math.min(o.start,c);o=o.end===void 0?p:Math.min(o.end,c),!i.extend&&p>o&&(c=o,o=p,p=c),c=L0(n,p);var b=L0(n,o);c&&b&&(i.rangeCount!==1||i.anchorNode!==c.node||i.anchorOffset!==c.offset||i.focusNode!==b.node||i.focusOffset!==b.offset)&&(t=t.createRange(),t.setStart(c.node,c.offset),i.removeAllRanges(),p>o?(i.addRange(t),i.extend(b.node,b.offset)):(t.setEnd(b.node,b.offset),i.addRange(t)))}}for(t=[],i=n;i=i.parentNode;)i.nodeType===1&&t.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)i=t[n],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var M3=yr&&"documentMode"in document&&11>=document.documentMode,ml=null,Kf=null,Xa=null,Zf=!1;function H0(t,n,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Zf||ml==null||ml!==Nu(o)||(o=ml,"selectionStart"in o&&Qf(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Xa&&Pa(Xa,o)||(Xa=o,o=Cs(Kf,"onSelect"),0<o.length&&(n=new Hu("onSelect","select",null,n,i),t.push({event:n,listeners:o}),n.target=ml)))}function xi(t,n){var i={};return i[t.toLowerCase()]=n.toLowerCase(),i["Webkit"+t]="webkit"+n,i["Moz"+t]="moz"+n,i}var gl={animationend:xi("Animation","AnimationEnd"),animationiteration:xi("Animation","AnimationIteration"),animationstart:xi("Animation","AnimationStart"),transitionrun:xi("Transition","TransitionRun"),transitionstart:xi("Transition","TransitionStart"),transitioncancel:xi("Transition","TransitionCancel"),transitionend:xi("Transition","TransitionEnd")},Wf={},I0={};yr&&(I0=document.createElement("div").style,"AnimationEvent"in window||(delete gl.animationend.animation,delete gl.animationiteration.animation,delete gl.animationstart.animation),"TransitionEvent"in window||delete gl.transitionend.transition);function Ei(t){if(Wf[t])return Wf[t];if(!gl[t])return t;var n=gl[t],i;for(i in n)if(n.hasOwnProperty(i)&&i in I0)return Wf[t]=n[i];return t}var V0=Ei("animationend"),q0=Ei("animationiteration"),$0=Ei("animationstart"),_3=Ei("transitionrun"),D3=Ei("transitionstart"),z3=Ei("transitioncancel"),G0=Ei("transitionend"),Y0=new Map,F0="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 scrollEnd toggle touchMove waiting wheel".split(" ");function Pn(t,n){Y0.set(t,n),Si(n,[t])}var _n=[],yl=0,Jf=0;function qu(){for(var t=yl,n=Jf=yl=0;n<t;){var i=_n[n];_n[n++]=null;var o=_n[n];_n[n++]=null;var c=_n[n];_n[n++]=null;var p=_n[n];if(_n[n++]=null,o!==null&&c!==null){var b=o.pending;b===null?c.next=c:(c.next=b.next,b.next=c),o.pending=c}p!==0&&P0(i,c,p)}}function $u(t,n,i,o){_n[yl++]=t,_n[yl++]=n,_n[yl++]=i,_n[yl++]=o,Jf|=o,t.lanes|=o,t=t.alternate,t!==null&&(t.lanes|=o)}function ed(t,n,i,o){return $u(t,n,i,o),Gu(t)}function $r(t,n){return $u(t,null,null,n),Gu(t)}function P0(t,n,i){t.lanes|=i;var o=t.alternate;o!==null&&(o.lanes|=i);for(var c=!1,p=t.return;p!==null;)p.childLanes|=i,o=p.alternate,o!==null&&(o.childLanes|=i),p.tag===22&&(t=p.stateNode,t===null||t._visibility&1||(c=!0)),t=p,p=p.return;c&&n!==null&&t.tag===3&&(p=t.stateNode,c=31-Ot(i),p=p.hiddenUpdates,t=p[c],t===null?p[c]=[n]:t.push(n),n.lane=i|536870912)}function Gu(t){if(50<vo)throw vo=0,ap=null,Error(a(185));for(var n=t.return;n!==null;)t=n,n=t.return;return t.tag===3?t.stateNode:null}var bl={},X0=new WeakMap;function Dn(t,n){if(typeof t=="object"&&t!==null){var i=X0.get(t);return i!==void 0?i:(n={value:t,source:n,stack:Z(n)},X0.set(t,n),n)}return{value:t,source:n,stack:Z(n)}}var Sl=[],vl=0,Yu=null,Fu=0,zn=[],Nn=0,Ci=null,Sr=1,vr="";function Ti(t,n){Sl[vl++]=Fu,Sl[vl++]=Yu,Yu=t,Fu=n}function Q0(t,n,i){zn[Nn++]=Sr,zn[Nn++]=vr,zn[Nn++]=Ci,Ci=t;var o=Sr;t=vr;var c=32-Ot(o)-1;o&=~(1<<c),i+=1;var p=32-Ot(n)+c;if(30<p){var b=c-c%5;p=(o&(1<<b)-1).toString(32),o>>=b,c-=b,Sr=1<<32-Ot(n)+c|i<<c|o,vr=p+t}else Sr=1<<p|i<<c|o,vr=t}function td(t){t.return!==null&&(Ti(t,1),Q0(t,1,0))}function nd(t){for(;t===Yu;)Yu=Sl[--vl],Sl[vl]=null,Fu=Sl[--vl],Sl[vl]=null;for(;t===Ci;)Ci=zn[--Nn],zn[Nn]=null,vr=zn[--Nn],zn[Nn]=null,Sr=zn[--Nn],zn[Nn]=null}var Jt=null,$t=null,Xe=!1,Xn=null,or=!1,rd=Error(a(519));function wi(t){var n=Error(a(418,""));throw Za(Dn(n,t)),rd}function K0(t){var n=t.stateNode,i=t.type,o=t.memoizedProps;switch(n[Kt]=t,n[un]=o,i){case"dialog":$e("cancel",n),$e("close",n);break;case"iframe":case"object":case"embed":$e("load",n);break;case"video":case"audio":for(i=0;i<Eo.length;i++)$e(Eo[i],n);break;case"source":$e("error",n);break;case"img":case"image":case"link":$e("error",n),$e("load",n);break;case"details":$e("toggle",n);break;case"input":$e("invalid",n),f0(n,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),zu(n);break;case"select":$e("invalid",n);break;case"textarea":$e("invalid",n),p0(n,o.value,o.defaultValue,o.children),zu(n)}i=o.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||o.suppressHydrationWarning===!0||lS(n.textContent,i)?(o.popover!=null&&($e("beforetoggle",n),$e("toggle",n)),o.onScroll!=null&&$e("scroll",n),o.onScrollEnd!=null&&$e("scrollend",n),o.onClick!=null&&(n.onclick=Ts),n=!0):n=!1,n||wi(t)}function Z0(t){for(Jt=t.return;Jt;)switch(Jt.tag){case 3:case 27:or=!0;return;case 5:case 13:or=!1;return;default:Jt=Jt.return}}function Qa(t){if(t!==Jt)return!1;if(!Xe)return Z0(t),Xe=!0,!1;var n=!1,i;if((i=t.tag!==3&&t.tag!==27)&&((i=t.tag===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||Cp(t.type,t.memoizedProps)),i=!i),i&&(n=!0),n&&$t&&wi(t),Z0(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(317));e:{for(t=t.nextSibling,n=0;t;){if(t.nodeType===8)if(i=t.data,i==="/$"){if(n===0){$t=Kn(t.nextSibling);break e}n--}else i!=="$"&&i!=="$!"&&i!=="$?"||n++;t=t.nextSibling}$t=null}}else $t=Jt?Kn(t.stateNode.nextSibling):null;return!0}function Ka(){$t=Jt=null,Xe=!1}function Za(t){Xn===null?Xn=[t]:Xn.push(t)}var Wa=Error(a(460)),W0=Error(a(474)),id={then:function(){}};function J0(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Pu(){}function e1(t,n,i){switch(i=t[i],i===void 0?t.push(n):i!==n&&(n.then(Pu,Pu),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,t===Wa?Error(a(483)):t;default:if(typeof n.status=="string")n.then(Pu,Pu);else{if(t=st,t!==null&&100<t.shellSuspendCounter)throw Error(a(482));t=n,t.status="pending",t.then(function(o){if(n.status==="pending"){var c=n;c.status="fulfilled",c.value=o}},function(o){if(n.status==="pending"){var c=n;c.status="rejected",c.reason=o}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,t===Wa?Error(a(483)):t}throw Ja=n,Wa}}var Ja=null;function t1(){if(Ja===null)throw Error(a(459));var t=Ja;return Ja=null,t}var xl=null,eo=0;function Xu(t){var n=eo;return eo+=1,xl===null&&(xl=[]),e1(xl,t,n)}function to(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}function Qu(t,n){throw n.$$typeof===s?Error(a(525)):(t=Object.prototype.toString.call(n),Error(a(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)))}function n1(t){var n=t._init;return n(t._payload)}function r1(t){function n(j,L){if(t){var q=j.deletions;q===null?(j.deletions=[L],j.flags|=16):q.push(L)}}function i(j,L){if(!t)return null;for(;L!==null;)n(j,L),L=L.sibling;return null}function o(j){for(var L=new Map;j!==null;)j.key!==null?L.set(j.key,j):L.set(j.index,j),j=j.sibling;return L}function c(j,L){return j=ti(j,L),j.index=0,j.sibling=null,j}function p(j,L,q){return j.index=q,t?(q=j.alternate,q!==null?(q=q.index,q<L?(j.flags|=33554434,L):q):(j.flags|=33554434,L)):(j.flags|=1048576,L)}function b(j){return t&&j.alternate===null&&(j.flags|=33554434),j}function C(j,L,q,re){return L===null||L.tag!==6?(L=Wd(q,j.mode,re),L.return=j,L):(L=c(L,q),L.return=j,L)}function D(j,L,q,re){var be=q.type;return be===m?te(j,L,q.props.children,re,q.key):L!==null&&(L.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===B&&n1(be)===L.type)?(L=c(L,q.props),to(L,q),L.return=j,L):(L=ps(q.type,q.key,q.props,null,j.mode,re),to(L,q),L.return=j,L)}function U(j,L,q,re){return L===null||L.tag!==4||L.stateNode.containerInfo!==q.containerInfo||L.stateNode.implementation!==q.implementation?(L=Jd(q,j.mode,re),L.return=j,L):(L=c(L,q.children||[]),L.return=j,L)}function te(j,L,q,re,be){return L===null||L.tag!==7?(L=Bi(q,j.mode,re,be),L.return=j,L):(L=c(L,q),L.return=j,L)}function ae(j,L,q){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Wd(""+L,j.mode,q),L.return=j,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case f:return q=ps(L.type,L.key,L.props,null,j.mode,q),to(q,L),q.return=j,q;case d:return L=Jd(L,j.mode,q),L.return=j,L;case B:var re=L._init;return L=re(L._payload),ae(j,L,q)}if(O(L)||_(L))return L=Bi(L,j.mode,q,null),L.return=j,L;if(typeof L.then=="function")return ae(j,Xu(L),q);if(L.$$typeof===S)return ae(j,cs(j,L),q);Qu(j,L)}return null}function G(j,L,q,re){var be=L!==null?L.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return be!==null?null:C(j,L,""+q,re);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case f:return q.key===be?D(j,L,q,re):null;case d:return q.key===be?U(j,L,q,re):null;case B:return be=q._init,q=be(q._payload),G(j,L,q,re)}if(O(q)||_(q))return be!==null?null:te(j,L,q,re,null);if(typeof q.then=="function")return G(j,L,Xu(q),re);if(q.$$typeof===S)return G(j,L,cs(j,q),re);Qu(j,q)}return null}function J(j,L,q,re,be){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return j=j.get(q)||null,C(L,j,""+re,be);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case f:return j=j.get(re.key===null?q:re.key)||null,D(L,j,re,be);case d:return j=j.get(re.key===null?q:re.key)||null,U(L,j,re,be);case B:var je=re._init;return re=je(re._payload),J(j,L,q,re,be)}if(O(re)||_(re))return j=j.get(q)||null,te(L,j,re,be,null);if(typeof re.then=="function")return J(j,L,q,Xu(re),be);if(re.$$typeof===S)return J(j,L,q,cs(L,re),be);Qu(L,re)}return null}function Se(j,L,q,re){for(var be=null,je=null,ve=L,Te=L=0,Vt=null;ve!==null&&Te<q.length;Te++){ve.index>Te?(Vt=ve,ve=null):Vt=ve.sibling;var Qe=G(j,ve,q[Te],re);if(Qe===null){ve===null&&(ve=Vt);break}t&&ve&&Qe.alternate===null&&n(j,ve),L=p(Qe,L,Te),je===null?be=Qe:je.sibling=Qe,je=Qe,ve=Vt}if(Te===q.length)return i(j,ve),Xe&&Ti(j,Te),be;if(ve===null){for(;Te<q.length;Te++)ve=ae(j,q[Te],re),ve!==null&&(L=p(ve,L,Te),je===null?be=ve:je.sibling=ve,je=ve);return Xe&&Ti(j,Te),be}for(ve=o(ve);Te<q.length;Te++)Vt=J(ve,j,Te,q[Te],re),Vt!==null&&(t&&Vt.alternate!==null&&ve.delete(Vt.key===null?Te:Vt.key),L=p(Vt,L,Te),je===null?be=Vt:je.sibling=Vt,je=Vt);return t&&ve.forEach(function(ui){return n(j,ui)}),Xe&&Ti(j,Te),be}function Re(j,L,q,re){if(q==null)throw Error(a(151));for(var be=null,je=null,ve=L,Te=L=0,Vt=null,Qe=q.next();ve!==null&&!Qe.done;Te++,Qe=q.next()){ve.index>Te?(Vt=ve,ve=null):Vt=ve.sibling;var ui=G(j,ve,Qe.value,re);if(ui===null){ve===null&&(ve=Vt);break}t&&ve&&ui.alternate===null&&n(j,ve),L=p(ui,L,Te),je===null?be=ui:je.sibling=ui,je=ui,ve=Vt}if(Qe.done)return i(j,ve),Xe&&Ti(j,Te),be;if(ve===null){for(;!Qe.done;Te++,Qe=q.next())Qe=ae(j,Qe.value,re),Qe!==null&&(L=p(Qe,L,Te),je===null?be=Qe:je.sibling=Qe,je=Qe);return Xe&&Ti(j,Te),be}for(ve=o(ve);!Qe.done;Te++,Qe=q.next())Qe=J(ve,j,Te,Qe.value,re),Qe!==null&&(t&&Qe.alternate!==null&&ve.delete(Qe.key===null?Te:Qe.key),L=p(Qe,L,Te),je===null?be=Qe:je.sibling=Qe,je=Qe);return t&&ve.forEach(function(PO){return n(j,PO)}),Xe&&Ti(j,Te),be}function Et(j,L,q,re){if(typeof q=="object"&&q!==null&&q.type===m&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case f:e:{for(var be=q.key;L!==null;){if(L.key===be){if(be=q.type,be===m){if(L.tag===7){i(j,L.sibling),re=c(L,q.props.children),re.return=j,j=re;break e}}else if(L.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===B&&n1(be)===L.type){i(j,L.sibling),re=c(L,q.props),to(re,q),re.return=j,j=re;break e}i(j,L);break}else n(j,L);L=L.sibling}q.type===m?(re=Bi(q.props.children,j.mode,re,q.key),re.return=j,j=re):(re=ps(q.type,q.key,q.props,null,j.mode,re),to(re,q),re.return=j,j=re)}return b(j);case d:e:{for(be=q.key;L!==null;){if(L.key===be)if(L.tag===4&&L.stateNode.containerInfo===q.containerInfo&&L.stateNode.implementation===q.implementation){i(j,L.sibling),re=c(L,q.children||[]),re.return=j,j=re;break e}else{i(j,L);break}else n(j,L);L=L.sibling}re=Jd(q,j.mode,re),re.return=j,j=re}return b(j);case B:return be=q._init,q=be(q._payload),Et(j,L,q,re)}if(O(q))return Se(j,L,q,re);if(_(q)){if(be=_(q),typeof be!="function")throw Error(a(150));return q=be.call(q),Re(j,L,q,re)}if(typeof q.then=="function")return Et(j,L,Xu(q),re);if(q.$$typeof===S)return Et(j,L,cs(j,q),re);Qu(j,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,L!==null&&L.tag===6?(i(j,L.sibling),re=c(L,q),re.return=j,j=re):(i(j,L),re=Wd(q,j.mode,re),re.return=j,j=re),b(j)):i(j,L)}return function(j,L,q,re){try{eo=0;var be=Et(j,L,q,re);return xl=null,be}catch(ve){if(ve===Wa)throw ve;var je=jn(29,ve,null,j.mode);return je.lanes=re,je.return=j,je}finally{}}}var Ai=r1(!0),i1=r1(!1),El=Ce(null),Ku=Ce(0);function l1(t,n){t=_r,pe(Ku,t),pe(El,n),_r=t|n.baseLanes}function ld(){pe(Ku,_r),pe(El,El.current)}function ad(){_r=Ku.current,ke(El),ke(Ku)}var Bn=Ce(null),ur=null;function Gr(t){var n=t.alternate;pe(Bt,Bt.current&1),pe(Bn,t),ur===null&&(n===null||El.current!==null||n.memoizedState!==null)&&(ur=t)}function a1(t){if(t.tag===22){if(pe(Bt,Bt.current),pe(Bn,t),ur===null){var n=t.alternate;n!==null&&n.memoizedState!==null&&(ur=t)}}else Yr()}function Yr(){pe(Bt,Bt.current),pe(Bn,Bn.current)}function xr(t){ke(Bn),ur===t&&(ur=null),ke(Bt)}var Bt=Ce(0);function Zu(t){for(var n=t;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var N3=typeof AbortController<"u"?AbortController:function(){var t=[],n=this.signal={aborted:!1,addEventListener:function(i,o){t.push(o)}};this.abort=function(){n.aborted=!0,t.forEach(function(i){return i()})}},B3=e.unstable_scheduleCallback,L3=e.unstable_NormalPriority,Lt={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function od(){return{controller:new N3,data:new Map,refCount:0}}function no(t){t.refCount--,t.refCount===0&&B3(L3,function(){t.controller.abort()})}var ro=null,ud=0,Cl=0,Tl=null;function U3(t,n){if(ro===null){var i=ro=[];ud=0,Cl=hp(),Tl={status:"pending",value:void 0,then:function(o){i.push(o)}}}return ud++,n.then(o1,o1),n}function o1(){if(--ud===0&&ro!==null){Tl!==null&&(Tl.status="fulfilled");var t=ro;ro=null,Cl=0,Tl=null;for(var n=0;n<t.length;n++)(0,t[n])()}}function j3(t,n){var i=[],o={status:"pending",value:null,reason:null,then:function(c){i.push(c)}};return t.then(function(){o.status="fulfilled",o.value=n;for(var c=0;c<i.length;c++)(0,i[c])(n)},function(c){for(o.status="rejected",o.reason=c,c=0;c<i.length;c++)(0,i[c])(void 0)}),o}var u1=V.S;V.S=function(t,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&U3(t,n),u1!==null&&u1(t,n)};var ki=Ce(null);function sd(){var t=ki.current;return t!==null?t:st.pooledCache}function Wu(t,n){n===null?pe(ki,ki.current):pe(ki,n.pool)}function s1(){var t=sd();return t===null?null:{parent:Lt._currentValue,pool:t}}var Fr=0,Ne=null,tt=null,Mt=null,Ju=!1,wl=!1,Ri=!1,es=0,io=0,Al=null,H3=0;function Tt(){throw Error(a(321))}function cd(t,n){if(n===null)return!1;for(var i=0;i<n.length&&i<t.length;i++)if(!yn(t[i],n[i]))return!1;return!0}function fd(t,n,i,o,c,p){return Fr=p,Ne=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,V.H=t===null||t.memoizedState===null?Oi:Pr,Ri=!1,p=i(o,c),Ri=!1,wl&&(p=f1(n,i,o,c)),c1(t),p}function c1(t){V.H=sr;var n=tt!==null&&tt.next!==null;if(Fr=0,Mt=tt=Ne=null,Ju=!1,io=0,Al=null,n)throw Error(a(300));t===null||Ht||(t=t.dependencies,t!==null&&ss(t)&&(Ht=!0))}function f1(t,n,i,o){Ne=t;var c=0;do{if(wl&&(Al=null),io=0,wl=!1,25<=c)throw Error(a(301));if(c+=1,Mt=tt=null,t.updateQueue!=null){var p=t.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}V.H=Mi,p=n(i,o)}while(wl);return p}function I3(){var t=V.H,n=t.useState()[0];return n=typeof n.then=="function"?lo(n):n,t=t.useState()[0],(tt!==null?tt.memoizedState:null)!==t&&(Ne.flags|=1024),n}function dd(){var t=es!==0;return es=0,t}function pd(t,n,i){n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~i}function hd(t){if(Ju){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}Ju=!1}Fr=0,Mt=tt=Ne=null,wl=!1,io=es=0,Al=null}function cn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mt===null?Ne.memoizedState=Mt=t:Mt=Mt.next=t,Mt}function _t(){if(tt===null){var t=Ne.alternate;t=t!==null?t.memoizedState:null}else t=tt.next;var n=Mt===null?Ne.memoizedState:Mt.next;if(n!==null)Mt=n,tt=t;else{if(t===null)throw Ne.alternate===null?Error(a(467)):Error(a(310));tt=t,t={memoizedState:tt.memoizedState,baseState:tt.baseState,baseQueue:tt.baseQueue,queue:tt.queue,next:null},Mt===null?Ne.memoizedState=Mt=t:Mt=Mt.next=t}return Mt}var ts;ts=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function lo(t){var n=io;return io+=1,Al===null&&(Al=[]),t=e1(Al,t,n),n=Ne,(Mt===null?n.memoizedState:Mt.next)===null&&(n=n.alternate,V.H=n===null||n.memoizedState===null?Oi:Pr),t}function ns(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return lo(t);if(t.$$typeof===S)return Zt(t)}throw Error(a(438,String(t)))}function md(t){var n=null,i=Ne.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var o=Ne.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(n={data:o.data.map(function(c){return c.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=ts(),Ne.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(t),o=0;o<t;o++)i[o]=z;return n.index++,i}function Er(t,n){return typeof n=="function"?n(t):n}function rs(t){var n=_t();return gd(n,tt,t)}function gd(t,n,i){var o=t.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=i;var c=t.baseQueue,p=o.pending;if(p!==null){if(c!==null){var b=c.next;c.next=p.next,p.next=b}n.baseQueue=c=p,o.pending=null}if(p=t.baseState,c===null)t.memoizedState=p;else{n=c.next;var C=b=null,D=null,U=n,te=!1;do{var ae=U.lane&-536870913;if(ae!==U.lane?(Ye&ae)===ae:(Fr&ae)===ae){var G=U.revertLane;if(G===0)D!==null&&(D=D.next={lane:0,revertLane:0,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),ae===Cl&&(te=!0);else if((Fr&G)===G){U=U.next,G===Cl&&(te=!0);continue}else ae={lane:0,revertLane:U.revertLane,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},D===null?(C=D=ae,b=p):D=D.next=ae,Ne.lanes|=G,ni|=G;ae=U.action,Ri&&i(p,ae),p=U.hasEagerState?U.eagerState:i(p,ae)}else G={lane:ae,revertLane:U.revertLane,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},D===null?(C=D=G,b=p):D=D.next=G,Ne.lanes|=ae,ni|=ae;U=U.next}while(U!==null&&U!==n);if(D===null?b=p:D.next=C,!yn(p,t.memoizedState)&&(Ht=!0,te&&(i=Tl,i!==null)))throw i;t.memoizedState=p,t.baseState=b,t.baseQueue=D,o.lastRenderedState=p}return c===null&&(o.lanes=0),[t.memoizedState,o.dispatch]}function yd(t){var n=_t(),i=n.queue;if(i===null)throw Error(a(311));i.lastRenderedReducer=t;var o=i.dispatch,c=i.pending,p=n.memoizedState;if(c!==null){i.pending=null;var b=c=c.next;do p=t(p,b.action),b=b.next;while(b!==c);yn(p,n.memoizedState)||(Ht=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),i.lastRenderedState=p}return[p,o]}function d1(t,n,i){var o=Ne,c=_t(),p=Xe;if(p){if(i===void 0)throw Error(a(407));i=i()}else i=n();var b=!yn((tt||c).memoizedState,i);if(b&&(c.memoizedState=i,Ht=!0),c=c.queue,vd(m1.bind(null,o,c,t),[t]),c.getSnapshot!==n||b||Mt!==null&&Mt.memoizedState.tag&1){if(o.flags|=2048,kl(9,h1.bind(null,o,c,i,n),{destroy:void 0},null),st===null)throw Error(a(349));p||Fr&60||p1(o,n,i)}return i}function p1(t,n,i){t.flags|=16384,t={getSnapshot:n,value:i},n=Ne.updateQueue,n===null?(n=ts(),Ne.updateQueue=n,n.stores=[t]):(i=n.stores,i===null?n.stores=[t]:i.push(t))}function h1(t,n,i,o){n.value=i,n.getSnapshot=o,g1(n)&&y1(t)}function m1(t,n,i){return i(function(){g1(n)&&y1(t)})}function g1(t){var n=t.getSnapshot;t=t.value;try{var i=n();return!yn(t,i)}catch{return!0}}function y1(t){var n=$r(t,2);n!==null&&en(n,t,2)}function bd(t){var n=cn();if(typeof t=="function"){var i=t;if(t=i(),Ri){St(!0);try{i()}finally{St(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Er,lastRenderedState:t},n}function b1(t,n,i,o){return t.baseState=i,gd(t,tt,typeof o=="function"?o:Er)}function V3(t,n,i,o,c){if(as(t))throw Error(a(485));if(t=n.action,t!==null){var p={payload:c,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){p.listeners.push(b)}};V.T!==null?i(!0):p.isTransition=!1,o(p),i=n.pending,i===null?(p.next=n.pending=p,S1(n,p)):(p.next=i.next,n.pending=i.next=p)}}function S1(t,n){var i=n.action,o=n.payload,c=t.state;if(n.isTransition){var p=V.T,b={};V.T=b;try{var C=i(c,o),D=V.S;D!==null&&D(b,C),v1(t,n,C)}catch(U){Sd(t,n,U)}finally{V.T=p}}else try{p=i(c,o),v1(t,n,p)}catch(U){Sd(t,n,U)}}function v1(t,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(o){x1(t,n,o)},function(o){return Sd(t,n,o)}):x1(t,n,i)}function x1(t,n,i){n.status="fulfilled",n.value=i,E1(n),t.state=i,n=t.pending,n!==null&&(i=n.next,i===n?t.pending=null:(i=i.next,n.next=i,S1(t,i)))}function Sd(t,n,i){var o=t.pending;if(t.pending=null,o!==null){o=o.next;do n.status="rejected",n.reason=i,E1(n),n=n.next;while(n!==o)}t.action=null}function E1(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}function C1(t,n){return n}function T1(t,n){if(Xe){var i=st.formState;if(i!==null){e:{var o=Ne;if(Xe){if($t){t:{for(var c=$t,p=or;c.nodeType!==8;){if(!p){c=null;break t}if(c=Kn(c.nextSibling),c===null){c=null;break t}}p=c.data,c=p==="F!"||p==="F"?c:null}if(c){$t=Kn(c.nextSibling),o=c.data==="F!";break e}}wi(o)}o=!1}o&&(n=i[0])}}return i=cn(),i.memoizedState=i.baseState=n,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:C1,lastRenderedState:n},i.queue=o,i=q1.bind(null,Ne,o),o.dispatch=i,o=bd(!1),p=wd.bind(null,Ne,!1,o.queue),o=cn(),c={state:n,dispatch:null,action:t,pending:null},o.queue=c,i=V3.bind(null,Ne,c,p,i),c.dispatch=i,o.memoizedState=t,[n,i,!1]}function w1(t){var n=_t();return A1(n,tt,t)}function A1(t,n,i){n=gd(t,n,C1)[0],t=rs(Er)[0],n=typeof n=="object"&&n!==null&&typeof n.then=="function"?lo(n):n;var o=_t(),c=o.queue,p=c.dispatch;return i!==o.memoizedState&&(Ne.flags|=2048,kl(9,q3.bind(null,c,i),{destroy:void 0},null)),[n,p,t]}function q3(t,n){t.action=n}function k1(t){var n=_t(),i=tt;if(i!==null)return A1(n,i,t);_t(),n=n.memoizedState,i=_t();var o=i.queue.dispatch;return i.memoizedState=t,[n,o,!1]}function kl(t,n,i,o){return t={tag:t,create:n,inst:i,deps:o,next:null},n=Ne.updateQueue,n===null&&(n=ts(),Ne.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=t.next=t:(o=i.next,i.next=t,t.next=o,n.lastEffect=t),t}function R1(){return _t().memoizedState}function is(t,n,i,o){var c=cn();Ne.flags|=t,c.memoizedState=kl(1|n,i,{destroy:void 0},o===void 0?null:o)}function ls(t,n,i,o){var c=_t();o=o===void 0?null:o;var p=c.memoizedState.inst;tt!==null&&o!==null&&cd(o,tt.memoizedState.deps)?c.memoizedState=kl(n,i,p,o):(Ne.flags|=t,c.memoizedState=kl(1|n,i,p,o))}function O1(t,n){is(8390656,8,t,n)}function vd(t,n){ls(2048,8,t,n)}function M1(t,n){return ls(4,2,t,n)}function _1(t,n){return ls(4,4,t,n)}function D1(t,n){if(typeof n=="function"){t=t();var i=n(t);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function z1(t,n,i){i=i!=null?i.concat([t]):null,ls(4,4,D1.bind(null,n,t),i)}function xd(){}function N1(t,n){var i=_t();n=n===void 0?null:n;var o=i.memoizedState;return n!==null&&cd(n,o[1])?o[0]:(i.memoizedState=[t,n],t)}function B1(t,n){var i=_t();n=n===void 0?null:n;var o=i.memoizedState;if(n!==null&&cd(n,o[1]))return o[0];if(o=t(),Ri){St(!0);try{t()}finally{St(!1)}}return i.memoizedState=[o,n],o}function Ed(t,n,i){return i===void 0||Fr&1073741824?t.memoizedState=n:(t.memoizedState=i,t=Ub(),Ne.lanes|=t,ni|=t,i)}function L1(t,n,i,o){return yn(i,n)?i:El.current!==null?(t=Ed(t,i,o),yn(t,n)||(Ht=!0),t):Fr&42?(t=Ub(),Ne.lanes|=t,ni|=t,n):(Ht=!0,t.memoizedState=i)}function U1(t,n,i,o,c){var p=ie.p;ie.p=p!==0&&8>p?p:8;var b=V.T,C={};V.T=C,wd(t,!1,n,i);try{var D=c(),U=V.S;if(U!==null&&U(C,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var te=j3(D,o);ao(t,n,te,xn(t))}else ao(t,n,o,xn(t))}catch(ae){ao(t,n,{then:function(){},status:"rejected",reason:ae},xn())}finally{ie.p=p,V.T=b}}function $3(){}function Cd(t,n,i,o){if(t.tag!==5)throw Error(a(476));var c=j1(t).queue;U1(t,c,n,ye,i===null?$3:function(){return H1(t),i(o)})}function j1(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:ye,baseState:ye,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Er,lastRenderedState:ye},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Er,lastRenderedState:i},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function H1(t){var n=j1(t).next.queue;ao(t,n,{},xn())}function Td(){return Zt(ko)}function I1(){return _t().memoizedState}function V1(){return _t().memoizedState}function G3(t){for(var n=t.return;n!==null;){switch(n.tag){case 24:case 3:var i=xn();t=Kr(i);var o=Zr(n,t,i);o!==null&&(en(o,n,i),so(o,n,i)),n={cache:od()},t.payload=n;return}n=n.return}}function Y3(t,n,i){var o=xn();i={lane:o,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},as(t)?$1(n,i):(i=ed(t,n,i,o),i!==null&&(en(i,t,o),G1(i,n,o)))}function q1(t,n,i){var o=xn();ao(t,n,i,o)}function ao(t,n,i,o){var c={lane:o,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(as(t))$1(n,c);else{var p=t.alternate;if(t.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var b=n.lastRenderedState,C=p(b,i);if(c.hasEagerState=!0,c.eagerState=C,yn(C,b))return $u(t,n,c,0),st===null&&qu(),!1}catch{}finally{}if(i=ed(t,n,c,o),i!==null)return en(i,t,o),G1(i,n,o),!0}return!1}function wd(t,n,i,o){if(o={lane:2,revertLane:hp(),action:o,hasEagerState:!1,eagerState:null,next:null},as(t)){if(n)throw Error(a(479))}else n=ed(t,i,o,2),n!==null&&en(n,t,2)}function as(t){var n=t.alternate;return t===Ne||n!==null&&n===Ne}function $1(t,n){wl=Ju=!0;var i=t.pending;i===null?n.next=n:(n.next=i.next,i.next=n),t.pending=n}function G1(t,n,i){if(i&4194176){var o=n.lanes;o&=t.pendingLanes,i|=o,n.lanes=i,t0(t,i)}}var sr={readContext:Zt,use:ns,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useLayoutEffect:Tt,useInsertionEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useSyncExternalStore:Tt,useId:Tt};sr.useCacheRefresh=Tt,sr.useMemoCache=Tt,sr.useHostTransitionStatus=Tt,sr.useFormState=Tt,sr.useActionState=Tt,sr.useOptimistic=Tt;var Oi={readContext:Zt,use:ns,useCallback:function(t,n){return cn().memoizedState=[t,n===void 0?null:n],t},useContext:Zt,useEffect:O1,useImperativeHandle:function(t,n,i){i=i!=null?i.concat([t]):null,is(4194308,4,D1.bind(null,n,t),i)},useLayoutEffect:function(t,n){return is(4194308,4,t,n)},useInsertionEffect:function(t,n){is(4,2,t,n)},useMemo:function(t,n){var i=cn();n=n===void 0?null:n;var o=t();if(Ri){St(!0);try{t()}finally{St(!1)}}return i.memoizedState=[o,n],o},useReducer:function(t,n,i){var o=cn();if(i!==void 0){var c=i(n);if(Ri){St(!0);try{i(n)}finally{St(!1)}}}else c=n;return o.memoizedState=o.baseState=c,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:c},o.queue=t,t=t.dispatch=Y3.bind(null,Ne,t),[o.memoizedState,t]},useRef:function(t){var n=cn();return t={current:t},n.memoizedState=t},useState:function(t){t=bd(t);var n=t.queue,i=q1.bind(null,Ne,n);return n.dispatch=i,[t.memoizedState,i]},useDebugValue:xd,useDeferredValue:function(t,n){var i=cn();return Ed(i,t,n)},useTransition:function(){var t=bd(!1);return t=U1.bind(null,Ne,t.queue,!0,!1),cn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,n,i){var o=Ne,c=cn();if(Xe){if(i===void 0)throw Error(a(407));i=i()}else{if(i=n(),st===null)throw Error(a(349));Ye&60||p1(o,n,i)}c.memoizedState=i;var p={value:i,getSnapshot:n};return c.queue=p,O1(m1.bind(null,o,p,t),[t]),o.flags|=2048,kl(9,h1.bind(null,o,p,i,n),{destroy:void 0},null),i},useId:function(){var t=cn(),n=st.identifierPrefix;if(Xe){var i=vr,o=Sr;i=(o&~(1<<32-Ot(o)-1)).toString(32)+i,n=":"+n+"R"+i,i=es++,0<i&&(n+="H"+i.toString(32)),n+=":"}else i=H3++,n=":"+n+"r"+i.toString(32)+":";return t.memoizedState=n},useCacheRefresh:function(){return cn().memoizedState=G3.bind(null,Ne)}};Oi.useMemoCache=md,Oi.useHostTransitionStatus=Td,Oi.useFormState=T1,Oi.useActionState=T1,Oi.useOptimistic=function(t){var n=cn();n.memoizedState=n.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=wd.bind(null,Ne,!0,i),i.dispatch=n,[t,n]};var Pr={readContext:Zt,use:ns,useCallback:N1,useContext:Zt,useEffect:vd,useImperativeHandle:z1,useInsertionEffect:M1,useLayoutEffect:_1,useMemo:B1,useReducer:rs,useRef:R1,useState:function(){return rs(Er)},useDebugValue:xd,useDeferredValue:function(t,n){var i=_t();return L1(i,tt.memoizedState,t,n)},useTransition:function(){var t=rs(Er)[0],n=_t().memoizedState;return[typeof t=="boolean"?t:lo(t),n]},useSyncExternalStore:d1,useId:I1};Pr.useCacheRefresh=V1,Pr.useMemoCache=md,Pr.useHostTransitionStatus=Td,Pr.useFormState=w1,Pr.useActionState=w1,Pr.useOptimistic=function(t,n){var i=_t();return b1(i,tt,t,n)};var Mi={readContext:Zt,use:ns,useCallback:N1,useContext:Zt,useEffect:vd,useImperativeHandle:z1,useInsertionEffect:M1,useLayoutEffect:_1,useMemo:B1,useReducer:yd,useRef:R1,useState:function(){return yd(Er)},useDebugValue:xd,useDeferredValue:function(t,n){var i=_t();return tt===null?Ed(i,t,n):L1(i,tt.memoizedState,t,n)},useTransition:function(){var t=yd(Er)[0],n=_t().memoizedState;return[typeof t=="boolean"?t:lo(t),n]},useSyncExternalStore:d1,useId:I1};Mi.useCacheRefresh=V1,Mi.useMemoCache=md,Mi.useHostTransitionStatus=Td,Mi.useFormState=k1,Mi.useActionState=k1,Mi.useOptimistic=function(t,n){var i=_t();return tt!==null?b1(i,tt,t,n):(i.baseState=t,[t,i.queue.dispatch])};function Ad(t,n,i,o){n=t.memoizedState,i=i(o,n),i=i==null?n:E({},n,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var kd={isMounted:function(t){return(t=t._reactInternals)?Q(t)===t:!1},enqueueSetState:function(t,n,i){t=t._reactInternals;var o=xn(),c=Kr(o);c.payload=n,i!=null&&(c.callback=i),n=Zr(t,c,o),n!==null&&(en(n,t,o),so(n,t,o))},enqueueReplaceState:function(t,n,i){t=t._reactInternals;var o=xn(),c=Kr(o);c.tag=1,c.payload=n,i!=null&&(c.callback=i),n=Zr(t,c,o),n!==null&&(en(n,t,o),so(n,t,o))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var i=xn(),o=Kr(i);o.tag=2,n!=null&&(o.callback=n),n=Zr(t,o,i),n!==null&&(en(n,t,i),so(n,t,i))}};function Y1(t,n,i,o,c,p,b){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(o,p,b):n.prototype&&n.prototype.isPureReactComponent?!Pa(i,o)||!Pa(c,p):!0}function F1(t,n,i,o){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,o),n.state!==t&&kd.enqueueReplaceState(n,n.state,null)}function _i(t,n){var i=n;if("ref"in n){i={};for(var o in n)o!=="ref"&&(i[o]=n[o])}if(t=t.defaultProps){i===n&&(i=E({},i));for(var c in t)i[c]===void 0&&(i[c]=t[c])}return i}var os=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function P1(t){os(t)}function X1(t){console.error(t)}function Q1(t){os(t)}function us(t,n){try{var i=t.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function K1(t,n,i){try{var o=t.onCaughtError;o(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Rd(t,n,i){return i=Kr(i),i.tag=3,i.payload={element:null},i.callback=function(){us(t,n)},i}function Z1(t){return t=Kr(t),t.tag=3,t}function W1(t,n,i,o){var c=i.type.getDerivedStateFromError;if(typeof c=="function"){var p=o.value;t.payload=function(){return c(p)},t.callback=function(){K1(n,i,o)}}var b=i.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(t.callback=function(){K1(n,i,o),typeof c!="function"&&(ri===null?ri=new Set([this]):ri.add(this));var C=o.stack;this.componentDidCatch(o.value,{componentStack:C!==null?C:""})})}function F3(t,n,i,o,c){if(i.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=i.alternate,n!==null&&uo(n,i,c,!0),i=Bn.current,i!==null){switch(i.tag){case 13:return ur===null?sp():i.alternate===null&&xt===0&&(xt=3),i.flags&=-257,i.flags|=65536,i.lanes=c,o===id?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([o]):n.add(o),fp(t,o,c)),!1;case 22:return i.flags|=65536,o===id?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([o]):i.add(o)),fp(t,o,c)),!1}throw Error(a(435,i.tag))}return fp(t,o,c),sp(),!1}if(Xe)return n=Bn.current,n!==null?(!(n.flags&65536)&&(n.flags|=256),n.flags|=65536,n.lanes=c,o!==rd&&(t=Error(a(422),{cause:o}),Za(Dn(t,i)))):(o!==rd&&(n=Error(a(423),{cause:o}),Za(Dn(n,i))),t=t.current.alternate,t.flags|=65536,c&=-c,t.lanes|=c,o=Dn(o,i),c=Rd(t.stateNode,o,c),$d(t,c),xt!==4&&(xt=2)),!1;var p=Error(a(520),{cause:o});if(p=Dn(p,i),bo===null?bo=[p]:bo.push(p),xt!==4&&(xt=2),n===null)return!0;o=Dn(o,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,t=c&-c,i.lanes|=t,t=Rd(i.stateNode,o,t),$d(i,t),!1;case 1:if(n=i.type,p=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(ri===null||!ri.has(p))))return i.flags|=65536,c&=-c,i.lanes|=c,c=Z1(c),W1(c,t,i,o),$d(i,c),!1}i=i.return}while(i!==null);return!1}var J1=Error(a(461)),Ht=!1;function Gt(t,n,i,o){n.child=t===null?i1(n,null,i,o):Ai(n,t.child,i,o)}function eb(t,n,i,o,c){i=i.render;var p=n.ref;if("ref"in o){var b={};for(var C in o)C!=="ref"&&(b[C]=o[C])}else b=o;return zi(n),o=fd(t,n,i,b,p,c),C=dd(),t!==null&&!Ht?(pd(t,n,c),Cr(t,n,c)):(Xe&&C&&td(n),n.flags|=1,Gt(t,n,o,c),n.child)}function tb(t,n,i,o,c){if(t===null){var p=i.type;return typeof p=="function"&&!Zd(p)&&p.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=p,nb(t,n,p,o,c)):(t=ps(i.type,null,o,n,n.mode,c),t.ref=n.ref,t.return=n,n.child=t)}if(p=t.child,!Ud(t,c)){var b=p.memoizedProps;if(i=i.compare,i=i!==null?i:Pa,i(b,o)&&t.ref===n.ref)return Cr(t,n,c)}return n.flags|=1,t=ti(p,o),t.ref=n.ref,t.return=n,n.child=t}function nb(t,n,i,o,c){if(t!==null){var p=t.memoizedProps;if(Pa(p,o)&&t.ref===n.ref)if(Ht=!1,n.pendingProps=o=p,Ud(t,c))t.flags&131072&&(Ht=!0);else return n.lanes=t.lanes,Cr(t,n,c)}return Od(t,n,i,o,c)}function rb(t,n,i){var o=n.pendingProps,c=o.children,p=(n.stateNode._pendingVisibility&2)!==0,b=t!==null?t.memoizedState:null;if(oo(t,n),o.mode==="hidden"||p){if(n.flags&128){if(o=b!==null?b.baseLanes|i:i,t!==null){for(c=n.child=t.child,p=0;c!==null;)p=p|c.lanes|c.childLanes,c=c.sibling;n.childLanes=p&~o}else n.childLanes=0,n.child=null;return ib(t,n,o,i)}if(i&536870912)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&Wu(n,b!==null?b.cachePool:null),b!==null?l1(n,b):ld(),a1(n);else return n.lanes=n.childLanes=536870912,ib(t,n,b!==null?b.baseLanes|i:i,i)}else b!==null?(Wu(n,b.cachePool),l1(n,b),Yr(),n.memoizedState=null):(t!==null&&Wu(n,null),ld(),Yr());return Gt(t,n,c,i),n.child}function ib(t,n,i,o){var c=sd();return c=c===null?null:{parent:Lt._currentValue,pool:c},n.memoizedState={baseLanes:i,cachePool:c},t!==null&&Wu(n,null),ld(),a1(n),t!==null&&uo(t,n,o,!0),null}function oo(t,n){var i=n.ref;if(i===null)t!==null&&t.ref!==null&&(n.flags|=2097664);else{if(typeof i!="function"&&typeof i!="object")throw Error(a(284));(t===null||t.ref!==i)&&(n.flags|=2097664)}}function Od(t,n,i,o,c){return zi(n),i=fd(t,n,i,o,void 0,c),o=dd(),t!==null&&!Ht?(pd(t,n,c),Cr(t,n,c)):(Xe&&o&&td(n),n.flags|=1,Gt(t,n,i,c),n.child)}function lb(t,n,i,o,c,p){return zi(n),n.updateQueue=null,i=f1(n,o,i,c),c1(t),o=dd(),t!==null&&!Ht?(pd(t,n,p),Cr(t,n,p)):(Xe&&o&&td(n),n.flags|=1,Gt(t,n,i,p),n.child)}function ab(t,n,i,o,c){if(zi(n),n.stateNode===null){var p=bl,b=i.contextType;typeof b=="object"&&b!==null&&(p=Zt(b)),p=new i(o,p),n.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=kd,n.stateNode=p,p._reactInternals=n,p=n.stateNode,p.props=o,p.state=n.memoizedState,p.refs={},Vd(n),b=i.contextType,p.context=typeof b=="object"&&b!==null?Zt(b):bl,p.state=n.memoizedState,b=i.getDerivedStateFromProps,typeof b=="function"&&(Ad(n,i,b,o),p.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(b=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),b!==p.state&&kd.enqueueReplaceState(p,p.state,null),fo(n,o,p,c),co(),p.state=n.memoizedState),typeof p.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(t===null){p=n.stateNode;var C=n.memoizedProps,D=_i(i,C);p.props=D;var U=p.context,te=i.contextType;b=bl,typeof te=="object"&&te!==null&&(b=Zt(te));var ae=i.getDerivedStateFromProps;te=typeof ae=="function"||typeof p.getSnapshotBeforeUpdate=="function",C=n.pendingProps!==C,te||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(C||U!==b)&&F1(n,p,o,b),Qr=!1;var G=n.memoizedState;p.state=G,fo(n,o,p,c),co(),U=n.memoizedState,C||G!==U||Qr?(typeof ae=="function"&&(Ad(n,i,ae,o),U=n.memoizedState),(D=Qr||Y1(n,i,D,o,G,U,b))?(te||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(n.flags|=4194308)):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=U),p.props=o,p.state=U,p.context=b,o=D):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{p=n.stateNode,qd(t,n),b=n.memoizedProps,te=_i(i,b),p.props=te,ae=n.pendingProps,G=p.context,U=i.contextType,D=bl,typeof U=="object"&&U!==null&&(D=Zt(U)),C=i.getDerivedStateFromProps,(U=typeof C=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(b!==ae||G!==D)&&F1(n,p,o,D),Qr=!1,G=n.memoizedState,p.state=G,fo(n,o,p,c),co();var J=n.memoizedState;b!==ae||G!==J||Qr||t!==null&&t.dependencies!==null&&ss(t.dependencies)?(typeof C=="function"&&(Ad(n,i,C,o),J=n.memoizedState),(te=Qr||Y1(n,i,te,o,G,J,D)||t!==null&&t.dependencies!==null&&ss(t.dependencies))?(U||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(o,J,D),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(o,J,D)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||b===t.memoizedProps&&G===t.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||b===t.memoizedProps&&G===t.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=J),p.props=o,p.state=J,p.context=D,o=te):(typeof p.componentDidUpdate!="function"||b===t.memoizedProps&&G===t.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||b===t.memoizedProps&&G===t.memoizedState||(n.flags|=1024),o=!1)}return p=o,oo(t,n),o=(n.flags&128)!==0,p||o?(p=n.stateNode,i=o&&typeof i.getDerivedStateFromError!="function"?null:p.render(),n.flags|=1,t!==null&&o?(n.child=Ai(n,t.child,null,c),n.child=Ai(n,null,i,c)):Gt(t,n,i,c),n.memoizedState=p.state,t=n.child):t=Cr(t,n,c),t}function ob(t,n,i,o){return Ka(),n.flags|=256,Gt(t,n,i,o),n.child}var Md={dehydrated:null,treeContext:null,retryLane:0};function _d(t){return{baseLanes:t,cachePool:s1()}}function Dd(t,n,i){return t=t!==null?t.childLanes&~i:0,n&&(t|=Hn),t}function ub(t,n,i){var o=n.pendingProps,c=!1,p=(n.flags&128)!==0,b;if((b=p)||(b=t!==null&&t.memoizedState===null?!1:(Bt.current&2)!==0),b&&(c=!0,n.flags&=-129),b=(n.flags&32)!==0,n.flags&=-33,t===null){if(Xe){if(c?Gr(n):Yr(),Xe){var C=$t,D;if(D=C){e:{for(D=C,C=or;D.nodeType!==8;){if(!C){C=null;break e}if(D=Kn(D.nextSibling),D===null){C=null;break e}}C=D}C!==null?(n.memoizedState={dehydrated:C,treeContext:Ci!==null?{id:Sr,overflow:vr}:null,retryLane:536870912},D=jn(18,null,null,0),D.stateNode=C,D.return=n,n.child=D,Jt=n,$t=null,D=!0):D=!1}D||wi(n)}if(C=n.memoizedState,C!==null&&(C=C.dehydrated,C!==null))return C.data==="$!"?n.lanes=16:n.lanes=536870912,null;xr(n)}return C=o.children,o=o.fallback,c?(Yr(),c=n.mode,C=Nd({mode:"hidden",children:C},c),o=Bi(o,c,i,null),C.return=n,o.return=n,C.sibling=o,n.child=C,c=n.child,c.memoizedState=_d(i),c.childLanes=Dd(t,b,i),n.memoizedState=Md,o):(Gr(n),zd(n,C))}if(D=t.memoizedState,D!==null&&(C=D.dehydrated,C!==null)){if(p)n.flags&256?(Gr(n),n.flags&=-257,n=Bd(t,n,i)):n.memoizedState!==null?(Yr(),n.child=t.child,n.flags|=128,n=null):(Yr(),c=o.fallback,C=n.mode,o=Nd({mode:"visible",children:o.children},C),c=Bi(c,C,i,null),c.flags|=2,o.return=n,c.return=n,o.sibling=c,n.child=o,Ai(n,t.child,null,i),o=n.child,o.memoizedState=_d(i),o.childLanes=Dd(t,b,i),n.memoizedState=Md,n=c);else if(Gr(n),C.data==="$!"){if(b=C.nextSibling&&C.nextSibling.dataset,b)var U=b.dgst;b=U,o=Error(a(419)),o.stack="",o.digest=b,Za({value:o,source:null,stack:null}),n=Bd(t,n,i)}else if(Ht||uo(t,n,i,!1),b=(i&t.childLanes)!==0,Ht||b){if(b=st,b!==null){if(o=i&-i,o&42)o=1;else switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:o=64;break;case 268435456:o=134217728;break;default:o=0}if(o=o&(b.suspendedLanes|i)?0:o,o!==0&&o!==D.retryLane)throw D.retryLane=o,$r(t,o),en(b,t,o),J1}C.data==="$?"||sp(),n=Bd(t,n,i)}else C.data==="$?"?(n.flags|=128,n.child=t.child,n=oO.bind(null,t),C._reactRetry=n,n=null):(t=D.treeContext,$t=Kn(C.nextSibling),Jt=n,Xe=!0,Xn=null,or=!1,t!==null&&(zn[Nn++]=Sr,zn[Nn++]=vr,zn[Nn++]=Ci,Sr=t.id,vr=t.overflow,Ci=n),n=zd(n,o.children),n.flags|=4096);return n}return c?(Yr(),c=o.fallback,C=n.mode,D=t.child,U=D.sibling,o=ti(D,{mode:"hidden",children:o.children}),o.subtreeFlags=D.subtreeFlags&31457280,U!==null?c=ti(U,c):(c=Bi(c,C,i,null),c.flags|=2),c.return=n,o.return=n,o.sibling=c,n.child=o,o=c,c=n.child,C=t.child.memoizedState,C===null?C=_d(i):(D=C.cachePool,D!==null?(U=Lt._currentValue,D=D.parent!==U?{parent:U,pool:U}:D):D=s1(),C={baseLanes:C.baseLanes|i,cachePool:D}),c.memoizedState=C,c.childLanes=Dd(t,b,i),n.memoizedState=Md,o):(Gr(n),i=t.child,t=i.sibling,i=ti(i,{mode:"visible",children:o.children}),i.return=n,i.sibling=null,t!==null&&(b=n.deletions,b===null?(n.deletions=[t],n.flags|=16):b.push(t)),n.child=i,n.memoizedState=null,i)}function zd(t,n){return n=Nd({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function Nd(t,n){return Nb(t,n,0,null)}function Bd(t,n,i){return Ai(n,t.child,null,i),t=zd(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function sb(t,n,i){t.lanes|=n;var o=t.alternate;o!==null&&(o.lanes|=n),Hd(t.return,n,i)}function Ld(t,n,i,o,c){var p=t.memoizedState;p===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:c}:(p.isBackwards=n,p.rendering=null,p.renderingStartTime=0,p.last=o,p.tail=i,p.tailMode=c)}function cb(t,n,i){var o=n.pendingProps,c=o.revealOrder,p=o.tail;if(Gt(t,n,o.children,i),o=Bt.current,o&2)o=o&1|2,n.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&sb(t,i,n);else if(t.tag===19)sb(t,i,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}o&=1}switch(pe(Bt,o),c){case"forwards":for(i=n.child,c=null;i!==null;)t=i.alternate,t!==null&&Zu(t)===null&&(c=i),i=i.sibling;i=c,i===null?(c=n.child,n.child=null):(c=i.sibling,i.sibling=null),Ld(n,!1,c,i,p);break;case"backwards":for(i=null,c=n.child,n.child=null;c!==null;){if(t=c.alternate,t!==null&&Zu(t)===null){n.child=c;break}t=c.sibling,c.sibling=i,i=c,c=t}Ld(n,!0,i,null,p);break;case"together":Ld(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Cr(t,n,i){if(t!==null&&(n.dependencies=t.dependencies),ni|=n.lanes,!(i&n.childLanes))if(t!==null){if(uo(t,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error(a(153));if(n.child!==null){for(t=n.child,i=ti(t,t.pendingProps),n.child=i,i.return=n;t.sibling!==null;)t=t.sibling,i=i.sibling=ti(t,t.pendingProps),i.return=n;i.sibling=null}return n.child}function Ud(t,n){return t.lanes&n?!0:(t=t.dependencies,!!(t!==null&&ss(t)))}function P3(t,n,i){switch(n.tag){case 3:Ee(n,n.stateNode.containerInfo),Xr(n,Lt,t.memoizedState.cache),Ka();break;case 27:case 5:Le(n);break;case 4:Ee(n,n.stateNode.containerInfo);break;case 10:Xr(n,n.type,n.memoizedProps.value);break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(Gr(n),n.flags|=128,null):i&n.child.childLanes?ub(t,n,i):(Gr(n),t=Cr(t,n,i),t!==null?t.sibling:null);Gr(n);break;case 19:var c=(t.flags&128)!==0;if(o=(i&n.childLanes)!==0,o||(uo(t,n,i,!1),o=(i&n.childLanes)!==0),c){if(o)return cb(t,n,i);n.flags|=128}if(c=n.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),pe(Bt,Bt.current),o)break;return null;case 22:case 23:return n.lanes=0,rb(t,n,i);case 24:Xr(n,Lt,t.memoizedState.cache)}return Cr(t,n,i)}function fb(t,n,i){if(t!==null)if(t.memoizedProps!==n.pendingProps)Ht=!0;else{if(!Ud(t,i)&&!(n.flags&128))return Ht=!1,P3(t,n,i);Ht=!!(t.flags&131072)}else Ht=!1,Xe&&n.flags&1048576&&Q0(n,Fu,n.index);switch(n.lanes=0,n.tag){case 16:e:{t=n.pendingProps;var o=n.elementType,c=o._init;if(o=c(o._payload),n.type=o,typeof o=="function")Zd(o)?(t=_i(o,t),n.tag=1,n=ab(null,n,o,t,i)):(n.tag=0,n=Od(null,n,o,t,i));else{if(o!=null){if(c=o.$$typeof,c===R){n.tag=11,n=eb(null,n,o,t,i);break e}else if(c===w){n.tag=14,n=tb(null,n,o,t,i);break e}}throw n=ne(o)||o,Error(a(306,n,""))}}return n;case 0:return Od(t,n,n.type,n.pendingProps,i);case 1:return o=n.type,c=_i(o,n.pendingProps),ab(t,n,o,c,i);case 3:e:{if(Ee(n,n.stateNode.containerInfo),t===null)throw Error(a(387));var p=n.pendingProps;c=n.memoizedState,o=c.element,qd(t,n),fo(n,p,null,i);var b=n.memoizedState;if(p=b.cache,Xr(n,Lt,p),p!==c.cache&&Id(n,[Lt],i,!0),co(),p=b.element,c.isDehydrated)if(c={element:p,isDehydrated:!1,cache:b.cache},n.updateQueue.baseState=c,n.memoizedState=c,n.flags&256){n=ob(t,n,p,i);break e}else if(p!==o){o=Dn(Error(a(424)),n),Za(o),n=ob(t,n,p,i);break e}else for($t=Kn(n.stateNode.containerInfo.firstChild),Jt=n,Xe=!0,Xn=null,or=!0,i=i1(n,null,p,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Ka(),p===o){n=Cr(t,n,i);break e}Gt(t,n,p,i)}n=n.child}return n;case 26:return oo(t,n),t===null?(i=hS(n.type,null,n.pendingProps,null))?n.memoizedState=i:Xe||(i=n.type,t=n.pendingProps,o=ws(ge.current).createElement(i),o[Kt]=n,o[un]=t,Yt(o,i,t),jt(o),n.stateNode=o):n.memoizedState=hS(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return Le(n),t===null&&Xe&&(o=n.stateNode=fS(n.type,n.pendingProps,ge.current),Jt=n,or=!0,$t=Kn(o.firstChild)),o=n.pendingProps.children,t!==null||Xe?Gt(t,n,o,i):n.child=Ai(n,null,o,i),oo(t,n),n.child;case 5:return t===null&&Xe&&((c=o=$t)&&(o=CO(o,n.type,n.pendingProps,or),o!==null?(n.stateNode=o,Jt=n,$t=Kn(o.firstChild),or=!1,c=!0):c=!1),c||wi(n)),Le(n),c=n.type,p=n.pendingProps,b=t!==null?t.memoizedProps:null,o=p.children,Cp(c,p)?o=null:b!==null&&Cp(c,b)&&(n.flags|=32),n.memoizedState!==null&&(c=fd(t,n,I3,null,null,i),ko._currentValue=c),oo(t,n),Gt(t,n,o,i),n.child;case 6:return t===null&&Xe&&((t=i=$t)&&(i=TO(i,n.pendingProps,or),i!==null?(n.stateNode=i,Jt=n,$t=null,t=!0):t=!1),t||wi(n)),null;case 13:return ub(t,n,i);case 4:return Ee(n,n.stateNode.containerInfo),o=n.pendingProps,t===null?n.child=Ai(n,null,o,i):Gt(t,n,o,i),n.child;case 11:return eb(t,n,n.type,n.pendingProps,i);case 7:return Gt(t,n,n.pendingProps,i),n.child;case 8:return Gt(t,n,n.pendingProps.children,i),n.child;case 12:return Gt(t,n,n.pendingProps.children,i),n.child;case 10:return o=n.pendingProps,Xr(n,n.type,o.value),Gt(t,n,o.children,i),n.child;case 9:return c=n.type._context,o=n.pendingProps.children,zi(n),c=Zt(c),o=o(c),n.flags|=1,Gt(t,n,o,i),n.child;case 14:return tb(t,n,n.type,n.pendingProps,i);case 15:return nb(t,n,n.type,n.pendingProps,i);case 19:return cb(t,n,i);case 22:return rb(t,n,i);case 24:return zi(n),o=Zt(Lt),t===null?(c=sd(),c===null&&(c=st,p=od(),c.pooledCache=p,p.refCount++,p!==null&&(c.pooledCacheLanes|=i),c=p),n.memoizedState={parent:o,cache:c},Vd(n),Xr(n,Lt,c)):(t.lanes&i&&(qd(t,n),fo(n,null,null,i),co()),c=t.memoizedState,p=n.memoizedState,c.parent!==o?(c={parent:o,cache:o},n.memoizedState=c,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=c),Xr(n,Lt,o)):(o=p.cache,Xr(n,Lt,o),o!==c.cache&&Id(n,[Lt],i,!0))),Gt(t,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(a(156,n.tag))}var jd=Ce(null),Di=null,Tr=null;function Xr(t,n,i){pe(jd,n._currentValue),n._currentValue=i}function wr(t){t._currentValue=jd.current,ke(jd)}function Hd(t,n,i){for(;t!==null;){var o=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,o!==null&&(o.childLanes|=n)):o!==null&&(o.childLanes&n)!==n&&(o.childLanes|=n),t===i)break;t=t.return}}function Id(t,n,i,o){var c=t.child;for(c!==null&&(c.return=t);c!==null;){var p=c.dependencies;if(p!==null){var b=c.child;p=p.firstContext;e:for(;p!==null;){var C=p;p=c;for(var D=0;D<n.length;D++)if(C.context===n[D]){p.lanes|=i,C=p.alternate,C!==null&&(C.lanes|=i),Hd(p.return,i,t),o||(b=null);break e}p=C.next}}else if(c.tag===18){if(b=c.return,b===null)throw Error(a(341));b.lanes|=i,p=b.alternate,p!==null&&(p.lanes|=i),Hd(b,i,t),b=null}else b=c.child;if(b!==null)b.return=c;else for(b=c;b!==null;){if(b===t){b=null;break}if(c=b.sibling,c!==null){c.return=b.return,b=c;break}b=b.return}c=b}}function uo(t,n,i,o){t=null;for(var c=n,p=!1;c!==null;){if(!p){if(c.flags&524288)p=!0;else if(c.flags&262144)break}if(c.tag===10){var b=c.alternate;if(b===null)throw Error(a(387));if(b=b.memoizedProps,b!==null){var C=c.type;yn(c.pendingProps.value,b.value)||(t!==null?t.push(C):t=[C])}}else if(c===fe.current){if(b=c.alternate,b===null)throw Error(a(387));b.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(t!==null?t.push(ko):t=[ko])}c=c.return}t!==null&&Id(n,t,i,o),n.flags|=262144}function ss(t){for(t=t.firstContext;t!==null;){if(!yn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function zi(t){Di=t,Tr=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Zt(t){return db(Di,t)}function cs(t,n){return Di===null&&zi(t),db(t,n)}function db(t,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},Tr===null){if(t===null)throw Error(a(308));Tr=n,t.dependencies={lanes:0,firstContext:n},t.flags|=524288}else Tr=Tr.next=n;return i}var Qr=!1;function Vd(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qd(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Kr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Zr(t,n,i){var o=t.updateQueue;if(o===null)return null;if(o=o.shared,gt&2){var c=o.pending;return c===null?n.next=n:(n.next=c.next,c.next=n),o.pending=n,n=Gu(t),P0(t,null,i),n}return $u(t,o,n,i),Gu(t)}function so(t,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194176)!==0)){var o=n.lanes;o&=t.pendingLanes,i|=o,n.lanes=i,t0(t,i)}}function $d(t,n){var i=t.updateQueue,o=t.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var c=null,p=null;if(i=i.firstBaseUpdate,i!==null){do{var b={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};p===null?c=p=b:p=p.next=b,i=i.next}while(i!==null);p===null?c=p=n:p=p.next=n}else c=p=n;i={baseState:o.baseState,firstBaseUpdate:c,lastBaseUpdate:p,shared:o.shared,callbacks:o.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=n:t.next=n,i.lastBaseUpdate=n}var Gd=!1;function co(){if(Gd){var t=Tl;if(t!==null)throw t}}function fo(t,n,i,o){Gd=!1;var c=t.updateQueue;Qr=!1;var p=c.firstBaseUpdate,b=c.lastBaseUpdate,C=c.shared.pending;if(C!==null){c.shared.pending=null;var D=C,U=D.next;D.next=null,b===null?p=U:b.next=U,b=D;var te=t.alternate;te!==null&&(te=te.updateQueue,C=te.lastBaseUpdate,C!==b&&(C===null?te.firstBaseUpdate=U:C.next=U,te.lastBaseUpdate=D))}if(p!==null){var ae=c.baseState;b=0,te=U=D=null,C=p;do{var G=C.lane&-536870913,J=G!==C.lane;if(J?(Ye&G)===G:(o&G)===G){G!==0&&G===Cl&&(Gd=!0),te!==null&&(te=te.next={lane:0,tag:C.tag,payload:C.payload,callback:null,next:null});e:{var Se=t,Re=C;G=n;var Et=i;switch(Re.tag){case 1:if(Se=Re.payload,typeof Se=="function"){ae=Se.call(Et,ae,G);break e}ae=Se;break e;case 3:Se.flags=Se.flags&-65537|128;case 0:if(Se=Re.payload,G=typeof Se=="function"?Se.call(Et,ae,G):Se,G==null)break e;ae=E({},ae,G);break e;case 2:Qr=!0}}G=C.callback,G!==null&&(t.flags|=64,J&&(t.flags|=8192),J=c.callbacks,J===null?c.callbacks=[G]:J.push(G))}else J={lane:G,tag:C.tag,payload:C.payload,callback:C.callback,next:null},te===null?(U=te=J,D=ae):te=te.next=J,b|=G;if(C=C.next,C===null){if(C=c.shared.pending,C===null)break;J=C,C=J.next,J.next=null,c.lastBaseUpdate=J,c.shared.pending=null}}while(!0);te===null&&(D=ae),c.baseState=D,c.firstBaseUpdate=U,c.lastBaseUpdate=te,p===null&&(c.shared.lanes=0),ni|=b,t.lanes=b,t.memoizedState=ae}}function pb(t,n){if(typeof t!="function")throw Error(a(191,t));t.call(n)}function hb(t,n){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)pb(i[t],n)}function po(t,n){try{var i=n.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&t)===t){o=void 0;var p=i.create,b=i.inst;o=p(),b.destroy=o}i=i.next}while(i!==c)}}catch(C){lt(n,n.return,C)}}function Wr(t,n,i){try{var o=n.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var p=c.next;o=p;do{if((o.tag&t)===t){var b=o.inst,C=b.destroy;if(C!==void 0){b.destroy=void 0,c=n;var D=i;try{C()}catch(U){lt(c,D,U)}}}o=o.next}while(o!==p)}}catch(U){lt(n,n.return,U)}}function mb(t){var n=t.updateQueue;if(n!==null){var i=t.stateNode;try{hb(n,i)}catch(o){lt(t,t.return,o)}}}function gb(t,n,i){i.props=_i(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(o){lt(t,n,o)}}function Ni(t,n){try{var i=t.ref;if(i!==null){var o=t.stateNode;switch(t.tag){case 26:case 27:case 5:var c=o;break;default:c=o}typeof i=="function"?t.refCleanup=i(c):i.current=c}}catch(p){lt(t,n,p)}}function bn(t,n){var i=t.ref,o=t.refCleanup;if(i!==null)if(typeof o=="function")try{o()}catch(c){lt(t,n,c)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(c){lt(t,n,c)}else i.current=null}function yb(t){var n=t.type,i=t.memoizedProps,o=t.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&o.focus();break e;case"img":i.src?o.src=i.src:i.srcSet&&(o.srcset=i.srcSet)}}catch(c){lt(t,t.return,c)}}function bb(t,n,i){try{var o=t.stateNode;bO(o,t.type,i,n),o[un]=n}catch(c){lt(t,t.return,c)}}function Sb(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27||t.tag===4}function Yd(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Sb(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==27&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Fd(t,n,i){var o=t.tag;if(o===5||o===6)t=t.stateNode,n?i.nodeType===8?i.parentNode.insertBefore(t,n):i.insertBefore(t,n):(i.nodeType===8?(n=i.parentNode,n.insertBefore(t,i)):(n=i,n.appendChild(t)),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=Ts));else if(o!==4&&o!==27&&(t=t.child,t!==null))for(Fd(t,n,i),t=t.sibling;t!==null;)Fd(t,n,i),t=t.sibling}function fs(t,n,i){var o=t.tag;if(o===5||o===6)t=t.stateNode,n?i.insertBefore(t,n):i.appendChild(t);else if(o!==4&&o!==27&&(t=t.child,t!==null))for(fs(t,n,i),t=t.sibling;t!==null;)fs(t,n,i),t=t.sibling}var Ar=!1,vt=!1,Pd=!1,vb=typeof WeakSet=="function"?WeakSet:Set,It=null,xb=!1;function X3(t,n){if(t=t.containerInfo,xp=_s,t=j0(t),Qf(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var c=o.anchorOffset,p=o.focusNode;o=o.focusOffset;try{i.nodeType,p.nodeType}catch{i=null;break e}var b=0,C=-1,D=-1,U=0,te=0,ae=t,G=null;t:for(;;){for(var J;ae!==i||c!==0&&ae.nodeType!==3||(C=b+c),ae!==p||o!==0&&ae.nodeType!==3||(D=b+o),ae.nodeType===3&&(b+=ae.nodeValue.length),(J=ae.firstChild)!==null;)G=ae,ae=J;for(;;){if(ae===t)break t;if(G===i&&++U===c&&(C=b),G===p&&++te===o&&(D=b),(J=ae.nextSibling)!==null)break;ae=G,G=ae.parentNode}ae=J}i=C===-1||D===-1?null:{start:C,end:D}}else i=null}i=i||{start:0,end:0}}else i=null;for(Ep={focusedElem:t,selectionRange:i},_s=!1,It=n;It!==null;)if(n=It,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,It=t;else for(;It!==null;){switch(n=It,p=n.alternate,t=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:if(t&1024&&p!==null){t=void 0,i=n,c=p.memoizedProps,p=p.memoizedState,o=i.stateNode;try{var Se=_i(i.type,c,i.elementType===i.type);t=o.getSnapshotBeforeUpdate(Se,p),o.__reactInternalSnapshotBeforeUpdate=t}catch(Re){lt(i,i.return,Re)}}break;case 3:if(t&1024){if(t=n.stateNode.containerInfo,i=t.nodeType,i===9)Ap(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Ap(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(t&1024)throw Error(a(163))}if(t=n.sibling,t!==null){t.return=n.return,It=t;break}It=n.return}return Se=xb,xb=!1,Se}function Eb(t,n,i){var o=i.flags;switch(i.tag){case 0:case 11:case 15:Rr(t,i),o&4&&po(5,i);break;case 1:if(Rr(t,i),o&4)if(t=i.stateNode,n===null)try{t.componentDidMount()}catch(C){lt(i,i.return,C)}else{var c=_i(i.type,n.memoizedProps);n=n.memoizedState;try{t.componentDidUpdate(c,n,t.__reactInternalSnapshotBeforeUpdate)}catch(C){lt(i,i.return,C)}}o&64&&mb(i),o&512&&Ni(i,i.return);break;case 3:if(Rr(t,i),o&64&&(o=i.updateQueue,o!==null)){if(t=null,i.child!==null)switch(i.child.tag){case 27:case 5:t=i.child.stateNode;break;case 1:t=i.child.stateNode}try{hb(o,t)}catch(C){lt(i,i.return,C)}}break;case 26:Rr(t,i),o&512&&Ni(i,i.return);break;case 27:case 5:Rr(t,i),n===null&&o&4&&yb(i),o&512&&Ni(i,i.return);break;case 12:Rr(t,i);break;case 13:Rr(t,i),o&4&&wb(t,i);break;case 22:if(c=i.memoizedState!==null||Ar,!c){n=n!==null&&n.memoizedState!==null||vt;var p=Ar,b=vt;Ar=c,(vt=n)&&!b?Jr(t,i,(i.subtreeFlags&8772)!==0):Rr(t,i),Ar=p,vt=b}o&512&&(i.memoizedProps.mode==="manual"?Ni(i,i.return):bn(i,i.return));break;default:Rr(t,i)}}function Cb(t){var n=t.alternate;n!==null&&(t.alternate=null,Cb(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&zf(n)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Dt=null,Sn=!1;function kr(t,n,i){for(i=i.child;i!==null;)Tb(t,n,i),i=i.sibling}function Tb(t,n,i){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(Ut,i)}catch{}switch(i.tag){case 26:vt||bn(i,n),kr(t,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:vt||bn(i,n);var o=Dt,c=Sn;for(Dt=i.stateNode,kr(t,n,i),i=i.stateNode,n=i.attributes;n.length;)i.removeAttributeNode(n[0]);zf(i),Dt=o,Sn=c;break;case 5:vt||bn(i,n);case 6:c=Dt;var p=Sn;if(Dt=null,kr(t,n,i),Dt=c,Sn=p,Dt!==null)if(Sn)try{t=Dt,o=i.stateNode,t.nodeType===8?t.parentNode.removeChild(o):t.removeChild(o)}catch(b){lt(i,n,b)}else try{Dt.removeChild(i.stateNode)}catch(b){lt(i,n,b)}break;case 18:Dt!==null&&(Sn?(n=Dt,i=i.stateNode,n.nodeType===8?wp(n.parentNode,i):n.nodeType===1&&wp(n,i),_o(n)):wp(Dt,i.stateNode));break;case 4:o=Dt,c=Sn,Dt=i.stateNode.containerInfo,Sn=!0,kr(t,n,i),Dt=o,Sn=c;break;case 0:case 11:case 14:case 15:vt||Wr(2,i,n),vt||Wr(4,i,n),kr(t,n,i);break;case 1:vt||(bn(i,n),o=i.stateNode,typeof o.componentWillUnmount=="function"&&gb(i,n,o)),kr(t,n,i);break;case 21:kr(t,n,i);break;case 22:vt||bn(i,n),vt=(o=vt)||i.memoizedState!==null,kr(t,n,i),vt=o;break;default:kr(t,n,i)}}function wb(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{_o(t)}catch(i){lt(n,n.return,i)}}function Q3(t){switch(t.tag){case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new vb),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new vb),n;default:throw Error(a(435,t.tag))}}function Xd(t,n){var i=Q3(t);n.forEach(function(o){var c=uO.bind(null,t,o);i.has(o)||(i.add(o),o.then(c,c))})}function Ln(t,n){var i=n.deletions;if(i!==null)for(var o=0;o<i.length;o++){var c=i[o],p=t,b=n,C=b;e:for(;C!==null;){switch(C.tag){case 27:case 5:Dt=C.stateNode,Sn=!1;break e;case 3:Dt=C.stateNode.containerInfo,Sn=!0;break e;case 4:Dt=C.stateNode.containerInfo,Sn=!0;break e}C=C.return}if(Dt===null)throw Error(a(160));Tb(p,b,c),Dt=null,Sn=!1,p=c.alternate,p!==null&&(p.return=null),c.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)Ab(n,t),n=n.sibling}var Qn=null;function Ab(t,n){var i=t.alternate,o=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Ln(n,t),Un(t),o&4&&(Wr(3,t,t.return),po(3,t),Wr(5,t,t.return));break;case 1:Ln(n,t),Un(t),o&512&&(vt||i===null||bn(i,i.return)),o&64&&Ar&&(t=t.updateQueue,t!==null&&(o=t.callbacks,o!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?o:i.concat(o))));break;case 26:var c=Qn;if(Ln(n,t),Un(t),o&512&&(vt||i===null||bn(i,i.return)),o&4){var p=i!==null?i.memoizedState:null;if(o=t.memoizedState,i===null)if(o===null)if(t.stateNode===null){e:{o=t.type,i=t.memoizedProps,c=c.ownerDocument||c;t:switch(o){case"title":p=c.getElementsByTagName("title")[0],(!p||p[ja]||p[Kt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=c.createElement(o),c.head.insertBefore(p,c.querySelector("head > title"))),Yt(p,o,i),p[Kt]=t,jt(p),o=p;break e;case"link":var b=yS("link","href",c).get(o+(i.href||""));if(b){for(var C=0;C<b.length;C++)if(p=b[C],p.getAttribute("href")===(i.href==null?null:i.href)&&p.getAttribute("rel")===(i.rel==null?null:i.rel)&&p.getAttribute("title")===(i.title==null?null:i.title)&&p.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){b.splice(C,1);break t}}p=c.createElement(o),Yt(p,o,i),c.head.appendChild(p);break;case"meta":if(b=yS("meta","content",c).get(o+(i.content||""))){for(C=0;C<b.length;C++)if(p=b[C],p.getAttribute("content")===(i.content==null?null:""+i.content)&&p.getAttribute("name")===(i.name==null?null:i.name)&&p.getAttribute("property")===(i.property==null?null:i.property)&&p.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&p.getAttribute("charset")===(i.charSet==null?null:i.charSet)){b.splice(C,1);break t}}p=c.createElement(o),Yt(p,o,i),c.head.appendChild(p);break;default:throw Error(a(468,o))}p[Kt]=t,jt(p),o=p}t.stateNode=o}else bS(c,t.type,t.stateNode);else t.stateNode=gS(c,o,t.memoizedProps);else p!==o?(p===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):p.count--,o===null?bS(c,t.type,t.stateNode):gS(c,o,t.memoizedProps)):o===null&&t.stateNode!==null&&bb(t,t.memoizedProps,i.memoizedProps)}break;case 27:if(o&4&&t.alternate===null){c=t.stateNode,p=t.memoizedProps;try{for(var D=c.firstChild;D;){var U=D.nextSibling,te=D.nodeName;D[ja]||te==="HEAD"||te==="BODY"||te==="SCRIPT"||te==="STYLE"||te==="LINK"&&D.rel.toLowerCase()==="stylesheet"||c.removeChild(D),D=U}for(var ae=t.type,G=c.attributes;G.length;)c.removeAttributeNode(G[0]);Yt(c,ae,p),c[Kt]=t,c[un]=p}catch(Se){lt(t,t.return,Se)}}case 5:if(Ln(n,t),Un(t),o&512&&(vt||i===null||bn(i,i.return)),t.flags&32){c=t.stateNode;try{fl(c,"")}catch(Se){lt(t,t.return,Se)}}o&4&&t.stateNode!=null&&(c=t.memoizedProps,bb(t,c,i!==null?i.memoizedProps:c)),o&1024&&(Pd=!0);break;case 6:if(Ln(n,t),Un(t),o&4){if(t.stateNode===null)throw Error(a(162));o=t.memoizedProps,i=t.stateNode;try{i.nodeValue=o}catch(Se){lt(t,t.return,Se)}}break;case 3:if(Rs=null,c=Qn,Qn=As(n.containerInfo),Ln(n,t),Qn=c,Un(t),o&4&&i!==null&&i.memoizedState.isDehydrated)try{_o(n.containerInfo)}catch(Se){lt(t,t.return,Se)}Pd&&(Pd=!1,kb(t));break;case 4:o=Qn,Qn=As(t.stateNode.containerInfo),Ln(n,t),Un(t),Qn=o;break;case 12:Ln(n,t),Un(t);break;case 13:Ln(n,t),Un(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(rp=ze()),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Xd(t,o)));break;case 22:if(o&512&&(vt||i===null||bn(i,i.return)),D=t.memoizedState!==null,U=i!==null&&i.memoizedState!==null,te=Ar,ae=vt,Ar=te||D,vt=ae||U,Ln(n,t),vt=ae,Ar=te,Un(t),n=t.stateNode,n._current=t,n._visibility&=-3,n._visibility|=n._pendingVisibility&2,o&8192&&(n._visibility=D?n._visibility&-2:n._visibility|1,D&&(n=Ar||vt,i===null||U||n||Rl(t)),t.memoizedProps===null||t.memoizedProps.mode!=="manual"))e:for(i=null,n=t;;){if(n.tag===5||n.tag===26||n.tag===27){if(i===null){U=i=n;try{if(c=U.stateNode,D)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{b=U.stateNode,C=U.memoizedProps.style;var J=C!=null&&C.hasOwnProperty("display")?C.display:null;b.style.display=J==null||typeof J=="boolean"?"":(""+J).trim()}}catch(Se){lt(U,U.return,Se)}}}else if(n.tag===6){if(i===null){U=n;try{U.stateNode.nodeValue=D?"":U.memoizedProps}catch(Se){lt(U,U.return,Se)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}o&4&&(o=t.updateQueue,o!==null&&(i=o.retryQueue,i!==null&&(o.retryQueue=null,Xd(t,i))));break;case 19:Ln(n,t),Un(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Xd(t,o)));break;case 21:break;default:Ln(n,t),Un(t)}}function Un(t){var n=t.flags;if(n&2){try{if(t.tag!==27){e:{for(var i=t.return;i!==null;){if(Sb(i)){var o=i;break e}i=i.return}throw Error(a(160))}switch(o.tag){case 27:var c=o.stateNode,p=Yd(t);fs(t,p,c);break;case 5:var b=o.stateNode;o.flags&32&&(fl(b,""),o.flags&=-33);var C=Yd(t);fs(t,C,b);break;case 3:case 4:var D=o.stateNode.containerInfo,U=Yd(t);Fd(t,U,D);break;default:throw Error(a(161))}}}catch(te){lt(t,t.return,te)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function kb(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;kb(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),t=t.sibling}}function Rr(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Eb(t,n.alternate,n),n=n.sibling}function Rl(t){for(t=t.child;t!==null;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:Wr(4,n,n.return),Rl(n);break;case 1:bn(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&gb(n,n.return,i),Rl(n);break;case 26:case 27:case 5:bn(n,n.return),Rl(n);break;case 22:bn(n,n.return),n.memoizedState===null&&Rl(n);break;default:Rl(n)}t=t.sibling}}function Jr(t,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var o=n.alternate,c=t,p=n,b=p.flags;switch(p.tag){case 0:case 11:case 15:Jr(c,p,i),po(4,p);break;case 1:if(Jr(c,p,i),o=p,c=o.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(U){lt(o,o.return,U)}if(o=p,c=o.updateQueue,c!==null){var C=o.stateNode;try{var D=c.shared.hiddenCallbacks;if(D!==null)for(c.shared.hiddenCallbacks=null,c=0;c<D.length;c++)pb(D[c],C)}catch(U){lt(o,o.return,U)}}i&&b&64&&mb(p),Ni(p,p.return);break;case 26:case 27:case 5:Jr(c,p,i),i&&o===null&&b&4&&yb(p),Ni(p,p.return);break;case 12:Jr(c,p,i);break;case 13:Jr(c,p,i),i&&b&4&&wb(c,p);break;case 22:p.memoizedState===null&&Jr(c,p,i),Ni(p,p.return);break;default:Jr(c,p,i)}n=n.sibling}}function Qd(t,n){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(t=n.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&no(i))}function Kd(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&no(t))}function ei(t,n,i,o){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Rb(t,n,i,o),n=n.sibling}function Rb(t,n,i,o){var c=n.flags;switch(n.tag){case 0:case 11:case 15:ei(t,n,i,o),c&2048&&po(9,n);break;case 3:ei(t,n,i,o),c&2048&&(t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&no(t)));break;case 12:if(c&2048){ei(t,n,i,o),t=n.stateNode;try{var p=n.memoizedProps,b=p.id,C=p.onPostCommit;typeof C=="function"&&C(b,n.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(D){lt(n,n.return,D)}}else ei(t,n,i,o);break;case 23:break;case 22:p=n.stateNode,n.memoizedState!==null?p._visibility&4?ei(t,n,i,o):ho(t,n):p._visibility&4?ei(t,n,i,o):(p._visibility|=4,Ol(t,n,i,o,(n.subtreeFlags&10256)!==0)),c&2048&&Qd(n.alternate,n);break;case 24:ei(t,n,i,o),c&2048&&Kd(n.alternate,n);break;default:ei(t,n,i,o)}}function Ol(t,n,i,o,c){for(c=c&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;){var p=t,b=n,C=i,D=o,U=b.flags;switch(b.tag){case 0:case 11:case 15:Ol(p,b,C,D,c),po(8,b);break;case 23:break;case 22:var te=b.stateNode;b.memoizedState!==null?te._visibility&4?Ol(p,b,C,D,c):ho(p,b):(te._visibility|=4,Ol(p,b,C,D,c)),c&&U&2048&&Qd(b.alternate,b);break;case 24:Ol(p,b,C,D,c),c&&U&2048&&Kd(b.alternate,b);break;default:Ol(p,b,C,D,c)}n=n.sibling}}function ho(t,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=t,o=n,c=o.flags;switch(o.tag){case 22:ho(i,o),c&2048&&Qd(o.alternate,o);break;case 24:ho(i,o),c&2048&&Kd(o.alternate,o);break;default:ho(i,o)}n=n.sibling}}var mo=8192;function Ml(t){if(t.subtreeFlags&mo)for(t=t.child;t!==null;)Ob(t),t=t.sibling}function Ob(t){switch(t.tag){case 26:Ml(t),t.flags&mo&&t.memoizedState!==null&&UO(Qn,t.memoizedState,t.memoizedProps);break;case 5:Ml(t);break;case 3:case 4:var n=Qn;Qn=As(t.stateNode.containerInfo),Ml(t),Qn=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=mo,mo=16777216,Ml(t),mo=n):Ml(t));break;default:Ml(t)}}function Mb(t){var n=t.alternate;if(n!==null&&(t=n.child,t!==null)){n.child=null;do n=t.sibling,t.sibling=null,t=n;while(t!==null)}}function go(t){var n=t.deletions;if(t.flags&16){if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];It=o,Db(o,t)}Mb(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)_b(t),t=t.sibling}function _b(t){switch(t.tag){case 0:case 11:case 15:go(t),t.flags&2048&&Wr(9,t,t.return);break;case 3:go(t);break;case 12:go(t);break;case 22:var n=t.stateNode;t.memoizedState!==null&&n._visibility&4&&(t.return===null||t.return.tag!==13)?(n._visibility&=-5,ds(t)):go(t);break;default:go(t)}}function ds(t){var n=t.deletions;if(t.flags&16){if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];It=o,Db(o,t)}Mb(t)}for(t=t.child;t!==null;){switch(n=t,n.tag){case 0:case 11:case 15:Wr(8,n,n.return),ds(n);break;case 22:i=n.stateNode,i._visibility&4&&(i._visibility&=-5,ds(n));break;default:ds(n)}t=t.sibling}}function Db(t,n){for(;It!==null;){var i=It;switch(i.tag){case 0:case 11:case 15:Wr(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var o=i.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:no(i.memoizedState.cache)}if(o=i.child,o!==null)o.return=i,It=o;else e:for(i=t;It!==null;){o=It;var c=o.sibling,p=o.return;if(Cb(o),o===i){It=null;break e}if(c!==null){c.return=p,It=c;break e}It=p}}}function K3(t,n,i,o){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jn(t,n,i,o){return new K3(t,n,i,o)}function Zd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ti(t,n){var i=t.alternate;return i===null?(i=jn(t.tag,n,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=n,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&31457280,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,n=t.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function zb(t,n){t.flags&=31457282;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=n,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,n=i.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),t}function ps(t,n,i,o,c,p){var b=0;if(o=t,typeof t=="function")Zd(t)&&(b=1);else if(typeof t=="string")b=BO(t,i,De.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case m:return Bi(i.children,c,p,n);case h:b=8,c|=24;break;case g:return t=jn(12,i,n,c|2),t.elementType=g,t.lanes=p,t;case T:return t=jn(13,i,n,c),t.elementType=T,t.lanes=p,t;case N:return t=jn(19,i,n,c),t.elementType=N,t.lanes=p,t;case k:return Nb(i,c,p,n);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case y:case S:b=10;break e;case v:b=9;break e;case R:b=11;break e;case w:b=14;break e;case B:b=16,o=null;break e}b=29,i=Error(a(130,t===null?"null":typeof t,"")),o=null}return n=jn(b,i,n,c),n.elementType=t,n.type=o,n.lanes=p,n}function Bi(t,n,i,o){return t=jn(7,t,o,n),t.lanes=i,t}function Nb(t,n,i,o){t=jn(22,t,o,n),t.elementType=k,t.lanes=i;var c={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var p=c._current;if(p===null)throw Error(a(456));if(!(c._pendingVisibility&2)){var b=$r(p,2);b!==null&&(c._pendingVisibility|=2,en(b,p,2))}},attach:function(){var p=c._current;if(p===null)throw Error(a(456));if(c._pendingVisibility&2){var b=$r(p,2);b!==null&&(c._pendingVisibility&=-3,en(b,p,2))}}};return t.stateNode=c,t}function Wd(t,n,i){return t=jn(6,t,null,n),t.lanes=i,t}function Jd(t,n,i){return n=jn(4,t.children!==null?t.children:[],t.key,n),n.lanes=i,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}function Or(t){t.flags|=4}function Bb(t,n){if(n.type!=="stylesheet"||n.state.loading&4)t.flags&=-16777217;else if(t.flags|=16777216,!SS(n)){if(n=Bn.current,n!==null&&((Ye&4194176)===Ye?ur!==null:(Ye&62914560)!==Ye&&!(Ye&536870912)||n!==ur))throw Ja=id,W0;t.flags|=8192}}function hs(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?Jy():536870912,t.lanes|=n,Dl|=n)}function yo(t,n){if(!Xe)switch(t.tailMode){case"hidden":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:o.sibling=null}}function mt(t){var n=t.alternate!==null&&t.alternate.child===t.child,i=0,o=0;if(n)for(var c=t.child;c!==null;)i|=c.lanes|c.childLanes,o|=c.subtreeFlags&31457280,o|=c.flags&31457280,c.return=t,c=c.sibling;else for(c=t.child;c!==null;)i|=c.lanes|c.childLanes,o|=c.subtreeFlags,o|=c.flags,c.return=t,c=c.sibling;return t.subtreeFlags|=o,t.childLanes=i,n}function Z3(t,n,i){var o=n.pendingProps;switch(nd(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(n),null;case 1:return mt(n),null;case 3:return i=n.stateNode,o=null,t!==null&&(o=t.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),wr(Lt),qe(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(Qa(n)?Or(n):t===null||t.memoizedState.isDehydrated&&!(n.flags&256)||(n.flags|=1024,Xn!==null&&(op(Xn),Xn=null))),mt(n),null;case 26:return i=n.memoizedState,t===null?(Or(n),i!==null?(mt(n),Bb(n,i)):(mt(n),n.flags&=-16777217)):i?i!==t.memoizedState?(Or(n),mt(n),Bb(n,i)):(mt(n),n.flags&=-16777217):(t.memoizedProps!==o&&Or(n),mt(n),n.flags&=-16777217),null;case 27:Oe(n),i=ge.current;var c=n.type;if(t!==null&&n.stateNode!=null)t.memoizedProps!==o&&Or(n);else{if(!o){if(n.stateNode===null)throw Error(a(166));return mt(n),null}t=De.current,Qa(n)?K0(n):(t=fS(c,o,i),n.stateNode=t,Or(n))}return mt(n),null;case 5:if(Oe(n),i=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==o&&Or(n);else{if(!o){if(n.stateNode===null)throw Error(a(166));return mt(n),null}if(t=De.current,Qa(n))K0(n);else{switch(c=ws(ge.current),t){case 1:t=c.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:t=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":t=c.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":t=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":t=c.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof o.is=="string"?c.createElement("select",{is:o.is}):c.createElement("select"),o.multiple?t.multiple=!0:o.size&&(t.size=o.size);break;default:t=typeof o.is=="string"?c.createElement(i,{is:o.is}):c.createElement(i)}}t[Kt]=n,t[un]=o;e:for(c=n.child;c!==null;){if(c.tag===5||c.tag===6)t.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===n)break e;for(;c.sibling===null;){if(c.return===null||c.return===n)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}n.stateNode=t;e:switch(Yt(t,i,o),i){case"button":case"input":case"select":case"textarea":t=!!o.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&Or(n)}}return mt(n),n.flags&=-16777217,null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==o&&Or(n);else{if(typeof o!="string"&&n.stateNode===null)throw Error(a(166));if(t=ge.current,Qa(n)){if(t=n.stateNode,i=n.memoizedProps,o=null,c=Jt,c!==null)switch(c.tag){case 27:case 5:o=c.memoizedProps}t[Kt]=n,t=!!(t.nodeValue===i||o!==null&&o.suppressHydrationWarning===!0||lS(t.nodeValue,i)),t||wi(n)}else t=ws(t).createTextNode(o),t[Kt]=n,n.stateNode=t}return mt(n),null;case 13:if(o=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(c=Qa(n),o!==null&&o.dehydrated!==null){if(t===null){if(!c)throw Error(a(318));if(c=n.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(a(317));c[Kt]=n}else Ka(),!(n.flags&128)&&(n.memoizedState=null),n.flags|=4;mt(n),c=!1}else Xn!==null&&(op(Xn),Xn=null),c=!0;if(!c)return n.flags&256?(xr(n),n):(xr(n),null)}if(xr(n),n.flags&128)return n.lanes=i,n;if(i=o!==null,t=t!==null&&t.memoizedState!==null,i){o=n.child,c=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(c=o.alternate.memoizedState.cachePool.pool);var p=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(p=o.memoizedState.cachePool.pool),p!==c&&(o.flags|=2048)}return i!==t&&i&&(n.child.flags|=8192),hs(n,n.updateQueue),mt(n),null;case 4:return qe(),t===null&&bp(n.stateNode.containerInfo),mt(n),null;case 10:return wr(n.type),mt(n),null;case 19:if(ke(Bt),c=n.memoizedState,c===null)return mt(n),null;if(o=(n.flags&128)!==0,p=c.rendering,p===null)if(o)yo(c,!1);else{if(xt!==0||t!==null&&t.flags&128)for(t=n.child;t!==null;){if(p=Zu(t),p!==null){for(n.flags|=128,yo(c,!1),t=p.updateQueue,n.updateQueue=t,hs(n,t),n.subtreeFlags=0,t=i,i=n.child;i!==null;)zb(i,t),i=i.sibling;return pe(Bt,Bt.current&1|2),n.child}t=t.sibling}c.tail!==null&&ze()>ms&&(n.flags|=128,o=!0,yo(c,!1),n.lanes=4194304)}else{if(!o)if(t=Zu(p),t!==null){if(n.flags|=128,o=!0,t=t.updateQueue,n.updateQueue=t,hs(n,t),yo(c,!0),c.tail===null&&c.tailMode==="hidden"&&!p.alternate&&!Xe)return mt(n),null}else 2*ze()-c.renderingStartTime>ms&&i!==536870912&&(n.flags|=128,o=!0,yo(c,!1),n.lanes=4194304);c.isBackwards?(p.sibling=n.child,n.child=p):(t=c.last,t!==null?t.sibling=p:n.child=p,c.last=p)}return c.tail!==null?(n=c.tail,c.rendering=n,c.tail=n.sibling,c.renderingStartTime=ze(),n.sibling=null,t=Bt.current,pe(Bt,o?t&1|2:t&1),n):(mt(n),null);case 22:case 23:return xr(n),ad(),o=n.memoizedState!==null,t!==null?t.memoizedState!==null!==o&&(n.flags|=8192):o&&(n.flags|=8192),o?i&536870912&&!(n.flags&128)&&(mt(n),n.subtreeFlags&6&&(n.flags|=8192)):mt(n),i=n.updateQueue,i!==null&&hs(n,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==i&&(n.flags|=2048),t!==null&&ke(ki),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),wr(Lt),mt(n),null;case 25:return null}throw Error(a(156,n.tag))}function W3(t,n){switch(nd(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return wr(Lt),qe(),t=n.flags,t&65536&&!(t&128)?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return Oe(n),null;case 13:if(xr(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(a(340));Ka()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return ke(Bt),null;case 4:return qe(),null;case 10:return wr(n.type),null;case 22:case 23:return xr(n),ad(),t!==null&&ke(ki),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 24:return wr(Lt),null;case 25:return null;default:return null}}function Lb(t,n){switch(nd(n),n.tag){case 3:wr(Lt),qe();break;case 26:case 27:case 5:Oe(n);break;case 4:qe();break;case 13:xr(n);break;case 19:ke(Bt);break;case 10:wr(n.type);break;case 22:case 23:xr(n),ad(),t!==null&&ke(ki);break;case 24:wr(Lt)}}var J3={getCacheForType:function(t){var n=Zt(Lt),i=n.data.get(t);return i===void 0&&(i=t(),n.data.set(t,i)),i}},eO=typeof WeakMap=="function"?WeakMap:Map,gt=0,st=null,He=null,Ye=0,ct=0,vn=null,Mr=!1,_l=!1,ep=!1,_r=0,xt=0,ni=0,Li=0,tp=0,Hn=0,Dl=0,bo=null,cr=null,np=!1,rp=0,ms=1/0,gs=null,ri=null,ys=!1,Ui=null,So=0,ip=0,lp=null,vo=0,ap=null;function xn(){if(gt&2&&Ye!==0)return Ye&-Ye;if(V.T!==null){var t=Cl;return t!==0?t:hp()}return r0()}function Ub(){Hn===0&&(Hn=!(Ye&536870912)||Xe?Wy():536870912);var t=Bn.current;return t!==null&&(t.flags|=32),Hn}function en(t,n,i){(t===st&&ct===2||t.cancelPendingCommit!==null)&&(zl(t,0),Dr(t,Ye,Hn,!1)),Ua(t,i),(!(gt&2)||t!==st)&&(t===st&&(!(gt&2)&&(Li|=i),xt===4&&Dr(t,Ye,Hn,!1)),fr(t))}function jb(t,n,i){if(gt&6)throw Error(a(327));var o=!i&&(n&60)===0&&(n&t.expiredLanes)===0||La(t,n),c=o?rO(t,n):cp(t,n,!0),p=o;do{if(c===0){_l&&!o&&Dr(t,n,0,!1);break}else if(c===6)Dr(t,n,0,!Mr);else{if(i=t.current.alternate,p&&!tO(i)){c=cp(t,n,!1),p=!1;continue}if(c===2){if(p=n,t.errorRecoveryDisabledLanes&p)var b=0;else b=t.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){n=b;e:{var C=t;c=bo;var D=C.current.memoizedState.isDehydrated;if(D&&(zl(C,b).flags|=256),b=cp(C,b,!1),b!==2){if(ep&&!D){C.errorRecoveryDisabledLanes|=p,Li|=p,c=4;break e}p=cr,cr=c,p!==null&&op(p)}c=b}if(p=!1,c!==2)continue}}if(c===1){zl(t,0),Dr(t,n,0,!0);break}e:{switch(o=t,c){case 0:case 1:throw Error(a(345));case 4:if((n&4194176)===n){Dr(o,n,Hn,!Mr);break e}break;case 2:cr=null;break;case 3:case 5:break;default:throw Error(a(329))}if(o.finishedWork=i,o.finishedLanes=n,(n&62914560)===n&&(p=rp+300-ze(),10<p)){if(Dr(o,n,Hn,!Mr),Mu(o,0)!==0)break e;o.timeoutHandle=uS(Hb.bind(null,o,i,cr,gs,np,n,Hn,Li,Dl,Mr,2,-0,0),p);break e}Hb(o,i,cr,gs,np,n,Hn,Li,Dl,Mr,0,-0,0)}}break}while(!0);fr(t)}function op(t){cr===null?cr=t:cr.push.apply(cr,t)}function Hb(t,n,i,o,c,p,b,C,D,U,te,ae,G){var J=n.subtreeFlags;if((J&8192||(J&16785408)===16785408)&&(Ao={stylesheets:null,count:0,unsuspend:LO},Ob(n),n=jO(),n!==null)){t.cancelPendingCommit=n(Fb.bind(null,t,i,o,c,b,C,D,1,ae,G)),Dr(t,p,b,!U);return}Fb(t,i,o,c,b,C,D,te,ae,G)}function tO(t){for(var n=t;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var o=0;o<i.length;o++){var c=i[o],p=c.getSnapshot;c=c.value;try{if(!yn(p(),c))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Dr(t,n,i,o){n&=~tp,n&=~Li,t.suspendedLanes|=n,t.pingedLanes&=~n,o&&(t.warmLanes|=n),o=t.expirationTimes;for(var c=n;0<c;){var p=31-Ot(c),b=1<<p;o[p]=-1,c&=~b}i!==0&&e0(t,i,n)}function bs(){return gt&6?!0:(xo(0),!1)}function up(){if(He!==null){if(ct===0)var t=He.return;else t=He,Tr=Di=null,hd(t),xl=null,eo=0,t=He;for(;t!==null;)Lb(t.alternate,t),t=t.return;He=null}}function zl(t,n){t.finishedWork=null,t.finishedLanes=0;var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,vO(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),up(),st=t,He=i=ti(t.current,null),Ye=n,ct=0,vn=null,Mr=!1,_l=La(t,n),ep=!1,Dl=Hn=tp=Li=ni=xt=0,cr=bo=null,np=!1,n&8&&(n|=n&32);var o=t.entangledLanes;if(o!==0)for(t=t.entanglements,o&=n;0<o;){var c=31-Ot(o),p=1<<c;n|=t[c],o&=~p}return _r=n,qu(),i}function Ib(t,n){Ne=null,V.H=sr,n===Wa?(n=t1(),ct=3):n===W0?(n=t1(),ct=4):ct=n===J1?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,vn=n,He===null&&(xt=1,us(t,Dn(n,t.current)))}function Vb(){var t=V.H;return V.H=sr,t===null?sr:t}function qb(){var t=V.A;return V.A=J3,t}function sp(){xt=4,Mr||(Ye&4194176)!==Ye&&Bn.current!==null||(_l=!0),!(ni&134217727)&&!(Li&134217727)||st===null||Dr(st,Ye,Hn,!1)}function cp(t,n,i){var o=gt;gt|=2;var c=Vb(),p=qb();(st!==t||Ye!==n)&&(gs=null,zl(t,n)),n=!1;var b=xt;e:do try{if(ct!==0&&He!==null){var C=He,D=vn;switch(ct){case 8:up(),b=6;break e;case 3:case 2:case 6:Bn.current===null&&(n=!0);var U=ct;if(ct=0,vn=null,Nl(t,C,D,U),i&&_l){b=0;break e}break;default:U=ct,ct=0,vn=null,Nl(t,C,D,U)}}nO(),b=xt;break}catch(te){Ib(t,te)}while(!0);return n&&t.shellSuspendCounter++,Tr=Di=null,gt=o,V.H=c,V.A=p,He===null&&(st=null,Ye=0,qu()),b}function nO(){for(;He!==null;)$b(He)}function rO(t,n){var i=gt;gt|=2;var o=Vb(),c=qb();st!==t||Ye!==n?(gs=null,ms=ze()+500,zl(t,n)):_l=La(t,n);e:do try{if(ct!==0&&He!==null){n=He;var p=vn;t:switch(ct){case 1:ct=0,vn=null,Nl(t,n,p,1);break;case 2:if(J0(p)){ct=0,vn=null,Gb(n);break}n=function(){ct===2&&st===t&&(ct=7),fr(t)},p.then(n,n);break e;case 3:ct=7;break e;case 4:ct=5;break e;case 7:J0(p)?(ct=0,vn=null,Gb(n)):(ct=0,vn=null,Nl(t,n,p,7));break;case 5:var b=null;switch(He.tag){case 26:b=He.memoizedState;case 5:case 27:var C=He;if(!b||SS(b)){ct=0,vn=null;var D=C.sibling;if(D!==null)He=D;else{var U=C.return;U!==null?(He=U,Ss(U)):He=null}break t}}ct=0,vn=null,Nl(t,n,p,5);break;case 6:ct=0,vn=null,Nl(t,n,p,6);break;case 8:up(),xt=6;break e;default:throw Error(a(462))}}iO();break}catch(te){Ib(t,te)}while(!0);return Tr=Di=null,V.H=o,V.A=c,gt=i,He!==null?0:(st=null,Ye=0,qu(),xt)}function iO(){for(;He!==null&&!gn();)$b(He)}function $b(t){var n=fb(t.alternate,t,_r);t.memoizedProps=t.pendingProps,n===null?Ss(t):He=n}function Gb(t){var n=t,i=n.alternate;switch(n.tag){case 15:case 0:n=lb(i,n,n.pendingProps,n.type,void 0,Ye);break;case 11:n=lb(i,n,n.pendingProps,n.type.render,n.ref,Ye);break;case 5:hd(n);default:Lb(i,n),n=He=zb(n,_r),n=fb(i,n,_r)}t.memoizedProps=t.pendingProps,n===null?Ss(t):He=n}function Nl(t,n,i,o){Tr=Di=null,hd(n),xl=null,eo=0;var c=n.return;try{if(F3(t,c,n,i,Ye)){xt=1,us(t,Dn(i,t.current)),He=null;return}}catch(p){if(c!==null)throw He=c,p;xt=1,us(t,Dn(i,t.current)),He=null;return}n.flags&32768?(Xe||o===1?t=!0:_l||Ye&536870912?t=!1:(Mr=t=!0,(o===2||o===3||o===6)&&(o=Bn.current,o!==null&&o.tag===13&&(o.flags|=16384))),Yb(n,t)):Ss(n)}function Ss(t){var n=t;do{if(n.flags&32768){Yb(n,Mr);return}t=n.return;var i=Z3(n.alternate,n,_r);if(i!==null){He=i;return}if(n=n.sibling,n!==null){He=n;return}He=n=t}while(n!==null);xt===0&&(xt=5)}function Yb(t,n){do{var i=W3(t.alternate,t);if(i!==null){i.flags&=32767,He=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(t=t.sibling,t!==null)){He=t;return}He=t=i}while(t!==null);xt=6,He=null}function Fb(t,n,i,o,c,p,b,C,D,U){var te=V.T,ae=ie.p;try{ie.p=2,V.T=null,lO(t,n,i,o,ae,c,p,b,C,D,U)}finally{V.T=te,ie.p=ae}}function lO(t,n,i,o,c,p,b,C){do Bl();while(Ui!==null);if(gt&6)throw Error(a(327));var D=t.finishedWork;if(o=t.finishedLanes,D===null)return null;if(t.finishedWork=null,t.finishedLanes=0,D===t.current)throw Error(a(177));t.callbackNode=null,t.callbackPriority=0,t.cancelPendingCommit=null;var U=D.lanes|D.childLanes;if(U|=Jf,U4(t,o,U,p,b,C),t===st&&(He=st=null,Ye=0),!(D.subtreeFlags&10256)&&!(D.flags&10256)||ys||(ys=!0,ip=U,lp=i,sO(de,function(){return Bl(),null})),i=(D.flags&15990)!==0,D.subtreeFlags&15990||i?(i=V.T,V.T=null,p=ie.p,ie.p=2,b=gt,gt|=4,X3(t,D),Ab(D,t),O3(Ep,t.containerInfo),_s=!!xp,Ep=xp=null,t.current=D,Eb(t,D.alternate,D),xe(),gt=b,ie.p=p,V.T=i):t.current=D,ys?(ys=!1,Ui=t,So=o):Pb(t,U),U=t.pendingLanes,U===0&&(ri=null),gi(D.stateNode),fr(t),n!==null)for(c=t.onRecoverableError,D=0;D<n.length;D++)U=n[D],c(U.value,{componentStack:U.stack});return So&3&&Bl(),U=t.pendingLanes,o&4194218&&U&42?t===ap?vo++:(vo=0,ap=t):vo=0,xo(0),null}function Pb(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,no(n)))}function Bl(){if(Ui!==null){var t=Ui,n=ip;ip=0;var i=n0(So),o=V.T,c=ie.p;try{if(ie.p=32>i?32:i,V.T=null,Ui===null)var p=!1;else{i=lp,lp=null;var b=Ui,C=So;if(Ui=null,So=0,gt&6)throw Error(a(331));var D=gt;if(gt|=4,_b(b.current),Rb(b,b.current,C,i),gt=D,xo(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(Ut,b)}catch{}p=!0}return p}finally{ie.p=c,V.T=o,Pb(t,n)}}return!1}function Xb(t,n,i){n=Dn(i,n),n=Rd(t.stateNode,n,2),t=Zr(t,n,2),t!==null&&(Ua(t,2),fr(t))}function lt(t,n,i){if(t.tag===3)Xb(t,t,i);else for(;n!==null;){if(n.tag===3){Xb(n,t,i);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(ri===null||!ri.has(o))){t=Dn(i,t),i=Z1(2),o=Zr(n,i,2),o!==null&&(W1(i,o,n,t),Ua(o,2),fr(o));break}}n=n.return}}function fp(t,n,i){var o=t.pingCache;if(o===null){o=t.pingCache=new eO;var c=new Set;o.set(n,c)}else c=o.get(n),c===void 0&&(c=new Set,o.set(n,c));c.has(i)||(ep=!0,c.add(i),t=aO.bind(null,t,n,i),n.then(t,t))}function aO(t,n,i){var o=t.pingCache;o!==null&&o.delete(n),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,st===t&&(Ye&i)===i&&(xt===4||xt===3&&(Ye&62914560)===Ye&&300>ze()-rp?!(gt&2)&&zl(t,0):tp|=i,Dl===Ye&&(Dl=0)),fr(t)}function Qb(t,n){n===0&&(n=Jy()),t=$r(t,n),t!==null&&(Ua(t,n),fr(t))}function oO(t){var n=t.memoizedState,i=0;n!==null&&(i=n.retryLane),Qb(t,i)}function uO(t,n){var i=0;switch(t.tag){case 13:var o=t.stateNode,c=t.memoizedState;c!==null&&(i=c.retryLane);break;case 19:o=t.stateNode;break;case 22:o=t.stateNode._retryCache;break;default:throw Error(a(314))}o!==null&&o.delete(n),Qb(t,i)}function sO(t,n){return ht(t,n)}var vs=null,Ll=null,dp=!1,xs=!1,pp=!1,ji=0;function fr(t){t!==Ll&&t.next===null&&(Ll===null?vs=Ll=t:Ll=Ll.next=t),xs=!0,dp||(dp=!0,fO(cO))}function xo(t,n){if(!pp&&xs){pp=!0;do for(var i=!1,o=vs;o!==null;){if(t!==0){var c=o.pendingLanes;if(c===0)var p=0;else{var b=o.suspendedLanes,C=o.pingedLanes;p=(1<<31-Ot(42|t)+1)-1,p&=c&~(b&~C),p=p&201326677?p&201326677|1:p?p|2:0}p!==0&&(i=!0,Wb(o,p))}else p=Ye,p=Mu(o,o===st?p:0),!(p&3)||La(o,p)||(i=!0,Wb(o,p));o=o.next}while(i);pp=!1}}function cO(){xs=dp=!1;var t=0;ji!==0&&(SO()&&(t=ji),ji=0);for(var n=ze(),i=null,o=vs;o!==null;){var c=o.next,p=Kb(o,n);p===0?(o.next=null,i===null?vs=c:i.next=c,c===null&&(Ll=i)):(i=o,(t!==0||p&3)&&(xs=!0)),o=c}xo(t)}function Kb(t,n){for(var i=t.suspendedLanes,o=t.pingedLanes,c=t.expirationTimes,p=t.pendingLanes&-62914561;0<p;){var b=31-Ot(p),C=1<<b,D=c[b];D===-1?(!(C&i)||C&o)&&(c[b]=L4(C,n)):D<=n&&(t.expiredLanes|=C),p&=~C}if(n=st,i=Ye,i=Mu(t,t===n?i:0),o=t.callbackNode,i===0||t===n&&ct===2||t.cancelPendingCommit!==null)return o!==null&&o!==null&&Qt(o),t.callbackNode=null,t.callbackPriority=0;if(!(i&3)||La(t,i)){if(n=i&-i,n===t.callbackPriority)return n;switch(o!==null&&Qt(o),n0(i)){case 2:case 8:i=le;break;case 32:i=de;break;case 268435456:i=Ve;break;default:i=de}return o=Zb.bind(null,t),i=ht(i,o),t.callbackPriority=n,t.callbackNode=i,n}return o!==null&&o!==null&&Qt(o),t.callbackPriority=2,t.callbackNode=null,2}function Zb(t,n){var i=t.callbackNode;if(Bl()&&t.callbackNode!==i)return null;var o=Ye;return o=Mu(t,t===st?o:0),o===0?null:(jb(t,o,n),Kb(t,ze()),t.callbackNode!=null&&t.callbackNode===i?Zb.bind(null,t):null)}function Wb(t,n){if(Bl())return null;jb(t,n,!0)}function fO(t){xO(function(){gt&6?ht(X,t):t()})}function hp(){return ji===0&&(ji=Wy()),ji}function Jb(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Bu(""+t)}function eS(t,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,t.id&&i.setAttribute("form",t.id),n.parentNode.insertBefore(i,n),t=new FormData(t),i.parentNode.removeChild(i),t}function dO(t,n,i,o,c){if(n==="submit"&&i&&i.stateNode===c){var p=Jb((c[un]||null).action),b=o.submitter;b&&(n=(n=b[un]||null)?Jb(n.formAction):b.getAttribute("formAction"),n!==null&&(p=n,b=null));var C=new Hu("action","action",null,o,c);t.push({event:C,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(ji!==0){var D=b?eS(c,b):new FormData(c);Cd(i,{pending:!0,data:D,method:c.method,action:p},null,D)}}else typeof p=="function"&&(C.preventDefault(),D=b?eS(c,b):new FormData(c),Cd(i,{pending:!0,data:D,method:c.method,action:p},p,D))},currentTarget:c}]})}}for(var mp=0;mp<F0.length;mp++){var gp=F0[mp],pO=gp.toLowerCase(),hO=gp[0].toUpperCase()+gp.slice(1);Pn(pO,"on"+hO)}Pn(V0,"onAnimationEnd"),Pn(q0,"onAnimationIteration"),Pn($0,"onAnimationStart"),Pn("dblclick","onDoubleClick"),Pn("focusin","onFocus"),Pn("focusout","onBlur"),Pn(_3,"onTransitionRun"),Pn(D3,"onTransitionStart"),Pn(z3,"onTransitionCancel"),Pn(G0,"onTransitionEnd"),sl("onMouseEnter",["mouseout","mouseover"]),sl("onMouseLeave",["mouseout","mouseover"]),sl("onPointerEnter",["pointerout","pointerover"]),sl("onPointerLeave",["pointerout","pointerover"]),Si("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Si("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Si("onBeforeInput",["compositionend","keypress","textInput","paste"]),Si("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Si("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Si("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Eo="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(" "),mO=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Eo));function tS(t,n){n=(n&4)!==0;for(var i=0;i<t.length;i++){var o=t[i],c=o.event;o=o.listeners;e:{var p=void 0;if(n)for(var b=o.length-1;0<=b;b--){var C=o[b],D=C.instance,U=C.currentTarget;if(C=C.listener,D!==p&&c.isPropagationStopped())break e;p=C,c.currentTarget=U;try{p(c)}catch(te){os(te)}c.currentTarget=null,p=D}else for(b=0;b<o.length;b++){if(C=o[b],D=C.instance,U=C.currentTarget,C=C.listener,D!==p&&c.isPropagationStopped())break e;p=C,c.currentTarget=U;try{p(c)}catch(te){os(te)}c.currentTarget=null,p=D}}}}function $e(t,n){var i=n[Df];i===void 0&&(i=n[Df]=new Set);var o=t+"__bubble";i.has(o)||(nS(n,t,2,!1),i.add(o))}function yp(t,n,i){var o=0;n&&(o|=4),nS(i,t,o,n)}var Es="_reactListening"+Math.random().toString(36).slice(2);function bp(t){if(!t[Es]){t[Es]=!0,l0.forEach(function(i){i!=="selectionchange"&&(mO.has(i)||yp(i,!1,t),yp(i,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[Es]||(n[Es]=!0,yp("selectionchange",!1,n))}}function nS(t,n,i,o){switch(wS(n)){case 2:var c=VO;break;case 8:c=qO;break;default:c=_p}i=c.bind(null,n,i,t),c=void 0,!If||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(c=!0),o?c!==void 0?t.addEventListener(n,i,{capture:!0,passive:c}):t.addEventListener(n,i,!0):c!==void 0?t.addEventListener(n,i,{passive:c}):t.addEventListener(n,i,!1)}function Sp(t,n,i,o,c){var p=o;if(!(n&1)&&!(n&2)&&o!==null)e:for(;;){if(o===null)return;var b=o.tag;if(b===3||b===4){var C=o.stateNode.containerInfo;if(C===c||C.nodeType===8&&C.parentNode===c)break;if(b===4)for(b=o.return;b!==null;){var D=b.tag;if((D===3||D===4)&&(D=b.stateNode.containerInfo,D===c||D.nodeType===8&&D.parentNode===c))return;b=b.return}for(;C!==null;){if(b=bi(C),b===null)return;if(D=b.tag,D===5||D===6||D===26||D===27){o=p=b;continue e}C=C.parentNode}}o=o.return}y0(function(){var U=p,te=jf(i),ae=[];e:{var G=Y0.get(t);if(G!==void 0){var J=Hu,Se=t;switch(t){case"keypress":if(Uu(i)===0)break e;case"keydown":case"keyup":J=u3;break;case"focusin":Se="focus",J=Gf;break;case"focusout":Se="blur",J=Gf;break;case"beforeblur":case"afterblur":J=Gf;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=v0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=K4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=f3;break;case V0:case q0:case $0:J=J4;break;case G0:J=p3;break;case"scroll":case"scrollend":J=X4;break;case"wheel":J=m3;break;case"copy":case"cut":case"paste":J=t3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=E0;break;case"toggle":case"beforetoggle":J=y3}var Re=(n&4)!==0,Et=!Re&&(t==="scroll"||t==="scrollend"),j=Re?G!==null?G+"Capture":null:G;Re=[];for(var L=U,q;L!==null;){var re=L;if(q=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||q===null||j===null||(re=Ia(L,j),re!=null&&Re.push(Co(L,re,q))),Et)break;L=L.return}0<Re.length&&(G=new J(G,Se,null,i,te),ae.push({event:G,listeners:Re}))}}if(!(n&7)){e:{if(G=t==="mouseover"||t==="pointerover",J=t==="mouseout"||t==="pointerout",G&&i!==Uf&&(Se=i.relatedTarget||i.fromElement)&&(bi(Se)||Se[al]))break e;if((J||G)&&(G=te.window===te?te:(G=te.ownerDocument)?G.defaultView||G.parentWindow:window,J?(Se=i.relatedTarget||i.toElement,J=U,Se=Se?bi(Se):null,Se!==null&&(Et=Q(Se),Re=Se.tag,Se!==Et||Re!==5&&Re!==27&&Re!==6)&&(Se=null)):(J=null,Se=U),J!==Se)){if(Re=v0,re="onMouseLeave",j="onMouseEnter",L="mouse",(t==="pointerout"||t==="pointerover")&&(Re=E0,re="onPointerLeave",j="onPointerEnter",L="pointer"),Et=J==null?G:Ha(J),q=Se==null?G:Ha(Se),G=new Re(re,L+"leave",J,i,te),G.target=Et,G.relatedTarget=q,re=null,bi(te)===U&&(Re=new Re(j,L+"enter",Se,i,te),Re.target=q,Re.relatedTarget=Et,re=Re),Et=re,J&&Se)t:{for(Re=J,j=Se,L=0,q=Re;q;q=Ul(q))L++;for(q=0,re=j;re;re=Ul(re))q++;for(;0<L-q;)Re=Ul(Re),L--;for(;0<q-L;)j=Ul(j),q--;for(;L--;){if(Re===j||j!==null&&Re===j.alternate)break t;Re=Ul(Re),j=Ul(j)}Re=null}else Re=null;J!==null&&rS(ae,G,J,Re,!1),Se!==null&&Et!==null&&rS(ae,Et,Se,Re,!0)}}e:{if(G=U?Ha(U):window,J=G.nodeName&&G.nodeName.toLowerCase(),J==="select"||J==="input"&&G.type==="file")var be=M0;else if(R0(G))if(_0)be=k3;else{be=w3;var je=T3}else J=G.nodeName,!J||J.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?U&&Lf(U.elementType)&&(be=M0):be=A3;if(be&&(be=be(t,U))){O0(ae,be,i,te);break e}je&&je(t,G,U),t==="focusout"&&U&&G.type==="number"&&U.memoizedProps.value!=null&&Bf(G,"number",G.value)}switch(je=U?Ha(U):window,t){case"focusin":(R0(je)||je.contentEditable==="true")&&(ml=je,Kf=U,Xa=null);break;case"focusout":Xa=Kf=ml=null;break;case"mousedown":Zf=!0;break;case"contextmenu":case"mouseup":case"dragend":Zf=!1,H0(ae,i,te);break;case"selectionchange":if(M3)break;case"keydown":case"keyup":H0(ae,i,te)}var ve;if(Ff)e:{switch(t){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else hl?A0(t,i)&&(Te="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Te="onCompositionStart");Te&&(C0&&i.locale!=="ko"&&(hl||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&hl&&(ve=b0()):(qr=te,Vf="value"in qr?qr.value:qr.textContent,hl=!0)),je=Cs(U,Te),0<je.length&&(Te=new x0(Te,t,null,i,te),ae.push({event:Te,listeners:je}),ve?Te.data=ve:(ve=k0(i),ve!==null&&(Te.data=ve)))),(ve=S3?v3(t,i):x3(t,i))&&(Te=Cs(U,"onBeforeInput"),0<Te.length&&(je=new x0("onBeforeInput","beforeinput",null,i,te),ae.push({event:je,listeners:Te}),je.data=ve)),dO(ae,t,U,i,te)}tS(ae,n)})}function Co(t,n,i){return{instance:t,listener:n,currentTarget:i}}function Cs(t,n){for(var i=n+"Capture",o=[];t!==null;){var c=t,p=c.stateNode;c=c.tag,c!==5&&c!==26&&c!==27||p===null||(c=Ia(t,i),c!=null&&o.unshift(Co(t,c,p)),c=Ia(t,n),c!=null&&o.push(Co(t,c,p))),t=t.return}return o}function Ul(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function rS(t,n,i,o,c){for(var p=n._reactName,b=[];i!==null&&i!==o;){var C=i,D=C.alternate,U=C.stateNode;if(C=C.tag,D!==null&&D===o)break;C!==5&&C!==26&&C!==27||U===null||(D=U,c?(U=Ia(i,p),U!=null&&b.unshift(Co(i,U,D))):c||(U=Ia(i,p),U!=null&&b.push(Co(i,U,D)))),i=i.return}b.length!==0&&t.push({event:n,listeners:b})}var gO=/\r\n?/g,yO=/\u0000|\uFFFD/g;function iS(t){return(typeof t=="string"?t:""+t).replace(gO,`
|
|
41
|
-
`).replace(yO,"")}function lS(t,n){return n=iS(n),iS(t)===n}function Ts(){}function nt(t,n,i,o,c,p){switch(i){case"children":typeof o=="string"?n==="body"||n==="textarea"&&o===""||fl(t,o):(typeof o=="number"||typeof o=="bigint")&&n!=="body"&&fl(t,""+o);break;case"className":Du(t,"class",o);break;case"tabIndex":Du(t,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Du(t,i,o);break;case"style":m0(t,o,p);break;case"data":if(n!=="object"){Du(t,"data",o);break}case"src":case"href":if(o===""&&(n!=="a"||i!=="href")){t.removeAttribute(i);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(i);break}o=Bu(""+o),t.setAttribute(i,o);break;case"action":case"formAction":if(typeof o=="function"){t.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(i==="formAction"?(n!=="input"&&nt(t,n,"name",c.name,c,null),nt(t,n,"formEncType",c.formEncType,c,null),nt(t,n,"formMethod",c.formMethod,c,null),nt(t,n,"formTarget",c.formTarget,c,null)):(nt(t,n,"encType",c.encType,c,null),nt(t,n,"method",c.method,c,null),nt(t,n,"target",c.target,c,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(i);break}o=Bu(""+o),t.setAttribute(i,o);break;case"onClick":o!=null&&(t.onclick=Ts);break;case"onScroll":o!=null&&$e("scroll",t);break;case"onScrollEnd":o!=null&&$e("scrollend",t);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(i=o.__html,i!=null){if(c.children!=null)throw Error(a(60));t.innerHTML=i}}break;case"multiple":t.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":t.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){t.removeAttribute("xlink:href");break}i=Bu(""+o),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,""+o):t.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":o===!0?t.setAttribute(i,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,o):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?t.setAttribute(i,o):t.removeAttribute(i);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?t.removeAttribute(i):t.setAttribute(i,o);break;case"popover":$e("beforetoggle",t),$e("toggle",t),_u(t,"popover",o);break;case"xlinkActuate":br(t,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":br(t,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":br(t,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":br(t,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":br(t,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":br(t,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":br(t,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":br(t,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":br(t,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":_u(t,"is",o);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=F4.get(i)||i,_u(t,i,o))}}function vp(t,n,i,o,c,p){switch(i){case"style":m0(t,o,p);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(i=o.__html,i!=null){if(c.children!=null)throw Error(a(60));t.innerHTML=i}}break;case"children":typeof o=="string"?fl(t,o):(typeof o=="number"||typeof o=="bigint")&&fl(t,""+o);break;case"onScroll":o!=null&&$e("scroll",t);break;case"onScrollEnd":o!=null&&$e("scrollend",t);break;case"onClick":o!=null&&(t.onclick=Ts);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!a0.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(c=i.endsWith("Capture"),n=i.slice(2,c?i.length-7:void 0),p=t[un]||null,p=p!=null?p[i]:null,typeof p=="function"&&t.removeEventListener(n,p,c),typeof o=="function")){typeof p!="function"&&p!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(n,o,c);break e}i in t?t[i]=o:o===!0?t.setAttribute(i,""):_u(t,i,o)}}}function Yt(t,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$e("error",t),$e("load",t);var o=!1,c=!1,p;for(p in i)if(i.hasOwnProperty(p)){var b=i[p];if(b!=null)switch(p){case"src":o=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:nt(t,n,p,b,i,null)}}c&&nt(t,n,"srcSet",i.srcSet,i,null),o&&nt(t,n,"src",i.src,i,null);return;case"input":$e("invalid",t);var C=p=b=c=null,D=null,U=null;for(o in i)if(i.hasOwnProperty(o)){var te=i[o];if(te!=null)switch(o){case"name":c=te;break;case"type":b=te;break;case"checked":D=te;break;case"defaultChecked":U=te;break;case"value":p=te;break;case"defaultValue":C=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(a(137,n));break;default:nt(t,n,o,te,i,null)}}f0(t,p,C,D,U,b,c,!1),zu(t);return;case"select":$e("invalid",t),o=b=p=null;for(c in i)if(i.hasOwnProperty(c)&&(C=i[c],C!=null))switch(c){case"value":p=C;break;case"defaultValue":b=C;break;case"multiple":o=C;default:nt(t,n,c,C,i,null)}n=p,i=b,t.multiple=!!o,n!=null?cl(t,!!o,n,!1):i!=null&&cl(t,!!o,i,!0);return;case"textarea":$e("invalid",t),p=c=o=null;for(b in i)if(i.hasOwnProperty(b)&&(C=i[b],C!=null))switch(b){case"value":o=C;break;case"defaultValue":c=C;break;case"children":p=C;break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(a(91));break;default:nt(t,n,b,C,i,null)}p0(t,o,c,p),zu(t);return;case"option":for(D in i)if(i.hasOwnProperty(D)&&(o=i[D],o!=null))switch(D){case"selected":t.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:nt(t,n,D,o,i,null)}return;case"dialog":$e("cancel",t),$e("close",t);break;case"iframe":case"object":$e("load",t);break;case"video":case"audio":for(o=0;o<Eo.length;o++)$e(Eo[o],t);break;case"image":$e("error",t),$e("load",t);break;case"details":$e("toggle",t);break;case"embed":case"source":case"link":$e("error",t),$e("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in i)if(i.hasOwnProperty(U)&&(o=i[U],o!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:nt(t,n,U,o,i,null)}return;default:if(Lf(n)){for(te in i)i.hasOwnProperty(te)&&(o=i[te],o!==void 0&&vp(t,n,te,o,i,void 0));return}}for(C in i)i.hasOwnProperty(C)&&(o=i[C],o!=null&&nt(t,n,C,o,i,null))}function bO(t,n,i,o){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,p=null,b=null,C=null,D=null,U=null,te=null;for(J in i){var ae=i[J];if(i.hasOwnProperty(J)&&ae!=null)switch(J){case"checked":break;case"value":break;case"defaultValue":D=ae;default:o.hasOwnProperty(J)||nt(t,n,J,null,o,ae)}}for(var G in o){var J=o[G];if(ae=i[G],o.hasOwnProperty(G)&&(J!=null||ae!=null))switch(G){case"type":p=J;break;case"name":c=J;break;case"checked":U=J;break;case"defaultChecked":te=J;break;case"value":b=J;break;case"defaultValue":C=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(a(137,n));break;default:J!==ae&&nt(t,n,G,J,o,ae)}}Nf(t,b,C,D,U,te,p,c);return;case"select":J=b=C=G=null;for(p in i)if(D=i[p],i.hasOwnProperty(p)&&D!=null)switch(p){case"value":break;case"multiple":J=D;default:o.hasOwnProperty(p)||nt(t,n,p,null,o,D)}for(c in o)if(p=o[c],D=i[c],o.hasOwnProperty(c)&&(p!=null||D!=null))switch(c){case"value":G=p;break;case"defaultValue":C=p;break;case"multiple":b=p;default:p!==D&&nt(t,n,c,p,o,D)}n=C,i=b,o=J,G!=null?cl(t,!!i,G,!1):!!o!=!!i&&(n!=null?cl(t,!!i,n,!0):cl(t,!!i,i?[]:"",!1));return;case"textarea":J=G=null;for(C in i)if(c=i[C],i.hasOwnProperty(C)&&c!=null&&!o.hasOwnProperty(C))switch(C){case"value":break;case"children":break;default:nt(t,n,C,null,o,c)}for(b in o)if(c=o[b],p=i[b],o.hasOwnProperty(b)&&(c!=null||p!=null))switch(b){case"value":G=c;break;case"defaultValue":J=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(a(91));break;default:c!==p&&nt(t,n,b,c,o,p)}d0(t,G,J);return;case"option":for(var Se in i)if(G=i[Se],i.hasOwnProperty(Se)&&G!=null&&!o.hasOwnProperty(Se))switch(Se){case"selected":t.selected=!1;break;default:nt(t,n,Se,null,o,G)}for(D in o)if(G=o[D],J=i[D],o.hasOwnProperty(D)&&G!==J&&(G!=null||J!=null))switch(D){case"selected":t.selected=G&&typeof G!="function"&&typeof G!="symbol";break;default:nt(t,n,D,G,o,J)}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 Re in i)G=i[Re],i.hasOwnProperty(Re)&&G!=null&&!o.hasOwnProperty(Re)&&nt(t,n,Re,null,o,G);for(U in o)if(G=o[U],J=i[U],o.hasOwnProperty(U)&&G!==J&&(G!=null||J!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(a(137,n));break;default:nt(t,n,U,G,o,J)}return;default:if(Lf(n)){for(var Et in i)G=i[Et],i.hasOwnProperty(Et)&&G!==void 0&&!o.hasOwnProperty(Et)&&vp(t,n,Et,void 0,o,G);for(te in o)G=o[te],J=i[te],!o.hasOwnProperty(te)||G===J||G===void 0&&J===void 0||vp(t,n,te,G,o,J);return}}for(var j in i)G=i[j],i.hasOwnProperty(j)&&G!=null&&!o.hasOwnProperty(j)&&nt(t,n,j,null,o,G);for(ae in o)G=o[ae],J=i[ae],!o.hasOwnProperty(ae)||G===J||G==null&&J==null||nt(t,n,ae,G,o,J)}var xp=null,Ep=null;function ws(t){return t.nodeType===9?t:t.ownerDocument}function aS(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function oS(t,n){if(t===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&n==="foreignObject"?0:t}function Cp(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Tp=null;function SO(){var t=window.event;return t&&t.type==="popstate"?t===Tp?!1:(Tp=t,!0):(Tp=null,!1)}var uS=typeof setTimeout=="function"?setTimeout:void 0,vO=typeof clearTimeout=="function"?clearTimeout:void 0,sS=typeof Promise=="function"?Promise:void 0,xO=typeof queueMicrotask=="function"?queueMicrotask:typeof sS<"u"?function(t){return sS.resolve(null).then(t).catch(EO)}:uS;function EO(t){setTimeout(function(){throw t})}function wp(t,n){var i=n,o=0;do{var c=i.nextSibling;if(t.removeChild(i),c&&c.nodeType===8)if(i=c.data,i==="/$"){if(o===0){t.removeChild(c),_o(n);return}o--}else i!=="$"&&i!=="$?"&&i!=="$!"||o++;i=c}while(i);_o(n)}function Ap(t){var n=t.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Ap(i),zf(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function CO(t,n,i,o){for(;t.nodeType===1;){var c=i;if(t.nodeName.toLowerCase()!==n.toLowerCase()){if(!o&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(o){if(!t[ja])switch(n){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(p=t.getAttribute("rel"),p==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(p!==c.rel||t.getAttribute("href")!==(c.href==null?null:c.href)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||t.getAttribute("title")!==(c.title==null?null:c.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(p=t.getAttribute("src"),(p!==(c.src==null?null:c.src)||t.getAttribute("type")!==(c.type==null?null:c.type)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&p&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(n==="input"&&t.type==="hidden"){var p=c.name==null?null:""+c.name;if(c.type==="hidden"&&t.getAttribute("name")===p)return t}else return t;if(t=Kn(t.nextSibling),t===null)break}return null}function TO(t,n,i){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=Kn(t.nextSibling),t===null))return null;return t}function Kn(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?"||n==="F!"||n==="F")break;if(n==="/$")return null}}return t}function cS(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"){if(n===0)return t;n--}else i==="/$"&&n++}t=t.previousSibling}return null}function fS(t,n,i){switch(n=ws(i),t){case"html":if(t=n.documentElement,!t)throw Error(a(452));return t;case"head":if(t=n.head,!t)throw Error(a(453));return t;case"body":if(t=n.body,!t)throw Error(a(454));return t;default:throw Error(a(451))}}var In=new Map,dS=new Set;function As(t){return typeof t.getRootNode=="function"?t.getRootNode():t.ownerDocument}var zr=ie.d;ie.d={f:wO,r:AO,D:kO,C:RO,L:OO,m:MO,X:DO,S:_O,M:zO};function wO(){var t=zr.f(),n=bs();return t||n}function AO(t){var n=ol(t);n!==null&&n.tag===5&&n.type==="form"?H1(n):zr.r(t)}var jl=typeof document>"u"?null:document;function pS(t,n,i){var o=jl;if(o&&typeof n=="string"&&n){var c=Mn(n);c='link[rel="'+t+'"][href="'+c+'"]',typeof i=="string"&&(c+='[crossorigin="'+i+'"]'),dS.has(c)||(dS.add(c),t={rel:t,crossOrigin:i,href:n},o.querySelector(c)===null&&(n=o.createElement("link"),Yt(n,"link",t),jt(n),o.head.appendChild(n)))}}function kO(t){zr.D(t),pS("dns-prefetch",t,null)}function RO(t,n){zr.C(t,n),pS("preconnect",t,n)}function OO(t,n,i){zr.L(t,n,i);var o=jl;if(o&&t&&n){var c='link[rel="preload"][as="'+Mn(n)+'"]';n==="image"&&i&&i.imageSrcSet?(c+='[imagesrcset="'+Mn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(c+='[imagesizes="'+Mn(i.imageSizes)+'"]')):c+='[href="'+Mn(t)+'"]';var p=c;switch(n){case"style":p=Hl(t);break;case"script":p=Il(t)}In.has(p)||(t=E({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:t,as:n},i),In.set(p,t),o.querySelector(c)!==null||n==="style"&&o.querySelector(To(p))||n==="script"&&o.querySelector(wo(p))||(n=o.createElement("link"),Yt(n,"link",t),jt(n),o.head.appendChild(n)))}}function MO(t,n){zr.m(t,n);var i=jl;if(i&&t){var o=n&&typeof n.as=="string"?n.as:"script",c='link[rel="modulepreload"][as="'+Mn(o)+'"][href="'+Mn(t)+'"]',p=c;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Il(t)}if(!In.has(p)&&(t=E({rel:"modulepreload",href:t},n),In.set(p,t),i.querySelector(c)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(wo(p)))return}o=i.createElement("link"),Yt(o,"link",t),jt(o),i.head.appendChild(o)}}}function _O(t,n,i){zr.S(t,n,i);var o=jl;if(o&&t){var c=ul(o).hoistableStyles,p=Hl(t);n=n||"default";var b=c.get(p);if(!b){var C={loading:0,preload:null};if(b=o.querySelector(To(p)))C.loading=5;else{t=E({rel:"stylesheet",href:t,"data-precedence":n},i),(i=In.get(p))&&kp(t,i);var D=b=o.createElement("link");jt(D),Yt(D,"link",t),D._p=new Promise(function(U,te){D.onload=U,D.onerror=te}),D.addEventListener("load",function(){C.loading|=1}),D.addEventListener("error",function(){C.loading|=2}),C.loading|=4,ks(b,n,o)}b={type:"stylesheet",instance:b,count:1,state:C},c.set(p,b)}}}function DO(t,n){zr.X(t,n);var i=jl;if(i&&t){var o=ul(i).hoistableScripts,c=Il(t),p=o.get(c);p||(p=i.querySelector(wo(c)),p||(t=E({src:t,async:!0},n),(n=In.get(c))&&Rp(t,n),p=i.createElement("script"),jt(p),Yt(p,"link",t),i.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(c,p))}}function zO(t,n){zr.M(t,n);var i=jl;if(i&&t){var o=ul(i).hoistableScripts,c=Il(t),p=o.get(c);p||(p=i.querySelector(wo(c)),p||(t=E({src:t,async:!0,type:"module"},n),(n=In.get(c))&&Rp(t,n),p=i.createElement("script"),jt(p),Yt(p,"link",t),i.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(c,p))}}function hS(t,n,i,o){var c=(c=ge.current)?As(c):null;if(!c)throw Error(a(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=Hl(i.href),i=ul(c).hoistableStyles,o=i.get(n),o||(o={type:"style",instance:null,count:0,state:null},i.set(n,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=Hl(i.href);var p=ul(c).hoistableStyles,b=p.get(t);if(b||(c=c.ownerDocument||c,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(t,b),(p=c.querySelector(To(t)))&&!p._p&&(b.instance=p,b.state.loading=5),In.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},In.set(t,i),p||NO(c,t,i,b.state))),n&&o===null)throw Error(a(528,""));return b}if(n&&o!==null)throw Error(a(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Il(i),i=ul(c).hoistableScripts,o=i.get(n),o||(o={type:"script",instance:null,count:0,state:null},i.set(n,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,t))}}function Hl(t){return'href="'+Mn(t)+'"'}function To(t){return'link[rel="stylesheet"]['+t+"]"}function mS(t){return E({},t,{"data-precedence":t.precedence,precedence:null})}function NO(t,n,i,o){t.querySelector('link[rel="preload"][as="style"]['+n+"]")?o.loading=1:(n=t.createElement("link"),o.preload=n,n.addEventListener("load",function(){return o.loading|=1}),n.addEventListener("error",function(){return o.loading|=2}),Yt(n,"link",i),jt(n),t.head.appendChild(n))}function Il(t){return'[src="'+Mn(t)+'"]'}function wo(t){return"script[async]"+t}function gS(t,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var o=t.querySelector('style[data-href~="'+Mn(i.href)+'"]');if(o)return n.instance=o,jt(o),o;var c=E({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return o=(t.ownerDocument||t).createElement("style"),jt(o),Yt(o,"style",c),ks(o,i.precedence,t),n.instance=o;case"stylesheet":c=Hl(i.href);var p=t.querySelector(To(c));if(p)return n.state.loading|=4,n.instance=p,jt(p),p;o=mS(i),(c=In.get(c))&&kp(o,c),p=(t.ownerDocument||t).createElement("link"),jt(p);var b=p;return b._p=new Promise(function(C,D){b.onload=C,b.onerror=D}),Yt(p,"link",o),n.state.loading|=4,ks(p,i.precedence,t),n.instance=p;case"script":return p=Il(i.src),(c=t.querySelector(wo(p)))?(n.instance=c,jt(c),c):(o=i,(c=In.get(p))&&(o=E({},i),Rp(o,c)),t=t.ownerDocument||t,c=t.createElement("script"),jt(c),Yt(c,"link",o),t.head.appendChild(c),n.instance=c);case"void":return null;default:throw Error(a(443,n.type))}else n.type==="stylesheet"&&!(n.state.loading&4)&&(o=n.instance,n.state.loading|=4,ks(o,i.precedence,t));return n.instance}function ks(t,n,i){for(var o=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=o.length?o[o.length-1]:null,p=c,b=0;b<o.length;b++){var C=o[b];if(C.dataset.precedence===n)p=C;else if(p!==c)break}p?p.parentNode.insertBefore(t,p.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(t,n.firstChild))}function kp(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.title==null&&(t.title=n.title)}function Rp(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}var Rs=null;function yS(t,n,i){if(Rs===null){var o=new Map,c=Rs=new Map;c.set(i,o)}else c=Rs,o=c.get(i),o||(o=new Map,c.set(i,o));if(o.has(t))return o;for(o.set(t,null),i=i.getElementsByTagName(t),c=0;c<i.length;c++){var p=i[c];if(!(p[ja]||p[Kt]||t==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var b=p.getAttribute(n)||"";b=t+b;var C=o.get(b);C?C.push(p):o.set(b,[p])}}return o}function bS(t,n,i){t=t.ownerDocument||t,t.head.insertBefore(i,n==="title"?t.querySelector("head > title"):null)}function BO(t,n,i){if(i===1||n.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return t=n.disabled,typeof n.precedence=="string"&&t==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function SS(t){return!(t.type==="stylesheet"&&!(t.state.loading&3))}var Ao=null;function LO(){}function UO(t,n,i){if(Ao===null)throw Error(a(475));var o=Ao;if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var c=Hl(i.href),p=t.querySelector(To(c));if(p){t=p._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(o.count++,o=Os.bind(o),t.then(o,o)),n.state.loading|=4,n.instance=p,jt(p);return}p=t.ownerDocument||t,i=mS(i),(c=In.get(c))&&kp(i,c),p=p.createElement("link"),jt(p);var b=p;b._p=new Promise(function(C,D){b.onload=C,b.onerror=D}),Yt(p,"link",i),n.instance=p}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(o.count++,n=Os.bind(o),t.addEventListener("load",n),t.addEventListener("error",n))}}function jO(){if(Ao===null)throw Error(a(475));var t=Ao;return t.stylesheets&&t.count===0&&Op(t,t.stylesheets),0<t.count?function(n){var i=setTimeout(function(){if(t.stylesheets&&Op(t,t.stylesheets),t.unsuspend){var o=t.unsuspend;t.unsuspend=null,o()}},6e4);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(i)}}:null}function Os(){if(this.count--,this.count===0){if(this.stylesheets)Op(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ms=null;function Op(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ms=new Map,n.forEach(HO,t),Ms=null,Os.call(t))}function HO(t,n){if(!(n.state.loading&4)){var i=Ms.get(t);if(i)var o=i.get(null);else{i=new Map,Ms.set(t,i);for(var c=t.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<c.length;p++){var b=c[p];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(i.set(b.dataset.precedence,b),o=b)}o&&i.set(null,o)}c=n.instance,b=c.getAttribute("data-precedence"),p=i.get(b)||o,p===o&&i.set(null,c),i.set(b,c),this.count++,o=Os.bind(this),c.addEventListener("load",o),c.addEventListener("error",o),p?p.parentNode.insertBefore(c,p.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(c,t.firstChild)),n.state.loading|=4}}var ko={$$typeof:S,Provider:null,Consumer:null,_currentValue:ye,_currentValue2:ye,_threadCount:0};function IO(t,n,i,o,c,p,b,C){this.tag=1,this.containerInfo=t,this.finishedWork=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=_f(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_f(0),this.hiddenUpdates=_f(null),this.identifierPrefix=o,this.onUncaughtError=c,this.onCaughtError=p,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function vS(t,n,i,o,c,p,b,C,D,U,te,ae){return t=new IO(t,n,i,b,C,D,U,ae),n=1,p===!0&&(n|=24),p=jn(3,null,null,n),t.current=p,p.stateNode=t,n=od(),n.refCount++,t.pooledCache=n,n.refCount++,p.memoizedState={element:o,isDehydrated:i,cache:n},Vd(p),t}function xS(t){return t?(t=bl,t):bl}function ES(t,n,i,o,c,p){c=xS(c),o.context===null?o.context=c:o.pendingContext=c,o=Kr(n),o.payload={element:i},p=p===void 0?null:p,p!==null&&(o.callback=p),i=Zr(t,o,n),i!==null&&(en(i,t,n),so(i,t,n))}function CS(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<n?i:n}}function Mp(t,n){CS(t,n),(t=t.alternate)&&CS(t,n)}function TS(t){if(t.tag===13){var n=$r(t,67108864);n!==null&&en(n,t,67108864),Mp(t,67108864)}}var _s=!0;function VO(t,n,i,o){var c=V.T;V.T=null;var p=ie.p;try{ie.p=2,_p(t,n,i,o)}finally{ie.p=p,V.T=c}}function qO(t,n,i,o){var c=V.T;V.T=null;var p=ie.p;try{ie.p=8,_p(t,n,i,o)}finally{ie.p=p,V.T=c}}function _p(t,n,i,o){if(_s){var c=Dp(o);if(c===null)Sp(t,n,o,Ds,i),AS(t,o);else if(GO(c,t,n,i,o))o.stopPropagation();else if(AS(t,o),n&4&&-1<$O.indexOf(t)){for(;c!==null;){var p=ol(c);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var b=yi(p.pendingLanes);if(b!==0){var C=p;for(C.pendingLanes|=2,C.entangledLanes|=2;b;){var D=1<<31-Ot(b);C.entanglements[1]|=D,b&=~D}fr(p),!(gt&6)&&(ms=ze()+500,xo(0))}}break;case 13:C=$r(p,2),C!==null&&en(C,p,2),bs(),Mp(p,2)}if(p=Dp(o),p===null&&Sp(t,n,o,Ds,i),p===c)break;c=p}c!==null&&o.stopPropagation()}else Sp(t,n,o,null,i)}}function Dp(t){return t=jf(t),zp(t)}var Ds=null;function zp(t){if(Ds=null,t=bi(t),t!==null){var n=Q(t);if(n===null)t=null;else{var i=n.tag;if(i===13){if(t=ue(n),t!==null)return t;t=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null)}}return Ds=t,null}function wS(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Rt()){case X:return 2;case le:return 8;case de:case Ae:return 32;case Ve:return 268435456;default:return 32}default:return 32}}var Np=!1,ii=null,li=null,ai=null,Ro=new Map,Oo=new Map,oi=[],$O="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 AS(t,n){switch(t){case"focusin":case"focusout":ii=null;break;case"dragenter":case"dragleave":li=null;break;case"mouseover":case"mouseout":ai=null;break;case"pointerover":case"pointerout":Ro.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oo.delete(n.pointerId)}}function Mo(t,n,i,o,c,p){return t===null||t.nativeEvent!==p?(t={blockedOn:n,domEventName:i,eventSystemFlags:o,nativeEvent:p,targetContainers:[c]},n!==null&&(n=ol(n),n!==null&&TS(n)),t):(t.eventSystemFlags|=o,n=t.targetContainers,c!==null&&n.indexOf(c)===-1&&n.push(c),t)}function GO(t,n,i,o,c){switch(n){case"focusin":return ii=Mo(ii,t,n,i,o,c),!0;case"dragenter":return li=Mo(li,t,n,i,o,c),!0;case"mouseover":return ai=Mo(ai,t,n,i,o,c),!0;case"pointerover":var p=c.pointerId;return Ro.set(p,Mo(Ro.get(p)||null,t,n,i,o,c)),!0;case"gotpointercapture":return p=c.pointerId,Oo.set(p,Mo(Oo.get(p)||null,t,n,i,o,c)),!0}return!1}function kS(t){var n=bi(t.target);if(n!==null){var i=Q(n);if(i!==null){if(n=i.tag,n===13){if(n=ue(i),n!==null){t.blockedOn=n,j4(t.priority,function(){if(i.tag===13){var o=xn(),c=$r(i,o);c!==null&&en(c,i,o),Mp(i,o)}});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function zs(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var i=Dp(t.nativeEvent);if(i===null){i=t.nativeEvent;var o=new i.constructor(i.type,i);Uf=o,i.target.dispatchEvent(o),Uf=null}else return n=ol(i),n!==null&&TS(n),t.blockedOn=i,!1;n.shift()}return!0}function RS(t,n,i){zs(t)&&i.delete(n)}function YO(){Np=!1,ii!==null&&zs(ii)&&(ii=null),li!==null&&zs(li)&&(li=null),ai!==null&&zs(ai)&&(ai=null),Ro.forEach(RS),Oo.forEach(RS)}function Ns(t,n){t.blockedOn===n&&(t.blockedOn=null,Np||(Np=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,YO)))}var Bs=null;function OS(t){Bs!==t&&(Bs=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Bs===t&&(Bs=null);for(var n=0;n<t.length;n+=3){var i=t[n],o=t[n+1],c=t[n+2];if(typeof o!="function"){if(zp(o||i)===null)continue;break}var p=ol(i);p!==null&&(t.splice(n,3),n-=3,Cd(p,{pending:!0,data:c,method:i.method,action:o},o,c))}}))}function _o(t){function n(D){return Ns(D,t)}ii!==null&&Ns(ii,t),li!==null&&Ns(li,t),ai!==null&&Ns(ai,t),Ro.forEach(n),Oo.forEach(n);for(var i=0;i<oi.length;i++){var o=oi[i];o.blockedOn===t&&(o.blockedOn=null)}for(;0<oi.length&&(i=oi[0],i.blockedOn===null);)kS(i),i.blockedOn===null&&oi.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(o=0;o<i.length;o+=3){var c=i[o],p=i[o+1],b=c[un]||null;if(typeof p=="function")b||OS(i);else if(b){var C=null;if(p&&p.hasAttribute("formAction")){if(c=p,b=p[un]||null)C=b.formAction;else if(zp(c)!==null)continue}else C=b.action;typeof C=="function"?i[o+1]=C:(i.splice(o,3),o-=3),OS(i)}}}function Bp(t){this._internalRoot=t}Ls.prototype.render=Bp.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(a(409));var i=n.current,o=xn();ES(i,o,t,n,null,null)},Ls.prototype.unmount=Bp.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;t.tag===0&&Bl(),ES(t.current,2,null,t,null,null),bs(),n[al]=null}};function Ls(t){this._internalRoot=t}Ls.prototype.unstable_scheduleHydration=function(t){if(t){var n=r0();t={blockedOn:null,target:t,priority:n};for(var i=0;i<oi.length&&n!==0&&n<oi[i].priority;i++);oi.splice(i,0,t),i===0&&kS(t)}};var MS=r.version;if(MS!=="19.0.0")throw Error(a(527,MS,"19.0.0"));ie.findDOMNode=function(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(a(188)):(t=Object.keys(t).join(","),Error(a(268,t)));return t=K(n),t=t!==null?se(t):null,t=t===null?null:t.stateNode,t};var FO={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:V,findFiberByHostInstance:bi,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Us=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Us.isDisabled&&Us.supportsFiber)try{Ut=Us.inject(FO),Nt=Us}catch{}}return Vl.createRoot=function(t,n){if(!u(t))throw Error(a(299));var i=!1,o="",c=P1,p=X1,b=Q1,C=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(C=n.unstable_transitionCallbacks)),n=vS(t,1,!1,null,null,i,o,c,p,b,C,null),t[al]=n.current,bp(t.nodeType===8?t.parentNode:t),new Bp(n)},Vl.hydrateRoot=function(t,n,i){if(!u(t))throw Error(a(299));var o=!1,c="",p=P1,b=X1,C=Q1,D=null,U=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onUncaughtError!==void 0&&(p=i.onUncaughtError),i.onCaughtError!==void 0&&(b=i.onCaughtError),i.onRecoverableError!==void 0&&(C=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(D=i.unstable_transitionCallbacks),i.formState!==void 0&&(U=i.formState)),n=vS(t,1,!0,n,i??null,o,c,p,b,C,D,U),n.context=xS(null),i=n.current,o=xn(),c=Kr(o),c.callback=null,Zr(i,c,o),n.current.lanes=o,Ua(n,o),fr(n),t[al]=n.current,bp(t),new Ls(n)},Vl.version="19.0.0",Vl}var Fp;function US(){if(Fp)return Hs.exports;Fp=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(r){console.error(r)}}return e(),Hs.exports=LS(),Hs.exports}var jS=US();function No(){return No=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var l=arguments[r];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},No.apply(null,arguments)}function Pp(e){var r=Object.create(null);return function(l){return r[l]===void 0&&(r[l]=e(l)),r[l]}}var HS=/^((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|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)-.*))$/,IS=Pp(function(e){return HS.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function VS(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function qS(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var $S=function(){function e(l){var a=this;this._insertTag=function(u){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(u,s),a.tags.push(u)},this.isSpeedy=l.speedy===void 0?!0:l.speedy,this.tags=[],this.ctr=0,this.nonce=l.nonce,this.key=l.key,this.container=l.container,this.prepend=l.prepend,this.insertionPoint=l.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(a){a.forEach(this._insertTag)},r.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(qS(this));var u=this.tags[this.tags.length-1];if(this.isSpeedy){var s=VS(u);try{s.insertRule(a,s.cssRules.length)}catch{}}else u.appendChild(document.createTextNode(a));this.ctr++},r.flush=function(){this.tags.forEach(function(a){var u;return(u=a.parentNode)==null?void 0:u.removeChild(a)}),this.tags=[],this.ctr=0},e}(),Pt="-ms-",Bo="-moz-",Ke="-webkit-",Xp="comm",$s="rule",Gs="decl",GS="@import",Qp="@keyframes",YS="@layer",FS=Math.abs,Lo=String.fromCharCode,PS=Object.assign;function XS(e,r){return qt(e,0)^45?(((r<<2^qt(e,0))<<2^qt(e,1))<<2^qt(e,2))<<2^qt(e,3):0}function Kp(e){return e.trim()}function QS(e,r){return(e=r.exec(e))?e[0]:e}function Ze(e,r,l){return e.replace(r,l)}function Ys(e,r){return e.indexOf(r)}function qt(e,r){return e.charCodeAt(r)|0}function ql(e,r,l){return e.slice(r,l)}function Zn(e){return e.length}function Fs(e){return e.length}function Uo(e,r){return r.push(e),e}function KS(e,r){return e.map(r).join("")}var jo=1,Hi=1,Zp=0,tn=0,wt=0,Ii="";function Ho(e,r,l,a,u,s,f){return{value:e,root:r,parent:l,type:a,props:u,children:s,line:jo,column:Hi,length:f,return:""}}function $l(e,r){return PS(Ho("",null,null,"",null,null,0),e,{length:-e.length},r)}function ZS(){return wt}function WS(){return wt=tn>0?qt(Ii,--tn):0,Hi--,wt===10&&(Hi=1,jo--),wt}function dn(){return wt=tn<Zp?qt(Ii,tn++):0,Hi++,wt===10&&(Hi=1,jo++),wt}function Wn(){return qt(Ii,tn)}function Io(){return tn}function Gl(e,r){return ql(Ii,e,r)}function Yl(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 Wp(e){return jo=Hi=1,Zp=Zn(Ii=e),tn=0,[]}function Jp(e){return Ii="",e}function Vo(e){return Kp(Gl(tn-1,Ps(e===91?e+2:e===40?e+1:e)))}function JS(e){for(;(wt=Wn())&&wt<33;)dn();return Yl(e)>2||Yl(wt)>3?"":" "}function ev(e,r){for(;--r&&dn()&&!(wt<48||wt>102||wt>57&&wt<65||wt>70&&wt<97););return Gl(e,Io()+(r<6&&Wn()==32&&dn()==32))}function Ps(e){for(;dn();)switch(wt){case e:return tn;case 34:case 39:e!==34&&e!==39&&Ps(wt);break;case 40:e===41&&Ps(e);break;case 92:dn();break}return tn}function tv(e,r){for(;dn()&&e+wt!==57;)if(e+wt===84&&Wn()===47)break;return"/*"+Gl(r,tn-1)+"*"+Lo(e===47?e:dn())}function nv(e){for(;!Yl(Wn());)dn();return Gl(e,tn)}function rv(e){return Jp(qo("",null,null,null,[""],e=Wp(e),0,[0],e))}function qo(e,r,l,a,u,s,f,d,m){for(var h=0,g=0,y=f,v=0,S=0,R=0,T=1,N=1,w=1,B=0,k="",z=u,A=s,_=a,H=k;N;)switch(R=B,B=dn()){case 40:if(R!=108&&qt(H,y-1)==58){Ys(H+=Ze(Vo(B),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:H+=Vo(B);break;case 9:case 10:case 13:case 32:H+=JS(R);break;case 92:H+=ev(Io()-1,7);continue;case 47:switch(Wn()){case 42:case 47:Uo(iv(tv(dn(),Io()),r,l),m);break;default:H+="/"}break;case 123*T:d[h++]=Zn(H)*w;case 125*T:case 59:case 0:switch(B){case 0:case 125:N=0;case 59+g:w==-1&&(H=Ze(H,/\f/g,"")),S>0&&Zn(H)-y&&Uo(S>32?th(H+";",a,l,y-1):th(Ze(H," ","")+";",a,l,y-2),m);break;case 59:H+=";";default:if(Uo(_=eh(H,r,l,h,g,u,d,k,z=[],A=[],y),s),B===123)if(g===0)qo(H,r,_,_,z,s,y,d,A);else switch(v===99&&qt(H,3)===110?100:v){case 100:case 108:case 109:case 115:qo(e,_,_,a&&Uo(eh(e,_,_,0,0,u,d,k,u,z=[],y),A),u,A,y,d,a?z:A);break;default:qo(H,_,_,_,[""],A,0,d,A)}}h=g=S=0,T=w=1,k=H="",y=f;break;case 58:y=1+Zn(H),S=R;default:if(T<1){if(B==123)--T;else if(B==125&&T++==0&&WS()==125)continue}switch(H+=Lo(B),B*T){case 38:w=g>0?1:(H+="\f",-1);break;case 44:d[h++]=(Zn(H)-1)*w,w=1;break;case 64:Wn()===45&&(H+=Vo(dn())),v=Wn(),g=y=Zn(k=H+=nv(Io())),B++;break;case 45:R===45&&Zn(H)==2&&(T=0)}}return s}function eh(e,r,l,a,u,s,f,d,m,h,g){for(var y=u-1,v=u===0?s:[""],S=Fs(v),R=0,T=0,N=0;R<a;++R)for(var w=0,B=ql(e,y+1,y=FS(T=f[R])),k=e;w<S;++w)(k=Kp(T>0?v[w]+" "+B:Ze(B,/&\f/g,v[w])))&&(m[N++]=k);return Ho(e,r,l,u===0?$s:d,m,h,g)}function iv(e,r,l){return Ho(e,r,l,Xp,Lo(ZS()),ql(e,2,-2),0)}function th(e,r,l,a){return Ho(e,r,l,Gs,ql(e,0,a),ql(e,a+1,-1),a)}function Vi(e,r){for(var l="",a=Fs(e),u=0;u<a;u++)l+=r(e[u],u,e,r)||"";return l}function lv(e,r,l,a){switch(e.type){case YS:if(e.children.length)break;case GS:case Gs:return e.return=e.return||e.value;case Xp:return"";case Qp:return e.return=e.value+"{"+Vi(e.children,a)+"}";case $s:e.value=e.props.join(",")}return Zn(l=Vi(e.children,a))?e.return=e.value+"{"+l+"}":""}function av(e){var r=Fs(e);return function(l,a,u,s){for(var f="",d=0;d<r;d++)f+=e[d](l,a,u,s)||"";return f}}function ov(e){return function(r){r.root||(r=r.return)&&e(r)}}var uv=function(r,l,a){for(var u=0,s=0;u=s,s=Wn(),u===38&&s===12&&(l[a]=1),!Yl(s);)dn();return Gl(r,tn)},sv=function(r,l){var a=-1,u=44;do switch(Yl(u)){case 0:u===38&&Wn()===12&&(l[a]=1),r[a]+=uv(tn-1,l,a);break;case 2:r[a]+=Vo(u);break;case 4:if(u===44){r[++a]=Wn()===58?"&\f":"",l[a]=r[a].length;break}default:r[a]+=Lo(u)}while(u=dn());return r},cv=function(r,l){return Jp(sv(Wp(r),l))},nh=new WeakMap,fv=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var l=r.value,a=r.parent,u=r.column===a.column&&r.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(r.props.length===1&&l.charCodeAt(0)!==58&&!nh.get(a))&&!u){nh.set(r,!0);for(var s=[],f=cv(l,s),d=a.props,m=0,h=0;m<f.length;m++)for(var g=0;g<d.length;g++,h++)r.props[h]=s[m]?f[m].replace(/&\f/g,d[g]):d[g]+" "+f[m]}}},dv=function(r){if(r.type==="decl"){var l=r.value;l.charCodeAt(0)===108&&l.charCodeAt(2)===98&&(r.return="",r.value="")}};function rh(e,r){switch(XS(e,r)){case 5103:return Ke+"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 Ke+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ke+e+Bo+e+Pt+e+e;case 6828:case 4268:return Ke+e+Pt+e+e;case 6165:return Ke+e+Pt+"flex-"+e+e;case 5187:return Ke+e+Ze(e,/(\w+).+(:[^]+)/,Ke+"box-$1$2"+Pt+"flex-$1$2")+e;case 5443:return Ke+e+Pt+"flex-item-"+Ze(e,/flex-|-self/,"")+e;case 4675:return Ke+e+Pt+"flex-line-pack"+Ze(e,/align-content|flex-|-self/,"")+e;case 5548:return Ke+e+Pt+Ze(e,"shrink","negative")+e;case 5292:return Ke+e+Pt+Ze(e,"basis","preferred-size")+e;case 6060:return Ke+"box-"+Ze(e,"-grow","")+Ke+e+Pt+Ze(e,"grow","positive")+e;case 4554:return Ke+Ze(e,/([^-])(transform)/g,"$1"+Ke+"$2")+e;case 6187:return Ze(Ze(Ze(e,/(zoom-|grab)/,Ke+"$1"),/(image-set)/,Ke+"$1"),e,"")+e;case 5495:case 3959:return Ze(e,/(image-set\([^]*)/,Ke+"$1$`$1");case 4968:return Ze(Ze(e,/(.+:)(flex-)?(.*)/,Ke+"box-pack:$3"+Pt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ke+e+e;case 4095:case 3583:case 4068:case 2532:return Ze(e,/(.+)-inline(.+)/,Ke+"$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(Zn(e)-1-r>6)switch(qt(e,r+1)){case 109:if(qt(e,r+4)!==45)break;case 102:return Ze(e,/(.+:)(.+)-([^]+)/,"$1"+Ke+"$2-$3$1"+Bo+(qt(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~Ys(e,"stretch")?rh(Ze(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(qt(e,r+1)!==115)break;case 6444:switch(qt(e,Zn(e)-3-(~Ys(e,"!important")&&10))){case 107:return Ze(e,":",":"+Ke)+e;case 101:return Ze(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ke+(qt(e,14)===45?"inline-":"")+"box$3$1"+Ke+"$2$3$1"+Pt+"$2box$3")+e}break;case 5936:switch(qt(e,r+11)){case 114:return Ke+e+Pt+Ze(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ke+e+Pt+Ze(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ke+e+Pt+Ze(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ke+e+Pt+e+e}return e}var pv=function(r,l,a,u){if(r.length>-1&&!r.return)switch(r.type){case Gs:r.return=rh(r.value,r.length);break;case Qp:return Vi([$l(r,{value:Ze(r.value,"@","@"+Ke)})],u);case $s:if(r.length)return KS(r.props,function(s){switch(QS(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vi([$l(r,{props:[Ze(s,/:(read-\w+)/,":"+Bo+"$1")]})],u);case"::placeholder":return Vi([$l(r,{props:[Ze(s,/:(plac\w+)/,":"+Ke+"input-$1")]}),$l(r,{props:[Ze(s,/:(plac\w+)/,":"+Bo+"$1")]}),$l(r,{props:[Ze(s,/:(plac\w+)/,Pt+"input-$1")]})],u)}return""})}},hv=[pv],mv=function(r){var l=r.key;if(l==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(T){var N=T.getAttribute("data-emotion");N.indexOf(" ")!==-1&&(document.head.appendChild(T),T.setAttribute("data-s",""))})}var u=r.stylisPlugins||hv,s={},f,d=[];f=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+l+' "]'),function(T){for(var N=T.getAttribute("data-emotion").split(" "),w=1;w<N.length;w++)s[N[w]]=!0;d.push(T)});var m,h=[fv,dv];{var g,y=[lv,ov(function(T){g.insert(T)})],v=av(h.concat(u,y)),S=function(N){return Vi(rv(N),v)};m=function(N,w,B,k){g=B,S(N?N+"{"+w.styles+"}":w.styles),k&&(R.inserted[w.name]=!0)}}var R={key:l,sheet:new $S({key:l,container:f,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:s,registered:{},insert:m};return R.sheet.hydrate(d),R},Xs={exports:{}},Je={};/** @license React v16.13.1
|
|
40
|
+
`+i.stack}}function Q(t){var n=t,i=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,n.flags&4098&&(i=n.return),t=n.return;while(t)}return n.tag===3?i:null}function ue(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function x(t){if(Q(t)!==t)throw Error(l(188))}function K(t){var n=t.alternate;if(!n){if(n=Q(t),n===null)throw Error(l(188));return n!==t?null:t}for(var i=t,o=n;;){var c=i.return;if(c===null)break;var p=c.alternate;if(p===null){if(o=c.return,o!==null){i=o;continue}break}if(c.child===p.child){for(p=c.child;p;){if(p===i)return x(c),t;if(p===o)return x(c),n;p=p.sibling}throw Error(l(188))}if(i.return!==o.return)i=c,o=p;else{for(var b=!1,C=c.child;C;){if(C===i){b=!0,i=c,o=p;break}if(C===o){b=!0,o=c,i=p;break}C=C.sibling}if(!b){for(C=p.child;C;){if(C===i){b=!0,i=p,o=c;break}if(C===o){b=!0,o=p,i=c;break}C=C.sibling}if(!b)throw Error(l(189))}}if(i.alternate!==o)throw Error(l(190))}if(i.tag!==3)throw Error(l(188));return i.stateNode.current===i?t:n}function se(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(n=se(t),n!==null)return n;t=t.sibling}return null}var O=Array.isArray,ie=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye={pending:!1,data:null,method:null,action:null},he=[],Ue=-1;function we(t){return{current:t}}function Oe(t){0>Ue||(t.current=he[Ue],he[Ue]=null,Ue--)}function pe(t,n){Ue++,he[Ue]=t.current,t.current=n}var Ne=we(null),me=we(null),ge=we(null),fe=we(null);function Te(t,n){switch(pe(ge,n),pe(me,t),pe(Ne,null),t=n.nodeType,t){case 9:case 11:n=(n=n.documentElement)&&(n=n.namespaceURI)?yS(n):0;break;default:if(t=t===8?n.parentNode:n,n=t.tagName,t=t.namespaceURI)t=yS(t),n=bS(t,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}Oe(Ne),pe(Ne,n)}function Ge(){Oe(Ne),Oe(me),Oe(ge)}function je(t){t.memoizedState!==null&&pe(fe,t);var n=Ne.current,i=bS(n,t.type);n!==i&&(pe(me,t),pe(Ne,i))}function _e(t){me.current===t&&(Oe(Ne),Oe(me)),fe.current===t&&(Oe(fe),_o._currentValue=ye)}var Ke=Object.prototype.hasOwnProperty,gt=e.unstable_scheduleCallback,Kt=e.unstable_cancelCallback,yn=e.unstable_shouldYield,Ce=e.unstable_requestPaint,Be=e.unstable_now,Mt=e.unstable_getCurrentPriorityLevel,X=e.unstable_ImmediatePriority,ae=e.unstable_UserBlockingPriority,de=e.unstable_NormalPriority,Re=e.unstable_LowPriority,qe=e.unstable_IdlePriority,He=e.log,un=e.unstable_setDisableYieldValue,Ht=null,Lt=null;function vi(t){if(Lt&&typeof Lt.onCommitFiberRoot=="function")try{Lt.onCommitFiberRoot(Ht,t,void 0,(t.current.flags&128)===128)}catch{}}function xt(t){if(typeof He=="function"&&un(t),Lt&&typeof Lt.setStrictMode=="function")try{Lt.setStrictMode(Ht,t)}catch{}}var _t=Math.clz32?Math.clz32:Q4,Xn=Math.log,X4=Math.LN2;function Q4(t){return t>>>=0,t===0?32:31-(Xn(t)/X4|0)|0}var _u=128,Du=4194304;function xi(t){var n=t&42;if(n!==0)return n;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function zu(t,n){var i=t.pendingLanes;if(i===0)return 0;var o=0,c=t.suspendedLanes,p=t.pingedLanes,b=t.warmLanes;t=t.finishedLanes!==0;var C=i&134217727;return C!==0?(i=C&~c,i!==0?o=xi(i):(p&=C,p!==0?o=xi(p):t||(b=C&~b,b!==0&&(o=xi(b))))):(C=i&~c,C!==0?o=xi(C):p!==0?o=xi(p):t||(b=i&~b,b!==0&&(o=xi(b)))),o===0?0:n!==0&&n!==o&&!(n&c)&&(c=o&-o,b=n&-n,c>=b||c===32&&(b&4194176)!==0)?n:o}function Il(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function K4(t,n){switch(t){case 1:case 2:case 4:case 8:return n+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function s1(){var t=_u;return _u<<=1,!(_u&4194176)&&(_u=128),t}function c1(){var t=Du;return Du<<=1,!(Du&62914560)&&(Du=4194304),t}function Nf(t){for(var n=[],i=0;31>i;i++)n.push(t);return n}function Vl(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Z4(t,n,i,o,c,p){var b=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var C=t.entanglements,D=t.expirationTimes,U=t.hiddenUpdates;for(i=b&~i;0<i;){var te=31-_t(i),le=1<<te;C[te]=0,D[te]=-1;var G=U[te];if(G!==null)for(U[te]=null,te=0;te<G.length;te++){var J=G[te];J!==null&&(J.lane&=-536870913)}i&=~le}o!==0&&f1(t,o,0),p!==0&&c===0&&t.tag!==0&&(t.suspendedLanes|=p&~(b&~n))}function f1(t,n,i){t.pendingLanes|=n,t.suspendedLanes&=~n;var o=31-_t(n);t.entangledLanes|=n,t.entanglements[o]=t.entanglements[o]|1073741824|i&4194218}function d1(t,n){var i=t.entangledLanes|=n;for(t=t.entanglements;i;){var o=31-_t(i),c=1<<o;c&n|t[o]&n&&(t[o]|=n),i&=~c}}function p1(t){return t&=-t,2<t?8<t?t&134217727?32:268435456:8:2}function h1(){var t=ie.p;return t!==0?t:(t=window.event,t===void 0?32:LS(t.type))}function W4(t,n){var i=ie.p;try{return ie.p=t,n()}finally{ie.p=i}}var Gr=Math.random().toString(36).slice(2),Zt="__reactFiber$"+Gr,sn="__reactProps$"+Gr,ca="__reactContainer$"+Gr,Bf="__reactEvents$"+Gr,J4="__reactListeners$"+Gr,e3="__reactHandles$"+Gr,m1="__reactResources$"+Gr,$l="__reactMarker$"+Gr;function Lf(t){delete t[Zt],delete t[sn],delete t[Bf],delete t[J4],delete t[e3]}function Ei(t){var n=t[Zt];if(n)return n;for(var i=t.parentNode;i;){if(n=i[ca]||i[Zt]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(t=xS(t);t!==null;){if(i=t[Zt])return i;t=xS(t)}return n}t=i,i=t.parentNode}return null}function fa(t){if(t=t[Zt]||t[ca]){var n=t.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return t}return null}function ql(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error(l(33))}function da(t){var n=t[m1];return n||(n=t[m1]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function It(t){t[$l]=!0}var g1=new Set,y1={};function Ci(t,n){pa(t,n),pa(t+"Capture",n)}function pa(t,n){for(y1[t]=n,t=0;t<n.length;t++)g1.add(n[t])}var Sr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),t3=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]*$"),b1={},S1={};function n3(t){return Ke.call(S1,t)?!0:Ke.call(b1,t)?!1:t3.test(t)?S1[t]=!0:(b1[t]=!0,!1)}function Nu(t,n,i){if(n3(n))if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(n);return;case"boolean":var o=n.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){t.removeAttribute(n);return}}t.setAttribute(n,""+i)}}function Bu(t,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttribute(n,""+i)}}function vr(t,n,i,o){if(o===null)t.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(n,i,""+o)}}function _n(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function v1(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function r3(t){var n=v1(t)?"checked":"value",i=Object.getOwnPropertyDescriptor(t.constructor.prototype,n),o=""+t[n];if(!t.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var c=i.get,p=i.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return c.call(this)},set:function(b){o=""+b,p.call(this,b)}}),Object.defineProperty(t,n,{enumerable:i.enumerable}),{getValue:function(){return o},setValue:function(b){o=""+b},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function Lu(t){t._valueTracker||(t._valueTracker=r3(t))}function x1(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var i=n.getValue(),o="";return t&&(o=v1(t)?t.checked?"true":"false":t.value),t=o,t!==i?(n.setValue(t),!0):!1}function Uu(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var i3=/[\n"\\]/g;function Dn(t){return t.replace(i3,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Uf(t,n,i,o,c,p,b,C){t.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.type=b:t.removeAttribute("type"),n!=null?b==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+_n(n)):t.value!==""+_n(n)&&(t.value=""+_n(n)):b!=="submit"&&b!=="reset"||t.removeAttribute("value"),n!=null?jf(t,b,_n(n)):i!=null?jf(t,b,_n(i)):o!=null&&t.removeAttribute("value"),c==null&&p!=null&&(t.defaultChecked=!!p),c!=null&&(t.checked=c&&typeof c!="function"&&typeof c!="symbol"),C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?t.name=""+_n(C):t.removeAttribute("name")}function E1(t,n,i,o,c,p,b,C){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(t.type=p),n!=null||i!=null){if(!(p!=="submit"&&p!=="reset"||n!=null))return;i=i!=null?""+_n(i):"",n=n!=null?""+_n(n):i,C||n===t.value||(t.value=n),t.defaultValue=n}o=o??c,o=typeof o!="function"&&typeof o!="symbol"&&!!o,t.checked=C?t.checked:!!o,t.defaultChecked=!!o,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(t.name=b)}function jf(t,n,i){n==="number"&&Uu(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function ha(t,n,i,o){if(t=t.options,n){n={};for(var c=0;c<i.length;c++)n["$"+i[c]]=!0;for(i=0;i<t.length;i++)c=n.hasOwnProperty("$"+t[i].value),t[i].selected!==c&&(t[i].selected=c),c&&o&&(t[i].defaultSelected=!0)}else{for(i=""+_n(i),n=null,c=0;c<t.length;c++){if(t[c].value===i){t[c].selected=!0,o&&(t[c].defaultSelected=!0);return}n!==null||t[c].disabled||(n=t[c])}n!==null&&(n.selected=!0)}}function C1(t,n,i){if(n!=null&&(n=""+_n(n),n!==t.value&&(t.value=n),i==null)){t.defaultValue!==n&&(t.defaultValue=n);return}t.defaultValue=i!=null?""+_n(i):""}function T1(t,n,i,o){if(n==null){if(o!=null){if(i!=null)throw Error(l(92));if(O(o)){if(1<o.length)throw Error(l(93));o=o[0]}i=o}i==null&&(i=""),n=i}i=_n(n),t.defaultValue=i,o=t.textContent,o===i&&o!==""&&o!==null&&(t.value=o)}function ma(t,n){if(n){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=n;return}}t.textContent=n}var a3=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 w1(t,n,i){var o=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?o?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="":o?t.setProperty(n,i):typeof i!="number"||i===0||a3.has(n)?n==="float"?t.cssFloat=i:t[n]=(""+i).trim():t[n]=i+"px"}function A1(t,n,i){if(n!=null&&typeof n!="object")throw Error(l(62));if(t=t.style,i!=null){for(var o in i)!i.hasOwnProperty(o)||n!=null&&n.hasOwnProperty(o)||(o.indexOf("--")===0?t.setProperty(o,""):o==="float"?t.cssFloat="":t[o]="");for(var c in n)o=n[c],n.hasOwnProperty(c)&&i[c]!==o&&w1(t,c,o)}else for(var p in n)n.hasOwnProperty(p)&&w1(t,p,n[p])}function Hf(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var l3=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"]]),o3=/^[\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 ju(t){return o3.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var If=null;function Vf(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ga=null,ya=null;function k1(t){var n=fa(t);if(n&&(t=n.stateNode)){var i=t[sn]||null;e:switch(t=n.stateNode,n.type){case"input":if(Uf(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Dn(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var o=i[n];if(o!==t&&o.form===t.form){var c=o[sn]||null;if(!c)throw Error(l(90));Uf(o,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(n=0;n<i.length;n++)o=i[n],o.form===t.form&&x1(o)}break e;case"textarea":C1(t,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&ha(t,!!i.multiple,n,!1)}}}var $f=!1;function R1(t,n,i){if($f)return t(n,i);$f=!0;try{var o=t(n);return o}finally{if($f=!1,(ga!==null||ya!==null)&&(xs(),ga&&(n=ga,t=ya,ya=ga=null,k1(n),t)))for(n=0;n<t.length;n++)k1(t[n])}}function Gl(t,n){var i=t.stateNode;if(i===null)return null;var o=i[sn]||null;if(o===null)return null;i=o[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(t=t.type,o=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!o;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(l(231,n,typeof i));return i}var qf=!1;if(Sr)try{var Yl={};Object.defineProperty(Yl,"passive",{get:function(){qf=!0}}),window.addEventListener("test",Yl,Yl),window.removeEventListener("test",Yl,Yl)}catch{qf=!1}var Yr=null,Gf=null,Hu=null;function O1(){if(Hu)return Hu;var t,n=Gf,i=n.length,o,c="value"in Yr?Yr.value:Yr.textContent,p=c.length;for(t=0;t<i&&n[t]===c[t];t++);var b=i-t;for(o=1;o<=b&&n[i-o]===c[p-o];o++);return Hu=c.slice(t,1<o?1-o:void 0)}function Iu(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function Vu(){return!0}function M1(){return!1}function cn(t){function n(i,o,c,p,b){this._reactName=i,this._targetInst=c,this.type=o,this.nativeEvent=p,this.target=b,this.currentTarget=null;for(var C in t)t.hasOwnProperty(C)&&(i=t[C],this[C]=i?i(p):p[C]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Vu:M1,this.isPropagationStopped=M1,this}return E(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Vu)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Vu)},persist:function(){},isPersistent:Vu}),n}var Ti={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$u=cn(Ti),Fl=E({},Ti,{view:0,detail:0}),u3=cn(Fl),Yf,Ff,Pl,qu=E({},Fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xf,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Pl&&(Pl&&t.type==="mousemove"?(Yf=t.screenX-Pl.screenX,Ff=t.screenY-Pl.screenY):Ff=Yf=0,Pl=t),Yf)},movementY:function(t){return"movementY"in t?t.movementY:Ff}}),_1=cn(qu),s3=E({},qu,{dataTransfer:0}),c3=cn(s3),f3=E({},Fl,{relatedTarget:0}),Pf=cn(f3),d3=E({},Ti,{animationName:0,elapsedTime:0,pseudoElement:0}),p3=cn(d3),h3=E({},Ti,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),m3=cn(h3),g3=E({},Ti,{data:0}),D1=cn(g3),y3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},b3={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"},S3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function v3(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=S3[t])?!!n[t]:!1}function Xf(){return v3}var x3=E({},Fl,{key:function(t){if(t.key){var n=y3[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=Iu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?b3[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xf,charCode:function(t){return t.type==="keypress"?Iu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Iu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),E3=cn(x3),C3=E({},qu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),z1=cn(C3),T3=E({},Fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xf}),w3=cn(T3),A3=E({},Ti,{propertyName:0,elapsedTime:0,pseudoElement:0}),k3=cn(A3),R3=E({},qu,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),O3=cn(R3),M3=E({},Ti,{newState:0,oldState:0}),_3=cn(M3),D3=[9,13,27,32],Qf=Sr&&"CompositionEvent"in window,Xl=null;Sr&&"documentMode"in document&&(Xl=document.documentMode);var z3=Sr&&"TextEvent"in window&&!Xl,N1=Sr&&(!Qf||Xl&&8<Xl&&11>=Xl),B1=" ",L1=!1;function U1(t,n){switch(t){case"keyup":return D3.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function j1(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ba=!1;function N3(t,n){switch(t){case"compositionend":return j1(n);case"keypress":return n.which!==32?null:(L1=!0,B1);case"textInput":return t=n.data,t===B1&&L1?null:t;default:return null}}function B3(t,n){if(ba)return t==="compositionend"||!Qf&&U1(t,n)?(t=O1(),Hu=Gf=Yr=null,ba=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return N1&&n.locale!=="ko"?null:n.data;default:return null}}var L3={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 H1(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!L3[t.type]:n==="textarea"}function I1(t,n,i,o){ga?ya?ya.push(o):ya=[o]:ga=o,n=As(n,"onChange"),0<n.length&&(i=new $u("onChange","change",null,i,o),t.push({event:i,listeners:n}))}var Ql=null,Kl=null;function U3(t){dS(t,0)}function Gu(t){var n=ql(t);if(x1(n))return t}function V1(t,n){if(t==="change")return n}var $1=!1;if(Sr){var Kf;if(Sr){var Zf="oninput"in document;if(!Zf){var q1=document.createElement("div");q1.setAttribute("oninput","return;"),Zf=typeof q1.oninput=="function"}Kf=Zf}else Kf=!1;$1=Kf&&(!document.documentMode||9<document.documentMode)}function G1(){Ql&&(Ql.detachEvent("onpropertychange",Y1),Kl=Ql=null)}function Y1(t){if(t.propertyName==="value"&&Gu(Kl)){var n=[];I1(n,Kl,t,Vf(t)),R1(U3,n)}}function j3(t,n,i){t==="focusin"?(G1(),Ql=n,Kl=i,Ql.attachEvent("onpropertychange",Y1)):t==="focusout"&&G1()}function H3(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Gu(Kl)}function I3(t,n){if(t==="click")return Gu(n)}function V3(t,n){if(t==="input"||t==="change")return Gu(n)}function $3(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var bn=typeof Object.is=="function"?Object.is:$3;function Zl(t,n){if(bn(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var i=Object.keys(t),o=Object.keys(n);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var c=i[o];if(!Ke.call(n,c)||!bn(t[c],n[c]))return!1}return!0}function F1(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function P1(t,n){var i=F1(t);t=0;for(var o;i;){if(i.nodeType===3){if(o=t+i.textContent.length,t<=n&&o>=n)return{node:i,offset:n-t};t=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=F1(i)}}function X1(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?X1(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function Q1(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=Uu(t.document);n instanceof t.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)t=n.contentWindow;else break;n=Uu(t.document)}return n}function Wf(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}function q3(t,n){var i=Q1(n);n=t.focusedElem;var o=t.selectionRange;if(i!==n&&n&&n.ownerDocument&&X1(n.ownerDocument.documentElement,n)){if(o!==null&&Wf(n)){if(t=o.start,i=o.end,i===void 0&&(i=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(i,n.value.length);else if(i=(t=n.ownerDocument||document)&&t.defaultView||window,i.getSelection){i=i.getSelection();var c=n.textContent.length,p=Math.min(o.start,c);o=o.end===void 0?p:Math.min(o.end,c),!i.extend&&p>o&&(c=o,o=p,p=c),c=P1(n,p);var b=P1(n,o);c&&b&&(i.rangeCount!==1||i.anchorNode!==c.node||i.anchorOffset!==c.offset||i.focusNode!==b.node||i.focusOffset!==b.offset)&&(t=t.createRange(),t.setStart(c.node,c.offset),i.removeAllRanges(),p>o?(i.addRange(t),i.extend(b.node,b.offset)):(t.setEnd(b.node,b.offset),i.addRange(t)))}}for(t=[],i=n;i=i.parentNode;)i.nodeType===1&&t.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)i=t[n],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var G3=Sr&&"documentMode"in document&&11>=document.documentMode,Sa=null,Jf=null,Wl=null,ed=!1;function K1(t,n,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;ed||Sa==null||Sa!==Uu(o)||(o=Sa,"selectionStart"in o&&Wf(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Wl&&Zl(Wl,o)||(Wl=o,o=As(Jf,"onSelect"),0<o.length&&(n=new $u("onSelect","select",null,n,i),t.push({event:n,listeners:o}),n.target=Sa)))}function wi(t,n){var i={};return i[t.toLowerCase()]=n.toLowerCase(),i["Webkit"+t]="webkit"+n,i["Moz"+t]="moz"+n,i}var va={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")},td={},Z1={};Sr&&(Z1=document.createElement("div").style,"AnimationEvent"in window||(delete va.animationend.animation,delete va.animationiteration.animation,delete va.animationstart.animation),"TransitionEvent"in window||delete va.transitionend.transition);function Ai(t){if(td[t])return td[t];if(!va[t])return t;var n=va[t],i;for(i in n)if(n.hasOwnProperty(i)&&i in Z1)return td[t]=n[i];return t}var W1=Ai("animationend"),J1=Ai("animationiteration"),e0=Ai("animationstart"),Y3=Ai("transitionrun"),F3=Ai("transitionstart"),P3=Ai("transitioncancel"),t0=Ai("transitionend"),n0=new Map,r0="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 scrollEnd toggle touchMove waiting wheel".split(" ");function Qn(t,n){n0.set(t,n),Ci(n,[t])}var zn=[],xa=0,nd=0;function Yu(){for(var t=xa,n=nd=xa=0;n<t;){var i=zn[n];zn[n++]=null;var o=zn[n];zn[n++]=null;var c=zn[n];zn[n++]=null;var p=zn[n];if(zn[n++]=null,o!==null&&c!==null){var b=o.pending;b===null?c.next=c:(c.next=b.next,b.next=c),o.pending=c}p!==0&&i0(i,c,p)}}function Fu(t,n,i,o){zn[xa++]=t,zn[xa++]=n,zn[xa++]=i,zn[xa++]=o,nd|=o,t.lanes|=o,t=t.alternate,t!==null&&(t.lanes|=o)}function rd(t,n,i,o){return Fu(t,n,i,o),Pu(t)}function Fr(t,n){return Fu(t,null,null,n),Pu(t)}function i0(t,n,i){t.lanes|=i;var o=t.alternate;o!==null&&(o.lanes|=i);for(var c=!1,p=t.return;p!==null;)p.childLanes|=i,o=p.alternate,o!==null&&(o.childLanes|=i),p.tag===22&&(t=p.stateNode,t===null||t._visibility&1||(c=!0)),t=p,p=p.return;c&&n!==null&&t.tag===3&&(p=t.stateNode,c=31-_t(i),p=p.hiddenUpdates,t=p[c],t===null?p[c]=[n]:t.push(n),n.lane=i|536870912)}function Pu(t){if(50<To)throw To=0,sp=null,Error(l(185));for(var n=t.return;n!==null;)t=n,n=t.return;return t.tag===3?t.stateNode:null}var Ea={},a0=new WeakMap;function Nn(t,n){if(typeof t=="object"&&t!==null){var i=a0.get(t);return i!==void 0?i:(n={value:t,source:n,stack:Z(n)},a0.set(t,n),n)}return{value:t,source:n,stack:Z(n)}}var Ca=[],Ta=0,Xu=null,Qu=0,Bn=[],Ln=0,ki=null,xr=1,Er="";function Ri(t,n){Ca[Ta++]=Qu,Ca[Ta++]=Xu,Xu=t,Qu=n}function l0(t,n,i){Bn[Ln++]=xr,Bn[Ln++]=Er,Bn[Ln++]=ki,ki=t;var o=xr;t=Er;var c=32-_t(o)-1;o&=~(1<<c),i+=1;var p=32-_t(n)+c;if(30<p){var b=c-c%5;p=(o&(1<<b)-1).toString(32),o>>=b,c-=b,xr=1<<32-_t(n)+c|i<<c|o,Er=p+t}else xr=1<<p|i<<c|o,Er=t}function id(t){t.return!==null&&(Ri(t,1),l0(t,1,0))}function ad(t){for(;t===Xu;)Xu=Ca[--Ta],Ca[Ta]=null,Qu=Ca[--Ta],Ca[Ta]=null;for(;t===ki;)ki=Bn[--Ln],Bn[Ln]=null,Er=Bn[--Ln],Bn[Ln]=null,xr=Bn[--Ln],Bn[Ln]=null}var tn=null,Gt=null,Ze=!1,Kn=null,sr=!1,ld=Error(l(519));function Oi(t){var n=Error(l(418,""));throw to(Nn(n,t)),ld}function o0(t){var n=t.stateNode,i=t.type,o=t.memoizedProps;switch(n[Zt]=t,n[sn]=o,i){case"dialog":Ye("cancel",n),Ye("close",n);break;case"iframe":case"object":case"embed":Ye("load",n);break;case"video":case"audio":for(i=0;i<Ao.length;i++)Ye(Ao[i],n);break;case"source":Ye("error",n);break;case"img":case"image":case"link":Ye("error",n),Ye("load",n);break;case"details":Ye("toggle",n);break;case"input":Ye("invalid",n),E1(n,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),Lu(n);break;case"select":Ye("invalid",n);break;case"textarea":Ye("invalid",n),T1(n,o.value,o.defaultValue,o.children),Lu(n)}i=o.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||o.suppressHydrationWarning===!0||gS(n.textContent,i)?(o.popover!=null&&(Ye("beforetoggle",n),Ye("toggle",n)),o.onScroll!=null&&Ye("scroll",n),o.onScrollEnd!=null&&Ye("scrollend",n),o.onClick!=null&&(n.onclick=ks),n=!0):n=!1,n||Oi(t)}function u0(t){for(tn=t.return;tn;)switch(tn.tag){case 3:case 27:sr=!0;return;case 5:case 13:sr=!1;return;default:tn=tn.return}}function Jl(t){if(t!==tn)return!1;if(!Ze)return u0(t),Ze=!0,!1;var n=!1,i;if((i=t.tag!==3&&t.tag!==27)&&((i=t.tag===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||Ap(t.type,t.memoizedProps)),i=!i),i&&(n=!0),n&&Gt&&Oi(t),u0(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(l(317));e:{for(t=t.nextSibling,n=0;t;){if(t.nodeType===8)if(i=t.data,i==="/$"){if(n===0){Gt=Wn(t.nextSibling);break e}n--}else i!=="$"&&i!=="$!"&&i!=="$?"||n++;t=t.nextSibling}Gt=null}}else Gt=tn?Wn(t.stateNode.nextSibling):null;return!0}function eo(){Gt=tn=null,Ze=!1}function to(t){Kn===null?Kn=[t]:Kn.push(t)}var no=Error(l(460)),s0=Error(l(474)),od={then:function(){}};function c0(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Ku(){}function f0(t,n,i){switch(i=t[i],i===void 0?t.push(n):i!==n&&(n.then(Ku,Ku),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,t===no?Error(l(483)):t;default:if(typeof n.status=="string")n.then(Ku,Ku);else{if(t=ct,t!==null&&100<t.shellSuspendCounter)throw Error(l(482));t=n,t.status="pending",t.then(function(o){if(n.status==="pending"){var c=n;c.status="fulfilled",c.value=o}},function(o){if(n.status==="pending"){var c=n;c.status="rejected",c.reason=o}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,t===no?Error(l(483)):t}throw ro=n,no}}var ro=null;function d0(){if(ro===null)throw Error(l(459));var t=ro;return ro=null,t}var wa=null,io=0;function Zu(t){var n=io;return io+=1,wa===null&&(wa=[]),f0(wa,t,n)}function ao(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}function Wu(t,n){throw n.$$typeof===s?Error(l(525)):(t=Object.prototype.toString.call(n),Error(l(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)))}function p0(t){var n=t._init;return n(t._payload)}function h0(t){function n(j,L){if(t){var $=j.deletions;$===null?(j.deletions=[L],j.flags|=16):$.push(L)}}function i(j,L){if(!t)return null;for(;L!==null;)n(j,L),L=L.sibling;return null}function o(j){for(var L=new Map;j!==null;)j.key!==null?L.set(j.key,j):L.set(j.index,j),j=j.sibling;return L}function c(j,L){return j=ii(j,L),j.index=0,j.sibling=null,j}function p(j,L,$){return j.index=$,t?($=j.alternate,$!==null?($=$.index,$<L?(j.flags|=33554434,L):$):(j.flags|=33554434,L)):(j.flags|=1048576,L)}function b(j){return t&&j.alternate===null&&(j.flags|=33554434),j}function C(j,L,$,re){return L===null||L.tag!==6?(L=tp($,j.mode,re),L.return=j,L):(L=c(L,$),L.return=j,L)}function D(j,L,$,re){var be=$.type;return be===m?te(j,L,$.props.children,re,$.key):L!==null&&(L.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===B&&p0(be)===L.type)?(L=c(L,$.props),ao(L,$),L.return=j,L):(L=gs($.type,$.key,$.props,null,j.mode,re),ao(L,$),L.return=j,L)}function U(j,L,$,re){return L===null||L.tag!==4||L.stateNode.containerInfo!==$.containerInfo||L.stateNode.implementation!==$.implementation?(L=np($,j.mode,re),L.return=j,L):(L=c(L,$.children||[]),L.return=j,L)}function te(j,L,$,re,be){return L===null||L.tag!==7?(L=Hi($,j.mode,re,be),L.return=j,L):(L=c(L,$),L.return=j,L)}function le(j,L,$){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=tp(""+L,j.mode,$),L.return=j,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case f:return $=gs(L.type,L.key,L.props,null,j.mode,$),ao($,L),$.return=j,$;case d:return L=np(L,j.mode,$),L.return=j,L;case B:var re=L._init;return L=re(L._payload),le(j,L,$)}if(O(L)||_(L))return L=Hi(L,j.mode,$,null),L.return=j,L;if(typeof L.then=="function")return le(j,Zu(L),$);if(L.$$typeof===S)return le(j,ps(j,L),$);Wu(j,L)}return null}function G(j,L,$,re){var be=L!==null?L.key:null;if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return be!==null?null:C(j,L,""+$,re);if(typeof $=="object"&&$!==null){switch($.$$typeof){case f:return $.key===be?D(j,L,$,re):null;case d:return $.key===be?U(j,L,$,re):null;case B:return be=$._init,$=be($._payload),G(j,L,$,re)}if(O($)||_($))return be!==null?null:te(j,L,$,re,null);if(typeof $.then=="function")return G(j,L,Zu($),re);if($.$$typeof===S)return G(j,L,ps(j,$),re);Wu(j,$)}return null}function J(j,L,$,re,be){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return j=j.get($)||null,C(L,j,""+re,be);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case f:return j=j.get(re.key===null?$:re.key)||null,D(L,j,re,be);case d:return j=j.get(re.key===null?$:re.key)||null,U(L,j,re,be);case B:var Ie=re._init;return re=Ie(re._payload),J(j,L,$,re,be)}if(O(re)||_(re))return j=j.get($)||null,te(L,j,re,be,null);if(typeof re.then=="function")return J(j,L,$,Zu(re),be);if(re.$$typeof===S)return J(j,L,$,ps(L,re),be);Wu(L,re)}return null}function ve(j,L,$,re){for(var be=null,Ie=null,Ee=L,Ae=L=0,qt=null;Ee!==null&&Ae<$.length;Ae++){Ee.index>Ae?(qt=Ee,Ee=null):qt=Ee.sibling;var We=G(j,Ee,$[Ae],re);if(We===null){Ee===null&&(Ee=qt);break}t&&Ee&&We.alternate===null&&n(j,Ee),L=p(We,L,Ae),Ie===null?be=We:Ie.sibling=We,Ie=We,Ee=qt}if(Ae===$.length)return i(j,Ee),Ze&&Ri(j,Ae),be;if(Ee===null){for(;Ae<$.length;Ae++)Ee=le(j,$[Ae],re),Ee!==null&&(L=p(Ee,L,Ae),Ie===null?be=Ee:Ie.sibling=Ee,Ie=Ee);return Ze&&Ri(j,Ae),be}for(Ee=o(Ee);Ae<$.length;Ae++)qt=J(Ee,j,Ae,$[Ae],re),qt!==null&&(t&&qt.alternate!==null&&Ee.delete(qt.key===null?Ae:qt.key),L=p(qt,L,Ae),Ie===null?be=qt:Ie.sibling=qt,Ie=qt);return t&&Ee.forEach(function(fi){return n(j,fi)}),Ze&&Ri(j,Ae),be}function Me(j,L,$,re){if($==null)throw Error(l(151));for(var be=null,Ie=null,Ee=L,Ae=L=0,qt=null,We=$.next();Ee!==null&&!We.done;Ae++,We=$.next()){Ee.index>Ae?(qt=Ee,Ee=null):qt=Ee.sibling;var fi=G(j,Ee,We.value,re);if(fi===null){Ee===null&&(Ee=qt);break}t&&Ee&&fi.alternate===null&&n(j,Ee),L=p(fi,L,Ae),Ie===null?be=fi:Ie.sibling=fi,Ie=fi,Ee=qt}if(We.done)return i(j,Ee),Ze&&Ri(j,Ae),be;if(Ee===null){for(;!We.done;Ae++,We=$.next())We=le(j,We.value,re),We!==null&&(L=p(We,L,Ae),Ie===null?be=We:Ie.sibling=We,Ie=We);return Ze&&Ri(j,Ae),be}for(Ee=o(Ee);!We.done;Ae++,We=$.next())We=J(Ee,j,Ae,We.value,re),We!==null&&(t&&We.alternate!==null&&Ee.delete(We.key===null?Ae:We.key),L=p(We,L,Ae),Ie===null?be=We:Ie.sibling=We,Ie=We);return t&&Ee.forEach(function(oO){return n(j,oO)}),Ze&&Ri(j,Ae),be}function Tt(j,L,$,re){if(typeof $=="object"&&$!==null&&$.type===m&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case f:e:{for(var be=$.key;L!==null;){if(L.key===be){if(be=$.type,be===m){if(L.tag===7){i(j,L.sibling),re=c(L,$.props.children),re.return=j,j=re;break e}}else if(L.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===B&&p0(be)===L.type){i(j,L.sibling),re=c(L,$.props),ao(re,$),re.return=j,j=re;break e}i(j,L);break}else n(j,L);L=L.sibling}$.type===m?(re=Hi($.props.children,j.mode,re,$.key),re.return=j,j=re):(re=gs($.type,$.key,$.props,null,j.mode,re),ao(re,$),re.return=j,j=re)}return b(j);case d:e:{for(be=$.key;L!==null;){if(L.key===be)if(L.tag===4&&L.stateNode.containerInfo===$.containerInfo&&L.stateNode.implementation===$.implementation){i(j,L.sibling),re=c(L,$.children||[]),re.return=j,j=re;break e}else{i(j,L);break}else n(j,L);L=L.sibling}re=np($,j.mode,re),re.return=j,j=re}return b(j);case B:return be=$._init,$=be($._payload),Tt(j,L,$,re)}if(O($))return ve(j,L,$,re);if(_($)){if(be=_($),typeof be!="function")throw Error(l(150));return $=be.call($),Me(j,L,$,re)}if(typeof $.then=="function")return Tt(j,L,Zu($),re);if($.$$typeof===S)return Tt(j,L,ps(j,$),re);Wu(j,$)}return typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint"?($=""+$,L!==null&&L.tag===6?(i(j,L.sibling),re=c(L,$),re.return=j,j=re):(i(j,L),re=tp($,j.mode,re),re.return=j,j=re),b(j)):i(j,L)}return function(j,L,$,re){try{io=0;var be=Tt(j,L,$,re);return wa=null,be}catch(Ee){if(Ee===no)throw Ee;var Ie=In(29,Ee,null,j.mode);return Ie.lanes=re,Ie.return=j,Ie}finally{}}}var Mi=h0(!0),m0=h0(!1),Aa=we(null),Ju=we(0);function g0(t,n){t=zr,pe(Ju,t),pe(Aa,n),zr=t|n.baseLanes}function ud(){pe(Ju,zr),pe(Aa,Aa.current)}function sd(){zr=Ju.current,Oe(Aa),Oe(Ju)}var Un=we(null),cr=null;function Pr(t){var n=t.alternate;pe(Ut,Ut.current&1),pe(Un,t),cr===null&&(n===null||Aa.current!==null||n.memoizedState!==null)&&(cr=t)}function y0(t){if(t.tag===22){if(pe(Ut,Ut.current),pe(Un,t),cr===null){var n=t.alternate;n!==null&&n.memoizedState!==null&&(cr=t)}}else Xr()}function Xr(){pe(Ut,Ut.current),pe(Un,Un.current)}function Cr(t){Oe(Un),cr===t&&(cr=null),Oe(Ut)}var Ut=we(0);function es(t){for(var n=t;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var X3=typeof AbortController<"u"?AbortController:function(){var t=[],n=this.signal={aborted:!1,addEventListener:function(i,o){t.push(o)}};this.abort=function(){n.aborted=!0,t.forEach(function(i){return i()})}},Q3=e.unstable_scheduleCallback,K3=e.unstable_NormalPriority,jt={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cd(){return{controller:new X3,data:new Map,refCount:0}}function lo(t){t.refCount--,t.refCount===0&&Q3(K3,function(){t.controller.abort()})}var oo=null,fd=0,ka=0,Ra=null;function Z3(t,n){if(oo===null){var i=oo=[];fd=0,ka=yp(),Ra={status:"pending",value:void 0,then:function(o){i.push(o)}}}return fd++,n.then(b0,b0),n}function b0(){if(--fd===0&&oo!==null){Ra!==null&&(Ra.status="fulfilled");var t=oo;oo=null,ka=0,Ra=null;for(var n=0;n<t.length;n++)(0,t[n])()}}function W3(t,n){var i=[],o={status:"pending",value:null,reason:null,then:function(c){i.push(c)}};return t.then(function(){o.status="fulfilled",o.value=n;for(var c=0;c<i.length;c++)(0,i[c])(n)},function(c){for(o.status="rejected",o.reason=c,c=0;c<i.length;c++)(0,i[c])(void 0)}),o}var S0=V.S;V.S=function(t,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&Z3(t,n),S0!==null&&S0(t,n)};var _i=we(null);function dd(){var t=_i.current;return t!==null?t:ct.pooledCache}function ts(t,n){n===null?pe(_i,_i.current):pe(_i,n.pool)}function v0(){var t=dd();return t===null?null:{parent:jt._currentValue,pool:t}}var Qr=0,Le=null,nt=null,Dt=null,ns=!1,Oa=!1,Di=!1,rs=0,uo=0,Ma=null,J3=0;function At(){throw Error(l(321))}function pd(t,n){if(n===null)return!1;for(var i=0;i<n.length&&i<t.length;i++)if(!bn(t[i],n[i]))return!1;return!0}function hd(t,n,i,o,c,p){return Qr=p,Le=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,V.H=t===null||t.memoizedState===null?zi:Kr,Di=!1,p=i(o,c),Di=!1,Oa&&(p=E0(n,i,o,c)),x0(t),p}function x0(t){V.H=fr;var n=nt!==null&&nt.next!==null;if(Qr=0,Dt=nt=Le=null,ns=!1,uo=0,Ma=null,n)throw Error(l(300));t===null||Vt||(t=t.dependencies,t!==null&&ds(t)&&(Vt=!0))}function E0(t,n,i,o){Le=t;var c=0;do{if(Oa&&(Ma=null),uo=0,Oa=!1,25<=c)throw Error(l(301));if(c+=1,Dt=nt=null,t.updateQueue!=null){var p=t.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}V.H=Ni,p=n(i,o)}while(Oa);return p}function e6(){var t=V.H,n=t.useState()[0];return n=typeof n.then=="function"?so(n):n,t=t.useState()[0],(nt!==null?nt.memoizedState:null)!==t&&(Le.flags|=1024),n}function md(){var t=rs!==0;return rs=0,t}function gd(t,n,i){n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~i}function yd(t){if(ns){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}ns=!1}Qr=0,Dt=nt=Le=null,Oa=!1,uo=rs=0,Ma=null}function fn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dt===null?Le.memoizedState=Dt=t:Dt=Dt.next=t,Dt}function zt(){if(nt===null){var t=Le.alternate;t=t!==null?t.memoizedState:null}else t=nt.next;var n=Dt===null?Le.memoizedState:Dt.next;if(n!==null)Dt=n,nt=t;else{if(t===null)throw Le.alternate===null?Error(l(467)):Error(l(310));nt=t,t={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},Dt===null?Le.memoizedState=Dt=t:Dt=Dt.next=t}return Dt}var is;is=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function so(t){var n=uo;return uo+=1,Ma===null&&(Ma=[]),t=f0(Ma,t,n),n=Le,(Dt===null?n.memoizedState:Dt.next)===null&&(n=n.alternate,V.H=n===null||n.memoizedState===null?zi:Kr),t}function as(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return so(t);if(t.$$typeof===S)return Wt(t)}throw Error(l(438,String(t)))}function bd(t){var n=null,i=Le.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var o=Le.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(n={data:o.data.map(function(c){return c.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=is(),Le.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(t),o=0;o<t;o++)i[o]=z;return n.index++,i}function Tr(t,n){return typeof n=="function"?n(t):n}function ls(t){var n=zt();return Sd(n,nt,t)}function Sd(t,n,i){var o=t.queue;if(o===null)throw Error(l(311));o.lastRenderedReducer=i;var c=t.baseQueue,p=o.pending;if(p!==null){if(c!==null){var b=c.next;c.next=p.next,p.next=b}n.baseQueue=c=p,o.pending=null}if(p=t.baseState,c===null)t.memoizedState=p;else{n=c.next;var C=b=null,D=null,U=n,te=!1;do{var le=U.lane&-536870913;if(le!==U.lane?(Pe&le)===le:(Qr&le)===le){var G=U.revertLane;if(G===0)D!==null&&(D=D.next={lane:0,revertLane:0,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),le===ka&&(te=!0);else if((Qr&G)===G){U=U.next,G===ka&&(te=!0);continue}else le={lane:0,revertLane:U.revertLane,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},D===null?(C=D=le,b=p):D=D.next=le,Le.lanes|=G,ai|=G;le=U.action,Di&&i(p,le),p=U.hasEagerState?U.eagerState:i(p,le)}else G={lane:le,revertLane:U.revertLane,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},D===null?(C=D=G,b=p):D=D.next=G,Le.lanes|=le,ai|=le;U=U.next}while(U!==null&&U!==n);if(D===null?b=p:D.next=C,!bn(p,t.memoizedState)&&(Vt=!0,te&&(i=Ra,i!==null)))throw i;t.memoizedState=p,t.baseState=b,t.baseQueue=D,o.lastRenderedState=p}return c===null&&(o.lanes=0),[t.memoizedState,o.dispatch]}function vd(t){var n=zt(),i=n.queue;if(i===null)throw Error(l(311));i.lastRenderedReducer=t;var o=i.dispatch,c=i.pending,p=n.memoizedState;if(c!==null){i.pending=null;var b=c=c.next;do p=t(p,b.action),b=b.next;while(b!==c);bn(p,n.memoizedState)||(Vt=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),i.lastRenderedState=p}return[p,o]}function C0(t,n,i){var o=Le,c=zt(),p=Ze;if(p){if(i===void 0)throw Error(l(407));i=i()}else i=n();var b=!bn((nt||c).memoizedState,i);if(b&&(c.memoizedState=i,Vt=!0),c=c.queue,Cd(A0.bind(null,o,c,t),[t]),c.getSnapshot!==n||b||Dt!==null&&Dt.memoizedState.tag&1){if(o.flags|=2048,_a(9,w0.bind(null,o,c,i,n),{destroy:void 0},null),ct===null)throw Error(l(349));p||Qr&60||T0(o,n,i)}return i}function T0(t,n,i){t.flags|=16384,t={getSnapshot:n,value:i},n=Le.updateQueue,n===null?(n=is(),Le.updateQueue=n,n.stores=[t]):(i=n.stores,i===null?n.stores=[t]:i.push(t))}function w0(t,n,i,o){n.value=i,n.getSnapshot=o,k0(n)&&R0(t)}function A0(t,n,i){return i(function(){k0(n)&&R0(t)})}function k0(t){var n=t.getSnapshot;t=t.value;try{var i=n();return!bn(t,i)}catch{return!0}}function R0(t){var n=Fr(t,2);n!==null&&nn(n,t,2)}function xd(t){var n=fn();if(typeof t=="function"){var i=t;if(t=i(),Di){xt(!0);try{i()}finally{xt(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tr,lastRenderedState:t},n}function O0(t,n,i,o){return t.baseState=i,Sd(t,nt,typeof o=="function"?o:Tr)}function t6(t,n,i,o,c){if(ss(t))throw Error(l(485));if(t=n.action,t!==null){var p={payload:c,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){p.listeners.push(b)}};V.T!==null?i(!0):p.isTransition=!1,o(p),i=n.pending,i===null?(p.next=n.pending=p,M0(n,p)):(p.next=i.next,n.pending=i.next=p)}}function M0(t,n){var i=n.action,o=n.payload,c=t.state;if(n.isTransition){var p=V.T,b={};V.T=b;try{var C=i(c,o),D=V.S;D!==null&&D(b,C),_0(t,n,C)}catch(U){Ed(t,n,U)}finally{V.T=p}}else try{p=i(c,o),_0(t,n,p)}catch(U){Ed(t,n,U)}}function _0(t,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(o){D0(t,n,o)},function(o){return Ed(t,n,o)}):D0(t,n,i)}function D0(t,n,i){n.status="fulfilled",n.value=i,z0(n),t.state=i,n=t.pending,n!==null&&(i=n.next,i===n?t.pending=null:(i=i.next,n.next=i,M0(t,i)))}function Ed(t,n,i){var o=t.pending;if(t.pending=null,o!==null){o=o.next;do n.status="rejected",n.reason=i,z0(n),n=n.next;while(n!==o)}t.action=null}function z0(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}function N0(t,n){return n}function B0(t,n){if(Ze){var i=ct.formState;if(i!==null){e:{var o=Le;if(Ze){if(Gt){t:{for(var c=Gt,p=sr;c.nodeType!==8;){if(!p){c=null;break t}if(c=Wn(c.nextSibling),c===null){c=null;break t}}p=c.data,c=p==="F!"||p==="F"?c:null}if(c){Gt=Wn(c.nextSibling),o=c.data==="F!";break e}}Oi(o)}o=!1}o&&(n=i[0])}}return i=fn(),i.memoizedState=i.baseState=n,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:N0,lastRenderedState:n},i.queue=o,i=J0.bind(null,Le,o),o.dispatch=i,o=xd(!1),p=Rd.bind(null,Le,!1,o.queue),o=fn(),c={state:n,dispatch:null,action:t,pending:null},o.queue=c,i=t6.bind(null,Le,c,p,i),c.dispatch=i,o.memoizedState=t,[n,i,!1]}function L0(t){var n=zt();return U0(n,nt,t)}function U0(t,n,i){n=Sd(t,n,N0)[0],t=ls(Tr)[0],n=typeof n=="object"&&n!==null&&typeof n.then=="function"?so(n):n;var o=zt(),c=o.queue,p=c.dispatch;return i!==o.memoizedState&&(Le.flags|=2048,_a(9,n6.bind(null,c,i),{destroy:void 0},null)),[n,p,t]}function n6(t,n){t.action=n}function j0(t){var n=zt(),i=nt;if(i!==null)return U0(n,i,t);zt(),n=n.memoizedState,i=zt();var o=i.queue.dispatch;return i.memoizedState=t,[n,o,!1]}function _a(t,n,i,o){return t={tag:t,create:n,inst:i,deps:o,next:null},n=Le.updateQueue,n===null&&(n=is(),Le.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=t.next=t:(o=i.next,i.next=t,t.next=o,n.lastEffect=t),t}function H0(){return zt().memoizedState}function os(t,n,i,o){var c=fn();Le.flags|=t,c.memoizedState=_a(1|n,i,{destroy:void 0},o===void 0?null:o)}function us(t,n,i,o){var c=zt();o=o===void 0?null:o;var p=c.memoizedState.inst;nt!==null&&o!==null&&pd(o,nt.memoizedState.deps)?c.memoizedState=_a(n,i,p,o):(Le.flags|=t,c.memoizedState=_a(1|n,i,p,o))}function I0(t,n){os(8390656,8,t,n)}function Cd(t,n){us(2048,8,t,n)}function V0(t,n){return us(4,2,t,n)}function $0(t,n){return us(4,4,t,n)}function q0(t,n){if(typeof n=="function"){t=t();var i=n(t);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function G0(t,n,i){i=i!=null?i.concat([t]):null,us(4,4,q0.bind(null,n,t),i)}function Td(){}function Y0(t,n){var i=zt();n=n===void 0?null:n;var o=i.memoizedState;return n!==null&&pd(n,o[1])?o[0]:(i.memoizedState=[t,n],t)}function F0(t,n){var i=zt();n=n===void 0?null:n;var o=i.memoizedState;if(n!==null&&pd(n,o[1]))return o[0];if(o=t(),Di){xt(!0);try{t()}finally{xt(!1)}}return i.memoizedState=[o,n],o}function wd(t,n,i){return i===void 0||Qr&1073741824?t.memoizedState=n:(t.memoizedState=i,t=Xb(),Le.lanes|=t,ai|=t,i)}function P0(t,n,i,o){return bn(i,n)?i:Aa.current!==null?(t=wd(t,i,o),bn(t,n)||(Vt=!0),t):Qr&42?(t=Xb(),Le.lanes|=t,ai|=t,n):(Vt=!0,t.memoizedState=i)}function X0(t,n,i,o,c){var p=ie.p;ie.p=p!==0&&8>p?p:8;var b=V.T,C={};V.T=C,Rd(t,!1,n,i);try{var D=c(),U=V.S;if(U!==null&&U(C,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var te=W3(D,o);co(t,n,te,En(t))}else co(t,n,o,En(t))}catch(le){co(t,n,{then:function(){},status:"rejected",reason:le},En())}finally{ie.p=p,V.T=b}}function r6(){}function Ad(t,n,i,o){if(t.tag!==5)throw Error(l(476));var c=Q0(t).queue;X0(t,c,n,ye,i===null?r6:function(){return K0(t),i(o)})}function Q0(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:ye,baseState:ye,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tr,lastRenderedState:ye},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tr,lastRenderedState:i},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function K0(t){var n=Q0(t).next.queue;co(t,n,{},En())}function kd(){return Wt(_o)}function Z0(){return zt().memoizedState}function W0(){return zt().memoizedState}function i6(t){for(var n=t.return;n!==null;){switch(n.tag){case 24:case 3:var i=En();t=Jr(i);var o=ei(n,t,i);o!==null&&(nn(o,n,i),ho(o,n,i)),n={cache:cd()},t.payload=n;return}n=n.return}}function a6(t,n,i){var o=En();i={lane:o,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},ss(t)?eb(n,i):(i=rd(t,n,i,o),i!==null&&(nn(i,t,o),tb(i,n,o)))}function J0(t,n,i){var o=En();co(t,n,i,o)}function co(t,n,i,o){var c={lane:o,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(ss(t))eb(n,c);else{var p=t.alternate;if(t.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var b=n.lastRenderedState,C=p(b,i);if(c.hasEagerState=!0,c.eagerState=C,bn(C,b))return Fu(t,n,c,0),ct===null&&Yu(),!1}catch{}finally{}if(i=rd(t,n,c,o),i!==null)return nn(i,t,o),tb(i,n,o),!0}return!1}function Rd(t,n,i,o){if(o={lane:2,revertLane:yp(),action:o,hasEagerState:!1,eagerState:null,next:null},ss(t)){if(n)throw Error(l(479))}else n=rd(t,i,o,2),n!==null&&nn(n,t,2)}function ss(t){var n=t.alternate;return t===Le||n!==null&&n===Le}function eb(t,n){Oa=ns=!0;var i=t.pending;i===null?n.next=n:(n.next=i.next,i.next=n),t.pending=n}function tb(t,n,i){if(i&4194176){var o=n.lanes;o&=t.pendingLanes,i|=o,n.lanes=i,d1(t,i)}}var fr={readContext:Wt,use:as,useCallback:At,useContext:At,useEffect:At,useImperativeHandle:At,useLayoutEffect:At,useInsertionEffect:At,useMemo:At,useReducer:At,useRef:At,useState:At,useDebugValue:At,useDeferredValue:At,useTransition:At,useSyncExternalStore:At,useId:At};fr.useCacheRefresh=At,fr.useMemoCache=At,fr.useHostTransitionStatus=At,fr.useFormState=At,fr.useActionState=At,fr.useOptimistic=At;var zi={readContext:Wt,use:as,useCallback:function(t,n){return fn().memoizedState=[t,n===void 0?null:n],t},useContext:Wt,useEffect:I0,useImperativeHandle:function(t,n,i){i=i!=null?i.concat([t]):null,os(4194308,4,q0.bind(null,n,t),i)},useLayoutEffect:function(t,n){return os(4194308,4,t,n)},useInsertionEffect:function(t,n){os(4,2,t,n)},useMemo:function(t,n){var i=fn();n=n===void 0?null:n;var o=t();if(Di){xt(!0);try{t()}finally{xt(!1)}}return i.memoizedState=[o,n],o},useReducer:function(t,n,i){var o=fn();if(i!==void 0){var c=i(n);if(Di){xt(!0);try{i(n)}finally{xt(!1)}}}else c=n;return o.memoizedState=o.baseState=c,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:c},o.queue=t,t=t.dispatch=a6.bind(null,Le,t),[o.memoizedState,t]},useRef:function(t){var n=fn();return t={current:t},n.memoizedState=t},useState:function(t){t=xd(t);var n=t.queue,i=J0.bind(null,Le,n);return n.dispatch=i,[t.memoizedState,i]},useDebugValue:Td,useDeferredValue:function(t,n){var i=fn();return wd(i,t,n)},useTransition:function(){var t=xd(!1);return t=X0.bind(null,Le,t.queue,!0,!1),fn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,n,i){var o=Le,c=fn();if(Ze){if(i===void 0)throw Error(l(407));i=i()}else{if(i=n(),ct===null)throw Error(l(349));Pe&60||T0(o,n,i)}c.memoizedState=i;var p={value:i,getSnapshot:n};return c.queue=p,I0(A0.bind(null,o,p,t),[t]),o.flags|=2048,_a(9,w0.bind(null,o,p,i,n),{destroy:void 0},null),i},useId:function(){var t=fn(),n=ct.identifierPrefix;if(Ze){var i=Er,o=xr;i=(o&~(1<<32-_t(o)-1)).toString(32)+i,n=":"+n+"R"+i,i=rs++,0<i&&(n+="H"+i.toString(32)),n+=":"}else i=J3++,n=":"+n+"r"+i.toString(32)+":";return t.memoizedState=n},useCacheRefresh:function(){return fn().memoizedState=i6.bind(null,Le)}};zi.useMemoCache=bd,zi.useHostTransitionStatus=kd,zi.useFormState=B0,zi.useActionState=B0,zi.useOptimistic=function(t){var n=fn();n.memoizedState=n.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=Rd.bind(null,Le,!0,i),i.dispatch=n,[t,n]};var Kr={readContext:Wt,use:as,useCallback:Y0,useContext:Wt,useEffect:Cd,useImperativeHandle:G0,useInsertionEffect:V0,useLayoutEffect:$0,useMemo:F0,useReducer:ls,useRef:H0,useState:function(){return ls(Tr)},useDebugValue:Td,useDeferredValue:function(t,n){var i=zt();return P0(i,nt.memoizedState,t,n)},useTransition:function(){var t=ls(Tr)[0],n=zt().memoizedState;return[typeof t=="boolean"?t:so(t),n]},useSyncExternalStore:C0,useId:Z0};Kr.useCacheRefresh=W0,Kr.useMemoCache=bd,Kr.useHostTransitionStatus=kd,Kr.useFormState=L0,Kr.useActionState=L0,Kr.useOptimistic=function(t,n){var i=zt();return O0(i,nt,t,n)};var Ni={readContext:Wt,use:as,useCallback:Y0,useContext:Wt,useEffect:Cd,useImperativeHandle:G0,useInsertionEffect:V0,useLayoutEffect:$0,useMemo:F0,useReducer:vd,useRef:H0,useState:function(){return vd(Tr)},useDebugValue:Td,useDeferredValue:function(t,n){var i=zt();return nt===null?wd(i,t,n):P0(i,nt.memoizedState,t,n)},useTransition:function(){var t=vd(Tr)[0],n=zt().memoizedState;return[typeof t=="boolean"?t:so(t),n]},useSyncExternalStore:C0,useId:Z0};Ni.useCacheRefresh=W0,Ni.useMemoCache=bd,Ni.useHostTransitionStatus=kd,Ni.useFormState=j0,Ni.useActionState=j0,Ni.useOptimistic=function(t,n){var i=zt();return nt!==null?O0(i,nt,t,n):(i.baseState=t,[t,i.queue.dispatch])};function Od(t,n,i,o){n=t.memoizedState,i=i(o,n),i=i==null?n:E({},n,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Md={isMounted:function(t){return(t=t._reactInternals)?Q(t)===t:!1},enqueueSetState:function(t,n,i){t=t._reactInternals;var o=En(),c=Jr(o);c.payload=n,i!=null&&(c.callback=i),n=ei(t,c,o),n!==null&&(nn(n,t,o),ho(n,t,o))},enqueueReplaceState:function(t,n,i){t=t._reactInternals;var o=En(),c=Jr(o);c.tag=1,c.payload=n,i!=null&&(c.callback=i),n=ei(t,c,o),n!==null&&(nn(n,t,o),ho(n,t,o))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var i=En(),o=Jr(i);o.tag=2,n!=null&&(o.callback=n),n=ei(t,o,i),n!==null&&(nn(n,t,i),ho(n,t,i))}};function nb(t,n,i,o,c,p,b){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(o,p,b):n.prototype&&n.prototype.isPureReactComponent?!Zl(i,o)||!Zl(c,p):!0}function rb(t,n,i,o){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,o),n.state!==t&&Md.enqueueReplaceState(n,n.state,null)}function Bi(t,n){var i=n;if("ref"in n){i={};for(var o in n)o!=="ref"&&(i[o]=n[o])}if(t=t.defaultProps){i===n&&(i=E({},i));for(var c in t)i[c]===void 0&&(i[c]=t[c])}return i}var cs=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function ib(t){cs(t)}function ab(t){console.error(t)}function lb(t){cs(t)}function fs(t,n){try{var i=t.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function ob(t,n,i){try{var o=t.onCaughtError;o(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function _d(t,n,i){return i=Jr(i),i.tag=3,i.payload={element:null},i.callback=function(){fs(t,n)},i}function ub(t){return t=Jr(t),t.tag=3,t}function sb(t,n,i,o){var c=i.type.getDerivedStateFromError;if(typeof c=="function"){var p=o.value;t.payload=function(){return c(p)},t.callback=function(){ob(n,i,o)}}var b=i.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(t.callback=function(){ob(n,i,o),typeof c!="function"&&(li===null?li=new Set([this]):li.add(this));var C=o.stack;this.componentDidCatch(o.value,{componentStack:C!==null?C:""})})}function l6(t,n,i,o,c){if(i.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=i.alternate,n!==null&&po(n,i,c,!0),i=Un.current,i!==null){switch(i.tag){case 13:return cr===null?dp():i.alternate===null&&Ct===0&&(Ct=3),i.flags&=-257,i.flags|=65536,i.lanes=c,o===od?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([o]):n.add(o),hp(t,o,c)),!1;case 22:return i.flags|=65536,o===od?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([o]):i.add(o)),hp(t,o,c)),!1}throw Error(l(435,i.tag))}return hp(t,o,c),dp(),!1}if(Ze)return n=Un.current,n!==null?(!(n.flags&65536)&&(n.flags|=256),n.flags|=65536,n.lanes=c,o!==ld&&(t=Error(l(422),{cause:o}),to(Nn(t,i)))):(o!==ld&&(n=Error(l(423),{cause:o}),to(Nn(n,i))),t=t.current.alternate,t.flags|=65536,c&=-c,t.lanes|=c,o=Nn(o,i),c=_d(t.stateNode,o,c),Fd(t,c),Ct!==4&&(Ct=2)),!1;var p=Error(l(520),{cause:o});if(p=Nn(p,i),Eo===null?Eo=[p]:Eo.push(p),Ct!==4&&(Ct=2),n===null)return!0;o=Nn(o,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,t=c&-c,i.lanes|=t,t=_d(i.stateNode,o,t),Fd(i,t),!1;case 1:if(n=i.type,p=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(li===null||!li.has(p))))return i.flags|=65536,c&=-c,i.lanes|=c,c=ub(c),sb(c,t,i,o),Fd(i,c),!1}i=i.return}while(i!==null);return!1}var cb=Error(l(461)),Vt=!1;function Yt(t,n,i,o){n.child=t===null?m0(n,null,i,o):Mi(n,t.child,i,o)}function fb(t,n,i,o,c){i=i.render;var p=n.ref;if("ref"in o){var b={};for(var C in o)C!=="ref"&&(b[C]=o[C])}else b=o;return Ui(n),o=hd(t,n,i,b,p,c),C=md(),t!==null&&!Vt?(gd(t,n,c),wr(t,n,c)):(Ze&&C&&id(n),n.flags|=1,Yt(t,n,o,c),n.child)}function db(t,n,i,o,c){if(t===null){var p=i.type;return typeof p=="function"&&!ep(p)&&p.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=p,pb(t,n,p,o,c)):(t=gs(i.type,null,o,n,n.mode,c),t.ref=n.ref,t.return=n,n.child=t)}if(p=t.child,!Id(t,c)){var b=p.memoizedProps;if(i=i.compare,i=i!==null?i:Zl,i(b,o)&&t.ref===n.ref)return wr(t,n,c)}return n.flags|=1,t=ii(p,o),t.ref=n.ref,t.return=n,n.child=t}function pb(t,n,i,o,c){if(t!==null){var p=t.memoizedProps;if(Zl(p,o)&&t.ref===n.ref)if(Vt=!1,n.pendingProps=o=p,Id(t,c))t.flags&131072&&(Vt=!0);else return n.lanes=t.lanes,wr(t,n,c)}return Dd(t,n,i,o,c)}function hb(t,n,i){var o=n.pendingProps,c=o.children,p=(n.stateNode._pendingVisibility&2)!==0,b=t!==null?t.memoizedState:null;if(fo(t,n),o.mode==="hidden"||p){if(n.flags&128){if(o=b!==null?b.baseLanes|i:i,t!==null){for(c=n.child=t.child,p=0;c!==null;)p=p|c.lanes|c.childLanes,c=c.sibling;n.childLanes=p&~o}else n.childLanes=0,n.child=null;return mb(t,n,o,i)}if(i&536870912)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&ts(n,b!==null?b.cachePool:null),b!==null?g0(n,b):ud(),y0(n);else return n.lanes=n.childLanes=536870912,mb(t,n,b!==null?b.baseLanes|i:i,i)}else b!==null?(ts(n,b.cachePool),g0(n,b),Xr(),n.memoizedState=null):(t!==null&&ts(n,null),ud(),Xr());return Yt(t,n,c,i),n.child}function mb(t,n,i,o){var c=dd();return c=c===null?null:{parent:jt._currentValue,pool:c},n.memoizedState={baseLanes:i,cachePool:c},t!==null&&ts(n,null),ud(),y0(n),t!==null&&po(t,n,o,!0),null}function fo(t,n){var i=n.ref;if(i===null)t!==null&&t.ref!==null&&(n.flags|=2097664);else{if(typeof i!="function"&&typeof i!="object")throw Error(l(284));(t===null||t.ref!==i)&&(n.flags|=2097664)}}function Dd(t,n,i,o,c){return Ui(n),i=hd(t,n,i,o,void 0,c),o=md(),t!==null&&!Vt?(gd(t,n,c),wr(t,n,c)):(Ze&&o&&id(n),n.flags|=1,Yt(t,n,i,c),n.child)}function gb(t,n,i,o,c,p){return Ui(n),n.updateQueue=null,i=E0(n,o,i,c),x0(t),o=md(),t!==null&&!Vt?(gd(t,n,p),wr(t,n,p)):(Ze&&o&&id(n),n.flags|=1,Yt(t,n,i,p),n.child)}function yb(t,n,i,o,c){if(Ui(n),n.stateNode===null){var p=Ea,b=i.contextType;typeof b=="object"&&b!==null&&(p=Wt(b)),p=new i(o,p),n.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Md,n.stateNode=p,p._reactInternals=n,p=n.stateNode,p.props=o,p.state=n.memoizedState,p.refs={},Gd(n),b=i.contextType,p.context=typeof b=="object"&&b!==null?Wt(b):Ea,p.state=n.memoizedState,b=i.getDerivedStateFromProps,typeof b=="function"&&(Od(n,i,b,o),p.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(b=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),b!==p.state&&Md.enqueueReplaceState(p,p.state,null),go(n,o,p,c),mo(),p.state=n.memoizedState),typeof p.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(t===null){p=n.stateNode;var C=n.memoizedProps,D=Bi(i,C);p.props=D;var U=p.context,te=i.contextType;b=Ea,typeof te=="object"&&te!==null&&(b=Wt(te));var le=i.getDerivedStateFromProps;te=typeof le=="function"||typeof p.getSnapshotBeforeUpdate=="function",C=n.pendingProps!==C,te||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(C||U!==b)&&rb(n,p,o,b),Wr=!1;var G=n.memoizedState;p.state=G,go(n,o,p,c),mo(),U=n.memoizedState,C||G!==U||Wr?(typeof le=="function"&&(Od(n,i,le,o),U=n.memoizedState),(D=Wr||nb(n,i,D,o,G,U,b))?(te||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(n.flags|=4194308)):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=U),p.props=o,p.state=U,p.context=b,o=D):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{p=n.stateNode,Yd(t,n),b=n.memoizedProps,te=Bi(i,b),p.props=te,le=n.pendingProps,G=p.context,U=i.contextType,D=Ea,typeof U=="object"&&U!==null&&(D=Wt(U)),C=i.getDerivedStateFromProps,(U=typeof C=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(b!==le||G!==D)&&rb(n,p,o,D),Wr=!1,G=n.memoizedState,p.state=G,go(n,o,p,c),mo();var J=n.memoizedState;b!==le||G!==J||Wr||t!==null&&t.dependencies!==null&&ds(t.dependencies)?(typeof C=="function"&&(Od(n,i,C,o),J=n.memoizedState),(te=Wr||nb(n,i,te,o,G,J,D)||t!==null&&t.dependencies!==null&&ds(t.dependencies))?(U||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(o,J,D),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(o,J,D)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||b===t.memoizedProps&&G===t.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||b===t.memoizedProps&&G===t.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=J),p.props=o,p.state=J,p.context=D,o=te):(typeof p.componentDidUpdate!="function"||b===t.memoizedProps&&G===t.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||b===t.memoizedProps&&G===t.memoizedState||(n.flags|=1024),o=!1)}return p=o,fo(t,n),o=(n.flags&128)!==0,p||o?(p=n.stateNode,i=o&&typeof i.getDerivedStateFromError!="function"?null:p.render(),n.flags|=1,t!==null&&o?(n.child=Mi(n,t.child,null,c),n.child=Mi(n,null,i,c)):Yt(t,n,i,c),n.memoizedState=p.state,t=n.child):t=wr(t,n,c),t}function bb(t,n,i,o){return eo(),n.flags|=256,Yt(t,n,i,o),n.child}var zd={dehydrated:null,treeContext:null,retryLane:0};function Nd(t){return{baseLanes:t,cachePool:v0()}}function Bd(t,n,i){return t=t!==null?t.childLanes&~i:0,n&&(t|=Vn),t}function Sb(t,n,i){var o=n.pendingProps,c=!1,p=(n.flags&128)!==0,b;if((b=p)||(b=t!==null&&t.memoizedState===null?!1:(Ut.current&2)!==0),b&&(c=!0,n.flags&=-129),b=(n.flags&32)!==0,n.flags&=-33,t===null){if(Ze){if(c?Pr(n):Xr(),Ze){var C=Gt,D;if(D=C){e:{for(D=C,C=sr;D.nodeType!==8;){if(!C){C=null;break e}if(D=Wn(D.nextSibling),D===null){C=null;break e}}C=D}C!==null?(n.memoizedState={dehydrated:C,treeContext:ki!==null?{id:xr,overflow:Er}:null,retryLane:536870912},D=In(18,null,null,0),D.stateNode=C,D.return=n,n.child=D,tn=n,Gt=null,D=!0):D=!1}D||Oi(n)}if(C=n.memoizedState,C!==null&&(C=C.dehydrated,C!==null))return C.data==="$!"?n.lanes=16:n.lanes=536870912,null;Cr(n)}return C=o.children,o=o.fallback,c?(Xr(),c=n.mode,C=Ud({mode:"hidden",children:C},c),o=Hi(o,c,i,null),C.return=n,o.return=n,C.sibling=o,n.child=C,c=n.child,c.memoizedState=Nd(i),c.childLanes=Bd(t,b,i),n.memoizedState=zd,o):(Pr(n),Ld(n,C))}if(D=t.memoizedState,D!==null&&(C=D.dehydrated,C!==null)){if(p)n.flags&256?(Pr(n),n.flags&=-257,n=jd(t,n,i)):n.memoizedState!==null?(Xr(),n.child=t.child,n.flags|=128,n=null):(Xr(),c=o.fallback,C=n.mode,o=Ud({mode:"visible",children:o.children},C),c=Hi(c,C,i,null),c.flags|=2,o.return=n,c.return=n,o.sibling=c,n.child=o,Mi(n,t.child,null,i),o=n.child,o.memoizedState=Nd(i),o.childLanes=Bd(t,b,i),n.memoizedState=zd,n=c);else if(Pr(n),C.data==="$!"){if(b=C.nextSibling&&C.nextSibling.dataset,b)var U=b.dgst;b=U,o=Error(l(419)),o.stack="",o.digest=b,to({value:o,source:null,stack:null}),n=jd(t,n,i)}else if(Vt||po(t,n,i,!1),b=(i&t.childLanes)!==0,Vt||b){if(b=ct,b!==null){if(o=i&-i,o&42)o=1;else switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:o=64;break;case 268435456:o=134217728;break;default:o=0}if(o=o&(b.suspendedLanes|i)?0:o,o!==0&&o!==D.retryLane)throw D.retryLane=o,Fr(t,o),nn(b,t,o),cb}C.data==="$?"||dp(),n=jd(t,n,i)}else C.data==="$?"?(n.flags|=128,n.child=t.child,n=x6.bind(null,t),C._reactRetry=n,n=null):(t=D.treeContext,Gt=Wn(C.nextSibling),tn=n,Ze=!0,Kn=null,sr=!1,t!==null&&(Bn[Ln++]=xr,Bn[Ln++]=Er,Bn[Ln++]=ki,xr=t.id,Er=t.overflow,ki=n),n=Ld(n,o.children),n.flags|=4096);return n}return c?(Xr(),c=o.fallback,C=n.mode,D=t.child,U=D.sibling,o=ii(D,{mode:"hidden",children:o.children}),o.subtreeFlags=D.subtreeFlags&31457280,U!==null?c=ii(U,c):(c=Hi(c,C,i,null),c.flags|=2),c.return=n,o.return=n,o.sibling=c,n.child=o,o=c,c=n.child,C=t.child.memoizedState,C===null?C=Nd(i):(D=C.cachePool,D!==null?(U=jt._currentValue,D=D.parent!==U?{parent:U,pool:U}:D):D=v0(),C={baseLanes:C.baseLanes|i,cachePool:D}),c.memoizedState=C,c.childLanes=Bd(t,b,i),n.memoizedState=zd,o):(Pr(n),i=t.child,t=i.sibling,i=ii(i,{mode:"visible",children:o.children}),i.return=n,i.sibling=null,t!==null&&(b=n.deletions,b===null?(n.deletions=[t],n.flags|=16):b.push(t)),n.child=i,n.memoizedState=null,i)}function Ld(t,n){return n=Ud({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function Ud(t,n){return Yb(t,n,0,null)}function jd(t,n,i){return Mi(n,t.child,null,i),t=Ld(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function vb(t,n,i){t.lanes|=n;var o=t.alternate;o!==null&&(o.lanes|=n),$d(t.return,n,i)}function Hd(t,n,i,o,c){var p=t.memoizedState;p===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:c}:(p.isBackwards=n,p.rendering=null,p.renderingStartTime=0,p.last=o,p.tail=i,p.tailMode=c)}function xb(t,n,i){var o=n.pendingProps,c=o.revealOrder,p=o.tail;if(Yt(t,n,o.children,i),o=Ut.current,o&2)o=o&1|2,n.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&vb(t,i,n);else if(t.tag===19)vb(t,i,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}o&=1}switch(pe(Ut,o),c){case"forwards":for(i=n.child,c=null;i!==null;)t=i.alternate,t!==null&&es(t)===null&&(c=i),i=i.sibling;i=c,i===null?(c=n.child,n.child=null):(c=i.sibling,i.sibling=null),Hd(n,!1,c,i,p);break;case"backwards":for(i=null,c=n.child,n.child=null;c!==null;){if(t=c.alternate,t!==null&&es(t)===null){n.child=c;break}t=c.sibling,c.sibling=i,i=c,c=t}Hd(n,!0,i,null,p);break;case"together":Hd(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function wr(t,n,i){if(t!==null&&(n.dependencies=t.dependencies),ai|=n.lanes,!(i&n.childLanes))if(t!==null){if(po(t,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error(l(153));if(n.child!==null){for(t=n.child,i=ii(t,t.pendingProps),n.child=i,i.return=n;t.sibling!==null;)t=t.sibling,i=i.sibling=ii(t,t.pendingProps),i.return=n;i.sibling=null}return n.child}function Id(t,n){return t.lanes&n?!0:(t=t.dependencies,!!(t!==null&&ds(t)))}function o6(t,n,i){switch(n.tag){case 3:Te(n,n.stateNode.containerInfo),Zr(n,jt,t.memoizedState.cache),eo();break;case 27:case 5:je(n);break;case 4:Te(n,n.stateNode.containerInfo);break;case 10:Zr(n,n.type,n.memoizedProps.value);break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(Pr(n),n.flags|=128,null):i&n.child.childLanes?Sb(t,n,i):(Pr(n),t=wr(t,n,i),t!==null?t.sibling:null);Pr(n);break;case 19:var c=(t.flags&128)!==0;if(o=(i&n.childLanes)!==0,o||(po(t,n,i,!1),o=(i&n.childLanes)!==0),c){if(o)return xb(t,n,i);n.flags|=128}if(c=n.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),pe(Ut,Ut.current),o)break;return null;case 22:case 23:return n.lanes=0,hb(t,n,i);case 24:Zr(n,jt,t.memoizedState.cache)}return wr(t,n,i)}function Eb(t,n,i){if(t!==null)if(t.memoizedProps!==n.pendingProps)Vt=!0;else{if(!Id(t,i)&&!(n.flags&128))return Vt=!1,o6(t,n,i);Vt=!!(t.flags&131072)}else Vt=!1,Ze&&n.flags&1048576&&l0(n,Qu,n.index);switch(n.lanes=0,n.tag){case 16:e:{t=n.pendingProps;var o=n.elementType,c=o._init;if(o=c(o._payload),n.type=o,typeof o=="function")ep(o)?(t=Bi(o,t),n.tag=1,n=yb(null,n,o,t,i)):(n.tag=0,n=Dd(null,n,o,t,i));else{if(o!=null){if(c=o.$$typeof,c===A){n.tag=11,n=fb(null,n,o,t,i);break e}else if(c===w){n.tag=14,n=db(null,n,o,t,i);break e}}throw n=ne(o)||o,Error(l(306,n,""))}}return n;case 0:return Dd(t,n,n.type,n.pendingProps,i);case 1:return o=n.type,c=Bi(o,n.pendingProps),yb(t,n,o,c,i);case 3:e:{if(Te(n,n.stateNode.containerInfo),t===null)throw Error(l(387));var p=n.pendingProps;c=n.memoizedState,o=c.element,Yd(t,n),go(n,p,null,i);var b=n.memoizedState;if(p=b.cache,Zr(n,jt,p),p!==c.cache&&qd(n,[jt],i,!0),mo(),p=b.element,c.isDehydrated)if(c={element:p,isDehydrated:!1,cache:b.cache},n.updateQueue.baseState=c,n.memoizedState=c,n.flags&256){n=bb(t,n,p,i);break e}else if(p!==o){o=Nn(Error(l(424)),n),to(o),n=bb(t,n,p,i);break e}else for(Gt=Wn(n.stateNode.containerInfo.firstChild),tn=n,Ze=!0,Kn=null,sr=!0,i=m0(n,null,p,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(eo(),p===o){n=wr(t,n,i);break e}Yt(t,n,p,i)}n=n.child}return n;case 26:return fo(t,n),t===null?(i=wS(n.type,null,n.pendingProps,null))?n.memoizedState=i:Ze||(i=n.type,t=n.pendingProps,o=Rs(ge.current).createElement(i),o[Zt]=n,o[sn]=t,Ft(o,i,t),It(o),n.stateNode=o):n.memoizedState=wS(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return je(n),t===null&&Ze&&(o=n.stateNode=ES(n.type,n.pendingProps,ge.current),tn=n,sr=!0,Gt=Wn(o.firstChild)),o=n.pendingProps.children,t!==null||Ze?Yt(t,n,o,i):n.child=Mi(n,null,o,i),fo(t,n),n.child;case 5:return t===null&&Ze&&((c=o=Gt)&&(o=U6(o,n.type,n.pendingProps,sr),o!==null?(n.stateNode=o,tn=n,Gt=Wn(o.firstChild),sr=!1,c=!0):c=!1),c||Oi(n)),je(n),c=n.type,p=n.pendingProps,b=t!==null?t.memoizedProps:null,o=p.children,Ap(c,p)?o=null:b!==null&&Ap(c,b)&&(n.flags|=32),n.memoizedState!==null&&(c=hd(t,n,e6,null,null,i),_o._currentValue=c),fo(t,n),Yt(t,n,o,i),n.child;case 6:return t===null&&Ze&&((t=i=Gt)&&(i=j6(i,n.pendingProps,sr),i!==null?(n.stateNode=i,tn=n,Gt=null,t=!0):t=!1),t||Oi(n)),null;case 13:return Sb(t,n,i);case 4:return Te(n,n.stateNode.containerInfo),o=n.pendingProps,t===null?n.child=Mi(n,null,o,i):Yt(t,n,o,i),n.child;case 11:return fb(t,n,n.type,n.pendingProps,i);case 7:return Yt(t,n,n.pendingProps,i),n.child;case 8:return Yt(t,n,n.pendingProps.children,i),n.child;case 12:return Yt(t,n,n.pendingProps.children,i),n.child;case 10:return o=n.pendingProps,Zr(n,n.type,o.value),Yt(t,n,o.children,i),n.child;case 9:return c=n.type._context,o=n.pendingProps.children,Ui(n),c=Wt(c),o=o(c),n.flags|=1,Yt(t,n,o,i),n.child;case 14:return db(t,n,n.type,n.pendingProps,i);case 15:return pb(t,n,n.type,n.pendingProps,i);case 19:return xb(t,n,i);case 22:return hb(t,n,i);case 24:return Ui(n),o=Wt(jt),t===null?(c=dd(),c===null&&(c=ct,p=cd(),c.pooledCache=p,p.refCount++,p!==null&&(c.pooledCacheLanes|=i),c=p),n.memoizedState={parent:o,cache:c},Gd(n),Zr(n,jt,c)):(t.lanes&i&&(Yd(t,n),go(n,null,null,i),mo()),c=t.memoizedState,p=n.memoizedState,c.parent!==o?(c={parent:o,cache:o},n.memoizedState=c,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=c),Zr(n,jt,o)):(o=p.cache,Zr(n,jt,o),o!==c.cache&&qd(n,[jt],i,!0))),Yt(t,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(l(156,n.tag))}var Vd=we(null),Li=null,Ar=null;function Zr(t,n,i){pe(Vd,n._currentValue),n._currentValue=i}function kr(t){t._currentValue=Vd.current,Oe(Vd)}function $d(t,n,i){for(;t!==null;){var o=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,o!==null&&(o.childLanes|=n)):o!==null&&(o.childLanes&n)!==n&&(o.childLanes|=n),t===i)break;t=t.return}}function qd(t,n,i,o){var c=t.child;for(c!==null&&(c.return=t);c!==null;){var p=c.dependencies;if(p!==null){var b=c.child;p=p.firstContext;e:for(;p!==null;){var C=p;p=c;for(var D=0;D<n.length;D++)if(C.context===n[D]){p.lanes|=i,C=p.alternate,C!==null&&(C.lanes|=i),$d(p.return,i,t),o||(b=null);break e}p=C.next}}else if(c.tag===18){if(b=c.return,b===null)throw Error(l(341));b.lanes|=i,p=b.alternate,p!==null&&(p.lanes|=i),$d(b,i,t),b=null}else b=c.child;if(b!==null)b.return=c;else for(b=c;b!==null;){if(b===t){b=null;break}if(c=b.sibling,c!==null){c.return=b.return,b=c;break}b=b.return}c=b}}function po(t,n,i,o){t=null;for(var c=n,p=!1;c!==null;){if(!p){if(c.flags&524288)p=!0;else if(c.flags&262144)break}if(c.tag===10){var b=c.alternate;if(b===null)throw Error(l(387));if(b=b.memoizedProps,b!==null){var C=c.type;bn(c.pendingProps.value,b.value)||(t!==null?t.push(C):t=[C])}}else if(c===fe.current){if(b=c.alternate,b===null)throw Error(l(387));b.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(t!==null?t.push(_o):t=[_o])}c=c.return}t!==null&&qd(n,t,i,o),n.flags|=262144}function ds(t){for(t=t.firstContext;t!==null;){if(!bn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ui(t){Li=t,Ar=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Wt(t){return Cb(Li,t)}function ps(t,n){return Li===null&&Ui(t),Cb(t,n)}function Cb(t,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},Ar===null){if(t===null)throw Error(l(308));Ar=n,t.dependencies={lanes:0,firstContext:n},t.flags|=524288}else Ar=Ar.next=n;return i}var Wr=!1;function Gd(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Yd(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Jr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ei(t,n,i){var o=t.updateQueue;if(o===null)return null;if(o=o.shared,bt&2){var c=o.pending;return c===null?n.next=n:(n.next=c.next,c.next=n),o.pending=n,n=Pu(t),i0(t,null,i),n}return Fu(t,o,n,i),Pu(t)}function ho(t,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194176)!==0)){var o=n.lanes;o&=t.pendingLanes,i|=o,n.lanes=i,d1(t,i)}}function Fd(t,n){var i=t.updateQueue,o=t.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var c=null,p=null;if(i=i.firstBaseUpdate,i!==null){do{var b={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};p===null?c=p=b:p=p.next=b,i=i.next}while(i!==null);p===null?c=p=n:p=p.next=n}else c=p=n;i={baseState:o.baseState,firstBaseUpdate:c,lastBaseUpdate:p,shared:o.shared,callbacks:o.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=n:t.next=n,i.lastBaseUpdate=n}var Pd=!1;function mo(){if(Pd){var t=Ra;if(t!==null)throw t}}function go(t,n,i,o){Pd=!1;var c=t.updateQueue;Wr=!1;var p=c.firstBaseUpdate,b=c.lastBaseUpdate,C=c.shared.pending;if(C!==null){c.shared.pending=null;var D=C,U=D.next;D.next=null,b===null?p=U:b.next=U,b=D;var te=t.alternate;te!==null&&(te=te.updateQueue,C=te.lastBaseUpdate,C!==b&&(C===null?te.firstBaseUpdate=U:C.next=U,te.lastBaseUpdate=D))}if(p!==null){var le=c.baseState;b=0,te=U=D=null,C=p;do{var G=C.lane&-536870913,J=G!==C.lane;if(J?(Pe&G)===G:(o&G)===G){G!==0&&G===ka&&(Pd=!0),te!==null&&(te=te.next={lane:0,tag:C.tag,payload:C.payload,callback:null,next:null});e:{var ve=t,Me=C;G=n;var Tt=i;switch(Me.tag){case 1:if(ve=Me.payload,typeof ve=="function"){le=ve.call(Tt,le,G);break e}le=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=Me.payload,G=typeof ve=="function"?ve.call(Tt,le,G):ve,G==null)break e;le=E({},le,G);break e;case 2:Wr=!0}}G=C.callback,G!==null&&(t.flags|=64,J&&(t.flags|=8192),J=c.callbacks,J===null?c.callbacks=[G]:J.push(G))}else J={lane:G,tag:C.tag,payload:C.payload,callback:C.callback,next:null},te===null?(U=te=J,D=le):te=te.next=J,b|=G;if(C=C.next,C===null){if(C=c.shared.pending,C===null)break;J=C,C=J.next,J.next=null,c.lastBaseUpdate=J,c.shared.pending=null}}while(!0);te===null&&(D=le),c.baseState=D,c.firstBaseUpdate=U,c.lastBaseUpdate=te,p===null&&(c.shared.lanes=0),ai|=b,t.lanes=b,t.memoizedState=le}}function Tb(t,n){if(typeof t!="function")throw Error(l(191,t));t.call(n)}function wb(t,n){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)Tb(i[t],n)}function yo(t,n){try{var i=n.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&t)===t){o=void 0;var p=i.create,b=i.inst;o=p(),b.destroy=o}i=i.next}while(i!==c)}}catch(C){lt(n,n.return,C)}}function ti(t,n,i){try{var o=n.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var p=c.next;o=p;do{if((o.tag&t)===t){var b=o.inst,C=b.destroy;if(C!==void 0){b.destroy=void 0,c=n;var D=i;try{C()}catch(U){lt(c,D,U)}}}o=o.next}while(o!==p)}}catch(U){lt(n,n.return,U)}}function Ab(t){var n=t.updateQueue;if(n!==null){var i=t.stateNode;try{wb(n,i)}catch(o){lt(t,t.return,o)}}}function kb(t,n,i){i.props=Bi(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(o){lt(t,n,o)}}function ji(t,n){try{var i=t.ref;if(i!==null){var o=t.stateNode;switch(t.tag){case 26:case 27:case 5:var c=o;break;default:c=o}typeof i=="function"?t.refCleanup=i(c):i.current=c}}catch(p){lt(t,n,p)}}function Sn(t,n){var i=t.ref,o=t.refCleanup;if(i!==null)if(typeof o=="function")try{o()}catch(c){lt(t,n,c)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(c){lt(t,n,c)}else i.current=null}function Rb(t){var n=t.type,i=t.memoizedProps,o=t.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&o.focus();break e;case"img":i.src?o.src=i.src:i.srcSet&&(o.srcset=i.srcSet)}}catch(c){lt(t,t.return,c)}}function Ob(t,n,i){try{var o=t.stateNode;D6(o,t.type,i,n),o[sn]=n}catch(c){lt(t,t.return,c)}}function Mb(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27||t.tag===4}function Xd(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Mb(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==27&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Qd(t,n,i){var o=t.tag;if(o===5||o===6)t=t.stateNode,n?i.nodeType===8?i.parentNode.insertBefore(t,n):i.insertBefore(t,n):(i.nodeType===8?(n=i.parentNode,n.insertBefore(t,i)):(n=i,n.appendChild(t)),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=ks));else if(o!==4&&o!==27&&(t=t.child,t!==null))for(Qd(t,n,i),t=t.sibling;t!==null;)Qd(t,n,i),t=t.sibling}function hs(t,n,i){var o=t.tag;if(o===5||o===6)t=t.stateNode,n?i.insertBefore(t,n):i.appendChild(t);else if(o!==4&&o!==27&&(t=t.child,t!==null))for(hs(t,n,i),t=t.sibling;t!==null;)hs(t,n,i),t=t.sibling}var Rr=!1,Et=!1,Kd=!1,_b=typeof WeakSet=="function"?WeakSet:Set,$t=null,Db=!1;function u6(t,n){if(t=t.containerInfo,Tp=Ns,t=Q1(t),Wf(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var c=o.anchorOffset,p=o.focusNode;o=o.focusOffset;try{i.nodeType,p.nodeType}catch{i=null;break e}var b=0,C=-1,D=-1,U=0,te=0,le=t,G=null;t:for(;;){for(var J;le!==i||c!==0&&le.nodeType!==3||(C=b+c),le!==p||o!==0&&le.nodeType!==3||(D=b+o),le.nodeType===3&&(b+=le.nodeValue.length),(J=le.firstChild)!==null;)G=le,le=J;for(;;){if(le===t)break t;if(G===i&&++U===c&&(C=b),G===p&&++te===o&&(D=b),(J=le.nextSibling)!==null)break;le=G,G=le.parentNode}le=J}i=C===-1||D===-1?null:{start:C,end:D}}else i=null}i=i||{start:0,end:0}}else i=null;for(wp={focusedElem:t,selectionRange:i},Ns=!1,$t=n;$t!==null;)if(n=$t,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,$t=t;else for(;$t!==null;){switch(n=$t,p=n.alternate,t=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:if(t&1024&&p!==null){t=void 0,i=n,c=p.memoizedProps,p=p.memoizedState,o=i.stateNode;try{var ve=Bi(i.type,c,i.elementType===i.type);t=o.getSnapshotBeforeUpdate(ve,p),o.__reactInternalSnapshotBeforeUpdate=t}catch(Me){lt(i,i.return,Me)}}break;case 3:if(t&1024){if(t=n.stateNode.containerInfo,i=t.nodeType,i===9)Op(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Op(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(t&1024)throw Error(l(163))}if(t=n.sibling,t!==null){t.return=n.return,$t=t;break}$t=n.return}return ve=Db,Db=!1,ve}function zb(t,n,i){var o=i.flags;switch(i.tag){case 0:case 11:case 15:Mr(t,i),o&4&&yo(5,i);break;case 1:if(Mr(t,i),o&4)if(t=i.stateNode,n===null)try{t.componentDidMount()}catch(C){lt(i,i.return,C)}else{var c=Bi(i.type,n.memoizedProps);n=n.memoizedState;try{t.componentDidUpdate(c,n,t.__reactInternalSnapshotBeforeUpdate)}catch(C){lt(i,i.return,C)}}o&64&&Ab(i),o&512&&ji(i,i.return);break;case 3:if(Mr(t,i),o&64&&(o=i.updateQueue,o!==null)){if(t=null,i.child!==null)switch(i.child.tag){case 27:case 5:t=i.child.stateNode;break;case 1:t=i.child.stateNode}try{wb(o,t)}catch(C){lt(i,i.return,C)}}break;case 26:Mr(t,i),o&512&&ji(i,i.return);break;case 27:case 5:Mr(t,i),n===null&&o&4&&Rb(i),o&512&&ji(i,i.return);break;case 12:Mr(t,i);break;case 13:Mr(t,i),o&4&&Lb(t,i);break;case 22:if(c=i.memoizedState!==null||Rr,!c){n=n!==null&&n.memoizedState!==null||Et;var p=Rr,b=Et;Rr=c,(Et=n)&&!b?ni(t,i,(i.subtreeFlags&8772)!==0):Mr(t,i),Rr=p,Et=b}o&512&&(i.memoizedProps.mode==="manual"?ji(i,i.return):Sn(i,i.return));break;default:Mr(t,i)}}function Nb(t){var n=t.alternate;n!==null&&(t.alternate=null,Nb(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&Lf(n)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Nt=null,vn=!1;function Or(t,n,i){for(i=i.child;i!==null;)Bb(t,n,i),i=i.sibling}function Bb(t,n,i){if(Lt&&typeof Lt.onCommitFiberUnmount=="function")try{Lt.onCommitFiberUnmount(Ht,i)}catch{}switch(i.tag){case 26:Et||Sn(i,n),Or(t,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Et||Sn(i,n);var o=Nt,c=vn;for(Nt=i.stateNode,Or(t,n,i),i=i.stateNode,n=i.attributes;n.length;)i.removeAttributeNode(n[0]);Lf(i),Nt=o,vn=c;break;case 5:Et||Sn(i,n);case 6:c=Nt;var p=vn;if(Nt=null,Or(t,n,i),Nt=c,vn=p,Nt!==null)if(vn)try{t=Nt,o=i.stateNode,t.nodeType===8?t.parentNode.removeChild(o):t.removeChild(o)}catch(b){lt(i,n,b)}else try{Nt.removeChild(i.stateNode)}catch(b){lt(i,n,b)}break;case 18:Nt!==null&&(vn?(n=Nt,i=i.stateNode,n.nodeType===8?Rp(n.parentNode,i):n.nodeType===1&&Rp(n,i),Bo(n)):Rp(Nt,i.stateNode));break;case 4:o=Nt,c=vn,Nt=i.stateNode.containerInfo,vn=!0,Or(t,n,i),Nt=o,vn=c;break;case 0:case 11:case 14:case 15:Et||ti(2,i,n),Et||ti(4,i,n),Or(t,n,i);break;case 1:Et||(Sn(i,n),o=i.stateNode,typeof o.componentWillUnmount=="function"&&kb(i,n,o)),Or(t,n,i);break;case 21:Or(t,n,i);break;case 22:Et||Sn(i,n),Et=(o=Et)||i.memoizedState!==null,Or(t,n,i),Et=o;break;default:Or(t,n,i)}}function Lb(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Bo(t)}catch(i){lt(n,n.return,i)}}function s6(t){switch(t.tag){case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new _b),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new _b),n;default:throw Error(l(435,t.tag))}}function Zd(t,n){var i=s6(t);n.forEach(function(o){var c=E6.bind(null,t,o);i.has(o)||(i.add(o),o.then(c,c))})}function jn(t,n){var i=n.deletions;if(i!==null)for(var o=0;o<i.length;o++){var c=i[o],p=t,b=n,C=b;e:for(;C!==null;){switch(C.tag){case 27:case 5:Nt=C.stateNode,vn=!1;break e;case 3:Nt=C.stateNode.containerInfo,vn=!0;break e;case 4:Nt=C.stateNode.containerInfo,vn=!0;break e}C=C.return}if(Nt===null)throw Error(l(160));Bb(p,b,c),Nt=null,vn=!1,p=c.alternate,p!==null&&(p.return=null),c.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)Ub(n,t),n=n.sibling}var Zn=null;function Ub(t,n){var i=t.alternate,o=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:jn(n,t),Hn(t),o&4&&(ti(3,t,t.return),yo(3,t),ti(5,t,t.return));break;case 1:jn(n,t),Hn(t),o&512&&(Et||i===null||Sn(i,i.return)),o&64&&Rr&&(t=t.updateQueue,t!==null&&(o=t.callbacks,o!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?o:i.concat(o))));break;case 26:var c=Zn;if(jn(n,t),Hn(t),o&512&&(Et||i===null||Sn(i,i.return)),o&4){var p=i!==null?i.memoizedState:null;if(o=t.memoizedState,i===null)if(o===null)if(t.stateNode===null){e:{o=t.type,i=t.memoizedProps,c=c.ownerDocument||c;t:switch(o){case"title":p=c.getElementsByTagName("title")[0],(!p||p[$l]||p[Zt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=c.createElement(o),c.head.insertBefore(p,c.querySelector("head > title"))),Ft(p,o,i),p[Zt]=t,It(p),o=p;break e;case"link":var b=RS("link","href",c).get(o+(i.href||""));if(b){for(var C=0;C<b.length;C++)if(p=b[C],p.getAttribute("href")===(i.href==null?null:i.href)&&p.getAttribute("rel")===(i.rel==null?null:i.rel)&&p.getAttribute("title")===(i.title==null?null:i.title)&&p.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){b.splice(C,1);break t}}p=c.createElement(o),Ft(p,o,i),c.head.appendChild(p);break;case"meta":if(b=RS("meta","content",c).get(o+(i.content||""))){for(C=0;C<b.length;C++)if(p=b[C],p.getAttribute("content")===(i.content==null?null:""+i.content)&&p.getAttribute("name")===(i.name==null?null:i.name)&&p.getAttribute("property")===(i.property==null?null:i.property)&&p.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&p.getAttribute("charset")===(i.charSet==null?null:i.charSet)){b.splice(C,1);break t}}p=c.createElement(o),Ft(p,o,i),c.head.appendChild(p);break;default:throw Error(l(468,o))}p[Zt]=t,It(p),o=p}t.stateNode=o}else OS(c,t.type,t.stateNode);else t.stateNode=kS(c,o,t.memoizedProps);else p!==o?(p===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):p.count--,o===null?OS(c,t.type,t.stateNode):kS(c,o,t.memoizedProps)):o===null&&t.stateNode!==null&&Ob(t,t.memoizedProps,i.memoizedProps)}break;case 27:if(o&4&&t.alternate===null){c=t.stateNode,p=t.memoizedProps;try{for(var D=c.firstChild;D;){var U=D.nextSibling,te=D.nodeName;D[$l]||te==="HEAD"||te==="BODY"||te==="SCRIPT"||te==="STYLE"||te==="LINK"&&D.rel.toLowerCase()==="stylesheet"||c.removeChild(D),D=U}for(var le=t.type,G=c.attributes;G.length;)c.removeAttributeNode(G[0]);Ft(c,le,p),c[Zt]=t,c[sn]=p}catch(ve){lt(t,t.return,ve)}}case 5:if(jn(n,t),Hn(t),o&512&&(Et||i===null||Sn(i,i.return)),t.flags&32){c=t.stateNode;try{ma(c,"")}catch(ve){lt(t,t.return,ve)}}o&4&&t.stateNode!=null&&(c=t.memoizedProps,Ob(t,c,i!==null?i.memoizedProps:c)),o&1024&&(Kd=!0);break;case 6:if(jn(n,t),Hn(t),o&4){if(t.stateNode===null)throw Error(l(162));o=t.memoizedProps,i=t.stateNode;try{i.nodeValue=o}catch(ve){lt(t,t.return,ve)}}break;case 3:if(_s=null,c=Zn,Zn=Os(n.containerInfo),jn(n,t),Zn=c,Hn(t),o&4&&i!==null&&i.memoizedState.isDehydrated)try{Bo(n.containerInfo)}catch(ve){lt(t,t.return,ve)}Kd&&(Kd=!1,jb(t));break;case 4:o=Zn,Zn=Os(t.stateNode.containerInfo),jn(n,t),Hn(t),Zn=o;break;case 12:jn(n,t),Hn(t);break;case 13:jn(n,t),Hn(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(lp=Be()),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Zd(t,o)));break;case 22:if(o&512&&(Et||i===null||Sn(i,i.return)),D=t.memoizedState!==null,U=i!==null&&i.memoizedState!==null,te=Rr,le=Et,Rr=te||D,Et=le||U,jn(n,t),Et=le,Rr=te,Hn(t),n=t.stateNode,n._current=t,n._visibility&=-3,n._visibility|=n._pendingVisibility&2,o&8192&&(n._visibility=D?n._visibility&-2:n._visibility|1,D&&(n=Rr||Et,i===null||U||n||Da(t)),t.memoizedProps===null||t.memoizedProps.mode!=="manual"))e:for(i=null,n=t;;){if(n.tag===5||n.tag===26||n.tag===27){if(i===null){U=i=n;try{if(c=U.stateNode,D)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{b=U.stateNode,C=U.memoizedProps.style;var J=C!=null&&C.hasOwnProperty("display")?C.display:null;b.style.display=J==null||typeof J=="boolean"?"":(""+J).trim()}}catch(ve){lt(U,U.return,ve)}}}else if(n.tag===6){if(i===null){U=n;try{U.stateNode.nodeValue=D?"":U.memoizedProps}catch(ve){lt(U,U.return,ve)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}o&4&&(o=t.updateQueue,o!==null&&(i=o.retryQueue,i!==null&&(o.retryQueue=null,Zd(t,i))));break;case 19:jn(n,t),Hn(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Zd(t,o)));break;case 21:break;default:jn(n,t),Hn(t)}}function Hn(t){var n=t.flags;if(n&2){try{if(t.tag!==27){e:{for(var i=t.return;i!==null;){if(Mb(i)){var o=i;break e}i=i.return}throw Error(l(160))}switch(o.tag){case 27:var c=o.stateNode,p=Xd(t);hs(t,p,c);break;case 5:var b=o.stateNode;o.flags&32&&(ma(b,""),o.flags&=-33);var C=Xd(t);hs(t,C,b);break;case 3:case 4:var D=o.stateNode.containerInfo,U=Xd(t);Qd(t,U,D);break;default:throw Error(l(161))}}}catch(te){lt(t,t.return,te)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function jb(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;jb(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),t=t.sibling}}function Mr(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)zb(t,n.alternate,n),n=n.sibling}function Da(t){for(t=t.child;t!==null;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:ti(4,n,n.return),Da(n);break;case 1:Sn(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&kb(n,n.return,i),Da(n);break;case 26:case 27:case 5:Sn(n,n.return),Da(n);break;case 22:Sn(n,n.return),n.memoizedState===null&&Da(n);break;default:Da(n)}t=t.sibling}}function ni(t,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var o=n.alternate,c=t,p=n,b=p.flags;switch(p.tag){case 0:case 11:case 15:ni(c,p,i),yo(4,p);break;case 1:if(ni(c,p,i),o=p,c=o.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(U){lt(o,o.return,U)}if(o=p,c=o.updateQueue,c!==null){var C=o.stateNode;try{var D=c.shared.hiddenCallbacks;if(D!==null)for(c.shared.hiddenCallbacks=null,c=0;c<D.length;c++)Tb(D[c],C)}catch(U){lt(o,o.return,U)}}i&&b&64&&Ab(p),ji(p,p.return);break;case 26:case 27:case 5:ni(c,p,i),i&&o===null&&b&4&&Rb(p),ji(p,p.return);break;case 12:ni(c,p,i);break;case 13:ni(c,p,i),i&&b&4&&Lb(c,p);break;case 22:p.memoizedState===null&&ni(c,p,i),ji(p,p.return);break;default:ni(c,p,i)}n=n.sibling}}function Wd(t,n){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(t=n.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&lo(i))}function Jd(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&lo(t))}function ri(t,n,i,o){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Hb(t,n,i,o),n=n.sibling}function Hb(t,n,i,o){var c=n.flags;switch(n.tag){case 0:case 11:case 15:ri(t,n,i,o),c&2048&&yo(9,n);break;case 3:ri(t,n,i,o),c&2048&&(t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&lo(t)));break;case 12:if(c&2048){ri(t,n,i,o),t=n.stateNode;try{var p=n.memoizedProps,b=p.id,C=p.onPostCommit;typeof C=="function"&&C(b,n.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(D){lt(n,n.return,D)}}else ri(t,n,i,o);break;case 23:break;case 22:p=n.stateNode,n.memoizedState!==null?p._visibility&4?ri(t,n,i,o):bo(t,n):p._visibility&4?ri(t,n,i,o):(p._visibility|=4,za(t,n,i,o,(n.subtreeFlags&10256)!==0)),c&2048&&Wd(n.alternate,n);break;case 24:ri(t,n,i,o),c&2048&&Jd(n.alternate,n);break;default:ri(t,n,i,o)}}function za(t,n,i,o,c){for(c=c&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;){var p=t,b=n,C=i,D=o,U=b.flags;switch(b.tag){case 0:case 11:case 15:za(p,b,C,D,c),yo(8,b);break;case 23:break;case 22:var te=b.stateNode;b.memoizedState!==null?te._visibility&4?za(p,b,C,D,c):bo(p,b):(te._visibility|=4,za(p,b,C,D,c)),c&&U&2048&&Wd(b.alternate,b);break;case 24:za(p,b,C,D,c),c&&U&2048&&Jd(b.alternate,b);break;default:za(p,b,C,D,c)}n=n.sibling}}function bo(t,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=t,o=n,c=o.flags;switch(o.tag){case 22:bo(i,o),c&2048&&Wd(o.alternate,o);break;case 24:bo(i,o),c&2048&&Jd(o.alternate,o);break;default:bo(i,o)}n=n.sibling}}var So=8192;function Na(t){if(t.subtreeFlags&So)for(t=t.child;t!==null;)Ib(t),t=t.sibling}function Ib(t){switch(t.tag){case 26:Na(t),t.flags&So&&t.memoizedState!==null&&Z6(Zn,t.memoizedState,t.memoizedProps);break;case 5:Na(t);break;case 3:case 4:var n=Zn;Zn=Os(t.stateNode.containerInfo),Na(t),Zn=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=So,So=16777216,Na(t),So=n):Na(t));break;default:Na(t)}}function Vb(t){var n=t.alternate;if(n!==null&&(t=n.child,t!==null)){n.child=null;do n=t.sibling,t.sibling=null,t=n;while(t!==null)}}function vo(t){var n=t.deletions;if(t.flags&16){if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];$t=o,qb(o,t)}Vb(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)$b(t),t=t.sibling}function $b(t){switch(t.tag){case 0:case 11:case 15:vo(t),t.flags&2048&&ti(9,t,t.return);break;case 3:vo(t);break;case 12:vo(t);break;case 22:var n=t.stateNode;t.memoizedState!==null&&n._visibility&4&&(t.return===null||t.return.tag!==13)?(n._visibility&=-5,ms(t)):vo(t);break;default:vo(t)}}function ms(t){var n=t.deletions;if(t.flags&16){if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];$t=o,qb(o,t)}Vb(t)}for(t=t.child;t!==null;){switch(n=t,n.tag){case 0:case 11:case 15:ti(8,n,n.return),ms(n);break;case 22:i=n.stateNode,i._visibility&4&&(i._visibility&=-5,ms(n));break;default:ms(n)}t=t.sibling}}function qb(t,n){for(;$t!==null;){var i=$t;switch(i.tag){case 0:case 11:case 15:ti(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var o=i.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:lo(i.memoizedState.cache)}if(o=i.child,o!==null)o.return=i,$t=o;else e:for(i=t;$t!==null;){o=$t;var c=o.sibling,p=o.return;if(Nb(o),o===i){$t=null;break e}if(c!==null){c.return=p,$t=c;break e}$t=p}}}function c6(t,n,i,o){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function In(t,n,i,o){return new c6(t,n,i,o)}function ep(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ii(t,n){var i=t.alternate;return i===null?(i=In(t.tag,n,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=n,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&31457280,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,n=t.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function Gb(t,n){t.flags&=31457282;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=n,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,n=i.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),t}function gs(t,n,i,o,c,p){var b=0;if(o=t,typeof t=="function")ep(t)&&(b=1);else if(typeof t=="string")b=Q6(t,i,Ne.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case m:return Hi(i.children,c,p,n);case h:b=8,c|=24;break;case g:return t=In(12,i,n,c|2),t.elementType=g,t.lanes=p,t;case T:return t=In(13,i,n,c),t.elementType=T,t.lanes=p,t;case N:return t=In(19,i,n,c),t.elementType=N,t.lanes=p,t;case k:return Yb(i,c,p,n);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case y:case S:b=10;break e;case v:b=9;break e;case A:b=11;break e;case w:b=14;break e;case B:b=16,o=null;break e}b=29,i=Error(l(130,t===null?"null":typeof t,"")),o=null}return n=In(b,i,n,c),n.elementType=t,n.type=o,n.lanes=p,n}function Hi(t,n,i,o){return t=In(7,t,o,n),t.lanes=i,t}function Yb(t,n,i,o){t=In(22,t,o,n),t.elementType=k,t.lanes=i;var c={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var p=c._current;if(p===null)throw Error(l(456));if(!(c._pendingVisibility&2)){var b=Fr(p,2);b!==null&&(c._pendingVisibility|=2,nn(b,p,2))}},attach:function(){var p=c._current;if(p===null)throw Error(l(456));if(c._pendingVisibility&2){var b=Fr(p,2);b!==null&&(c._pendingVisibility&=-3,nn(b,p,2))}}};return t.stateNode=c,t}function tp(t,n,i){return t=In(6,t,null,n),t.lanes=i,t}function np(t,n,i){return n=In(4,t.children!==null?t.children:[],t.key,n),n.lanes=i,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}function _r(t){t.flags|=4}function Fb(t,n){if(n.type!=="stylesheet"||n.state.loading&4)t.flags&=-16777217;else if(t.flags|=16777216,!MS(n)){if(n=Un.current,n!==null&&((Pe&4194176)===Pe?cr!==null:(Pe&62914560)!==Pe&&!(Pe&536870912)||n!==cr))throw ro=od,s0;t.flags|=8192}}function ys(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?c1():536870912,t.lanes|=n,La|=n)}function xo(t,n){if(!Ze)switch(t.tailMode){case"hidden":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:o.sibling=null}}function yt(t){var n=t.alternate!==null&&t.alternate.child===t.child,i=0,o=0;if(n)for(var c=t.child;c!==null;)i|=c.lanes|c.childLanes,o|=c.subtreeFlags&31457280,o|=c.flags&31457280,c.return=t,c=c.sibling;else for(c=t.child;c!==null;)i|=c.lanes|c.childLanes,o|=c.subtreeFlags,o|=c.flags,c.return=t,c=c.sibling;return t.subtreeFlags|=o,t.childLanes=i,n}function f6(t,n,i){var o=n.pendingProps;switch(ad(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yt(n),null;case 1:return yt(n),null;case 3:return i=n.stateNode,o=null,t!==null&&(o=t.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),kr(jt),Ge(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(Jl(n)?_r(n):t===null||t.memoizedState.isDehydrated&&!(n.flags&256)||(n.flags|=1024,Kn!==null&&(cp(Kn),Kn=null))),yt(n),null;case 26:return i=n.memoizedState,t===null?(_r(n),i!==null?(yt(n),Fb(n,i)):(yt(n),n.flags&=-16777217)):i?i!==t.memoizedState?(_r(n),yt(n),Fb(n,i)):(yt(n),n.flags&=-16777217):(t.memoizedProps!==o&&_r(n),yt(n),n.flags&=-16777217),null;case 27:_e(n),i=ge.current;var c=n.type;if(t!==null&&n.stateNode!=null)t.memoizedProps!==o&&_r(n);else{if(!o){if(n.stateNode===null)throw Error(l(166));return yt(n),null}t=Ne.current,Jl(n)?o0(n):(t=ES(c,o,i),n.stateNode=t,_r(n))}return yt(n),null;case 5:if(_e(n),i=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==o&&_r(n);else{if(!o){if(n.stateNode===null)throw Error(l(166));return yt(n),null}if(t=Ne.current,Jl(n))o0(n);else{switch(c=Rs(ge.current),t){case 1:t=c.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:t=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":t=c.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":t=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":t=c.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof o.is=="string"?c.createElement("select",{is:o.is}):c.createElement("select"),o.multiple?t.multiple=!0:o.size&&(t.size=o.size);break;default:t=typeof o.is=="string"?c.createElement(i,{is:o.is}):c.createElement(i)}}t[Zt]=n,t[sn]=o;e:for(c=n.child;c!==null;){if(c.tag===5||c.tag===6)t.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===n)break e;for(;c.sibling===null;){if(c.return===null||c.return===n)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}n.stateNode=t;e:switch(Ft(t,i,o),i){case"button":case"input":case"select":case"textarea":t=!!o.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&_r(n)}}return yt(n),n.flags&=-16777217,null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==o&&_r(n);else{if(typeof o!="string"&&n.stateNode===null)throw Error(l(166));if(t=ge.current,Jl(n)){if(t=n.stateNode,i=n.memoizedProps,o=null,c=tn,c!==null)switch(c.tag){case 27:case 5:o=c.memoizedProps}t[Zt]=n,t=!!(t.nodeValue===i||o!==null&&o.suppressHydrationWarning===!0||gS(t.nodeValue,i)),t||Oi(n)}else t=Rs(t).createTextNode(o),t[Zt]=n,n.stateNode=t}return yt(n),null;case 13:if(o=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(c=Jl(n),o!==null&&o.dehydrated!==null){if(t===null){if(!c)throw Error(l(318));if(c=n.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(l(317));c[Zt]=n}else eo(),!(n.flags&128)&&(n.memoizedState=null),n.flags|=4;yt(n),c=!1}else Kn!==null&&(cp(Kn),Kn=null),c=!0;if(!c)return n.flags&256?(Cr(n),n):(Cr(n),null)}if(Cr(n),n.flags&128)return n.lanes=i,n;if(i=o!==null,t=t!==null&&t.memoizedState!==null,i){o=n.child,c=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(c=o.alternate.memoizedState.cachePool.pool);var p=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(p=o.memoizedState.cachePool.pool),p!==c&&(o.flags|=2048)}return i!==t&&i&&(n.child.flags|=8192),ys(n,n.updateQueue),yt(n),null;case 4:return Ge(),t===null&&xp(n.stateNode.containerInfo),yt(n),null;case 10:return kr(n.type),yt(n),null;case 19:if(Oe(Ut),c=n.memoizedState,c===null)return yt(n),null;if(o=(n.flags&128)!==0,p=c.rendering,p===null)if(o)xo(c,!1);else{if(Ct!==0||t!==null&&t.flags&128)for(t=n.child;t!==null;){if(p=es(t),p!==null){for(n.flags|=128,xo(c,!1),t=p.updateQueue,n.updateQueue=t,ys(n,t),n.subtreeFlags=0,t=i,i=n.child;i!==null;)Gb(i,t),i=i.sibling;return pe(Ut,Ut.current&1|2),n.child}t=t.sibling}c.tail!==null&&Be()>bs&&(n.flags|=128,o=!0,xo(c,!1),n.lanes=4194304)}else{if(!o)if(t=es(p),t!==null){if(n.flags|=128,o=!0,t=t.updateQueue,n.updateQueue=t,ys(n,t),xo(c,!0),c.tail===null&&c.tailMode==="hidden"&&!p.alternate&&!Ze)return yt(n),null}else 2*Be()-c.renderingStartTime>bs&&i!==536870912&&(n.flags|=128,o=!0,xo(c,!1),n.lanes=4194304);c.isBackwards?(p.sibling=n.child,n.child=p):(t=c.last,t!==null?t.sibling=p:n.child=p,c.last=p)}return c.tail!==null?(n=c.tail,c.rendering=n,c.tail=n.sibling,c.renderingStartTime=Be(),n.sibling=null,t=Ut.current,pe(Ut,o?t&1|2:t&1),n):(yt(n),null);case 22:case 23:return Cr(n),sd(),o=n.memoizedState!==null,t!==null?t.memoizedState!==null!==o&&(n.flags|=8192):o&&(n.flags|=8192),o?i&536870912&&!(n.flags&128)&&(yt(n),n.subtreeFlags&6&&(n.flags|=8192)):yt(n),i=n.updateQueue,i!==null&&ys(n,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==i&&(n.flags|=2048),t!==null&&Oe(_i),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),kr(jt),yt(n),null;case 25:return null}throw Error(l(156,n.tag))}function d6(t,n){switch(ad(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return kr(jt),Ge(),t=n.flags,t&65536&&!(t&128)?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return _e(n),null;case 13:if(Cr(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(l(340));eo()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return Oe(Ut),null;case 4:return Ge(),null;case 10:return kr(n.type),null;case 22:case 23:return Cr(n),sd(),t!==null&&Oe(_i),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 24:return kr(jt),null;case 25:return null;default:return null}}function Pb(t,n){switch(ad(n),n.tag){case 3:kr(jt),Ge();break;case 26:case 27:case 5:_e(n);break;case 4:Ge();break;case 13:Cr(n);break;case 19:Oe(Ut);break;case 10:kr(n.type);break;case 22:case 23:Cr(n),sd(),t!==null&&Oe(_i);break;case 24:kr(jt)}}var p6={getCacheForType:function(t){var n=Wt(jt),i=n.data.get(t);return i===void 0&&(i=t(),n.data.set(t,i)),i}},h6=typeof WeakMap=="function"?WeakMap:Map,bt=0,ct=null,Ve=null,Pe=0,ft=0,xn=null,Dr=!1,Ba=!1,rp=!1,zr=0,Ct=0,ai=0,Ii=0,ip=0,Vn=0,La=0,Eo=null,dr=null,ap=!1,lp=0,bs=1/0,Ss=null,li=null,vs=!1,Vi=null,Co=0,op=0,up=null,To=0,sp=null;function En(){if(bt&2&&Pe!==0)return Pe&-Pe;if(V.T!==null){var t=ka;return t!==0?t:yp()}return h1()}function Xb(){Vn===0&&(Vn=!(Pe&536870912)||Ze?s1():536870912);var t=Un.current;return t!==null&&(t.flags|=32),Vn}function nn(t,n,i){(t===ct&&ft===2||t.cancelPendingCommit!==null)&&(Ua(t,0),Nr(t,Pe,Vn,!1)),Vl(t,i),(!(bt&2)||t!==ct)&&(t===ct&&(!(bt&2)&&(Ii|=i),Ct===4&&Nr(t,Pe,Vn,!1)),pr(t))}function Qb(t,n,i){if(bt&6)throw Error(l(327));var o=!i&&(n&60)===0&&(n&t.expiredLanes)===0||Il(t,n),c=o?y6(t,n):pp(t,n,!0),p=o;do{if(c===0){Ba&&!o&&Nr(t,n,0,!1);break}else if(c===6)Nr(t,n,0,!Dr);else{if(i=t.current.alternate,p&&!m6(i)){c=pp(t,n,!1),p=!1;continue}if(c===2){if(p=n,t.errorRecoveryDisabledLanes&p)var b=0;else b=t.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){n=b;e:{var C=t;c=Eo;var D=C.current.memoizedState.isDehydrated;if(D&&(Ua(C,b).flags|=256),b=pp(C,b,!1),b!==2){if(rp&&!D){C.errorRecoveryDisabledLanes|=p,Ii|=p,c=4;break e}p=dr,dr=c,p!==null&&cp(p)}c=b}if(p=!1,c!==2)continue}}if(c===1){Ua(t,0),Nr(t,n,0,!0);break}e:{switch(o=t,c){case 0:case 1:throw Error(l(345));case 4:if((n&4194176)===n){Nr(o,n,Vn,!Dr);break e}break;case 2:dr=null;break;case 3:case 5:break;default:throw Error(l(329))}if(o.finishedWork=i,o.finishedLanes=n,(n&62914560)===n&&(p=lp+300-Be(),10<p)){if(Nr(o,n,Vn,!Dr),zu(o,0)!==0)break e;o.timeoutHandle=SS(Kb.bind(null,o,i,dr,Ss,ap,n,Vn,Ii,La,Dr,2,-0,0),p);break e}Kb(o,i,dr,Ss,ap,n,Vn,Ii,La,Dr,0,-0,0)}}break}while(!0);pr(t)}function cp(t){dr===null?dr=t:dr.push.apply(dr,t)}function Kb(t,n,i,o,c,p,b,C,D,U,te,le,G){var J=n.subtreeFlags;if((J&8192||(J&16785408)===16785408)&&(Mo={stylesheets:null,count:0,unsuspend:K6},Ib(n),n=W6(),n!==null)){t.cancelPendingCommit=n(rS.bind(null,t,i,o,c,b,C,D,1,le,G)),Nr(t,p,b,!U);return}rS(t,i,o,c,b,C,D,te,le,G)}function m6(t){for(var n=t;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var o=0;o<i.length;o++){var c=i[o],p=c.getSnapshot;c=c.value;try{if(!bn(p(),c))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Nr(t,n,i,o){n&=~ip,n&=~Ii,t.suspendedLanes|=n,t.pingedLanes&=~n,o&&(t.warmLanes|=n),o=t.expirationTimes;for(var c=n;0<c;){var p=31-_t(c),b=1<<p;o[p]=-1,c&=~b}i!==0&&f1(t,i,n)}function xs(){return bt&6?!0:(wo(0),!1)}function fp(){if(Ve!==null){if(ft===0)var t=Ve.return;else t=Ve,Ar=Li=null,yd(t),wa=null,io=0,t=Ve;for(;t!==null;)Pb(t.alternate,t),t=t.return;Ve=null}}function Ua(t,n){t.finishedWork=null,t.finishedLanes=0;var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,N6(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),fp(),ct=t,Ve=i=ii(t.current,null),Pe=n,ft=0,xn=null,Dr=!1,Ba=Il(t,n),rp=!1,La=Vn=ip=Ii=ai=Ct=0,dr=Eo=null,ap=!1,n&8&&(n|=n&32);var o=t.entangledLanes;if(o!==0)for(t=t.entanglements,o&=n;0<o;){var c=31-_t(o),p=1<<c;n|=t[c],o&=~p}return zr=n,Yu(),i}function Zb(t,n){Le=null,V.H=fr,n===no?(n=d0(),ft=3):n===s0?(n=d0(),ft=4):ft=n===cb?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,xn=n,Ve===null&&(Ct=1,fs(t,Nn(n,t.current)))}function Wb(){var t=V.H;return V.H=fr,t===null?fr:t}function Jb(){var t=V.A;return V.A=p6,t}function dp(){Ct=4,Dr||(Pe&4194176)!==Pe&&Un.current!==null||(Ba=!0),!(ai&134217727)&&!(Ii&134217727)||ct===null||Nr(ct,Pe,Vn,!1)}function pp(t,n,i){var o=bt;bt|=2;var c=Wb(),p=Jb();(ct!==t||Pe!==n)&&(Ss=null,Ua(t,n)),n=!1;var b=Ct;e:do try{if(ft!==0&&Ve!==null){var C=Ve,D=xn;switch(ft){case 8:fp(),b=6;break e;case 3:case 2:case 6:Un.current===null&&(n=!0);var U=ft;if(ft=0,xn=null,ja(t,C,D,U),i&&Ba){b=0;break e}break;default:U=ft,ft=0,xn=null,ja(t,C,D,U)}}g6(),b=Ct;break}catch(te){Zb(t,te)}while(!0);return n&&t.shellSuspendCounter++,Ar=Li=null,bt=o,V.H=c,V.A=p,Ve===null&&(ct=null,Pe=0,Yu()),b}function g6(){for(;Ve!==null;)eS(Ve)}function y6(t,n){var i=bt;bt|=2;var o=Wb(),c=Jb();ct!==t||Pe!==n?(Ss=null,bs=Be()+500,Ua(t,n)):Ba=Il(t,n);e:do try{if(ft!==0&&Ve!==null){n=Ve;var p=xn;t:switch(ft){case 1:ft=0,xn=null,ja(t,n,p,1);break;case 2:if(c0(p)){ft=0,xn=null,tS(n);break}n=function(){ft===2&&ct===t&&(ft=7),pr(t)},p.then(n,n);break e;case 3:ft=7;break e;case 4:ft=5;break e;case 7:c0(p)?(ft=0,xn=null,tS(n)):(ft=0,xn=null,ja(t,n,p,7));break;case 5:var b=null;switch(Ve.tag){case 26:b=Ve.memoizedState;case 5:case 27:var C=Ve;if(!b||MS(b)){ft=0,xn=null;var D=C.sibling;if(D!==null)Ve=D;else{var U=C.return;U!==null?(Ve=U,Es(U)):Ve=null}break t}}ft=0,xn=null,ja(t,n,p,5);break;case 6:ft=0,xn=null,ja(t,n,p,6);break;case 8:fp(),Ct=6;break e;default:throw Error(l(462))}}b6();break}catch(te){Zb(t,te)}while(!0);return Ar=Li=null,V.H=o,V.A=c,bt=i,Ve!==null?0:(ct=null,Pe=0,Yu(),Ct)}function b6(){for(;Ve!==null&&!yn();)eS(Ve)}function eS(t){var n=Eb(t.alternate,t,zr);t.memoizedProps=t.pendingProps,n===null?Es(t):Ve=n}function tS(t){var n=t,i=n.alternate;switch(n.tag){case 15:case 0:n=gb(i,n,n.pendingProps,n.type,void 0,Pe);break;case 11:n=gb(i,n,n.pendingProps,n.type.render,n.ref,Pe);break;case 5:yd(n);default:Pb(i,n),n=Ve=Gb(n,zr),n=Eb(i,n,zr)}t.memoizedProps=t.pendingProps,n===null?Es(t):Ve=n}function ja(t,n,i,o){Ar=Li=null,yd(n),wa=null,io=0;var c=n.return;try{if(l6(t,c,n,i,Pe)){Ct=1,fs(t,Nn(i,t.current)),Ve=null;return}}catch(p){if(c!==null)throw Ve=c,p;Ct=1,fs(t,Nn(i,t.current)),Ve=null;return}n.flags&32768?(Ze||o===1?t=!0:Ba||Pe&536870912?t=!1:(Dr=t=!0,(o===2||o===3||o===6)&&(o=Un.current,o!==null&&o.tag===13&&(o.flags|=16384))),nS(n,t)):Es(n)}function Es(t){var n=t;do{if(n.flags&32768){nS(n,Dr);return}t=n.return;var i=f6(n.alternate,n,zr);if(i!==null){Ve=i;return}if(n=n.sibling,n!==null){Ve=n;return}Ve=n=t}while(n!==null);Ct===0&&(Ct=5)}function nS(t,n){do{var i=d6(t.alternate,t);if(i!==null){i.flags&=32767,Ve=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(t=t.sibling,t!==null)){Ve=t;return}Ve=t=i}while(t!==null);Ct=6,Ve=null}function rS(t,n,i,o,c,p,b,C,D,U){var te=V.T,le=ie.p;try{ie.p=2,V.T=null,S6(t,n,i,o,le,c,p,b,C,D,U)}finally{V.T=te,ie.p=le}}function S6(t,n,i,o,c,p,b,C){do Ha();while(Vi!==null);if(bt&6)throw Error(l(327));var D=t.finishedWork;if(o=t.finishedLanes,D===null)return null;if(t.finishedWork=null,t.finishedLanes=0,D===t.current)throw Error(l(177));t.callbackNode=null,t.callbackPriority=0,t.cancelPendingCommit=null;var U=D.lanes|D.childLanes;if(U|=nd,Z4(t,o,U,p,b,C),t===ct&&(Ve=ct=null,Pe=0),!(D.subtreeFlags&10256)&&!(D.flags&10256)||vs||(vs=!0,op=U,up=i,C6(de,function(){return Ha(),null})),i=(D.flags&15990)!==0,D.subtreeFlags&15990||i?(i=V.T,V.T=null,p=ie.p,ie.p=2,b=bt,bt|=4,u6(t,D),Ub(D,t),q3(wp,t.containerInfo),Ns=!!Tp,wp=Tp=null,t.current=D,zb(t,D.alternate,D),Ce(),bt=b,ie.p=p,V.T=i):t.current=D,vs?(vs=!1,Vi=t,Co=o):iS(t,U),U=t.pendingLanes,U===0&&(li=null),vi(D.stateNode),pr(t),n!==null)for(c=t.onRecoverableError,D=0;D<n.length;D++)U=n[D],c(U.value,{componentStack:U.stack});return Co&3&&Ha(),U=t.pendingLanes,o&4194218&&U&42?t===sp?To++:(To=0,sp=t):To=0,wo(0),null}function iS(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,lo(n)))}function Ha(){if(Vi!==null){var t=Vi,n=op;op=0;var i=p1(Co),o=V.T,c=ie.p;try{if(ie.p=32>i?32:i,V.T=null,Vi===null)var p=!1;else{i=up,up=null;var b=Vi,C=Co;if(Vi=null,Co=0,bt&6)throw Error(l(331));var D=bt;if(bt|=4,$b(b.current),Hb(b,b.current,C,i),bt=D,wo(0,!1),Lt&&typeof Lt.onPostCommitFiberRoot=="function")try{Lt.onPostCommitFiberRoot(Ht,b)}catch{}p=!0}return p}finally{ie.p=c,V.T=o,iS(t,n)}}return!1}function aS(t,n,i){n=Nn(i,n),n=_d(t.stateNode,n,2),t=ei(t,n,2),t!==null&&(Vl(t,2),pr(t))}function lt(t,n,i){if(t.tag===3)aS(t,t,i);else for(;n!==null;){if(n.tag===3){aS(n,t,i);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(li===null||!li.has(o))){t=Nn(i,t),i=ub(2),o=ei(n,i,2),o!==null&&(sb(i,o,n,t),Vl(o,2),pr(o));break}}n=n.return}}function hp(t,n,i){var o=t.pingCache;if(o===null){o=t.pingCache=new h6;var c=new Set;o.set(n,c)}else c=o.get(n),c===void 0&&(c=new Set,o.set(n,c));c.has(i)||(rp=!0,c.add(i),t=v6.bind(null,t,n,i),n.then(t,t))}function v6(t,n,i){var o=t.pingCache;o!==null&&o.delete(n),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,ct===t&&(Pe&i)===i&&(Ct===4||Ct===3&&(Pe&62914560)===Pe&&300>Be()-lp?!(bt&2)&&Ua(t,0):ip|=i,La===Pe&&(La=0)),pr(t)}function lS(t,n){n===0&&(n=c1()),t=Fr(t,n),t!==null&&(Vl(t,n),pr(t))}function x6(t){var n=t.memoizedState,i=0;n!==null&&(i=n.retryLane),lS(t,i)}function E6(t,n){var i=0;switch(t.tag){case 13:var o=t.stateNode,c=t.memoizedState;c!==null&&(i=c.retryLane);break;case 19:o=t.stateNode;break;case 22:o=t.stateNode._retryCache;break;default:throw Error(l(314))}o!==null&&o.delete(n),lS(t,i)}function C6(t,n){return gt(t,n)}var Cs=null,Ia=null,mp=!1,Ts=!1,gp=!1,$i=0;function pr(t){t!==Ia&&t.next===null&&(Ia===null?Cs=Ia=t:Ia=Ia.next=t),Ts=!0,mp||(mp=!0,w6(T6))}function wo(t,n){if(!gp&&Ts){gp=!0;do for(var i=!1,o=Cs;o!==null;){if(t!==0){var c=o.pendingLanes;if(c===0)var p=0;else{var b=o.suspendedLanes,C=o.pingedLanes;p=(1<<31-_t(42|t)+1)-1,p&=c&~(b&~C),p=p&201326677?p&201326677|1:p?p|2:0}p!==0&&(i=!0,sS(o,p))}else p=Pe,p=zu(o,o===ct?p:0),!(p&3)||Il(o,p)||(i=!0,sS(o,p));o=o.next}while(i);gp=!1}}function T6(){Ts=mp=!1;var t=0;$i!==0&&(z6()&&(t=$i),$i=0);for(var n=Be(),i=null,o=Cs;o!==null;){var c=o.next,p=oS(o,n);p===0?(o.next=null,i===null?Cs=c:i.next=c,c===null&&(Ia=i)):(i=o,(t!==0||p&3)&&(Ts=!0)),o=c}wo(t)}function oS(t,n){for(var i=t.suspendedLanes,o=t.pingedLanes,c=t.expirationTimes,p=t.pendingLanes&-62914561;0<p;){var b=31-_t(p),C=1<<b,D=c[b];D===-1?(!(C&i)||C&o)&&(c[b]=K4(C,n)):D<=n&&(t.expiredLanes|=C),p&=~C}if(n=ct,i=Pe,i=zu(t,t===n?i:0),o=t.callbackNode,i===0||t===n&&ft===2||t.cancelPendingCommit!==null)return o!==null&&o!==null&&Kt(o),t.callbackNode=null,t.callbackPriority=0;if(!(i&3)||Il(t,i)){if(n=i&-i,n===t.callbackPriority)return n;switch(o!==null&&Kt(o),p1(i)){case 2:case 8:i=ae;break;case 32:i=de;break;case 268435456:i=qe;break;default:i=de}return o=uS.bind(null,t),i=gt(i,o),t.callbackPriority=n,t.callbackNode=i,n}return o!==null&&o!==null&&Kt(o),t.callbackPriority=2,t.callbackNode=null,2}function uS(t,n){var i=t.callbackNode;if(Ha()&&t.callbackNode!==i)return null;var o=Pe;return o=zu(t,t===ct?o:0),o===0?null:(Qb(t,o,n),oS(t,Be()),t.callbackNode!=null&&t.callbackNode===i?uS.bind(null,t):null)}function sS(t,n){if(Ha())return null;Qb(t,n,!0)}function w6(t){B6(function(){bt&6?gt(X,t):t()})}function yp(){return $i===0&&($i=s1()),$i}function cS(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ju(""+t)}function fS(t,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,t.id&&i.setAttribute("form",t.id),n.parentNode.insertBefore(i,n),t=new FormData(t),i.parentNode.removeChild(i),t}function A6(t,n,i,o,c){if(n==="submit"&&i&&i.stateNode===c){var p=cS((c[sn]||null).action),b=o.submitter;b&&(n=(n=b[sn]||null)?cS(n.formAction):b.getAttribute("formAction"),n!==null&&(p=n,b=null));var C=new $u("action","action",null,o,c);t.push({event:C,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if($i!==0){var D=b?fS(c,b):new FormData(c);Ad(i,{pending:!0,data:D,method:c.method,action:p},null,D)}}else typeof p=="function"&&(C.preventDefault(),D=b?fS(c,b):new FormData(c),Ad(i,{pending:!0,data:D,method:c.method,action:p},p,D))},currentTarget:c}]})}}for(var bp=0;bp<r0.length;bp++){var Sp=r0[bp],k6=Sp.toLowerCase(),R6=Sp[0].toUpperCase()+Sp.slice(1);Qn(k6,"on"+R6)}Qn(W1,"onAnimationEnd"),Qn(J1,"onAnimationIteration"),Qn(e0,"onAnimationStart"),Qn("dblclick","onDoubleClick"),Qn("focusin","onFocus"),Qn("focusout","onBlur"),Qn(Y3,"onTransitionRun"),Qn(F3,"onTransitionStart"),Qn(P3,"onTransitionCancel"),Qn(t0,"onTransitionEnd"),pa("onMouseEnter",["mouseout","mouseover"]),pa("onMouseLeave",["mouseout","mouseover"]),pa("onPointerEnter",["pointerout","pointerover"]),pa("onPointerLeave",["pointerout","pointerover"]),Ci("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ci("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ci("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ci("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ci("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ci("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ao="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(" "),O6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ao));function dS(t,n){n=(n&4)!==0;for(var i=0;i<t.length;i++){var o=t[i],c=o.event;o=o.listeners;e:{var p=void 0;if(n)for(var b=o.length-1;0<=b;b--){var C=o[b],D=C.instance,U=C.currentTarget;if(C=C.listener,D!==p&&c.isPropagationStopped())break e;p=C,c.currentTarget=U;try{p(c)}catch(te){cs(te)}c.currentTarget=null,p=D}else for(b=0;b<o.length;b++){if(C=o[b],D=C.instance,U=C.currentTarget,C=C.listener,D!==p&&c.isPropagationStopped())break e;p=C,c.currentTarget=U;try{p(c)}catch(te){cs(te)}c.currentTarget=null,p=D}}}}function Ye(t,n){var i=n[Bf];i===void 0&&(i=n[Bf]=new Set);var o=t+"__bubble";i.has(o)||(pS(n,t,2,!1),i.add(o))}function vp(t,n,i){var o=0;n&&(o|=4),pS(i,t,o,n)}var ws="_reactListening"+Math.random().toString(36).slice(2);function xp(t){if(!t[ws]){t[ws]=!0,g1.forEach(function(i){i!=="selectionchange"&&(O6.has(i)||vp(i,!1,t),vp(i,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[ws]||(n[ws]=!0,vp("selectionchange",!1,n))}}function pS(t,n,i,o){switch(LS(n)){case 2:var c=tO;break;case 8:c=nO;break;default:c=Np}i=c.bind(null,n,i,t),c=void 0,!qf||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(c=!0),o?c!==void 0?t.addEventListener(n,i,{capture:!0,passive:c}):t.addEventListener(n,i,!0):c!==void 0?t.addEventListener(n,i,{passive:c}):t.addEventListener(n,i,!1)}function Ep(t,n,i,o,c){var p=o;if(!(n&1)&&!(n&2)&&o!==null)e:for(;;){if(o===null)return;var b=o.tag;if(b===3||b===4){var C=o.stateNode.containerInfo;if(C===c||C.nodeType===8&&C.parentNode===c)break;if(b===4)for(b=o.return;b!==null;){var D=b.tag;if((D===3||D===4)&&(D=b.stateNode.containerInfo,D===c||D.nodeType===8&&D.parentNode===c))return;b=b.return}for(;C!==null;){if(b=Ei(C),b===null)return;if(D=b.tag,D===5||D===6||D===26||D===27){o=p=b;continue e}C=C.parentNode}}o=o.return}R1(function(){var U=p,te=Vf(i),le=[];e:{var G=n0.get(t);if(G!==void 0){var J=$u,ve=t;switch(t){case"keypress":if(Iu(i)===0)break e;case"keydown":case"keyup":J=E3;break;case"focusin":ve="focus",J=Pf;break;case"focusout":ve="blur",J=Pf;break;case"beforeblur":case"afterblur":J=Pf;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=_1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=c3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=w3;break;case W1:case J1:case e0:J=p3;break;case t0:J=k3;break;case"scroll":case"scrollend":J=u3;break;case"wheel":J=O3;break;case"copy":case"cut":case"paste":J=m3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=z1;break;case"toggle":case"beforetoggle":J=_3}var Me=(n&4)!==0,Tt=!Me&&(t==="scroll"||t==="scrollend"),j=Me?G!==null?G+"Capture":null:G;Me=[];for(var L=U,$;L!==null;){var re=L;if($=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||$===null||j===null||(re=Gl(L,j),re!=null&&Me.push(ko(L,re,$))),Tt)break;L=L.return}0<Me.length&&(G=new J(G,ve,null,i,te),le.push({event:G,listeners:Me}))}}if(!(n&7)){e:{if(G=t==="mouseover"||t==="pointerover",J=t==="mouseout"||t==="pointerout",G&&i!==If&&(ve=i.relatedTarget||i.fromElement)&&(Ei(ve)||ve[ca]))break e;if((J||G)&&(G=te.window===te?te:(G=te.ownerDocument)?G.defaultView||G.parentWindow:window,J?(ve=i.relatedTarget||i.toElement,J=U,ve=ve?Ei(ve):null,ve!==null&&(Tt=Q(ve),Me=ve.tag,ve!==Tt||Me!==5&&Me!==27&&Me!==6)&&(ve=null)):(J=null,ve=U),J!==ve)){if(Me=_1,re="onMouseLeave",j="onMouseEnter",L="mouse",(t==="pointerout"||t==="pointerover")&&(Me=z1,re="onPointerLeave",j="onPointerEnter",L="pointer"),Tt=J==null?G:ql(J),$=ve==null?G:ql(ve),G=new Me(re,L+"leave",J,i,te),G.target=Tt,G.relatedTarget=$,re=null,Ei(te)===U&&(Me=new Me(j,L+"enter",ve,i,te),Me.target=$,Me.relatedTarget=Tt,re=Me),Tt=re,J&&ve)t:{for(Me=J,j=ve,L=0,$=Me;$;$=Va($))L++;for($=0,re=j;re;re=Va(re))$++;for(;0<L-$;)Me=Va(Me),L--;for(;0<$-L;)j=Va(j),$--;for(;L--;){if(Me===j||j!==null&&Me===j.alternate)break t;Me=Va(Me),j=Va(j)}Me=null}else Me=null;J!==null&&hS(le,G,J,Me,!1),ve!==null&&Tt!==null&&hS(le,Tt,ve,Me,!0)}}e:{if(G=U?ql(U):window,J=G.nodeName&&G.nodeName.toLowerCase(),J==="select"||J==="input"&&G.type==="file")var be=V1;else if(H1(G))if($1)be=V3;else{be=H3;var Ie=j3}else J=G.nodeName,!J||J.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?U&&Hf(U.elementType)&&(be=V1):be=I3;if(be&&(be=be(t,U))){I1(le,be,i,te);break e}Ie&&Ie(t,G,U),t==="focusout"&&U&&G.type==="number"&&U.memoizedProps.value!=null&&jf(G,"number",G.value)}switch(Ie=U?ql(U):window,t){case"focusin":(H1(Ie)||Ie.contentEditable==="true")&&(Sa=Ie,Jf=U,Wl=null);break;case"focusout":Wl=Jf=Sa=null;break;case"mousedown":ed=!0;break;case"contextmenu":case"mouseup":case"dragend":ed=!1,K1(le,i,te);break;case"selectionchange":if(G3)break;case"keydown":case"keyup":K1(le,i,te)}var Ee;if(Qf)e:{switch(t){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else ba?U1(t,i)&&(Ae="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Ae="onCompositionStart");Ae&&(N1&&i.locale!=="ko"&&(ba||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&ba&&(Ee=O1()):(Yr=te,Gf="value"in Yr?Yr.value:Yr.textContent,ba=!0)),Ie=As(U,Ae),0<Ie.length&&(Ae=new D1(Ae,t,null,i,te),le.push({event:Ae,listeners:Ie}),Ee?Ae.data=Ee:(Ee=j1(i),Ee!==null&&(Ae.data=Ee)))),(Ee=z3?N3(t,i):B3(t,i))&&(Ae=As(U,"onBeforeInput"),0<Ae.length&&(Ie=new D1("onBeforeInput","beforeinput",null,i,te),le.push({event:Ie,listeners:Ae}),Ie.data=Ee)),A6(le,t,U,i,te)}dS(le,n)})}function ko(t,n,i){return{instance:t,listener:n,currentTarget:i}}function As(t,n){for(var i=n+"Capture",o=[];t!==null;){var c=t,p=c.stateNode;c=c.tag,c!==5&&c!==26&&c!==27||p===null||(c=Gl(t,i),c!=null&&o.unshift(ko(t,c,p)),c=Gl(t,n),c!=null&&o.push(ko(t,c,p))),t=t.return}return o}function Va(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function hS(t,n,i,o,c){for(var p=n._reactName,b=[];i!==null&&i!==o;){var C=i,D=C.alternate,U=C.stateNode;if(C=C.tag,D!==null&&D===o)break;C!==5&&C!==26&&C!==27||U===null||(D=U,c?(U=Gl(i,p),U!=null&&b.unshift(ko(i,U,D))):c||(U=Gl(i,p),U!=null&&b.push(ko(i,U,D)))),i=i.return}b.length!==0&&t.push({event:n,listeners:b})}var M6=/\r\n?/g,_6=/\u0000|\uFFFD/g;function mS(t){return(typeof t=="string"?t:""+t).replace(M6,`
|
|
41
|
+
`).replace(_6,"")}function gS(t,n){return n=mS(n),mS(t)===n}function ks(){}function rt(t,n,i,o,c,p){switch(i){case"children":typeof o=="string"?n==="body"||n==="textarea"&&o===""||ma(t,o):(typeof o=="number"||typeof o=="bigint")&&n!=="body"&&ma(t,""+o);break;case"className":Bu(t,"class",o);break;case"tabIndex":Bu(t,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Bu(t,i,o);break;case"style":A1(t,o,p);break;case"data":if(n!=="object"){Bu(t,"data",o);break}case"src":case"href":if(o===""&&(n!=="a"||i!=="href")){t.removeAttribute(i);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(i);break}o=ju(""+o),t.setAttribute(i,o);break;case"action":case"formAction":if(typeof o=="function"){t.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(i==="formAction"?(n!=="input"&&rt(t,n,"name",c.name,c,null),rt(t,n,"formEncType",c.formEncType,c,null),rt(t,n,"formMethod",c.formMethod,c,null),rt(t,n,"formTarget",c.formTarget,c,null)):(rt(t,n,"encType",c.encType,c,null),rt(t,n,"method",c.method,c,null),rt(t,n,"target",c.target,c,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(i);break}o=ju(""+o),t.setAttribute(i,o);break;case"onClick":o!=null&&(t.onclick=ks);break;case"onScroll":o!=null&&Ye("scroll",t);break;case"onScrollEnd":o!=null&&Ye("scrollend",t);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(l(61));if(i=o.__html,i!=null){if(c.children!=null)throw Error(l(60));t.innerHTML=i}}break;case"multiple":t.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":t.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){t.removeAttribute("xlink:href");break}i=ju(""+o),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,""+o):t.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":o===!0?t.setAttribute(i,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,o):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?t.setAttribute(i,o):t.removeAttribute(i);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?t.removeAttribute(i):t.setAttribute(i,o);break;case"popover":Ye("beforetoggle",t),Ye("toggle",t),Nu(t,"popover",o);break;case"xlinkActuate":vr(t,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":vr(t,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":vr(t,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":vr(t,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":vr(t,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":vr(t,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":vr(t,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":vr(t,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":vr(t,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Nu(t,"is",o);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=l3.get(i)||i,Nu(t,i,o))}}function Cp(t,n,i,o,c,p){switch(i){case"style":A1(t,o,p);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(l(61));if(i=o.__html,i!=null){if(c.children!=null)throw Error(l(60));t.innerHTML=i}}break;case"children":typeof o=="string"?ma(t,o):(typeof o=="number"||typeof o=="bigint")&&ma(t,""+o);break;case"onScroll":o!=null&&Ye("scroll",t);break;case"onScrollEnd":o!=null&&Ye("scrollend",t);break;case"onClick":o!=null&&(t.onclick=ks);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!y1.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(c=i.endsWith("Capture"),n=i.slice(2,c?i.length-7:void 0),p=t[sn]||null,p=p!=null?p[i]:null,typeof p=="function"&&t.removeEventListener(n,p,c),typeof o=="function")){typeof p!="function"&&p!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(n,o,c);break e}i in t?t[i]=o:o===!0?t.setAttribute(i,""):Nu(t,i,o)}}}function Ft(t,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ye("error",t),Ye("load",t);var o=!1,c=!1,p;for(p in i)if(i.hasOwnProperty(p)){var b=i[p];if(b!=null)switch(p){case"src":o=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:rt(t,n,p,b,i,null)}}c&&rt(t,n,"srcSet",i.srcSet,i,null),o&&rt(t,n,"src",i.src,i,null);return;case"input":Ye("invalid",t);var C=p=b=c=null,D=null,U=null;for(o in i)if(i.hasOwnProperty(o)){var te=i[o];if(te!=null)switch(o){case"name":c=te;break;case"type":b=te;break;case"checked":D=te;break;case"defaultChecked":U=te;break;case"value":p=te;break;case"defaultValue":C=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(l(137,n));break;default:rt(t,n,o,te,i,null)}}E1(t,p,C,D,U,b,c,!1),Lu(t);return;case"select":Ye("invalid",t),o=b=p=null;for(c in i)if(i.hasOwnProperty(c)&&(C=i[c],C!=null))switch(c){case"value":p=C;break;case"defaultValue":b=C;break;case"multiple":o=C;default:rt(t,n,c,C,i,null)}n=p,i=b,t.multiple=!!o,n!=null?ha(t,!!o,n,!1):i!=null&&ha(t,!!o,i,!0);return;case"textarea":Ye("invalid",t),p=c=o=null;for(b in i)if(i.hasOwnProperty(b)&&(C=i[b],C!=null))switch(b){case"value":o=C;break;case"defaultValue":c=C;break;case"children":p=C;break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(l(91));break;default:rt(t,n,b,C,i,null)}T1(t,o,c,p),Lu(t);return;case"option":for(D in i)if(i.hasOwnProperty(D)&&(o=i[D],o!=null))switch(D){case"selected":t.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:rt(t,n,D,o,i,null)}return;case"dialog":Ye("cancel",t),Ye("close",t);break;case"iframe":case"object":Ye("load",t);break;case"video":case"audio":for(o=0;o<Ao.length;o++)Ye(Ao[o],t);break;case"image":Ye("error",t),Ye("load",t);break;case"details":Ye("toggle",t);break;case"embed":case"source":case"link":Ye("error",t),Ye("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in i)if(i.hasOwnProperty(U)&&(o=i[U],o!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:rt(t,n,U,o,i,null)}return;default:if(Hf(n)){for(te in i)i.hasOwnProperty(te)&&(o=i[te],o!==void 0&&Cp(t,n,te,o,i,void 0));return}}for(C in i)i.hasOwnProperty(C)&&(o=i[C],o!=null&&rt(t,n,C,o,i,null))}function D6(t,n,i,o){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,p=null,b=null,C=null,D=null,U=null,te=null;for(J in i){var le=i[J];if(i.hasOwnProperty(J)&&le!=null)switch(J){case"checked":break;case"value":break;case"defaultValue":D=le;default:o.hasOwnProperty(J)||rt(t,n,J,null,o,le)}}for(var G in o){var J=o[G];if(le=i[G],o.hasOwnProperty(G)&&(J!=null||le!=null))switch(G){case"type":p=J;break;case"name":c=J;break;case"checked":U=J;break;case"defaultChecked":te=J;break;case"value":b=J;break;case"defaultValue":C=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(l(137,n));break;default:J!==le&&rt(t,n,G,J,o,le)}}Uf(t,b,C,D,U,te,p,c);return;case"select":J=b=C=G=null;for(p in i)if(D=i[p],i.hasOwnProperty(p)&&D!=null)switch(p){case"value":break;case"multiple":J=D;default:o.hasOwnProperty(p)||rt(t,n,p,null,o,D)}for(c in o)if(p=o[c],D=i[c],o.hasOwnProperty(c)&&(p!=null||D!=null))switch(c){case"value":G=p;break;case"defaultValue":C=p;break;case"multiple":b=p;default:p!==D&&rt(t,n,c,p,o,D)}n=C,i=b,o=J,G!=null?ha(t,!!i,G,!1):!!o!=!!i&&(n!=null?ha(t,!!i,n,!0):ha(t,!!i,i?[]:"",!1));return;case"textarea":J=G=null;for(C in i)if(c=i[C],i.hasOwnProperty(C)&&c!=null&&!o.hasOwnProperty(C))switch(C){case"value":break;case"children":break;default:rt(t,n,C,null,o,c)}for(b in o)if(c=o[b],p=i[b],o.hasOwnProperty(b)&&(c!=null||p!=null))switch(b){case"value":G=c;break;case"defaultValue":J=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(l(91));break;default:c!==p&&rt(t,n,b,c,o,p)}C1(t,G,J);return;case"option":for(var ve in i)if(G=i[ve],i.hasOwnProperty(ve)&&G!=null&&!o.hasOwnProperty(ve))switch(ve){case"selected":t.selected=!1;break;default:rt(t,n,ve,null,o,G)}for(D in o)if(G=o[D],J=i[D],o.hasOwnProperty(D)&&G!==J&&(G!=null||J!=null))switch(D){case"selected":t.selected=G&&typeof G!="function"&&typeof G!="symbol";break;default:rt(t,n,D,G,o,J)}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 Me in i)G=i[Me],i.hasOwnProperty(Me)&&G!=null&&!o.hasOwnProperty(Me)&&rt(t,n,Me,null,o,G);for(U in o)if(G=o[U],J=i[U],o.hasOwnProperty(U)&&G!==J&&(G!=null||J!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(l(137,n));break;default:rt(t,n,U,G,o,J)}return;default:if(Hf(n)){for(var Tt in i)G=i[Tt],i.hasOwnProperty(Tt)&&G!==void 0&&!o.hasOwnProperty(Tt)&&Cp(t,n,Tt,void 0,o,G);for(te in o)G=o[te],J=i[te],!o.hasOwnProperty(te)||G===J||G===void 0&&J===void 0||Cp(t,n,te,G,o,J);return}}for(var j in i)G=i[j],i.hasOwnProperty(j)&&G!=null&&!o.hasOwnProperty(j)&&rt(t,n,j,null,o,G);for(le in o)G=o[le],J=i[le],!o.hasOwnProperty(le)||G===J||G==null&&J==null||rt(t,n,le,G,o,J)}var Tp=null,wp=null;function Rs(t){return t.nodeType===9?t:t.ownerDocument}function yS(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function bS(t,n){if(t===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&n==="foreignObject"?0:t}function Ap(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var kp=null;function z6(){var t=window.event;return t&&t.type==="popstate"?t===kp?!1:(kp=t,!0):(kp=null,!1)}var SS=typeof setTimeout=="function"?setTimeout:void 0,N6=typeof clearTimeout=="function"?clearTimeout:void 0,vS=typeof Promise=="function"?Promise:void 0,B6=typeof queueMicrotask=="function"?queueMicrotask:typeof vS<"u"?function(t){return vS.resolve(null).then(t).catch(L6)}:SS;function L6(t){setTimeout(function(){throw t})}function Rp(t,n){var i=n,o=0;do{var c=i.nextSibling;if(t.removeChild(i),c&&c.nodeType===8)if(i=c.data,i==="/$"){if(o===0){t.removeChild(c),Bo(n);return}o--}else i!=="$"&&i!=="$?"&&i!=="$!"||o++;i=c}while(i);Bo(n)}function Op(t){var n=t.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Op(i),Lf(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function U6(t,n,i,o){for(;t.nodeType===1;){var c=i;if(t.nodeName.toLowerCase()!==n.toLowerCase()){if(!o&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(o){if(!t[$l])switch(n){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(p=t.getAttribute("rel"),p==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(p!==c.rel||t.getAttribute("href")!==(c.href==null?null:c.href)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||t.getAttribute("title")!==(c.title==null?null:c.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(p=t.getAttribute("src"),(p!==(c.src==null?null:c.src)||t.getAttribute("type")!==(c.type==null?null:c.type)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&p&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(n==="input"&&t.type==="hidden"){var p=c.name==null?null:""+c.name;if(c.type==="hidden"&&t.getAttribute("name")===p)return t}else return t;if(t=Wn(t.nextSibling),t===null)break}return null}function j6(t,n,i){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=Wn(t.nextSibling),t===null))return null;return t}function Wn(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?"||n==="F!"||n==="F")break;if(n==="/$")return null}}return t}function xS(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"){if(n===0)return t;n--}else i==="/$"&&n++}t=t.previousSibling}return null}function ES(t,n,i){switch(n=Rs(i),t){case"html":if(t=n.documentElement,!t)throw Error(l(452));return t;case"head":if(t=n.head,!t)throw Error(l(453));return t;case"body":if(t=n.body,!t)throw Error(l(454));return t;default:throw Error(l(451))}}var $n=new Map,CS=new Set;function Os(t){return typeof t.getRootNode=="function"?t.getRootNode():t.ownerDocument}var Br=ie.d;ie.d={f:H6,r:I6,D:V6,C:$6,L:q6,m:G6,X:F6,S:Y6,M:P6};function H6(){var t=Br.f(),n=xs();return t||n}function I6(t){var n=fa(t);n!==null&&n.tag===5&&n.type==="form"?K0(n):Br.r(t)}var $a=typeof document>"u"?null:document;function TS(t,n,i){var o=$a;if(o&&typeof n=="string"&&n){var c=Dn(n);c='link[rel="'+t+'"][href="'+c+'"]',typeof i=="string"&&(c+='[crossorigin="'+i+'"]'),CS.has(c)||(CS.add(c),t={rel:t,crossOrigin:i,href:n},o.querySelector(c)===null&&(n=o.createElement("link"),Ft(n,"link",t),It(n),o.head.appendChild(n)))}}function V6(t){Br.D(t),TS("dns-prefetch",t,null)}function $6(t,n){Br.C(t,n),TS("preconnect",t,n)}function q6(t,n,i){Br.L(t,n,i);var o=$a;if(o&&t&&n){var c='link[rel="preload"][as="'+Dn(n)+'"]';n==="image"&&i&&i.imageSrcSet?(c+='[imagesrcset="'+Dn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(c+='[imagesizes="'+Dn(i.imageSizes)+'"]')):c+='[href="'+Dn(t)+'"]';var p=c;switch(n){case"style":p=qa(t);break;case"script":p=Ga(t)}$n.has(p)||(t=E({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:t,as:n},i),$n.set(p,t),o.querySelector(c)!==null||n==="style"&&o.querySelector(Ro(p))||n==="script"&&o.querySelector(Oo(p))||(n=o.createElement("link"),Ft(n,"link",t),It(n),o.head.appendChild(n)))}}function G6(t,n){Br.m(t,n);var i=$a;if(i&&t){var o=n&&typeof n.as=="string"?n.as:"script",c='link[rel="modulepreload"][as="'+Dn(o)+'"][href="'+Dn(t)+'"]',p=c;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Ga(t)}if(!$n.has(p)&&(t=E({rel:"modulepreload",href:t},n),$n.set(p,t),i.querySelector(c)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Oo(p)))return}o=i.createElement("link"),Ft(o,"link",t),It(o),i.head.appendChild(o)}}}function Y6(t,n,i){Br.S(t,n,i);var o=$a;if(o&&t){var c=da(o).hoistableStyles,p=qa(t);n=n||"default";var b=c.get(p);if(!b){var C={loading:0,preload:null};if(b=o.querySelector(Ro(p)))C.loading=5;else{t=E({rel:"stylesheet",href:t,"data-precedence":n},i),(i=$n.get(p))&&Mp(t,i);var D=b=o.createElement("link");It(D),Ft(D,"link",t),D._p=new Promise(function(U,te){D.onload=U,D.onerror=te}),D.addEventListener("load",function(){C.loading|=1}),D.addEventListener("error",function(){C.loading|=2}),C.loading|=4,Ms(b,n,o)}b={type:"stylesheet",instance:b,count:1,state:C},c.set(p,b)}}}function F6(t,n){Br.X(t,n);var i=$a;if(i&&t){var o=da(i).hoistableScripts,c=Ga(t),p=o.get(c);p||(p=i.querySelector(Oo(c)),p||(t=E({src:t,async:!0},n),(n=$n.get(c))&&_p(t,n),p=i.createElement("script"),It(p),Ft(p,"link",t),i.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(c,p))}}function P6(t,n){Br.M(t,n);var i=$a;if(i&&t){var o=da(i).hoistableScripts,c=Ga(t),p=o.get(c);p||(p=i.querySelector(Oo(c)),p||(t=E({src:t,async:!0,type:"module"},n),(n=$n.get(c))&&_p(t,n),p=i.createElement("script"),It(p),Ft(p,"link",t),i.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(c,p))}}function wS(t,n,i,o){var c=(c=ge.current)?Os(c):null;if(!c)throw Error(l(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=qa(i.href),i=da(c).hoistableStyles,o=i.get(n),o||(o={type:"style",instance:null,count:0,state:null},i.set(n,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=qa(i.href);var p=da(c).hoistableStyles,b=p.get(t);if(b||(c=c.ownerDocument||c,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(t,b),(p=c.querySelector(Ro(t)))&&!p._p&&(b.instance=p,b.state.loading=5),$n.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},$n.set(t,i),p||X6(c,t,i,b.state))),n&&o===null)throw Error(l(528,""));return b}if(n&&o!==null)throw Error(l(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Ga(i),i=da(c).hoistableScripts,o=i.get(n),o||(o={type:"script",instance:null,count:0,state:null},i.set(n,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,t))}}function qa(t){return'href="'+Dn(t)+'"'}function Ro(t){return'link[rel="stylesheet"]['+t+"]"}function AS(t){return E({},t,{"data-precedence":t.precedence,precedence:null})}function X6(t,n,i,o){t.querySelector('link[rel="preload"][as="style"]['+n+"]")?o.loading=1:(n=t.createElement("link"),o.preload=n,n.addEventListener("load",function(){return o.loading|=1}),n.addEventListener("error",function(){return o.loading|=2}),Ft(n,"link",i),It(n),t.head.appendChild(n))}function Ga(t){return'[src="'+Dn(t)+'"]'}function Oo(t){return"script[async]"+t}function kS(t,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var o=t.querySelector('style[data-href~="'+Dn(i.href)+'"]');if(o)return n.instance=o,It(o),o;var c=E({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return o=(t.ownerDocument||t).createElement("style"),It(o),Ft(o,"style",c),Ms(o,i.precedence,t),n.instance=o;case"stylesheet":c=qa(i.href);var p=t.querySelector(Ro(c));if(p)return n.state.loading|=4,n.instance=p,It(p),p;o=AS(i),(c=$n.get(c))&&Mp(o,c),p=(t.ownerDocument||t).createElement("link"),It(p);var b=p;return b._p=new Promise(function(C,D){b.onload=C,b.onerror=D}),Ft(p,"link",o),n.state.loading|=4,Ms(p,i.precedence,t),n.instance=p;case"script":return p=Ga(i.src),(c=t.querySelector(Oo(p)))?(n.instance=c,It(c),c):(o=i,(c=$n.get(p))&&(o=E({},i),_p(o,c)),t=t.ownerDocument||t,c=t.createElement("script"),It(c),Ft(c,"link",o),t.head.appendChild(c),n.instance=c);case"void":return null;default:throw Error(l(443,n.type))}else n.type==="stylesheet"&&!(n.state.loading&4)&&(o=n.instance,n.state.loading|=4,Ms(o,i.precedence,t));return n.instance}function Ms(t,n,i){for(var o=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=o.length?o[o.length-1]:null,p=c,b=0;b<o.length;b++){var C=o[b];if(C.dataset.precedence===n)p=C;else if(p!==c)break}p?p.parentNode.insertBefore(t,p.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(t,n.firstChild))}function Mp(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.title==null&&(t.title=n.title)}function _p(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}var _s=null;function RS(t,n,i){if(_s===null){var o=new Map,c=_s=new Map;c.set(i,o)}else c=_s,o=c.get(i),o||(o=new Map,c.set(i,o));if(o.has(t))return o;for(o.set(t,null),i=i.getElementsByTagName(t),c=0;c<i.length;c++){var p=i[c];if(!(p[$l]||p[Zt]||t==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var b=p.getAttribute(n)||"";b=t+b;var C=o.get(b);C?C.push(p):o.set(b,[p])}}return o}function OS(t,n,i){t=t.ownerDocument||t,t.head.insertBefore(i,n==="title"?t.querySelector("head > title"):null)}function Q6(t,n,i){if(i===1||n.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return t=n.disabled,typeof n.precedence=="string"&&t==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function MS(t){return!(t.type==="stylesheet"&&!(t.state.loading&3))}var Mo=null;function K6(){}function Z6(t,n,i){if(Mo===null)throw Error(l(475));var o=Mo;if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var c=qa(i.href),p=t.querySelector(Ro(c));if(p){t=p._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(o.count++,o=Ds.bind(o),t.then(o,o)),n.state.loading|=4,n.instance=p,It(p);return}p=t.ownerDocument||t,i=AS(i),(c=$n.get(c))&&Mp(i,c),p=p.createElement("link"),It(p);var b=p;b._p=new Promise(function(C,D){b.onload=C,b.onerror=D}),Ft(p,"link",i),n.instance=p}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(o.count++,n=Ds.bind(o),t.addEventListener("load",n),t.addEventListener("error",n))}}function W6(){if(Mo===null)throw Error(l(475));var t=Mo;return t.stylesheets&&t.count===0&&Dp(t,t.stylesheets),0<t.count?function(n){var i=setTimeout(function(){if(t.stylesheets&&Dp(t,t.stylesheets),t.unsuspend){var o=t.unsuspend;t.unsuspend=null,o()}},6e4);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(i)}}:null}function Ds(){if(this.count--,this.count===0){if(this.stylesheets)Dp(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var zs=null;function Dp(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,zs=new Map,n.forEach(J6,t),zs=null,Ds.call(t))}function J6(t,n){if(!(n.state.loading&4)){var i=zs.get(t);if(i)var o=i.get(null);else{i=new Map,zs.set(t,i);for(var c=t.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<c.length;p++){var b=c[p];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(i.set(b.dataset.precedence,b),o=b)}o&&i.set(null,o)}c=n.instance,b=c.getAttribute("data-precedence"),p=i.get(b)||o,p===o&&i.set(null,c),i.set(b,c),this.count++,o=Ds.bind(this),c.addEventListener("load",o),c.addEventListener("error",o),p?p.parentNode.insertBefore(c,p.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(c,t.firstChild)),n.state.loading|=4}}var _o={$$typeof:S,Provider:null,Consumer:null,_currentValue:ye,_currentValue2:ye,_threadCount:0};function eO(t,n,i,o,c,p,b,C){this.tag=1,this.containerInfo=t,this.finishedWork=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=Nf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nf(0),this.hiddenUpdates=Nf(null),this.identifierPrefix=o,this.onUncaughtError=c,this.onCaughtError=p,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function _S(t,n,i,o,c,p,b,C,D,U,te,le){return t=new eO(t,n,i,b,C,D,U,le),n=1,p===!0&&(n|=24),p=In(3,null,null,n),t.current=p,p.stateNode=t,n=cd(),n.refCount++,t.pooledCache=n,n.refCount++,p.memoizedState={element:o,isDehydrated:i,cache:n},Gd(p),t}function DS(t){return t?(t=Ea,t):Ea}function zS(t,n,i,o,c,p){c=DS(c),o.context===null?o.context=c:o.pendingContext=c,o=Jr(n),o.payload={element:i},p=p===void 0?null:p,p!==null&&(o.callback=p),i=ei(t,o,n),i!==null&&(nn(i,t,n),ho(i,t,n))}function NS(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<n?i:n}}function zp(t,n){NS(t,n),(t=t.alternate)&&NS(t,n)}function BS(t){if(t.tag===13){var n=Fr(t,67108864);n!==null&&nn(n,t,67108864),zp(t,67108864)}}var Ns=!0;function tO(t,n,i,o){var c=V.T;V.T=null;var p=ie.p;try{ie.p=2,Np(t,n,i,o)}finally{ie.p=p,V.T=c}}function nO(t,n,i,o){var c=V.T;V.T=null;var p=ie.p;try{ie.p=8,Np(t,n,i,o)}finally{ie.p=p,V.T=c}}function Np(t,n,i,o){if(Ns){var c=Bp(o);if(c===null)Ep(t,n,o,Bs,i),US(t,o);else if(iO(c,t,n,i,o))o.stopPropagation();else if(US(t,o),n&4&&-1<rO.indexOf(t)){for(;c!==null;){var p=fa(c);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var b=xi(p.pendingLanes);if(b!==0){var C=p;for(C.pendingLanes|=2,C.entangledLanes|=2;b;){var D=1<<31-_t(b);C.entanglements[1]|=D,b&=~D}pr(p),!(bt&6)&&(bs=Be()+500,wo(0))}}break;case 13:C=Fr(p,2),C!==null&&nn(C,p,2),xs(),zp(p,2)}if(p=Bp(o),p===null&&Ep(t,n,o,Bs,i),p===c)break;c=p}c!==null&&o.stopPropagation()}else Ep(t,n,o,null,i)}}function Bp(t){return t=Vf(t),Lp(t)}var Bs=null;function Lp(t){if(Bs=null,t=Ei(t),t!==null){var n=Q(t);if(n===null)t=null;else{var i=n.tag;if(i===13){if(t=ue(n),t!==null)return t;t=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null)}}return Bs=t,null}function LS(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Mt()){case X:return 2;case ae:return 8;case de:case Re:return 32;case qe:return 268435456;default:return 32}default:return 32}}var Up=!1,oi=null,ui=null,si=null,Do=new Map,zo=new Map,ci=[],rO="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 US(t,n){switch(t){case"focusin":case"focusout":oi=null;break;case"dragenter":case"dragleave":ui=null;break;case"mouseover":case"mouseout":si=null;break;case"pointerover":case"pointerout":Do.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":zo.delete(n.pointerId)}}function No(t,n,i,o,c,p){return t===null||t.nativeEvent!==p?(t={blockedOn:n,domEventName:i,eventSystemFlags:o,nativeEvent:p,targetContainers:[c]},n!==null&&(n=fa(n),n!==null&&BS(n)),t):(t.eventSystemFlags|=o,n=t.targetContainers,c!==null&&n.indexOf(c)===-1&&n.push(c),t)}function iO(t,n,i,o,c){switch(n){case"focusin":return oi=No(oi,t,n,i,o,c),!0;case"dragenter":return ui=No(ui,t,n,i,o,c),!0;case"mouseover":return si=No(si,t,n,i,o,c),!0;case"pointerover":var p=c.pointerId;return Do.set(p,No(Do.get(p)||null,t,n,i,o,c)),!0;case"gotpointercapture":return p=c.pointerId,zo.set(p,No(zo.get(p)||null,t,n,i,o,c)),!0}return!1}function jS(t){var n=Ei(t.target);if(n!==null){var i=Q(n);if(i!==null){if(n=i.tag,n===13){if(n=ue(i),n!==null){t.blockedOn=n,W4(t.priority,function(){if(i.tag===13){var o=En(),c=Fr(i,o);c!==null&&nn(c,i,o),zp(i,o)}});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ls(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var i=Bp(t.nativeEvent);if(i===null){i=t.nativeEvent;var o=new i.constructor(i.type,i);If=o,i.target.dispatchEvent(o),If=null}else return n=fa(i),n!==null&&BS(n),t.blockedOn=i,!1;n.shift()}return!0}function HS(t,n,i){Ls(t)&&i.delete(n)}function aO(){Up=!1,oi!==null&&Ls(oi)&&(oi=null),ui!==null&&Ls(ui)&&(ui=null),si!==null&&Ls(si)&&(si=null),Do.forEach(HS),zo.forEach(HS)}function Us(t,n){t.blockedOn===n&&(t.blockedOn=null,Up||(Up=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,aO)))}var js=null;function IS(t){js!==t&&(js=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){js===t&&(js=null);for(var n=0;n<t.length;n+=3){var i=t[n],o=t[n+1],c=t[n+2];if(typeof o!="function"){if(Lp(o||i)===null)continue;break}var p=fa(i);p!==null&&(t.splice(n,3),n-=3,Ad(p,{pending:!0,data:c,method:i.method,action:o},o,c))}}))}function Bo(t){function n(D){return Us(D,t)}oi!==null&&Us(oi,t),ui!==null&&Us(ui,t),si!==null&&Us(si,t),Do.forEach(n),zo.forEach(n);for(var i=0;i<ci.length;i++){var o=ci[i];o.blockedOn===t&&(o.blockedOn=null)}for(;0<ci.length&&(i=ci[0],i.blockedOn===null);)jS(i),i.blockedOn===null&&ci.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(o=0;o<i.length;o+=3){var c=i[o],p=i[o+1],b=c[sn]||null;if(typeof p=="function")b||IS(i);else if(b){var C=null;if(p&&p.hasAttribute("formAction")){if(c=p,b=p[sn]||null)C=b.formAction;else if(Lp(c)!==null)continue}else C=b.action;typeof C=="function"?i[o+1]=C:(i.splice(o,3),o-=3),IS(i)}}}function jp(t){this._internalRoot=t}Hs.prototype.render=jp.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(l(409));var i=n.current,o=En();zS(i,o,t,n,null,null)},Hs.prototype.unmount=jp.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;t.tag===0&&Ha(),zS(t.current,2,null,t,null,null),xs(),n[ca]=null}};function Hs(t){this._internalRoot=t}Hs.prototype.unstable_scheduleHydration=function(t){if(t){var n=h1();t={blockedOn:null,target:t,priority:n};for(var i=0;i<ci.length&&n!==0&&n<ci[i].priority;i++);ci.splice(i,0,t),i===0&&jS(t)}};var VS=r.version;if(VS!=="19.0.0")throw Error(l(527,VS,"19.0.0"));ie.findDOMNode=function(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(l(188)):(t=Object.keys(t).join(","),Error(l(268,t)));return t=K(n),t=t!==null?se(t):null,t=t===null?null:t.stateNode,t};var lO={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:V,findFiberByHostInstance:Ei,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Is=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Is.isDisabled&&Is.supportsFiber)try{Ht=Is.inject(lO),Lt=Is}catch{}}return Ya.createRoot=function(t,n){if(!u(t))throw Error(l(299));var i=!1,o="",c=ib,p=ab,b=lb,C=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(C=n.unstable_transitionCallbacks)),n=_S(t,1,!1,null,null,i,o,c,p,b,C,null),t[ca]=n.current,xp(t.nodeType===8?t.parentNode:t),new jp(n)},Ya.hydrateRoot=function(t,n,i){if(!u(t))throw Error(l(299));var o=!1,c="",p=ib,b=ab,C=lb,D=null,U=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onUncaughtError!==void 0&&(p=i.onUncaughtError),i.onCaughtError!==void 0&&(b=i.onCaughtError),i.onRecoverableError!==void 0&&(C=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(D=i.unstable_transitionCallbacks),i.formState!==void 0&&(U=i.formState)),n=_S(t,1,!0,n,i??null,o,c,p,b,C,D,U),n.context=DS(null),i=n.current,o=En(),c=Jr(o),c.callback=null,ei(i,c,o),n.current.lanes=o,Vl(n,o),pr(n),t[ca]=n.current,xp(t),new Hs(n)},Ya.version="19.0.0",Ya}var Qp;function XS(){if(Qp)return $s.exports;Qp=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(r){console.error(r)}}return e(),$s.exports=PS(),$s.exports}var QS=XS();function jo(){return jo=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},jo.apply(null,arguments)}function Kp(e){var r=Object.create(null);return function(a){return r[a]===void 0&&(r[a]=e(a)),r[a]}}var KS=/^((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|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)-.*))$/,ZS=Kp(function(e){return KS.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function WS(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function JS(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var Zp=function(){function e(a){var l=this;this._insertTag=function(u){var s;l.tags.length===0?l.insertionPoint?s=l.insertionPoint.nextSibling:l.prepend?s=l.container.firstChild:s=l.before:s=l.tags[l.tags.length-1].nextSibling,l.container.insertBefore(u,s),l.tags.push(u)},this.isSpeedy=a.speedy===void 0?!0:a.speedy,this.tags=[],this.ctr=0,this.nonce=a.nonce,this.key=a.key,this.container=a.container,this.prepend=a.prepend,this.insertionPoint=a.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(l){l.forEach(this._insertTag)},r.insert=function(l){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(JS(this));var u=this.tags[this.tags.length-1];if(this.isSpeedy){var s=WS(u);try{s.insertRule(l,s.cssRules.length)}catch{}}else u.appendChild(document.createTextNode(l));this.ctr++},r.flush=function(){this.tags.forEach(function(l){var u;return(u=l.parentNode)==null?void 0:u.removeChild(l)}),this.tags=[],this.ctr=0},e}(),Xe="-ms-",Lr="-moz-",Se="-webkit-",Wp="comm",Ho="rule",Io="decl",ev="@import",Fs="@keyframes",tv="@layer",nv=Math.abs,Fa=String.fromCharCode,rv=Object.assign;function Jp(e,r){return ht(e,0)^45?(((r<<2^ht(e,0))<<2^ht(e,1))<<2^ht(e,2))<<2^ht(e,3):0}function eh(e){return e.trim()}function th(e,r){return(e=r.exec(e))?e[0]:e}function xe(e,r,a){return e.replace(r,a)}function Pa(e,r){return e.indexOf(r)}function ht(e,r){return e.charCodeAt(r)|0}function Xa(e,r,a){return e.slice(r,a)}function wn(e){return e.length}function Ps(e){return e.length}function Vo(e,r){return r.push(e),e}function nh(e,r){return e.map(r).join("")}var $o=1,qi=1,rh=0,Xt=0,kt=0,Gi="";function qo(e,r,a,l,u,s,f){return{value:e,root:r,parent:a,type:l,props:u,children:s,line:$o,column:qi,length:f,return:""}}function Jn(e,r){return rv(qo("",null,null,"",null,null,0),e,{length:-e.length},r)}function iv(){return kt}function av(){return kt=Xt>0?ht(Gi,--Xt):0,qi--,kt===10&&(qi=1,$o--),kt}function Jt(){return kt=Xt<rh?ht(Gi,Xt++):0,qi++,kt===10&&(qi=1,$o++),kt}function pn(){return ht(Gi,Xt)}function Go(){return Xt}function Yi(e,r){return Xa(Gi,e,r)}function di(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 Xs(e){return $o=qi=1,rh=wn(Gi=e),Xt=0,[]}function Qs(e){return Gi="",e}function Qa(e){return eh(Yi(Xt-1,Ks(e===91?e+2:e===40?e+1:e)))}function lv(e){for(;(kt=pn())&&kt<33;)Jt();return di(e)>2||di(kt)>3?"":" "}function ov(e,r){for(;--r&&Jt()&&!(kt<48||kt>102||kt>57&&kt<65||kt>70&&kt<97););return Yi(e,Go()+(r<6&&pn()==32&&Jt()==32))}function Ks(e){for(;Jt();)switch(kt){case e:return Xt;case 34:case 39:e!==34&&e!==39&&Ks(kt);break;case 40:e===41&&Ks(e);break;case 92:Jt();break}return Xt}function uv(e,r){for(;Jt()&&e+kt!==57;)if(e+kt===84&&pn()===47)break;return"/*"+Yi(r,Xt-1)+"*"+Fa(e===47?e:Jt())}function sv(e){for(;!di(pn());)Jt();return Yi(e,Xt)}function ih(e){return Qs(Yo("",null,null,null,[""],e=Xs(e),0,[0],e))}function Yo(e,r,a,l,u,s,f,d,m){for(var h=0,g=0,y=f,v=0,S=0,A=0,T=1,N=1,w=1,B=0,k="",z=u,R=s,_=l,H=k;N;)switch(A=B,B=Jt()){case 40:if(A!=108&&ht(H,y-1)==58){Pa(H+=xe(Qa(B),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:H+=Qa(B);break;case 9:case 10:case 13:case 32:H+=lv(A);break;case 92:H+=ov(Go()-1,7);continue;case 47:switch(pn()){case 42:case 47:Vo(cv(uv(Jt(),Go()),r,a),m);break;default:H+="/"}break;case 123*T:d[h++]=wn(H)*w;case 125*T:case 59:case 0:switch(B){case 0:case 125:N=0;case 59+g:w==-1&&(H=xe(H,/\f/g,"")),S>0&&wn(H)-y&&Vo(S>32?lh(H+";",l,a,y-1):lh(xe(H," ","")+";",l,a,y-2),m);break;case 59:H+=";";default:if(Vo(_=ah(H,r,a,h,g,u,d,k,z=[],R=[],y),s),B===123)if(g===0)Yo(H,r,_,_,z,s,y,d,R);else switch(v===99&&ht(H,3)===110?100:v){case 100:case 108:case 109:case 115:Yo(e,_,_,l&&Vo(ah(e,_,_,0,0,u,d,k,u,z=[],y),R),u,R,y,d,l?z:R);break;default:Yo(H,_,_,_,[""],R,0,d,R)}}h=g=S=0,T=w=1,k=H="",y=f;break;case 58:y=1+wn(H),S=A;default:if(T<1){if(B==123)--T;else if(B==125&&T++==0&&av()==125)continue}switch(H+=Fa(B),B*T){case 38:w=g>0?1:(H+="\f",-1);break;case 44:d[h++]=(wn(H)-1)*w,w=1;break;case 64:pn()===45&&(H+=Qa(Jt())),v=pn(),g=y=wn(k=H+=sv(Go())),B++;break;case 45:A===45&&wn(H)==2&&(T=0)}}return s}function ah(e,r,a,l,u,s,f,d,m,h,g){for(var y=u-1,v=u===0?s:[""],S=Ps(v),A=0,T=0,N=0;A<l;++A)for(var w=0,B=Xa(e,y+1,y=nv(T=f[A])),k=e;w<S;++w)(k=eh(T>0?v[w]+" "+B:xe(B,/&\f/g,v[w])))&&(m[N++]=k);return qo(e,r,a,u===0?Ho:d,m,h,g)}function cv(e,r,a){return qo(e,r,a,Wp,Fa(iv()),Xa(e,2,-2),0)}function lh(e,r,a,l){return qo(e,r,a,Io,Xa(e,0,l),Xa(e,l+1,-1),l)}function er(e,r){for(var a="",l=Ps(e),u=0;u<l;u++)a+=r(e[u],u,e,r)||"";return a}function oh(e,r,a,l){switch(e.type){case tv:if(e.children.length)break;case ev:case Io:return e.return=e.return||e.value;case Wp:return"";case Fs:return e.return=e.value+"{"+er(e.children,l)+"}";case Ho:e.value=e.props.join(",")}return wn(a=er(e.children,l))?e.return=e.value+"{"+a+"}":""}function uh(e){var r=Ps(e);return function(a,l,u,s){for(var f="",d=0;d<r;d++)f+=e[d](a,l,u,s)||"";return f}}function sh(e){return function(r){r.root||(r=r.return)&&e(r)}}var fv=function(r,a,l){for(var u=0,s=0;u=s,s=pn(),u===38&&s===12&&(a[l]=1),!di(s);)Jt();return Yi(r,Xt)},dv=function(r,a){var l=-1,u=44;do switch(di(u)){case 0:u===38&&pn()===12&&(a[l]=1),r[l]+=fv(Xt-1,a,l);break;case 2:r[l]+=Qa(u);break;case 4:if(u===44){r[++l]=pn()===58?"&\f":"",a[l]=r[l].length;break}default:r[l]+=Fa(u)}while(u=Jt());return r},pv=function(r,a){return Qs(dv(Xs(r),a))},ch=new WeakMap,hv=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var a=r.value,l=r.parent,u=r.column===l.column&&r.line===l.line;l.type!=="rule";)if(l=l.parent,!l)return;if(!(r.props.length===1&&a.charCodeAt(0)!==58&&!ch.get(l))&&!u){ch.set(r,!0);for(var s=[],f=pv(a,s),d=l.props,m=0,h=0;m<f.length;m++)for(var g=0;g<d.length;g++,h++)r.props[h]=s[m]?f[m].replace(/&\f/g,d[g]):d[g]+" "+f[m]}}},mv=function(r){if(r.type==="decl"){var a=r.value;a.charCodeAt(0)===108&&a.charCodeAt(2)===98&&(r.return="",r.value="")}};function fh(e,r){switch(Jp(e,r)){case 5103:return Se+"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 Se+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Se+e+Lr+e+Xe+e+e;case 6828:case 4268:return Se+e+Xe+e+e;case 6165:return Se+e+Xe+"flex-"+e+e;case 5187:return Se+e+xe(e,/(\w+).+(:[^]+)/,Se+"box-$1$2"+Xe+"flex-$1$2")+e;case 5443:return Se+e+Xe+"flex-item-"+xe(e,/flex-|-self/,"")+e;case 4675:return Se+e+Xe+"flex-line-pack"+xe(e,/align-content|flex-|-self/,"")+e;case 5548:return Se+e+Xe+xe(e,"shrink","negative")+e;case 5292:return Se+e+Xe+xe(e,"basis","preferred-size")+e;case 6060:return Se+"box-"+xe(e,"-grow","")+Se+e+Xe+xe(e,"grow","positive")+e;case 4554:return Se+xe(e,/([^-])(transform)/g,"$1"+Se+"$2")+e;case 6187:return xe(xe(xe(e,/(zoom-|grab)/,Se+"$1"),/(image-set)/,Se+"$1"),e,"")+e;case 5495:case 3959:return xe(e,/(image-set\([^]*)/,Se+"$1$`$1");case 4968:return xe(xe(e,/(.+:)(flex-)?(.*)/,Se+"box-pack:$3"+Xe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Se+e+e;case 4095:case 3583:case 4068:case 2532:return xe(e,/(.+)-inline(.+)/,Se+"$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(wn(e)-1-r>6)switch(ht(e,r+1)){case 109:if(ht(e,r+4)!==45)break;case 102:return xe(e,/(.+:)(.+)-([^]+)/,"$1"+Se+"$2-$3$1"+Lr+(ht(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~Pa(e,"stretch")?fh(xe(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(ht(e,r+1)!==115)break;case 6444:switch(ht(e,wn(e)-3-(~Pa(e,"!important")&&10))){case 107:return xe(e,":",":"+Se)+e;case 101:return xe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Se+(ht(e,14)===45?"inline-":"")+"box$3$1"+Se+"$2$3$1"+Xe+"$2box$3")+e}break;case 5936:switch(ht(e,r+11)){case 114:return Se+e+Xe+xe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Se+e+Xe+xe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Se+e+Xe+xe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Se+e+Xe+e+e}return e}var gv=function(r,a,l,u){if(r.length>-1&&!r.return)switch(r.type){case Io:r.return=fh(r.value,r.length);break;case Fs:return er([Jn(r,{value:xe(r.value,"@","@"+Se)})],u);case Ho:if(r.length)return nh(r.props,function(s){switch(th(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return er([Jn(r,{props:[xe(s,/:(read-\w+)/,":"+Lr+"$1")]})],u);case"::placeholder":return er([Jn(r,{props:[xe(s,/:(plac\w+)/,":"+Se+"input-$1")]}),Jn(r,{props:[xe(s,/:(plac\w+)/,":"+Lr+"$1")]}),Jn(r,{props:[xe(s,/:(plac\w+)/,Xe+"input-$1")]})],u)}return""})}},yv=[gv],bv=function(r){var a=r.key;if(a==="css"){var l=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(l,function(T){var N=T.getAttribute("data-emotion");N.indexOf(" ")!==-1&&(document.head.appendChild(T),T.setAttribute("data-s",""))})}var u=r.stylisPlugins||yv,s={},f,d=[];f=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+a+' "]'),function(T){for(var N=T.getAttribute("data-emotion").split(" "),w=1;w<N.length;w++)s[N[w]]=!0;d.push(T)});var m,h=[hv,mv];{var g,y=[oh,sh(function(T){g.insert(T)})],v=uh(h.concat(u,y)),S=function(N){return er(ih(N),v)};m=function(N,w,B,k){g=B,S(N?N+"{"+w.styles+"}":w.styles),k&&(A.inserted[w.name]=!0)}}var A={key:a,sheet:new Zp({key:a,container:f,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:s,registered:{},insert:m};return A.sheet.hydrate(d),A},Zs={exports:{}},et={};/** @license React v16.13.1
|
|
42
42
|
* react-is.production.min.js
|
|
43
43
|
*
|
|
44
44
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
45
45
|
*
|
|
46
46
|
* This source code is licensed under the MIT license found in the
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var ih;function gv(){if(ih)return Je;ih=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,l=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,u=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,m=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,R=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,N=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,B=e?Symbol.for("react.scope"):60119;function k(A){if(typeof A=="object"&&A!==null){var _=A.$$typeof;switch(_){case r:switch(A=A.type,A){case m:case h:case a:case s:case u:case y:return A;default:switch(A=A&&A.$$typeof,A){case d:case g:case R:case S:case f:return A;default:return _}}case l:return _}}}function z(A){return k(A)===h}return Je.AsyncMode=m,Je.ConcurrentMode=h,Je.ContextConsumer=d,Je.ContextProvider=f,Je.Element=r,Je.ForwardRef=g,Je.Fragment=a,Je.Lazy=R,Je.Memo=S,Je.Portal=l,Je.Profiler=s,Je.StrictMode=u,Je.Suspense=y,Je.isAsyncMode=function(A){return z(A)||k(A)===m},Je.isConcurrentMode=z,Je.isContextConsumer=function(A){return k(A)===d},Je.isContextProvider=function(A){return k(A)===f},Je.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===r},Je.isForwardRef=function(A){return k(A)===g},Je.isFragment=function(A){return k(A)===a},Je.isLazy=function(A){return k(A)===R},Je.isMemo=function(A){return k(A)===S},Je.isPortal=function(A){return k(A)===l},Je.isProfiler=function(A){return k(A)===s},Je.isStrictMode=function(A){return k(A)===u},Je.isSuspense=function(A){return k(A)===y},Je.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===a||A===h||A===s||A===u||A===y||A===v||typeof A=="object"&&A!==null&&(A.$$typeof===R||A.$$typeof===S||A.$$typeof===f||A.$$typeof===d||A.$$typeof===g||A.$$typeof===N||A.$$typeof===w||A.$$typeof===B||A.$$typeof===T)},Je.typeOf=k,Je}var lh;function yv(){return lh||(lh=1,Xs.exports=gv()),Xs.exports}var Qs,ah;function bv(){if(ah)return Qs;ah=1;var e=yv(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={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},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=a,s[e.Memo]=u;function f(R){return e.isMemo(R)?u:s[R.$$typeof]||r}var d=Object.defineProperty,m=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,v=Object.prototype;function S(R,T,N){if(typeof T!="string"){if(v){var w=y(T);w&&w!==v&&S(R,w,N)}var B=m(T);h&&(B=B.concat(h(T)));for(var k=f(R),z=f(T),A=0;A<B.length;++A){var _=B[A];if(!l[_]&&!(N&&N[_])&&!(z&&z[_])&&!(k&&k[_])){var H=g(T,_);try{d(R,_,H)}catch{}}}}return R}return Qs=S,Qs}bv();var Sv=!0;function vv(e,r,l){var a="";return l.split(" ").forEach(function(u){e[u]!==void 0?r.push(e[u]+";"):u&&(a+=u+" ")}),a}var oh=function(r,l,a){var u=r.key+"-"+l.name;(a===!1||Sv===!1)&&r.registered[u]===void 0&&(r.registered[u]=l.styles)},uh=function(r,l,a){oh(r,l,a);var u=r.key+"-"+l.name;if(r.inserted[l.name]===void 0){var s=l;do r.insert(l===s?"."+u:"",s,r.sheet,!0),s=s.next;while(s!==void 0)}};function xv(e){for(var r=0,l,a=0,u=e.length;u>=4;++a,u-=4)l=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,l=(l&65535)*1540483477+((l>>>16)*59797<<16),l^=l>>>24,r=(l&65535)*1540483477+((l>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(u){case 3:r^=(e.charCodeAt(a+2)&255)<<16;case 2:r^=(e.charCodeAt(a+1)&255)<<8;case 1:r^=e.charCodeAt(a)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var Ev={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},Cv=/[A-Z]|^ms/g,Tv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sh=function(r){return r.charCodeAt(1)===45},ch=function(r){return r!=null&&typeof r!="boolean"},Ks=Pp(function(e){return sh(e)?e:e.replace(Cv,"-$&").toLowerCase()}),fh=function(r,l){switch(r){case"animation":case"animationName":if(typeof l=="string")return l.replace(Tv,function(a,u,s){return Jn={name:u,styles:s,next:Jn},u})}return Ev[r]!==1&&!sh(r)&&typeof l=="number"&&l!==0?l+"px":l};function Fl(e,r,l){if(l==null)return"";var a=l;if(a.__emotion_styles!==void 0)return a;switch(typeof l){case"boolean":return"";case"object":{var u=l;if(u.anim===1)return Jn={name:u.name,styles:u.styles,next:Jn},u.name;var s=l;if(s.styles!==void 0){var f=s.next;if(f!==void 0)for(;f!==void 0;)Jn={name:f.name,styles:f.styles,next:Jn},f=f.next;var d=s.styles+";";return d}return wv(e,r,l)}case"function":{if(e!==void 0){var m=Jn,h=l(e);return Jn=m,Fl(e,r,h)}break}}var g=l;if(r==null)return g;var y=r[g];return y!==void 0?y:g}function wv(e,r,l){var a="";if(Array.isArray(l))for(var u=0;u<l.length;u++)a+=Fl(e,r,l[u])+";";else for(var s in l){var f=l[s];if(typeof f!="object"){var d=f;r!=null&&r[d]!==void 0?a+=s+"{"+r[d]+"}":ch(d)&&(a+=Ks(s)+":"+fh(s,d)+";")}else if(Array.isArray(f)&&typeof f[0]=="string"&&(r==null||r[f[0]]===void 0))for(var m=0;m<f.length;m++)ch(f[m])&&(a+=Ks(s)+":"+fh(s,f[m])+";");else{var h=Fl(e,r,f);switch(s){case"animation":case"animationName":{a+=Ks(s)+":"+h+";";break}default:a+=s+"{"+h+"}"}}}return a}var dh=/label:\s*([^\s;{]+)\s*(;|$)/g,Jn;function $o(e,r,l){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var a=!0,u="";Jn=void 0;var s=e[0];if(s==null||s.raw===void 0)a=!1,u+=Fl(l,r,s);else{var f=s;u+=f[0]}for(var d=1;d<e.length;d++)if(u+=Fl(l,r,e[d]),a){var m=s;u+=m[d]}dh.lastIndex=0;for(var h="",g;(g=dh.exec(u))!==null;)h+="-"+g[1];var y=xv(u)+h;return{name:y,styles:u,next:Jn}}var Av=function(r){return r()},ph=Hp.useInsertionEffect?Hp.useInsertionEffect:!1,kv=ph||Av,hh=ph||M.useLayoutEffect,mh=M.createContext(typeof HTMLElement<"u"?mv({key:"css"}):null);mh.Provider;var gh=function(r){return M.forwardRef(function(l,a){var u=M.useContext(mh);return r(l,u,a)})},Pl=M.createContext({}),Rv=function(){return M.useContext(Pl)},Ov=gh(function(e,r){var l=e.styles,a=$o([l],void 0,M.useContext(Pl)),u=M.useRef();return hh(function(){var s=r.key+"-global",f=new r.sheet.constructor({key:s,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),d=!1,m=document.querySelector('style[data-emotion="'+s+" "+a.name+'"]');return r.sheet.tags.length&&(f.before=r.sheet.tags[0]),m!==null&&(d=!0,m.setAttribute("data-emotion",s),f.hydrate([m])),u.current=[f,d],function(){f.flush()}},[r]),hh(function(){var s=u.current,f=s[0],d=s[1];if(d){s[1]=!1;return}if(a.next!==void 0&&uh(r,a.next,!0),f.tags.length){var m=f.tags[f.tags.length-1].nextElementSibling;f.before=m,f.flush()}r.insert("",a,f,!1)},[r,a.name]),null});function Zs(){for(var e=arguments.length,r=new Array(e),l=0;l<e;l++)r[l]=arguments[l];return $o(r)}var Ws=function(){var r=Zs.apply(void 0,arguments),l="animation-"+r.name;return{name:l,styles:"@keyframes "+l+"{"+r.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Mv=IS,_v=function(r){return r!=="theme"},yh=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?Mv:_v},bh=function(r,l,a){var u;if(l){var s=l.shouldForwardProp;u=r.__emotion_forwardProp&&s?function(f){return r.__emotion_forwardProp(f)&&s(f)}:s}return typeof u!="function"&&a&&(u=r.__emotion_forwardProp),u},Dv=function(r){var l=r.cache,a=r.serialized,u=r.isStringTag;return oh(l,a,u),kv(function(){return uh(l,a,u)}),null},zv=function e(r,l){var a=r.__emotion_real===r,u=a&&r.__emotion_base||r,s,f;l!==void 0&&(s=l.label,f=l.target);var d=bh(r,l,a),m=d||yh(u),h=!m("as");return function(){var g=arguments,y=a&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(s!==void 0&&y.push("label:"+s+";"),g[0]==null||g[0].raw===void 0)y.push.apply(y,g);else{y.push(g[0][0]);for(var v=g.length,S=1;S<v;S++)y.push(g[S],g[0][S])}var R=gh(function(T,N,w){var B=h&&T.as||u,k="",z=[],A=T;if(T.theme==null){A={};for(var _ in T)A[_]=T[_];A.theme=M.useContext(Pl)}typeof T.className=="string"?k=vv(N.registered,z,T.className):T.className!=null&&(k=T.className+" ");var H=$o(y.concat(z),N.registered,A);k+=N.key+"-"+H.name,f!==void 0&&(k+=" "+f);var ne=h&&d===void 0?yh(B):m,V={};for(var E in T)h&&E==="as"||ne(E)&&(V[E]=T[E]);return V.className=k,w&&(V.ref=w),M.createElement(M.Fragment,null,M.createElement(Dv,{cache:N,serialized:H,isStringTag:typeof B=="string"}),M.createElement(B,V))});return R.displayName=s!==void 0?s:"Styled("+(typeof u=="string"?u:u.displayName||u.name||"Component")+")",R.defaultProps=r.defaultProps,R.__emotion_real=R,R.__emotion_base=u,R.__emotion_styles=y,R.__emotion_forwardProp=d,Object.defineProperty(R,"toString",{value:function(){return"."+f}}),R.withComponent=function(T,N){return e(T,No({},l,N,{shouldForwardProp:bh(R,N,!0)})).apply(void 0,y)},R}},Nv=["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"],et=zv.bind();Nv.forEach(function(e){et[e]=et(e)});function Nr(e,...r){const l=new URL(`https://mui.com/production-error/?code=${e}`);return r.forEach(a=>l.searchParams.append("args[]",a)),`Minified MUI error #${e}; visit ${l} for the full message.`}function Sh(e){var r,l,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var u=e.length;for(r=0;r<u;r++)e[r]&&(l=Sh(e[r]))&&(a&&(a+=" "),a+=l)}else for(l in e)e[l]&&(a&&(a+=" "),a+=l);return a}function at(){for(var e,r,l=0,a="",u=arguments.length;l<u;l++)(e=arguments[l])&&(r=Sh(e))&&(a&&(a+=" "),a+=r);return a}function er(e,r,l=void 0){const a={};for(const u in e){const s=e[u];let f="",d=!0;for(let m=0;m<s.length;m+=1){const h=s[m];h&&(f+=(d===!0?"":" ")+r(h),d=!1,l&&l[h]&&(f+=" "+l[h]))}a[u]=f}return a}function tr(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function vh(e){if(!tr(e))return e;const r={};return Object.keys(e).forEach(l=>{r[l]=vh(e[l])}),r}function nn(e,r,l={clone:!0}){const a=l.clone?{...e}:e;return tr(e)&&tr(r)&&Object.keys(r).forEach(u=>{tr(r[u])&&Object.prototype.hasOwnProperty.call(e,u)&&tr(e[u])?a[u]=nn(e[u],r[u],l):l.clone?a[u]=tr(r[u])?vh(r[u]):r[u]:a[u]=r[u]}),a}function dt(e){if(typeof e!="string")throw new Error(Nr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function xh(...e){return e.reduce((r,l)=>l==null?r:function(...u){r.apply(this,u),l.apply(this,u)},()=>{})}function Eh(e,r=166){let l;function a(...u){const s=()=>{e.apply(this,u)};clearTimeout(l),l=setTimeout(s,r)}return a.clear=()=>{clearTimeout(l)},a}function si(e){return e&&e.ownerDocument||document}function Br(e){return si(e).defaultView||window}function Js(e,r){typeof e=="function"?e(r):e&&(e.current=r)}const qi=typeof window<"u"?M.useLayoutEffect:M.useEffect;function $i(e){const r=M.useRef(e);return qi(()=>{r.current=e}),M.useRef((...l)=>(0,r.current)(...l)).current}function Vn(...e){return M.useMemo(()=>e.every(r=>r==null)?null:r=>{e.forEach(l=>{Js(l,r)})},e)}const Ch={};function Th(e,r){const l=M.useRef(Ch);return l.current===Ch&&(l.current=e(r)),l}const Bv=[];function Lv(e){M.useEffect(e,Bv)}class ec{constructor(){Do(this,"currentId",null);Do(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Do(this,"disposeEffect",()=>this.clear)}static create(){return new ec}start(r,l){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,l()},r)}}function Uv(){const e=Th(ec.create).current;return Lv(e.disposeEffect),e}function wh(e){try{return e.matches(":focus-visible")}catch{}return!1}function jv(e=window){const r=e.document.documentElement.clientWidth;return e.innerWidth-r}function tc(e,r){const l={...r};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const u=a;if(u==="components"||u==="slots")l[u]={...e[u],...l[u]};else if(u==="componentsProps"||u==="slotProps"){const s=e[u],f=r[u];if(!f)l[u]=s||{};else if(!s)l[u]=f;else{l[u]={...f};for(const d in s)if(Object.prototype.hasOwnProperty.call(s,d)){const m=d;l[u][m]=tc(s[m],f[m])}}}else l[u]===void 0&&(l[u]=e[u])}return l}const Ah=e=>e,Hv=(()=>{let e=Ah;return{configure(r){e=r},generate(r){return e(r)},reset(){e=Ah}}})(),Iv={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 qn(e,r,l="Mui"){const a=Iv[r];return a?`${l}-${a}`:`${Hv.generate(e)}-${r}`}function $n(e,r,l="Mui"){const a={};return r.forEach(u=>{a[u]=qn(e,u,l)}),a}function Vv(e,r=Number.MIN_SAFE_INTEGER,l=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(e,l))}function qv(e){return typeof e=="string"}function $v(e,r,l){return e===void 0||qv(e)?r:{...r,ownerState:{...r.ownerState,...l}}}function kh(e,r=[]){if(e===void 0)return{};const l={};return Object.keys(e).filter(a=>a.match(/^on[A-Z]/)&&typeof e[a]=="function"&&!r.includes(a)).forEach(a=>{l[a]=e[a]}),l}function Rh(e){if(e===void 0)return{};const r={};return Object.keys(e).filter(l=>!(l.match(/^on[A-Z]/)&&typeof e[l]=="function")).forEach(l=>{r[l]=e[l]}),r}function Gv(e){const{getSlotProps:r,additionalProps:l,externalSlotProps:a,externalForwardedProps:u,className:s}=e;if(!r){const S=at(l==null?void 0:l.className,s,u==null?void 0:u.className,a==null?void 0:a.className),R={...l==null?void 0:l.style,...u==null?void 0:u.style,...a==null?void 0:a.style},T={...l,...u,...a};return S.length>0&&(T.className=S),Object.keys(R).length>0&&(T.style=R),{props:T,internalRef:void 0}}const f=kh({...u,...a}),d=Rh(a),m=Rh(u),h=r(f),g=at(h==null?void 0:h.className,l==null?void 0:l.className,s,u==null?void 0:u.className,a==null?void 0:a.className),y={...h==null?void 0:h.style,...l==null?void 0:l.style,...u==null?void 0:u.style,...a==null?void 0:a.style},v={...h,...l,...m,...d};return g.length>0&&(v.className=g),Object.keys(y).length>0&&(v.style=y),{props:v,internalRef:h.ref}}function Yv(e,r,l){return typeof e=="function"?e(r,l):e}function Go(e){var r;return parseInt(M.version,10)>=19?((r=e==null?void 0:e.props)==null?void 0:r.ref)||null:(e==null?void 0:e.ref)||null}var nc={exports:{}},Xl={};/**
|
|
48
|
+
*/var dh;function Sv(){if(dh)return et;dh=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,l=e?Symbol.for("react.fragment"):60107,u=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,m=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,A=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,N=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,B=e?Symbol.for("react.scope"):60119;function k(R){if(typeof R=="object"&&R!==null){var _=R.$$typeof;switch(_){case r:switch(R=R.type,R){case m:case h:case l:case s:case u:case y:return R;default:switch(R=R&&R.$$typeof,R){case d:case g:case A:case S:case f:return R;default:return _}}case a:return _}}}function z(R){return k(R)===h}return et.AsyncMode=m,et.ConcurrentMode=h,et.ContextConsumer=d,et.ContextProvider=f,et.Element=r,et.ForwardRef=g,et.Fragment=l,et.Lazy=A,et.Memo=S,et.Portal=a,et.Profiler=s,et.StrictMode=u,et.Suspense=y,et.isAsyncMode=function(R){return z(R)||k(R)===m},et.isConcurrentMode=z,et.isContextConsumer=function(R){return k(R)===d},et.isContextProvider=function(R){return k(R)===f},et.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===r},et.isForwardRef=function(R){return k(R)===g},et.isFragment=function(R){return k(R)===l},et.isLazy=function(R){return k(R)===A},et.isMemo=function(R){return k(R)===S},et.isPortal=function(R){return k(R)===a},et.isProfiler=function(R){return k(R)===s},et.isStrictMode=function(R){return k(R)===u},et.isSuspense=function(R){return k(R)===y},et.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===l||R===h||R===s||R===u||R===y||R===v||typeof R=="object"&&R!==null&&(R.$$typeof===A||R.$$typeof===S||R.$$typeof===f||R.$$typeof===d||R.$$typeof===g||R.$$typeof===N||R.$$typeof===w||R.$$typeof===B||R.$$typeof===T)},et.typeOf=k,et}var ph;function vv(){return ph||(ph=1,Zs.exports=Sv()),Zs.exports}var Ws,hh;function xv(){if(hh)return Ws;hh=1;var e=vv(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=l,s[e.Memo]=u;function f(A){return e.isMemo(A)?u:s[A.$$typeof]||r}var d=Object.defineProperty,m=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,v=Object.prototype;function S(A,T,N){if(typeof T!="string"){if(v){var w=y(T);w&&w!==v&&S(A,w,N)}var B=m(T);h&&(B=B.concat(h(T)));for(var k=f(A),z=f(T),R=0;R<B.length;++R){var _=B[R];if(!a[_]&&!(N&&N[_])&&!(z&&z[_])&&!(k&&k[_])){var H=g(T,_);try{d(A,_,H)}catch{}}}}return A}return Ws=S,Ws}xv();var Ev=!0;function Cv(e,r,a){var l="";return a.split(" ").forEach(function(u){e[u]!==void 0?r.push(e[u]+";"):u&&(l+=u+" ")}),l}var mh=function(r,a,l){var u=r.key+"-"+a.name;(l===!1||Ev===!1)&&r.registered[u]===void 0&&(r.registered[u]=a.styles)},gh=function(r,a,l){mh(r,a,l);var u=r.key+"-"+a.name;if(r.inserted[a.name]===void 0){var s=a;do r.insert(a===s?"."+u:"",s,r.sheet,!0),s=s.next;while(s!==void 0)}};function Tv(e){for(var r=0,a,l=0,u=e.length;u>=4;++l,u-=4)a=e.charCodeAt(l)&255|(e.charCodeAt(++l)&255)<<8|(e.charCodeAt(++l)&255)<<16|(e.charCodeAt(++l)&255)<<24,a=(a&65535)*1540483477+((a>>>16)*59797<<16),a^=a>>>24,r=(a&65535)*1540483477+((a>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(u){case 3:r^=(e.charCodeAt(l+2)&255)<<16;case 2:r^=(e.charCodeAt(l+1)&255)<<8;case 1:r^=e.charCodeAt(l)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var wv={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},Av=/[A-Z]|^ms/g,kv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,yh=function(r){return r.charCodeAt(1)===45},bh=function(r){return r!=null&&typeof r!="boolean"},Js=Kp(function(e){return yh(e)?e:e.replace(Av,"-$&").toLowerCase()}),Sh=function(r,a){switch(r){case"animation":case"animationName":if(typeof a=="string")return a.replace(kv,function(l,u,s){return tr={name:u,styles:s,next:tr},u})}return wv[r]!==1&&!yh(r)&&typeof a=="number"&&a!==0?a+"px":a};function Ka(e,r,a){if(a==null)return"";var l=a;if(l.__emotion_styles!==void 0)return l;switch(typeof a){case"boolean":return"";case"object":{var u=a;if(u.anim===1)return tr={name:u.name,styles:u.styles,next:tr},u.name;var s=a;if(s.styles!==void 0){var f=s.next;if(f!==void 0)for(;f!==void 0;)tr={name:f.name,styles:f.styles,next:tr},f=f.next;var d=s.styles+";";return d}return Rv(e,r,a)}case"function":{if(e!==void 0){var m=tr,h=a(e);return tr=m,Ka(e,r,h)}break}}var g=a;if(r==null)return g;var y=r[g];return y!==void 0?y:g}function Rv(e,r,a){var l="";if(Array.isArray(a))for(var u=0;u<a.length;u++)l+=Ka(e,r,a[u])+";";else for(var s in a){var f=a[s];if(typeof f!="object"){var d=f;r!=null&&r[d]!==void 0?l+=s+"{"+r[d]+"}":bh(d)&&(l+=Js(s)+":"+Sh(s,d)+";")}else if(Array.isArray(f)&&typeof f[0]=="string"&&(r==null||r[f[0]]===void 0))for(var m=0;m<f.length;m++)bh(f[m])&&(l+=Js(s)+":"+Sh(s,f[m])+";");else{var h=Ka(e,r,f);switch(s){case"animation":case"animationName":{l+=Js(s)+":"+h+";";break}default:l+=s+"{"+h+"}"}}}return l}var vh=/label:\s*([^\s;{]+)\s*(;|$)/g,tr;function Fo(e,r,a){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var l=!0,u="";tr=void 0;var s=e[0];if(s==null||s.raw===void 0)l=!1,u+=Ka(a,r,s);else{var f=s;u+=f[0]}for(var d=1;d<e.length;d++)if(u+=Ka(a,r,e[d]),l){var m=s;u+=m[d]}vh.lastIndex=0;for(var h="",g;(g=vh.exec(u))!==null;)h+="-"+g[1];var y=Tv(u)+h;return{name:y,styles:u,next:tr}}var Ov=function(r){return r()},xh=$p.useInsertionEffect?$p.useInsertionEffect:!1,Mv=xh||Ov,Eh=xh||M.useLayoutEffect,Ch=M.createContext(typeof HTMLElement<"u"?bv({key:"css"}):null),_v=Ch.Provider,Th=function(r){return M.forwardRef(function(a,l){var u=M.useContext(Ch);return r(a,u,l)})},Za=M.createContext({}),Dv=function(){return M.useContext(Za)},zv=Th(function(e,r){var a=e.styles,l=Fo([a],void 0,M.useContext(Za)),u=M.useRef();return Eh(function(){var s=r.key+"-global",f=new r.sheet.constructor({key:s,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),d=!1,m=document.querySelector('style[data-emotion="'+s+" "+l.name+'"]');return r.sheet.tags.length&&(f.before=r.sheet.tags[0]),m!==null&&(d=!0,m.setAttribute("data-emotion",s),f.hydrate([m])),u.current=[f,d],function(){f.flush()}},[r]),Eh(function(){var s=u.current,f=s[0],d=s[1];if(d){s[1]=!1;return}if(l.next!==void 0&&gh(r,l.next,!0),f.tags.length){var m=f.tags[f.tags.length-1].nextElementSibling;f.before=m,f.flush()}r.insert("",l,f,!1)},[r,l.name]),null});function ec(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return Fo(r)}var tc=function(){var r=ec.apply(void 0,arguments),a="animation-"+r.name;return{name:a,styles:"@keyframes "+a+"{"+r.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Nv=ZS,Bv=function(r){return r!=="theme"},wh=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?Nv:Bv},Ah=function(r,a,l){var u;if(a){var s=a.shouldForwardProp;u=r.__emotion_forwardProp&&s?function(f){return r.__emotion_forwardProp(f)&&s(f)}:s}return typeof u!="function"&&l&&(u=r.__emotion_forwardProp),u},Lv=function(r){var a=r.cache,l=r.serialized,u=r.isStringTag;return mh(a,l,u),Mv(function(){return gh(a,l,u)}),null},Uv=function e(r,a){var l=r.__emotion_real===r,u=l&&r.__emotion_base||r,s,f;a!==void 0&&(s=a.label,f=a.target);var d=Ah(r,a,l),m=d||wh(u),h=!m("as");return function(){var g=arguments,y=l&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(s!==void 0&&y.push("label:"+s+";"),g[0]==null||g[0].raw===void 0)y.push.apply(y,g);else{y.push(g[0][0]);for(var v=g.length,S=1;S<v;S++)y.push(g[S],g[0][S])}var A=Th(function(T,N,w){var B=h&&T.as||u,k="",z=[],R=T;if(T.theme==null){R={};for(var _ in T)R[_]=T[_];R.theme=M.useContext(Za)}typeof T.className=="string"?k=Cv(N.registered,z,T.className):T.className!=null&&(k=T.className+" ");var H=Fo(y.concat(z),N.registered,R);k+=N.key+"-"+H.name,f!==void 0&&(k+=" "+f);var ne=h&&d===void 0?wh(B):m,V={};for(var E in T)h&&E==="as"||ne(E)&&(V[E]=T[E]);return V.className=k,w&&(V.ref=w),M.createElement(M.Fragment,null,M.createElement(Lv,{cache:N,serialized:H,isStringTag:typeof B=="string"}),M.createElement(B,V))});return A.displayName=s!==void 0?s:"Styled("+(typeof u=="string"?u:u.displayName||u.name||"Component")+")",A.defaultProps=r.defaultProps,A.__emotion_real=A,A.__emotion_base=u,A.__emotion_styles=y,A.__emotion_forwardProp=d,Object.defineProperty(A,"toString",{value:function(){return"."+f}}),A.withComponent=function(T,N){return e(T,jo({},a,N,{shouldForwardProp:Ah(A,N,!0)})).apply(void 0,y)},A}},jv=["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"],tt=Uv.bind();jv.forEach(function(e){tt[e]=tt(e)});function Ur(e,...r){const a=new URL(`https://mui.com/production-error/?code=${e}`);return r.forEach(l=>a.searchParams.append("args[]",l)),`Minified MUI error #${e}; visit ${a} for the full message.`}function kh(e){var r,a,l="";if(typeof e=="string"||typeof e=="number")l+=e;else if(typeof e=="object")if(Array.isArray(e)){var u=e.length;for(r=0;r<u;r++)e[r]&&(a=kh(e[r]))&&(l&&(l+=" "),l+=a)}else for(a in e)e[a]&&(l&&(l+=" "),l+=a);return l}function ot(){for(var e,r,a=0,l="",u=arguments.length;a<u;a++)(e=arguments[a])&&(r=kh(e))&&(l&&(l+=" "),l+=r);return l}function nr(e,r,a=void 0){const l={};for(const u in e){const s=e[u];let f="",d=!0;for(let m=0;m<s.length;m+=1){const h=s[m];h&&(f+=(d===!0?"":" ")+r(h),d=!1,a&&a[h]&&(f+=" "+a[h]))}l[u]=f}return l}function rr(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Rh(e){if(!rr(e))return e;const r={};return Object.keys(e).forEach(a=>{r[a]=Rh(e[a])}),r}function rn(e,r,a={clone:!0}){const l=a.clone?{...e}:e;return rr(e)&&rr(r)&&Object.keys(r).forEach(u=>{rr(r[u])&&Object.prototype.hasOwnProperty.call(e,u)&&rr(e[u])?l[u]=rn(e[u],r[u],a):a.clone?l[u]=rr(r[u])?Rh(r[u]):r[u]:l[u]=r[u]}),l}function pt(e){if(typeof e!="string")throw new Error(Ur(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Oh(...e){return e.reduce((r,a)=>a==null?r:function(...u){r.apply(this,u),a.apply(this,u)},()=>{})}function Mh(e,r=166){let a;function l(...u){const s=()=>{e.apply(this,u)};clearTimeout(a),a=setTimeout(s,r)}return l.clear=()=>{clearTimeout(a)},l}function pi(e){return e&&e.ownerDocument||document}function jr(e){return pi(e).defaultView||window}function nc(e,r){typeof e=="function"?e(r):e&&(e.current=r)}const Fi=typeof window<"u"?M.useLayoutEffect:M.useEffect;function Pi(e){const r=M.useRef(e);return Fi(()=>{r.current=e}),M.useRef((...a)=>(0,r.current)(...a)).current}function qn(...e){return M.useMemo(()=>e.every(r=>r==null)?null:r=>{e.forEach(a=>{nc(a,r)})},e)}const _h={};function Dh(e,r){const a=M.useRef(_h);return a.current===_h&&(a.current=e(r)),a}const Hv=[];function Iv(e){M.useEffect(e,Hv)}class rc{constructor(){Lo(this,"currentId",null);Lo(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Lo(this,"disposeEffect",()=>this.clear)}static create(){return new rc}start(r,a){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,a()},r)}}function Vv(){const e=Dh(rc.create).current;return Iv(e.disposeEffect),e}function zh(e){try{return e.matches(":focus-visible")}catch{}return!1}function $v(e=window){const r=e.document.documentElement.clientWidth;return e.innerWidth-r}function ic(e,r){const a={...r};for(const l in e)if(Object.prototype.hasOwnProperty.call(e,l)){const u=l;if(u==="components"||u==="slots")a[u]={...e[u],...a[u]};else if(u==="componentsProps"||u==="slotProps"){const s=e[u],f=r[u];if(!f)a[u]=s||{};else if(!s)a[u]=f;else{a[u]={...f};for(const d in s)if(Object.prototype.hasOwnProperty.call(s,d)){const m=d;a[u][m]=ic(s[m],f[m])}}}else a[u]===void 0&&(a[u]=e[u])}return a}const Nh=e=>e,qv=(()=>{let e=Nh;return{configure(r){e=r},generate(r){return e(r)},reset(){e=Nh}}})(),Gv={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 Gn(e,r,a="Mui"){const l=Gv[r];return l?`${a}-${l}`:`${qv.generate(e)}-${r}`}function Yn(e,r,a="Mui"){const l={};return r.forEach(u=>{l[u]=Gn(e,u,a)}),l}function Yv(e,r=Number.MIN_SAFE_INTEGER,a=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(e,a))}function Fv(e){return typeof e=="string"}function Pv(e,r,a){return e===void 0||Fv(e)?r:{...r,ownerState:{...r.ownerState,...a}}}function Bh(e,r=[]){if(e===void 0)return{};const a={};return Object.keys(e).filter(l=>l.match(/^on[A-Z]/)&&typeof e[l]=="function"&&!r.includes(l)).forEach(l=>{a[l]=e[l]}),a}function Lh(e){if(e===void 0)return{};const r={};return Object.keys(e).filter(a=>!(a.match(/^on[A-Z]/)&&typeof e[a]=="function")).forEach(a=>{r[a]=e[a]}),r}function Xv(e){const{getSlotProps:r,additionalProps:a,externalSlotProps:l,externalForwardedProps:u,className:s}=e;if(!r){const S=ot(a==null?void 0:a.className,s,u==null?void 0:u.className,l==null?void 0:l.className),A={...a==null?void 0:a.style,...u==null?void 0:u.style,...l==null?void 0:l.style},T={...a,...u,...l};return S.length>0&&(T.className=S),Object.keys(A).length>0&&(T.style=A),{props:T,internalRef:void 0}}const f=Bh({...u,...l}),d=Lh(l),m=Lh(u),h=r(f),g=ot(h==null?void 0:h.className,a==null?void 0:a.className,s,u==null?void 0:u.className,l==null?void 0:l.className),y={...h==null?void 0:h.style,...a==null?void 0:a.style,...u==null?void 0:u.style,...l==null?void 0:l.style},v={...h,...a,...m,...d};return g.length>0&&(v.className=g),Object.keys(y).length>0&&(v.style=y),{props:v,internalRef:h.ref}}function Qv(e,r,a){return typeof e=="function"?e(r,a):e}function Po(e){var r;return parseInt(M.version,10)>=19?((r=e==null?void 0:e.props)==null?void 0:r.ref)||null:(e==null?void 0:e.ref)||null}var ac={exports:{}},Wa={};/**
|
|
49
49
|
* @license React
|
|
50
50
|
* react-jsx-runtime.production.js
|
|
51
51
|
*
|
|
@@ -53,22 +53,22 @@ Error generating stack: `+i.message+`
|
|
|
53
53
|
*
|
|
54
54
|
* This source code is licensed under the MIT license found in the
|
|
55
55
|
* LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/var
|
|
57
|
-
`&&(z.value+=" ");const A=k.boxSizing,_=Yo(k.paddingBottom)+Yo(k.paddingTop),H=Yo(k.borderBottomWidth)+Yo(k.borderTopWidth),ne=z.scrollHeight;z.value="x";const V=z.scrollHeight;let E=ne;s&&(E=Math.max(Number(s)*V,E)),u&&(E=Math.min(Number(u)*V,E)),E=Math.max(E,V);const I=E+(A==="border-box"?_+H:0),Y=Math.abs(E-ne)<=1;return{outerHeightStyle:I,overflowing:Y}},[u,s,r.placeholder]),T=M.useCallback(()=>{const w=R();if(Qv(w))return;const B=w.outerHeightStyle,k=g.current;v.current!==B&&(v.current=B,k.style.height=`${B}px`),k.style.overflow=w.overflowing?"hidden":""},[R]);qi(()=>{const w=()=>{T()};let B;const k=Eh(w),z=g.current,A=Br(z);A.addEventListener("resize",k);let _;return typeof ResizeObserver<"u"&&(_=new ResizeObserver(w),_.observe(z)),()=>{k.clear(),cancelAnimationFrame(B),A.removeEventListener("resize",k),_&&_.disconnect()}},[R,T]),qi(()=>{T()});const N=w=>{h||T(),a&&a(w)};return ce.jsxs(M.Fragment,{children:[ce.jsx("textarea",{value:d,onChange:N,ref:y,rows:s,style:f,...m}),ce.jsx("textarea",{"aria-hidden":!0,className:r.className,readOnly:!0,ref:S,tabIndex:-1,style:{...Xv.shadow,...f,paddingTop:0,paddingBottom:0}})]})});function _h(e){return typeof e=="string"}function Zv({props:e,states:r,muiFormControl:l}){return r.reduce((a,u)=>(a[u]=e[u],l&&typeof e[u]>"u"&&(a[u]=l[u]),a),{})}const Dh=M.createContext(void 0);function Wv(){return M.useContext(Dh)}function Ql(e,r){return r?nn(e,r,{clone:!1}):e}function Jv(e,r){if(!e.containerQueries)return r;const l=Object.keys(r).filter(a=>a.startsWith("@container")).sort((a,u)=>{var f,d;const s=/min-width:\s*([0-9.]+)/;return+(((f=a.match(s))==null?void 0:f[1])||0)-+(((d=u.match(s))==null?void 0:d[1])||0)});return l.length?l.reduce((a,u)=>{const s=r[u];return delete a[u],a[u]=s,a},{...r}):r}function ex(e,r){return r==="@"||r.startsWith("@")&&(e.some(l=>r.startsWith(`@${l}`))||!!r.match(/^@\d/))}function tx(e,r){const l=r.match(/^@([^/]+)?\/?(.+)?$/);if(!l)return null;const[,a,u]=l,s=Number.isNaN(+a)?a||0:+a;return e.containerQueries(u).up(s)}function nx(e){const r=(s,f)=>s.replace("@media",f?`@container ${f}`:"@container");function l(s,f){s.up=(...d)=>r(e.breakpoints.up(...d),f),s.down=(...d)=>r(e.breakpoints.down(...d),f),s.between=(...d)=>r(e.breakpoints.between(...d),f),s.only=(...d)=>r(e.breakpoints.only(...d),f),s.not=(...d)=>{const m=r(e.breakpoints.not(...d),f);return m.includes("not all and")?m.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):m}}const a={},u=s=>(l(a,s),a);return l(u),{...e,containerQueries:u}}const Fo={xs:0,sm:600,md:900,lg:1200,xl:1536},zh={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Fo[e]}px)`},rx={containerQueries:e=>({up:r=>{let l=typeof r=="number"?r:Fo[r]||r;return typeof l=="number"&&(l=`${l}px`),e?`@container ${e} (min-width:${l})`:`@container (min-width:${l})`}})};function dr(e,r,l){const a=e.theme||{};if(Array.isArray(r)){const s=a.breakpoints||zh;return r.reduce((f,d,m)=>(f[s.up(s.keys[m])]=l(r[m]),f),{})}if(typeof r=="object"){const s=a.breakpoints||zh;return Object.keys(r).reduce((f,d)=>{if(ex(s.keys,d)){const m=tx(a.containerQueries?a:rx,d);m&&(f[m]=l(r[d],d))}else if(Object.keys(s.values||Fo).includes(d)){const m=s.up(d);f[m]=l(r[d],d)}else{const m=d;f[m]=r[m]}return f},{})}return l(r)}function ix(e={}){var l;return((l=e.keys)==null?void 0:l.reduce((a,u)=>{const s=e.up(u);return a[s]={},a},{}))||{}}function lx(e,r){return e.reduce((l,a)=>{const u=l[a];return(!u||Object.keys(u).length===0)&&delete l[a],l},r)}function Po(e,r,l=!0){if(!r||typeof r!="string")return null;if(e&&e.vars&&l){const a=`vars.${r}`.split(".").reduce((u,s)=>u&&u[s]?u[s]:null,e);if(a!=null)return a}return r.split(".").reduce((a,u)=>a&&a[u]!=null?a[u]:null,e)}function Xo(e,r,l,a=l){let u;return typeof e=="function"?u=e(l):Array.isArray(e)?u=e[l]||a:u=Po(e,l)||a,r&&(u=r(u,a,e)),u}function Ct(e){const{prop:r,cssProperty:l=e.prop,themeKey:a,transform:u}=e,s=f=>{if(f[r]==null)return null;const d=f[r],m=f.theme,h=Po(m,a)||{};return dr(f,d,y=>{let v=Xo(h,u,y);return y===v&&typeof y=="string"&&(v=Xo(h,u,`${r}${y==="default"?"":dt(y)}`,y)),l===!1?v:{[l]:v}})};return s.propTypes={},s.filterProps=[r],s}function ax(e){const r={};return l=>(r[l]===void 0&&(r[l]=e(l)),r[l])}const ox={m:"margin",p:"padding"},ux={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Nh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},sx=ax(e=>{if(e.length>2)if(Nh[e])e=Nh[e];else return[e];const[r,l]=e.split(""),a=ox[r],u=ux[l]||"";return Array.isArray(u)?u.map(s=>a+s):[a+u]}),rc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ic=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...rc,...ic];function Kl(e,r,l,a){const u=Po(e,r,!0)??l;return typeof u=="number"||typeof u=="string"?s=>typeof s=="string"?s:typeof u=="string"?`calc(${s} * ${u})`:u*s:Array.isArray(u)?s=>{if(typeof s=="string")return s;const f=Math.abs(s),d=u[f];return s>=0?d:typeof d=="number"?-d:`-${d}`}:typeof u=="function"?u:()=>{}}function lc(e){return Kl(e,"spacing",8)}function Zl(e,r){return typeof r=="string"||r==null?r:e(r)}function cx(e,r){return l=>e.reduce((a,u)=>(a[u]=Zl(r,l),a),{})}function fx(e,r,l,a){if(!r.includes(l))return null;const u=sx(l),s=cx(u,a),f=e[l];return dr(e,f,s)}function Bh(e,r){const l=lc(e.theme);return Object.keys(e).map(a=>fx(e,r,a,l)).reduce(Ql,{})}function yt(e){return Bh(e,rc)}yt.propTypes={},yt.filterProps=rc;function bt(e){return Bh(e,ic)}bt.propTypes={},bt.filterProps=ic;function Qo(...e){const r=e.reduce((a,u)=>(u.filterProps.forEach(s=>{a[s]=u}),a),{}),l=a=>Object.keys(a).reduce((u,s)=>r[s]?Ql(u,r[s](a)):u,{});return l.propTypes={},l.filterProps=e.reduce((a,u)=>a.concat(u.filterProps),[]),l}function Tn(e){return typeof e!="number"?e:`${e}px solid`}function wn(e,r){return Ct({prop:e,themeKey:"borders",transform:r})}const dx=wn("border",Tn),px=wn("borderTop",Tn),hx=wn("borderRight",Tn),mx=wn("borderBottom",Tn),gx=wn("borderLeft",Tn),yx=wn("borderColor"),bx=wn("borderTopColor"),Sx=wn("borderRightColor"),vx=wn("borderBottomColor"),xx=wn("borderLeftColor"),Ex=wn("outline",Tn),Cx=wn("outlineColor"),Ko=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const r=Kl(e.theme,"shape.borderRadius",4),l=a=>({borderRadius:Zl(r,a)});return dr(e,e.borderRadius,l)}return null};Ko.propTypes={},Ko.filterProps=["borderRadius"],Qo(dx,px,hx,mx,gx,yx,bx,Sx,vx,xx,Ko,Ex,Cx);const Zo=e=>{if(e.gap!==void 0&&e.gap!==null){const r=Kl(e.theme,"spacing",8),l=a=>({gap:Zl(r,a)});return dr(e,e.gap,l)}return null};Zo.propTypes={},Zo.filterProps=["gap"];const Wo=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const r=Kl(e.theme,"spacing",8),l=a=>({columnGap:Zl(r,a)});return dr(e,e.columnGap,l)}return null};Wo.propTypes={},Wo.filterProps=["columnGap"];const Jo=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const r=Kl(e.theme,"spacing",8),l=a=>({rowGap:Zl(r,a)});return dr(e,e.rowGap,l)}return null};Jo.propTypes={},Jo.filterProps=["rowGap"];const Tx=Ct({prop:"gridColumn"}),wx=Ct({prop:"gridRow"}),Ax=Ct({prop:"gridAutoFlow"}),kx=Ct({prop:"gridAutoColumns"}),Rx=Ct({prop:"gridAutoRows"}),Ox=Ct({prop:"gridTemplateColumns"}),Mx=Ct({prop:"gridTemplateRows"}),_x=Ct({prop:"gridTemplateAreas"}),Dx=Ct({prop:"gridArea"});Qo(Zo,Wo,Jo,Tx,wx,Ax,kx,Rx,Ox,Mx,_x,Dx);function Gi(e,r){return r==="grey"?r:e}const zx=Ct({prop:"color",themeKey:"palette",transform:Gi}),Nx=Ct({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Gi}),Bx=Ct({prop:"backgroundColor",themeKey:"palette",transform:Gi});Qo(zx,Nx,Bx);function pn(e){return e<=1&&e!==0?`${e*100}%`:e}const Lx=Ct({prop:"width",transform:pn}),ac=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const r=l=>{var u,s,f,d,m;const a=((f=(s=(u=e.theme)==null?void 0:u.breakpoints)==null?void 0:s.values)==null?void 0:f[l])||Fo[l];return a?((m=(d=e.theme)==null?void 0:d.breakpoints)==null?void 0:m.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:pn(l)}};return dr(e,e.maxWidth,r)}return null};ac.filterProps=["maxWidth"];const Ux=Ct({prop:"minWidth",transform:pn}),jx=Ct({prop:"height",transform:pn}),Hx=Ct({prop:"maxHeight",transform:pn}),Ix=Ct({prop:"minHeight",transform:pn});Ct({prop:"size",cssProperty:"width",transform:pn}),Ct({prop:"size",cssProperty:"height",transform:pn});const Vx=Ct({prop:"boxSizing"});Qo(Lx,ac,Ux,jx,Hx,Ix,Vx);const Wl={border:{themeKey:"borders",transform:Tn},borderTop:{themeKey:"borders",transform:Tn},borderRight:{themeKey:"borders",transform:Tn},borderBottom:{themeKey:"borders",transform:Tn},borderLeft:{themeKey:"borders",transform:Tn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Tn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ko},color:{themeKey:"palette",transform:Gi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Gi},backgroundColor:{themeKey:"palette",transform:Gi},p:{style:bt},pt:{style:bt},pr:{style:bt},pb:{style:bt},pl:{style:bt},px:{style:bt},py:{style:bt},padding:{style:bt},paddingTop:{style:bt},paddingRight:{style:bt},paddingBottom:{style:bt},paddingLeft:{style:bt},paddingX:{style:bt},paddingY:{style:bt},paddingInline:{style:bt},paddingInlineStart:{style:bt},paddingInlineEnd:{style:bt},paddingBlock:{style:bt},paddingBlockStart:{style:bt},paddingBlockEnd:{style:bt},m:{style:yt},mt:{style:yt},mr:{style:yt},mb:{style:yt},ml:{style:yt},mx:{style:yt},my:{style:yt},margin:{style:yt},marginTop:{style:yt},marginRight:{style:yt},marginBottom:{style:yt},marginLeft:{style:yt},marginX:{style:yt},marginY:{style:yt},marginInline:{style:yt},marginInlineStart:{style:yt},marginInlineEnd:{style:yt},marginBlock:{style:yt},marginBlockStart:{style:yt},marginBlockEnd:{style:yt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Zo},rowGap:{style:Jo},columnGap:{style:Wo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:pn},maxWidth:{style:ac},minWidth:{transform:pn},height:{transform:pn},maxHeight:{transform:pn},minHeight:{transform:pn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function qx(...e){const r=e.reduce((a,u)=>a.concat(Object.keys(u)),[]),l=new Set(r);return e.every(a=>l.size===Object.keys(a).length)}function $x(e,r){return typeof e=="function"?e(r):e}function Gx(){function e(l,a,u,s){const f={[l]:a,theme:u},d=s[l];if(!d)return{[l]:a};const{cssProperty:m=l,themeKey:h,transform:g,style:y}=d;if(a==null)return null;if(h==="typography"&&a==="inherit")return{[l]:a};const v=Po(u,h)||{};return y?y(f):dr(f,a,R=>{let T=Xo(v,g,R);return R===T&&typeof R=="string"&&(T=Xo(v,g,`${l}${R==="default"?"":dt(R)}`,R)),m===!1?T:{[m]:T}})}function r(l){const{sx:a,theme:u={}}=l||{};if(!a)return null;const s=u.unstable_sxConfig??Wl;function f(d){let m=d;if(typeof d=="function")m=d(u);else if(typeof d!="object")return d;if(!m)return null;const h=ix(u.breakpoints),g=Object.keys(h);let y=h;return Object.keys(m).forEach(v=>{const S=$x(m[v],u);if(S!=null)if(typeof S=="object")if(s[v])y=Ql(y,e(v,S,u,s));else{const R=dr({theme:u},S,T=>({[v]:T}));qx(R,S)?y[v]=r({sx:S,theme:u}):y=Ql(y,R)}else y=Ql(y,e(v,S,u,s))}),Jv(u,lx(g,y))}return Array.isArray(a)?a.map(f):f(a)}return r}const ci=Gx();ci.filterProps=["sx"];const Yx=e=>{var a;const r={systemProps:{},otherProps:{}},l=((a=e==null?void 0:e.theme)==null?void 0:a.unstable_sxConfig)??Wl;return Object.keys(e).forEach(u=>{l[u]?r.systemProps[u]=e[u]:r.otherProps[u]=e[u]}),r};function Fx(e){const{sx:r,...l}=e,{systemProps:a,otherProps:u}=Yx(l);let s;return Array.isArray(r)?s=[a,...r]:typeof r=="function"?s=(...f)=>{const d=r(...f);return tr(d)?{...a,...d}:a}:s={...a,...r},{...u,sx:s}}function Px(e){return e==null||Object.keys(e).length===0}function Lh(e){const{styles:r,defaultTheme:l={}}=e,a=typeof r=="function"?u=>r(Px(u)?l:u):r;return ce.jsx(Ov,{styles:a})}/**
|
|
56
|
+
*/var Uh;function Kv(){if(Uh)return Wa;Uh=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function a(l,u,s){var f=null;if(s!==void 0&&(f=""+s),u.key!==void 0&&(f=""+u.key),"key"in u){s={};for(var d in u)d!=="key"&&(s[d]=u[d])}else s=u;return u=s.ref,{$$typeof:e,type:l,key:f,ref:u!==void 0?u:null,props:s}}return Wa.Fragment=r,Wa.jsx=a,Wa.jsxs=a,Wa}var jh;function Zv(){return jh||(jh=1,ac.exports=Kv()),ac.exports}var ce=Zv();function Xo(e){return parseInt(e,10)||0}const Wv={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Jv(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const ex=M.forwardRef(function(r,a){const{onChange:l,maxRows:u,minRows:s=1,style:f,value:d,...m}=r,{current:h}=M.useRef(d!=null),g=M.useRef(null),y=qn(a,g),v=M.useRef(null),S=M.useRef(null),A=M.useCallback(()=>{const w=g.current,k=jr(w).getComputedStyle(w);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};const z=S.current;z.style.width=k.width,z.value=w.value||r.placeholder||"x",z.value.slice(-1)===`
|
|
57
|
+
`&&(z.value+=" ");const R=k.boxSizing,_=Xo(k.paddingBottom)+Xo(k.paddingTop),H=Xo(k.borderBottomWidth)+Xo(k.borderTopWidth),ne=z.scrollHeight;z.value="x";const V=z.scrollHeight;let E=ne;s&&(E=Math.max(Number(s)*V,E)),u&&(E=Math.min(Number(u)*V,E)),E=Math.max(E,V);const I=E+(R==="border-box"?_+H:0),Y=Math.abs(E-ne)<=1;return{outerHeightStyle:I,overflowing:Y}},[u,s,r.placeholder]),T=M.useCallback(()=>{const w=A();if(Jv(w))return;const B=w.outerHeightStyle,k=g.current;v.current!==B&&(v.current=B,k.style.height=`${B}px`),k.style.overflow=w.overflowing?"hidden":""},[A]);Fi(()=>{const w=()=>{T()};let B;const k=Mh(w),z=g.current,R=jr(z);R.addEventListener("resize",k);let _;return typeof ResizeObserver<"u"&&(_=new ResizeObserver(w),_.observe(z)),()=>{k.clear(),cancelAnimationFrame(B),R.removeEventListener("resize",k),_&&_.disconnect()}},[A,T]),Fi(()=>{T()});const N=w=>{h||T(),l&&l(w)};return ce.jsxs(M.Fragment,{children:[ce.jsx("textarea",{value:d,onChange:N,ref:y,rows:s,style:f,...m}),ce.jsx("textarea",{"aria-hidden":!0,className:r.className,readOnly:!0,ref:S,tabIndex:-1,style:{...Wv.shadow,...f,paddingTop:0,paddingBottom:0}})]})});function Hh(e){return typeof e=="string"}function tx({props:e,states:r,muiFormControl:a}){return r.reduce((l,u)=>(l[u]=e[u],a&&typeof e[u]>"u"&&(l[u]=a[u]),l),{})}const Ih=M.createContext(void 0);function nx(){return M.useContext(Ih)}function Ja(e,r){return r?rn(e,r,{clone:!1}):e}function rx(e,r){if(!e.containerQueries)return r;const a=Object.keys(r).filter(l=>l.startsWith("@container")).sort((l,u)=>{var f,d;const s=/min-width:\s*([0-9.]+)/;return+(((f=l.match(s))==null?void 0:f[1])||0)-+(((d=u.match(s))==null?void 0:d[1])||0)});return a.length?a.reduce((l,u)=>{const s=r[u];return delete l[u],l[u]=s,l},{...r}):r}function ix(e,r){return r==="@"||r.startsWith("@")&&(e.some(a=>r.startsWith(`@${a}`))||!!r.match(/^@\d/))}function ax(e,r){const a=r.match(/^@([^/]+)?\/?(.+)?$/);if(!a)return null;const[,l,u]=a,s=Number.isNaN(+l)?l||0:+l;return e.containerQueries(u).up(s)}function lx(e){const r=(s,f)=>s.replace("@media",f?`@container ${f}`:"@container");function a(s,f){s.up=(...d)=>r(e.breakpoints.up(...d),f),s.down=(...d)=>r(e.breakpoints.down(...d),f),s.between=(...d)=>r(e.breakpoints.between(...d),f),s.only=(...d)=>r(e.breakpoints.only(...d),f),s.not=(...d)=>{const m=r(e.breakpoints.not(...d),f);return m.includes("not all and")?m.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):m}}const l={},u=s=>(a(l,s),l);return a(u),{...e,containerQueries:u}}const Qo={xs:0,sm:600,md:900,lg:1200,xl:1536},Vh={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Qo[e]}px)`},ox={containerQueries:e=>({up:r=>{let a=typeof r=="number"?r:Qo[r]||r;return typeof a=="number"&&(a=`${a}px`),e?`@container ${e} (min-width:${a})`:`@container (min-width:${a})`}})};function hr(e,r,a){const l=e.theme||{};if(Array.isArray(r)){const s=l.breakpoints||Vh;return r.reduce((f,d,m)=>(f[s.up(s.keys[m])]=a(r[m]),f),{})}if(typeof r=="object"){const s=l.breakpoints||Vh;return Object.keys(r).reduce((f,d)=>{if(ix(s.keys,d)){const m=ax(l.containerQueries?l:ox,d);m&&(f[m]=a(r[d],d))}else if(Object.keys(s.values||Qo).includes(d)){const m=s.up(d);f[m]=a(r[d],d)}else{const m=d;f[m]=r[m]}return f},{})}return a(r)}function ux(e={}){var a;return((a=e.keys)==null?void 0:a.reduce((l,u)=>{const s=e.up(u);return l[s]={},l},{}))||{}}function sx(e,r){return e.reduce((a,l)=>{const u=a[l];return(!u||Object.keys(u).length===0)&&delete a[l],a},r)}function Ko(e,r,a=!0){if(!r||typeof r!="string")return null;if(e&&e.vars&&a){const l=`vars.${r}`.split(".").reduce((u,s)=>u&&u[s]?u[s]:null,e);if(l!=null)return l}return r.split(".").reduce((l,u)=>l&&l[u]!=null?l[u]:null,e)}function Zo(e,r,a,l=a){let u;return typeof e=="function"?u=e(a):Array.isArray(e)?u=e[a]||l:u=Ko(e,a)||l,r&&(u=r(u,l,e)),u}function wt(e){const{prop:r,cssProperty:a=e.prop,themeKey:l,transform:u}=e,s=f=>{if(f[r]==null)return null;const d=f[r],m=f.theme,h=Ko(m,l)||{};return hr(f,d,y=>{let v=Zo(h,u,y);return y===v&&typeof y=="string"&&(v=Zo(h,u,`${r}${y==="default"?"":pt(y)}`,y)),a===!1?v:{[a]:v}})};return s.propTypes={},s.filterProps=[r],s}function cx(e){const r={};return a=>(r[a]===void 0&&(r[a]=e(a)),r[a])}const fx={m:"margin",p:"padding"},dx={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$h={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},px=cx(e=>{if(e.length>2)if($h[e])e=$h[e];else return[e];const[r,a]=e.split(""),l=fx[r],u=dx[a]||"";return Array.isArray(u)?u.map(s=>l+s):[l+u]}),lc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],oc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...lc,...oc];function el(e,r,a,l){const u=Ko(e,r,!0)??a;return typeof u=="number"||typeof u=="string"?s=>typeof s=="string"?s:typeof u=="string"?`calc(${s} * ${u})`:u*s:Array.isArray(u)?s=>{if(typeof s=="string")return s;const f=Math.abs(s),d=u[f];return s>=0?d:typeof d=="number"?-d:`-${d}`}:typeof u=="function"?u:()=>{}}function uc(e){return el(e,"spacing",8)}function tl(e,r){return typeof r=="string"||r==null?r:e(r)}function hx(e,r){return a=>e.reduce((l,u)=>(l[u]=tl(r,a),l),{})}function mx(e,r,a,l){if(!r.includes(a))return null;const u=px(a),s=hx(u,l),f=e[a];return hr(e,f,s)}function qh(e,r){const a=uc(e.theme);return Object.keys(e).map(l=>mx(e,r,l,a)).reduce(Ja,{})}function St(e){return qh(e,lc)}St.propTypes={},St.filterProps=lc;function vt(e){return qh(e,oc)}vt.propTypes={},vt.filterProps=oc;function Wo(...e){const r=e.reduce((l,u)=>(u.filterProps.forEach(s=>{l[s]=u}),l),{}),a=l=>Object.keys(l).reduce((u,s)=>r[s]?Ja(u,r[s](l)):u,{});return a.propTypes={},a.filterProps=e.reduce((l,u)=>l.concat(u.filterProps),[]),a}function An(e){return typeof e!="number"?e:`${e}px solid`}function kn(e,r){return wt({prop:e,themeKey:"borders",transform:r})}const gx=kn("border",An),yx=kn("borderTop",An),bx=kn("borderRight",An),Sx=kn("borderBottom",An),vx=kn("borderLeft",An),xx=kn("borderColor"),Ex=kn("borderTopColor"),Cx=kn("borderRightColor"),Tx=kn("borderBottomColor"),wx=kn("borderLeftColor"),Ax=kn("outline",An),kx=kn("outlineColor"),Jo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const r=el(e.theme,"shape.borderRadius",4),a=l=>({borderRadius:tl(r,l)});return hr(e,e.borderRadius,a)}return null};Jo.propTypes={},Jo.filterProps=["borderRadius"],Wo(gx,yx,bx,Sx,vx,xx,Ex,Cx,Tx,wx,Jo,Ax,kx);const eu=e=>{if(e.gap!==void 0&&e.gap!==null){const r=el(e.theme,"spacing",8),a=l=>({gap:tl(r,l)});return hr(e,e.gap,a)}return null};eu.propTypes={},eu.filterProps=["gap"];const tu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const r=el(e.theme,"spacing",8),a=l=>({columnGap:tl(r,l)});return hr(e,e.columnGap,a)}return null};tu.propTypes={},tu.filterProps=["columnGap"];const nu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const r=el(e.theme,"spacing",8),a=l=>({rowGap:tl(r,l)});return hr(e,e.rowGap,a)}return null};nu.propTypes={},nu.filterProps=["rowGap"];const Rx=wt({prop:"gridColumn"}),Ox=wt({prop:"gridRow"}),Mx=wt({prop:"gridAutoFlow"}),_x=wt({prop:"gridAutoColumns"}),Dx=wt({prop:"gridAutoRows"}),zx=wt({prop:"gridTemplateColumns"}),Nx=wt({prop:"gridTemplateRows"}),Bx=wt({prop:"gridTemplateAreas"}),Lx=wt({prop:"gridArea"});Wo(eu,tu,nu,Rx,Ox,Mx,_x,Dx,zx,Nx,Bx,Lx);function Xi(e,r){return r==="grey"?r:e}const Ux=wt({prop:"color",themeKey:"palette",transform:Xi}),jx=wt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Xi}),Hx=wt({prop:"backgroundColor",themeKey:"palette",transform:Xi});Wo(Ux,jx,Hx);function hn(e){return e<=1&&e!==0?`${e*100}%`:e}const Ix=wt({prop:"width",transform:hn}),sc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const r=a=>{var u,s,f,d,m;const l=((f=(s=(u=e.theme)==null?void 0:u.breakpoints)==null?void 0:s.values)==null?void 0:f[a])||Qo[a];return l?((m=(d=e.theme)==null?void 0:d.breakpoints)==null?void 0:m.unit)!=="px"?{maxWidth:`${l}${e.theme.breakpoints.unit}`}:{maxWidth:l}:{maxWidth:hn(a)}};return hr(e,e.maxWidth,r)}return null};sc.filterProps=["maxWidth"];const Vx=wt({prop:"minWidth",transform:hn}),$x=wt({prop:"height",transform:hn}),qx=wt({prop:"maxHeight",transform:hn}),Gx=wt({prop:"minHeight",transform:hn});wt({prop:"size",cssProperty:"width",transform:hn}),wt({prop:"size",cssProperty:"height",transform:hn});const Yx=wt({prop:"boxSizing"});Wo(Ix,sc,Vx,$x,qx,Gx,Yx);const nl={border:{themeKey:"borders",transform:An},borderTop:{themeKey:"borders",transform:An},borderRight:{themeKey:"borders",transform:An},borderBottom:{themeKey:"borders",transform:An},borderLeft:{themeKey:"borders",transform:An},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:An},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Jo},color:{themeKey:"palette",transform:Xi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Xi},backgroundColor:{themeKey:"palette",transform:Xi},p:{style:vt},pt:{style:vt},pr:{style:vt},pb:{style:vt},pl:{style:vt},px:{style:vt},py:{style:vt},padding:{style:vt},paddingTop:{style:vt},paddingRight:{style:vt},paddingBottom:{style:vt},paddingLeft:{style:vt},paddingX:{style:vt},paddingY:{style:vt},paddingInline:{style:vt},paddingInlineStart:{style:vt},paddingInlineEnd:{style:vt},paddingBlock:{style:vt},paddingBlockStart:{style:vt},paddingBlockEnd:{style:vt},m:{style:St},mt:{style:St},mr:{style:St},mb:{style:St},ml:{style:St},mx:{style:St},my:{style:St},margin:{style:St},marginTop:{style:St},marginRight:{style:St},marginBottom:{style:St},marginLeft:{style:St},marginX:{style:St},marginY:{style:St},marginInline:{style:St},marginInlineStart:{style:St},marginInlineEnd:{style:St},marginBlock:{style:St},marginBlockStart:{style:St},marginBlockEnd:{style:St},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:eu},rowGap:{style:nu},columnGap:{style:tu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:hn},maxWidth:{style:sc},minWidth:{transform:hn},height:{transform:hn},maxHeight:{transform:hn},minHeight:{transform:hn},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 Fx(...e){const r=e.reduce((l,u)=>l.concat(Object.keys(u)),[]),a=new Set(r);return e.every(l=>a.size===Object.keys(l).length)}function Px(e,r){return typeof e=="function"?e(r):e}function Xx(){function e(a,l,u,s){const f={[a]:l,theme:u},d=s[a];if(!d)return{[a]:l};const{cssProperty:m=a,themeKey:h,transform:g,style:y}=d;if(l==null)return null;if(h==="typography"&&l==="inherit")return{[a]:l};const v=Ko(u,h)||{};return y?y(f):hr(f,l,A=>{let T=Zo(v,g,A);return A===T&&typeof A=="string"&&(T=Zo(v,g,`${a}${A==="default"?"":pt(A)}`,A)),m===!1?T:{[m]:T}})}function r(a){const{sx:l,theme:u={}}=a||{};if(!l)return null;const s=u.unstable_sxConfig??nl;function f(d){let m=d;if(typeof d=="function")m=d(u);else if(typeof d!="object")return d;if(!m)return null;const h=ux(u.breakpoints),g=Object.keys(h);let y=h;return Object.keys(m).forEach(v=>{const S=Px(m[v],u);if(S!=null)if(typeof S=="object")if(s[v])y=Ja(y,e(v,S,u,s));else{const A=hr({theme:u},S,T=>({[v]:T}));Fx(A,S)?y[v]=r({sx:S,theme:u}):y=Ja(y,A)}else y=Ja(y,e(v,S,u,s))}),rx(u,sx(g,y))}return Array.isArray(l)?l.map(f):f(l)}return r}const hi=Xx();hi.filterProps=["sx"];const Qx=e=>{var l;const r={systemProps:{},otherProps:{}},a=((l=e==null?void 0:e.theme)==null?void 0:l.unstable_sxConfig)??nl;return Object.keys(e).forEach(u=>{a[u]?r.systemProps[u]=e[u]:r.otherProps[u]=e[u]}),r};function Kx(e){const{sx:r,...a}=e,{systemProps:l,otherProps:u}=Qx(a);let s;return Array.isArray(r)?s=[l,...r]:typeof r=="function"?s=(...f)=>{const d=r(...f);return rr(d)?{...l,...d}:l}:s={...l,...r},{...u,sx:s}}function Zx(e){return e==null||Object.keys(e).length===0}function Gh(e){const{styles:r,defaultTheme:a={}}=e,l=typeof r=="function"?u=>r(Zx(u)?a:u):r;return ce.jsx(zv,{styles:l})}/**
|
|
58
58
|
* @mui/styled-engine v6.1.6
|
|
59
59
|
*
|
|
60
60
|
* @license MIT
|
|
61
61
|
* This source code is licensed under the MIT license found in the
|
|
62
62
|
* LICENSE file in the root directory of this source tree.
|
|
63
|
-
*/function
|
|
63
|
+
*/function Wx(e,r){return tt(e,r)}function Jx(e,r){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=r(e.__emotion_styles))}const Yh=[];function Fh(e){return Yh[0]=e,Fo(Yh)}const eE=e=>{const r=Object.keys(e).map(a=>({key:a,val:e[a]}))||[];return r.sort((a,l)=>a.val-l.val),r.reduce((a,l)=>({...a,[l.key]:l.val}),{})};function tE(e){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:a="px",step:l=5,...u}=e,s=eE(r),f=Object.keys(s);function d(v){return`@media (min-width:${typeof r[v]=="number"?r[v]:v}${a})`}function m(v){return`@media (max-width:${(typeof r[v]=="number"?r[v]:v)-l/100}${a})`}function h(v,S){const A=f.indexOf(S);return`@media (min-width:${typeof r[v]=="number"?r[v]:v}${a}) and (max-width:${(A!==-1&&typeof r[f[A]]=="number"?r[f[A]]:S)-l/100}${a})`}function g(v){return f.indexOf(v)+1<f.length?h(v,f[f.indexOf(v)+1]):d(v)}function y(v){const S=f.indexOf(v);return S===0?d(f[1]):S===f.length-1?m(f[S]):h(v,f[f.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:f,values:s,up:d,down:m,between:h,only:g,not:y,unit:a,...u}}const nE={borderRadius:4};function Ph(e=8,r=uc({spacing:e})){if(e.mui)return e;const a=(...l)=>(l.length===0?[1]:l).map(s=>{const f=r(s);return typeof f=="number"?`${f}px`:f}).join(" ");return a.mui=!0,a}function rE(e,r){var l;const a=this;if(a.vars){if(!((l=a.colorSchemes)!=null&&l[e])||typeof a.getColorSchemeSelector!="function")return{};let u=a.getColorSchemeSelector(e);return u==="&"?r:((u.includes("data-")||u.includes("."))&&(u=`*:where(${u.replace(/\s*&$/,"")}) &`),{[u]:r})}return a.palette.mode===e?r:{}}function cc(e={},...r){const{breakpoints:a={},palette:l={},spacing:u,shape:s={},...f}=e,d=tE(a),m=Ph(u);let h=rn({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...l},spacing:m,shape:{...nE,...s}},f);return h=lx(h),h.applyStyles=rE,h=r.reduce((g,y)=>rn(g,y),h),h.unstable_sxConfig={...nl,...f==null?void 0:f.unstable_sxConfig},h.unstable_sx=function(y){return hi({sx:y,theme:this})},h}function iE(e){return Object.keys(e).length===0}function Xh(e=null){const r=M.useContext(Za);return!r||iE(r)?e:r}const aE=cc();function Qh(e=aE){return Xh(e)}function lE({styles:e,themeId:r,defaultTheme:a={}}){const l=Qh(a),u=typeof e=="function"?e(r&&l[r]||l):e;return ce.jsx(Gh,{styles:u})}function Kh(e){const{variants:r,...a}=e,l={variants:r,style:Fh(a),isProcessed:!0};return l.style===a||r&&r.forEach(u=>{typeof u.style!="function"&&(u.style=Fh(u.style))}),l}const oE=cc();function fc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function uE(e){return e?(r,a)=>a[e]:null}function sE(e,r,a){e.theme=dE(e.theme)?a:e.theme[r]||e.theme}function ru(e,r){const a=typeof r=="function"?r(e):r;if(Array.isArray(a))return a.flatMap(l=>ru(e,l));if(Array.isArray(a==null?void 0:a.variants)){let l;if(a.isProcessed)l=a.style;else{const{variants:u,...s}=a;l=s}return Zh(e,a.variants,[l])}return a!=null&&a.isProcessed?a.style:a}function Zh(e,r,a=[]){var u;let l;e:for(let s=0;s<r.length;s+=1){const f=r[s];if(typeof f.props=="function"){if(l??(l={...e,...e.ownerState,ownerState:e.ownerState}),!f.props(l))continue}else for(const d in f.props)if(e[d]!==f.props[d]&&((u=e.ownerState)==null?void 0:u[d])!==f.props[d])continue e;typeof f.style=="function"?(l??(l={...e,...e.ownerState,ownerState:e.ownerState}),a.push(f.style(l))):a.push(f.style)}return a}function cE(e={}){const{themeId:r,defaultTheme:a=oE,rootShouldForwardProp:l=fc,slotShouldForwardProp:u=fc}=e;function s(d){sE(d,r,a)}return(d,m={})=>{Jx(d,R=>R.filter(_=>_!==hi));const{name:h,slot:g,skipVariantsResolver:y,skipSx:v,overridesResolver:S=uE(hE(g)),...A}=m,T=y!==void 0?y:g&&g!=="Root"&&g!=="root"||!1,N=v||!1;let w=fc;g==="Root"||g==="root"?w=l:g?w=u:pE(d)&&(w=void 0);const B=Wx(d,{shouldForwardProp:w,label:fE(),...A}),k=R=>{if(typeof R=="function"&&R.__emotion_real!==R)return function(H){return ru(H,R)};if(rr(R)){const _=Kh(R);return _.variants?function(ne){return ru(ne,_)}:_.style}return R},z=(...R)=>{const _=[],H=R.map(k),ne=[];if(_.push(s),h&&S&&ne.push(function(Y){var q,Z;const P=(Z=(q=Y.theme.components)==null?void 0:q[h])==null?void 0:Z.styleOverrides;if(!P)return null;const ee={};for(const Q in P)ee[Q]=ru(Y,P[Q]);return S(Y,ee)}),h&&!T&&ne.push(function(Y){var ee,q;const F=Y.theme,P=(q=(ee=F==null?void 0:F.components)==null?void 0:ee[h])==null?void 0:q.variants;return P?Zh(Y,P):null}),N||ne.push(hi),Array.isArray(H[0])){const I=H.shift(),Y=new Array(_.length).fill(""),F=new Array(ne.length).fill("");let P;P=[...Y,...I,...F],P.raw=[...Y,...I.raw,...F],_.unshift(P)}const V=[..._,...H,...ne],E=B(...V);return d.muiName&&(E.muiName=d.muiName),E};return B.withConfig&&(z.withConfig=B.withConfig),z}}function fE(e,r){return void 0}function dE(e){for(const r in e)return!1;return!0}function pE(e){return typeof e=="string"&&e.charCodeAt(0)>96}function hE(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function dc(e,r=0,a=1){return Yv(e,r,a)}function mE(e){e=e.slice(1);const r=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let a=e.match(r);return a&&a[0].length===1&&(a=a.map(l=>l+l)),a?`rgb${a.length===4?"a":""}(${a.map((l,u)=>u<3?parseInt(l,16):Math.round(parseInt(l,16)/255*1e3)/1e3).join(", ")})`:""}function Hr(e){if(e.type)return e;if(e.charAt(0)==="#")return Hr(mE(e));const r=e.indexOf("("),a=e.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(a))throw new Error(Ur(9,e));let l=e.substring(r+1,e.length-1),u;if(a==="color"){if(l=l.split(" "),u=l.shift(),l.length===4&&l[3].charAt(0)==="/"&&(l[3]=l[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(u))throw new Error(Ur(10,u))}else l=l.split(",");return l=l.map(s=>parseFloat(s)),{type:a,values:l,colorSpace:u}}const gE=e=>{const r=Hr(e);return r.values.slice(0,3).map((a,l)=>r.type.includes("hsl")&&l!==0?`${a}%`:a).join(" ")},rl=(e,r)=>{try{return gE(e)}catch{return e}};function iu(e){const{type:r,colorSpace:a}=e;let{values:l}=e;return r.includes("rgb")?l=l.map((u,s)=>s<3?parseInt(u,10):u):r.includes("hsl")&&(l[1]=`${l[1]}%`,l[2]=`${l[2]}%`),r.includes("color")?l=`${a} ${l.join(" ")}`:l=`${l.join(", ")}`,`${r}(${l})`}function Wh(e){e=Hr(e);const{values:r}=e,a=r[0],l=r[1]/100,u=r[2]/100,s=l*Math.min(u,1-u),f=(h,g=(h+a/30)%12)=>u-s*Math.max(Math.min(g-3,9-g,1),-1);let d="rgb";const m=[Math.round(f(0)*255),Math.round(f(8)*255),Math.round(f(4)*255)];return e.type==="hsla"&&(d+="a",m.push(r[3])),iu({type:d,values:m})}function pc(e){e=Hr(e);let r=e.type==="hsl"||e.type==="hsla"?Hr(Wh(e)).values:e.values;return r=r.map(a=>(e.type!=="color"&&(a/=255),a<=.03928?a/12.92:((a+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function yE(e,r){const a=pc(e),l=pc(r);return(Math.max(a,l)+.05)/(Math.min(a,l)+.05)}function il(e,r){return e=Hr(e),r=dc(r),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${r}`:e.values[3]=r,iu(e)}function au(e,r,a){try{return il(e,r)}catch{return e}}function al(e,r){if(e=Hr(e),r=dc(r),e.type.includes("hsl"))e.values[2]*=1-r;else if(e.type.includes("rgb")||e.type.includes("color"))for(let a=0;a<3;a+=1)e.values[a]*=1-r;return iu(e)}function it(e,r,a){try{return al(e,r)}catch{return e}}function ll(e,r){if(e=Hr(e),r=dc(r),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*r;else if(e.type.includes("rgb"))for(let a=0;a<3;a+=1)e.values[a]+=(255-e.values[a])*r;else if(e.type.includes("color"))for(let a=0;a<3;a+=1)e.values[a]+=(1-e.values[a])*r;return iu(e)}function at(e,r,a){try{return ll(e,r)}catch{return e}}function bE(e,r=.15){return pc(e)>.5?al(e,r):ll(e,r)}function lu(e,r,a){try{return bE(e,r)}catch{return e}}const Jh=M.createContext(null);function hc(){return M.useContext(Jh)}const SE=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function vE(e,r){return typeof r=="function"?r(e):{...e,...r}}function xE(e){const{children:r,theme:a}=e,l=hc(),u=M.useMemo(()=>{const s=l===null?{...a}:vE(l,a);return s!=null&&(s[SE]=l!==null),s},[a,l]);return ce.jsx(Jh.Provider,{value:u,children:r})}const em=M.createContext();function EE({value:e,...r}){return ce.jsx(em.Provider,{value:e??!0,...r})}const CE=()=>M.useContext(em)??!1,tm=M.createContext(void 0);function TE({value:e,children:r}){return ce.jsx(tm.Provider,{value:e,children:r})}function wE(e){const{theme:r,name:a,props:l}=e;if(!r||!r.components||!r.components[a])return l;const u=r.components[a];return u.defaultProps?ic(u.defaultProps,l):!u.styleOverrides&&!u.variants?ic(u,l):l}function AE({props:e,name:r}){const a=M.useContext(tm);return wE({props:e,name:r,theme:{components:a}})}const nm={};function rm(e,r,a,l=!1){return M.useMemo(()=>{const u=e&&r[e]||r;if(typeof a=="function"){const s=a(u),f=e?{...r,[e]:s}:s;return l?()=>f:f}return e?{...r,[e]:a}:{...r,...a}},[e,r,a,l])}function im(e){const{children:r,theme:a,themeId:l}=e,u=Xh(nm),s=hc()||nm,f=rm(l,u,a),d=rm(l,s,a,!0),m=f.direction==="rtl";return ce.jsx(xE,{theme:d,children:ce.jsx(Za.Provider,{value:f,children:ce.jsx(EE,{value:m,children:ce.jsx(TE,{value:f==null?void 0:f.components,children:r})})})})}const am={theme:void 0};function kE(e){let r,a;return function(u){let s=r;return(s===void 0||u.theme!==a)&&(am.theme=u.theme,s=Kh(e(am)),r=s,a=u.theme),s}}const mc="mode",gc="color-scheme",RE="data-color-scheme";function OE(e){const{defaultMode:r="system",defaultLightColorScheme:a="light",defaultDarkColorScheme:l="dark",modeStorageKey:u=mc,colorSchemeStorageKey:s=gc,attribute:f=RE,colorSchemeNode:d="document.documentElement",nonce:m}=e;let h="",g=f;if(f==="class"&&(g=".%s"),f==="data"&&(g="[data-%s]"),g.startsWith(".")){const v=g.substring(1);h+=`${d}.classList.remove('${v}'.replace('%s', light), '${v}'.replace('%s', dark));
|
|
64
64
|
${d}.classList.add('${v}'.replace('%s', colorScheme));`}const y=g.match(/\[([^\]]+)\]/);if(y){const[v,S]=y[1].split("=");S||(h+=`${d}.removeAttribute('${v}'.replace('%s', light));
|
|
65
65
|
${d}.removeAttribute('${v}'.replace('%s', dark));`),h+=`
|
|
66
66
|
${d}.setAttribute('${v}'.replace('%s', colorScheme), ${S?`${S}.replace('%s', colorScheme)`:'""'});`}else h+=`${d}.setAttribute('${g}', colorScheme);`;return ce.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
67
67
|
try {
|
|
68
68
|
let colorScheme = '';
|
|
69
69
|
const mode = localStorage.getItem('${u}') || '${r}';
|
|
70
|
-
const dark = localStorage.getItem('${s}-dark') || '${
|
|
71
|
-
const light = localStorage.getItem('${s}-light') || '${
|
|
70
|
+
const dark = localStorage.getItem('${s}-dark') || '${l}';
|
|
71
|
+
const light = localStorage.getItem('${s}-light') || '${a}';
|
|
72
72
|
if (mode === 'system') {
|
|
73
73
|
// handle system mode
|
|
74
74
|
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
@@ -87,21 +87,21 @@ try {
|
|
|
87
87
|
if (colorScheme) {
|
|
88
88
|
${h}
|
|
89
89
|
}
|
|
90
|
-
} catch(e){}})();`}},"mui-color-scheme-init")}function Wh(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Jh(e,r){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return r("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return r("dark")}function AE(e){return Jh(e,r=>{if(r==="light")return e.lightColorScheme;if(r==="dark")return e.darkColorScheme})}function hc(e,r){if(typeof window>"u")return;let l;try{l=localStorage.getItem(e)||void 0,l||localStorage.setItem(e,r)}catch{}return l||r}function kE(e){const{defaultMode:r="light",defaultLightColorScheme:l,defaultDarkColorScheme:a,supportedColorSchemes:u=[],modeStorageKey:s=dc,colorSchemeStorageKey:f=pc,storageWindow:d=typeof window>"u"?void 0:window}=e,m=u.join(","),h=u.length>1,[g,y]=M.useState(()=>{const k=hc(s,r),z=hc(`${f}-light`,l),A=hc(`${f}-dark`,a);return{mode:k,systemMode:Wh(k),lightColorScheme:z,darkColorScheme:A}}),[,v]=M.useState(!1),S=M.useRef(!1);M.useEffect(()=>{h&&v(!0),S.current=!0},[h]);const R=AE(g),T=M.useCallback(k=>{y(z=>{if(k===z.mode)return z;const A=k??r;try{localStorage.setItem(s,A)}catch{}return{...z,mode:A,systemMode:Wh(A)}})},[s,r]),N=M.useCallback(k=>{k?typeof k=="string"?k&&!m.includes(k)?console.error(`\`${k}\` does not exist in \`theme.colorSchemes\`.`):y(z=>{const A={...z};return Jh(z,_=>{try{localStorage.setItem(`${f}-${_}`,k)}catch{}_==="light"&&(A.lightColorScheme=k),_==="dark"&&(A.darkColorScheme=k)}),A}):y(z=>{const A={...z},_=k.light===null?l:k.light,H=k.dark===null?a:k.dark;if(_)if(!m.includes(_))console.error(`\`${_}\` does not exist in \`theme.colorSchemes\`.`);else{A.lightColorScheme=_;try{localStorage.setItem(`${f}-light`,_)}catch{}}if(H)if(!m.includes(H))console.error(`\`${H}\` does not exist in \`theme.colorSchemes\`.`);else{A.darkColorScheme=H;try{localStorage.setItem(`${f}-dark`,H)}catch{}}return A}):y(z=>{try{localStorage.setItem(`${f}-light`,l),localStorage.setItem(`${f}-dark`,a)}catch{}return{...z,lightColorScheme:l,darkColorScheme:a}})},[m,f,l,a]),w=M.useCallback(k=>{g.mode==="system"&&y(z=>{const A=k!=null&&k.matches?"dark":"light";return z.systemMode===A?z:{...z,systemMode:A}})},[g.mode]),B=M.useRef(w);return B.current=w,M.useEffect(()=>{if(typeof window.matchMedia!="function"||!h)return;const k=(...A)=>B.current(...A),z=window.matchMedia("(prefers-color-scheme: dark)");return z.addListener(k),k(z),()=>{z.removeListener(k)}},[h]),M.useEffect(()=>{if(d&&h){const k=z=>{const A=z.newValue;typeof z.key=="string"&&z.key.startsWith(f)&&(!A||m.match(A))&&(z.key.endsWith("light")&&N({light:A}),z.key.endsWith("dark")&&N({dark:A})),z.key===s&&(!A||["light","dark","system"].includes(A))&&T(A||r)};return d.addEventListener("storage",k),()=>{d.removeEventListener("storage",k)}}},[N,T,s,f,m,r,d,h]),{...g,mode:S.current||!h?g.mode:void 0,systemMode:S.current||!h?g.systemMode:void 0,colorScheme:S.current||!h?R:void 0,setMode:T,setColorScheme:N}}const RE="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function OE(e){const{themeId:r,theme:l={},modeStorageKey:a=dc,colorSchemeStorageKey:u=pc,disableTransitionOnChange:s=!1,defaultColorScheme:f,resolveTheme:d}=e,m={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},h=M.createContext(void 0),g=()=>M.useContext(h)||m;function y(T){var gn,xe,ze,Rt,X;const{children:N,theme:w,modeStorageKey:B=a,colorSchemeStorageKey:k=u,disableTransitionOnChange:z=s,storageWindow:A=typeof window>"u"?void 0:window,documentNode:_=typeof document>"u"?void 0:document,colorSchemeNode:H=typeof document>"u"?void 0:document.documentElement,disableNestedContext:ne=!1,disableStyleSheetGeneration:V=!1,defaultMode:E="system"}=T,I=M.useRef(!1),Y=fc(),F=M.useContext(h),P=!!F&&!ne,ee=M.useMemo(()=>w||(typeof l=="function"?l():l),[w]),$=ee[r],{colorSchemes:Z={},components:Q={},cssVarPrefix:ue,...x}=$||ee,K=Object.keys(Z).filter(le=>!!Z[le]).join(","),se=M.useMemo(()=>K.split(","),[K]),O=typeof f=="string"?f:f.light,ie=typeof f=="string"?f:f.dark,ye=Z[O]&&Z[ie]?E:((xe=(gn=Z[x.defaultColorScheme])==null?void 0:gn.palette)==null?void 0:xe.mode)||((ze=x.palette)==null?void 0:ze.mode),{mode:he,setMode:Be,systemMode:Ce,lightColorScheme:ke,darkColorScheme:pe,colorScheme:De,setColorScheme:me}=kE({supportedColorSchemes:se,defaultLightColorScheme:O,defaultDarkColorScheme:ie,modeStorageKey:B,colorSchemeStorageKey:k,defaultMode:ye,storageWindow:A});let ge=he,fe=De;P&&(ge=F.mode,fe=F.colorScheme);const Ee=fe||x.defaultColorScheme,qe=((Rt=x.generateThemeVars)==null?void 0:Rt.call(x))||x.vars,Le={...x,components:Q,colorSchemes:Z,cssVarPrefix:ue,vars:qe};if(typeof Le.generateSpacing=="function"&&(Le.spacing=Le.generateSpacing()),Ee){const le=Z[Ee];le&&typeof le=="object"&&Object.keys(le).forEach(de=>{le[de]&&typeof le[de]=="object"?Le[de]={...Le[de],...le[de]}:Le[de]=le[de]})}const Oe=x.colorSchemeSelector;M.useEffect(()=>{if(fe&&H&&Oe&&Oe!=="media"){const le=Oe;let de=Oe;if(le==="class"&&(de=".%s"),le==="data"&&(de="[data-%s]"),le!=null&&le.startsWith("data-")&&!le.includes("%s")&&(de=`[${le}="%s"]`),de.startsWith("."))H.classList.remove(...se.map(Ae=>de.substring(1).replace("%s",Ae))),H.classList.add(de.substring(1).replace("%s",fe));else{const Ae=de.replace("%s",fe).match(/\[([^\]]+)\]/);if(Ae){const[Ve,Ue]=Ae[1].split("=");Ue||se.forEach(on=>{H.removeAttribute(Ve.replace(fe,on))}),H.setAttribute(Ve,Ue?Ue.replace(/"|'/g,""):"")}else H.setAttribute(de,fe)}}},[fe,Oe,H,se]),M.useEffect(()=>{let le;if(z&&I.current&&_){const de=_.createElement("style");de.appendChild(_.createTextNode(RE)),_.head.appendChild(de),window.getComputedStyle(_.body),le=setTimeout(()=>{_.head.removeChild(de)},1)}return()=>{clearTimeout(le)}},[fe,z,_]),M.useEffect(()=>(I.current=!0,()=>{I.current=!1}),[]);const Pe=M.useMemo(()=>({allColorSchemes:se,colorScheme:fe,darkColorScheme:pe,lightColorScheme:ke,mode:ge,setColorScheme:me,setMode:Be,systemMode:Ce}),[se,fe,pe,ke,ge,me,Be,Ce]);let ht=!0;(V||x.cssVariables===!1||P&&(Y==null?void 0:Y.cssVarPrefix)===ue)&&(ht=!1);const Qt=ce.jsxs(M.Fragment,{children:[ce.jsx(Kh,{themeId:$?r:void 0,theme:d?d(Le):Le,children:N}),ht&&ce.jsx(Lh,{styles:((X=Le.generateStyleSheets)==null?void 0:X.call(Le))||[]})]});return P?Qt:ce.jsx(h.Provider,{value:Pe,children:Qt})}const v=typeof f=="string"?f:f.light,S=typeof f=="string"?f:f.dark;return{CssVarsProvider:y,useColorScheme:g,getInitColorSchemeScript:T=>wE({colorSchemeStorageKey:u,defaultLightColorScheme:v,defaultDarkColorScheme:S,modeStorageKey:a,...T})}}function ME(e=""){function r(...a){if(!a.length)return"";const u=a[0];return typeof u=="string"&&!u.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}-`:""}${u}${r(...a.slice(1))})`:`, ${u}`}return(a,...u)=>`var(--${e?`${e}-`:""}${a}${r(...u)})`}const em=(e,r,l,a=[])=>{let u=e;r.forEach((s,f)=>{f===r.length-1?Array.isArray(u)?u[Number(s)]=l:u&&typeof u=="object"&&(u[s]=l):u&&typeof u=="object"&&(u[s]||(u[s]=a.includes(s)?[]:{}),u=u[s])})},_E=(e,r,l)=>{function a(u,s=[],f=[]){Object.entries(u).forEach(([d,m])=>{(!l||!l([...s,d]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?a(m,[...s,d],Array.isArray(m)?[...f,d]:f):r([...s,d],m,f))})}a(e)},DE=(e,r)=>typeof r=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(a=>e.includes(a))||e[e.length-1].toLowerCase().includes("opacity")?r:`${r}px`:r;function mc(e,r){const{prefix:l,shouldSkipGeneratingVar:a}=r||{},u={},s={},f={};return _E(e,(d,m,h)=>{if((typeof m=="string"||typeof m=="number")&&(!a||!a(d,m))){const g=`--${l?`${l}-`:""}${d.join("-")}`,y=DE(d,m);Object.assign(u,{[g]:y}),em(s,d,`var(${g})`,h),em(f,d,`var(${g}, ${y})`,h)}},d=>d[0]==="vars"),{css:u,vars:s,varsWithDefaults:f}}function zE(e,r={}){const{getSelector:l=N,disableCssColorScheme:a,colorSchemeSelector:u}=r,{colorSchemes:s={},components:f,defaultColorScheme:d="light",...m}=e,{vars:h,css:g,varsWithDefaults:y}=mc(m,r);let v=y;const S={},{[d]:R,...T}=s;if(Object.entries(T||{}).forEach(([k,z])=>{const{vars:A,css:_,varsWithDefaults:H}=mc(z,r);v=nn(v,H),S[k]={css:_,vars:A}}),R){const{css:k,vars:z,varsWithDefaults:A}=mc(R,r);v=nn(v,A),S[d]={css:k,vars:z}}function N(k,z){var _,H;let A=u;if(u==="class"&&(A=".%s"),u==="data"&&(A="[data-%s]"),u!=null&&u.startsWith("data-")&&!u.includes("%s")&&(A=`[${u}="%s"]`),k){if(A==="media")return e.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${((H=(_=s[k])==null?void 0:_.palette)==null?void 0:H.mode)||k})`]:{":root":z}};if(A)return e.defaultColorScheme===k?`:root, ${A.replace("%s",String(k))}`:A.replace("%s",String(k))}return":root"}return{vars:v,generateThemeVars:()=>{let k={...h};return Object.entries(S).forEach(([,{vars:z}])=>{k=nn(k,z)}),k},generateStyleSheets:()=>{var ne,V;const k=[],z=e.defaultColorScheme||"light";function A(E,I){Object.keys(I).length&&k.push(typeof E=="string"?{[E]:{...I}}:E)}A(l(void 0,{...g}),g);const{[z]:_,...H}=S;if(_){const{css:E}=_,I=(V=(ne=s[z])==null?void 0:ne.palette)==null?void 0:V.mode,Y=!a&&I?{colorScheme:I,...E}:{...E};A(l(z,{...Y}),Y)}return Object.entries(H).forEach(([E,{css:I}])=>{var P,ee;const Y=(ee=(P=s[E])==null?void 0:P.palette)==null?void 0:ee.mode,F=!a&&Y?{colorScheme:Y,...I}:{...I};A(l(E,{...F}),F)}),k}}}function NE(e){return function(l){return e==="media"?`@media (prefers-color-scheme: ${l})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${l}"] &`:e==="class"?`.${l} &`:e==="data"?`[data-${l}] &`:`${e.replace("%s",l)} &`:"&"}}const ra={black:"#000",white:"#fff"},BE={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"},Yi={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Fi={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ia={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Pi={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Xi={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Qi={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function tm(){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:ra.white,default:ra.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 LE=tm();function nm(){return{text:{primary:ra.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:ra.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 rm=nm();function im(e,r,l,a){const u=a.light||a,s=a.dark||a*1.5;e[r]||(e.hasOwnProperty(l)?e[r]=e[l]:r==="light"?e.light=na(e.main,u):r==="dark"&&(e.dark=ta(e.main,s)))}function UE(e="light"){return e==="dark"?{main:Pi[200],light:Pi[50],dark:Pi[400]}:{main:Pi[700],light:Pi[400],dark:Pi[800]}}function jE(e="light"){return e==="dark"?{main:Yi[200],light:Yi[50],dark:Yi[400]}:{main:Yi[500],light:Yi[300],dark:Yi[700]}}function HE(e="light"){return e==="dark"?{main:Fi[500],light:Fi[300],dark:Fi[700]}:{main:Fi[700],light:Fi[400],dark:Fi[800]}}function IE(e="light"){return e==="dark"?{main:Xi[400],light:Xi[300],dark:Xi[700]}:{main:Xi[700],light:Xi[500],dark:Xi[900]}}function VE(e="light"){return e==="dark"?{main:Qi[400],light:Qi[300],dark:Qi[700]}:{main:Qi[800],light:Qi[500],dark:Qi[900]}}function qE(e="light"){return e==="dark"?{main:ia[400],light:ia[300],dark:ia[700]}:{main:"#ed6c02",light:ia[500],dark:ia[900]}}function gc(e){const{mode:r="light",contrastThreshold:l=3,tonalOffset:a=.2,...u}=e,s=e.primary||UE(r),f=e.secondary||jE(r),d=e.error||HE(r),m=e.info||IE(r),h=e.success||VE(r),g=e.warning||qE(r);function y(T){return pE(T,rm.text.primary)>=l?rm.text.primary:LE.text.primary}const v=({color:T,name:N,mainShade:w=500,lightShade:B=300,darkShade:k=700})=>{if(T={...T},!T.main&&T[w]&&(T.main=T[w]),!T.hasOwnProperty("main"))throw new Error(Nr(11,N?` (${N})`:"",w));if(typeof T.main!="string")throw new Error(Nr(12,N?` (${N})`:"",JSON.stringify(T.main)));return im(T,"light",B,a),im(T,"dark",k,a),T.contrastText||(T.contrastText=y(T.main)),T};let S;return r==="light"?S=tm():r==="dark"&&(S=nm()),nn({common:{...ra},mode:r,primary:v({color:s,name:"primary"}),secondary:v({color:f,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:d,name:"error"}),warning:v({color:g,name:"warning"}),info:v({color:m,name:"info"}),success:v({color:h,name:"success"}),grey:BE,contrastThreshold:l,getContrastText:y,augmentColor:v,tonalOffset:a,...S},u)}function $E(e){const r={};return Object.entries(e).forEach(a=>{const[u,s]=a;typeof s=="object"&&(r[u]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),r}function GE(e,r){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...r}}function YE(e){return Math.round(e*1e5)/1e5}const lm={textTransform:"uppercase"},am='"Roboto", "Helvetica", "Arial", sans-serif';function om(e,r){const{fontFamily:l=am,fontSize:a=14,fontWeightLight:u=300,fontWeightRegular:s=400,fontWeightMedium:f=500,fontWeightBold:d=700,htmlFontSize:m=16,allVariants:h,pxToRem:g,...y}=typeof r=="function"?r(e):r,v=a/14,S=g||(N=>`${N/m*v}rem`),R=(N,w,B,k,z)=>({fontFamily:l,fontWeight:N,fontSize:S(w),lineHeight:B,...l===am?{letterSpacing:`${YE(k/w)}em`}:{},...z,...h}),T={h1:R(u,96,1.167,-1.5),h2:R(u,60,1.2,-.5),h3:R(s,48,1.167,0),h4:R(s,34,1.235,.25),h5:R(s,24,1.334,0),h6:R(f,20,1.6,.15),subtitle1:R(s,16,1.75,.15),subtitle2:R(f,14,1.57,.1),body1:R(s,16,1.5,.15),body2:R(s,14,1.43,.15),button:R(f,14,1.75,.4,lm),caption:R(s,12,1.66,.4),overline:R(s,12,2.66,1,lm),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return nn({htmlFontSize:m,pxToRem:S,fontFamily:l,fontSize:a,fontWeightLight:u,fontWeightRegular:s,fontWeightMedium:f,fontWeightBold:d,...T},y,{clone:!1})}const FE=.2,PE=.14,XE=.12;function pt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${FE})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${PE})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${XE})`].join(",")}const QE=["none",pt(0,2,1,-1,0,1,1,0,0,1,3,0),pt(0,3,1,-2,0,2,2,0,0,1,5,0),pt(0,3,3,-2,0,3,4,0,0,1,8,0),pt(0,2,4,-1,0,4,5,0,0,1,10,0),pt(0,3,5,-1,0,5,8,0,0,1,14,0),pt(0,3,5,-1,0,6,10,0,0,1,18,0),pt(0,4,5,-2,0,7,10,1,0,2,16,1),pt(0,5,5,-3,0,8,10,1,0,3,14,2),pt(0,5,6,-3,0,9,12,1,0,3,16,2),pt(0,6,6,-3,0,10,14,1,0,4,18,3),pt(0,6,7,-4,0,11,15,1,0,4,20,3),pt(0,7,8,-4,0,12,17,2,0,5,22,4),pt(0,7,8,-4,0,13,19,2,0,5,24,4),pt(0,7,9,-4,0,14,21,2,0,5,26,4),pt(0,8,9,-5,0,15,22,2,0,6,28,5),pt(0,8,10,-5,0,16,24,2,0,6,30,5),pt(0,8,11,-5,0,17,26,2,0,6,32,5),pt(0,9,11,-5,0,18,28,2,0,7,34,6),pt(0,9,12,-6,0,19,29,2,0,7,36,6),pt(0,10,13,-6,0,20,31,3,0,8,38,7),pt(0,10,13,-6,0,21,33,3,0,8,40,7),pt(0,10,14,-6,0,22,35,3,0,8,42,7),pt(0,11,14,-7,0,23,36,3,0,9,44,8),pt(0,11,15,-7,0,24,38,3,0,9,46,8)],KE={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)"},ZE={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function um(e){return`${Math.round(e)}ms`}function WE(e){if(!e)return 0;const r=e/36;return Math.min(Math.round((4+15*r**.25+r/5)*10),3e3)}function JE(e){const r={...KE,...e.easing},l={...ZE,...e.duration};return{getAutoHeightDuration:WE,create:(u=["all"],s={})=>{const{duration:f=l.standard,easing:d=r.easeInOut,delay:m=0,...h}=s;return(Array.isArray(u)?u:[u]).map(g=>`${g} ${typeof f=="string"?f:um(f)} ${d} ${typeof m=="string"?m:um(m)}`).join(",")},...e,easing:r,duration:l}}const e2={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function t2(e){return tr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function sm(e={}){const r={...e};function l(a){const u=Object.entries(a);for(let s=0;s<u.length;s++){const[f,d]=u[s];!t2(d)||f.startsWith("unstable_")?delete a[f]:tr(d)&&(a[f]={...d},l(a[f]))}}return l(r),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
90
|
+
} catch(e){}})();`}},"mui-color-scheme-init")}function lm(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function om(e,r){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return r("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return r("dark")}function ME(e){return om(e,r=>{if(r==="light")return e.lightColorScheme;if(r==="dark")return e.darkColorScheme})}function yc(e,r){if(typeof window>"u")return;let a;try{a=localStorage.getItem(e)||void 0,a||localStorage.setItem(e,r)}catch{}return a||r}function _E(e){const{defaultMode:r="light",defaultLightColorScheme:a,defaultDarkColorScheme:l,supportedColorSchemes:u=[],modeStorageKey:s=mc,colorSchemeStorageKey:f=gc,storageWindow:d=typeof window>"u"?void 0:window}=e,m=u.join(","),h=u.length>1,[g,y]=M.useState(()=>{const k=yc(s,r),z=yc(`${f}-light`,a),R=yc(`${f}-dark`,l);return{mode:k,systemMode:lm(k),lightColorScheme:z,darkColorScheme:R}}),[,v]=M.useState(!1),S=M.useRef(!1);M.useEffect(()=>{h&&v(!0),S.current=!0},[h]);const A=ME(g),T=M.useCallback(k=>{y(z=>{if(k===z.mode)return z;const R=k??r;try{localStorage.setItem(s,R)}catch{}return{...z,mode:R,systemMode:lm(R)}})},[s,r]),N=M.useCallback(k=>{k?typeof k=="string"?k&&!m.includes(k)?console.error(`\`${k}\` does not exist in \`theme.colorSchemes\`.`):y(z=>{const R={...z};return om(z,_=>{try{localStorage.setItem(`${f}-${_}`,k)}catch{}_==="light"&&(R.lightColorScheme=k),_==="dark"&&(R.darkColorScheme=k)}),R}):y(z=>{const R={...z},_=k.light===null?a:k.light,H=k.dark===null?l:k.dark;if(_)if(!m.includes(_))console.error(`\`${_}\` does not exist in \`theme.colorSchemes\`.`);else{R.lightColorScheme=_;try{localStorage.setItem(`${f}-light`,_)}catch{}}if(H)if(!m.includes(H))console.error(`\`${H}\` does not exist in \`theme.colorSchemes\`.`);else{R.darkColorScheme=H;try{localStorage.setItem(`${f}-dark`,H)}catch{}}return R}):y(z=>{try{localStorage.setItem(`${f}-light`,a),localStorage.setItem(`${f}-dark`,l)}catch{}return{...z,lightColorScheme:a,darkColorScheme:l}})},[m,f,a,l]),w=M.useCallback(k=>{g.mode==="system"&&y(z=>{const R=k!=null&&k.matches?"dark":"light";return z.systemMode===R?z:{...z,systemMode:R}})},[g.mode]),B=M.useRef(w);return B.current=w,M.useEffect(()=>{if(typeof window.matchMedia!="function"||!h)return;const k=(...R)=>B.current(...R),z=window.matchMedia("(prefers-color-scheme: dark)");return z.addListener(k),k(z),()=>{z.removeListener(k)}},[h]),M.useEffect(()=>{if(d&&h){const k=z=>{const R=z.newValue;typeof z.key=="string"&&z.key.startsWith(f)&&(!R||m.match(R))&&(z.key.endsWith("light")&&N({light:R}),z.key.endsWith("dark")&&N({dark:R})),z.key===s&&(!R||["light","dark","system"].includes(R))&&T(R||r)};return d.addEventListener("storage",k),()=>{d.removeEventListener("storage",k)}}},[N,T,s,f,m,r,d,h]),{...g,mode:S.current||!h?g.mode:void 0,systemMode:S.current||!h?g.systemMode:void 0,colorScheme:S.current||!h?A:void 0,setMode:T,setColorScheme:N}}const DE="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function zE(e){const{themeId:r,theme:a={},modeStorageKey:l=mc,colorSchemeStorageKey:u=gc,disableTransitionOnChange:s=!1,defaultColorScheme:f,resolveTheme:d}=e,m={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},h=M.createContext(void 0),g=()=>M.useContext(h)||m;function y(T){var yn,Ce,Be,Mt,X;const{children:N,theme:w,modeStorageKey:B=l,colorSchemeStorageKey:k=u,disableTransitionOnChange:z=s,storageWindow:R=typeof window>"u"?void 0:window,documentNode:_=typeof document>"u"?void 0:document,colorSchemeNode:H=typeof document>"u"?void 0:document.documentElement,disableNestedContext:ne=!1,disableStyleSheetGeneration:V=!1,defaultMode:E="system"}=T,I=M.useRef(!1),Y=hc(),F=M.useContext(h),P=!!F&&!ne,ee=M.useMemo(()=>w||(typeof a=="function"?a():a),[w]),q=ee[r],{colorSchemes:Z={},components:Q={},cssVarPrefix:ue,...x}=q||ee,K=Object.keys(Z).filter(ae=>!!Z[ae]).join(","),se=M.useMemo(()=>K.split(","),[K]),O=typeof f=="string"?f:f.light,ie=typeof f=="string"?f:f.dark,ye=Z[O]&&Z[ie]?E:((Ce=(yn=Z[x.defaultColorScheme])==null?void 0:yn.palette)==null?void 0:Ce.mode)||((Be=x.palette)==null?void 0:Be.mode),{mode:he,setMode:Ue,systemMode:we,lightColorScheme:Oe,darkColorScheme:pe,colorScheme:Ne,setColorScheme:me}=_E({supportedColorSchemes:se,defaultLightColorScheme:O,defaultDarkColorScheme:ie,modeStorageKey:B,colorSchemeStorageKey:k,defaultMode:ye,storageWindow:R});let ge=he,fe=Ne;P&&(ge=F.mode,fe=F.colorScheme);const Te=fe||x.defaultColorScheme,Ge=((Mt=x.generateThemeVars)==null?void 0:Mt.call(x))||x.vars,je={...x,components:Q,colorSchemes:Z,cssVarPrefix:ue,vars:Ge};if(typeof je.generateSpacing=="function"&&(je.spacing=je.generateSpacing()),Te){const ae=Z[Te];ae&&typeof ae=="object"&&Object.keys(ae).forEach(de=>{ae[de]&&typeof ae[de]=="object"?je[de]={...je[de],...ae[de]}:je[de]=ae[de]})}const _e=x.colorSchemeSelector;M.useEffect(()=>{if(fe&&H&&_e&&_e!=="media"){const ae=_e;let de=_e;if(ae==="class"&&(de=".%s"),ae==="data"&&(de="[data-%s]"),ae!=null&&ae.startsWith("data-")&&!ae.includes("%s")&&(de=`[${ae}="%s"]`),de.startsWith("."))H.classList.remove(...se.map(Re=>de.substring(1).replace("%s",Re))),H.classList.add(de.substring(1).replace("%s",fe));else{const Re=de.replace("%s",fe).match(/\[([^\]]+)\]/);if(Re){const[qe,He]=Re[1].split("=");He||se.forEach(un=>{H.removeAttribute(qe.replace(fe,un))}),H.setAttribute(qe,He?He.replace(/"|'/g,""):"")}else H.setAttribute(de,fe)}}},[fe,_e,H,se]),M.useEffect(()=>{let ae;if(z&&I.current&&_){const de=_.createElement("style");de.appendChild(_.createTextNode(DE)),_.head.appendChild(de),window.getComputedStyle(_.body),ae=setTimeout(()=>{_.head.removeChild(de)},1)}return()=>{clearTimeout(ae)}},[fe,z,_]),M.useEffect(()=>(I.current=!0,()=>{I.current=!1}),[]);const Ke=M.useMemo(()=>({allColorSchemes:se,colorScheme:fe,darkColorScheme:pe,lightColorScheme:Oe,mode:ge,setColorScheme:me,setMode:Ue,systemMode:we}),[se,fe,pe,Oe,ge,me,Ue,we]);let gt=!0;(V||x.cssVariables===!1||P&&(Y==null?void 0:Y.cssVarPrefix)===ue)&&(gt=!1);const Kt=ce.jsxs(M.Fragment,{children:[ce.jsx(im,{themeId:q?r:void 0,theme:d?d(je):je,children:N}),gt&&ce.jsx(Gh,{styles:((X=je.generateStyleSheets)==null?void 0:X.call(je))||[]})]});return P?Kt:ce.jsx(h.Provider,{value:Ke,children:Kt})}const v=typeof f=="string"?f:f.light,S=typeof f=="string"?f:f.dark;return{CssVarsProvider:y,useColorScheme:g,getInitColorSchemeScript:T=>OE({colorSchemeStorageKey:u,defaultLightColorScheme:v,defaultDarkColorScheme:S,modeStorageKey:l,...T})}}function NE(e=""){function r(...l){if(!l.length)return"";const u=l[0];return typeof u=="string"&&!u.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}-`:""}${u}${r(...l.slice(1))})`:`, ${u}`}return(l,...u)=>`var(--${e?`${e}-`:""}${l}${r(...u)})`}const um=(e,r,a,l=[])=>{let u=e;r.forEach((s,f)=>{f===r.length-1?Array.isArray(u)?u[Number(s)]=a:u&&typeof u=="object"&&(u[s]=a):u&&typeof u=="object"&&(u[s]||(u[s]=l.includes(s)?[]:{}),u=u[s])})},BE=(e,r,a)=>{function l(u,s=[],f=[]){Object.entries(u).forEach(([d,m])=>{(!a||!a([...s,d]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?l(m,[...s,d],Array.isArray(m)?[...f,d]:f):r([...s,d],m,f))})}l(e)},LE=(e,r)=>typeof r=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(l=>e.includes(l))||e[e.length-1].toLowerCase().includes("opacity")?r:`${r}px`:r;function bc(e,r){const{prefix:a,shouldSkipGeneratingVar:l}=r||{},u={},s={},f={};return BE(e,(d,m,h)=>{if((typeof m=="string"||typeof m=="number")&&(!l||!l(d,m))){const g=`--${a?`${a}-`:""}${d.join("-")}`,y=LE(d,m);Object.assign(u,{[g]:y}),um(s,d,`var(${g})`,h),um(f,d,`var(${g}, ${y})`,h)}},d=>d[0]==="vars"),{css:u,vars:s,varsWithDefaults:f}}function UE(e,r={}){const{getSelector:a=N,disableCssColorScheme:l,colorSchemeSelector:u}=r,{colorSchemes:s={},components:f,defaultColorScheme:d="light",...m}=e,{vars:h,css:g,varsWithDefaults:y}=bc(m,r);let v=y;const S={},{[d]:A,...T}=s;if(Object.entries(T||{}).forEach(([k,z])=>{const{vars:R,css:_,varsWithDefaults:H}=bc(z,r);v=rn(v,H),S[k]={css:_,vars:R}}),A){const{css:k,vars:z,varsWithDefaults:R}=bc(A,r);v=rn(v,R),S[d]={css:k,vars:z}}function N(k,z){var _,H;let R=u;if(u==="class"&&(R=".%s"),u==="data"&&(R="[data-%s]"),u!=null&&u.startsWith("data-")&&!u.includes("%s")&&(R=`[${u}="%s"]`),k){if(R==="media")return e.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${((H=(_=s[k])==null?void 0:_.palette)==null?void 0:H.mode)||k})`]:{":root":z}};if(R)return e.defaultColorScheme===k?`:root, ${R.replace("%s",String(k))}`:R.replace("%s",String(k))}return":root"}return{vars:v,generateThemeVars:()=>{let k={...h};return Object.entries(S).forEach(([,{vars:z}])=>{k=rn(k,z)}),k},generateStyleSheets:()=>{var ne,V;const k=[],z=e.defaultColorScheme||"light";function R(E,I){Object.keys(I).length&&k.push(typeof E=="string"?{[E]:{...I}}:E)}R(a(void 0,{...g}),g);const{[z]:_,...H}=S;if(_){const{css:E}=_,I=(V=(ne=s[z])==null?void 0:ne.palette)==null?void 0:V.mode,Y=!l&&I?{colorScheme:I,...E}:{...E};R(a(z,{...Y}),Y)}return Object.entries(H).forEach(([E,{css:I}])=>{var P,ee;const Y=(ee=(P=s[E])==null?void 0:P.palette)==null?void 0:ee.mode,F=!l&&Y?{colorScheme:Y,...I}:{...I};R(a(E,{...F}),F)}),k}}}function jE(e){return function(a){return e==="media"?`@media (prefers-color-scheme: ${a})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${a}"] &`:e==="class"?`.${a} &`:e==="data"?`[data-${a}] &`:`${e.replace("%s",a)} &`:"&"}}const ol={black:"#000",white:"#fff"},HE={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"},Qi={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Ki={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ul={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Zi={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Wi={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ji={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function sm(){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:ol.white,default:ol.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 IE=sm();function cm(){return{text:{primary:ol.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:ol.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 fm=cm();function dm(e,r,a,l){const u=l.light||l,s=l.dark||l*1.5;e[r]||(e.hasOwnProperty(a)?e[r]=e[a]:r==="light"?e.light=ll(e.main,u):r==="dark"&&(e.dark=al(e.main,s)))}function VE(e="light"){return e==="dark"?{main:Zi[200],light:Zi[50],dark:Zi[400]}:{main:Zi[700],light:Zi[400],dark:Zi[800]}}function $E(e="light"){return e==="dark"?{main:Qi[200],light:Qi[50],dark:Qi[400]}:{main:Qi[500],light:Qi[300],dark:Qi[700]}}function qE(e="light"){return e==="dark"?{main:Ki[500],light:Ki[300],dark:Ki[700]}:{main:Ki[700],light:Ki[400],dark:Ki[800]}}function GE(e="light"){return e==="dark"?{main:Wi[400],light:Wi[300],dark:Wi[700]}:{main:Wi[700],light:Wi[500],dark:Wi[900]}}function YE(e="light"){return e==="dark"?{main:Ji[400],light:Ji[300],dark:Ji[700]}:{main:Ji[800],light:Ji[500],dark:Ji[900]}}function FE(e="light"){return e==="dark"?{main:ul[400],light:ul[300],dark:ul[700]}:{main:"#ed6c02",light:ul[500],dark:ul[900]}}function Sc(e){const{mode:r="light",contrastThreshold:a=3,tonalOffset:l=.2,...u}=e,s=e.primary||VE(r),f=e.secondary||$E(r),d=e.error||qE(r),m=e.info||GE(r),h=e.success||YE(r),g=e.warning||FE(r);function y(T){return yE(T,fm.text.primary)>=a?fm.text.primary:IE.text.primary}const v=({color:T,name:N,mainShade:w=500,lightShade:B=300,darkShade:k=700})=>{if(T={...T},!T.main&&T[w]&&(T.main=T[w]),!T.hasOwnProperty("main"))throw new Error(Ur(11,N?` (${N})`:"",w));if(typeof T.main!="string")throw new Error(Ur(12,N?` (${N})`:"",JSON.stringify(T.main)));return dm(T,"light",B,l),dm(T,"dark",k,l),T.contrastText||(T.contrastText=y(T.main)),T};let S;return r==="light"?S=sm():r==="dark"&&(S=cm()),rn({common:{...ol},mode:r,primary:v({color:s,name:"primary"}),secondary:v({color:f,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:d,name:"error"}),warning:v({color:g,name:"warning"}),info:v({color:m,name:"info"}),success:v({color:h,name:"success"}),grey:HE,contrastThreshold:a,getContrastText:y,augmentColor:v,tonalOffset:l,...S},u)}function PE(e){const r={};return Object.entries(e).forEach(l=>{const[u,s]=l;typeof s=="object"&&(r[u]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),r}function XE(e,r){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...r}}function QE(e){return Math.round(e*1e5)/1e5}const pm={textTransform:"uppercase"},hm='"Roboto", "Helvetica", "Arial", sans-serif';function mm(e,r){const{fontFamily:a=hm,fontSize:l=14,fontWeightLight:u=300,fontWeightRegular:s=400,fontWeightMedium:f=500,fontWeightBold:d=700,htmlFontSize:m=16,allVariants:h,pxToRem:g,...y}=typeof r=="function"?r(e):r,v=l/14,S=g||(N=>`${N/m*v}rem`),A=(N,w,B,k,z)=>({fontFamily:a,fontWeight:N,fontSize:S(w),lineHeight:B,...a===hm?{letterSpacing:`${QE(k/w)}em`}:{},...z,...h}),T={h1:A(u,96,1.167,-1.5),h2:A(u,60,1.2,-.5),h3:A(s,48,1.167,0),h4:A(s,34,1.235,.25),h5:A(s,24,1.334,0),h6:A(f,20,1.6,.15),subtitle1:A(s,16,1.75,.15),subtitle2:A(f,14,1.57,.1),body1:A(s,16,1.5,.15),body2:A(s,14,1.43,.15),button:A(f,14,1.75,.4,pm),caption:A(s,12,1.66,.4),overline:A(s,12,2.66,1,pm),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return rn({htmlFontSize:m,pxToRem:S,fontFamily:a,fontSize:l,fontWeightLight:u,fontWeightRegular:s,fontWeightMedium:f,fontWeightBold:d,...T},y,{clone:!1})}const KE=.2,ZE=.14,WE=.12;function mt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${KE})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ZE})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${WE})`].join(",")}const JE=["none",mt(0,2,1,-1,0,1,1,0,0,1,3,0),mt(0,3,1,-2,0,2,2,0,0,1,5,0),mt(0,3,3,-2,0,3,4,0,0,1,8,0),mt(0,2,4,-1,0,4,5,0,0,1,10,0),mt(0,3,5,-1,0,5,8,0,0,1,14,0),mt(0,3,5,-1,0,6,10,0,0,1,18,0),mt(0,4,5,-2,0,7,10,1,0,2,16,1),mt(0,5,5,-3,0,8,10,1,0,3,14,2),mt(0,5,6,-3,0,9,12,1,0,3,16,2),mt(0,6,6,-3,0,10,14,1,0,4,18,3),mt(0,6,7,-4,0,11,15,1,0,4,20,3),mt(0,7,8,-4,0,12,17,2,0,5,22,4),mt(0,7,8,-4,0,13,19,2,0,5,24,4),mt(0,7,9,-4,0,14,21,2,0,5,26,4),mt(0,8,9,-5,0,15,22,2,0,6,28,5),mt(0,8,10,-5,0,16,24,2,0,6,30,5),mt(0,8,11,-5,0,17,26,2,0,6,32,5),mt(0,9,11,-5,0,18,28,2,0,7,34,6),mt(0,9,12,-6,0,19,29,2,0,7,36,6),mt(0,10,13,-6,0,20,31,3,0,8,38,7),mt(0,10,13,-6,0,21,33,3,0,8,40,7),mt(0,10,14,-6,0,22,35,3,0,8,42,7),mt(0,11,14,-7,0,23,36,3,0,9,44,8),mt(0,11,15,-7,0,24,38,3,0,9,46,8)],e2={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)"},t2={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function gm(e){return`${Math.round(e)}ms`}function n2(e){if(!e)return 0;const r=e/36;return Math.min(Math.round((4+15*r**.25+r/5)*10),3e3)}function r2(e){const r={...e2,...e.easing},a={...t2,...e.duration};return{getAutoHeightDuration:n2,create:(u=["all"],s={})=>{const{duration:f=a.standard,easing:d=r.easeInOut,delay:m=0,...h}=s;return(Array.isArray(u)?u:[u]).map(g=>`${g} ${typeof f=="string"?f:gm(f)} ${d} ${typeof m=="string"?m:gm(m)}`).join(",")},...e,easing:r,duration:a}}const i2={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function a2(e){return rr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function ym(e={}){const r={...e};function a(l){const u=Object.entries(l);for(let s=0;s<u.length;s++){const[f,d]=u[s];!a2(d)||f.startsWith("unstable_")?delete l[f]:rr(d)&&(l[f]={...d},a(l[f]))}}return a(r),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
91
91
|
|
|
92
92
|
const theme = ${JSON.stringify(r,null,2)};
|
|
93
93
|
|
|
94
94
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
95
95
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
96
96
|
|
|
97
|
-
export default theme;`}function yc(e={},...r){const{breakpoints:l,mixins:a={},spacing:u,palette:s={},transitions:f={},typography:d={},shape:m,...h}=e;if(e.vars)throw new Error(Nr(20));const g=gc(s),y=oc(e);let v=nn(y,{mixins:GE(y.breakpoints,a),palette:g,shadows:QE.slice(),typography:om(g,d),transitions:JE(f),zIndex:{...e2}});return v=nn(v,h),v=r.reduce((S,R)=>nn(S,R),v),v.unstable_sxConfig={...Wl,...h==null?void 0:h.unstable_sxConfig},v.unstable_sx=function(R){return ci({sx:R,theme:this})},v.toRuntimeSource=sm,v}function bc(e){let r;return e<1?r=5.11916*e**2:r=4.5*Math.log(e+1)+2,Math.round(r*10)/1e3}const n2=[...Array(25)].map((e,r)=>{if(r===0)return"none";const l=bc(r);return`linear-gradient(rgba(255 255 255 / ${l}), rgba(255 255 255 / ${l}))`});function cm(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function fm(e){return e==="dark"?n2:[]}function r2(e){const{palette:r={mode:"light"},opacity:l,overlays:a,...u}=e,s=gc(r);return{palette:s,opacity:{...cm(s.mode),...l},overlays:a||fm(s.mode),...u}}function i2(e){var r;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((r=e[1])!=null&&r.match(/(mode|contrastThreshold|tonalOffset)/))}const l2=e=>[...[...Array(25)].map((r,l)=>`--${e?`${e}-`:""}overlays-${l}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],a2=e=>(r,l)=>{const a=e.rootSelector||":root",u=e.colorSchemeSelector;let s=u;if(u==="class"&&(s=".%s"),u==="data"&&(s="[data-%s]"),u!=null&&u.startsWith("data-")&&!u.includes("%s")&&(s=`[${u}="%s"]`),e.defaultColorScheme===r){if(r==="dark"){const f={};return l2(e.cssVarPrefix).forEach(d=>{f[d]=l[d],delete l[d]}),s==="media"?{[a]:l,"@media (prefers-color-scheme: dark)":{[a]:f}}:s?{[s.replace("%s",r)]:f,[`${a}, ${s.replace("%s",r)}`]:l}:{[a]:{...l,...f}}}if(s&&s!=="media")return`${a}, ${s.replace("%s",String(r))}`}else if(r){if(s==="media")return{[`@media (prefers-color-scheme: ${String(r)})`]:{[a]:l}};if(s)return s.replace("%s",String(r))}return a};function o2(e,r){r.forEach(l=>{e[l]||(e[l]={})})}function W(e,r,l){!e[r]&&l&&(e[r]=l)}function la(e){return!e||!e.startsWith("hsl")?e:Gh(e)}function pr(e,r){`${r}Channel`in e||(e[`${r}Channel`]=Jl(la(e[r])))}function u2(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const nr=e=>{try{return e()}catch{}},s2=(e="mui")=>ME(e);function Sc(e,r,l,a){if(!r)return;r=r===!0?{}:r;const u=a==="dark"?"dark":"light";if(!l){e[a]=r2({...r,palette:{mode:u,...r==null?void 0:r.palette}});return}const{palette:s,...f}=yc({...l,palette:{mode:u,...r==null?void 0:r.palette}});return e[a]={...r,palette:s,opacity:{...cm(u),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||fm(u)},f}function c2(e={},...r){const{colorSchemes:l={light:!0},defaultColorScheme:a,disableCssColorScheme:u=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:f=i2,colorSchemeSelector:d=l.light&&l.dark?"media":void 0,rootSelector:m=":root",...h}=e,g=Object.keys(l)[0],y=a||(l.light&&g!=="light"?"light":g),v=s2(s),{[y]:S,light:R,dark:T,...N}=l,w={...N};let B=S;if((y==="dark"&&!("dark"in l)||y==="light"&&!("light"in l))&&(B=!0),!B)throw new Error(Nr(21,y));const k=Sc(w,B,h,y);R&&!w.light&&Sc(w,R,void 0,"light"),T&&!w.dark&&Sc(w,T,void 0,"dark");let z={defaultColorScheme:y,...k,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:m,getCssVar:v,colorSchemes:w,font:{...$E(k.typography),...k.font},spacing:u2(h.spacing)};Object.keys(z.colorSchemes).forEach(V=>{const E=z.colorSchemes[V].palette,I=Y=>{const F=Y.split("-"),P=F[1],ee=F[2];return v(Y,E[P][ee])};if(E.mode==="light"&&(W(E.common,"background","#fff"),W(E.common,"onBackground","#000")),E.mode==="dark"&&(W(E.common,"background","#000"),W(E.common,"onBackground","#fff")),o2(E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),E.mode==="light"){W(E.Alert,"errorColor",rt(E.error.light,.6)),W(E.Alert,"infoColor",rt(E.info.light,.6)),W(E.Alert,"successColor",rt(E.success.light,.6)),W(E.Alert,"warningColor",rt(E.warning.light,.6)),W(E.Alert,"errorFilledBg",I("palette-error-main")),W(E.Alert,"infoFilledBg",I("palette-info-main")),W(E.Alert,"successFilledBg",I("palette-success-main")),W(E.Alert,"warningFilledBg",I("palette-warning-main")),W(E.Alert,"errorFilledColor",nr(()=>E.getContrastText(E.error.main))),W(E.Alert,"infoFilledColor",nr(()=>E.getContrastText(E.info.main))),W(E.Alert,"successFilledColor",nr(()=>E.getContrastText(E.success.main))),W(E.Alert,"warningFilledColor",nr(()=>E.getContrastText(E.warning.main))),W(E.Alert,"errorStandardBg",it(E.error.light,.9)),W(E.Alert,"infoStandardBg",it(E.info.light,.9)),W(E.Alert,"successStandardBg",it(E.success.light,.9)),W(E.Alert,"warningStandardBg",it(E.warning.light,.9)),W(E.Alert,"errorIconColor",I("palette-error-main")),W(E.Alert,"infoIconColor",I("palette-info-main")),W(E.Alert,"successIconColor",I("palette-success-main")),W(E.Alert,"warningIconColor",I("palette-warning-main")),W(E.AppBar,"defaultBg",I("palette-grey-100")),W(E.Avatar,"defaultBg",I("palette-grey-400")),W(E.Button,"inheritContainedBg",I("palette-grey-300")),W(E.Button,"inheritContainedHoverBg",I("palette-grey-A100")),W(E.Chip,"defaultBorder",I("palette-grey-400")),W(E.Chip,"defaultAvatarColor",I("palette-grey-700")),W(E.Chip,"defaultIconColor",I("palette-grey-700")),W(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),W(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),W(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),W(E.LinearProgress,"primaryBg",it(E.primary.main,.62)),W(E.LinearProgress,"secondaryBg",it(E.secondary.main,.62)),W(E.LinearProgress,"errorBg",it(E.error.main,.62)),W(E.LinearProgress,"infoBg",it(E.info.main,.62)),W(E.LinearProgress,"successBg",it(E.success.main,.62)),W(E.LinearProgress,"warningBg",it(E.warning.main,.62)),W(E.Skeleton,"bg",`rgba(${I("palette-text-primaryChannel")} / 0.11)`),W(E.Slider,"primaryTrack",it(E.primary.main,.62)),W(E.Slider,"secondaryTrack",it(E.secondary.main,.62)),W(E.Slider,"errorTrack",it(E.error.main,.62)),W(E.Slider,"infoTrack",it(E.info.main,.62)),W(E.Slider,"successTrack",it(E.success.main,.62)),W(E.Slider,"warningTrack",it(E.warning.main,.62));const Y=ru(E.background.default,.8);W(E.SnackbarContent,"bg",Y),W(E.SnackbarContent,"color",nr(()=>E.getContrastText(Y))),W(E.SpeedDialAction,"fabHoverBg",ru(E.background.paper,.15)),W(E.StepConnector,"border",I("palette-grey-400")),W(E.StepContent,"border",I("palette-grey-400")),W(E.Switch,"defaultColor",I("palette-common-white")),W(E.Switch,"defaultDisabledColor",I("palette-grey-100")),W(E.Switch,"primaryDisabledColor",it(E.primary.main,.62)),W(E.Switch,"secondaryDisabledColor",it(E.secondary.main,.62)),W(E.Switch,"errorDisabledColor",it(E.error.main,.62)),W(E.Switch,"infoDisabledColor",it(E.info.main,.62)),W(E.Switch,"successDisabledColor",it(E.success.main,.62)),W(E.Switch,"warningDisabledColor",it(E.warning.main,.62)),W(E.TableCell,"border",it(nu(E.divider,1),.88)),W(E.Tooltip,"bg",nu(E.grey[700],.92))}if(E.mode==="dark"){W(E.Alert,"errorColor",it(E.error.light,.6)),W(E.Alert,"infoColor",it(E.info.light,.6)),W(E.Alert,"successColor",it(E.success.light,.6)),W(E.Alert,"warningColor",it(E.warning.light,.6)),W(E.Alert,"errorFilledBg",I("palette-error-dark")),W(E.Alert,"infoFilledBg",I("palette-info-dark")),W(E.Alert,"successFilledBg",I("palette-success-dark")),W(E.Alert,"warningFilledBg",I("palette-warning-dark")),W(E.Alert,"errorFilledColor",nr(()=>E.getContrastText(E.error.dark))),W(E.Alert,"infoFilledColor",nr(()=>E.getContrastText(E.info.dark))),W(E.Alert,"successFilledColor",nr(()=>E.getContrastText(E.success.dark))),W(E.Alert,"warningFilledColor",nr(()=>E.getContrastText(E.warning.dark))),W(E.Alert,"errorStandardBg",rt(E.error.light,.9)),W(E.Alert,"infoStandardBg",rt(E.info.light,.9)),W(E.Alert,"successStandardBg",rt(E.success.light,.9)),W(E.Alert,"warningStandardBg",rt(E.warning.light,.9)),W(E.Alert,"errorIconColor",I("palette-error-main")),W(E.Alert,"infoIconColor",I("palette-info-main")),W(E.Alert,"successIconColor",I("palette-success-main")),W(E.Alert,"warningIconColor",I("palette-warning-main")),W(E.AppBar,"defaultBg",I("palette-grey-900")),W(E.AppBar,"darkBg",I("palette-background-paper")),W(E.AppBar,"darkColor",I("palette-text-primary")),W(E.Avatar,"defaultBg",I("palette-grey-600")),W(E.Button,"inheritContainedBg",I("palette-grey-800")),W(E.Button,"inheritContainedHoverBg",I("palette-grey-700")),W(E.Chip,"defaultBorder",I("palette-grey-700")),W(E.Chip,"defaultAvatarColor",I("palette-grey-300")),W(E.Chip,"defaultIconColor",I("palette-grey-300")),W(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),W(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),W(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),W(E.LinearProgress,"primaryBg",rt(E.primary.main,.5)),W(E.LinearProgress,"secondaryBg",rt(E.secondary.main,.5)),W(E.LinearProgress,"errorBg",rt(E.error.main,.5)),W(E.LinearProgress,"infoBg",rt(E.info.main,.5)),W(E.LinearProgress,"successBg",rt(E.success.main,.5)),W(E.LinearProgress,"warningBg",rt(E.warning.main,.5)),W(E.Skeleton,"bg",`rgba(${I("palette-text-primaryChannel")} / 0.13)`),W(E.Slider,"primaryTrack",rt(E.primary.main,.5)),W(E.Slider,"secondaryTrack",rt(E.secondary.main,.5)),W(E.Slider,"errorTrack",rt(E.error.main,.5)),W(E.Slider,"infoTrack",rt(E.info.main,.5)),W(E.Slider,"successTrack",rt(E.success.main,.5)),W(E.Slider,"warningTrack",rt(E.warning.main,.5));const Y=ru(E.background.default,.98);W(E.SnackbarContent,"bg",Y),W(E.SnackbarContent,"color",nr(()=>E.getContrastText(Y))),W(E.SpeedDialAction,"fabHoverBg",ru(E.background.paper,.15)),W(E.StepConnector,"border",I("palette-grey-600")),W(E.StepContent,"border",I("palette-grey-600")),W(E.Switch,"defaultColor",I("palette-grey-300")),W(E.Switch,"defaultDisabledColor",I("palette-grey-600")),W(E.Switch,"primaryDisabledColor",rt(E.primary.main,.55)),W(E.Switch,"secondaryDisabledColor",rt(E.secondary.main,.55)),W(E.Switch,"errorDisabledColor",rt(E.error.main,.55)),W(E.Switch,"infoDisabledColor",rt(E.info.main,.55)),W(E.Switch,"successDisabledColor",rt(E.success.main,.55)),W(E.Switch,"warningDisabledColor",rt(E.warning.main,.55)),W(E.TableCell,"border",rt(nu(E.divider,1),.68)),W(E.Tooltip,"bg",nu(E.grey[700],.92))}pr(E.background,"default"),pr(E.background,"paper"),pr(E.common,"background"),pr(E.common,"onBackground"),pr(E,"divider"),Object.keys(E).forEach(Y=>{const F=E[Y];F&&typeof F=="object"&&(F.main&&W(E[Y],"mainChannel",Jl(la(F.main))),F.light&&W(E[Y],"lightChannel",Jl(la(F.light))),F.dark&&W(E[Y],"darkChannel",Jl(la(F.dark))),F.contrastText&&W(E[Y],"contrastTextChannel",Jl(la(F.contrastText))),Y==="text"&&(pr(E[Y],"primary"),pr(E[Y],"secondary")),Y==="action"&&(F.active&&pr(E[Y],"active"),F.selected&&pr(E[Y],"selected")))})}),z=r.reduce((V,E)=>nn(V,E),z);const A={prefix:s,disableCssColorScheme:u,shouldSkipGeneratingVar:f,getSelector:a2(z)},{vars:_,generateThemeVars:H,generateStyleSheets:ne}=zE(z,A);return z.vars=_,Object.entries(z.colorSchemes[z.defaultColorScheme]).forEach(([V,E])=>{z[V]=E}),z.generateThemeVars=H,z.generateStyleSheets=ne,z.generateSpacing=function(){return Hh(h.spacing,lc(this))},z.getColorSchemeSelector=NE(d),z.spacing=z.generateSpacing(),z.shouldSkipGeneratingVar=f,z.unstable_sxConfig={...Wl,...h==null?void 0:h.unstable_sxConfig},z.unstable_sx=function(E){return ci({sx:E,theme:this})},z.toRuntimeSource=sm,z}function dm(e,r,l){e.colorSchemes&&l&&(e.colorSchemes[r]={...l!==!0&&l,palette:gc({...l===!0?{}:l.palette,mode:r})})}function iu(e={},...r){const{palette:l,cssVariables:a=!1,colorSchemes:u=l?void 0:{light:!0},defaultColorScheme:s=l==null?void 0:l.mode,...f}=e,d=s||"light",m=u==null?void 0:u[d],h={...u,...l?{[d]:{...typeof m!="boolean"&&m,palette:l}}:void 0};if(a===!1){if(!("colorSchemes"in e))return yc(e,...r);let g=l;"palette"in e||h[d]&&(h[d]!==!0?g=h[d].palette:d==="dark"&&(g={mode:"dark"}));const y=yc({...e,palette:g},...r);return y.defaultColorScheme=d,y.colorSchemes=h,y.palette.mode==="light"&&(y.colorSchemes.light={...h.light!==!0&&h.light,palette:y.palette},dm(y,"dark",h.dark)),y.palette.mode==="dark"&&(y.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:y.palette},dm(y,"light",h.light)),y}return!l&&!("light"in h)&&d==="light"&&(h.light=!0),c2({...f,colorSchemes:h,defaultColorScheme:d,...typeof a!="boolean"&&a},...r)}const vc=iu(),hr="$$material";function lu(){const e=Vh(vc);return e[hr]||e}function f2(e){return ce.jsx(nE,{...e,defaultTheme:vc,themeId:hr})}function d2(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const pm=e=>d2(e)&&e!=="classes",zt=aE({themeId:hr,defaultTheme:vc,rootShouldForwardProp:pm});function p2(e){return function(l){return ce.jsx(f2,{styles:typeof e=="function"?a=>e({theme:a,...l}):e})}}function h2(){return Fx}const Gn=CE;function Yn(e){return EE(e)}function hm(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function m2(e,r=!1){return e&&(hm(e.value)&&e.value!==""||r&&hm(e.defaultValue)&&e.defaultValue!=="")}function g2(e){return qn("MuiInputBase",e)}const xc=$n("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var mm;const y2=(e,r)=>{const{ownerState:l}=e;return[r.root,l.formControl&&r.formControl,l.startAdornment&&r.adornedStart,l.endAdornment&&r.adornedEnd,l.error&&r.error,l.size==="small"&&r.sizeSmall,l.multiline&&r.multiline,l.color&&r[`color${dt(l.color)}`],l.fullWidth&&r.fullWidth,l.hiddenLabel&&r.hiddenLabel]},b2=(e,r)=>{const{ownerState:l}=e;return[r.input,l.size==="small"&&r.inputSizeSmall,l.multiline&&r.inputMultiline,l.type==="search"&&r.inputTypeSearch,l.startAdornment&&r.inputAdornedStart,l.endAdornment&&r.inputAdornedEnd,l.hiddenLabel&&r.inputHiddenLabel]},S2=e=>{const{classes:r,color:l,disabled:a,error:u,endAdornment:s,focused:f,formControl:d,fullWidth:m,hiddenLabel:h,multiline:g,readOnly:y,size:v,startAdornment:S,type:R}=e,T={root:["root",`color${dt(l)}`,a&&"disabled",u&&"error",m&&"fullWidth",f&&"focused",d&&"formControl",v&&v!=="medium"&&`size${dt(v)}`,g&&"multiline",S&&"adornedStart",s&&"adornedEnd",h&&"hiddenLabel",y&&"readOnly"],input:["input",a&&"disabled",R==="search"&&"inputTypeSearch",g&&"inputMultiline",v==="small"&&"inputSizeSmall",h&&"inputHiddenLabel",S&&"inputAdornedStart",s&&"inputAdornedEnd",y&&"readOnly"]};return er(T,g2,r)},v2=zt("div",{name:"MuiInputBase",slot:"Root",overridesResolver:y2})(Gn(({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",[`&.${xc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:r})=>r.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:r,size:l})=>r.multiline&&l==="small",style:{paddingTop:1}},{props:({ownerState:r})=>r.fullWidth,style:{width:"100%"}}]}))),x2=zt("input",{name:"MuiInputBase",slot:"Input",overridesResolver:b2})(Gn(({theme:e})=>{const r=e.palette.mode==="light",l={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},a={opacity:"0 !important"},u=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.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":l,"&::-moz-placeholder":l,"&::-ms-input-placeholder":l,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${xc.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":u,"&:focus::-moz-placeholder":u,"&:focus::-ms-input-placeholder":u},[`&.${xc.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"}}]}})),gm=p2({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),E2=M.forwardRef(function(r,l){const a=Yn({props:r,name:"MuiInputBase"}),{"aria-describedby":u,autoComplete:s,autoFocus:f,className:d,color:m,components:h={},componentsProps:g={},defaultValue:y,disabled:v,disableInjectingGlobalStyles:S,endAdornment:R,error:T,fullWidth:N=!1,id:w,inputComponent:B="input",inputProps:k={},inputRef:z,margin:A,maxRows:_,minRows:H,multiline:ne=!1,name:V,onBlur:E,onChange:I,onClick:Y,onFocus:F,onKeyDown:P,onKeyUp:ee,placeholder:$,readOnly:Z,renderSuffix:Q,rows:ue,size:x,slotProps:K={},slots:se={},startAdornment:O,type:ie="text",value:ye,...he}=a,Be=k.value!=null?k.value:ye,{current:Ce}=M.useRef(Be!=null),ke=M.useRef(),pe=M.useCallback(Ue=>{},[]),De=Vn(ke,z,k.ref,pe),[me,ge]=M.useState(!1),fe=Wv(),Ee=Zv({props:a,muiFormControl:fe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ee.focused=fe?fe.focused:me,M.useEffect(()=>{!fe&&v&&me&&(ge(!1),E&&E())},[fe,v,me,E]);const qe=fe&&fe.onFilled,Le=fe&&fe.onEmpty,Oe=M.useCallback(Ue=>{m2(Ue)?qe&&qe():Le&&Le()},[qe,Le]);qi(()=>{Ce&&Oe({value:Be})},[Be,Oe,Ce]);const Pe=Ue=>{F&&F(Ue),k.onFocus&&k.onFocus(Ue),fe&&fe.onFocus?fe.onFocus(Ue):ge(!0)},ht=Ue=>{E&&E(Ue),k.onBlur&&k.onBlur(Ue),fe&&fe.onBlur?fe.onBlur(Ue):ge(!1)},Qt=(Ue,...on)=>{if(!Ce){const Ut=Ue.target||ke.current;if(Ut==null)throw new Error(Nr(1));Oe({value:Ut.value})}k.onChange&&k.onChange(Ue,...on),I&&I(Ue,...on)};M.useEffect(()=>{Oe(ke.current)},[]);const gn=Ue=>{ke.current&&Ue.currentTarget===Ue.target&&ke.current.focus(),Y&&Y(Ue)};let xe=B,ze=k;ne&&xe==="input"&&(ue?ze={type:void 0,minRows:ue,maxRows:ue,...ze}:ze={type:void 0,maxRows:_,minRows:H,...ze},xe=Kv);const Rt=Ue=>{Oe(Ue.animationName==="mui-auto-fill-cancel"?ke.current:{value:"x"})};M.useEffect(()=>{fe&&fe.setAdornedStart(!!O)},[fe,O]);const X={...a,color:Ee.color||"primary",disabled:Ee.disabled,endAdornment:R,error:Ee.error,focused:Ee.focused,formControl:fe,fullWidth:N,hiddenLabel:Ee.hiddenLabel,multiline:ne,size:Ee.size,startAdornment:O,type:ie},le=S2(X),de=se.root||h.Root||v2,Ae=K.root||g.root||{},Ve=se.input||h.Input||x2;return ze={...ze,...K.input??g.input},ce.jsxs(M.Fragment,{children:[!S&&typeof gm=="function"&&(mm||(mm=ce.jsx(gm,{}))),ce.jsxs(de,{...Ae,ref:l,onClick:gn,...he,...!_h(de)&&{ownerState:{...X,...Ae.ownerState}},className:at(le.root,Ae.className,d,Z&&"MuiInputBase-readOnly"),children:[O,ce.jsx(Dh.Provider,{value:null,children:ce.jsx(Ve,{"aria-invalid":Ee.error,"aria-describedby":u,autoComplete:s,autoFocus:f,defaultValue:y,disabled:Ee.disabled,id:w,onAnimationStart:Rt,name:V,placeholder:$,readOnly:Z,required:Ee.required,rows:ue,value:Be,onKeyDown:P,onKeyUp:ee,type:ie,...ze,...!_h(Ve)&&{as:xe,ownerState:{...X,...ze.ownerState}},ref:De,className:at(le.input,ze.className,Z&&"MuiInputBase-readOnly"),onBlur:ht,onChange:Qt,onFocus:Pe})}),R,Q?Q({...Ee,startAdornment:O}):null]})]})});var Ec={exports:{}};/*!
|
|
97
|
+
export default theme;`}function vc(e={},...r){const{breakpoints:a,mixins:l={},spacing:u,palette:s={},transitions:f={},typography:d={},shape:m,...h}=e;if(e.vars)throw new Error(Ur(20));const g=Sc(s),y=cc(e);let v=rn(y,{mixins:XE(y.breakpoints,l),palette:g,shadows:JE.slice(),typography:mm(g,d),transitions:r2(f),zIndex:{...i2}});return v=rn(v,h),v=r.reduce((S,A)=>rn(S,A),v),v.unstable_sxConfig={...nl,...h==null?void 0:h.unstable_sxConfig},v.unstable_sx=function(A){return hi({sx:A,theme:this})},v.toRuntimeSource=ym,v}function xc(e){let r;return e<1?r=5.11916*e**2:r=4.5*Math.log(e+1)+2,Math.round(r*10)/1e3}const l2=[...Array(25)].map((e,r)=>{if(r===0)return"none";const a=xc(r);return`linear-gradient(rgba(255 255 255 / ${a}), rgba(255 255 255 / ${a}))`});function bm(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Sm(e){return e==="dark"?l2:[]}function o2(e){const{palette:r={mode:"light"},opacity:a,overlays:l,...u}=e,s=Sc(r);return{palette:s,opacity:{...bm(s.mode),...a},overlays:l||Sm(s.mode),...u}}function u2(e){var r;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((r=e[1])!=null&&r.match(/(mode|contrastThreshold|tonalOffset)/))}const s2=e=>[...[...Array(25)].map((r,a)=>`--${e?`${e}-`:""}overlays-${a}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],c2=e=>(r,a)=>{const l=e.rootSelector||":root",u=e.colorSchemeSelector;let s=u;if(u==="class"&&(s=".%s"),u==="data"&&(s="[data-%s]"),u!=null&&u.startsWith("data-")&&!u.includes("%s")&&(s=`[${u}="%s"]`),e.defaultColorScheme===r){if(r==="dark"){const f={};return s2(e.cssVarPrefix).forEach(d=>{f[d]=a[d],delete a[d]}),s==="media"?{[l]:a,"@media (prefers-color-scheme: dark)":{[l]:f}}:s?{[s.replace("%s",r)]:f,[`${l}, ${s.replace("%s",r)}`]:a}:{[l]:{...a,...f}}}if(s&&s!=="media")return`${l}, ${s.replace("%s",String(r))}`}else if(r){if(s==="media")return{[`@media (prefers-color-scheme: ${String(r)})`]:{[l]:a}};if(s)return s.replace("%s",String(r))}return l};function f2(e,r){r.forEach(a=>{e[a]||(e[a]={})})}function W(e,r,a){!e[r]&&a&&(e[r]=a)}function sl(e){return!e||!e.startsWith("hsl")?e:Wh(e)}function mr(e,r){`${r}Channel`in e||(e[`${r}Channel`]=rl(sl(e[r])))}function d2(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ir=e=>{try{return e()}catch{}},p2=(e="mui")=>NE(e);function Ec(e,r,a,l){if(!r)return;r=r===!0?{}:r;const u=l==="dark"?"dark":"light";if(!a){e[l]=o2({...r,palette:{mode:u,...r==null?void 0:r.palette}});return}const{palette:s,...f}=vc({...a,palette:{mode:u,...r==null?void 0:r.palette}});return e[l]={...r,palette:s,opacity:{...bm(u),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||Sm(u)},f}function h2(e={},...r){const{colorSchemes:a={light:!0},defaultColorScheme:l,disableCssColorScheme:u=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:f=u2,colorSchemeSelector:d=a.light&&a.dark?"media":void 0,rootSelector:m=":root",...h}=e,g=Object.keys(a)[0],y=l||(a.light&&g!=="light"?"light":g),v=p2(s),{[y]:S,light:A,dark:T,...N}=a,w={...N};let B=S;if((y==="dark"&&!("dark"in a)||y==="light"&&!("light"in a))&&(B=!0),!B)throw new Error(Ur(21,y));const k=Ec(w,B,h,y);A&&!w.light&&Ec(w,A,void 0,"light"),T&&!w.dark&&Ec(w,T,void 0,"dark");let z={defaultColorScheme:y,...k,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:m,getCssVar:v,colorSchemes:w,font:{...PE(k.typography),...k.font},spacing:d2(h.spacing)};Object.keys(z.colorSchemes).forEach(V=>{const E=z.colorSchemes[V].palette,I=Y=>{const F=Y.split("-"),P=F[1],ee=F[2];return v(Y,E[P][ee])};if(E.mode==="light"&&(W(E.common,"background","#fff"),W(E.common,"onBackground","#000")),E.mode==="dark"&&(W(E.common,"background","#000"),W(E.common,"onBackground","#fff")),f2(E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),E.mode==="light"){W(E.Alert,"errorColor",it(E.error.light,.6)),W(E.Alert,"infoColor",it(E.info.light,.6)),W(E.Alert,"successColor",it(E.success.light,.6)),W(E.Alert,"warningColor",it(E.warning.light,.6)),W(E.Alert,"errorFilledBg",I("palette-error-main")),W(E.Alert,"infoFilledBg",I("palette-info-main")),W(E.Alert,"successFilledBg",I("palette-success-main")),W(E.Alert,"warningFilledBg",I("palette-warning-main")),W(E.Alert,"errorFilledColor",ir(()=>E.getContrastText(E.error.main))),W(E.Alert,"infoFilledColor",ir(()=>E.getContrastText(E.info.main))),W(E.Alert,"successFilledColor",ir(()=>E.getContrastText(E.success.main))),W(E.Alert,"warningFilledColor",ir(()=>E.getContrastText(E.warning.main))),W(E.Alert,"errorStandardBg",at(E.error.light,.9)),W(E.Alert,"infoStandardBg",at(E.info.light,.9)),W(E.Alert,"successStandardBg",at(E.success.light,.9)),W(E.Alert,"warningStandardBg",at(E.warning.light,.9)),W(E.Alert,"errorIconColor",I("palette-error-main")),W(E.Alert,"infoIconColor",I("palette-info-main")),W(E.Alert,"successIconColor",I("palette-success-main")),W(E.Alert,"warningIconColor",I("palette-warning-main")),W(E.AppBar,"defaultBg",I("palette-grey-100")),W(E.Avatar,"defaultBg",I("palette-grey-400")),W(E.Button,"inheritContainedBg",I("palette-grey-300")),W(E.Button,"inheritContainedHoverBg",I("palette-grey-A100")),W(E.Chip,"defaultBorder",I("palette-grey-400")),W(E.Chip,"defaultAvatarColor",I("palette-grey-700")),W(E.Chip,"defaultIconColor",I("palette-grey-700")),W(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),W(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),W(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),W(E.LinearProgress,"primaryBg",at(E.primary.main,.62)),W(E.LinearProgress,"secondaryBg",at(E.secondary.main,.62)),W(E.LinearProgress,"errorBg",at(E.error.main,.62)),W(E.LinearProgress,"infoBg",at(E.info.main,.62)),W(E.LinearProgress,"successBg",at(E.success.main,.62)),W(E.LinearProgress,"warningBg",at(E.warning.main,.62)),W(E.Skeleton,"bg",`rgba(${I("palette-text-primaryChannel")} / 0.11)`),W(E.Slider,"primaryTrack",at(E.primary.main,.62)),W(E.Slider,"secondaryTrack",at(E.secondary.main,.62)),W(E.Slider,"errorTrack",at(E.error.main,.62)),W(E.Slider,"infoTrack",at(E.info.main,.62)),W(E.Slider,"successTrack",at(E.success.main,.62)),W(E.Slider,"warningTrack",at(E.warning.main,.62));const Y=lu(E.background.default,.8);W(E.SnackbarContent,"bg",Y),W(E.SnackbarContent,"color",ir(()=>E.getContrastText(Y))),W(E.SpeedDialAction,"fabHoverBg",lu(E.background.paper,.15)),W(E.StepConnector,"border",I("palette-grey-400")),W(E.StepContent,"border",I("palette-grey-400")),W(E.Switch,"defaultColor",I("palette-common-white")),W(E.Switch,"defaultDisabledColor",I("palette-grey-100")),W(E.Switch,"primaryDisabledColor",at(E.primary.main,.62)),W(E.Switch,"secondaryDisabledColor",at(E.secondary.main,.62)),W(E.Switch,"errorDisabledColor",at(E.error.main,.62)),W(E.Switch,"infoDisabledColor",at(E.info.main,.62)),W(E.Switch,"successDisabledColor",at(E.success.main,.62)),W(E.Switch,"warningDisabledColor",at(E.warning.main,.62)),W(E.TableCell,"border",at(au(E.divider,1),.88)),W(E.Tooltip,"bg",au(E.grey[700],.92))}if(E.mode==="dark"){W(E.Alert,"errorColor",at(E.error.light,.6)),W(E.Alert,"infoColor",at(E.info.light,.6)),W(E.Alert,"successColor",at(E.success.light,.6)),W(E.Alert,"warningColor",at(E.warning.light,.6)),W(E.Alert,"errorFilledBg",I("palette-error-dark")),W(E.Alert,"infoFilledBg",I("palette-info-dark")),W(E.Alert,"successFilledBg",I("palette-success-dark")),W(E.Alert,"warningFilledBg",I("palette-warning-dark")),W(E.Alert,"errorFilledColor",ir(()=>E.getContrastText(E.error.dark))),W(E.Alert,"infoFilledColor",ir(()=>E.getContrastText(E.info.dark))),W(E.Alert,"successFilledColor",ir(()=>E.getContrastText(E.success.dark))),W(E.Alert,"warningFilledColor",ir(()=>E.getContrastText(E.warning.dark))),W(E.Alert,"errorStandardBg",it(E.error.light,.9)),W(E.Alert,"infoStandardBg",it(E.info.light,.9)),W(E.Alert,"successStandardBg",it(E.success.light,.9)),W(E.Alert,"warningStandardBg",it(E.warning.light,.9)),W(E.Alert,"errorIconColor",I("palette-error-main")),W(E.Alert,"infoIconColor",I("palette-info-main")),W(E.Alert,"successIconColor",I("palette-success-main")),W(E.Alert,"warningIconColor",I("palette-warning-main")),W(E.AppBar,"defaultBg",I("palette-grey-900")),W(E.AppBar,"darkBg",I("palette-background-paper")),W(E.AppBar,"darkColor",I("palette-text-primary")),W(E.Avatar,"defaultBg",I("palette-grey-600")),W(E.Button,"inheritContainedBg",I("palette-grey-800")),W(E.Button,"inheritContainedHoverBg",I("palette-grey-700")),W(E.Chip,"defaultBorder",I("palette-grey-700")),W(E.Chip,"defaultAvatarColor",I("palette-grey-300")),W(E.Chip,"defaultIconColor",I("palette-grey-300")),W(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),W(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),W(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),W(E.LinearProgress,"primaryBg",it(E.primary.main,.5)),W(E.LinearProgress,"secondaryBg",it(E.secondary.main,.5)),W(E.LinearProgress,"errorBg",it(E.error.main,.5)),W(E.LinearProgress,"infoBg",it(E.info.main,.5)),W(E.LinearProgress,"successBg",it(E.success.main,.5)),W(E.LinearProgress,"warningBg",it(E.warning.main,.5)),W(E.Skeleton,"bg",`rgba(${I("palette-text-primaryChannel")} / 0.13)`),W(E.Slider,"primaryTrack",it(E.primary.main,.5)),W(E.Slider,"secondaryTrack",it(E.secondary.main,.5)),W(E.Slider,"errorTrack",it(E.error.main,.5)),W(E.Slider,"infoTrack",it(E.info.main,.5)),W(E.Slider,"successTrack",it(E.success.main,.5)),W(E.Slider,"warningTrack",it(E.warning.main,.5));const Y=lu(E.background.default,.98);W(E.SnackbarContent,"bg",Y),W(E.SnackbarContent,"color",ir(()=>E.getContrastText(Y))),W(E.SpeedDialAction,"fabHoverBg",lu(E.background.paper,.15)),W(E.StepConnector,"border",I("palette-grey-600")),W(E.StepContent,"border",I("palette-grey-600")),W(E.Switch,"defaultColor",I("palette-grey-300")),W(E.Switch,"defaultDisabledColor",I("palette-grey-600")),W(E.Switch,"primaryDisabledColor",it(E.primary.main,.55)),W(E.Switch,"secondaryDisabledColor",it(E.secondary.main,.55)),W(E.Switch,"errorDisabledColor",it(E.error.main,.55)),W(E.Switch,"infoDisabledColor",it(E.info.main,.55)),W(E.Switch,"successDisabledColor",it(E.success.main,.55)),W(E.Switch,"warningDisabledColor",it(E.warning.main,.55)),W(E.TableCell,"border",it(au(E.divider,1),.68)),W(E.Tooltip,"bg",au(E.grey[700],.92))}mr(E.background,"default"),mr(E.background,"paper"),mr(E.common,"background"),mr(E.common,"onBackground"),mr(E,"divider"),Object.keys(E).forEach(Y=>{const F=E[Y];F&&typeof F=="object"&&(F.main&&W(E[Y],"mainChannel",rl(sl(F.main))),F.light&&W(E[Y],"lightChannel",rl(sl(F.light))),F.dark&&W(E[Y],"darkChannel",rl(sl(F.dark))),F.contrastText&&W(E[Y],"contrastTextChannel",rl(sl(F.contrastText))),Y==="text"&&(mr(E[Y],"primary"),mr(E[Y],"secondary")),Y==="action"&&(F.active&&mr(E[Y],"active"),F.selected&&mr(E[Y],"selected")))})}),z=r.reduce((V,E)=>rn(V,E),z);const R={prefix:s,disableCssColorScheme:u,shouldSkipGeneratingVar:f,getSelector:c2(z)},{vars:_,generateThemeVars:H,generateStyleSheets:ne}=UE(z,R);return z.vars=_,Object.entries(z.colorSchemes[z.defaultColorScheme]).forEach(([V,E])=>{z[V]=E}),z.generateThemeVars=H,z.generateStyleSheets=ne,z.generateSpacing=function(){return Ph(h.spacing,uc(this))},z.getColorSchemeSelector=jE(d),z.spacing=z.generateSpacing(),z.shouldSkipGeneratingVar=f,z.unstable_sxConfig={...nl,...h==null?void 0:h.unstable_sxConfig},z.unstable_sx=function(E){return hi({sx:E,theme:this})},z.toRuntimeSource=ym,z}function vm(e,r,a){e.colorSchemes&&a&&(e.colorSchemes[r]={...a!==!0&&a,palette:Sc({...a===!0?{}:a.palette,mode:r})})}function ou(e={},...r){const{palette:a,cssVariables:l=!1,colorSchemes:u=a?void 0:{light:!0},defaultColorScheme:s=a==null?void 0:a.mode,...f}=e,d=s||"light",m=u==null?void 0:u[d],h={...u,...a?{[d]:{...typeof m!="boolean"&&m,palette:a}}:void 0};if(l===!1){if(!("colorSchemes"in e))return vc(e,...r);let g=a;"palette"in e||h[d]&&(h[d]!==!0?g=h[d].palette:d==="dark"&&(g={mode:"dark"}));const y=vc({...e,palette:g},...r);return y.defaultColorScheme=d,y.colorSchemes=h,y.palette.mode==="light"&&(y.colorSchemes.light={...h.light!==!0&&h.light,palette:y.palette},vm(y,"dark",h.dark)),y.palette.mode==="dark"&&(y.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:y.palette},vm(y,"light",h.light)),y}return!a&&!("light"in h)&&d==="light"&&(h.light=!0),h2({...f,colorSchemes:h,defaultColorScheme:d,...typeof l!="boolean"&&l},...r)}const Cc=ou(),gr="$$material";function uu(){const e=Qh(Cc);return e[gr]||e}function m2(e){return ce.jsx(lE,{...e,defaultTheme:Cc,themeId:gr})}function g2(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const xm=e=>g2(e)&&e!=="classes",Bt=cE({themeId:gr,defaultTheme:Cc,rootShouldForwardProp:xm});function y2(e){return function(a){return ce.jsx(m2,{styles:typeof e=="function"?l=>e({theme:l,...a}):e})}}function b2(){return Kx}const Fn=kE;function Pn(e){return AE(e)}function Em(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function S2(e,r=!1){return e&&(Em(e.value)&&e.value!==""||r&&Em(e.defaultValue)&&e.defaultValue!=="")}function v2(e){return Gn("MuiInputBase",e)}const Tc=Yn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Cm;const x2=(e,r)=>{const{ownerState:a}=e;return[r.root,a.formControl&&r.formControl,a.startAdornment&&r.adornedStart,a.endAdornment&&r.adornedEnd,a.error&&r.error,a.size==="small"&&r.sizeSmall,a.multiline&&r.multiline,a.color&&r[`color${pt(a.color)}`],a.fullWidth&&r.fullWidth,a.hiddenLabel&&r.hiddenLabel]},E2=(e,r)=>{const{ownerState:a}=e;return[r.input,a.size==="small"&&r.inputSizeSmall,a.multiline&&r.inputMultiline,a.type==="search"&&r.inputTypeSearch,a.startAdornment&&r.inputAdornedStart,a.endAdornment&&r.inputAdornedEnd,a.hiddenLabel&&r.inputHiddenLabel]},C2=e=>{const{classes:r,color:a,disabled:l,error:u,endAdornment:s,focused:f,formControl:d,fullWidth:m,hiddenLabel:h,multiline:g,readOnly:y,size:v,startAdornment:S,type:A}=e,T={root:["root",`color${pt(a)}`,l&&"disabled",u&&"error",m&&"fullWidth",f&&"focused",d&&"formControl",v&&v!=="medium"&&`size${pt(v)}`,g&&"multiline",S&&"adornedStart",s&&"adornedEnd",h&&"hiddenLabel",y&&"readOnly"],input:["input",l&&"disabled",A==="search"&&"inputTypeSearch",g&&"inputMultiline",v==="small"&&"inputSizeSmall",h&&"inputHiddenLabel",S&&"inputAdornedStart",s&&"inputAdornedEnd",y&&"readOnly"]};return nr(T,v2,r)},T2=Bt("div",{name:"MuiInputBase",slot:"Root",overridesResolver:x2})(Fn(({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",[`&.${Tc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:r})=>r.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:r,size:a})=>r.multiline&&a==="small",style:{paddingTop:1}},{props:({ownerState:r})=>r.fullWidth,style:{width:"100%"}}]}))),w2=Bt("input",{name:"MuiInputBase",slot:"Input",overridesResolver:E2})(Fn(({theme:e})=>{const r=e.palette.mode==="light",a={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},l={opacity:"0 !important"},u=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&::-ms-input-placeholder":a,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Tc.formControl} &`]:{"&::-webkit-input-placeholder":l,"&::-moz-placeholder":l,"&::-ms-input-placeholder":l,"&:focus::-webkit-input-placeholder":u,"&:focus::-moz-placeholder":u,"&:focus::-ms-input-placeholder":u},[`&.${Tc.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"}}]}})),Tm=y2({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),A2=M.forwardRef(function(r,a){const l=Pn({props:r,name:"MuiInputBase"}),{"aria-describedby":u,autoComplete:s,autoFocus:f,className:d,color:m,components:h={},componentsProps:g={},defaultValue:y,disabled:v,disableInjectingGlobalStyles:S,endAdornment:A,error:T,fullWidth:N=!1,id:w,inputComponent:B="input",inputProps:k={},inputRef:z,margin:R,maxRows:_,minRows:H,multiline:ne=!1,name:V,onBlur:E,onChange:I,onClick:Y,onFocus:F,onKeyDown:P,onKeyUp:ee,placeholder:q,readOnly:Z,renderSuffix:Q,rows:ue,size:x,slotProps:K={},slots:se={},startAdornment:O,type:ie="text",value:ye,...he}=l,Ue=k.value!=null?k.value:ye,{current:we}=M.useRef(Ue!=null),Oe=M.useRef(),pe=M.useCallback(He=>{},[]),Ne=qn(Oe,z,k.ref,pe),[me,ge]=M.useState(!1),fe=nx(),Te=tx({props:l,muiFormControl:fe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Te.focused=fe?fe.focused:me,M.useEffect(()=>{!fe&&v&&me&&(ge(!1),E&&E())},[fe,v,me,E]);const Ge=fe&&fe.onFilled,je=fe&&fe.onEmpty,_e=M.useCallback(He=>{S2(He)?Ge&&Ge():je&&je()},[Ge,je]);Fi(()=>{we&&_e({value:Ue})},[Ue,_e,we]);const Ke=He=>{F&&F(He),k.onFocus&&k.onFocus(He),fe&&fe.onFocus?fe.onFocus(He):ge(!0)},gt=He=>{E&&E(He),k.onBlur&&k.onBlur(He),fe&&fe.onBlur?fe.onBlur(He):ge(!1)},Kt=(He,...un)=>{if(!we){const Ht=He.target||Oe.current;if(Ht==null)throw new Error(Ur(1));_e({value:Ht.value})}k.onChange&&k.onChange(He,...un),I&&I(He,...un)};M.useEffect(()=>{_e(Oe.current)},[]);const yn=He=>{Oe.current&&He.currentTarget===He.target&&Oe.current.focus(),Y&&Y(He)};let Ce=B,Be=k;ne&&Ce==="input"&&(ue?Be={type:void 0,minRows:ue,maxRows:ue,...Be}:Be={type:void 0,maxRows:_,minRows:H,...Be},Ce=ex);const Mt=He=>{_e(He.animationName==="mui-auto-fill-cancel"?Oe.current:{value:"x"})};M.useEffect(()=>{fe&&fe.setAdornedStart(!!O)},[fe,O]);const X={...l,color:Te.color||"primary",disabled:Te.disabled,endAdornment:A,error:Te.error,focused:Te.focused,formControl:fe,fullWidth:N,hiddenLabel:Te.hiddenLabel,multiline:ne,size:Te.size,startAdornment:O,type:ie},ae=C2(X),de=se.root||h.Root||T2,Re=K.root||g.root||{},qe=se.input||h.Input||w2;return Be={...Be,...K.input??g.input},ce.jsxs(M.Fragment,{children:[!S&&typeof Tm=="function"&&(Cm||(Cm=ce.jsx(Tm,{}))),ce.jsxs(de,{...Re,ref:a,onClick:yn,...he,...!Hh(de)&&{ownerState:{...X,...Re.ownerState}},className:ot(ae.root,Re.className,d,Z&&"MuiInputBase-readOnly"),children:[O,ce.jsx(Ih.Provider,{value:null,children:ce.jsx(qe,{"aria-invalid":Te.error,"aria-describedby":u,autoComplete:s,autoFocus:f,defaultValue:y,disabled:Te.disabled,id:w,onAnimationStart:Mt,name:V,placeholder:q,readOnly:Z,required:Te.required,rows:ue,value:Ue,onKeyDown:P,onKeyUp:ee,type:ie,...Be,...!Hh(qe)&&{as:Ce,ownerState:{...X,...Be.ownerState}},ref:Ne,className:ot(ae.input,Be.className,Z&&"MuiInputBase-readOnly"),onBlur:gt,onChange:Kt,onFocus:Ke})}),A,Q?Q({...Te,startAdornment:O}):null]})]})});var wc={exports:{}};/*!
|
|
98
98
|
Copyright (c) 2018 Jed Watson.
|
|
99
99
|
Licensed under the MIT License (MIT), see
|
|
100
100
|
http://jedwatson.github.io/classnames
|
|
101
|
-
*/var ym;function C2(){return ym||(ym=1,function(e){(function(){var r={}.hasOwnProperty;function l(){for(var s="",f=0;f<arguments.length;f++){var d=arguments[f];d&&(s=u(s,a(d)))}return s}function a(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return l.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var f="";for(var d in s)r.call(s,d)&&s[d]&&(f=u(f,d));return f}function u(s,f){return f?s?s+" "+f:s+f:s}e.exports?(l.default=l,e.exports=l):window.classNames=l})()}(Ec)),Ec.exports}var T2=C2();const aa=Cn(T2),w2={size:"medium",multiline:!1},A2={small:"small",medium:"small",large:"medium",chat:"chat",hero:"large"},bm=({size:e,theme:r,multiline:l})=>Zs([(e==="small"||e==="medium")&&{...r.typography.body2},(e==="large"||e==="chat"||e==="hero")&&{".remixicon":{width:"24px",height:"24px"},...r.typography.body1},e==="medium"&&{paddingLeft:"12px",paddingRight:"12px"},e==="small"&&!l&&{height:"32px"},e==="medium"&&!l&&{height:"40px"},e==="large"&&!l&&{height:"48px"},e==="chat"&&!l&&{height:"56px"},e==="hero"&&!l&&{height:"72px"},e==="small"&&{padding:"0 8px",".Mit-AdornmentButton":{width:"32px",".remixicon":{width:"16px",height:"16px"}}},e==="medium"&&{padding:"0 12px",".Mit-AdornmentButton":{width:"40px",".remixicon":{width:"20px",height:"20px"}}},e==="large"&&{padding:"0 16px",".Mit-AdornmentButton":{width:"48px"}},e==="chat"&&{padding:"0 16px",borderRadius:"8px",borderColor:r.custom.colors.silverGrayLight,"&:hover:not(.Mui-disabled), &.Mui-focused, :hover:not(.Mui-disabled):not(.Mui-focused)":{boxShadow:"0px 8px 20px 0px rgba(120, 147, 172, 0.10)",borderColor:r.custom.colors.silverGray,outline:"none",svg:{fill:r.custom.colors.lightRed}},".Mit-AdornmentButton":{padding:"0 16px"}},e==="hero"&&{padding:"0 24px",".Mit-AdornmentButton":{width:"72px"}}]),k2=e=>({backgroundColor:"white",color:e.custom.colors.darkGray2,borderColor:e.custom.colors.silverGrayLight,borderWidth:"1px",borderStyle:"solid",borderRadius:"4px",overflow:"hidden","&.Mui-disabled":{backgroundColor:e.custom.colors.lightGray1},"&:hover:not(.Mui-disabled):not(.Mui-focused)":{borderColor:e.custom.colors.darkGray2},"&.Mui-focused":{borderColor:"transparent",outline:"2px solid currentcolor",outlineOffset:"-2px"},"&.Mui-error":{borderColor:e.custom.colors.red,outlineColor:e.custom.colors.red},"& input::placeholder, textarea::placeholder":{color:e.custom.colors.silverGrayDark,opacity:1},"& input:placeholder-shown, textarea:placeholder-shown":{textOverflow:"ellipsis"},"& textarea":{paddingTop:"8px",paddingBottom:"8px"},"&.MuiInputBase-adornedStart":{paddingLeft:"0",input:{paddingLeft:"8px"}},"&.MuiInputBase-adornedEnd":{paddingRight:"0",input:{paddingRight:"8px"}}}),R2=Object.keys({responsive:!0}),O2=et(E2,{shouldForwardProp:e=>!R2.includes(e)})(({theme:e,size:r=w2.size,multiline:l,responsive:a})=>[k2(e),bm({size:r,theme:e,multiline:l}),a&&{[e.breakpoints.down("sm")]:bm({size:A2[r],theme:e,multiline:l})}]),M2=et.button(({theme:e,disabled:r})=>({...e.typography.button,display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",border:"none",background:"transparent",transition:`background ${e.transitions.duration.short}ms`,cursor:r?"default":"pointer",":disabled":{cursor:"default",svg:{fill:e.custom.colors.silverGray}},":hover":{background:r?"inherit":"rgba(0, 0, 0, 0.06)"},color:e.custom.colors.silverGray,".MuiInputBase-root:hover &":{color:"inherit"},".MuiInputBase-root.Mui-focused &":{color:"inherit"},".MuiInputBase-root.Mui-disabled &":{color:"inherit"},height:"100%"})),_2=e=>e.preventDefault(),Sm=({className:e,...r})=>M.createElement(M2,{onMouseDown:_2,className:aa("Mit-AdornmentButton",e),...r});function vm({theme:e,...r}){const l=hr in e?e[hr]:void 0;return ce.jsx(Kh,{...r,themeId:l?hr:void 0,theme:l||e})}const au={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:D2,useColorScheme:WO,getInitColorSchemeScript:JO}=OE({themeId:hr,theme:()=>iu({cssVariables:!0}),colorSchemeStorageKey:au.colorSchemeStorageKey,modeStorageKey:au.modeStorageKey,defaultColorScheme:{light:au.defaultLightColorScheme,dark:au.defaultDarkColorScheme},resolveTheme:e=>{const r={...e,typography:om(e.palette,e.typography)};return r.unstable_sx=function(a){return ci({sx:a,theme:this})},r}}),z2=D2;function N2({theme:e,...r}){return typeof e=="function"?ce.jsx(vm,{theme:e,...r}):"colorSchemes"in(hr in e?e[hr]:e)?ce.jsx(z2,{theme:e,...r}):ce.jsx(vm,{theme:e,...r})}const At={text:{roman:400,medium:500,bold:700}},Ge=e=>`${e/16}rem`,xm={fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeightLight:At.text.roman,fontWeightRegular:At.text.roman,fontWeightMedium:At.text.medium,fontWeightBold:At.text.bold,h1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.bold,fontStyle:"normal",fontSize:Ge(52),lineHeight:Ge(60)},h2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.bold,fontStyle:"normal",fontSize:Ge(34),lineHeight:Ge(40)},h3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.bold,fontStyle:"normal",fontSize:Ge(28),lineHeight:Ge(36)},h4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.bold,fontStyle:"normal",fontSize:Ge(24),lineHeight:Ge(30)},h5:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.medium,fontStyle:"normal",fontSize:Ge(18),lineHeight:Ge(22)},subtitle1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.medium,fontStyle:"normal",fontSize:Ge(16),lineHeight:Ge(20)},subtitle2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.medium,fontStyle:"normal",fontSize:Ge(14),lineHeight:Ge(18)},subtitle3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.medium,fontStyle:"normal",fontSize:Ge(12),lineHeight:Ge(16)},subtitle4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.medium,fontStyle:"normal",fontSize:Ge(10),lineHeight:Ge(14)},body1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.roman,fontStyle:"normal",fontSize:Ge(16),lineHeight:Ge(20)},body2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.roman,fontStyle:"normal",fontSize:Ge(14),lineHeight:Ge(18)},body3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.roman,fontStyle:"normal",fontSize:Ge(12),lineHeight:Ge(16)},body4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.roman,fontStyle:"normal",fontSize:Ge(10),lineHeight:Ge(14)},buttonLarge:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.medium,fontStyle:"normal",fontSize:Ge(16),lineHeight:Ge(20)},button:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.medium,fontStyle:"normal",fontSize:Ge(14),lineHeight:Ge(18),textTransform:"none"},buttonSmall:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.medium,fontStyle:"normal",fontSize:Ge(12),lineHeight:Ge(16)}},B2={defaultProps:{variantMapping:{h1:"span",h2:"span",h3:"span",h4:"span",h5:"span",body1:"p",body2:"p",body3:"p",body4:"p",subtitle1:"p",subtitle2:"p",subtitle3:"p",subtitle4:"p",button:"span"}}};iu({typography:xm,custom:{}});const L2=et.a({color:"inherit",textDecoration:"none"}),U2=M.forwardRef(function({Component:r,...l},a){const u=Rv(),s=r??u.custom.LinkAdapter;return M.createElement(L2,{as:s,ref:a,...l})}),j2={variant:!0,size:!0,edge:!0,startIcon:!0,endIcon:!0,responsive:!0,color:!0},Em=e=>!j2[e],Cc={variant:"primary",size:"medium",edge:"rounded",responsive:!1},Cm={small:1,medium:1,large:2},Tm={small:"small",medium:"small",large:"medium"},wm=(e,r,l)=>{const a=r?Cm[e]:0;return[{boxSizing:"border-box",borderWidth:Cm[e]},e==="large"&&{padding:`${14-a}px 24px`,...l.typography.buttonLarge},e==="medium"&&{padding:`${11-a}px 16px`,...l.typography.button},e==="small"&&{padding:`${8-a}px 12px`,...l.typography.buttonSmall}]},Am=e=>{const{size:r,variant:l,edge:a,theme:u,color:s,responsive:f}={...Cc,...e},{colors:d}=u.custom,m=l==="secondary"||l==="bordered";return Zs([{color:u.palette.text.primary,textAlign:"center",display:"inline-flex",justifyContent:"center",alignItems:"center",transition:`background ${u.transitions.duration.short}ms`,cursor:"pointer",":disabled":{cursor:"default"},minWidth:"100px"},...wm(r,m,u),f&&{[u.breakpoints.down("sm")]:wm(Tm[r],m,u)},l==="primary"&&{backgroundColor:d.mitRed,color:d.white,border:"none",boxShadow:"0px 2px 4px 0px rgba(37, 38, 43, 0.10), 0px 3px 8px 0px rgba(37, 38, 43, 0.12)",":hover:not(:disabled)":{backgroundColor:d.red,boxShadow:"none"},":disabled":{backgroundColor:d.silverGray,boxShadow:"none"}},l==="secondary"&&{color:d.red,backgroundColor:"transparent",borderColor:"currentcolor",borderStyle:"solid",":hover:not(:disabled)":{backgroundColor:"rgba(255, 20, 35, 0.06)"},":disabled":{color:d.silverGray}},l==="text"&&{backgroundColor:"transparent",borderStyle:"none",color:d.darkGray2,":hover:not(:disabled)":{backgroundColor:"rgba(64, 70, 76, 0.06)"},":disabled":{color:d.silverGray}},l==="bordered"&&{backgroundColor:d.white,color:d.silverGrayDark,border:`1px solid ${d.silverGrayLight}`,":hover:not(:disabled)":{backgroundColor:d.lightGray1,color:d.darkGray2},":disabled":{backgroundColor:d.lightGray2,border:`1px solid ${d.lightGray2}`,color:d.silverGrayDark}},l==="tertiary"&&{color:d.darkGray2,border:"none",backgroundColor:d.lightGray2,":hover:not(:disabled)":{backgroundColor:d.white},":disabled":{backgroundColor:d.lightGray2,color:d.silverGrayLight}},a==="rounded"&&{borderRadius:"4px"},a==="circular"&&{borderRadius:"100vh"},s==="secondary"&&{color:u.custom.colors.silverGray,borderColor:u.custom.colors.silverGray,":hover:not(:disabled)":{backgroundColor:u.custom.colors.lightGray1}}])},km=et("button",{shouldForwardProp:Em})(Am),Rm=et(U2,{shouldForwardProp:Em})(Am),Om=et.span(({size:e,side:r})=>[{height:"1em",display:"flex",alignItems:"center"},r==="start"&&{marginLeft:"-4px",marginRight:"8px"},r==="end"&&{marginLeft:"8px",marginRight:"-4px"},{"& svg, & .MuiSvgIcon-root":{width:"1em",height:"1em",fontSize:Ge({small:16,medium:20,large:24}[e])}}]),Mm=e=>{const{children:r,size:l=Cc.size}=e;return M.createElement(M.Fragment,null,e.startIcon?M.createElement(Om,{size:l,side:"start"},e.startIcon):null,r,e.endIcon?M.createElement(Om,{size:l,side:"end"},e.endIcon):null)},H2=M.forwardRef(({children:e,...r},l)=>M.createElement(km,{ref:l,type:"button",...r},M.createElement(Mm,{...r},e)));H2.displayName="Button";const I2=M.forwardRef(({children:e,Component:r,...l},a)=>M.createElement(Rm,{Component:r,ref:a,...l},M.createElement(Mm,{...l},e)));I2.displayName="ButtonLink";const _m=e=>({minWidth:"auto",padding:0,height:{small:"32px",medium:"40px",large:"48px"}[e],width:{small:"32px",medium:"40px",large:"48px"}[e],"& svg, & .MuiSvgIcon-root":{width:"1em",height:"1em",fontSize:Ge({small:20,medium:24,large:32}[e])}}),Tc=et(M.forwardRef(function(r,l){return M.createElement(km,{ref:l,type:"button",...r})}))(({size:e=Cc.size,responsive:r,theme:l})=>[_m(e),r&&{[l.breakpoints.down("sm")]:_m(Tm[e])}]);Tc.displayName="ActionButton";const V2=Tc.withComponent(({Component:e,...r})=>M.createElement(Rm,{Component:e,...r}));V2.displayName="ActionButtonLink";const Dm=({color:e="currentColor",size:r=24,className:l,...a})=>ft.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:e,...a,className:"remixicon "+(l||"")},ft.createElement("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})),q2=({color:e="currentColor",size:r=24,className:l,...a})=>ft.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:e,...a,className:"remixicon "+(l||"")},ft.createElement("path",{d:"M5 10C3.9 10 3 10.9 3 12C3 13.1 3.9 14 5 14C6.1 14 7 13.1 7 12C7 10.9 6.1 10 5 10ZM19 10C17.9 10 17 10.9 17 12C17 13.1 17.9 14 19 14C20.1 14 21 13.1 21 12C21 10.9 20.1 10 19 10ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10Z"})),$2=({color:e="currentColor",size:r=24,className:l,...a})=>ft.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:e,...a,className:"remixicon "+(l||"")},ft.createElement("path",{d:"M1.94607 9.31543C1.42353 9.14125 1.4194 8.86022 1.95682 8.68108L21.043 2.31901C21.5715 2.14285 21.8746 2.43866 21.7265 2.95694L16.2733 22.0432C16.1223 22.5716 15.8177 22.59 15.5944 22.0876L11.9999 14L17.9999 6.00005L9.99992 12L1.94607 9.31543Z"})),G2=({color:e="currentColor",size:r=24,className:l,...a})=>ft.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:e,...a,className:"remixicon "+(l||"")},ft.createElement("path",{d:"M6 5H18C18.5523 5 19 5.44772 19 6V18C19 18.5523 18.5523 19 18 19H6C5.44772 19 5 18.5523 5 18V6C5 5.44772 5.44772 5 6 5Z"})),Y2=({color:e="currentColor",size:r=24,className:l,...a})=>ft.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:e,...a,className:"remixicon "+(l||"")},ft.createElement("path",{d:"M17.0007 1.20825 18.3195 3.68108 20.7923 4.99992 18.3195 6.31876 17.0007 8.79159 15.6818 6.31876 13.209 4.99992 15.6818 3.68108 17.0007 1.20825ZM10.6673 9.33325 15.6673 11.9999 10.6673 14.6666 8.00065 19.6666 5.33398 14.6666.333984 11.9999 5.33398 9.33325 8.00065 4.33325 10.6673 9.33325ZM11.4173 11.9999 9.18905 10.8115 8.00065 8.58325 6.81224 10.8115 4.58398 11.9999 6.81224 13.1883 8.00065 15.4166 9.18905 13.1883 11.4173 11.9999ZM19.6673 16.3333 18.0007 13.2083 16.334 16.3333 13.209 17.9999 16.334 19.6666 18.0007 22.7916 19.6673 19.6666 22.7923 17.9999 19.6673 16.3333Z"})),F2=({color:e="currentColor",size:r=24,className:l,...a})=>ft.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:e,...a,className:"remixicon "+(l||"")},ft.createElement("path",{d:"M13.5 2C13.5 2.44425 13.3069 2.84339 13 3.11805V5H18C19.6569 5 21 6.34315 21 8V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V8C3 6.34315 4.34315 5 6 5H11V3.11805C10.6931 2.84339 10.5 2.44425 10.5 2C10.5 1.17157 11.1716 0.5 12 0.5C12.8284 0.5 13.5 1.17157 13.5 2ZM6 7C5.44772 7 5 7.44772 5 8V18C5 18.5523 5.44772 19 6 19H18C18.5523 19 19 18.5523 19 18V8C19 7.44772 18.5523 7 18 7H13H11H6ZM2 10H0V16H2V10ZM22 10H24V16H22V10ZM9 14.5C9.82843 14.5 10.5 13.8284 10.5 13C10.5 12.1716 9.82843 11.5 9 11.5C8.17157 11.5 7.5 12.1716 7.5 13C7.5 13.8284 8.17157 14.5 9 14.5ZM15 14.5C15.8284 14.5 16.5 13.8284 16.5 13C16.5 12.1716 15.8284 11.5 15 11.5C14.1716 11.5 13.5 12.1716 13.5 13C13.5 13.8284 14.1716 14.5 15 14.5Z"}));var zm="vercel.ai.error",P2=Symbol.for(zm),Nm,X2=class _S extends Error{constructor({name:r,message:l,cause:a}){super(l),this[Nm]=!0,this.name=r,this.cause=a}static isInstance(r){return _S.hasMarker(r,zm)}static hasMarker(r,l){const a=Symbol.for(l);return r!=null&&typeof r=="object"&&a in r&&typeof r[a]=="boolean"&&r[a]===!0}};Nm=P2;var Ki=X2;function Bm(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var Lm="AI_InvalidArgumentError",Um=`vercel.ai.error.${Lm}`,Q2=Symbol.for(Um),jm,K2=class extends Ki{constructor({message:e,cause:r,argument:l}){super({name:Lm,message:e,cause:r}),this[jm]=!0,this.argument=l}static isInstance(e){return Ki.hasMarker(e,Um)}};jm=Q2;var Hm="AI_JSONParseError",Im=`vercel.ai.error.${Hm}`,Z2=Symbol.for(Im),Vm,qm=class extends Ki{constructor({text:e,cause:r}){super({name:Hm,message:`JSON parsing failed: Text: ${e}.
|
|
102
|
-
Error message: ${
|
|
103
|
-
Error message: ${Bm(l)}`,cause:l}),this[Ym]=!0,this.value=r}static isInstance(r){return Ki.hasMarker(r,Gm)}static wrap({value:r,cause:l}){return Lp.isInstance(l)&&l.value===r?l:new Lp({value:r,cause:l})}};Ym=W2;var Fm=J2;let eC=(e,r=21)=>(l=r)=>{let a="",u=l;for(;u--;)a+=e[Math.random()*e.length|0];return a};var fi={exports:{}},Pm;function tC(){if(Pm)return fi.exports;Pm=1;const e=typeof Buffer<"u",r=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,l=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function a(d,m,h){h==null&&m!==null&&typeof m=="object"&&(h=m,m=void 0),e&&Buffer.isBuffer(d)&&(d=d.toString()),d&&d.charCodeAt(0)===65279&&(d=d.slice(1));const g=JSON.parse(d,m);if(g===null||typeof g!="object")return g;const y=h&&h.protoAction||"error",v=h&&h.constructorAction||"error";if(y==="ignore"&&v==="ignore")return g;if(y!=="ignore"&&v!=="ignore"){if(r.test(d)===!1&&l.test(d)===!1)return g}else if(y!=="ignore"&&v==="ignore"){if(r.test(d)===!1)return g}else if(l.test(d)===!1)return g;return u(g,{protoAction:y,constructorAction:v,safe:h&&h.safe})}function u(d,{protoAction:m="error",constructorAction:h="error",safe:g}={}){let y=[d];for(;y.length;){const v=y;y=[];for(const S of v){if(m!=="ignore"&&Object.prototype.hasOwnProperty.call(S,"__proto__")){if(g===!0)return null;if(m==="error")throw new SyntaxError("Object contains forbidden prototype property");delete S.__proto__}if(h!=="ignore"&&Object.prototype.hasOwnProperty.call(S,"constructor")&&Object.prototype.hasOwnProperty.call(S.constructor,"prototype")){if(g===!0)return null;if(h==="error")throw new SyntaxError("Object contains forbidden prototype property");delete S.constructor}for(const R in S){const T=S[R];T&&typeof T=="object"&&y.push(T)}}}return d}function s(d,m,h){const g=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return a(d,m,h)}finally{Error.stackTraceLimit=g}}function f(d,m){const h=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return a(d,m,{safe:!0})}catch{return null}finally{Error.stackTraceLimit=h}}return fi.exports=s,fi.exports.default=s,fi.exports.parse=s,fi.exports.safeParse=f,fi.exports.scan=u,fi.exports}var nC=tC();const rC=Cn(nC);var iC=({prefix:e,size:r=16,alphabet:l="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:a="-"}={})=>{const u=eC(l,r);if(e==null)return u;if(l.includes(a))throw new K2({argument:"separator",message:`The separator "${a}" must not be part of the alphabet "${l}".`});return s=>`${e}${a}${u(s)}`},Xm=iC(),wc=Symbol.for("vercel.ai.validator");function lC(e){return{[wc]:!0,validate:e}}function aC(e){return typeof e=="object"&&e!==null&&wc in e&&e[wc]===!0&&"validate"in e}function oC(e){return aC(e)?e:uC(e)}function uC(e){return lC(r=>{const l=e.safeParse(r);return l.success?{success:!0,value:l.data}:{success:!1,error:l.error}})}function sC({value:e,schema:r}){const l=oC(r);try{if(l.validate==null)return{success:!0,value:e};const a=l.validate(e);return a.success?a:{success:!1,error:Fm.wrap({value:e,cause:a.error})}}catch(a){return{success:!1,error:Fm.wrap({value:e,cause:a})}}}function Qm({text:e,schema:r}){try{const l=rC.parse(e);return r==null?{success:!0,value:l}:sC({value:l,schema:r})}catch(l){return{success:!1,error:qm.isInstance(l)?l:new qm({text:e,cause:l})}}}var oa={code:"0",name:"text",parse:e=>{if(typeof e!="string")throw new Error('"text" parts expect a string value.');return{type:"text",value:e}}},ua={code:"3",name:"error",parse:e=>{if(typeof e!="string")throw new Error('"error" parts expect a string value.');return{type:"error",value:e}}},sa={code:"4",name:"assistant_message",parse:e=>{if(e==null||typeof e!="object"||!("id"in e)||!("role"in e)||!("content"in e)||typeof e.id!="string"||typeof e.role!="string"||e.role!=="assistant"||!Array.isArray(e.content)||!e.content.every(r=>r!=null&&typeof r=="object"&&"type"in r&&r.type==="text"&&"text"in r&&r.text!=null&&typeof r.text=="object"&&"value"in r.text&&typeof r.text.value=="string"))throw new Error('"assistant_message" parts expect an object with an "id", "role", and "content" property.');return{type:"assistant_message",value:e}}},ca={code:"5",name:"assistant_control_data",parse:e=>{if(e==null||typeof e!="object"||!("threadId"in e)||!("messageId"in e)||typeof e.threadId!="string"||typeof e.messageId!="string")throw new Error('"assistant_control_data" parts expect an object with a "threadId" and "messageId" property.');return{type:"assistant_control_data",value:{threadId:e.threadId,messageId:e.messageId}}}},fa={code:"6",name:"data_message",parse:e=>{if(e==null||typeof e!="object"||!("role"in e)||!("data"in e)||typeof e.role!="string"||e.role!=="data")throw new Error('"data_message" parts expect an object with a "role" and "data" property.');return{type:"data_message",value:e}}},cC=[oa,ua,sa,ca,fa];oa.code+"",ua.code+"",sa.code+"",ca.code+"",fa.code+"",oa.name+"",oa.code,ua.name+"",ua.code,sa.name+"",sa.code,ca.name+"",ca.code,fa.name+"",fa.code,cC.map(e=>e.code);function fC(e){const r=["ROOT"];let l=-1,a=null;function u(m,h,g){switch(m){case'"':{l=h,r.pop(),r.push(g),r.push("INSIDE_STRING");break}case"f":case"t":case"n":{l=h,a=h,r.pop(),r.push(g),r.push("INSIDE_LITERAL");break}case"-":{r.pop(),r.push(g),r.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{l=h,r.pop(),r.push(g),r.push("INSIDE_NUMBER");break}case"{":{l=h,r.pop(),r.push(g),r.push("INSIDE_OBJECT_START");break}case"[":{l=h,r.pop(),r.push(g),r.push("INSIDE_ARRAY_START");break}}}function s(m,h){switch(m){case",":{r.pop(),r.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{l=h,r.pop();break}}}function f(m,h){switch(m){case",":{r.pop(),r.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{l=h,r.pop();break}}}for(let m=0;m<e.length;m++){const h=e[m];switch(r[r.length-1]){case"ROOT":u(h,m,"FINISH");break;case"INSIDE_OBJECT_START":{switch(h){case'"':{r.pop(),r.push("INSIDE_OBJECT_KEY");break}case"}":{l=m,r.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{switch(h){case'"':{r.pop(),r.push("INSIDE_OBJECT_KEY");break}}break}case"INSIDE_OBJECT_KEY":{switch(h){case'"':{r.pop(),r.push("INSIDE_OBJECT_AFTER_KEY");break}}break}case"INSIDE_OBJECT_AFTER_KEY":{switch(h){case":":{r.pop(),r.push("INSIDE_OBJECT_BEFORE_VALUE");break}}break}case"INSIDE_OBJECT_BEFORE_VALUE":{u(h,m,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{s(h,m);break}case"INSIDE_STRING":{switch(h){case'"':{r.pop(),l=m;break}case"\\":{r.push("INSIDE_STRING_ESCAPE");break}default:l=m}break}case"INSIDE_ARRAY_START":{switch(h){case"]":{l=m,r.pop();break}default:{l=m,u(h,m,"INSIDE_ARRAY_AFTER_VALUE");break}}break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(h){case",":{r.pop(),r.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{l=m,r.pop();break}default:{l=m;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{u(h,m,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{r.pop(),l=m;break}case"INSIDE_NUMBER":{switch(h){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{l=m;break}case"e":case"E":case"-":case".":break;case",":{r.pop(),r[r.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&f(h,m),r[r.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(h,m);break}case"}":{r.pop(),r[r.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(h,m);break}case"]":{r.pop(),r[r.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&f(h,m);break}default:{r.pop();break}}break}case"INSIDE_LITERAL":{const y=e.substring(a,m+1);!"false".startsWith(y)&&!"true".startsWith(y)&&!"null".startsWith(y)?(r.pop(),r[r.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?s(h,m):r[r.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&f(h,m)):l=m;break}}}let d=e.slice(0,l+1);for(let m=r.length-1;m>=0;m--)switch(r[m]){case"INSIDE_STRING":{d+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{d+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{d+="]";break}case"INSIDE_LITERAL":{const g=e.substring(a,e.length);"true".startsWith(g)?d+="true".slice(g.length):"false".startsWith(g)?d+="false".slice(g.length):"null".startsWith(g)&&(d+="null".slice(g.length))}}return d}function dC(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let r=Qm({text:e});return r.success?{value:r.value,state:"successful-parse"}:(r=Qm({text:fC(e)}),r.success?{value:r.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var da={code:"0",name:"text",parse:e=>{if(typeof e!="string")throw new Error('"text" parts expect a string value.');return{type:"text",value:e}}},pa={code:"2",name:"data",parse:e=>{if(!Array.isArray(e))throw new Error('"data" parts expect an array value.');return{type:"data",value:e}}},ha={code:"3",name:"error",parse:e=>{if(typeof e!="string")throw new Error('"error" parts expect a string value.');return{type:"error",value:e}}},ma={code:"8",name:"message_annotations",parse:e=>{if(!Array.isArray(e))throw new Error('"message_annotations" parts expect an array value.');return{type:"message_annotations",value:e}}},ga={code:"9",name:"tool_call",parse:e=>{if(e==null||typeof e!="object"||!("toolCallId"in e)||typeof e.toolCallId!="string"||!("toolName"in e)||typeof e.toolName!="string"||!("args"in e)||typeof e.args!="object")throw new Error('"tool_call" parts expect an object with a "toolCallId", "toolName", and "args" property.');return{type:"tool_call",value:e}}},ya={code:"a",name:"tool_result",parse:e=>{if(e==null||typeof e!="object"||!("toolCallId"in e)||typeof e.toolCallId!="string"||!("result"in e))throw new Error('"tool_result" parts expect an object with a "toolCallId" and a "result" property.');return{type:"tool_result",value:e}}},ba={code:"b",name:"tool_call_streaming_start",parse:e=>{if(e==null||typeof e!="object"||!("toolCallId"in e)||typeof e.toolCallId!="string"||!("toolName"in e)||typeof e.toolName!="string")throw new Error('"tool_call_streaming_start" parts expect an object with a "toolCallId" and "toolName" property.');return{type:"tool_call_streaming_start",value:e}}},Sa={code:"c",name:"tool_call_delta",parse:e=>{if(e==null||typeof e!="object"||!("toolCallId"in e)||typeof e.toolCallId!="string"||!("argsTextDelta"in e)||typeof e.argsTextDelta!="string")throw new Error('"tool_call_delta" parts expect an object with a "toolCallId" and "argsTextDelta" property.');return{type:"tool_call_delta",value:e}}},va={code:"d",name:"finish_message",parse:e=>{if(e==null||typeof e!="object"||!("finishReason"in e)||typeof e.finishReason!="string")throw new Error('"finish_message" parts expect an object with a "finishReason" property.');const r={finishReason:e.finishReason};return"usage"in e&&e.usage!=null&&typeof e.usage=="object"&&"promptTokens"in e.usage&&"completionTokens"in e.usage&&(r.usage={promptTokens:typeof e.usage.promptTokens=="number"?e.usage.promptTokens:Number.NaN,completionTokens:typeof e.usage.completionTokens=="number"?e.usage.completionTokens:Number.NaN}),{type:"finish_message",value:r}}},xa={code:"e",name:"finish_step",parse:e=>{if(e==null||typeof e!="object"||!("finishReason"in e)||typeof e.finishReason!="string")throw new Error('"finish_step" parts expect an object with a "finishReason" property.');const r={finishReason:e.finishReason,isContinued:!1};return"usage"in e&&e.usage!=null&&typeof e.usage=="object"&&"promptTokens"in e.usage&&"completionTokens"in e.usage&&(r.usage={promptTokens:typeof e.usage.promptTokens=="number"?e.usage.promptTokens:Number.NaN,completionTokens:typeof e.usage.completionTokens=="number"?e.usage.completionTokens:Number.NaN}),"isContinued"in e&&typeof e.isContinued=="boolean"&&(r.isContinued=e.isContinued),{type:"finish_step",value:r}}},pC=[da,pa,ha,ma,ga,ya,ba,Sa,va,xa],hC={[da.code]:da,[pa.code]:pa,[ha.code]:ha,[ma.code]:ma,[ga.code]:ga,[ya.code]:ya,[ba.code]:ba,[Sa.code]:Sa,[va.code]:va,[xa.code]:xa};da.name+"",da.code,pa.name+"",pa.code,ha.name+"",ha.code,ma.name+"",ma.code,ga.name+"",ga.code,ya.name+"",ya.code,ba.name+"",ba.code,Sa.name+"",Sa.code,va.name+"",va.code,xa.name+"",xa.code;var mC=pC.map(e=>e.code),gC=e=>{const r=e.indexOf(":");if(r===-1)throw new Error("Failed to parse stream string. No separator found.");const l=e.slice(0,r);if(!mC.includes(l))throw new Error(`Failed to parse stream string. Invalid code ${l}.`);const a=l,u=e.slice(r+1),s=JSON.parse(u);return hC[a].parse(s)},yC=10;function bC(e,r){const l=new Uint8Array(r);let a=0;for(const u of e)l.set(u,a),a+=u.length;return e.length=0,l}async function SC({stream:e,onTextPart:r,onDataPart:l,onErrorPart:a,onToolCallStreamingStartPart:u,onToolCallDeltaPart:s,onToolCallPart:f,onToolResultPart:d,onMessageAnnotationsPart:m,onFinishMessagePart:h,onFinishStepPart:g}){const y=e.getReader(),v=new TextDecoder,S=[];let R=0;for(;;){const{value:T}=await y.read();if(T&&(S.push(T),R+=T.length,T[T.length-1]!==yC))continue;if(S.length===0)break;const N=bC(S,R);R=0;const w=v.decode(N,{stream:!0}).split(`
|
|
104
|
-
`).filter(B=>B!=="").map(
|
|
101
|
+
*/var wm;function k2(){return wm||(wm=1,function(e){(function(){var r={}.hasOwnProperty;function a(){for(var s="",f=0;f<arguments.length;f++){var d=arguments[f];d&&(s=u(s,l(d)))}return s}function l(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return a.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var f="";for(var d in s)r.call(s,d)&&s[d]&&(f=u(f,d));return f}function u(s,f){return f?s?s+" "+f:s+f:s}e.exports?(a.default=a,e.exports=a):window.classNames=a})()}(wc)),wc.exports}var R2=k2();const cl=Tn(R2),O2={size:"medium",multiline:!1},M2={small:"small",medium:"small",large:"medium",chat:"chat",hero:"large"},Am=({size:e,theme:r,multiline:a})=>ec([(e==="small"||e==="medium")&&{...r.typography.body2},(e==="large"||e==="chat"||e==="hero")&&{".remixicon":{width:"24px",height:"24px"},...r.typography.body1},e==="medium"&&{paddingLeft:"12px",paddingRight:"12px"},e==="small"&&!a&&{height:"32px"},e==="medium"&&!a&&{height:"40px"},e==="large"&&!a&&{height:"48px"},e==="chat"&&!a&&{height:"56px"},e==="hero"&&!a&&{height:"72px"},e==="small"&&{padding:"0 8px",".Mit-AdornmentButton":{width:"32px",".remixicon":{width:"16px",height:"16px"}}},e==="medium"&&{padding:"0 12px",".Mit-AdornmentButton":{width:"40px",".remixicon":{width:"20px",height:"20px"}}},e==="large"&&{padding:"0 16px",".Mit-AdornmentButton":{width:"48px"}},e==="chat"&&{padding:"0 16px",borderRadius:"8px",borderColor:r.custom.colors.silverGrayLight,"&:hover:not(.Mui-disabled), &.Mui-focused, :hover:not(.Mui-disabled):not(.Mui-focused)":{boxShadow:"0px 8px 20px 0px rgba(120, 147, 172, 0.10)",borderColor:r.custom.colors.silverGray,outline:"none",svg:{fill:r.custom.colors.lightRed}},".Mit-AdornmentButton":{padding:"0 16px"}},e==="hero"&&{padding:"0 24px",".Mit-AdornmentButton":{width:"72px"}}]),_2=e=>({backgroundColor:"white",color:e.custom.colors.darkGray2,borderColor:e.custom.colors.silverGrayLight,borderWidth:"1px",borderStyle:"solid",borderRadius:"4px",overflow:"hidden","&.Mui-disabled":{backgroundColor:e.custom.colors.lightGray1},"&:hover:not(.Mui-disabled):not(.Mui-focused)":{borderColor:e.custom.colors.darkGray2},"&.Mui-focused":{borderColor:"transparent",outline:"2px solid currentcolor",outlineOffset:"-2px"},"&.Mui-error":{borderColor:e.custom.colors.red,outlineColor:e.custom.colors.red},"& input::placeholder, textarea::placeholder":{color:e.custom.colors.silverGrayDark,opacity:1},"& input:placeholder-shown, textarea:placeholder-shown":{textOverflow:"ellipsis"},"& textarea":{paddingTop:"8px",paddingBottom:"8px"},"&.MuiInputBase-adornedStart":{paddingLeft:"0",input:{paddingLeft:"8px"}},"&.MuiInputBase-adornedEnd":{paddingRight:"0",input:{paddingRight:"8px"}}}),D2=Object.keys({responsive:!0}),z2=tt(A2,{shouldForwardProp:e=>!D2.includes(e)})(({theme:e,size:r=O2.size,multiline:a,responsive:l})=>[_2(e),Am({size:r,theme:e,multiline:a}),l&&{[e.breakpoints.down("sm")]:Am({size:M2[r],theme:e,multiline:a})}]),N2=tt.button(({theme:e,disabled:r})=>({...e.typography.button,display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",border:"none",background:"transparent",transition:`background ${e.transitions.duration.short}ms`,cursor:r?"default":"pointer",":disabled":{cursor:"default",svg:{fill:e.custom.colors.silverGray}},":hover":{background:r?"inherit":"rgba(0, 0, 0, 0.06)"},color:e.custom.colors.silverGray,".MuiInputBase-root:hover &":{color:"inherit"},".MuiInputBase-root.Mui-focused &":{color:"inherit"},".MuiInputBase-root.Mui-disabled &":{color:"inherit"},height:"100%"})),B2=e=>e.preventDefault(),km=({className:e,...r})=>M.createElement(N2,{onMouseDown:B2,className:cl("Mit-AdornmentButton",e),...r});function Rm({theme:e,...r}){const a=gr in e?e[gr]:void 0;return ce.jsx(im,{...r,themeId:a?gr:void 0,theme:a||e})}const su={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:L2,useColorScheme:dO,getInitColorSchemeScript:pO}=zE({themeId:gr,theme:()=>ou({cssVariables:!0}),colorSchemeStorageKey:su.colorSchemeStorageKey,modeStorageKey:su.modeStorageKey,defaultColorScheme:{light:su.defaultLightColorScheme,dark:su.defaultDarkColorScheme},resolveTheme:e=>{const r={...e,typography:mm(e.palette,e.typography)};return r.unstable_sx=function(l){return hi({sx:l,theme:this})},r}}),U2=L2;function j2({theme:e,...r}){return typeof e=="function"?ce.jsx(Rm,{theme:e,...r}):"colorSchemes"in(gr in e?e[gr]:e)?ce.jsx(U2,{theme:e,...r}):ce.jsx(Rm,{theme:e,...r})}const Rt={text:{roman:400,medium:500,bold:700}},Fe=e=>`${e/16}rem`,Om={fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeightLight:Rt.text.roman,fontWeightRegular:Rt.text.roman,fontWeightMedium:Rt.text.medium,fontWeightBold:Rt.text.bold,h1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Rt.text.bold,fontStyle:"normal",fontSize:Fe(52),lineHeight:Fe(60)},h2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Rt.text.bold,fontStyle:"normal",fontSize:Fe(34),lineHeight:Fe(40)},h3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Rt.text.bold,fontStyle:"normal",fontSize:Fe(28),lineHeight:Fe(36)},h4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Rt.text.bold,fontStyle:"normal",fontSize:Fe(24),lineHeight:Fe(30)},h5:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Rt.text.medium,fontStyle:"normal",fontSize:Fe(18),lineHeight:Fe(22)},subtitle1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Rt.text.medium,fontStyle:"normal",fontSize:Fe(16),lineHeight:Fe(20)},subtitle2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Rt.text.medium,fontStyle:"normal",fontSize:Fe(14),lineHeight:Fe(18)},subtitle3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Rt.text.medium,fontStyle:"normal",fontSize:Fe(12),lineHeight:Fe(16)},subtitle4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Rt.text.medium,fontStyle:"normal",fontSize:Fe(10),lineHeight:Fe(14)},body1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Rt.text.roman,fontStyle:"normal",fontSize:Fe(16),lineHeight:Fe(20)},body2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Rt.text.roman,fontStyle:"normal",fontSize:Fe(14),lineHeight:Fe(18)},body3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Rt.text.roman,fontStyle:"normal",fontSize:Fe(12),lineHeight:Fe(16)},body4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Rt.text.roman,fontStyle:"normal",fontSize:Fe(10),lineHeight:Fe(14)},buttonLarge:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Rt.text.medium,fontStyle:"normal",fontSize:Fe(16),lineHeight:Fe(20)},button:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Rt.text.medium,fontStyle:"normal",fontSize:Fe(14),lineHeight:Fe(18),textTransform:"none"},buttonSmall:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Rt.text.medium,fontStyle:"normal",fontSize:Fe(12),lineHeight:Fe(16)}},H2={defaultProps:{variantMapping:{h1:"span",h2:"span",h3:"span",h4:"span",h5:"span",body1:"p",body2:"p",body3:"p",body4:"p",subtitle1:"p",subtitle2:"p",subtitle3:"p",subtitle4:"p",button:"span"}}};ou({typography:Om,custom:{}});const I2=tt.a({color:"inherit",textDecoration:"none"}),V2=M.forwardRef(function({Component:r,...a},l){const u=Dv(),s=r??u.custom.LinkAdapter;return M.createElement(I2,{as:s,ref:l,...a})}),$2={variant:!0,size:!0,edge:!0,startIcon:!0,endIcon:!0,responsive:!0,color:!0},Mm=e=>!$2[e],Ac={variant:"primary",size:"medium",edge:"rounded",responsive:!1},_m={small:1,medium:1,large:2},Dm={small:"small",medium:"small",large:"medium"},zm=(e,r,a)=>{const l=r?_m[e]:0;return[{boxSizing:"border-box",borderWidth:_m[e]},e==="large"&&{padding:`${14-l}px 24px`,...a.typography.buttonLarge},e==="medium"&&{padding:`${11-l}px 16px`,...a.typography.button},e==="small"&&{padding:`${8-l}px 12px`,...a.typography.buttonSmall}]},Nm=e=>{const{size:r,variant:a,edge:l,theme:u,color:s,responsive:f}={...Ac,...e},{colors:d}=u.custom,m=a==="secondary"||a==="bordered";return ec([{color:u.palette.text.primary,textAlign:"center",display:"inline-flex",justifyContent:"center",alignItems:"center",transition:`background ${u.transitions.duration.short}ms`,cursor:"pointer",":disabled":{cursor:"default"},minWidth:"100px"},...zm(r,m,u),f&&{[u.breakpoints.down("sm")]:zm(Dm[r],m,u)},a==="primary"&&{backgroundColor:d.mitRed,color:d.white,border:"none",boxShadow:"0px 2px 4px 0px rgba(37, 38, 43, 0.10), 0px 3px 8px 0px rgba(37, 38, 43, 0.12)",":hover:not(:disabled)":{backgroundColor:d.red,boxShadow:"none"},":disabled":{backgroundColor:d.silverGray,boxShadow:"none"}},a==="secondary"&&{color:d.red,backgroundColor:"transparent",borderColor:"currentcolor",borderStyle:"solid",":hover:not(:disabled)":{backgroundColor:"rgba(255, 20, 35, 0.06)"},":disabled":{color:d.silverGray}},a==="text"&&{backgroundColor:"transparent",borderStyle:"none",color:d.darkGray2,":hover:not(:disabled)":{backgroundColor:"rgba(64, 70, 76, 0.06)"},":disabled":{color:d.silverGray}},a==="bordered"&&{backgroundColor:d.white,color:d.silverGrayDark,border:`1px solid ${d.silverGrayLight}`,":hover:not(:disabled)":{backgroundColor:d.lightGray1,color:d.darkGray2},":disabled":{backgroundColor:d.lightGray2,border:`1px solid ${d.lightGray2}`,color:d.silverGrayDark}},a==="tertiary"&&{color:d.darkGray2,border:"none",backgroundColor:d.lightGray2,":hover:not(:disabled)":{backgroundColor:d.white},":disabled":{backgroundColor:d.lightGray2,color:d.silverGrayLight}},l==="rounded"&&{borderRadius:"4px"},l==="circular"&&{borderRadius:"100vh"},s==="secondary"&&{color:u.custom.colors.silverGray,borderColor:u.custom.colors.silverGray,":hover:not(:disabled)":{backgroundColor:u.custom.colors.lightGray1}}])},Bm=tt("button",{shouldForwardProp:Mm})(Nm),Lm=tt(V2,{shouldForwardProp:Mm})(Nm),Um=tt.span(({size:e,side:r})=>[{height:"1em",display:"flex",alignItems:"center"},r==="start"&&{marginLeft:"-4px",marginRight:"8px"},r==="end"&&{marginLeft:"8px",marginRight:"-4px"},{"& svg, & .MuiSvgIcon-root":{width:"1em",height:"1em",fontSize:Fe({small:16,medium:20,large:24}[e])}}]),jm=e=>{const{children:r,size:a=Ac.size}=e;return M.createElement(M.Fragment,null,e.startIcon?M.createElement(Um,{size:a,side:"start"},e.startIcon):null,r,e.endIcon?M.createElement(Um,{size:a,side:"end"},e.endIcon):null)},q2=M.forwardRef(({children:e,...r},a)=>M.createElement(Bm,{ref:a,type:"button",...r},M.createElement(jm,{...r},e)));q2.displayName="Button";const G2=M.forwardRef(({children:e,Component:r,...a},l)=>M.createElement(Lm,{Component:r,ref:l,...a},M.createElement(jm,{...a},e)));G2.displayName="ButtonLink";const Hm=e=>({minWidth:"auto",padding:0,height:{small:"32px",medium:"40px",large:"48px"}[e],width:{small:"32px",medium:"40px",large:"48px"}[e],"& svg, & .MuiSvgIcon-root":{width:"1em",height:"1em",fontSize:Fe({small:20,medium:24,large:32}[e])}}),kc=tt(M.forwardRef(function(r,a){return M.createElement(Bm,{ref:a,type:"button",...r})}))(({size:e=Ac.size,responsive:r,theme:a})=>[Hm(e),r&&{[a.breakpoints.down("sm")]:Hm(Dm[e])}]);kc.displayName="ActionButton";const Y2=kc.withComponent(({Component:e,...r})=>M.createElement(Lm,{Component:e,...r}));Y2.displayName="ActionButtonLink";const Im=({color:e="currentColor",size:r=24,className:a,...l})=>dt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:e,...l,className:"remixicon "+(a||"")},dt.createElement("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})),F2=({color:e="currentColor",size:r=24,className:a,...l})=>dt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:e,...l,className:"remixicon "+(a||"")},dt.createElement("path",{d:"M5 10C3.9 10 3 10.9 3 12C3 13.1 3.9 14 5 14C6.1 14 7 13.1 7 12C7 10.9 6.1 10 5 10ZM19 10C17.9 10 17 10.9 17 12C17 13.1 17.9 14 19 14C20.1 14 21 13.1 21 12C21 10.9 20.1 10 19 10ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10Z"})),P2=({color:e="currentColor",size:r=24,className:a,...l})=>dt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:e,...l,className:"remixicon "+(a||"")},dt.createElement("path",{d:"M1.94607 9.31543C1.42353 9.14125 1.4194 8.86022 1.95682 8.68108L21.043 2.31901C21.5715 2.14285 21.8746 2.43866 21.7265 2.95694L16.2733 22.0432C16.1223 22.5716 15.8177 22.59 15.5944 22.0876L11.9999 14L17.9999 6.00005L9.99992 12L1.94607 9.31543Z"})),X2=({color:e="currentColor",size:r=24,className:a,...l})=>dt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:e,...l,className:"remixicon "+(a||"")},dt.createElement("path",{d:"M6 5H18C18.5523 5 19 5.44772 19 6V18C19 18.5523 18.5523 19 18 19H6C5.44772 19 5 18.5523 5 18V6C5 5.44772 5.44772 5 6 5Z"})),Q2=({color:e="currentColor",size:r=24,className:a,...l})=>dt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:e,...l,className:"remixicon "+(a||"")},dt.createElement("path",{d:"M17.0007 1.20825 18.3195 3.68108 20.7923 4.99992 18.3195 6.31876 17.0007 8.79159 15.6818 6.31876 13.209 4.99992 15.6818 3.68108 17.0007 1.20825ZM10.6673 9.33325 15.6673 11.9999 10.6673 14.6666 8.00065 19.6666 5.33398 14.6666.333984 11.9999 5.33398 9.33325 8.00065 4.33325 10.6673 9.33325ZM11.4173 11.9999 9.18905 10.8115 8.00065 8.58325 6.81224 10.8115 4.58398 11.9999 6.81224 13.1883 8.00065 15.4166 9.18905 13.1883 11.4173 11.9999ZM19.6673 16.3333 18.0007 13.2083 16.334 16.3333 13.209 17.9999 16.334 19.6666 18.0007 22.7916 19.6673 19.6666 22.7923 17.9999 19.6673 16.3333Z"})),K2=({color:e="currentColor",size:r=24,className:a,...l})=>dt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:e,...l,className:"remixicon "+(a||"")},dt.createElement("path",{d:"M13.5 2C13.5 2.44425 13.3069 2.84339 13 3.11805V5H18C19.6569 5 21 6.34315 21 8V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V8C3 6.34315 4.34315 5 6 5H11V3.11805C10.6931 2.84339 10.5 2.44425 10.5 2C10.5 1.17157 11.1716 0.5 12 0.5C12.8284 0.5 13.5 1.17157 13.5 2ZM6 7C5.44772 7 5 7.44772 5 8V18C5 18.5523 5.44772 19 6 19H18C18.5523 19 19 18.5523 19 18V8C19 7.44772 18.5523 7 18 7H13H11H6ZM2 10H0V16H2V10ZM22 10H24V16H22V10ZM9 14.5C9.82843 14.5 10.5 13.8284 10.5 13C10.5 12.1716 9.82843 11.5 9 11.5C8.17157 11.5 7.5 12.1716 7.5 13C7.5 13.8284 8.17157 14.5 9 14.5ZM15 14.5C15.8284 14.5 16.5 13.8284 16.5 13C16.5 12.1716 15.8284 11.5 15 11.5C14.1716 11.5 13.5 12.1716 13.5 13C13.5 13.8284 14.1716 14.5 15 14.5Z"}));var Vm="vercel.ai.error",Z2=Symbol.for(Vm),$m,W2=class $S extends Error{constructor({name:r,message:a,cause:l}){super(a),this[$m]=!0,this.name=r,this.cause=l}static isInstance(r){return $S.hasMarker(r,Vm)}static hasMarker(r,a){const l=Symbol.for(a);return r!=null&&typeof r=="object"&&l in r&&typeof r[l]=="boolean"&&r[l]===!0}};$m=Z2;var ea=W2;function qm(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var Gm="AI_InvalidArgumentError",Ym=`vercel.ai.error.${Gm}`,J2=Symbol.for(Ym),Fm,eC=class extends ea{constructor({message:e,cause:r,argument:a}){super({name:Gm,message:e,cause:r}),this[Fm]=!0,this.argument=a}static isInstance(e){return ea.hasMarker(e,Ym)}};Fm=J2;var Pm="AI_JSONParseError",Xm=`vercel.ai.error.${Pm}`,tC=Symbol.for(Xm),Qm,Km=class extends ea{constructor({text:e,cause:r}){super({name:Pm,message:`JSON parsing failed: Text: ${e}.
|
|
102
|
+
Error message: ${qm(r)}`,cause:r}),this[Qm]=!0,this.text=e}static isInstance(e){return ea.hasMarker(e,Xm)}};Qm=tC;var Zm="AI_TypeValidationError",Wm=`vercel.ai.error.${Zm}`,nC=Symbol.for(Wm),Jm,rC=class Hp extends ea{constructor({value:r,cause:a}){super({name:Zm,message:`Type validation failed: Value: ${JSON.stringify(r)}.
|
|
103
|
+
Error message: ${qm(a)}`,cause:a}),this[Jm]=!0,this.value=r}static isInstance(r){return ea.hasMarker(r,Wm)}static wrap({value:r,cause:a}){return Hp.isInstance(a)&&a.value===r?a:new Hp({value:r,cause:a})}};Jm=nC;var eg=rC;let iC=(e,r=21)=>(a=r)=>{let l="",u=a;for(;u--;)l+=e[Math.random()*e.length|0];return l};var mi={exports:{}},tg;function aC(){if(tg)return mi.exports;tg=1;const e=typeof Buffer<"u",r=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,a=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function l(d,m,h){h==null&&m!==null&&typeof m=="object"&&(h=m,m=void 0),e&&Buffer.isBuffer(d)&&(d=d.toString()),d&&d.charCodeAt(0)===65279&&(d=d.slice(1));const g=JSON.parse(d,m);if(g===null||typeof g!="object")return g;const y=h&&h.protoAction||"error",v=h&&h.constructorAction||"error";if(y==="ignore"&&v==="ignore")return g;if(y!=="ignore"&&v!=="ignore"){if(r.test(d)===!1&&a.test(d)===!1)return g}else if(y!=="ignore"&&v==="ignore"){if(r.test(d)===!1)return g}else if(a.test(d)===!1)return g;return u(g,{protoAction:y,constructorAction:v,safe:h&&h.safe})}function u(d,{protoAction:m="error",constructorAction:h="error",safe:g}={}){let y=[d];for(;y.length;){const v=y;y=[];for(const S of v){if(m!=="ignore"&&Object.prototype.hasOwnProperty.call(S,"__proto__")){if(g===!0)return null;if(m==="error")throw new SyntaxError("Object contains forbidden prototype property");delete S.__proto__}if(h!=="ignore"&&Object.prototype.hasOwnProperty.call(S,"constructor")&&Object.prototype.hasOwnProperty.call(S.constructor,"prototype")){if(g===!0)return null;if(h==="error")throw new SyntaxError("Object contains forbidden prototype property");delete S.constructor}for(const A in S){const T=S[A];T&&typeof T=="object"&&y.push(T)}}}return d}function s(d,m,h){const g=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return l(d,m,h)}finally{Error.stackTraceLimit=g}}function f(d,m){const h=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return l(d,m,{safe:!0})}catch{return null}finally{Error.stackTraceLimit=h}}return mi.exports=s,mi.exports.default=s,mi.exports.parse=s,mi.exports.safeParse=f,mi.exports.scan=u,mi.exports}var lC=aC();const oC=Tn(lC);var uC=({prefix:e,size:r=16,alphabet:a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:l="-"}={})=>{const u=iC(a,r);if(e==null)return u;if(a.includes(l))throw new eC({argument:"separator",message:`The separator "${l}" must not be part of the alphabet "${a}".`});return s=>`${e}${l}${u(s)}`},ng=uC(),Rc=Symbol.for("vercel.ai.validator");function sC(e){return{[Rc]:!0,validate:e}}function cC(e){return typeof e=="object"&&e!==null&&Rc in e&&e[Rc]===!0&&"validate"in e}function fC(e){return cC(e)?e:dC(e)}function dC(e){return sC(r=>{const a=e.safeParse(r);return a.success?{success:!0,value:a.data}:{success:!1,error:a.error}})}function pC({value:e,schema:r}){const a=fC(r);try{if(a.validate==null)return{success:!0,value:e};const l=a.validate(e);return l.success?l:{success:!1,error:eg.wrap({value:e,cause:l.error})}}catch(l){return{success:!1,error:eg.wrap({value:e,cause:l})}}}function rg({text:e,schema:r}){try{const a=oC.parse(e);return r==null?{success:!0,value:a}:pC({value:a,schema:r})}catch(a){return{success:!1,error:Km.isInstance(a)?a:new Km({text:e,cause:a})}}}var fl={code:"0",name:"text",parse:e=>{if(typeof e!="string")throw new Error('"text" parts expect a string value.');return{type:"text",value:e}}},dl={code:"3",name:"error",parse:e=>{if(typeof e!="string")throw new Error('"error" parts expect a string value.');return{type:"error",value:e}}},pl={code:"4",name:"assistant_message",parse:e=>{if(e==null||typeof e!="object"||!("id"in e)||!("role"in e)||!("content"in e)||typeof e.id!="string"||typeof e.role!="string"||e.role!=="assistant"||!Array.isArray(e.content)||!e.content.every(r=>r!=null&&typeof r=="object"&&"type"in r&&r.type==="text"&&"text"in r&&r.text!=null&&typeof r.text=="object"&&"value"in r.text&&typeof r.text.value=="string"))throw new Error('"assistant_message" parts expect an object with an "id", "role", and "content" property.');return{type:"assistant_message",value:e}}},hl={code:"5",name:"assistant_control_data",parse:e=>{if(e==null||typeof e!="object"||!("threadId"in e)||!("messageId"in e)||typeof e.threadId!="string"||typeof e.messageId!="string")throw new Error('"assistant_control_data" parts expect an object with a "threadId" and "messageId" property.');return{type:"assistant_control_data",value:{threadId:e.threadId,messageId:e.messageId}}}},ml={code:"6",name:"data_message",parse:e=>{if(e==null||typeof e!="object"||!("role"in e)||!("data"in e)||typeof e.role!="string"||e.role!=="data")throw new Error('"data_message" parts expect an object with a "role" and "data" property.');return{type:"data_message",value:e}}},hC=[fl,dl,pl,hl,ml];fl.code+"",dl.code+"",pl.code+"",hl.code+"",ml.code+"",fl.name+"",fl.code,dl.name+"",dl.code,pl.name+"",pl.code,hl.name+"",hl.code,ml.name+"",ml.code,hC.map(e=>e.code);function mC(e){const r=["ROOT"];let a=-1,l=null;function u(m,h,g){switch(m){case'"':{a=h,r.pop(),r.push(g),r.push("INSIDE_STRING");break}case"f":case"t":case"n":{a=h,l=h,r.pop(),r.push(g),r.push("INSIDE_LITERAL");break}case"-":{r.pop(),r.push(g),r.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{a=h,r.pop(),r.push(g),r.push("INSIDE_NUMBER");break}case"{":{a=h,r.pop(),r.push(g),r.push("INSIDE_OBJECT_START");break}case"[":{a=h,r.pop(),r.push(g),r.push("INSIDE_ARRAY_START");break}}}function s(m,h){switch(m){case",":{r.pop(),r.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{a=h,r.pop();break}}}function f(m,h){switch(m){case",":{r.pop(),r.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{a=h,r.pop();break}}}for(let m=0;m<e.length;m++){const h=e[m];switch(r[r.length-1]){case"ROOT":u(h,m,"FINISH");break;case"INSIDE_OBJECT_START":{switch(h){case'"':{r.pop(),r.push("INSIDE_OBJECT_KEY");break}case"}":{a=m,r.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{switch(h){case'"':{r.pop(),r.push("INSIDE_OBJECT_KEY");break}}break}case"INSIDE_OBJECT_KEY":{switch(h){case'"':{r.pop(),r.push("INSIDE_OBJECT_AFTER_KEY");break}}break}case"INSIDE_OBJECT_AFTER_KEY":{switch(h){case":":{r.pop(),r.push("INSIDE_OBJECT_BEFORE_VALUE");break}}break}case"INSIDE_OBJECT_BEFORE_VALUE":{u(h,m,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{s(h,m);break}case"INSIDE_STRING":{switch(h){case'"':{r.pop(),a=m;break}case"\\":{r.push("INSIDE_STRING_ESCAPE");break}default:a=m}break}case"INSIDE_ARRAY_START":{switch(h){case"]":{a=m,r.pop();break}default:{a=m,u(h,m,"INSIDE_ARRAY_AFTER_VALUE");break}}break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(h){case",":{r.pop(),r.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{a=m,r.pop();break}default:{a=m;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{u(h,m,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{r.pop(),a=m;break}case"INSIDE_NUMBER":{switch(h){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{a=m;break}case"e":case"E":case"-":case".":break;case",":{r.pop(),r[r.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&f(h,m),r[r.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(h,m);break}case"}":{r.pop(),r[r.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(h,m);break}case"]":{r.pop(),r[r.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&f(h,m);break}default:{r.pop();break}}break}case"INSIDE_LITERAL":{const y=e.substring(l,m+1);!"false".startsWith(y)&&!"true".startsWith(y)&&!"null".startsWith(y)?(r.pop(),r[r.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?s(h,m):r[r.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&f(h,m)):a=m;break}}}let d=e.slice(0,a+1);for(let m=r.length-1;m>=0;m--)switch(r[m]){case"INSIDE_STRING":{d+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{d+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{d+="]";break}case"INSIDE_LITERAL":{const g=e.substring(l,e.length);"true".startsWith(g)?d+="true".slice(g.length):"false".startsWith(g)?d+="false".slice(g.length):"null".startsWith(g)&&(d+="null".slice(g.length))}}return d}function gC(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let r=rg({text:e});return r.success?{value:r.value,state:"successful-parse"}:(r=rg({text:mC(e)}),r.success?{value:r.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var gl={code:"0",name:"text",parse:e=>{if(typeof e!="string")throw new Error('"text" parts expect a string value.');return{type:"text",value:e}}},yl={code:"2",name:"data",parse:e=>{if(!Array.isArray(e))throw new Error('"data" parts expect an array value.');return{type:"data",value:e}}},bl={code:"3",name:"error",parse:e=>{if(typeof e!="string")throw new Error('"error" parts expect a string value.');return{type:"error",value:e}}},Sl={code:"8",name:"message_annotations",parse:e=>{if(!Array.isArray(e))throw new Error('"message_annotations" parts expect an array value.');return{type:"message_annotations",value:e}}},vl={code:"9",name:"tool_call",parse:e=>{if(e==null||typeof e!="object"||!("toolCallId"in e)||typeof e.toolCallId!="string"||!("toolName"in e)||typeof e.toolName!="string"||!("args"in e)||typeof e.args!="object")throw new Error('"tool_call" parts expect an object with a "toolCallId", "toolName", and "args" property.');return{type:"tool_call",value:e}}},xl={code:"a",name:"tool_result",parse:e=>{if(e==null||typeof e!="object"||!("toolCallId"in e)||typeof e.toolCallId!="string"||!("result"in e))throw new Error('"tool_result" parts expect an object with a "toolCallId" and a "result" property.');return{type:"tool_result",value:e}}},El={code:"b",name:"tool_call_streaming_start",parse:e=>{if(e==null||typeof e!="object"||!("toolCallId"in e)||typeof e.toolCallId!="string"||!("toolName"in e)||typeof e.toolName!="string")throw new Error('"tool_call_streaming_start" parts expect an object with a "toolCallId" and "toolName" property.');return{type:"tool_call_streaming_start",value:e}}},Cl={code:"c",name:"tool_call_delta",parse:e=>{if(e==null||typeof e!="object"||!("toolCallId"in e)||typeof e.toolCallId!="string"||!("argsTextDelta"in e)||typeof e.argsTextDelta!="string")throw new Error('"tool_call_delta" parts expect an object with a "toolCallId" and "argsTextDelta" property.');return{type:"tool_call_delta",value:e}}},Tl={code:"d",name:"finish_message",parse:e=>{if(e==null||typeof e!="object"||!("finishReason"in e)||typeof e.finishReason!="string")throw new Error('"finish_message" parts expect an object with a "finishReason" property.');const r={finishReason:e.finishReason};return"usage"in e&&e.usage!=null&&typeof e.usage=="object"&&"promptTokens"in e.usage&&"completionTokens"in e.usage&&(r.usage={promptTokens:typeof e.usage.promptTokens=="number"?e.usage.promptTokens:Number.NaN,completionTokens:typeof e.usage.completionTokens=="number"?e.usage.completionTokens:Number.NaN}),{type:"finish_message",value:r}}},wl={code:"e",name:"finish_step",parse:e=>{if(e==null||typeof e!="object"||!("finishReason"in e)||typeof e.finishReason!="string")throw new Error('"finish_step" parts expect an object with a "finishReason" property.');const r={finishReason:e.finishReason,isContinued:!1};return"usage"in e&&e.usage!=null&&typeof e.usage=="object"&&"promptTokens"in e.usage&&"completionTokens"in e.usage&&(r.usage={promptTokens:typeof e.usage.promptTokens=="number"?e.usage.promptTokens:Number.NaN,completionTokens:typeof e.usage.completionTokens=="number"?e.usage.completionTokens:Number.NaN}),"isContinued"in e&&typeof e.isContinued=="boolean"&&(r.isContinued=e.isContinued),{type:"finish_step",value:r}}},yC=[gl,yl,bl,Sl,vl,xl,El,Cl,Tl,wl],bC={[gl.code]:gl,[yl.code]:yl,[bl.code]:bl,[Sl.code]:Sl,[vl.code]:vl,[xl.code]:xl,[El.code]:El,[Cl.code]:Cl,[Tl.code]:Tl,[wl.code]:wl};gl.name+"",gl.code,yl.name+"",yl.code,bl.name+"",bl.code,Sl.name+"",Sl.code,vl.name+"",vl.code,xl.name+"",xl.code,El.name+"",El.code,Cl.name+"",Cl.code,Tl.name+"",Tl.code,wl.name+"",wl.code;var SC=yC.map(e=>e.code),vC=e=>{const r=e.indexOf(":");if(r===-1)throw new Error("Failed to parse stream string. No separator found.");const a=e.slice(0,r);if(!SC.includes(a))throw new Error(`Failed to parse stream string. Invalid code ${a}.`);const l=a,u=e.slice(r+1),s=JSON.parse(u);return bC[l].parse(s)},xC=10;function EC(e,r){const a=new Uint8Array(r);let l=0;for(const u of e)a.set(u,l),l+=u.length;return e.length=0,a}async function CC({stream:e,onTextPart:r,onDataPart:a,onErrorPart:l,onToolCallStreamingStartPart:u,onToolCallDeltaPart:s,onToolCallPart:f,onToolResultPart:d,onMessageAnnotationsPart:m,onFinishMessagePart:h,onFinishStepPart:g}){const y=e.getReader(),v=new TextDecoder,S=[];let A=0;for(;;){const{value:T}=await y.read();if(T&&(S.push(T),A+=T.length,T[T.length-1]!==xC))continue;if(S.length===0)break;const N=EC(S,A);A=0;const w=v.decode(N,{stream:!0}).split(`
|
|
104
|
+
`).filter(B=>B!=="").map(vC);for(const{type:B,value:k}of w)switch(B){case"text":await(r==null?void 0:r(k));break;case"data":await(a==null?void 0:a(k));break;case"error":await(l==null?void 0:l(k));break;case"message_annotations":await(m==null?void 0:m(k));break;case"tool_call_streaming_start":await(u==null?void 0:u(k));break;case"tool_call_delta":await(s==null?void 0:s(k));break;case"tool_call":await(f==null?void 0:f(k));break;case"tool_result":await(d==null?void 0:d(k));break;case"finish_message":await(h==null?void 0:h(k));break;case"finish_step":await(g==null?void 0:g(k));break;default:{const z=B;throw new Error(`Unknown stream part type: ${z}`)}}}}function TC({promptTokens:e,completionTokens:r}){return{promptTokens:e,completionTokens:r,totalTokens:e+r}}async function wC({stream:e,update:r,onToolCall:a,onFinish:l,generateId:u=ng,getCurrentDate:s=()=>new Date}){const f=s();let d,m=!0;const h=[],g=[];let y;const v={};let S={completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},A="unknown";function T(){const w=[...g];if(d==null){r(h,w);return}y!=null&&y.length&&(d.annotations=y);const B={...JSON.parse(JSON.stringify(d)),revisionId:u(),createdAt:d.createdAt};r([...h,B],w)}function N(){return(m||d==null)&&(d!=null&&h.push(d),m=!1,d={id:u(),role:"assistant",content:"",createdAt:f}),d}await CC({stream:e,onTextPart(w){const B=N();d={...B,content:B.content+w},T()},onToolCallStreamingStartPart(w){const B=N();B.toolInvocations==null&&(B.toolInvocations=[]),v[w.toolCallId]={text:"",toolName:w.toolName,index:B.toolInvocations.length},B.toolInvocations.push({state:"partial-call",toolCallId:w.toolCallId,toolName:w.toolName,args:void 0}),T()},onToolCallDeltaPart(w){const B=N(),k=v[w.toolCallId];k.text+=w.argsTextDelta;const{value:z}=gC(k.text);B.toolInvocations[k.index]={state:"partial-call",toolCallId:w.toolCallId,toolName:k.toolName,args:z},T()},async onToolCallPart(w){const B=N();if(v[w.toolCallId]!=null?B.toolInvocations[v[w.toolCallId].index]={state:"call",...w}:(B.toolInvocations==null&&(B.toolInvocations=[]),B.toolInvocations.push({state:"call",...w})),a){const k=await a({toolCall:w});k!=null&&(B.toolInvocations[B.toolInvocations.length-1]={state:"result",...w,result:k})}T()},onToolResultPart(w){const k=N().toolInvocations;if(k==null)throw new Error("tool_result must be preceded by a tool_call");const z=k.findIndex(R=>R.toolCallId===w.toolCallId);if(z===-1)throw new Error("tool_result must be preceded by a tool_call with the same toolCallId");k[z]={...k[z],state:"result",...w},T()},onDataPart(w){g.push(...w),T()},onMessageAnnotationsPart(w){y==null?y=[...w]:y.push(...w),T()},onFinishStepPart(w){m=!w.isContinued},onFinishMessagePart(w){A=w.finishReason,w.usage!=null&&(S=TC(w.usage))},onErrorPart(w){throw new Error(w)}}),l==null||l({message:d,finishReason:A,usage:S})}async function AC({stream:e,onTextPart:r}){const a=e.pipeThrough(new TextDecoderStream).getReader();for(;;){const{done:l,value:u}=await a.read();if(l)break;await r(u)}}var kC=()=>fetch;async function RC({api:e,body:r,streamProtocol:a="data",credentials:l,headers:u,abortController:s,restoreMessagesOnFailure:f,onResponse:d,onUpdate:m,onFinish:h,onToolCall:g,generateId:y,fetch:v=kC()}){var S,A;const T=await v(e,{method:"POST",body:JSON.stringify(r),headers:{"Content-Type":"application/json",...u},signal:(S=s==null?void 0:s())==null?void 0:S.signal,credentials:l}).catch(N=>{throw f(),N});if(d)try{await d(T)}catch(N){throw N}if(!T.ok)throw f(),new Error((A=await T.text())!=null?A:"Failed to fetch the chat response.");if(!T.body)throw new Error("The response body is empty.");switch(a){case"text":{const N={id:y(),createdAt:new Date,role:"assistant",content:""};await AC({stream:T.body,onTextPart:w=>{N.content+=w,m([{...N}],[])}}),h==null||h(N,{usage:{completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},finishReason:"unknown"});return}case"data":{await wC({stream:T.body,update:m,onToolCall:g,onFinish({message:N,finishReason:w,usage:B}){h&&N!=null&&h(N,{usage:B,finishReason:w})},generateId:y});return}default:{const N=a;throw new Error(`Unknown stream protocol: ${N}`)}}}async function ig(e){if(!e)return[];if(e instanceof FileList)return Promise.all(Array.from(e).map(async r=>{const{name:a,type:l}=r,u=await new Promise((s,f)=>{const d=new FileReader;d.onload=m=>{var h;s((h=m.target)==null?void 0:h.result)},d.onerror=m=>f(m),d.readAsDataURL(r)});return{name:a,contentType:l,url:u}}));if(Array.isArray(e))return e;throw new Error("Invalid attachments type")}var Oc={exports:{}},Mc={};/**
|
|
105
105
|
* @license React
|
|
106
106
|
* use-sync-external-store-shim.production.js
|
|
107
107
|
*
|
|
@@ -109,20 +109,20 @@ Error message: ${Bm(l)}`,cause:l}),this[Ym]=!0,this.value=r}static isInstance(r)
|
|
|
109
109
|
*
|
|
110
110
|
* This source code is licensed under the MIT license found in the
|
|
111
111
|
* LICENSE file in the root directory of this source tree.
|
|
112
|
-
*/var Zm;function wC(){if(Zm)return kc;Zm=1;var e=zo();function r(y,v){return y===v&&(y!==0||1/y===1/v)||y!==y&&v!==v}var l=typeof Object.is=="function"?Object.is:r,a=e.useState,u=e.useEffect,s=e.useLayoutEffect,f=e.useDebugValue;function d(y,v){var S=v(),R=a({inst:{value:S,getSnapshot:v}}),T=R[0].inst,N=R[1];return s(function(){T.value=S,T.getSnapshot=v,m(T)&&N({inst:T})},[y,S,v]),u(function(){return m(T)&&N({inst:T}),y(function(){m(T)&&N({inst:T})})},[y]),f(S),S}function m(y){var v=y.getSnapshot;y=y.value;try{var S=v();return!l(y,S)}catch{return!0}}function h(y,v){return v()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:d;return kc.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,kc}var Wm;function AC(){return Wm||(Wm=1,Ac.exports=wC()),Ac.exports}var kC=AC();const Ur=()=>{},rn=Ur(),Rc=Object,Fe=e=>e===rn,rr=e=>typeof e=="function",jr=(e,r)=>({...e,...r}),RC=e=>rr(e.then),ou=new WeakMap;let OC=0;const Ea=e=>{const r=typeof e,l=e&&e.constructor,a=l==Date;let u,s;if(Rc(e)===e&&!a&&l!=RegExp){if(u=ou.get(e),u)return u;if(u=++OC+"~",ou.set(e,u),l==Array){for(u="@",s=0;s<e.length;s++)u+=Ea(e[s])+",";ou.set(e,u)}if(l==Rc){u="#";const f=Rc.keys(e).sort();for(;!Fe(s=f.pop());)Fe(e[s])||(u+=s+":"+Ea(e[s])+",");ou.set(e,u)}}else u=a?e.toJSON():r=="symbol"?e.toString():r=="string"?JSON.stringify(e):""+e;return u},mr=new WeakMap,Oc={},uu={},Mc="undefined",su=typeof window!=Mc,_c=typeof document!=Mc,MC=()=>su&&typeof window.requestAnimationFrame!=Mc,Jm=(e,r)=>{const l=mr.get(e);return[()=>!Fe(r)&&e.get(r)||Oc,a=>{if(!Fe(r)){const u=e.get(r);r in uu||(uu[r]=u),l[5](r,jr(u,a),u||Oc)}},l[6],()=>!Fe(r)&&r in uu?uu[r]:!Fe(r)&&e.get(r)||Oc]};let Dc=!0;const _C=()=>Dc,[zc,Nc]=su&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Ur,Ur],DC=()=>{const e=_c&&document.visibilityState;return Fe(e)||e!=="hidden"},zC=e=>(_c&&document.addEventListener("visibilitychange",e),zc("focus",e),()=>{_c&&document.removeEventListener("visibilitychange",e),Nc("focus",e)}),NC=e=>{const r=()=>{Dc=!0,e()},l=()=>{Dc=!1};return zc("online",r),zc("offline",l),()=>{Nc("online",r),Nc("offline",l)}},BC={isOnline:_C,isVisible:DC},LC={initFocus:zC,initReconnect:NC},eg=!ft.useId,Ca=!su||"Deno"in window,UC=e=>MC()?window.requestAnimationFrame(e):setTimeout(e,1),Bc=Ca?M.useEffect:M.useLayoutEffect,Lc=typeof navigator<"u"&&navigator.connection,tg=!Ca&&Lc&&(["slow-2g","2g"].includes(Lc.effectiveType)||Lc.saveData),Uc=e=>{if(rr(e))try{e=e()}catch{e=""}const r=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Ea(e):"",[e,r]};let jC=0;const jc=()=>++jC,ng=0,rg=1,ig=2;var Ta={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:ng,MUTATE_EVENT:ig,RECONNECT_EVENT:rg};async function lg(...e){const[r,l,a,u]=e,s=jr({populateCache:!0,throwOnError:!0},typeof u=="boolean"?{revalidate:u}:u||{});let f=s.populateCache;const d=s.rollbackOnError;let m=s.optimisticData;const h=v=>typeof d=="function"?d(v):d!==!1,g=s.throwOnError;if(rr(l)){const v=l,S=[],R=r.keys();for(const T of R)!/^\$(inf|sub)\$/.test(T)&&v(r.get(T)._k)&&S.push(T);return Promise.all(S.map(y))}return y(l);async function y(v){const[S]=Uc(v);if(!S)return;const[R,T]=Jm(r,S),[N,w,B,k]=mr.get(r),z=()=>{const F=N[S];return(rr(s.revalidate)?s.revalidate(R().data,v):s.revalidate!==!1)&&(delete B[S],delete k[S],F&&F[0])?F[0](ig).then(()=>R().data):R().data};if(e.length<3)return z();let A=a,_;const H=jc();w[S]=[H,0];const ne=!Fe(m),V=R(),E=V.data,I=V._c,Y=Fe(I)?E:I;if(ne&&(m=rr(m)?m(Y,E):m,T({data:m,_c:Y})),rr(A))try{A=A(Y)}catch(F){_=F}if(A&&RC(A))if(A=await A.catch(F=>{_=F}),H!==w[S][0]){if(_)throw _;return A}else _&&ne&&h(_)&&(f=!0,T({data:Y,_c:rn}));if(f&&!_)if(rr(f)){const F=f(A,Y);T({data:F,error:rn,_c:rn})}else T({data:A,error:rn,_c:rn});if(w[S][1]=jc(),Promise.resolve(z()).then(()=>{T({_c:rn})}),_){if(g)throw _;return}return A}}const ag=(e,r)=>{for(const l in e)e[l][0]&&e[l][0](r)},HC=(e,r)=>{if(!mr.has(e)){const l=jr(LC,r),a={},u=lg.bind(rn,e);let s=Ur;const f={},d=(g,y)=>{const v=f[g]||[];return f[g]=v,v.push(y),()=>v.splice(v.indexOf(y),1)},m=(g,y,v)=>{e.set(g,y);const S=f[g];if(S)for(const R of S)R(y,v)},h=()=>{if(!mr.has(e)&&(mr.set(e,[a,{},{},{},u,m,d]),!Ca)){const g=l.initFocus(setTimeout.bind(rn,ag.bind(rn,a,ng))),y=l.initReconnect(setTimeout.bind(rn,ag.bind(rn,a,rg)));s=()=>{g&&g(),y&&y(),mr.delete(e)}}};return h(),[e,u,h,s]}return[e,mr.get(e)[4]]},IC=(e,r,l,a,u)=>{const s=l.errorRetryCount,f=u.retryCount,d=~~((Math.random()+.5)*(1<<(f<8?f:8)))*l.errorRetryInterval;!Fe(s)&&f>s||setTimeout(a,d,u)},VC=(e,r)=>Ea(e)==Ea(r),[og,qC]=HC(new Map),$C=jr({onLoadingSlow:Ur,onSuccess:Ur,onError:Ur,onErrorRetry:IC,onDiscarded:Ur,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:tg?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:tg?5e3:3e3,compare:VC,isPaused:()=>!1,cache:og,mutate:qC,fallback:{}},BC),GC=(e,r)=>{const l=jr(e,r);if(r){const{use:a,fallback:u}=e,{use:s,fallback:f}=r;a&&s&&(l.use=a.concat(s)),u&&f&&(l.fallback=jr(u,f))}return l},YC=M.createContext({}),FC="$inf$",ug=su&&window.__SWR_DEVTOOLS_USE__,PC=ug?window.__SWR_DEVTOOLS_USE__:[],XC=()=>{ug&&(window.__SWR_DEVTOOLS_REACT__=ft)},QC=e=>rr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],KC=()=>jr($C,M.useContext(YC)),ZC=e=>(r,l,a)=>e(r,l&&((...s)=>{const[f]=Uc(r),[,,,d]=mr.get(og);if(f.startsWith(FC))return l(...s);const m=d[f];return Fe(m)?l(...s):(delete d[f],m)}),a),WC=PC.concat(ZC),JC=e=>function(...l){const a=KC(),[u,s,f]=QC(l),d=GC(a,f);let m=e;const{use:h}=d,g=(h||[]).concat(WC);for(let y=g.length;y--;)m=g[y](m);return m(u,s||d.fetcher||null,d)},eT=(e,r,l)=>{const a=r[e]||(r[e]=[]);return a.push(l),()=>{const u=a.indexOf(l);u>=0&&(a[u]=a[a.length-1],a.pop())}};XC();const sg=ft.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(r=>{e.status="fulfilled",e.value=r},r=>{e.status="rejected",e.reason=r}),e)}),Hc={dedupe:!0},cu=JC((e,r,l)=>{const{cache:a,compare:u,suspense:s,fallbackData:f,revalidateOnMount:d,revalidateIfStale:m,refreshInterval:h,refreshWhenHidden:g,refreshWhenOffline:y,keepPreviousData:v}=l,[S,R,T,N]=mr.get(a),[w,B]=Uc(e),k=M.useRef(!1),z=M.useRef(!1),A=M.useRef(w),_=M.useRef(r),H=M.useRef(l),ne=()=>H.current,V=()=>ne().isVisible()&&ne().isOnline(),[E,I,Y,F]=Jm(a,w),P=M.useRef({}).current,ee=Fe(f)?l.fallback[w]:f,$=(me,ge)=>{for(const fe in P){const Ee=fe;if(Ee==="data"){if(!u(me[Ee],ge[Ee])&&(!Fe(me[Ee])||!u(ye,ge[Ee])))return!1}else if(ge[Ee]!==me[Ee])return!1}return!0},Z=M.useMemo(()=>{const me=!w||!r?!1:Fe(d)?ne().isPaused()||s?!1:Fe(m)?!0:m:d,ge=Pe=>{const ht=jr(Pe);return delete ht._k,me?{isValidating:!0,isLoading:!0,...ht}:ht},fe=E(),Ee=F(),qe=ge(fe),Le=fe===Ee?qe:ge(Ee);let Oe=qe;return[()=>{const Pe=ge(E());return $(Pe,Oe)?(Oe.data=Pe.data,Oe.isLoading=Pe.isLoading,Oe.isValidating=Pe.isValidating,Oe.error=Pe.error,Oe):(Oe=Pe,Pe)},()=>Le]},[a,w]),Q=kC.useSyncExternalStore(M.useCallback(me=>Y(w,(ge,fe)=>{$(fe,ge)||me()}),[a,w]),Z[0],Z[1]),ue=!k.current,x=S[w]&&S[w].length>0,K=Q.data,se=Fe(K)?ee:K,O=Q.error,ie=M.useRef(se),ye=v?Fe(K)?ie.current:K:se,he=x&&!Fe(O)?!1:ue&&!Fe(d)?d:ne().isPaused()?!1:s?Fe(se)?!1:m:Fe(se)||m,Be=!!(w&&r&&ue&&he),Ce=Fe(Q.isValidating)?Be:Q.isValidating,ke=Fe(Q.isLoading)?Be:Q.isLoading,pe=M.useCallback(async me=>{const ge=_.current;if(!w||!ge||z.current||ne().isPaused())return!1;let fe,Ee,qe=!0;const Le=me||{},Oe=!T[w]||!Le.dedupe,Pe=()=>eg?!z.current&&w===A.current&&k.current:w===A.current,ht={isValidating:!1,isLoading:!1},Qt=()=>{I(ht)},gn=()=>{const ze=T[w];ze&&ze[1]===Ee&&delete T[w]},xe={isValidating:!0};Fe(E().data)&&(xe.isLoading=!0);try{if(Oe&&(I(xe),l.loadingTimeout&&Fe(E().data)&&setTimeout(()=>{qe&&Pe()&&ne().onLoadingSlow(w,l)},l.loadingTimeout),T[w]=[ge(B),jc()]),[fe,Ee]=T[w],fe=await fe,Oe&&setTimeout(gn,l.dedupingInterval),!T[w]||T[w][1]!==Ee)return Oe&&Pe()&&ne().onDiscarded(w),!1;ht.error=rn;const ze=R[w];if(!Fe(ze)&&(Ee<=ze[0]||Ee<=ze[1]||ze[1]===0))return Qt(),Oe&&Pe()&&ne().onDiscarded(w),!1;const Rt=E().data;ht.data=u(Rt,fe)?Rt:fe,Oe&&Pe()&&ne().onSuccess(fe,w,l)}catch(ze){gn();const Rt=ne(),{shouldRetryOnError:X}=Rt;Rt.isPaused()||(ht.error=ze,Oe&&Pe()&&(Rt.onError(ze,w,Rt),(X===!0||rr(X)&&X(ze))&&(!ne().revalidateOnFocus||!ne().revalidateOnReconnect||V())&&Rt.onErrorRetry(ze,w,Rt,le=>{const de=S[w];de&&de[0]&&de[0](Ta.ERROR_REVALIDATE_EVENT,le)},{retryCount:(Le.retryCount||0)+1,dedupe:!0})))}return qe=!1,Qt(),!0},[w,a]),De=M.useCallback((...me)=>lg(a,A.current,...me),[]);if(Bc(()=>{_.current=r,H.current=l,Fe(K)||(ie.current=K)}),Bc(()=>{if(!w)return;const me=pe.bind(rn,Hc);let ge=0;const Ee=eT(w,S,(qe,Le={})=>{if(qe==Ta.FOCUS_EVENT){const Oe=Date.now();ne().revalidateOnFocus&&Oe>ge&&V()&&(ge=Oe+ne().focusThrottleInterval,me())}else if(qe==Ta.RECONNECT_EVENT)ne().revalidateOnReconnect&&V()&&me();else{if(qe==Ta.MUTATE_EVENT)return pe();if(qe==Ta.ERROR_REVALIDATE_EVENT)return pe(Le)}});return z.current=!1,A.current=w,k.current=!0,I({_k:B}),he&&(Fe(se)||Ca?me():UC(me)),()=>{z.current=!0,Ee()}},[w]),Bc(()=>{let me;function ge(){const Ee=rr(h)?h(E().data):h;Ee&&me!==-1&&(me=setTimeout(fe,Ee))}function fe(){!E().error&&(g||ne().isVisible())&&(y||ne().isOnline())?pe(Hc).then(ge):ge()}return ge(),()=>{me&&(clearTimeout(me),me=-1)}},[h,g,y,w]),M.useDebugValue(ye),s&&Fe(se)&&w){if(!eg&&Ca)throw new Error("Fallback data is required when using suspense in SSR.");_.current=r,H.current=l,z.current=!1;const me=N[w];if(!Fe(me)){const ge=De(me);sg(ge)}if(Fe(O)){const ge=pe(Hc);Fe(ye)||(ge.status="fulfilled",ge.value=!0),sg(ge)}else throw O}return{mutate:De,get data(){return P.data=!0,ye},get error(){return P.error=!0,O},get isValidating(){return P.isValidating=!0,Ce},get isLoading(){return P.isLoading=!0,ke}}});var Ic,cg;function tT(){if(cg)return Ic;cg=1;function e(r,l){if(typeof r!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof r}\`.`);let a,u=0;return function(...f){clearTimeout(a);const d=Date.now(),m=d-u,h=l-m;h<=0?(u=d,r.apply(this,f)):a=setTimeout(()=>{u=Date.now(),r.apply(this,f)},h)}}return Ic=e,Ic}var nT=tT();const rT=Cn(nT);function fg(e,r){return r!=null?rT(e,r):e}var iT=async(e,r,l,a,u,s,f,d,m,h,g,y,v,S,R,T,N)=>{var w;const B=f.current;l(r.messages,!1);const k=S?r.messages:r.messages.map(({role:A,content:_,experimental_attachments:H,data:ne,annotations:V,toolInvocations:E})=>({role:A,content:_,...H!==void 0&&{experimental_attachments:H},...ne!==void 0&&{data:ne},...V!==void 0&&{annotations:V},...E!==void 0&&{toolInvocations:E}})),z=u.current;return await TC({api:e,body:(w=R==null?void 0:R({messages:r.messages,requestData:r.data,requestBody:r.body}))!=null?w:{messages:k,data:r.data,...s.current.body,...r.body},streamProtocol:h,credentials:s.current.credentials,headers:{...s.current.headers,...r.headers},abortController:()=>d.current,restoreMessagesOnFailure(){N||l(B,!1)},onResponse:y,onUpdate(A,_){l([...r.messages,...A],!1),_!=null&&_.length&&a([...z??[],..._],!1)},onToolCall:v,onFinish:g,generateId:m,fetch:T})};function lT({api:e="/api/chat",id:r,initialMessages:l,initialInput:a="",sendExtraMessageFields:u,onToolCall:s,experimental_prepareRequestBody:f,maxSteps:d=1,streamProtocol:m="data",onResponse:h,onFinish:g,onError:y,credentials:v,headers:S,body:R,generateId:T=Xm,fetch:N,keepLastMessageOnError:w=!0,experimental_throttle:B}={}){const k=M.useId(),z=r??k,A=typeof e=="string"?[e,z]:z,[_]=M.useState([]),{data:H,mutate:ne}=cu([A,"messages"],null,{fallbackData:l??_}),V=M.useRef(H||[]);M.useEffect(()=>{V.current=H||[]},[H]);const{data:E,mutate:I}=cu([A,"streamData"],null),Y=M.useRef(E);M.useEffect(()=>{Y.current=E},[E]);const{data:F=!1,mutate:P}=cu([A,"loading"],null),{data:ee=void 0,mutate:$}=cu([A,"error"],null),Z=M.useRef(null),Q=M.useRef({credentials:v,headers:S,body:R});M.useEffect(()=>{Q.current={credentials:v,headers:S,body:R}},[v,S,R]);const ue=M.useCallback(async pe=>{const De=V.current.length;try{P(!0),$(void 0);const fe=new AbortController;Z.current=fe,await iT(e,pe,fg(ne,B),fg(I,B),Y,Q,V,Z,T,m,g,h,s,u,f,N,w),Z.current=null}catch(fe){if(fe.name==="AbortError")return Z.current=null,null;y&&fe instanceof Error&&y(fe),$(fe)}finally{P(!1)}const me=V.current,ge=me[me.length-1];me.length>De&&ge!=null&&d>1&&dg(ge)&&aT(me)<d&&await ue({messages:me})},[ne,P,e,Q,h,g,y,$,I,Y,m,u,f,s,d,V,Z,T,N,w,B]),x=M.useCallback(async(pe,{data:De,headers:me,body:ge,experimental_attachments:fe}={})=>{var Ee,qe;const Le=await Km(fe),Oe=V.current.concat({...pe,id:(Ee=pe.id)!=null?Ee:T(),createdAt:(qe=pe.createdAt)!=null?qe:new Date,experimental_attachments:Le.length>0?Le:void 0});return ue({messages:Oe,headers:me,body:ge,data:De})},[ue,T]),K=M.useCallback(async({data:pe,headers:De,body:me}={})=>{const ge=V.current;if(ge.length===0)return null;const fe=ge[ge.length-1];return ue({messages:fe.role==="assistant"?ge.slice(0,-1):ge,headers:De,body:me,data:pe})},[ue]),se=M.useCallback(()=>{Z.current&&(Z.current.abort(),Z.current=null)},[]),O=M.useCallback(pe=>{typeof pe=="function"&&(pe=pe(V.current)),ne(pe,!1),V.current=pe},[ne]),ie=M.useCallback(pe=>{typeof pe=="function"&&(pe=pe(Y.current)),I(pe,!1),Y.current=pe},[I]),[ye,he]=M.useState(a),Be=M.useCallback(async(pe,De={},me)=>{var ge;if((ge=pe==null?void 0:pe.preventDefault)==null||ge.call(pe),!ye&&!De.allowEmptySubmit)return;me&&(Q.current={...Q.current,...me});const fe=await Km(De.experimental_attachments),qe={messages:!ye&&!fe.length&&De.allowEmptySubmit?V.current:V.current.concat({id:T(),createdAt:new Date,role:"user",content:ye,experimental_attachments:fe.length>0?fe:void 0}),headers:De.headers,body:De.body,data:De.data};ue(qe),he("")},[ye,T,ue]);return{messages:H||[],setMessages:O,data:E,setData:ie,error:ee,append:x,reload:K,stop:se,input:ye,setInput:he,handleInputChange:pe=>{he(pe.target.value)},handleSubmit:Be,isLoading:F,addToolResult:({toolCallId:pe,result:De})=>{const me=V.current.map((fe,Ee,qe)=>Ee===qe.length-1&&fe.role==="assistant"&&fe.toolInvocations?{...fe,toolInvocations:fe.toolInvocations.map(Le=>Le.toolCallId===pe?{...Le,result:De,state:"result"}:Le)}:fe);ne(me,!1);const ge=me[me.length-1];dg(ge)&&ue({messages:me})}}}function dg(e){return e.role==="assistant"&&e.toolInvocations&&e.toolInvocations.length>0&&e.toolInvocations.every(r=>"result"in r)}function aT(e){let r=0;for(let l=e.length-1;l>=0&&e[l].role==="assistant";l--)r++;return r}var oT=lT;const uT=e=>e,sT=e=>async(r,l)=>{var f;if(typeof(l==null?void 0:l.body)!="string")return console.error("Unexpected body type."),window.fetch(r,l);const a=JSON.parse(l==null?void 0:l.body).messages,u=e.transformBody??uT,s={...l,body:JSON.stringify(u(a)),...e.fetchOpts,headers:{...l==null?void 0:l.headers,"Content-Type":"application/json",...(f=e.fetchOpts)==null?void 0:f.headers}};return fetch(r,s)},cT=(e,r)=>{const l=M.useMemo(()=>sT(e),[e]);return oT({api:e.apiUrl,streamProtocol:"text",fetch:l,onFinish:a=>{var u;e.onFinish&&(a.role==="assistant"||a.role==="user"?(u=e.onFinish)==null||u.call(e,a):console.info("Unexpected message role.",a))},...r})};function n6(){}function r6(){}function fT(e,r){const l={};return(e[e.length-1]===""?[...e,""]:e).join((l.padRight?" ":"")+","+(l.padLeft===!1?"":" ")).trim()}const dT=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,pT=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,hT={};function pg(e,r){return(hT.jsx?pT:dT).test(e)}const mT=/[ \t\n\f\r]/g;function gT(e){return typeof e=="object"?e.type==="text"?hg(e.value):!1:hg(e)}function hg(e){return e.replace(mT,"")===""}class wa{constructor(r,l,a){this.property=r,this.normal=l,a&&(this.space=a)}}wa.prototype.property={},wa.prototype.normal={},wa.prototype.space=null;function mg(e,r){const l={},a={};let u=-1;for(;++u<e.length;)Object.assign(l,e[u].property),Object.assign(a,e[u].normal);return new wa(l,a,r)}function Vc(e){return e.toLowerCase()}class An{constructor(r,l){this.property=r,this.attribute=l}}An.prototype.space=null,An.prototype.boolean=!1,An.prototype.booleanish=!1,An.prototype.overloadedBoolean=!1,An.prototype.number=!1,An.prototype.commaSeparated=!1,An.prototype.spaceSeparated=!1,An.prototype.commaOrSpaceSeparated=!1,An.prototype.mustUseProperty=!1,An.prototype.defined=!1;let yT=0;const Me=di(),kt=di(),gg=di(),oe=di(),ot=di(),Zi=di(),hn=di();function di(){return 2**++yT}const qc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Me,booleanish:kt,commaOrSpaceSeparated:hn,commaSeparated:Zi,number:oe,overloadedBoolean:gg,spaceSeparated:ot},Symbol.toStringTag,{value:"Module"})),$c=Object.keys(qc);class Gc extends An{constructor(r,l,a,u){let s=-1;if(super(r,l),yg(this,"space",u),typeof a=="number")for(;++s<$c.length;){const f=$c[s];yg(this,$c[s],(a&qc[f])===qc[f])}}}Gc.prototype.defined=!0;function yg(e,r,l){l&&(e[r]=l)}const bT={}.hasOwnProperty;function Wi(e){const r={},l={};let a;for(a in e.properties)if(bT.call(e.properties,a)){const u=e.properties[a],s=new Gc(a,e.transform(e.attributes||{},a),u,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(s.mustUseProperty=!0),r[a]=s,l[Vc(a)]=a,l[Vc(s.attribute)]=a}return new wa(r,l,e.space)}const bg=Wi({space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Sg=Wi({space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function vg(e,r){return r in e?e[r]:r}function xg(e,r){return vg(e,r.toLowerCase())}const Eg=Wi({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:xg,properties:{xmlns:null,xmlnsXLink:null}}),Cg=Wi({transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:kt,ariaAutoComplete:null,ariaBusy:kt,ariaChecked:kt,ariaColCount:oe,ariaColIndex:oe,ariaColSpan:oe,ariaControls:ot,ariaCurrent:null,ariaDescribedBy:ot,ariaDetails:null,ariaDisabled:kt,ariaDropEffect:ot,ariaErrorMessage:null,ariaExpanded:kt,ariaFlowTo:ot,ariaGrabbed:kt,ariaHasPopup:null,ariaHidden:kt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ot,ariaLevel:oe,ariaLive:null,ariaModal:kt,ariaMultiLine:kt,ariaMultiSelectable:kt,ariaOrientation:null,ariaOwns:ot,ariaPlaceholder:null,ariaPosInSet:oe,ariaPressed:kt,ariaReadOnly:kt,ariaRelevant:null,ariaRequired:kt,ariaRoleDescription:ot,ariaRowCount:oe,ariaRowIndex:oe,ariaRowSpan:oe,ariaSelected:kt,ariaSetSize:oe,ariaSort:null,ariaValueMax:oe,ariaValueMin:oe,ariaValueNow:oe,ariaValueText:null,role:null}}),ST=Wi({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:xg,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Zi,acceptCharset:ot,accessKey:ot,action:null,allow:null,allowFullScreen:Me,allowPaymentRequest:Me,allowUserMedia:Me,alt:null,as:null,async:Me,autoCapitalize:null,autoComplete:ot,autoFocus:Me,autoPlay:Me,blocking:ot,capture:null,charSet:null,checked:Me,cite:null,className:ot,cols:oe,colSpan:null,content:null,contentEditable:kt,controls:Me,controlsList:ot,coords:oe|Zi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Me,defer:Me,dir:null,dirName:null,disabled:Me,download:gg,draggable:kt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Me,formTarget:null,headers:ot,height:oe,hidden:Me,high:oe,href:null,hrefLang:null,htmlFor:ot,httpEquiv:ot,id:null,imageSizes:null,imageSrcSet:null,inert:Me,inputMode:null,integrity:null,is:null,isMap:Me,itemId:null,itemProp:ot,itemRef:ot,itemScope:Me,itemType:ot,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Me,low:oe,manifest:null,max:null,maxLength:oe,media:null,method:null,min:null,minLength:oe,multiple:Me,muted:Me,name:null,nonce:null,noModule:Me,noValidate:Me,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:Me,optimum:oe,pattern:null,ping:ot,placeholder:null,playsInline:Me,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Me,referrerPolicy:null,rel:ot,required:Me,reversed:Me,rows:oe,rowSpan:oe,sandbox:ot,scope:null,scoped:Me,seamless:Me,selected:Me,shadowRootClonable:Me,shadowRootDelegatesFocus:Me,shadowRootMode:null,shape:null,size:oe,sizes:null,slot:null,span:oe,spellCheck:kt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:oe,step:null,style:null,tabIndex:oe,target:null,title:null,translate:null,type:null,typeMustMatch:Me,useMap:null,value:kt,width:oe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ot,axis:null,background:null,bgColor:null,border:oe,borderColor:null,bottomMargin:oe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Me,declare:Me,event:null,face:null,frame:null,frameBorder:null,hSpace:oe,leftMargin:oe,link:null,longDesc:null,lowSrc:null,marginHeight:oe,marginWidth:oe,noResize:Me,noHref:Me,noShade:Me,noWrap:Me,object:null,profile:null,prompt:null,rev:null,rightMargin:oe,rules:null,scheme:null,scrolling:kt,standby:null,summary:null,text:null,topMargin:oe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:oe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Me,disableRemotePlayback:Me,prefix:null,property:null,results:oe,security:null,unselectable:null}}),vT=Wi({space:"svg",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"},transform:vg,properties:{about:hn,accentHeight:oe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:oe,amplitude:oe,arabicForm:null,ascent:oe,attributeName:null,attributeType:null,azimuth:oe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:oe,by:null,calcMode:null,capHeight:oe,className:ot,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:oe,diffuseConstant:oe,direction:null,display:null,dur:null,divisor:oe,dominantBaseline:null,download:Me,dx:null,dy:null,edgeMode:null,editable:null,elevation:oe,enableBackground:null,end:null,event:null,exponent:oe,externalResourcesRequired:null,fill:null,fillOpacity:oe,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:Zi,g2:Zi,glyphName:Zi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:oe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:oe,horizOriginX:oe,horizOriginY:oe,id:null,ideographic:oe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:oe,k:oe,k1:oe,k2:oe,k3:oe,k4:oe,kernelMatrix:hn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:oe,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:oe,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:oe,overlineThickness:oe,paintOrder:null,panose1:null,path:null,pathLength:oe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ot,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:oe,pointsAtY:oe,pointsAtZ:oe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:hn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:hn,rev:hn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:hn,requiredFeatures:hn,requiredFonts:hn,requiredFormats:hn,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:oe,specularExponent:oe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:oe,strikethroughThickness:oe,string:null,stroke:null,strokeDashArray:hn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:oe,strokeOpacity:oe,strokeWidth:null,style:null,surfaceScale:oe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:hn,tabIndex:oe,tableValues:null,target:null,targetX:oe,targetY:oe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:hn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:oe,underlineThickness:oe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:oe,values:null,vAlphabetic:oe,vMathematical:oe,vectorEffect:null,vHanging:oe,vIdeographic:oe,version:null,vertAdvY:oe,vertOriginX:oe,vertOriginY:oe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:oe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),xT=/^data[-\w.:]+$/i,Tg=/-[a-z]/g,ET=/[A-Z]/g;function CT(e,r){const l=Vc(r);let a=r,u=An;if(l in e.normal)return e.property[e.normal[l]];if(l.length>4&&l.slice(0,4)==="data"&&xT.test(r)){if(r.charAt(4)==="-"){const s=r.slice(5).replace(Tg,wT);a="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=r.slice(4);if(!Tg.test(s)){let f=s.replace(ET,TT);f.charAt(0)!=="-"&&(f="-"+f),r="data"+f}}u=Gc}return new u(a,r)}function TT(e){return"-"+e.toLowerCase()}function wT(e){return e.charAt(1).toUpperCase()}const AT={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"},kT=mg([Sg,bg,Eg,Cg,ST],"html"),Yc=mg([Sg,bg,Eg,Cg,vT],"svg");function RT(e){return e.join(" ").trim()}var Aa={},Fc,wg;function OT(){if(wg)return Fc;wg=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,l=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,u=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,d=/^\s+|\s+$/g,m=`
|
|
113
|
-
`,h="/",g="*",y="",v="comment",S="declaration";Fc=function(T,N){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];N=N||{};var w=1,B=1;function k(F){var P=F.match(r);P&&(w+=P.length);var ee=F.lastIndexOf(m);B=~ee?F.length-ee:B+F.length}function z(){var F={line:w,column:B};return function(P){return P.position=new A(F),ne(),P}}function A(F){this.start=F,this.end={line:w,column:B},this.source=N.source}A.prototype.content=T;function _(F){var P=new Error(N.source+":"+w+":"+B+": "+F);if(P.reason=F,P.filename=N.source,P.line=w,P.column=B,P.source=T,!N.silent)throw P}function H(F){var P=F.exec(T);if(P){var ee=P[0];return k(ee),T=T.slice(ee.length),P}}function ne(){H(l)}function V(F){var P;for(F=F||[];P=E();)P!==!1&&F.push(P);return F}function E(){var F=z();if(!(h!=T.charAt(0)||g!=T.charAt(1))){for(var P=2;y!=T.charAt(P)&&(g!=T.charAt(P)||h!=T.charAt(P+1));)++P;if(P+=2,y===T.charAt(P-1))return _("End of comment missing");var ee=T.slice(2,P-2);return B+=2,k(ee),T=T.slice(P),B+=2,F({type:v,comment:ee})}}function I(){var F=z(),P=H(a);if(P){if(E(),!H(u))return _("property missing ':'");var ee=H(s),$=F({type:S,property:R(P[0].replace(e,y)),value:ee?R(ee[0].replace(e,y)):y});return H(f),$}}function Y(){var F=[];V(F);for(var P;P=I();)P!==!1&&(F.push(P),V(F));return F}return ne(),Y()};function R(T){return T?T.replace(d,y):y}return Fc}var Ag;function MT(){if(Ag)return Aa;Ag=1;var e=Aa.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.default=l;var r=e(OT());function l(a,u){var s=null;if(!a||typeof a!="string")return s;var f=(0,r.default)(a),d=typeof u=="function";return f.forEach(function(m){if(m.type==="declaration"){var h=m.property,g=m.value;d?u(h,g,m):g&&(s=s||{},s[h]=g)}}),s}return Aa}var _T=MT();const kg=Cn(_T),DT=kg.default||kg,Rg=Og("end"),Pc=Og("start");function Og(e){return r;function r(l){const a=l&&l.position&&l.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 zT(e){const r=Pc(e),l=Rg(e);if(r&&l)return{start:r,end:l}}function ka(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Mg(e.position):"start"in e||"end"in e?Mg(e):"line"in e||"column"in e?Xc(e):""}function Xc(e){return _g(e&&e.line)+":"+_g(e&&e.column)}function Mg(e){return Xc(e&&e.start)+"-"+Xc(e&&e.end)}function _g(e){return e&&typeof e=="number"?e:1}class Xt extends Error{constructor(r,l,a){super(),typeof l=="string"&&(a=l,l=void 0);let u="",s={},f=!1;if(l&&("line"in l&&"column"in l?s={place:l}:"start"in l&&"end"in l?s={place:l}:"type"in l?s={ancestors:[l],place:l.position}:s={...l}),typeof r=="string"?u=r:!s.cause&&r&&(f=!0,u=r.message,s.cause=r),!s.ruleId&&!s.source&&typeof a=="string"){const m=a.indexOf(":");m===-1?s.ruleId=a:(s.source=a.slice(0,m),s.ruleId=a.slice(m+1))}if(!s.place&&s.ancestors&&s.ancestors){const m=s.ancestors[s.ancestors.length-1];m&&(s.place=m.position)}const d=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=d?d.column:void 0,this.fatal=void 0,this.file,this.message=u,this.line=d?d.line:void 0,this.name=ka(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=f&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}Xt.prototype.file="",Xt.prototype.name="",Xt.prototype.reason="",Xt.prototype.message="",Xt.prototype.stack="",Xt.prototype.column=void 0,Xt.prototype.line=void 0,Xt.prototype.ancestors=void 0,Xt.prototype.cause=void 0,Xt.prototype.fatal=void 0,Xt.prototype.place=void 0,Xt.prototype.ruleId=void 0,Xt.prototype.source=void 0;const Qc={}.hasOwnProperty,NT=new Map,BT=/[A-Z]/g,LT=/-([a-z])/g,UT=new Set(["table","tbody","thead","tfoot","tr"]),jT=new Set(["td","th"]),Dg="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function HT(e,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const l=r.filePath||void 0;let a;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=PT(l,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=FT(l,r.jsx,r.jsxs)}const u={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:a,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?Yc:kT,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},s=zg(u,e,void 0);return s&&typeof s!="string"?s:u.create(e,u.Fragment,{children:s||void 0},void 0)}function zg(e,r,l){if(r.type==="element")return IT(e,r,l);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return VT(e,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return $T(e,r,l);if(r.type==="mdxjsEsm")return qT(e,r);if(r.type==="root")return GT(e,r,l);if(r.type==="text")return YT(e,r)}function IT(e,r,l){const a=e.schema;let u=a;r.tagName.toLowerCase()==="svg"&&a.space==="html"&&(u=Yc,e.schema=u),e.ancestors.push(r);const s=Bg(e,r.tagName,!1),f=XT(e,r);let d=Zc(e,r);return UT.has(r.tagName)&&(d=d.filter(function(m){return typeof m=="string"?!gT(m):!0})),Ng(e,f,s,r),Kc(f,d),e.ancestors.pop(),e.schema=a,e.create(r,s,f,l)}function VT(e,r){if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}Ra(e,r.position)}function qT(e,r){if(r.data&&r.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(r.data.estree);Ra(e,r.position)}function $T(e,r,l){const a=e.schema;let u=a;r.name==="svg"&&a.space==="html"&&(u=Yc,e.schema=u),e.ancestors.push(r);const s=r.name===null?e.Fragment:Bg(e,r.name,!0),f=QT(e,r),d=Zc(e,r);return Ng(e,f,s,r),Kc(f,d),e.ancestors.pop(),e.schema=a,e.create(r,s,f,l)}function GT(e,r,l){const a={};return Kc(a,Zc(e,r)),e.create(r,e.Fragment,a,l)}function YT(e,r){return r.value}function Ng(e,r,l,a){typeof l!="string"&&l!==e.Fragment&&e.passNode&&(r.node=a)}function Kc(e,r){if(r.length>0){const l=r.length>1?r:r[0];l&&(e.children=l)}}function FT(e,r,l){return a;function a(u,s,f,d){const h=Array.isArray(f.children)?l:r;return d?h(s,f,d):h(s,f)}}function PT(e,r){return l;function l(a,u,s,f){const d=Array.isArray(s.children),m=Pc(a);return r(u,s,f,d,{columnNumber:m?m.column-1:void 0,fileName:e,lineNumber:m?m.line:void 0},void 0)}}function XT(e,r){const l={};let a,u;for(u in r.properties)if(u!=="children"&&Qc.call(r.properties,u)){const s=KT(e,u,r.properties[u]);if(s){const[f,d]=s;e.tableCellAlignToStyle&&f==="align"&&typeof d=="string"&&jT.has(r.tagName)?a=d:l[f]=d}}if(a){const s=l.style||(l.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return l}function QT(e,r){const l={};for(const a of r.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const s=a.data.estree.body[0];s.type;const f=s.expression;f.type;const d=f.properties[0];d.type,Object.assign(l,e.evaluater.evaluateExpression(d.argument))}else Ra(e,r.position);else{const u=a.name;let s;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const d=a.value.data.estree.body[0];d.type,s=e.evaluater.evaluateExpression(d.expression)}else Ra(e,r.position);else s=a.value===null?!0:a.value;l[u]=s}return l}function Zc(e,r){const l=[];let a=-1;const u=e.passKeys?new Map:NT;for(;++a<r.children.length;){const s=r.children[a];let f;if(e.passKeys){const m=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(m){const h=u.get(m)||0;f=m+"-"+h,u.set(m,h+1)}}const d=zg(e,s,f);d!==void 0&&l.push(d)}return l}function KT(e,r,l){const a=CT(e.schema,r);if(!(l==null||typeof l=="number"&&Number.isNaN(l))){if(Array.isArray(l)&&(l=a.commaSeparated?fT(l):RT(l)),a.property==="style"){let u=typeof l=="object"?l:ZT(e,String(l));return e.stylePropertyNameCase==="css"&&(u=WT(u)),["style",u]}return[e.elementAttributeNameCase==="react"&&a.space?AT[a.property]||a.property:a.attribute,l]}}function ZT(e,r){const l={};try{DT(r,a)}catch(u){if(!e.ignoreInvalidStyle){const s=u,f=new Xt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:s,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw f.file=e.filePath||void 0,f.url=Dg+"#cannot-parse-style-attribute",f}}return l;function a(u,s){let f=u;f.slice(0,2)!=="--"&&(f.slice(0,4)==="-ms-"&&(f="ms-"+f.slice(4)),f=f.replace(LT,ew)),l[f]=s}}function Bg(e,r,l){let a;if(!l)a={type:"Literal",value:r};else if(r.includes(".")){const u=r.split(".");let s=-1,f;for(;++s<u.length;){const d=pg(u[s])?{type:"Identifier",name:u[s]}:{type:"Literal",value:u[s]};f=f?{type:"MemberExpression",object:f,property:d,computed:!!(s&&d.type==="Literal"),optional:!1}:d}a=f}else a=pg(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(a.type==="Literal"){const u=a.value;return Qc.call(e.components,u)?e.components[u]:u}if(e.evaluater)return e.evaluater.evaluateExpression(a);Ra(e)}function Ra(e,r){const l=new Xt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=Dg+"#cannot-handle-mdx-estrees-without-createevaluater",l}function WT(e){const r={};let l;for(l in e)Qc.call(e,l)&&(r[JT(l)]=e[l]);return r}function JT(e){let r=e.replace(BT,tw);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function ew(e,r){return r.toUpperCase()}function tw(e){return"-"+e.toLowerCase()}const Wc={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"]},nw={};function rw(e,r){const l=nw,a=typeof l.includeImageAlt=="boolean"?l.includeImageAlt:!0,u=typeof l.includeHtml=="boolean"?l.includeHtml:!0;return Lg(e,a,u)}function Lg(e,r,l){if(iw(e)){if("value"in e)return e.type==="html"&&!l?"":e.value;if(r&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ug(e.children,r,l)}return Array.isArray(e)?Ug(e,r,l):""}function Ug(e,r,l){const a=[];let u=-1;for(;++u<e.length;)a[u]=Lg(e[u],r,l);return a.join("")}function iw(e){return!!(e&&typeof e=="object")}const jg=document.createElement("i");function Jc(e){const r="&"+e+";";jg.innerHTML=r;const l=jg.textContent;return l.charCodeAt(l.length-1)===59&&e!=="semi"||l===r?!1:l}function gr(e,r,l,a){const u=e.length;let s=0,f;if(r<0?r=-r>u?0:u+r:r=r>u?u:r,l=l>0?l:0,a.length<1e4)f=Array.from(a),f.unshift(r,l),e.splice(...f);else for(l&&e.splice(r,l);s<a.length;)f=a.slice(s,s+1e4),f.unshift(r,0),e.splice(...f),s+=1e4,r+=1e4}function kn(e,r){return e.length>0?(gr(e,e.length,0,r),e):r}const Hg={}.hasOwnProperty;function lw(e){const r={};let l=-1;for(;++l<e.length;)aw(r,e[l]);return r}function aw(e,r){let l;for(l in r){const u=(Hg.call(e,l)?e[l]:void 0)||(e[l]={}),s=r[l];let f;if(s)for(f in s){Hg.call(u,f)||(u[f]=[]);const d=s[f];ow(u[f],Array.isArray(d)?d:d?[d]:[])}}}function ow(e,r){let l=-1;const a=[];for(;++l<r.length;)(r[l].add==="after"?e:a).push(r[l]);gr(e,0,0,a)}function Ig(e,r){const l=Number.parseInt(e,r);return l<9||l===11||l>13&&l<32||l>126&&l<160||l>55295&&l<57344||l>64975&&l<65008||(l&65535)===65535||(l&65535)===65534||l>1114111?"�":String.fromCodePoint(l)}function Ji(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ir=Hr(/[A-Za-z]/),mn=Hr(/[\dA-Za-z]/),uw=Hr(/[#-'*+\--9=?A-Z^-~]/);function ef(e){return e!==null&&(e<32||e===127)}const tf=Hr(/\d/),sw=Hr(/[\dA-Fa-f]/),cw=Hr(/[!-/:-@[-`{-~]/);function we(e){return e!==null&&e<-2}function ln(e){return e!==null&&(e<0||e===32)}function We(e){return e===-2||e===-1||e===32}const fw=Hr(new RegExp("\\p{P}|\\p{S}","u")),dw=Hr(/\s/);function Hr(e){return r;function r(l){return l!==null&&l>-1&&e.test(String.fromCharCode(l))}}function el(e){const r=[];let l=-1,a=0,u=0;for(;++l<e.length;){const s=e.charCodeAt(l);let f="";if(s===37&&mn(e.charCodeAt(l+1))&&mn(e.charCodeAt(l+2)))u=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(f=String.fromCharCode(s));else if(s>55295&&s<57344){const d=e.charCodeAt(l+1);s<56320&&d>56319&&d<57344?(f=String.fromCharCode(s,d),u=1):f="�"}else f=String.fromCharCode(s);f&&(r.push(e.slice(a,l),encodeURIComponent(f)),a=l+u+1,f=""),u&&(l+=u,u=0)}return r.join("")+e.slice(a)}function ut(e,r,l,a){const u=a?a-1:Number.POSITIVE_INFINITY;let s=0;return f;function f(m){return We(m)?(e.enter(l),d(m)):r(m)}function d(m){return We(m)&&s++<u?(e.consume(m),d):(e.exit(l),r(m))}}const pw={tokenize:hw};function hw(e){const r=e.attempt(this.parser.constructs.contentInitial,a,u);let l;return r;function a(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),ut(e,r,"linePrefix")}function u(d){return e.enter("paragraph"),s(d)}function s(d){const m=e.enter("chunkText",{contentType:"text",previous:l});return l&&(l.next=m),l=m,f(d)}function f(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return we(d)?(e.consume(d),e.exit("chunkText"),s):(e.consume(d),f)}}const mw={tokenize:gw},Vg={tokenize:yw};function gw(e){const r=this,l=[];let a=0,u,s,f;return d;function d(k){if(a<l.length){const z=l[a];return r.containerState=z[1],e.attempt(z[0].continuation,m,h)(k)}return h(k)}function m(k){if(a++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,u&&B();const z=r.events.length;let A=z,_;for(;A--;)if(r.events[A][0]==="exit"&&r.events[A][1].type==="chunkFlow"){_=r.events[A][1].end;break}w(a);let H=z;for(;H<r.events.length;)r.events[H][1].end=Object.assign({},_),H++;return gr(r.events,A+1,0,r.events.slice(z)),r.events.length=H,h(k)}return d(k)}function h(k){if(a===l.length){if(!u)return v(k);if(u.currentConstruct&&u.currentConstruct.concrete)return R(k);r.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return r.containerState={},e.check(Vg,g,y)(k)}function g(k){return u&&B(),w(a),v(k)}function y(k){return r.parser.lazy[r.now().line]=a!==l.length,f=r.now().offset,R(k)}function v(k){return r.containerState={},e.attempt(Vg,S,R)(k)}function S(k){return a++,l.push([r.currentConstruct,r.containerState]),v(k)}function R(k){if(k===null){u&&B(),w(0),e.consume(k);return}return u=u||r.parser.flow(r.now()),e.enter("chunkFlow",{contentType:"flow",previous:s,_tokenizer:u}),T(k)}function T(k){if(k===null){N(e.exit("chunkFlow"),!0),w(0),e.consume(k);return}return we(k)?(e.consume(k),N(e.exit("chunkFlow")),a=0,r.interrupt=void 0,d):(e.consume(k),T)}function N(k,z){const A=r.sliceStream(k);if(z&&A.push(null),k.previous=s,s&&(s.next=k),s=k,u.defineSkip(k.start),u.write(A),r.parser.lazy[k.start.line]){let _=u.events.length;for(;_--;)if(u.events[_][1].start.offset<f&&(!u.events[_][1].end||u.events[_][1].end.offset>f))return;const H=r.events.length;let ne=H,V,E;for(;ne--;)if(r.events[ne][0]==="exit"&&r.events[ne][1].type==="chunkFlow"){if(V){E=r.events[ne][1].end;break}V=!0}for(w(a),_=H;_<r.events.length;)r.events[_][1].end=Object.assign({},E),_++;gr(r.events,ne+1,0,r.events.slice(H)),r.events.length=_}}function w(k){let z=l.length;for(;z-- >k;){const A=l[z];r.containerState=A[1],A[0].exit.call(r,e)}l.length=k}function B(){u.write([null]),s=void 0,u=void 0,r.containerState._closeFlow=void 0}}function yw(e,r,l){return ut(e,e.attempt(this.parser.constructs.document,r,l),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function qg(e){if(e===null||ln(e)||dw(e))return 1;if(fw(e))return 2}function nf(e,r,l){const a=[];let u=-1;for(;++u<e.length;){const s=e[u].resolveAll;s&&!a.includes(s)&&(r=s(r,l),a.push(s))}return r}const rf={name:"attention",tokenize:Sw,resolveAll:bw};function bw(e,r){let l=-1,a,u,s,f,d,m,h,g;for(;++l<e.length;)if(e[l][0]==="enter"&&e[l][1].type==="attentionSequence"&&e[l][1]._close){for(a=l;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&r.sliceSerialize(e[a][1]).charCodeAt(0)===r.sliceSerialize(e[l][1]).charCodeAt(0)){if((e[a][1]._close||e[l][1]._open)&&(e[l][1].end.offset-e[l][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[l][1].end.offset-e[l][1].start.offset)%3))continue;m=e[a][1].end.offset-e[a][1].start.offset>1&&e[l][1].end.offset-e[l][1].start.offset>1?2:1;const y=Object.assign({},e[a][1].end),v=Object.assign({},e[l][1].start);$g(y,-m),$g(v,m),f={type:m>1?"strongSequence":"emphasisSequence",start:y,end:Object.assign({},e[a][1].end)},d={type:m>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[l][1].start),end:v},s={type:m>1?"strongText":"emphasisText",start:Object.assign({},e[a][1].end),end:Object.assign({},e[l][1].start)},u={type:m>1?"strong":"emphasis",start:Object.assign({},f.start),end:Object.assign({},d.end)},e[a][1].end=Object.assign({},f.start),e[l][1].start=Object.assign({},d.end),h=[],e[a][1].end.offset-e[a][1].start.offset&&(h=kn(h,[["enter",e[a][1],r],["exit",e[a][1],r]])),h=kn(h,[["enter",u,r],["enter",f,r],["exit",f,r],["enter",s,r]]),h=kn(h,nf(r.parser.constructs.insideSpan.null,e.slice(a+1,l),r)),h=kn(h,[["exit",s,r],["enter",d,r],["exit",d,r],["exit",u,r]]),e[l][1].end.offset-e[l][1].start.offset?(g=2,h=kn(h,[["enter",e[l][1],r],["exit",e[l][1],r]])):g=0,gr(e,a-1,l-a+3,h),l=a+h.length-g-2;break}}for(l=-1;++l<e.length;)e[l][1].type==="attentionSequence"&&(e[l][1].type="data");return e}function Sw(e,r){const l=this.parser.constructs.attentionMarkers.null,a=this.previous,u=qg(a);let s;return f;function f(m){return s=m,e.enter("attentionSequence"),d(m)}function d(m){if(m===s)return e.consume(m),d;const h=e.exit("attentionSequence"),g=qg(m),y=!g||g===2&&u||l.includes(m),v=!u||u===2&&g||l.includes(a);return h._open=!!(s===42?y:y&&(u||!v)),h._close=!!(s===42?v:v&&(g||!y)),r(m)}}function $g(e,r){e.column+=r,e.offset+=r,e._bufferIndex+=r}const vw={name:"autolink",tokenize:xw};function xw(e,r,l){let a=0;return u;function u(S){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(S),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(S){return ir(S)?(e.consume(S),f):S===64?l(S):h(S)}function f(S){return S===43||S===45||S===46||mn(S)?(a=1,d(S)):h(S)}function d(S){return S===58?(e.consume(S),a=0,m):(S===43||S===45||S===46||mn(S))&&a++<32?(e.consume(S),d):(a=0,h(S))}function m(S){return S===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(S),e.exit("autolinkMarker"),e.exit("autolink"),r):S===null||S===32||S===60||ef(S)?l(S):(e.consume(S),m)}function h(S){return S===64?(e.consume(S),g):uw(S)?(e.consume(S),h):l(S)}function g(S){return mn(S)?y(S):l(S)}function y(S){return S===46?(e.consume(S),a=0,g):S===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(S),e.exit("autolinkMarker"),e.exit("autolink"),r):v(S)}function v(S){if((S===45||mn(S))&&a++<63){const R=S===45?v:y;return e.consume(S),R}return l(S)}}const fu={tokenize:Ew,partial:!0};function Ew(e,r,l){return a;function a(s){return We(s)?ut(e,u,"linePrefix")(s):u(s)}function u(s){return s===null||we(s)?r(s):l(s)}}const Gg={name:"blockQuote",tokenize:Cw,continuation:{tokenize:Tw},exit:ww};function Cw(e,r,l){const a=this;return u;function u(f){if(f===62){const d=a.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(f),e.exit("blockQuoteMarker"),s}return l(f)}function s(f){return We(f)?(e.enter("blockQuotePrefixWhitespace"),e.consume(f),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),r):(e.exit("blockQuotePrefix"),r(f))}}function Tw(e,r,l){const a=this;return u;function u(f){return We(f)?ut(e,s,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):s(f)}function s(f){return e.attempt(Gg,r,l)(f)}}function ww(e){e.exit("blockQuote")}const Yg={name:"characterEscape",tokenize:Aw};function Aw(e,r,l){return a;function a(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),u}function u(s){return cw(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),r):l(s)}}const Fg={name:"characterReference",tokenize:kw};function kw(e,r,l){const a=this;let u=0,s,f;return d;function d(y){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),m}function m(y){return y===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(y),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),s=31,f=mn,g(y))}function h(y){return y===88||y===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(y),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,f=sw,g):(e.enter("characterReferenceValue"),s=7,f=tf,g(y))}function g(y){if(y===59&&u){const v=e.exit("characterReferenceValue");return f===mn&&!Jc(a.sliceSerialize(v))?l(y):(e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),e.exit("characterReference"),r)}return f(y)&&u++<s?(e.consume(y),g):l(y)}}const Pg={tokenize:Ow,partial:!0},Xg={name:"codeFenced",tokenize:Rw,concrete:!0};function Rw(e,r,l){const a=this,u={tokenize:A,partial:!0};let s=0,f=0,d;return m;function m(_){return h(_)}function h(_){const H=a.events[a.events.length-1];return s=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,d=_,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),g(_)}function g(_){return _===d?(f++,e.consume(_),g):f<3?l(_):(e.exit("codeFencedFenceSequence"),We(_)?ut(e,y,"whitespace")(_):y(_))}function y(_){return _===null||we(_)?(e.exit("codeFencedFence"),a.interrupt?r(_):e.check(Pg,T,z)(_)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(_))}function v(_){return _===null||we(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(_)):We(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ut(e,S,"whitespace")(_)):_===96&&_===d?l(_):(e.consume(_),v)}function S(_){return _===null||we(_)?y(_):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),R(_))}function R(_){return _===null||we(_)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(_)):_===96&&_===d?l(_):(e.consume(_),R)}function T(_){return e.attempt(u,z,N)(_)}function N(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),w}function w(_){return s>0&&We(_)?ut(e,B,"linePrefix",s+1)(_):B(_)}function B(_){return _===null||we(_)?e.check(Pg,T,z)(_):(e.enter("codeFlowValue"),k(_))}function k(_){return _===null||we(_)?(e.exit("codeFlowValue"),B(_)):(e.consume(_),k)}function z(_){return e.exit("codeFenced"),r(_)}function A(_,H,ne){let V=0;return E;function E(ee){return _.enter("lineEnding"),_.consume(ee),_.exit("lineEnding"),I}function I(ee){return _.enter("codeFencedFence"),We(ee)?ut(_,Y,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ee):Y(ee)}function Y(ee){return ee===d?(_.enter("codeFencedFenceSequence"),F(ee)):ne(ee)}function F(ee){return ee===d?(V++,_.consume(ee),F):V>=f?(_.exit("codeFencedFenceSequence"),We(ee)?ut(_,P,"whitespace")(ee):P(ee)):ne(ee)}function P(ee){return ee===null||we(ee)?(_.exit("codeFencedFence"),H(ee)):ne(ee)}}}function Ow(e,r,l){const a=this;return u;function u(f){return f===null?l(f):(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s)}function s(f){return a.parser.lazy[a.now().line]?l(f):r(f)}}const lf={name:"codeIndented",tokenize:_w},Mw={tokenize:Dw,partial:!0};function _w(e,r,l){const a=this;return u;function u(h){return e.enter("codeIndented"),ut(e,s,"linePrefix",5)(h)}function s(h){const g=a.events[a.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?f(h):l(h)}function f(h){return h===null?m(h):we(h)?e.attempt(Mw,f,m)(h):(e.enter("codeFlowValue"),d(h))}function d(h){return h===null||we(h)?(e.exit("codeFlowValue"),f(h)):(e.consume(h),d)}function m(h){return e.exit("codeIndented"),r(h)}}function Dw(e,r,l){const a=this;return u;function u(f){return a.parser.lazy[a.now().line]?l(f):we(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):ut(e,s,"linePrefix",5)(f)}function s(f){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?r(f):we(f)?u(f):l(f)}}const zw={name:"codeText",tokenize:Lw,resolve:Nw,previous:Bw};function Nw(e){let r=e.length-4,l=3,a,u;if((e[l][1].type==="lineEnding"||e[l][1].type==="space")&&(e[r][1].type==="lineEnding"||e[r][1].type==="space")){for(a=l;++a<r;)if(e[a][1].type==="codeTextData"){e[l][1].type="codeTextPadding",e[r][1].type="codeTextPadding",l+=2,r-=2;break}}for(a=l-1,r++;++a<=r;)u===void 0?a!==r&&e[a][1].type!=="lineEnding"&&(u=a):(a===r||e[a][1].type==="lineEnding")&&(e[u][1].type="codeTextData",a!==u+2&&(e[u][1].end=e[a-1][1].end,e.splice(u+2,a-u-2),r-=a-u-2,a=u+2),u=void 0);return e}function Bw(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Lw(e,r,l){let a=0,u,s;return f;function f(y){return e.enter("codeText"),e.enter("codeTextSequence"),d(y)}function d(y){return y===96?(e.consume(y),a++,d):(e.exit("codeTextSequence"),m(y))}function m(y){return y===null?l(y):y===32?(e.enter("space"),e.consume(y),e.exit("space"),m):y===96?(s=e.enter("codeTextSequence"),u=0,g(y)):we(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),m):(e.enter("codeTextData"),h(y))}function h(y){return y===null||y===32||y===96||we(y)?(e.exit("codeTextData"),m(y)):(e.consume(y),h)}function g(y){return y===96?(e.consume(y),u++,g):u===a?(e.exit("codeTextSequence"),e.exit("codeText"),r(y)):(s.type="codeTextData",h(y))}}class Uw{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,l){const a=l??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(r,a):r>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(r,l,a){const u=l||0;this.setCursor(Math.trunc(r));const s=this.right.splice(this.right.length-u,Number.POSITIVE_INFINITY);return a&&Oa(this.left,a),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),Oa(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),Oa(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const l=this.left.splice(r,Number.POSITIVE_INFINITY);Oa(this.right,l.reverse())}else{const l=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);Oa(this.left,l.reverse())}}}function Oa(e,r){let l=0;if(r.length<1e4)e.push(...r);else for(;l<r.length;)e.push(...r.slice(l,l+1e4)),l+=1e4}function Qg(e){const r={};let l=-1,a,u,s,f,d,m,h;const g=new Uw(e);for(;++l<g.length;){for(;l in r;)l=r[l];if(a=g.get(l),l&&a[1].type==="chunkFlow"&&g.get(l-1)[1].type==="listItemPrefix"&&(m=a[1]._tokenizer.events,s=0,s<m.length&&m[s][1].type==="lineEndingBlank"&&(s+=2),s<m.length&&m[s][1].type==="content"))for(;++s<m.length&&m[s][1].type!=="content";)m[s][1].type==="chunkText"&&(m[s][1]._isInFirstContentOfListItem=!0,s++);if(a[0]==="enter")a[1].contentType&&(Object.assign(r,jw(g,l)),l=r[l],h=!0);else if(a[1]._container){for(s=l,u=void 0;s--&&(f=g.get(s),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank");)f[0]==="enter"&&(u&&(g.get(u)[1].type="lineEndingBlank"),f[1].type="lineEnding",u=s);u&&(a[1].end=Object.assign({},g.get(u)[1].start),d=g.slice(u,l),d.unshift(a),g.splice(u,l-u+1,d))}}return gr(e,0,Number.POSITIVE_INFINITY,g.slice(0)),!h}function jw(e,r){const l=e.get(r)[1],a=e.get(r)[2];let u=r-1;const s=[],f=l._tokenizer||a.parser[l.contentType](l.start),d=f.events,m=[],h={};let g,y,v=-1,S=l,R=0,T=0;const N=[T];for(;S;){for(;e.get(++u)[1]!==S;);s.push(u),S._tokenizer||(g=a.sliceStream(S),S.next||g.push(null),y&&f.defineSkip(S.start),S._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(g),S._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),y=S,S=S.next}for(S=l;++v<d.length;)d[v][0]==="exit"&&d[v-1][0]==="enter"&&d[v][1].type===d[v-1][1].type&&d[v][1].start.line!==d[v][1].end.line&&(T=v+1,N.push(T),S._tokenizer=void 0,S.previous=void 0,S=S.next);for(f.events=[],S?(S._tokenizer=void 0,S.previous=void 0):N.pop(),v=N.length;v--;){const w=d.slice(N[v],N[v+1]),B=s.pop();m.push([B,B+w.length-1]),e.splice(B,2,w)}for(m.reverse(),v=-1;++v<m.length;)h[R+m[v][0]]=R+m[v][1],R+=m[v][1]-m[v][0]-1;return h}const Hw={tokenize:qw,resolve:Vw},Iw={tokenize:$w,partial:!0};function Vw(e){return Qg(e),e}function qw(e,r){let l;return a;function a(d){return e.enter("content"),l=e.enter("chunkContent",{contentType:"content"}),u(d)}function u(d){return d===null?s(d):we(d)?e.check(Iw,f,s)(d):(e.consume(d),u)}function s(d){return e.exit("chunkContent"),e.exit("content"),r(d)}function f(d){return e.consume(d),e.exit("chunkContent"),l.next=e.enter("chunkContent",{contentType:"content",previous:l}),l=l.next,u}}function $w(e,r,l){const a=this;return u;function u(f){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),ut(e,s,"linePrefix")}function s(f){if(f===null||we(f))return l(f);const d=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?r(f):e.interrupt(a.parser.constructs.flow,l,r)(f)}}function Kg(e,r,l,a,u,s,f,d,m){const h=m||Number.POSITIVE_INFINITY;let g=0;return y;function y(w){return w===60?(e.enter(a),e.enter(u),e.enter(s),e.consume(w),e.exit(s),v):w===null||w===32||w===41||ef(w)?l(w):(e.enter(a),e.enter(f),e.enter(d),e.enter("chunkString",{contentType:"string"}),T(w))}function v(w){return w===62?(e.enter(s),e.consume(w),e.exit(s),e.exit(u),e.exit(a),r):(e.enter(d),e.enter("chunkString",{contentType:"string"}),S(w))}function S(w){return w===62?(e.exit("chunkString"),e.exit(d),v(w)):w===null||w===60||we(w)?l(w):(e.consume(w),w===92?R:S)}function R(w){return w===60||w===62||w===92?(e.consume(w),S):S(w)}function T(w){return!g&&(w===null||w===41||ln(w))?(e.exit("chunkString"),e.exit(d),e.exit(f),e.exit(a),r(w)):g<h&&w===40?(e.consume(w),g++,T):w===41?(e.consume(w),g--,T):w===null||w===32||w===40||ef(w)?l(w):(e.consume(w),w===92?N:T)}function N(w){return w===40||w===41||w===92?(e.consume(w),T):T(w)}}function Zg(e,r,l,a,u,s){const f=this;let d=0,m;return h;function h(S){return e.enter(a),e.enter(u),e.consume(S),e.exit(u),e.enter(s),g}function g(S){return d>999||S===null||S===91||S===93&&!m||S===94&&!d&&"_hiddenFootnoteSupport"in f.parser.constructs?l(S):S===93?(e.exit(s),e.enter(u),e.consume(S),e.exit(u),e.exit(a),r):we(S)?(e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),g):(e.enter("chunkString",{contentType:"string"}),y(S))}function y(S){return S===null||S===91||S===93||we(S)||d++>999?(e.exit("chunkString"),g(S)):(e.consume(S),m||(m=!We(S)),S===92?v:y)}function v(S){return S===91||S===92||S===93?(e.consume(S),d++,y):y(S)}}function Wg(e,r,l,a,u,s){let f;return d;function d(v){return v===34||v===39||v===40?(e.enter(a),e.enter(u),e.consume(v),e.exit(u),f=v===40?41:v,m):l(v)}function m(v){return v===f?(e.enter(u),e.consume(v),e.exit(u),e.exit(a),r):(e.enter(s),h(v))}function h(v){return v===f?(e.exit(s),m(f)):v===null?l(v):we(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),ut(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===f||v===null||we(v)?(e.exit("chunkString"),h(v)):(e.consume(v),v===92?y:g)}function y(v){return v===f||v===92?(e.consume(v),g):g(v)}}function Ma(e,r){let l;return a;function a(u){return we(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l=!0,a):We(u)?ut(e,a,l?"linePrefix":"lineSuffix")(u):r(u)}}const Gw={name:"definition",tokenize:Fw},Yw={tokenize:Pw,partial:!0};function Fw(e,r,l){const a=this;let u;return s;function s(S){return e.enter("definition"),f(S)}function f(S){return Zg.call(a,e,d,l,"definitionLabel","definitionLabelMarker","definitionLabelString")(S)}function d(S){return u=Ji(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),m):l(S)}function m(S){return ln(S)?Ma(e,h)(S):h(S)}function h(S){return Kg(e,g,l,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function g(S){return e.attempt(Yw,y,y)(S)}function y(S){return We(S)?ut(e,v,"whitespace")(S):v(S)}function v(S){return S===null||we(S)?(e.exit("definition"),a.parser.defined.push(u),r(S)):l(S)}}function Pw(e,r,l){return a;function a(d){return ln(d)?Ma(e,u)(d):l(d)}function u(d){return Wg(e,s,l,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function s(d){return We(d)?ut(e,f,"whitespace")(d):f(d)}function f(d){return d===null||we(d)?r(d):l(d)}}const Xw={name:"hardBreakEscape",tokenize:Qw};function Qw(e,r,l){return a;function a(s){return e.enter("hardBreakEscape"),e.consume(s),u}function u(s){return we(s)?(e.exit("hardBreakEscape"),r(s)):l(s)}}const Kw={name:"headingAtx",tokenize:Ww,resolve:Zw};function Zw(e,r){let l=e.length-2,a=3,u,s;return e[a][1].type==="whitespace"&&(a+=2),l-2>a&&e[l][1].type==="whitespace"&&(l-=2),e[l][1].type==="atxHeadingSequence"&&(a===l-1||l-4>a&&e[l-2][1].type==="whitespace")&&(l-=a+1===l?2:4),l>a&&(u={type:"atxHeadingText",start:e[a][1].start,end:e[l][1].end},s={type:"chunkText",start:e[a][1].start,end:e[l][1].end,contentType:"text"},gr(e,a,l-a+1,[["enter",u,r],["enter",s,r],["exit",s,r],["exit",u,r]])),e}function Ww(e,r,l){let a=0;return u;function u(g){return e.enter("atxHeading"),s(g)}function s(g){return e.enter("atxHeadingSequence"),f(g)}function f(g){return g===35&&a++<6?(e.consume(g),f):g===null||ln(g)?(e.exit("atxHeadingSequence"),d(g)):l(g)}function d(g){return g===35?(e.enter("atxHeadingSequence"),m(g)):g===null||we(g)?(e.exit("atxHeading"),r(g)):We(g)?ut(e,d,"whitespace")(g):(e.enter("atxHeadingText"),h(g))}function m(g){return g===35?(e.consume(g),m):(e.exit("atxHeadingSequence"),d(g))}function h(g){return g===null||g===35||ln(g)?(e.exit("atxHeadingText"),d(g)):(e.consume(g),h)}}const Jw=["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"],Jg=["pre","script","style","textarea"],eA={name:"htmlFlow",tokenize:iA,resolveTo:rA,concrete:!0},tA={tokenize:aA,partial:!0},nA={tokenize:lA,partial:!0};function rA(e){let r=e.length;for(;r--&&!(e[r][0]==="enter"&&e[r][1].type==="htmlFlow"););return r>1&&e[r-2][1].type==="linePrefix"&&(e[r][1].start=e[r-2][1].start,e[r+1][1].start=e[r-2][1].start,e.splice(r-2,2)),e}function iA(e,r,l){const a=this;let u,s,f,d,m;return h;function h(O){return g(O)}function g(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),y}function y(O){return O===33?(e.consume(O),v):O===47?(e.consume(O),s=!0,T):O===63?(e.consume(O),u=3,a.interrupt?r:x):ir(O)?(e.consume(O),f=String.fromCharCode(O),N):l(O)}function v(O){return O===45?(e.consume(O),u=2,S):O===91?(e.consume(O),u=5,d=0,R):ir(O)?(e.consume(O),u=4,a.interrupt?r:x):l(O)}function S(O){return O===45?(e.consume(O),a.interrupt?r:x):l(O)}function R(O){const ie="CDATA[";return O===ie.charCodeAt(d++)?(e.consume(O),d===ie.length?a.interrupt?r:Y:R):l(O)}function T(O){return ir(O)?(e.consume(O),f=String.fromCharCode(O),N):l(O)}function N(O){if(O===null||O===47||O===62||ln(O)){const ie=O===47,ye=f.toLowerCase();return!ie&&!s&&Jg.includes(ye)?(u=1,a.interrupt?r(O):Y(O)):Jw.includes(f.toLowerCase())?(u=6,ie?(e.consume(O),w):a.interrupt?r(O):Y(O)):(u=7,a.interrupt&&!a.parser.lazy[a.now().line]?l(O):s?B(O):k(O))}return O===45||mn(O)?(e.consume(O),f+=String.fromCharCode(O),N):l(O)}function w(O){return O===62?(e.consume(O),a.interrupt?r:Y):l(O)}function B(O){return We(O)?(e.consume(O),B):E(O)}function k(O){return O===47?(e.consume(O),E):O===58||O===95||ir(O)?(e.consume(O),z):We(O)?(e.consume(O),k):E(O)}function z(O){return O===45||O===46||O===58||O===95||mn(O)?(e.consume(O),z):A(O)}function A(O){return O===61?(e.consume(O),_):We(O)?(e.consume(O),A):k(O)}function _(O){return O===null||O===60||O===61||O===62||O===96?l(O):O===34||O===39?(e.consume(O),m=O,H):We(O)?(e.consume(O),_):ne(O)}function H(O){return O===m?(e.consume(O),m=null,V):O===null||we(O)?l(O):(e.consume(O),H)}function ne(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||ln(O)?A(O):(e.consume(O),ne)}function V(O){return O===47||O===62||We(O)?k(O):l(O)}function E(O){return O===62?(e.consume(O),I):l(O)}function I(O){return O===null||we(O)?Y(O):We(O)?(e.consume(O),I):l(O)}function Y(O){return O===45&&u===2?(e.consume(O),$):O===60&&u===1?(e.consume(O),Z):O===62&&u===4?(e.consume(O),K):O===63&&u===3?(e.consume(O),x):O===93&&u===5?(e.consume(O),ue):we(O)&&(u===6||u===7)?(e.exit("htmlFlowData"),e.check(tA,se,F)(O)):O===null||we(O)?(e.exit("htmlFlowData"),F(O)):(e.consume(O),Y)}function F(O){return e.check(nA,P,se)(O)}function P(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),ee}function ee(O){return O===null||we(O)?F(O):(e.enter("htmlFlowData"),Y(O))}function $(O){return O===45?(e.consume(O),x):Y(O)}function Z(O){return O===47?(e.consume(O),f="",Q):Y(O)}function Q(O){if(O===62){const ie=f.toLowerCase();return Jg.includes(ie)?(e.consume(O),K):Y(O)}return ir(O)&&f.length<8?(e.consume(O),f+=String.fromCharCode(O),Q):Y(O)}function ue(O){return O===93?(e.consume(O),x):Y(O)}function x(O){return O===62?(e.consume(O),K):O===45&&u===2?(e.consume(O),x):Y(O)}function K(O){return O===null||we(O)?(e.exit("htmlFlowData"),se(O)):(e.consume(O),K)}function se(O){return e.exit("htmlFlow"),r(O)}}function lA(e,r,l){const a=this;return u;function u(f){return we(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):l(f)}function s(f){return a.parser.lazy[a.now().line]?l(f):r(f)}}function aA(e,r,l){return a;function a(u){return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),e.attempt(fu,r,l)}}const oA={name:"htmlText",tokenize:uA};function uA(e,r,l){const a=this;let u,s,f;return d;function d(x){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(x),m}function m(x){return x===33?(e.consume(x),h):x===47?(e.consume(x),A):x===63?(e.consume(x),k):ir(x)?(e.consume(x),ne):l(x)}function h(x){return x===45?(e.consume(x),g):x===91?(e.consume(x),s=0,R):ir(x)?(e.consume(x),B):l(x)}function g(x){return x===45?(e.consume(x),S):l(x)}function y(x){return x===null?l(x):x===45?(e.consume(x),v):we(x)?(f=y,Z(x)):(e.consume(x),y)}function v(x){return x===45?(e.consume(x),S):y(x)}function S(x){return x===62?$(x):x===45?v(x):y(x)}function R(x){const K="CDATA[";return x===K.charCodeAt(s++)?(e.consume(x),s===K.length?T:R):l(x)}function T(x){return x===null?l(x):x===93?(e.consume(x),N):we(x)?(f=T,Z(x)):(e.consume(x),T)}function N(x){return x===93?(e.consume(x),w):T(x)}function w(x){return x===62?$(x):x===93?(e.consume(x),w):T(x)}function B(x){return x===null||x===62?$(x):we(x)?(f=B,Z(x)):(e.consume(x),B)}function k(x){return x===null?l(x):x===63?(e.consume(x),z):we(x)?(f=k,Z(x)):(e.consume(x),k)}function z(x){return x===62?$(x):k(x)}function A(x){return ir(x)?(e.consume(x),_):l(x)}function _(x){return x===45||mn(x)?(e.consume(x),_):H(x)}function H(x){return we(x)?(f=H,Z(x)):We(x)?(e.consume(x),H):$(x)}function ne(x){return x===45||mn(x)?(e.consume(x),ne):x===47||x===62||ln(x)?V(x):l(x)}function V(x){return x===47?(e.consume(x),$):x===58||x===95||ir(x)?(e.consume(x),E):we(x)?(f=V,Z(x)):We(x)?(e.consume(x),V):$(x)}function E(x){return x===45||x===46||x===58||x===95||mn(x)?(e.consume(x),E):I(x)}function I(x){return x===61?(e.consume(x),Y):we(x)?(f=I,Z(x)):We(x)?(e.consume(x),I):V(x)}function Y(x){return x===null||x===60||x===61||x===62||x===96?l(x):x===34||x===39?(e.consume(x),u=x,F):we(x)?(f=Y,Z(x)):We(x)?(e.consume(x),Y):(e.consume(x),P)}function F(x){return x===u?(e.consume(x),u=void 0,ee):x===null?l(x):we(x)?(f=F,Z(x)):(e.consume(x),F)}function P(x){return x===null||x===34||x===39||x===60||x===61||x===96?l(x):x===47||x===62||ln(x)?V(x):(e.consume(x),P)}function ee(x){return x===47||x===62||ln(x)?V(x):l(x)}function $(x){return x===62?(e.consume(x),e.exit("htmlTextData"),e.exit("htmlText"),r):l(x)}function Z(x){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),Q}function Q(x){return We(x)?ut(e,ue,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):ue(x)}function ue(x){return e.enter("htmlTextData"),f(x)}}const af={name:"labelEnd",tokenize:hA,resolveTo:pA,resolveAll:dA},sA={tokenize:mA},cA={tokenize:gA},fA={tokenize:yA};function dA(e){let r=-1;for(;++r<e.length;){const l=e[r][1];(l.type==="labelImage"||l.type==="labelLink"||l.type==="labelEnd")&&(e.splice(r+1,l.type==="labelImage"?4:2),l.type="data",r++)}return e}function pA(e,r){let l=e.length,a=0,u,s,f,d;for(;l--;)if(u=e[l][1],s){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;e[l][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(f){if(e[l][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(s=l,u.type!=="labelLink")){a=2;break}}else u.type==="labelEnd"&&(f=l);const m={type:e[s][1].type==="labelLink"?"link":"image",start:Object.assign({},e[s][1].start),end:Object.assign({},e[e.length-1][1].end)},h={type:"label",start:Object.assign({},e[s][1].start),end:Object.assign({},e[f][1].end)},g={type:"labelText",start:Object.assign({},e[s+a+2][1].end),end:Object.assign({},e[f-2][1].start)};return d=[["enter",m,r],["enter",h,r]],d=kn(d,e.slice(s+1,s+a+3)),d=kn(d,[["enter",g,r]]),d=kn(d,nf(r.parser.constructs.insideSpan.null,e.slice(s+a+4,f-3),r)),d=kn(d,[["exit",g,r],e[f-2],e[f-1],["exit",h,r]]),d=kn(d,e.slice(f+1)),d=kn(d,[["exit",m,r]]),gr(e,s,e.length,d),e}function hA(e,r,l){const a=this;let u=a.events.length,s,f;for(;u--;)if((a.events[u][1].type==="labelImage"||a.events[u][1].type==="labelLink")&&!a.events[u][1]._balanced){s=a.events[u][1];break}return d;function d(v){return s?s._inactive?y(v):(f=a.parser.defined.includes(Ji(a.sliceSerialize({start:s.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),m):l(v)}function m(v){return v===40?e.attempt(sA,g,f?g:y)(v):v===91?e.attempt(cA,g,f?h:y)(v):f?g(v):y(v)}function h(v){return e.attempt(fA,g,y)(v)}function g(v){return r(v)}function y(v){return s._balanced=!0,l(v)}}function mA(e,r,l){return a;function a(y){return e.enter("resource"),e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),u}function u(y){return ln(y)?Ma(e,s)(y):s(y)}function s(y){return y===41?g(y):Kg(e,f,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function f(y){return ln(y)?Ma(e,m)(y):g(y)}function d(y){return l(y)}function m(y){return y===34||y===39||y===40?Wg(e,h,l,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):g(y)}function h(y){return ln(y)?Ma(e,g)(y):g(y)}function g(y){return y===41?(e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),e.exit("resource"),r):l(y)}}function gA(e,r,l){const a=this;return u;function u(d){return Zg.call(a,e,s,f,"reference","referenceMarker","referenceString")(d)}function s(d){return a.parser.defined.includes(Ji(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?r(d):l(d)}function f(d){return l(d)}}function yA(e,r,l){return a;function a(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),u}function u(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),r):l(s)}}const bA={name:"labelStartImage",tokenize:SA,resolveAll:af.resolveAll};function SA(e,r,l){const a=this;return u;function u(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),s}function s(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),f):l(d)}function f(d){return d===94&&"_hiddenFootnoteSupport"in a.parser.constructs?l(d):r(d)}}const vA={name:"labelStartLink",tokenize:xA,resolveAll:af.resolveAll};function xA(e,r,l){const a=this;return u;function u(f){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelLink"),s}function s(f){return f===94&&"_hiddenFootnoteSupport"in a.parser.constructs?l(f):r(f)}}const of={name:"lineEnding",tokenize:EA};function EA(e,r){return l;function l(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ut(e,r,"linePrefix")}}const du={name:"thematicBreak",tokenize:CA};function CA(e,r,l){let a=0,u;return s;function s(h){return e.enter("thematicBreak"),f(h)}function f(h){return u=h,d(h)}function d(h){return h===u?(e.enter("thematicBreakSequence"),m(h)):a>=3&&(h===null||we(h))?(e.exit("thematicBreak"),r(h)):l(h)}function m(h){return h===u?(e.consume(h),a++,m):(e.exit("thematicBreakSequence"),We(h)?ut(e,d,"whitespace")(h):d(h))}}const an={name:"list",tokenize:AA,continuation:{tokenize:kA},exit:OA},TA={tokenize:MA,partial:!0},wA={tokenize:RA,partial:!0};function AA(e,r,l){const a=this,u=a.events[a.events.length-1];let s=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,f=0;return d;function d(S){const R=a.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(R==="listUnordered"?!a.containerState.marker||S===a.containerState.marker:tf(S)){if(a.containerState.type||(a.containerState.type=R,e.enter(R,{_container:!0})),R==="listUnordered")return e.enter("listItemPrefix"),S===42||S===45?e.check(du,l,h)(S):h(S);if(!a.interrupt||S===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),m(S)}return l(S)}function m(S){return tf(S)&&++f<10?(e.consume(S),m):(!a.interrupt||f<2)&&(a.containerState.marker?S===a.containerState.marker:S===41||S===46)?(e.exit("listItemValue"),h(S)):l(S)}function h(S){return e.enter("listItemMarker"),e.consume(S),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||S,e.check(fu,a.interrupt?l:g,e.attempt(TA,v,y))}function g(S){return a.containerState.initialBlankLine=!0,s++,v(S)}function y(S){return We(S)?(e.enter("listItemPrefixWhitespace"),e.consume(S),e.exit("listItemPrefixWhitespace"),v):l(S)}function v(S){return a.containerState.size=s+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,r(S)}}function kA(e,r,l){const a=this;return a.containerState._closeFlow=void 0,e.check(fu,u,s);function u(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,ut(e,r,"listItemIndent",a.containerState.size+1)(d)}function s(d){return a.containerState.furtherBlankLines||!We(d)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,f(d)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(wA,r,f)(d))}function f(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,ut(e,e.attempt(an,r,l),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function RA(e,r,l){const a=this;return ut(e,u,"listItemIndent",a.containerState.size+1);function u(s){const f=a.events[a.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===a.containerState.size?r(s):l(s)}}function OA(e){e.exit(this.containerState.type)}function MA(e,r,l){const a=this;return ut(e,u,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(s){const f=a.events[a.events.length-1];return!We(s)&&f&&f[1].type==="listItemPrefixWhitespace"?r(s):l(s)}}const ey={name:"setextUnderline",tokenize:DA,resolveTo:_A};function _A(e,r){let l=e.length,a,u,s;for(;l--;)if(e[l][0]==="enter"){if(e[l][1].type==="content"){a=l;break}e[l][1].type==="paragraph"&&(u=l)}else e[l][1].type==="content"&&e.splice(l,1),!s&&e[l][1].type==="definition"&&(s=l);const f={type:"setextHeading",start:Object.assign({},e[u][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[u][1].type="setextHeadingText",s?(e.splice(u,0,["enter",f,r]),e.splice(s+1,0,["exit",e[a][1],r]),e[a][1].end=Object.assign({},e[s][1].end)):e[a][1]=f,e.push(["exit",f,r]),e}function DA(e,r,l){const a=this;let u;return s;function s(h){let g=a.events.length,y;for(;g--;)if(a.events[g][1].type!=="lineEnding"&&a.events[g][1].type!=="linePrefix"&&a.events[g][1].type!=="content"){y=a.events[g][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||y)?(e.enter("setextHeadingLine"),u=h,f(h)):l(h)}function f(h){return e.enter("setextHeadingLineSequence"),d(h)}function d(h){return h===u?(e.consume(h),d):(e.exit("setextHeadingLineSequence"),We(h)?ut(e,m,"lineSuffix")(h):m(h))}function m(h){return h===null||we(h)?(e.exit("setextHeadingLine"),r(h)):l(h)}}const zA={tokenize:NA};function NA(e){const r=this,l=e.attempt(fu,a,e.attempt(this.parser.constructs.flowInitial,u,ut(e,e.attempt(this.parser.constructs.flow,u,e.attempt(Hw,u)),"linePrefix")));return l;function a(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),r.currentConstruct=void 0,l}function u(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r.currentConstruct=void 0,l}}const BA={resolveAll:ny()},LA=ty("string"),UA=ty("text");function ty(e){return{tokenize:r,resolveAll:ny(e==="text"?jA:void 0)};function r(l){const a=this,u=this.parser.constructs[e],s=l.attempt(u,f,d);return f;function f(g){return h(g)?s(g):d(g)}function d(g){if(g===null){l.consume(g);return}return l.enter("data"),l.consume(g),m}function m(g){return h(g)?(l.exit("data"),s(g)):(l.consume(g),m)}function h(g){if(g===null)return!0;const y=u[g];let v=-1;if(y)for(;++v<y.length;){const S=y[v];if(!S.previous||S.previous.call(a,a.previous))return!0}return!1}}}function ny(e){return r;function r(l,a){let u=-1,s;for(;++u<=l.length;)s===void 0?l[u]&&l[u][1].type==="data"&&(s=u,u++):(!l[u]||l[u][1].type!=="data")&&(u!==s+2&&(l[s][1].end=l[u-1][1].end,l.splice(s+2,u-s-2),u=s+2),s=void 0);return e?e(l,a):l}}function jA(e,r){let l=0;for(;++l<=e.length;)if((l===e.length||e[l][1].type==="lineEnding")&&e[l-1][1].type==="data"){const a=e[l-1][1],u=r.sliceStream(a);let s=u.length,f=-1,d=0,m;for(;s--;){const h=u[s];if(typeof h=="string"){for(f=h.length;h.charCodeAt(f-1)===32;)d++,f--;if(f)break;f=-1}else if(h===-2)m=!0,d++;else if(h!==-1){s++;break}}if(d){const h={type:l===e.length||m||d<2?"lineSuffix":"hardBreakTrailing",start:{line:a.end.line,column:a.end.column-d,offset:a.end.offset-d,_index:a.start._index+s,_bufferIndex:s?f:a.start._bufferIndex+f},end:Object.assign({},a.end)};a.end=Object.assign({},h.start),a.start.offset===a.end.offset?Object.assign(a,h):(e.splice(l,0,["enter",h,r],["exit",h,r]),l+=2)}l++}return e}function HA(e,r,l){let a=Object.assign(l?Object.assign({},l):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const u={},s=[];let f=[],d=[];const m={consume:B,enter:k,exit:z,attempt:H(A),check:H(_),interrupt:H(_,{interrupt:!0})},h={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:S,sliceSerialize:v,now:R,defineSkip:T,write:y};let g=r.tokenize.call(h,m);return r.resolveAll&&s.push(r),h;function y(I){return f=kn(f,I),N(),f[f.length-1]!==null?[]:(ne(r,0),h.events=nf(s,h.events,h),h.events)}function v(I,Y){return VA(S(I),Y)}function S(I){return IA(f,I)}function R(){const{line:I,column:Y,offset:F,_index:P,_bufferIndex:ee}=a;return{line:I,column:Y,offset:F,_index:P,_bufferIndex:ee}}function T(I){u[I.line]=I.column,E()}function N(){let I;for(;a._index<f.length;){const Y=f[a._index];if(typeof Y=="string")for(I=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===I&&a._bufferIndex<Y.length;)w(Y.charCodeAt(a._bufferIndex));else w(Y)}}function w(I){g=g(I)}function B(I){we(I)?(a.line++,a.column=1,a.offset+=I===-3?2:1,E()):I!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===f[a._index].length&&(a._bufferIndex=-1,a._index++)),h.previous=I}function k(I,Y){const F=Y||{};return F.type=I,F.start=R(),h.events.push(["enter",F,h]),d.push(F),F}function z(I){const Y=d.pop();return Y.end=R(),h.events.push(["exit",Y,h]),Y}function A(I,Y){ne(I,Y.from)}function _(I,Y){Y.restore()}function H(I,Y){return F;function F(P,ee,$){let Z,Q,ue,x;return Array.isArray(P)?se(P):"tokenize"in P?se([P]):K(P);function K(he){return Be;function Be(Ce){const ke=Ce!==null&&he[Ce],pe=Ce!==null&&he.null,De=[...Array.isArray(ke)?ke:ke?[ke]:[],...Array.isArray(pe)?pe:pe?[pe]:[]];return se(De)(Ce)}}function se(he){return Z=he,Q=0,he.length===0?$:O(he[Q])}function O(he){return Be;function Be(Ce){return x=V(),ue=he,he.partial||(h.currentConstruct=he),he.name&&h.parser.constructs.disable.null.includes(he.name)?ye():he.tokenize.call(Y?Object.assign(Object.create(h),Y):h,m,ie,ye)(Ce)}}function ie(he){return I(ue,x),ee}function ye(he){return x.restore(),++Q<Z.length?O(Z[Q]):$}}}function ne(I,Y){I.resolveAll&&!s.includes(I)&&s.push(I),I.resolve&&gr(h.events,Y,h.events.length-Y,I.resolve(h.events.slice(Y),h)),I.resolveTo&&(h.events=I.resolveTo(h.events,h))}function V(){const I=R(),Y=h.previous,F=h.currentConstruct,P=h.events.length,ee=Array.from(d);return{restore:$,from:P};function $(){a=I,h.previous=Y,h.currentConstruct=F,h.events.length=P,d=ee,E()}}function E(){a.line in u&&a.column<2&&(a.column=u[a.line],a.offset+=u[a.line]-1)}}function IA(e,r){const l=r.start._index,a=r.start._bufferIndex,u=r.end._index,s=r.end._bufferIndex;let f;if(l===u)f=[e[l].slice(a,s)];else{if(f=e.slice(l,u),a>-1){const d=f[0];typeof d=="string"?f[0]=d.slice(a):f.shift()}s>0&&f.push(e[u].slice(0,s))}return f}function VA(e,r){let l=-1;const a=[];let u;for(;++l<e.length;){const s=e[l];let f;if(typeof s=="string")f=s;else switch(s){case-5:{f="\r";break}case-4:{f=`
|
|
112
|
+
*/var ag;function OC(){if(ag)return Mc;ag=1;var e=Uo();function r(y,v){return y===v&&(y!==0||1/y===1/v)||y!==y&&v!==v}var a=typeof Object.is=="function"?Object.is:r,l=e.useState,u=e.useEffect,s=e.useLayoutEffect,f=e.useDebugValue;function d(y,v){var S=v(),A=l({inst:{value:S,getSnapshot:v}}),T=A[0].inst,N=A[1];return s(function(){T.value=S,T.getSnapshot=v,m(T)&&N({inst:T})},[y,S,v]),u(function(){return m(T)&&N({inst:T}),y(function(){m(T)&&N({inst:T})})},[y]),f(S),S}function m(y){var v=y.getSnapshot;y=y.value;try{var S=v();return!a(y,S)}catch{return!0}}function h(y,v){return v()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:d;return Mc.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,Mc}var lg;function MC(){return lg||(lg=1,Oc.exports=OC()),Oc.exports}var _C=MC();const Ir=()=>{},an=Ir(),_c=Object,Qe=e=>e===an,ar=e=>typeof e=="function",Vr=(e,r)=>({...e,...r}),DC=e=>ar(e.then),cu=new WeakMap;let zC=0;const Al=e=>{const r=typeof e,a=e&&e.constructor,l=a==Date;let u,s;if(_c(e)===e&&!l&&a!=RegExp){if(u=cu.get(e),u)return u;if(u=++zC+"~",cu.set(e,u),a==Array){for(u="@",s=0;s<e.length;s++)u+=Al(e[s])+",";cu.set(e,u)}if(a==_c){u="#";const f=_c.keys(e).sort();for(;!Qe(s=f.pop());)Qe(e[s])||(u+=s+":"+Al(e[s])+",");cu.set(e,u)}}else u=l?e.toJSON():r=="symbol"?e.toString():r=="string"?JSON.stringify(e):""+e;return u},yr=new WeakMap,Dc={},fu={},zc="undefined",du=typeof window!=zc,Nc=typeof document!=zc,NC=()=>du&&typeof window.requestAnimationFrame!=zc,og=(e,r)=>{const a=yr.get(e);return[()=>!Qe(r)&&e.get(r)||Dc,l=>{if(!Qe(r)){const u=e.get(r);r in fu||(fu[r]=u),a[5](r,Vr(u,l),u||Dc)}},a[6],()=>!Qe(r)&&r in fu?fu[r]:!Qe(r)&&e.get(r)||Dc]};let Bc=!0;const BC=()=>Bc,[Lc,Uc]=du&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Ir,Ir],LC=()=>{const e=Nc&&document.visibilityState;return Qe(e)||e!=="hidden"},UC=e=>(Nc&&document.addEventListener("visibilitychange",e),Lc("focus",e),()=>{Nc&&document.removeEventListener("visibilitychange",e),Uc("focus",e)}),jC=e=>{const r=()=>{Bc=!0,e()},a=()=>{Bc=!1};return Lc("online",r),Lc("offline",a),()=>{Uc("online",r),Uc("offline",a)}},HC={isOnline:BC,isVisible:LC},IC={initFocus:UC,initReconnect:jC},ug=!dt.useId,kl=!du||"Deno"in window,VC=e=>NC()?window.requestAnimationFrame(e):setTimeout(e,1),jc=kl?M.useEffect:M.useLayoutEffect,Hc=typeof navigator<"u"&&navigator.connection,sg=!kl&&Hc&&(["slow-2g","2g"].includes(Hc.effectiveType)||Hc.saveData),Ic=e=>{if(ar(e))try{e=e()}catch{e=""}const r=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Al(e):"",[e,r]};let $C=0;const Vc=()=>++$C,cg=0,fg=1,dg=2;var Rl={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:cg,MUTATE_EVENT:dg,RECONNECT_EVENT:fg};async function pg(...e){const[r,a,l,u]=e,s=Vr({populateCache:!0,throwOnError:!0},typeof u=="boolean"?{revalidate:u}:u||{});let f=s.populateCache;const d=s.rollbackOnError;let m=s.optimisticData;const h=v=>typeof d=="function"?d(v):d!==!1,g=s.throwOnError;if(ar(a)){const v=a,S=[],A=r.keys();for(const T of A)!/^\$(inf|sub)\$/.test(T)&&v(r.get(T)._k)&&S.push(T);return Promise.all(S.map(y))}return y(a);async function y(v){const[S]=Ic(v);if(!S)return;const[A,T]=og(r,S),[N,w,B,k]=yr.get(r),z=()=>{const F=N[S];return(ar(s.revalidate)?s.revalidate(A().data,v):s.revalidate!==!1)&&(delete B[S],delete k[S],F&&F[0])?F[0](dg).then(()=>A().data):A().data};if(e.length<3)return z();let R=l,_;const H=Vc();w[S]=[H,0];const ne=!Qe(m),V=A(),E=V.data,I=V._c,Y=Qe(I)?E:I;if(ne&&(m=ar(m)?m(Y,E):m,T({data:m,_c:Y})),ar(R))try{R=R(Y)}catch(F){_=F}if(R&&DC(R))if(R=await R.catch(F=>{_=F}),H!==w[S][0]){if(_)throw _;return R}else _&&ne&&h(_)&&(f=!0,T({data:Y,_c:an}));if(f&&!_)if(ar(f)){const F=f(R,Y);T({data:F,error:an,_c:an})}else T({data:R,error:an,_c:an});if(w[S][1]=Vc(),Promise.resolve(z()).then(()=>{T({_c:an})}),_){if(g)throw _;return}return R}}const hg=(e,r)=>{for(const a in e)e[a][0]&&e[a][0](r)},qC=(e,r)=>{if(!yr.has(e)){const a=Vr(IC,r),l={},u=pg.bind(an,e);let s=Ir;const f={},d=(g,y)=>{const v=f[g]||[];return f[g]=v,v.push(y),()=>v.splice(v.indexOf(y),1)},m=(g,y,v)=>{e.set(g,y);const S=f[g];if(S)for(const A of S)A(y,v)},h=()=>{if(!yr.has(e)&&(yr.set(e,[l,{},{},{},u,m,d]),!kl)){const g=a.initFocus(setTimeout.bind(an,hg.bind(an,l,cg))),y=a.initReconnect(setTimeout.bind(an,hg.bind(an,l,fg)));s=()=>{g&&g(),y&&y(),yr.delete(e)}}};return h(),[e,u,h,s]}return[e,yr.get(e)[4]]},GC=(e,r,a,l,u)=>{const s=a.errorRetryCount,f=u.retryCount,d=~~((Math.random()+.5)*(1<<(f<8?f:8)))*a.errorRetryInterval;!Qe(s)&&f>s||setTimeout(l,d,u)},YC=(e,r)=>Al(e)==Al(r),[mg,FC]=qC(new Map),PC=Vr({onLoadingSlow:Ir,onSuccess:Ir,onError:Ir,onErrorRetry:GC,onDiscarded:Ir,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:sg?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:sg?5e3:3e3,compare:YC,isPaused:()=>!1,cache:mg,mutate:FC,fallback:{}},HC),XC=(e,r)=>{const a=Vr(e,r);if(r){const{use:l,fallback:u}=e,{use:s,fallback:f}=r;l&&s&&(a.use=l.concat(s)),u&&f&&(a.fallback=Vr(u,f))}return a},QC=M.createContext({}),KC="$inf$",gg=du&&window.__SWR_DEVTOOLS_USE__,ZC=gg?window.__SWR_DEVTOOLS_USE__:[],WC=()=>{gg&&(window.__SWR_DEVTOOLS_REACT__=dt)},JC=e=>ar(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],eT=()=>Vr(PC,M.useContext(QC)),tT=e=>(r,a,l)=>e(r,a&&((...s)=>{const[f]=Ic(r),[,,,d]=yr.get(mg);if(f.startsWith(KC))return a(...s);const m=d[f];return Qe(m)?a(...s):(delete d[f],m)}),l),nT=ZC.concat(tT),rT=e=>function(...a){const l=eT(),[u,s,f]=JC(a),d=XC(l,f);let m=e;const{use:h}=d,g=(h||[]).concat(nT);for(let y=g.length;y--;)m=g[y](m);return m(u,s||d.fetcher||null,d)},iT=(e,r,a)=>{const l=r[e]||(r[e]=[]);return l.push(a),()=>{const u=l.indexOf(a);u>=0&&(l[u]=l[l.length-1],l.pop())}};WC();const yg=dt.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(r=>{e.status="fulfilled",e.value=r},r=>{e.status="rejected",e.reason=r}),e)}),$c={dedupe:!0},pu=rT((e,r,a)=>{const{cache:l,compare:u,suspense:s,fallbackData:f,revalidateOnMount:d,revalidateIfStale:m,refreshInterval:h,refreshWhenHidden:g,refreshWhenOffline:y,keepPreviousData:v}=a,[S,A,T,N]=yr.get(l),[w,B]=Ic(e),k=M.useRef(!1),z=M.useRef(!1),R=M.useRef(w),_=M.useRef(r),H=M.useRef(a),ne=()=>H.current,V=()=>ne().isVisible()&&ne().isOnline(),[E,I,Y,F]=og(l,w),P=M.useRef({}).current,ee=Qe(f)?a.fallback[w]:f,q=(me,ge)=>{for(const fe in P){const Te=fe;if(Te==="data"){if(!u(me[Te],ge[Te])&&(!Qe(me[Te])||!u(ye,ge[Te])))return!1}else if(ge[Te]!==me[Te])return!1}return!0},Z=M.useMemo(()=>{const me=!w||!r?!1:Qe(d)?ne().isPaused()||s?!1:Qe(m)?!0:m:d,ge=Ke=>{const gt=Vr(Ke);return delete gt._k,me?{isValidating:!0,isLoading:!0,...gt}:gt},fe=E(),Te=F(),Ge=ge(fe),je=fe===Te?Ge:ge(Te);let _e=Ge;return[()=>{const Ke=ge(E());return q(Ke,_e)?(_e.data=Ke.data,_e.isLoading=Ke.isLoading,_e.isValidating=Ke.isValidating,_e.error=Ke.error,_e):(_e=Ke,Ke)},()=>je]},[l,w]),Q=_C.useSyncExternalStore(M.useCallback(me=>Y(w,(ge,fe)=>{q(fe,ge)||me()}),[l,w]),Z[0],Z[1]),ue=!k.current,x=S[w]&&S[w].length>0,K=Q.data,se=Qe(K)?ee:K,O=Q.error,ie=M.useRef(se),ye=v?Qe(K)?ie.current:K:se,he=x&&!Qe(O)?!1:ue&&!Qe(d)?d:ne().isPaused()?!1:s?Qe(se)?!1:m:Qe(se)||m,Ue=!!(w&&r&&ue&&he),we=Qe(Q.isValidating)?Ue:Q.isValidating,Oe=Qe(Q.isLoading)?Ue:Q.isLoading,pe=M.useCallback(async me=>{const ge=_.current;if(!w||!ge||z.current||ne().isPaused())return!1;let fe,Te,Ge=!0;const je=me||{},_e=!T[w]||!je.dedupe,Ke=()=>ug?!z.current&&w===R.current&&k.current:w===R.current,gt={isValidating:!1,isLoading:!1},Kt=()=>{I(gt)},yn=()=>{const Be=T[w];Be&&Be[1]===Te&&delete T[w]},Ce={isValidating:!0};Qe(E().data)&&(Ce.isLoading=!0);try{if(_e&&(I(Ce),a.loadingTimeout&&Qe(E().data)&&setTimeout(()=>{Ge&&Ke()&&ne().onLoadingSlow(w,a)},a.loadingTimeout),T[w]=[ge(B),Vc()]),[fe,Te]=T[w],fe=await fe,_e&&setTimeout(yn,a.dedupingInterval),!T[w]||T[w][1]!==Te)return _e&&Ke()&&ne().onDiscarded(w),!1;gt.error=an;const Be=A[w];if(!Qe(Be)&&(Te<=Be[0]||Te<=Be[1]||Be[1]===0))return Kt(),_e&&Ke()&&ne().onDiscarded(w),!1;const Mt=E().data;gt.data=u(Mt,fe)?Mt:fe,_e&&Ke()&&ne().onSuccess(fe,w,a)}catch(Be){yn();const Mt=ne(),{shouldRetryOnError:X}=Mt;Mt.isPaused()||(gt.error=Be,_e&&Ke()&&(Mt.onError(Be,w,Mt),(X===!0||ar(X)&&X(Be))&&(!ne().revalidateOnFocus||!ne().revalidateOnReconnect||V())&&Mt.onErrorRetry(Be,w,Mt,ae=>{const de=S[w];de&&de[0]&&de[0](Rl.ERROR_REVALIDATE_EVENT,ae)},{retryCount:(je.retryCount||0)+1,dedupe:!0})))}return Ge=!1,Kt(),!0},[w,l]),Ne=M.useCallback((...me)=>pg(l,R.current,...me),[]);if(jc(()=>{_.current=r,H.current=a,Qe(K)||(ie.current=K)}),jc(()=>{if(!w)return;const me=pe.bind(an,$c);let ge=0;const Te=iT(w,S,(Ge,je={})=>{if(Ge==Rl.FOCUS_EVENT){const _e=Date.now();ne().revalidateOnFocus&&_e>ge&&V()&&(ge=_e+ne().focusThrottleInterval,me())}else if(Ge==Rl.RECONNECT_EVENT)ne().revalidateOnReconnect&&V()&&me();else{if(Ge==Rl.MUTATE_EVENT)return pe();if(Ge==Rl.ERROR_REVALIDATE_EVENT)return pe(je)}});return z.current=!1,R.current=w,k.current=!0,I({_k:B}),he&&(Qe(se)||kl?me():VC(me)),()=>{z.current=!0,Te()}},[w]),jc(()=>{let me;function ge(){const Te=ar(h)?h(E().data):h;Te&&me!==-1&&(me=setTimeout(fe,Te))}function fe(){!E().error&&(g||ne().isVisible())&&(y||ne().isOnline())?pe($c).then(ge):ge()}return ge(),()=>{me&&(clearTimeout(me),me=-1)}},[h,g,y,w]),M.useDebugValue(ye),s&&Qe(se)&&w){if(!ug&&kl)throw new Error("Fallback data is required when using suspense in SSR.");_.current=r,H.current=a,z.current=!1;const me=N[w];if(!Qe(me)){const ge=Ne(me);yg(ge)}if(Qe(O)){const ge=pe($c);Qe(ye)||(ge.status="fulfilled",ge.value=!0),yg(ge)}else throw O}return{mutate:Ne,get data(){return P.data=!0,ye},get error(){return P.error=!0,O},get isValidating(){return P.isValidating=!0,we},get isLoading(){return P.isLoading=!0,Oe}}});var qc,bg;function aT(){if(bg)return qc;bg=1;function e(r,a){if(typeof r!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof r}\`.`);let l,u=0;return function(...f){clearTimeout(l);const d=Date.now(),m=d-u,h=a-m;h<=0?(u=d,r.apply(this,f)):l=setTimeout(()=>{u=Date.now(),r.apply(this,f)},h)}}return qc=e,qc}var lT=aT();const oT=Tn(lT);function Sg(e,r){return r!=null?oT(e,r):e}var uT=async(e,r,a,l,u,s,f,d,m,h,g,y,v,S,A,T,N)=>{var w;const B=f.current;a(r.messages,!1);const k=S?r.messages:r.messages.map(({role:R,content:_,experimental_attachments:H,data:ne,annotations:V,toolInvocations:E})=>({role:R,content:_,...H!==void 0&&{experimental_attachments:H},...ne!==void 0&&{data:ne},...V!==void 0&&{annotations:V},...E!==void 0&&{toolInvocations:E}})),z=u.current;return await RC({api:e,body:(w=A==null?void 0:A({messages:r.messages,requestData:r.data,requestBody:r.body}))!=null?w:{messages:k,data:r.data,...s.current.body,...r.body},streamProtocol:h,credentials:s.current.credentials,headers:{...s.current.headers,...r.headers},abortController:()=>d.current,restoreMessagesOnFailure(){N||a(B,!1)},onResponse:y,onUpdate(R,_){a([...r.messages,...R],!1),_!=null&&_.length&&l([...z??[],..._],!1)},onToolCall:v,onFinish:g,generateId:m,fetch:T})};function sT({api:e="/api/chat",id:r,initialMessages:a,initialInput:l="",sendExtraMessageFields:u,onToolCall:s,experimental_prepareRequestBody:f,maxSteps:d=1,streamProtocol:m="data",onResponse:h,onFinish:g,onError:y,credentials:v,headers:S,body:A,generateId:T=ng,fetch:N,keepLastMessageOnError:w=!0,experimental_throttle:B}={}){const k=M.useId(),z=r??k,R=typeof e=="string"?[e,z]:z,[_]=M.useState([]),{data:H,mutate:ne}=pu([R,"messages"],null,{fallbackData:a??_}),V=M.useRef(H||[]);M.useEffect(()=>{V.current=H||[]},[H]);const{data:E,mutate:I}=pu([R,"streamData"],null),Y=M.useRef(E);M.useEffect(()=>{Y.current=E},[E]);const{data:F=!1,mutate:P}=pu([R,"loading"],null),{data:ee=void 0,mutate:q}=pu([R,"error"],null),Z=M.useRef(null),Q=M.useRef({credentials:v,headers:S,body:A});M.useEffect(()=>{Q.current={credentials:v,headers:S,body:A}},[v,S,A]);const ue=M.useCallback(async pe=>{const Ne=V.current.length;try{P(!0),q(void 0);const fe=new AbortController;Z.current=fe,await uT(e,pe,Sg(ne,B),Sg(I,B),Y,Q,V,Z,T,m,g,h,s,u,f,N,w),Z.current=null}catch(fe){if(fe.name==="AbortError")return Z.current=null,null;y&&fe instanceof Error&&y(fe),q(fe)}finally{P(!1)}const me=V.current,ge=me[me.length-1];me.length>Ne&&ge!=null&&d>1&&vg(ge)&&cT(me)<d&&await ue({messages:me})},[ne,P,e,Q,h,g,y,q,I,Y,m,u,f,s,d,V,Z,T,N,w,B]),x=M.useCallback(async(pe,{data:Ne,headers:me,body:ge,experimental_attachments:fe}={})=>{var Te,Ge;const je=await ig(fe),_e=V.current.concat({...pe,id:(Te=pe.id)!=null?Te:T(),createdAt:(Ge=pe.createdAt)!=null?Ge:new Date,experimental_attachments:je.length>0?je:void 0});return ue({messages:_e,headers:me,body:ge,data:Ne})},[ue,T]),K=M.useCallback(async({data:pe,headers:Ne,body:me}={})=>{const ge=V.current;if(ge.length===0)return null;const fe=ge[ge.length-1];return ue({messages:fe.role==="assistant"?ge.slice(0,-1):ge,headers:Ne,body:me,data:pe})},[ue]),se=M.useCallback(()=>{Z.current&&(Z.current.abort(),Z.current=null)},[]),O=M.useCallback(pe=>{typeof pe=="function"&&(pe=pe(V.current)),ne(pe,!1),V.current=pe},[ne]),ie=M.useCallback(pe=>{typeof pe=="function"&&(pe=pe(Y.current)),I(pe,!1),Y.current=pe},[I]),[ye,he]=M.useState(l),Ue=M.useCallback(async(pe,Ne={},me)=>{var ge;if((ge=pe==null?void 0:pe.preventDefault)==null||ge.call(pe),!ye&&!Ne.allowEmptySubmit)return;me&&(Q.current={...Q.current,...me});const fe=await ig(Ne.experimental_attachments),Ge={messages:!ye&&!fe.length&&Ne.allowEmptySubmit?V.current:V.current.concat({id:T(),createdAt:new Date,role:"user",content:ye,experimental_attachments:fe.length>0?fe:void 0}),headers:Ne.headers,body:Ne.body,data:Ne.data};ue(Ge),he("")},[ye,T,ue]);return{messages:H||[],setMessages:O,data:E,setData:ie,error:ee,append:x,reload:K,stop:se,input:ye,setInput:he,handleInputChange:pe=>{he(pe.target.value)},handleSubmit:Ue,isLoading:F,addToolResult:({toolCallId:pe,result:Ne})=>{const me=V.current.map((fe,Te,Ge)=>Te===Ge.length-1&&fe.role==="assistant"&&fe.toolInvocations?{...fe,toolInvocations:fe.toolInvocations.map(je=>je.toolCallId===pe?{...je,result:Ne,state:"result"}:je)}:fe);ne(me,!1);const ge=me[me.length-1];vg(ge)&&ue({messages:me})}}}function vg(e){return e.role==="assistant"&&e.toolInvocations&&e.toolInvocations.length>0&&e.toolInvocations.every(r=>"result"in r)}function cT(e){let r=0;for(let a=e.length-1;a>=0&&e[a].role==="assistant";a--)r++;return r}var fT=sT;const dT=e=>e,pT=e=>async(r,a)=>{var f;if(typeof(a==null?void 0:a.body)!="string")return console.error("Unexpected body type."),window.fetch(r,a);const l=JSON.parse(a==null?void 0:a.body).messages,u=e.transformBody??dT,s={...a,body:JSON.stringify(u(l)),...e.fetchOpts,headers:{...a==null?void 0:a.headers,"Content-Type":"application/json",...(f=e.fetchOpts)==null?void 0:f.headers}};return fetch(r,s)},hT=(e,r)=>{const a=M.useMemo(()=>pT(e),[e]);return fT({api:e.apiUrl,streamProtocol:"text",fetch:a,onFinish:l=>{var u;e.onFinish&&(l.role==="assistant"||l.role==="user"?(u=e.onFinish)==null||u.call(e,l):console.info("Unexpected message role.",l))},...r})};function gO(){}function yO(){}function mT(e,r){const a={};return(e[e.length-1]===""?[...e,""]:e).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const gT=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,yT=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bT={};function xg(e,r){return(bT.jsx?yT:gT).test(e)}const ST=/[ \t\n\f\r]/g;function vT(e){return typeof e=="object"?e.type==="text"?Eg(e.value):!1:Eg(e)}function Eg(e){return e.replace(ST,"")===""}class Ol{constructor(r,a,l){this.property=r,this.normal=a,l&&(this.space=l)}}Ol.prototype.property={},Ol.prototype.normal={},Ol.prototype.space=null;function Cg(e,r){const a={},l={};let u=-1;for(;++u<e.length;)Object.assign(a,e[u].property),Object.assign(l,e[u].normal);return new Ol(a,l,r)}function Gc(e){return e.toLowerCase()}class Rn{constructor(r,a){this.property=r,this.attribute=a}}Rn.prototype.space=null,Rn.prototype.boolean=!1,Rn.prototype.booleanish=!1,Rn.prototype.overloadedBoolean=!1,Rn.prototype.number=!1,Rn.prototype.commaSeparated=!1,Rn.prototype.spaceSeparated=!1,Rn.prototype.commaOrSpaceSeparated=!1,Rn.prototype.mustUseProperty=!1,Rn.prototype.defined=!1;let xT=0;const De=gi(),Ot=gi(),Tg=gi(),oe=gi(),ut=gi(),ta=gi(),mn=gi();function gi(){return 2**++xT}const Yc=Object.freeze(Object.defineProperty({__proto__:null,boolean:De,booleanish:Ot,commaOrSpaceSeparated:mn,commaSeparated:ta,number:oe,overloadedBoolean:Tg,spaceSeparated:ut},Symbol.toStringTag,{value:"Module"})),Fc=Object.keys(Yc);class Pc extends Rn{constructor(r,a,l,u){let s=-1;if(super(r,a),wg(this,"space",u),typeof l=="number")for(;++s<Fc.length;){const f=Fc[s];wg(this,Fc[s],(l&Yc[f])===Yc[f])}}}Pc.prototype.defined=!0;function wg(e,r,a){a&&(e[r]=a)}const ET={}.hasOwnProperty;function na(e){const r={},a={};let l;for(l in e.properties)if(ET.call(e.properties,l)){const u=e.properties[l],s=new Pc(l,e.transform(e.attributes||{},l),u,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(s.mustUseProperty=!0),r[l]=s,a[Gc(l)]=l,a[Gc(s.attribute)]=l}return new Ol(r,a,e.space)}const Ag=na({space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),kg=na({space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Rg(e,r){return r in e?e[r]:r}function Og(e,r){return Rg(e,r.toLowerCase())}const Mg=na({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Og,properties:{xmlns:null,xmlnsXLink:null}}),_g=na({transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Ot,ariaAutoComplete:null,ariaBusy:Ot,ariaChecked:Ot,ariaColCount:oe,ariaColIndex:oe,ariaColSpan:oe,ariaControls:ut,ariaCurrent:null,ariaDescribedBy:ut,ariaDetails:null,ariaDisabled:Ot,ariaDropEffect:ut,ariaErrorMessage:null,ariaExpanded:Ot,ariaFlowTo:ut,ariaGrabbed:Ot,ariaHasPopup:null,ariaHidden:Ot,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ut,ariaLevel:oe,ariaLive:null,ariaModal:Ot,ariaMultiLine:Ot,ariaMultiSelectable:Ot,ariaOrientation:null,ariaOwns:ut,ariaPlaceholder:null,ariaPosInSet:oe,ariaPressed:Ot,ariaReadOnly:Ot,ariaRelevant:null,ariaRequired:Ot,ariaRoleDescription:ut,ariaRowCount:oe,ariaRowIndex:oe,ariaRowSpan:oe,ariaSelected:Ot,ariaSetSize:oe,ariaSort:null,ariaValueMax:oe,ariaValueMin:oe,ariaValueNow:oe,ariaValueText:null,role:null}}),CT=na({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Og,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ta,acceptCharset:ut,accessKey:ut,action:null,allow:null,allowFullScreen:De,allowPaymentRequest:De,allowUserMedia:De,alt:null,as:null,async:De,autoCapitalize:null,autoComplete:ut,autoFocus:De,autoPlay:De,blocking:ut,capture:null,charSet:null,checked:De,cite:null,className:ut,cols:oe,colSpan:null,content:null,contentEditable:Ot,controls:De,controlsList:ut,coords:oe|ta,crossOrigin:null,data:null,dateTime:null,decoding:null,default:De,defer:De,dir:null,dirName:null,disabled:De,download:Tg,draggable:Ot,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:De,formTarget:null,headers:ut,height:oe,hidden:De,high:oe,href:null,hrefLang:null,htmlFor:ut,httpEquiv:ut,id:null,imageSizes:null,imageSrcSet:null,inert:De,inputMode:null,integrity:null,is:null,isMap:De,itemId:null,itemProp:ut,itemRef:ut,itemScope:De,itemType:ut,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:De,low:oe,manifest:null,max:null,maxLength:oe,media:null,method:null,min:null,minLength:oe,multiple:De,muted:De,name:null,nonce:null,noModule:De,noValidate:De,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:De,optimum:oe,pattern:null,ping:ut,placeholder:null,playsInline:De,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:De,referrerPolicy:null,rel:ut,required:De,reversed:De,rows:oe,rowSpan:oe,sandbox:ut,scope:null,scoped:De,seamless:De,selected:De,shadowRootClonable:De,shadowRootDelegatesFocus:De,shadowRootMode:null,shape:null,size:oe,sizes:null,slot:null,span:oe,spellCheck:Ot,src:null,srcDoc:null,srcLang:null,srcSet:null,start:oe,step:null,style:null,tabIndex:oe,target:null,title:null,translate:null,type:null,typeMustMatch:De,useMap:null,value:Ot,width:oe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ut,axis:null,background:null,bgColor:null,border:oe,borderColor:null,bottomMargin:oe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:De,declare:De,event:null,face:null,frame:null,frameBorder:null,hSpace:oe,leftMargin:oe,link:null,longDesc:null,lowSrc:null,marginHeight:oe,marginWidth:oe,noResize:De,noHref:De,noShade:De,noWrap:De,object:null,profile:null,prompt:null,rev:null,rightMargin:oe,rules:null,scheme:null,scrolling:Ot,standby:null,summary:null,text:null,topMargin:oe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:oe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:De,disableRemotePlayback:De,prefix:null,property:null,results:oe,security:null,unselectable:null}}),TT=na({space:"svg",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"},transform:Rg,properties:{about:mn,accentHeight:oe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:oe,amplitude:oe,arabicForm:null,ascent:oe,attributeName:null,attributeType:null,azimuth:oe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:oe,by:null,calcMode:null,capHeight:oe,className:ut,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:oe,diffuseConstant:oe,direction:null,display:null,dur:null,divisor:oe,dominantBaseline:null,download:De,dx:null,dy:null,edgeMode:null,editable:null,elevation:oe,enableBackground:null,end:null,event:null,exponent:oe,externalResourcesRequired:null,fill:null,fillOpacity:oe,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:ta,g2:ta,glyphName:ta,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:oe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:oe,horizOriginX:oe,horizOriginY:oe,id:null,ideographic:oe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:oe,k:oe,k1:oe,k2:oe,k3:oe,k4:oe,kernelMatrix:mn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:oe,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:oe,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:oe,overlineThickness:oe,paintOrder:null,panose1:null,path:null,pathLength:oe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ut,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:oe,pointsAtY:oe,pointsAtZ:oe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:mn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:mn,rev:mn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:mn,requiredFeatures:mn,requiredFonts:mn,requiredFormats:mn,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:oe,specularExponent:oe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:oe,strikethroughThickness:oe,string:null,stroke:null,strokeDashArray:mn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:oe,strokeOpacity:oe,strokeWidth:null,style:null,surfaceScale:oe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:mn,tabIndex:oe,tableValues:null,target:null,targetX:oe,targetY:oe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:mn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:oe,underlineThickness:oe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:oe,values:null,vAlphabetic:oe,vMathematical:oe,vectorEffect:null,vHanging:oe,vIdeographic:oe,version:null,vertAdvY:oe,vertOriginX:oe,vertOriginY:oe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:oe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),wT=/^data[-\w.:]+$/i,Dg=/-[a-z]/g,AT=/[A-Z]/g;function kT(e,r){const a=Gc(r);let l=r,u=Rn;if(a in e.normal)return e.property[e.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&wT.test(r)){if(r.charAt(4)==="-"){const s=r.slice(5).replace(Dg,OT);l="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=r.slice(4);if(!Dg.test(s)){let f=s.replace(AT,RT);f.charAt(0)!=="-"&&(f="-"+f),r="data"+f}}u=Pc}return new u(l,r)}function RT(e){return"-"+e.toLowerCase()}function OT(e){return e.charAt(1).toUpperCase()}const MT={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"},_T=Cg([kg,Ag,Mg,_g,CT],"html"),Xc=Cg([kg,Ag,Mg,_g,TT],"svg");function DT(e){return e.join(" ").trim()}var Ml={},Qc,zg;function zT(){if(zg)return Qc;zg=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,a=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,u=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,d=/^\s+|\s+$/g,m=`
|
|
113
|
+
`,h="/",g="*",y="",v="comment",S="declaration";Qc=function(T,N){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];N=N||{};var w=1,B=1;function k(F){var P=F.match(r);P&&(w+=P.length);var ee=F.lastIndexOf(m);B=~ee?F.length-ee:B+F.length}function z(){var F={line:w,column:B};return function(P){return P.position=new R(F),ne(),P}}function R(F){this.start=F,this.end={line:w,column:B},this.source=N.source}R.prototype.content=T;function _(F){var P=new Error(N.source+":"+w+":"+B+": "+F);if(P.reason=F,P.filename=N.source,P.line=w,P.column=B,P.source=T,!N.silent)throw P}function H(F){var P=F.exec(T);if(P){var ee=P[0];return k(ee),T=T.slice(ee.length),P}}function ne(){H(a)}function V(F){var P;for(F=F||[];P=E();)P!==!1&&F.push(P);return F}function E(){var F=z();if(!(h!=T.charAt(0)||g!=T.charAt(1))){for(var P=2;y!=T.charAt(P)&&(g!=T.charAt(P)||h!=T.charAt(P+1));)++P;if(P+=2,y===T.charAt(P-1))return _("End of comment missing");var ee=T.slice(2,P-2);return B+=2,k(ee),T=T.slice(P),B+=2,F({type:v,comment:ee})}}function I(){var F=z(),P=H(l);if(P){if(E(),!H(u))return _("property missing ':'");var ee=H(s),q=F({type:S,property:A(P[0].replace(e,y)),value:ee?A(ee[0].replace(e,y)):y});return H(f),q}}function Y(){var F=[];V(F);for(var P;P=I();)P!==!1&&(F.push(P),V(F));return F}return ne(),Y()};function A(T){return T?T.replace(d,y):y}return Qc}var Ng;function NT(){if(Ng)return Ml;Ng=1;var e=Ml.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Ml,"__esModule",{value:!0}),Ml.default=a;var r=e(zT());function a(l,u){var s=null;if(!l||typeof l!="string")return s;var f=(0,r.default)(l),d=typeof u=="function";return f.forEach(function(m){if(m.type==="declaration"){var h=m.property,g=m.value;d?u(h,g,m):g&&(s=s||{},s[h]=g)}}),s}return Ml}var BT=NT();const Bg=Tn(BT),LT=Bg.default||Bg,Lg=Ug("end"),Kc=Ug("start");function Ug(e){return r;function r(a){const l=a&&a.position&&a.position[e]||{};if(typeof l.line=="number"&&l.line>0&&typeof l.column=="number"&&l.column>0)return{line:l.line,column:l.column,offset:typeof l.offset=="number"&&l.offset>-1?l.offset:void 0}}}function UT(e){const r=Kc(e),a=Lg(e);if(r&&a)return{start:r,end:a}}function _l(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?jg(e.position):"start"in e||"end"in e?jg(e):"line"in e||"column"in e?Zc(e):""}function Zc(e){return Hg(e&&e.line)+":"+Hg(e&&e.column)}function jg(e){return Zc(e&&e.start)+"-"+Zc(e&&e.end)}function Hg(e){return e&&typeof e=="number"?e:1}class Qt extends Error{constructor(r,a,l){super(),typeof a=="string"&&(l=a,a=void 0);let u="",s={},f=!1;if(a&&("line"in a&&"column"in a?s={place:a}:"start"in a&&"end"in a?s={place:a}:"type"in a?s={ancestors:[a],place:a.position}:s={...a}),typeof r=="string"?u=r:!s.cause&&r&&(f=!0,u=r.message,s.cause=r),!s.ruleId&&!s.source&&typeof l=="string"){const m=l.indexOf(":");m===-1?s.ruleId=l:(s.source=l.slice(0,m),s.ruleId=l.slice(m+1))}if(!s.place&&s.ancestors&&s.ancestors){const m=s.ancestors[s.ancestors.length-1];m&&(s.place=m.position)}const d=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=d?d.column:void 0,this.fatal=void 0,this.file,this.message=u,this.line=d?d.line:void 0,this.name=_l(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=f&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}Qt.prototype.file="",Qt.prototype.name="",Qt.prototype.reason="",Qt.prototype.message="",Qt.prototype.stack="",Qt.prototype.column=void 0,Qt.prototype.line=void 0,Qt.prototype.ancestors=void 0,Qt.prototype.cause=void 0,Qt.prototype.fatal=void 0,Qt.prototype.place=void 0,Qt.prototype.ruleId=void 0,Qt.prototype.source=void 0;const Wc={}.hasOwnProperty,jT=new Map,HT=/[A-Z]/g,IT=/-([a-z])/g,VT=new Set(["table","tbody","thead","tfoot","tr"]),$T=new Set(["td","th"]),Ig="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function qT(e,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const a=r.filePath||void 0;let l;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");l=ZT(a,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");l=KT(a,r.jsx,r.jsxs)}const u={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:l,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?Xc:_T,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},s=Vg(u,e,void 0);return s&&typeof s!="string"?s:u.create(e,u.Fragment,{children:s||void 0},void 0)}function Vg(e,r,a){if(r.type==="element")return GT(e,r,a);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return YT(e,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return PT(e,r,a);if(r.type==="mdxjsEsm")return FT(e,r);if(r.type==="root")return XT(e,r,a);if(r.type==="text")return QT(e,r)}function GT(e,r,a){const l=e.schema;let u=l;r.tagName.toLowerCase()==="svg"&&l.space==="html"&&(u=Xc,e.schema=u),e.ancestors.push(r);const s=qg(e,r.tagName,!1),f=WT(e,r);let d=ef(e,r);return VT.has(r.tagName)&&(d=d.filter(function(m){return typeof m=="string"?!vT(m):!0})),$g(e,f,s,r),Jc(f,d),e.ancestors.pop(),e.schema=l,e.create(r,s,f,a)}function YT(e,r){if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];return l.type,e.evaluater.evaluateExpression(l.expression)}Dl(e,r.position)}function FT(e,r){if(r.data&&r.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(r.data.estree);Dl(e,r.position)}function PT(e,r,a){const l=e.schema;let u=l;r.name==="svg"&&l.space==="html"&&(u=Xc,e.schema=u),e.ancestors.push(r);const s=r.name===null?e.Fragment:qg(e,r.name,!0),f=JT(e,r),d=ef(e,r);return $g(e,f,s,r),Jc(f,d),e.ancestors.pop(),e.schema=l,e.create(r,s,f,a)}function XT(e,r,a){const l={};return Jc(l,ef(e,r)),e.create(r,e.Fragment,l,a)}function QT(e,r){return r.value}function $g(e,r,a,l){typeof a!="string"&&a!==e.Fragment&&e.passNode&&(r.node=l)}function Jc(e,r){if(r.length>0){const a=r.length>1?r:r[0];a&&(e.children=a)}}function KT(e,r,a){return l;function l(u,s,f,d){const h=Array.isArray(f.children)?a:r;return d?h(s,f,d):h(s,f)}}function ZT(e,r){return a;function a(l,u,s,f){const d=Array.isArray(s.children),m=Kc(l);return r(u,s,f,d,{columnNumber:m?m.column-1:void 0,fileName:e,lineNumber:m?m.line:void 0},void 0)}}function WT(e,r){const a={};let l,u;for(u in r.properties)if(u!=="children"&&Wc.call(r.properties,u)){const s=ew(e,u,r.properties[u]);if(s){const[f,d]=s;e.tableCellAlignToStyle&&f==="align"&&typeof d=="string"&&$T.has(r.tagName)?l=d:a[f]=d}}if(l){const s=a.style||(a.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=l}return a}function JT(e,r){const a={};for(const l of r.attributes)if(l.type==="mdxJsxExpressionAttribute")if(l.data&&l.data.estree&&e.evaluater){const s=l.data.estree.body[0];s.type;const f=s.expression;f.type;const d=f.properties[0];d.type,Object.assign(a,e.evaluater.evaluateExpression(d.argument))}else Dl(e,r.position);else{const u=l.name;let s;if(l.value&&typeof l.value=="object")if(l.value.data&&l.value.data.estree&&e.evaluater){const d=l.value.data.estree.body[0];d.type,s=e.evaluater.evaluateExpression(d.expression)}else Dl(e,r.position);else s=l.value===null?!0:l.value;a[u]=s}return a}function ef(e,r){const a=[];let l=-1;const u=e.passKeys?new Map:jT;for(;++l<r.children.length;){const s=r.children[l];let f;if(e.passKeys){const m=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(m){const h=u.get(m)||0;f=m+"-"+h,u.set(m,h+1)}}const d=Vg(e,s,f);d!==void 0&&a.push(d)}return a}function ew(e,r,a){const l=kT(e.schema,r);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=l.commaSeparated?mT(a):DT(a)),l.property==="style"){let u=typeof a=="object"?a:tw(e,String(a));return e.stylePropertyNameCase==="css"&&(u=nw(u)),["style",u]}return[e.elementAttributeNameCase==="react"&&l.space?MT[l.property]||l.property:l.attribute,a]}}function tw(e,r){const a={};try{LT(r,l)}catch(u){if(!e.ignoreInvalidStyle){const s=u,f=new Qt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:s,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw f.file=e.filePath||void 0,f.url=Ig+"#cannot-parse-style-attribute",f}}return a;function l(u,s){let f=u;f.slice(0,2)!=="--"&&(f.slice(0,4)==="-ms-"&&(f="ms-"+f.slice(4)),f=f.replace(IT,iw)),a[f]=s}}function qg(e,r,a){let l;if(!a)l={type:"Literal",value:r};else if(r.includes(".")){const u=r.split(".");let s=-1,f;for(;++s<u.length;){const d=xg(u[s])?{type:"Identifier",name:u[s]}:{type:"Literal",value:u[s]};f=f?{type:"MemberExpression",object:f,property:d,computed:!!(s&&d.type==="Literal"),optional:!1}:d}l=f}else l=xg(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(l.type==="Literal"){const u=l.value;return Wc.call(e.components,u)?e.components[u]:u}if(e.evaluater)return e.evaluater.evaluateExpression(l);Dl(e)}function Dl(e,r){const a=new Qt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=Ig+"#cannot-handle-mdx-estrees-without-createevaluater",a}function nw(e){const r={};let a;for(a in e)Wc.call(e,a)&&(r[rw(a)]=e[a]);return r}function rw(e){let r=e.replace(HT,aw);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function iw(e,r){return r.toUpperCase()}function aw(e){return"-"+e.toLowerCase()}const tf={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"]},lw={};function ow(e,r){const a=lw,l=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,u=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return Gg(e,l,u)}function Gg(e,r,a){if(uw(e)){if("value"in e)return e.type==="html"&&!a?"":e.value;if(r&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Yg(e.children,r,a)}return Array.isArray(e)?Yg(e,r,a):""}function Yg(e,r,a){const l=[];let u=-1;for(;++u<e.length;)l[u]=Gg(e[u],r,a);return l.join("")}function uw(e){return!!(e&&typeof e=="object")}const Fg=document.createElement("i");function nf(e){const r="&"+e+";";Fg.innerHTML=r;const a=Fg.textContent;return a.charCodeAt(a.length-1)===59&&e!=="semi"||a===r?!1:a}function br(e,r,a,l){const u=e.length;let s=0,f;if(r<0?r=-r>u?0:u+r:r=r>u?u:r,a=a>0?a:0,l.length<1e4)f=Array.from(l),f.unshift(r,a),e.splice(...f);else for(a&&e.splice(r,a);s<l.length;)f=l.slice(s,s+1e4),f.unshift(r,0),e.splice(...f),s+=1e4,r+=1e4}function On(e,r){return e.length>0?(br(e,e.length,0,r),e):r}const Pg={}.hasOwnProperty;function sw(e){const r={};let a=-1;for(;++a<e.length;)cw(r,e[a]);return r}function cw(e,r){let a;for(a in r){const u=(Pg.call(e,a)?e[a]:void 0)||(e[a]={}),s=r[a];let f;if(s)for(f in s){Pg.call(u,f)||(u[f]=[]);const d=s[f];fw(u[f],Array.isArray(d)?d:d?[d]:[])}}}function fw(e,r){let a=-1;const l=[];for(;++a<r.length;)(r[a].add==="after"?e:l).push(r[a]);br(e,0,0,l)}function Xg(e,r){const a=Number.parseInt(e,r);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}function ra(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const lr=$r(/[A-Za-z]/),gn=$r(/[\dA-Za-z]/),dw=$r(/[#-'*+\--9=?A-Z^-~]/);function rf(e){return e!==null&&(e<32||e===127)}const af=$r(/\d/),pw=$r(/[\dA-Fa-f]/),hw=$r(/[!-/:-@[-`{-~]/);function ke(e){return e!==null&&e<-2}function ln(e){return e!==null&&(e<0||e===32)}function Je(e){return e===-2||e===-1||e===32}const mw=$r(new RegExp("\\p{P}|\\p{S}","u")),gw=$r(/\s/);function $r(e){return r;function r(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function ia(e){const r=[];let a=-1,l=0,u=0;for(;++a<e.length;){const s=e.charCodeAt(a);let f="";if(s===37&&gn(e.charCodeAt(a+1))&&gn(e.charCodeAt(a+2)))u=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(f=String.fromCharCode(s));else if(s>55295&&s<57344){const d=e.charCodeAt(a+1);s<56320&&d>56319&&d<57344?(f=String.fromCharCode(s,d),u=1):f="�"}else f=String.fromCharCode(s);f&&(r.push(e.slice(l,a),encodeURIComponent(f)),l=a+u+1,f=""),u&&(a+=u,u=0)}return r.join("")+e.slice(l)}function st(e,r,a,l){const u=l?l-1:Number.POSITIVE_INFINITY;let s=0;return f;function f(m){return Je(m)?(e.enter(a),d(m)):r(m)}function d(m){return Je(m)&&s++<u?(e.consume(m),d):(e.exit(a),r(m))}}const yw={tokenize:bw};function bw(e){const r=e.attempt(this.parser.constructs.contentInitial,l,u);let a;return r;function l(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),st(e,r,"linePrefix")}function u(d){return e.enter("paragraph"),s(d)}function s(d){const m=e.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=m),a=m,f(d)}function f(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return ke(d)?(e.consume(d),e.exit("chunkText"),s):(e.consume(d),f)}}const Sw={tokenize:vw},Qg={tokenize:xw};function vw(e){const r=this,a=[];let l=0,u,s,f;return d;function d(k){if(l<a.length){const z=a[l];return r.containerState=z[1],e.attempt(z[0].continuation,m,h)(k)}return h(k)}function m(k){if(l++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,u&&B();const z=r.events.length;let R=z,_;for(;R--;)if(r.events[R][0]==="exit"&&r.events[R][1].type==="chunkFlow"){_=r.events[R][1].end;break}w(l);let H=z;for(;H<r.events.length;)r.events[H][1].end=Object.assign({},_),H++;return br(r.events,R+1,0,r.events.slice(z)),r.events.length=H,h(k)}return d(k)}function h(k){if(l===a.length){if(!u)return v(k);if(u.currentConstruct&&u.currentConstruct.concrete)return A(k);r.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return r.containerState={},e.check(Qg,g,y)(k)}function g(k){return u&&B(),w(l),v(k)}function y(k){return r.parser.lazy[r.now().line]=l!==a.length,f=r.now().offset,A(k)}function v(k){return r.containerState={},e.attempt(Qg,S,A)(k)}function S(k){return l++,a.push([r.currentConstruct,r.containerState]),v(k)}function A(k){if(k===null){u&&B(),w(0),e.consume(k);return}return u=u||r.parser.flow(r.now()),e.enter("chunkFlow",{contentType:"flow",previous:s,_tokenizer:u}),T(k)}function T(k){if(k===null){N(e.exit("chunkFlow"),!0),w(0),e.consume(k);return}return ke(k)?(e.consume(k),N(e.exit("chunkFlow")),l=0,r.interrupt=void 0,d):(e.consume(k),T)}function N(k,z){const R=r.sliceStream(k);if(z&&R.push(null),k.previous=s,s&&(s.next=k),s=k,u.defineSkip(k.start),u.write(R),r.parser.lazy[k.start.line]){let _=u.events.length;for(;_--;)if(u.events[_][1].start.offset<f&&(!u.events[_][1].end||u.events[_][1].end.offset>f))return;const H=r.events.length;let ne=H,V,E;for(;ne--;)if(r.events[ne][0]==="exit"&&r.events[ne][1].type==="chunkFlow"){if(V){E=r.events[ne][1].end;break}V=!0}for(w(l),_=H;_<r.events.length;)r.events[_][1].end=Object.assign({},E),_++;br(r.events,ne+1,0,r.events.slice(H)),r.events.length=_}}function w(k){let z=a.length;for(;z-- >k;){const R=a[z];r.containerState=R[1],R[0].exit.call(r,e)}a.length=k}function B(){u.write([null]),s=void 0,u=void 0,r.containerState._closeFlow=void 0}}function xw(e,r,a){return st(e,e.attempt(this.parser.constructs.document,r,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Kg(e){if(e===null||ln(e)||gw(e))return 1;if(mw(e))return 2}function lf(e,r,a){const l=[];let u=-1;for(;++u<e.length;){const s=e[u].resolveAll;s&&!l.includes(s)&&(r=s(r,a),l.push(s))}return r}const of={name:"attention",tokenize:Cw,resolveAll:Ew};function Ew(e,r){let a=-1,l,u,s,f,d,m,h,g;for(;++a<e.length;)if(e[a][0]==="enter"&&e[a][1].type==="attentionSequence"&&e[a][1]._close){for(l=a;l--;)if(e[l][0]==="exit"&&e[l][1].type==="attentionSequence"&&e[l][1]._open&&r.sliceSerialize(e[l][1]).charCodeAt(0)===r.sliceSerialize(e[a][1]).charCodeAt(0)){if((e[l][1]._close||e[a][1]._open)&&(e[a][1].end.offset-e[a][1].start.offset)%3&&!((e[l][1].end.offset-e[l][1].start.offset+e[a][1].end.offset-e[a][1].start.offset)%3))continue;m=e[l][1].end.offset-e[l][1].start.offset>1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1;const y=Object.assign({},e[l][1].end),v=Object.assign({},e[a][1].start);Zg(y,-m),Zg(v,m),f={type:m>1?"strongSequence":"emphasisSequence",start:y,end:Object.assign({},e[l][1].end)},d={type:m>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[a][1].start),end:v},s={type:m>1?"strongText":"emphasisText",start:Object.assign({},e[l][1].end),end:Object.assign({},e[a][1].start)},u={type:m>1?"strong":"emphasis",start:Object.assign({},f.start),end:Object.assign({},d.end)},e[l][1].end=Object.assign({},f.start),e[a][1].start=Object.assign({},d.end),h=[],e[l][1].end.offset-e[l][1].start.offset&&(h=On(h,[["enter",e[l][1],r],["exit",e[l][1],r]])),h=On(h,[["enter",u,r],["enter",f,r],["exit",f,r],["enter",s,r]]),h=On(h,lf(r.parser.constructs.insideSpan.null,e.slice(l+1,a),r)),h=On(h,[["exit",s,r],["enter",d,r],["exit",d,r],["exit",u,r]]),e[a][1].end.offset-e[a][1].start.offset?(g=2,h=On(h,[["enter",e[a][1],r],["exit",e[a][1],r]])):g=0,br(e,l-1,a-l+3,h),a=l+h.length-g-2;break}}for(a=-1;++a<e.length;)e[a][1].type==="attentionSequence"&&(e[a][1].type="data");return e}function Cw(e,r){const a=this.parser.constructs.attentionMarkers.null,l=this.previous,u=Kg(l);let s;return f;function f(m){return s=m,e.enter("attentionSequence"),d(m)}function d(m){if(m===s)return e.consume(m),d;const h=e.exit("attentionSequence"),g=Kg(m),y=!g||g===2&&u||a.includes(m),v=!u||u===2&&g||a.includes(l);return h._open=!!(s===42?y:y&&(u||!v)),h._close=!!(s===42?v:v&&(g||!y)),r(m)}}function Zg(e,r){e.column+=r,e.offset+=r,e._bufferIndex+=r}const Tw={name:"autolink",tokenize:ww};function ww(e,r,a){let l=0;return u;function u(S){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(S),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(S){return lr(S)?(e.consume(S),f):S===64?a(S):h(S)}function f(S){return S===43||S===45||S===46||gn(S)?(l=1,d(S)):h(S)}function d(S){return S===58?(e.consume(S),l=0,m):(S===43||S===45||S===46||gn(S))&&l++<32?(e.consume(S),d):(l=0,h(S))}function m(S){return S===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(S),e.exit("autolinkMarker"),e.exit("autolink"),r):S===null||S===32||S===60||rf(S)?a(S):(e.consume(S),m)}function h(S){return S===64?(e.consume(S),g):dw(S)?(e.consume(S),h):a(S)}function g(S){return gn(S)?y(S):a(S)}function y(S){return S===46?(e.consume(S),l=0,g):S===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(S),e.exit("autolinkMarker"),e.exit("autolink"),r):v(S)}function v(S){if((S===45||gn(S))&&l++<63){const A=S===45?v:y;return e.consume(S),A}return a(S)}}const hu={tokenize:Aw,partial:!0};function Aw(e,r,a){return l;function l(s){return Je(s)?st(e,u,"linePrefix")(s):u(s)}function u(s){return s===null||ke(s)?r(s):a(s)}}const Wg={name:"blockQuote",tokenize:kw,continuation:{tokenize:Rw},exit:Ow};function kw(e,r,a){const l=this;return u;function u(f){if(f===62){const d=l.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(f),e.exit("blockQuoteMarker"),s}return a(f)}function s(f){return Je(f)?(e.enter("blockQuotePrefixWhitespace"),e.consume(f),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),r):(e.exit("blockQuotePrefix"),r(f))}}function Rw(e,r,a){const l=this;return u;function u(f){return Je(f)?st(e,s,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):s(f)}function s(f){return e.attempt(Wg,r,a)(f)}}function Ow(e){e.exit("blockQuote")}const Jg={name:"characterEscape",tokenize:Mw};function Mw(e,r,a){return l;function l(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),u}function u(s){return hw(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),r):a(s)}}const ey={name:"characterReference",tokenize:_w};function _w(e,r,a){const l=this;let u=0,s,f;return d;function d(y){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),m}function m(y){return y===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(y),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),s=31,f=gn,g(y))}function h(y){return y===88||y===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(y),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,f=pw,g):(e.enter("characterReferenceValue"),s=7,f=af,g(y))}function g(y){if(y===59&&u){const v=e.exit("characterReferenceValue");return f===gn&&!nf(l.sliceSerialize(v))?a(y):(e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),e.exit("characterReference"),r)}return f(y)&&u++<s?(e.consume(y),g):a(y)}}const ty={tokenize:zw,partial:!0},ny={name:"codeFenced",tokenize:Dw,concrete:!0};function Dw(e,r,a){const l=this,u={tokenize:R,partial:!0};let s=0,f=0,d;return m;function m(_){return h(_)}function h(_){const H=l.events[l.events.length-1];return s=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,d=_,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),g(_)}function g(_){return _===d?(f++,e.consume(_),g):f<3?a(_):(e.exit("codeFencedFenceSequence"),Je(_)?st(e,y,"whitespace")(_):y(_))}function y(_){return _===null||ke(_)?(e.exit("codeFencedFence"),l.interrupt?r(_):e.check(ty,T,z)(_)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(_))}function v(_){return _===null||ke(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(_)):Je(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),st(e,S,"whitespace")(_)):_===96&&_===d?a(_):(e.consume(_),v)}function S(_){return _===null||ke(_)?y(_):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),A(_))}function A(_){return _===null||ke(_)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(_)):_===96&&_===d?a(_):(e.consume(_),A)}function T(_){return e.attempt(u,z,N)(_)}function N(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),w}function w(_){return s>0&&Je(_)?st(e,B,"linePrefix",s+1)(_):B(_)}function B(_){return _===null||ke(_)?e.check(ty,T,z)(_):(e.enter("codeFlowValue"),k(_))}function k(_){return _===null||ke(_)?(e.exit("codeFlowValue"),B(_)):(e.consume(_),k)}function z(_){return e.exit("codeFenced"),r(_)}function R(_,H,ne){let V=0;return E;function E(ee){return _.enter("lineEnding"),_.consume(ee),_.exit("lineEnding"),I}function I(ee){return _.enter("codeFencedFence"),Je(ee)?st(_,Y,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ee):Y(ee)}function Y(ee){return ee===d?(_.enter("codeFencedFenceSequence"),F(ee)):ne(ee)}function F(ee){return ee===d?(V++,_.consume(ee),F):V>=f?(_.exit("codeFencedFenceSequence"),Je(ee)?st(_,P,"whitespace")(ee):P(ee)):ne(ee)}function P(ee){return ee===null||ke(ee)?(_.exit("codeFencedFence"),H(ee)):ne(ee)}}}function zw(e,r,a){const l=this;return u;function u(f){return f===null?a(f):(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s)}function s(f){return l.parser.lazy[l.now().line]?a(f):r(f)}}const uf={name:"codeIndented",tokenize:Bw},Nw={tokenize:Lw,partial:!0};function Bw(e,r,a){const l=this;return u;function u(h){return e.enter("codeIndented"),st(e,s,"linePrefix",5)(h)}function s(h){const g=l.events[l.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?f(h):a(h)}function f(h){return h===null?m(h):ke(h)?e.attempt(Nw,f,m)(h):(e.enter("codeFlowValue"),d(h))}function d(h){return h===null||ke(h)?(e.exit("codeFlowValue"),f(h)):(e.consume(h),d)}function m(h){return e.exit("codeIndented"),r(h)}}function Lw(e,r,a){const l=this;return u;function u(f){return l.parser.lazy[l.now().line]?a(f):ke(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):st(e,s,"linePrefix",5)(f)}function s(f){const d=l.events[l.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?r(f):ke(f)?u(f):a(f)}}const Uw={name:"codeText",tokenize:Iw,resolve:jw,previous:Hw};function jw(e){let r=e.length-4,a=3,l,u;if((e[a][1].type==="lineEnding"||e[a][1].type==="space")&&(e[r][1].type==="lineEnding"||e[r][1].type==="space")){for(l=a;++l<r;)if(e[l][1].type==="codeTextData"){e[a][1].type="codeTextPadding",e[r][1].type="codeTextPadding",a+=2,r-=2;break}}for(l=a-1,r++;++l<=r;)u===void 0?l!==r&&e[l][1].type!=="lineEnding"&&(u=l):(l===r||e[l][1].type==="lineEnding")&&(e[u][1].type="codeTextData",l!==u+2&&(e[u][1].end=e[l-1][1].end,e.splice(u+2,l-u-2),r-=l-u-2,l=u+2),u=void 0);return e}function Hw(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Iw(e,r,a){let l=0,u,s;return f;function f(y){return e.enter("codeText"),e.enter("codeTextSequence"),d(y)}function d(y){return y===96?(e.consume(y),l++,d):(e.exit("codeTextSequence"),m(y))}function m(y){return y===null?a(y):y===32?(e.enter("space"),e.consume(y),e.exit("space"),m):y===96?(s=e.enter("codeTextSequence"),u=0,g(y)):ke(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),m):(e.enter("codeTextData"),h(y))}function h(y){return y===null||y===32||y===96||ke(y)?(e.exit("codeTextData"),m(y)):(e.consume(y),h)}function g(y){return y===96?(e.consume(y),u++,g):u===l?(e.exit("codeTextSequence"),e.exit("codeText"),r(y)):(s.type="codeTextData",h(y))}}class Vw{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,a){const l=a??Number.POSITIVE_INFINITY;return l<this.left.length?this.left.slice(r,l):r>this.left.length?this.right.slice(this.right.length-l+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-l+this.left.length).reverse())}splice(r,a,l){const u=a||0;this.setCursor(Math.trunc(r));const s=this.right.splice(this.right.length-u,Number.POSITIVE_INFINITY);return l&&zl(this.left,l),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),zl(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),zl(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const a=this.left.splice(r,Number.POSITIVE_INFINITY);zl(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);zl(this.left,a.reverse())}}}function zl(e,r){let a=0;if(r.length<1e4)e.push(...r);else for(;a<r.length;)e.push(...r.slice(a,a+1e4)),a+=1e4}function ry(e){const r={};let a=-1,l,u,s,f,d,m,h;const g=new Vw(e);for(;++a<g.length;){for(;a in r;)a=r[a];if(l=g.get(a),a&&l[1].type==="chunkFlow"&&g.get(a-1)[1].type==="listItemPrefix"&&(m=l[1]._tokenizer.events,s=0,s<m.length&&m[s][1].type==="lineEndingBlank"&&(s+=2),s<m.length&&m[s][1].type==="content"))for(;++s<m.length&&m[s][1].type!=="content";)m[s][1].type==="chunkText"&&(m[s][1]._isInFirstContentOfListItem=!0,s++);if(l[0]==="enter")l[1].contentType&&(Object.assign(r,$w(g,a)),a=r[a],h=!0);else if(l[1]._container){for(s=a,u=void 0;s--&&(f=g.get(s),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank");)f[0]==="enter"&&(u&&(g.get(u)[1].type="lineEndingBlank"),f[1].type="lineEnding",u=s);u&&(l[1].end=Object.assign({},g.get(u)[1].start),d=g.slice(u,a),d.unshift(l),g.splice(u,a-u+1,d))}}return br(e,0,Number.POSITIVE_INFINITY,g.slice(0)),!h}function $w(e,r){const a=e.get(r)[1],l=e.get(r)[2];let u=r-1;const s=[],f=a._tokenizer||l.parser[a.contentType](a.start),d=f.events,m=[],h={};let g,y,v=-1,S=a,A=0,T=0;const N=[T];for(;S;){for(;e.get(++u)[1]!==S;);s.push(u),S._tokenizer||(g=l.sliceStream(S),S.next||g.push(null),y&&f.defineSkip(S.start),S._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(g),S._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),y=S,S=S.next}for(S=a;++v<d.length;)d[v][0]==="exit"&&d[v-1][0]==="enter"&&d[v][1].type===d[v-1][1].type&&d[v][1].start.line!==d[v][1].end.line&&(T=v+1,N.push(T),S._tokenizer=void 0,S.previous=void 0,S=S.next);for(f.events=[],S?(S._tokenizer=void 0,S.previous=void 0):N.pop(),v=N.length;v--;){const w=d.slice(N[v],N[v+1]),B=s.pop();m.push([B,B+w.length-1]),e.splice(B,2,w)}for(m.reverse(),v=-1;++v<m.length;)h[A+m[v][0]]=A+m[v][1],A+=m[v][1]-m[v][0]-1;return h}const qw={tokenize:Fw,resolve:Yw},Gw={tokenize:Pw,partial:!0};function Yw(e){return ry(e),e}function Fw(e,r){let a;return l;function l(d){return e.enter("content"),a=e.enter("chunkContent",{contentType:"content"}),u(d)}function u(d){return d===null?s(d):ke(d)?e.check(Gw,f,s)(d):(e.consume(d),u)}function s(d){return e.exit("chunkContent"),e.exit("content"),r(d)}function f(d){return e.consume(d),e.exit("chunkContent"),a.next=e.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,u}}function Pw(e,r,a){const l=this;return u;function u(f){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),st(e,s,"linePrefix")}function s(f){if(f===null||ke(f))return a(f);const d=l.events[l.events.length-1];return!l.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?r(f):e.interrupt(l.parser.constructs.flow,a,r)(f)}}function iy(e,r,a,l,u,s,f,d,m){const h=m||Number.POSITIVE_INFINITY;let g=0;return y;function y(w){return w===60?(e.enter(l),e.enter(u),e.enter(s),e.consume(w),e.exit(s),v):w===null||w===32||w===41||rf(w)?a(w):(e.enter(l),e.enter(f),e.enter(d),e.enter("chunkString",{contentType:"string"}),T(w))}function v(w){return w===62?(e.enter(s),e.consume(w),e.exit(s),e.exit(u),e.exit(l),r):(e.enter(d),e.enter("chunkString",{contentType:"string"}),S(w))}function S(w){return w===62?(e.exit("chunkString"),e.exit(d),v(w)):w===null||w===60||ke(w)?a(w):(e.consume(w),w===92?A:S)}function A(w){return w===60||w===62||w===92?(e.consume(w),S):S(w)}function T(w){return!g&&(w===null||w===41||ln(w))?(e.exit("chunkString"),e.exit(d),e.exit(f),e.exit(l),r(w)):g<h&&w===40?(e.consume(w),g++,T):w===41?(e.consume(w),g--,T):w===null||w===32||w===40||rf(w)?a(w):(e.consume(w),w===92?N:T)}function N(w){return w===40||w===41||w===92?(e.consume(w),T):T(w)}}function ay(e,r,a,l,u,s){const f=this;let d=0,m;return h;function h(S){return e.enter(l),e.enter(u),e.consume(S),e.exit(u),e.enter(s),g}function g(S){return d>999||S===null||S===91||S===93&&!m||S===94&&!d&&"_hiddenFootnoteSupport"in f.parser.constructs?a(S):S===93?(e.exit(s),e.enter(u),e.consume(S),e.exit(u),e.exit(l),r):ke(S)?(e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),g):(e.enter("chunkString",{contentType:"string"}),y(S))}function y(S){return S===null||S===91||S===93||ke(S)||d++>999?(e.exit("chunkString"),g(S)):(e.consume(S),m||(m=!Je(S)),S===92?v:y)}function v(S){return S===91||S===92||S===93?(e.consume(S),d++,y):y(S)}}function ly(e,r,a,l,u,s){let f;return d;function d(v){return v===34||v===39||v===40?(e.enter(l),e.enter(u),e.consume(v),e.exit(u),f=v===40?41:v,m):a(v)}function m(v){return v===f?(e.enter(u),e.consume(v),e.exit(u),e.exit(l),r):(e.enter(s),h(v))}function h(v){return v===f?(e.exit(s),m(f)):v===null?a(v):ke(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),st(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===f||v===null||ke(v)?(e.exit("chunkString"),h(v)):(e.consume(v),v===92?y:g)}function y(v){return v===f||v===92?(e.consume(v),g):g(v)}}function Nl(e,r){let a;return l;function l(u){return ke(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a=!0,l):Je(u)?st(e,l,a?"linePrefix":"lineSuffix")(u):r(u)}}const Xw={name:"definition",tokenize:Kw},Qw={tokenize:Zw,partial:!0};function Kw(e,r,a){const l=this;let u;return s;function s(S){return e.enter("definition"),f(S)}function f(S){return ay.call(l,e,d,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(S)}function d(S){return u=ra(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),m):a(S)}function m(S){return ln(S)?Nl(e,h)(S):h(S)}function h(S){return iy(e,g,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function g(S){return e.attempt(Qw,y,y)(S)}function y(S){return Je(S)?st(e,v,"whitespace")(S):v(S)}function v(S){return S===null||ke(S)?(e.exit("definition"),l.parser.defined.push(u),r(S)):a(S)}}function Zw(e,r,a){return l;function l(d){return ln(d)?Nl(e,u)(d):a(d)}function u(d){return ly(e,s,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function s(d){return Je(d)?st(e,f,"whitespace")(d):f(d)}function f(d){return d===null||ke(d)?r(d):a(d)}}const Ww={name:"hardBreakEscape",tokenize:Jw};function Jw(e,r,a){return l;function l(s){return e.enter("hardBreakEscape"),e.consume(s),u}function u(s){return ke(s)?(e.exit("hardBreakEscape"),r(s)):a(s)}}const eA={name:"headingAtx",tokenize:nA,resolve:tA};function tA(e,r){let a=e.length-2,l=3,u,s;return e[l][1].type==="whitespace"&&(l+=2),a-2>l&&e[a][1].type==="whitespace"&&(a-=2),e[a][1].type==="atxHeadingSequence"&&(l===a-1||a-4>l&&e[a-2][1].type==="whitespace")&&(a-=l+1===a?2:4),a>l&&(u={type:"atxHeadingText",start:e[l][1].start,end:e[a][1].end},s={type:"chunkText",start:e[l][1].start,end:e[a][1].end,contentType:"text"},br(e,l,a-l+1,[["enter",u,r],["enter",s,r],["exit",s,r],["exit",u,r]])),e}function nA(e,r,a){let l=0;return u;function u(g){return e.enter("atxHeading"),s(g)}function s(g){return e.enter("atxHeadingSequence"),f(g)}function f(g){return g===35&&l++<6?(e.consume(g),f):g===null||ln(g)?(e.exit("atxHeadingSequence"),d(g)):a(g)}function d(g){return g===35?(e.enter("atxHeadingSequence"),m(g)):g===null||ke(g)?(e.exit("atxHeading"),r(g)):Je(g)?st(e,d,"whitespace")(g):(e.enter("atxHeadingText"),h(g))}function m(g){return g===35?(e.consume(g),m):(e.exit("atxHeadingSequence"),d(g))}function h(g){return g===null||g===35||ln(g)?(e.exit("atxHeadingText"),d(g)):(e.consume(g),h)}}const rA=["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"],oy=["pre","script","style","textarea"],iA={name:"htmlFlow",tokenize:uA,resolveTo:oA,concrete:!0},aA={tokenize:cA,partial:!0},lA={tokenize:sA,partial:!0};function oA(e){let r=e.length;for(;r--&&!(e[r][0]==="enter"&&e[r][1].type==="htmlFlow"););return r>1&&e[r-2][1].type==="linePrefix"&&(e[r][1].start=e[r-2][1].start,e[r+1][1].start=e[r-2][1].start,e.splice(r-2,2)),e}function uA(e,r,a){const l=this;let u,s,f,d,m;return h;function h(O){return g(O)}function g(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),y}function y(O){return O===33?(e.consume(O),v):O===47?(e.consume(O),s=!0,T):O===63?(e.consume(O),u=3,l.interrupt?r:x):lr(O)?(e.consume(O),f=String.fromCharCode(O),N):a(O)}function v(O){return O===45?(e.consume(O),u=2,S):O===91?(e.consume(O),u=5,d=0,A):lr(O)?(e.consume(O),u=4,l.interrupt?r:x):a(O)}function S(O){return O===45?(e.consume(O),l.interrupt?r:x):a(O)}function A(O){const ie="CDATA[";return O===ie.charCodeAt(d++)?(e.consume(O),d===ie.length?l.interrupt?r:Y:A):a(O)}function T(O){return lr(O)?(e.consume(O),f=String.fromCharCode(O),N):a(O)}function N(O){if(O===null||O===47||O===62||ln(O)){const ie=O===47,ye=f.toLowerCase();return!ie&&!s&&oy.includes(ye)?(u=1,l.interrupt?r(O):Y(O)):rA.includes(f.toLowerCase())?(u=6,ie?(e.consume(O),w):l.interrupt?r(O):Y(O)):(u=7,l.interrupt&&!l.parser.lazy[l.now().line]?a(O):s?B(O):k(O))}return O===45||gn(O)?(e.consume(O),f+=String.fromCharCode(O),N):a(O)}function w(O){return O===62?(e.consume(O),l.interrupt?r:Y):a(O)}function B(O){return Je(O)?(e.consume(O),B):E(O)}function k(O){return O===47?(e.consume(O),E):O===58||O===95||lr(O)?(e.consume(O),z):Je(O)?(e.consume(O),k):E(O)}function z(O){return O===45||O===46||O===58||O===95||gn(O)?(e.consume(O),z):R(O)}function R(O){return O===61?(e.consume(O),_):Je(O)?(e.consume(O),R):k(O)}function _(O){return O===null||O===60||O===61||O===62||O===96?a(O):O===34||O===39?(e.consume(O),m=O,H):Je(O)?(e.consume(O),_):ne(O)}function H(O){return O===m?(e.consume(O),m=null,V):O===null||ke(O)?a(O):(e.consume(O),H)}function ne(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||ln(O)?R(O):(e.consume(O),ne)}function V(O){return O===47||O===62||Je(O)?k(O):a(O)}function E(O){return O===62?(e.consume(O),I):a(O)}function I(O){return O===null||ke(O)?Y(O):Je(O)?(e.consume(O),I):a(O)}function Y(O){return O===45&&u===2?(e.consume(O),q):O===60&&u===1?(e.consume(O),Z):O===62&&u===4?(e.consume(O),K):O===63&&u===3?(e.consume(O),x):O===93&&u===5?(e.consume(O),ue):ke(O)&&(u===6||u===7)?(e.exit("htmlFlowData"),e.check(aA,se,F)(O)):O===null||ke(O)?(e.exit("htmlFlowData"),F(O)):(e.consume(O),Y)}function F(O){return e.check(lA,P,se)(O)}function P(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),ee}function ee(O){return O===null||ke(O)?F(O):(e.enter("htmlFlowData"),Y(O))}function q(O){return O===45?(e.consume(O),x):Y(O)}function Z(O){return O===47?(e.consume(O),f="",Q):Y(O)}function Q(O){if(O===62){const ie=f.toLowerCase();return oy.includes(ie)?(e.consume(O),K):Y(O)}return lr(O)&&f.length<8?(e.consume(O),f+=String.fromCharCode(O),Q):Y(O)}function ue(O){return O===93?(e.consume(O),x):Y(O)}function x(O){return O===62?(e.consume(O),K):O===45&&u===2?(e.consume(O),x):Y(O)}function K(O){return O===null||ke(O)?(e.exit("htmlFlowData"),se(O)):(e.consume(O),K)}function se(O){return e.exit("htmlFlow"),r(O)}}function sA(e,r,a){const l=this;return u;function u(f){return ke(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):a(f)}function s(f){return l.parser.lazy[l.now().line]?a(f):r(f)}}function cA(e,r,a){return l;function l(u){return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),e.attempt(hu,r,a)}}const fA={name:"htmlText",tokenize:dA};function dA(e,r,a){const l=this;let u,s,f;return d;function d(x){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(x),m}function m(x){return x===33?(e.consume(x),h):x===47?(e.consume(x),R):x===63?(e.consume(x),k):lr(x)?(e.consume(x),ne):a(x)}function h(x){return x===45?(e.consume(x),g):x===91?(e.consume(x),s=0,A):lr(x)?(e.consume(x),B):a(x)}function g(x){return x===45?(e.consume(x),S):a(x)}function y(x){return x===null?a(x):x===45?(e.consume(x),v):ke(x)?(f=y,Z(x)):(e.consume(x),y)}function v(x){return x===45?(e.consume(x),S):y(x)}function S(x){return x===62?q(x):x===45?v(x):y(x)}function A(x){const K="CDATA[";return x===K.charCodeAt(s++)?(e.consume(x),s===K.length?T:A):a(x)}function T(x){return x===null?a(x):x===93?(e.consume(x),N):ke(x)?(f=T,Z(x)):(e.consume(x),T)}function N(x){return x===93?(e.consume(x),w):T(x)}function w(x){return x===62?q(x):x===93?(e.consume(x),w):T(x)}function B(x){return x===null||x===62?q(x):ke(x)?(f=B,Z(x)):(e.consume(x),B)}function k(x){return x===null?a(x):x===63?(e.consume(x),z):ke(x)?(f=k,Z(x)):(e.consume(x),k)}function z(x){return x===62?q(x):k(x)}function R(x){return lr(x)?(e.consume(x),_):a(x)}function _(x){return x===45||gn(x)?(e.consume(x),_):H(x)}function H(x){return ke(x)?(f=H,Z(x)):Je(x)?(e.consume(x),H):q(x)}function ne(x){return x===45||gn(x)?(e.consume(x),ne):x===47||x===62||ln(x)?V(x):a(x)}function V(x){return x===47?(e.consume(x),q):x===58||x===95||lr(x)?(e.consume(x),E):ke(x)?(f=V,Z(x)):Je(x)?(e.consume(x),V):q(x)}function E(x){return x===45||x===46||x===58||x===95||gn(x)?(e.consume(x),E):I(x)}function I(x){return x===61?(e.consume(x),Y):ke(x)?(f=I,Z(x)):Je(x)?(e.consume(x),I):V(x)}function Y(x){return x===null||x===60||x===61||x===62||x===96?a(x):x===34||x===39?(e.consume(x),u=x,F):ke(x)?(f=Y,Z(x)):Je(x)?(e.consume(x),Y):(e.consume(x),P)}function F(x){return x===u?(e.consume(x),u=void 0,ee):x===null?a(x):ke(x)?(f=F,Z(x)):(e.consume(x),F)}function P(x){return x===null||x===34||x===39||x===60||x===61||x===96?a(x):x===47||x===62||ln(x)?V(x):(e.consume(x),P)}function ee(x){return x===47||x===62||ln(x)?V(x):a(x)}function q(x){return x===62?(e.consume(x),e.exit("htmlTextData"),e.exit("htmlText"),r):a(x)}function Z(x){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),Q}function Q(x){return Je(x)?st(e,ue,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):ue(x)}function ue(x){return e.enter("htmlTextData"),f(x)}}const sf={name:"labelEnd",tokenize:bA,resolveTo:yA,resolveAll:gA},pA={tokenize:SA},hA={tokenize:vA},mA={tokenize:xA};function gA(e){let r=-1;for(;++r<e.length;){const a=e[r][1];(a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd")&&(e.splice(r+1,a.type==="labelImage"?4:2),a.type="data",r++)}return e}function yA(e,r){let a=e.length,l=0,u,s,f,d;for(;a--;)if(u=e[a][1],s){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;e[a][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(f){if(e[a][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(s=a,u.type!=="labelLink")){l=2;break}}else u.type==="labelEnd"&&(f=a);const m={type:e[s][1].type==="labelLink"?"link":"image",start:Object.assign({},e[s][1].start),end:Object.assign({},e[e.length-1][1].end)},h={type:"label",start:Object.assign({},e[s][1].start),end:Object.assign({},e[f][1].end)},g={type:"labelText",start:Object.assign({},e[s+l+2][1].end),end:Object.assign({},e[f-2][1].start)};return d=[["enter",m,r],["enter",h,r]],d=On(d,e.slice(s+1,s+l+3)),d=On(d,[["enter",g,r]]),d=On(d,lf(r.parser.constructs.insideSpan.null,e.slice(s+l+4,f-3),r)),d=On(d,[["exit",g,r],e[f-2],e[f-1],["exit",h,r]]),d=On(d,e.slice(f+1)),d=On(d,[["exit",m,r]]),br(e,s,e.length,d),e}function bA(e,r,a){const l=this;let u=l.events.length,s,f;for(;u--;)if((l.events[u][1].type==="labelImage"||l.events[u][1].type==="labelLink")&&!l.events[u][1]._balanced){s=l.events[u][1];break}return d;function d(v){return s?s._inactive?y(v):(f=l.parser.defined.includes(ra(l.sliceSerialize({start:s.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),m):a(v)}function m(v){return v===40?e.attempt(pA,g,f?g:y)(v):v===91?e.attempt(hA,g,f?h:y)(v):f?g(v):y(v)}function h(v){return e.attempt(mA,g,y)(v)}function g(v){return r(v)}function y(v){return s._balanced=!0,a(v)}}function SA(e,r,a){return l;function l(y){return e.enter("resource"),e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),u}function u(y){return ln(y)?Nl(e,s)(y):s(y)}function s(y){return y===41?g(y):iy(e,f,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function f(y){return ln(y)?Nl(e,m)(y):g(y)}function d(y){return a(y)}function m(y){return y===34||y===39||y===40?ly(e,h,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):g(y)}function h(y){return ln(y)?Nl(e,g)(y):g(y)}function g(y){return y===41?(e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),e.exit("resource"),r):a(y)}}function vA(e,r,a){const l=this;return u;function u(d){return ay.call(l,e,s,f,"reference","referenceMarker","referenceString")(d)}function s(d){return l.parser.defined.includes(ra(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?r(d):a(d)}function f(d){return a(d)}}function xA(e,r,a){return l;function l(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),u}function u(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),r):a(s)}}const EA={name:"labelStartImage",tokenize:CA,resolveAll:sf.resolveAll};function CA(e,r,a){const l=this;return u;function u(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),s}function s(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),f):a(d)}function f(d){return d===94&&"_hiddenFootnoteSupport"in l.parser.constructs?a(d):r(d)}}const TA={name:"labelStartLink",tokenize:wA,resolveAll:sf.resolveAll};function wA(e,r,a){const l=this;return u;function u(f){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelLink"),s}function s(f){return f===94&&"_hiddenFootnoteSupport"in l.parser.constructs?a(f):r(f)}}const cf={name:"lineEnding",tokenize:AA};function AA(e,r){return a;function a(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),st(e,r,"linePrefix")}}const mu={name:"thematicBreak",tokenize:kA};function kA(e,r,a){let l=0,u;return s;function s(h){return e.enter("thematicBreak"),f(h)}function f(h){return u=h,d(h)}function d(h){return h===u?(e.enter("thematicBreakSequence"),m(h)):l>=3&&(h===null||ke(h))?(e.exit("thematicBreak"),r(h)):a(h)}function m(h){return h===u?(e.consume(h),l++,m):(e.exit("thematicBreakSequence"),Je(h)?st(e,d,"whitespace")(h):d(h))}}const on={name:"list",tokenize:MA,continuation:{tokenize:_A},exit:zA},RA={tokenize:NA,partial:!0},OA={tokenize:DA,partial:!0};function MA(e,r,a){const l=this,u=l.events[l.events.length-1];let s=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,f=0;return d;function d(S){const A=l.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!l.containerState.marker||S===l.containerState.marker:af(S)){if(l.containerState.type||(l.containerState.type=A,e.enter(A,{_container:!0})),A==="listUnordered")return e.enter("listItemPrefix"),S===42||S===45?e.check(mu,a,h)(S):h(S);if(!l.interrupt||S===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),m(S)}return a(S)}function m(S){return af(S)&&++f<10?(e.consume(S),m):(!l.interrupt||f<2)&&(l.containerState.marker?S===l.containerState.marker:S===41||S===46)?(e.exit("listItemValue"),h(S)):a(S)}function h(S){return e.enter("listItemMarker"),e.consume(S),e.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||S,e.check(hu,l.interrupt?a:g,e.attempt(RA,v,y))}function g(S){return l.containerState.initialBlankLine=!0,s++,v(S)}function y(S){return Je(S)?(e.enter("listItemPrefixWhitespace"),e.consume(S),e.exit("listItemPrefixWhitespace"),v):a(S)}function v(S){return l.containerState.size=s+l.sliceSerialize(e.exit("listItemPrefix"),!0).length,r(S)}}function _A(e,r,a){const l=this;return l.containerState._closeFlow=void 0,e.check(hu,u,s);function u(d){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,st(e,r,"listItemIndent",l.containerState.size+1)(d)}function s(d){return l.containerState.furtherBlankLines||!Je(d)?(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,f(d)):(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,e.attempt(OA,r,f)(d))}function f(d){return l.containerState._closeFlow=!0,l.interrupt=void 0,st(e,e.attempt(on,r,a),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function DA(e,r,a){const l=this;return st(e,u,"listItemIndent",l.containerState.size+1);function u(s){const f=l.events[l.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===l.containerState.size?r(s):a(s)}}function zA(e){e.exit(this.containerState.type)}function NA(e,r,a){const l=this;return st(e,u,"listItemPrefixWhitespace",l.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(s){const f=l.events[l.events.length-1];return!Je(s)&&f&&f[1].type==="listItemPrefixWhitespace"?r(s):a(s)}}const uy={name:"setextUnderline",tokenize:LA,resolveTo:BA};function BA(e,r){let a=e.length,l,u,s;for(;a--;)if(e[a][0]==="enter"){if(e[a][1].type==="content"){l=a;break}e[a][1].type==="paragraph"&&(u=a)}else e[a][1].type==="content"&&e.splice(a,1),!s&&e[a][1].type==="definition"&&(s=a);const f={type:"setextHeading",start:Object.assign({},e[u][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[u][1].type="setextHeadingText",s?(e.splice(u,0,["enter",f,r]),e.splice(s+1,0,["exit",e[l][1],r]),e[l][1].end=Object.assign({},e[s][1].end)):e[l][1]=f,e.push(["exit",f,r]),e}function LA(e,r,a){const l=this;let u;return s;function s(h){let g=l.events.length,y;for(;g--;)if(l.events[g][1].type!=="lineEnding"&&l.events[g][1].type!=="linePrefix"&&l.events[g][1].type!=="content"){y=l.events[g][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||y)?(e.enter("setextHeadingLine"),u=h,f(h)):a(h)}function f(h){return e.enter("setextHeadingLineSequence"),d(h)}function d(h){return h===u?(e.consume(h),d):(e.exit("setextHeadingLineSequence"),Je(h)?st(e,m,"lineSuffix")(h):m(h))}function m(h){return h===null||ke(h)?(e.exit("setextHeadingLine"),r(h)):a(h)}}const UA={tokenize:jA};function jA(e){const r=this,a=e.attempt(hu,l,e.attempt(this.parser.constructs.flowInitial,u,st(e,e.attempt(this.parser.constructs.flow,u,e.attempt(qw,u)),"linePrefix")));return a;function l(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),r.currentConstruct=void 0,a}function u(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r.currentConstruct=void 0,a}}const HA={resolveAll:cy()},IA=sy("string"),VA=sy("text");function sy(e){return{tokenize:r,resolveAll:cy(e==="text"?$A:void 0)};function r(a){const l=this,u=this.parser.constructs[e],s=a.attempt(u,f,d);return f;function f(g){return h(g)?s(g):d(g)}function d(g){if(g===null){a.consume(g);return}return a.enter("data"),a.consume(g),m}function m(g){return h(g)?(a.exit("data"),s(g)):(a.consume(g),m)}function h(g){if(g===null)return!0;const y=u[g];let v=-1;if(y)for(;++v<y.length;){const S=y[v];if(!S.previous||S.previous.call(l,l.previous))return!0}return!1}}}function cy(e){return r;function r(a,l){let u=-1,s;for(;++u<=a.length;)s===void 0?a[u]&&a[u][1].type==="data"&&(s=u,u++):(!a[u]||a[u][1].type!=="data")&&(u!==s+2&&(a[s][1].end=a[u-1][1].end,a.splice(s+2,u-s-2),u=s+2),s=void 0);return e?e(a,l):a}}function $A(e,r){let a=0;for(;++a<=e.length;)if((a===e.length||e[a][1].type==="lineEnding")&&e[a-1][1].type==="data"){const l=e[a-1][1],u=r.sliceStream(l);let s=u.length,f=-1,d=0,m;for(;s--;){const h=u[s];if(typeof h=="string"){for(f=h.length;h.charCodeAt(f-1)===32;)d++,f--;if(f)break;f=-1}else if(h===-2)m=!0,d++;else if(h!==-1){s++;break}}if(d){const h={type:a===e.length||m||d<2?"lineSuffix":"hardBreakTrailing",start:{line:l.end.line,column:l.end.column-d,offset:l.end.offset-d,_index:l.start._index+s,_bufferIndex:s?f:l.start._bufferIndex+f},end:Object.assign({},l.end)};l.end=Object.assign({},h.start),l.start.offset===l.end.offset?Object.assign(l,h):(e.splice(a,0,["enter",h,r],["exit",h,r]),a+=2)}a++}return e}function qA(e,r,a){let l=Object.assign(a?Object.assign({},a):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const u={},s=[];let f=[],d=[];const m={consume:B,enter:k,exit:z,attempt:H(R),check:H(_),interrupt:H(_,{interrupt:!0})},h={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:S,sliceSerialize:v,now:A,defineSkip:T,write:y};let g=r.tokenize.call(h,m);return r.resolveAll&&s.push(r),h;function y(I){return f=On(f,I),N(),f[f.length-1]!==null?[]:(ne(r,0),h.events=lf(s,h.events,h),h.events)}function v(I,Y){return YA(S(I),Y)}function S(I){return GA(f,I)}function A(){const{line:I,column:Y,offset:F,_index:P,_bufferIndex:ee}=l;return{line:I,column:Y,offset:F,_index:P,_bufferIndex:ee}}function T(I){u[I.line]=I.column,E()}function N(){let I;for(;l._index<f.length;){const Y=f[l._index];if(typeof Y=="string")for(I=l._index,l._bufferIndex<0&&(l._bufferIndex=0);l._index===I&&l._bufferIndex<Y.length;)w(Y.charCodeAt(l._bufferIndex));else w(Y)}}function w(I){g=g(I)}function B(I){ke(I)?(l.line++,l.column=1,l.offset+=I===-3?2:1,E()):I!==-1&&(l.column++,l.offset++),l._bufferIndex<0?l._index++:(l._bufferIndex++,l._bufferIndex===f[l._index].length&&(l._bufferIndex=-1,l._index++)),h.previous=I}function k(I,Y){const F=Y||{};return F.type=I,F.start=A(),h.events.push(["enter",F,h]),d.push(F),F}function z(I){const Y=d.pop();return Y.end=A(),h.events.push(["exit",Y,h]),Y}function R(I,Y){ne(I,Y.from)}function _(I,Y){Y.restore()}function H(I,Y){return F;function F(P,ee,q){let Z,Q,ue,x;return Array.isArray(P)?se(P):"tokenize"in P?se([P]):K(P);function K(he){return Ue;function Ue(we){const Oe=we!==null&&he[we],pe=we!==null&&he.null,Ne=[...Array.isArray(Oe)?Oe:Oe?[Oe]:[],...Array.isArray(pe)?pe:pe?[pe]:[]];return se(Ne)(we)}}function se(he){return Z=he,Q=0,he.length===0?q:O(he[Q])}function O(he){return Ue;function Ue(we){return x=V(),ue=he,he.partial||(h.currentConstruct=he),he.name&&h.parser.constructs.disable.null.includes(he.name)?ye():he.tokenize.call(Y?Object.assign(Object.create(h),Y):h,m,ie,ye)(we)}}function ie(he){return I(ue,x),ee}function ye(he){return x.restore(),++Q<Z.length?O(Z[Q]):q}}}function ne(I,Y){I.resolveAll&&!s.includes(I)&&s.push(I),I.resolve&&br(h.events,Y,h.events.length-Y,I.resolve(h.events.slice(Y),h)),I.resolveTo&&(h.events=I.resolveTo(h.events,h))}function V(){const I=A(),Y=h.previous,F=h.currentConstruct,P=h.events.length,ee=Array.from(d);return{restore:q,from:P};function q(){l=I,h.previous=Y,h.currentConstruct=F,h.events.length=P,d=ee,E()}}function E(){l.line in u&&l.column<2&&(l.column=u[l.line],l.offset+=u[l.line]-1)}}function GA(e,r){const a=r.start._index,l=r.start._bufferIndex,u=r.end._index,s=r.end._bufferIndex;let f;if(a===u)f=[e[a].slice(l,s)];else{if(f=e.slice(a,u),l>-1){const d=f[0];typeof d=="string"?f[0]=d.slice(l):f.shift()}s>0&&f.push(e[u].slice(0,s))}return f}function YA(e,r){let a=-1;const l=[];let u;for(;++a<e.length;){const s=e[a];let f;if(typeof s=="string")f=s;else switch(s){case-5:{f="\r";break}case-4:{f=`
|
|
114
114
|
`;break}case-3:{f=`\r
|
|
115
|
-
`;break}case-2:{f=r?" ":" ";break}case-1:{if(!r&&u)continue;f=" ";break}default:f=String.fromCharCode(s)}u=s===-2,a.push(f)}return a.join("")}const qA=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Gw},disable:{null:[]},document:{42:an,43:an,45:an,48:an,49:an,50:an,51:an,52:an,53:an,54:an,55:an,56:an,57:an,62:Gg},flow:{35:Kw,42:du,45:[ey,du],60:eA,61:ey,95:du,96:Xg,126:Xg},flowInitial:{[-2]:lf,[-1]:lf,32:lf},insideSpan:{null:[rf,BA]},string:{38:Fg,92:Yg},text:{[-5]:of,[-4]:of,[-3]:of,33:bA,38:Fg,42:rf,60:[vw,oA],91:vA,92:[Xw,Yg],93:af,95:rf,96:zw}},Symbol.toStringTag,{value:"Module"}));function $A(e){const l=lw([qA,...(e||{}).extensions||[]]),a={defined:[],lazy:{},constructs:l,content:u(pw),document:u(mw),flow:u(zA),string:u(LA),text:u(UA)};return a;function u(s){return f;function f(d){return HA(a,s,d)}}}function GA(e){for(;!Qg(e););return e}const ry=/[\0\t\n\r]/g;function YA(){let e=1,r="",l=!0,a;return u;function u(s,f,d){const m=[];let h,g,y,v,S;for(s=r+(typeof s=="string"?s.toString():new TextDecoder(f||void 0).decode(s)),y=0,r="",l&&(s.charCodeAt(0)===65279&&y++,l=void 0);y<s.length;){if(ry.lastIndex=y,h=ry.exec(s),v=h&&h.index!==void 0?h.index:s.length,S=s.charCodeAt(v),!h){r=s.slice(y);break}if(S===10&&y===v&&a)m.push(-3),a=void 0;else switch(a&&(m.push(-5),a=void 0),y<v&&(m.push(s.slice(y,v)),e+=v-y),S){case 0:{m.push(65533),e++;break}case 9:{for(g=Math.ceil(e/4)*4,m.push(-2);e++<g;)m.push(-1);break}case 10:{m.push(-4),e=1;break}default:a=!0,e=1}y=v+1}return d&&(a&&m.push(-5),r&&m.push(r),m.push(null)),m}}const FA=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function PA(e){return e.replace(FA,XA)}function XA(e,r,l){if(r)return r;if(l.charCodeAt(0)===35){const u=l.charCodeAt(1),s=u===120||u===88;return Ig(l.slice(s?2:1),s?16:10)}return Jc(l)||e}const iy={}.hasOwnProperty;function QA(e,r,l){return typeof r!="string"&&(l=r,r=void 0),KA(l)(GA($A(l).document().write(YA()(e,r,!0))))}function KA(e){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Pe),autolinkProtocol:V,autolinkEmail:V,atxHeading:s(Ee),blockQuote:s(pe),characterEscape:V,characterReference:V,codeFenced:s(De),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:s(De,f),codeText:s(me,f),codeTextData:V,data:V,codeFlowValue:V,definition:s(ge),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:s(fe),hardBreakEscape:s(qe),hardBreakTrailing:s(qe),htmlFlow:s(Le,f),htmlFlowData:V,htmlText:s(Le,f),htmlTextData:V,image:s(Oe),label:f,link:s(Pe),listItem:s(Qt),listItemValue:v,listOrdered:s(ht,y),listUnordered:s(ht),paragraph:s(gn),reference:O,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:s(Ee),strong:s(xe),thematicBreak:s(Rt)},exit:{atxHeading:m(),atxHeadingSequence:A,autolink:m(),autolinkEmail:ke,autolinkProtocol:Ce,blockQuote:m(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:ye,characterReferenceMarkerNumeric:ye,characterReferenceValue:he,characterReference:Be,codeFenced:m(N),codeFencedFence:T,codeFencedFenceInfo:S,codeFencedFenceMeta:R,codeFlowValue:E,codeIndented:m(w),codeText:m(ee),codeTextData:E,data:E,definition:m(),definitionDestinationString:z,definitionLabelString:B,definitionTitleString:k,emphasis:m(),hardBreakEscape:m(Y),hardBreakTrailing:m(Y),htmlFlow:m(F),htmlFlowData:E,htmlText:m(P),htmlTextData:E,image:m(Z),label:ue,labelText:Q,lineEnding:I,link:m($),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:ie,resourceDestinationString:x,resourceTitleString:K,resource:se,setextHeading:m(ne),setextHeadingLineSequence:H,setextHeadingText:_,strong:m(),thematicBreak:m()}};ly(r,(e||{}).mdastExtensions||[]);const l={};return a;function a(X){let le={type:"root",children:[]};const de={stack:[le],tokenStack:[],config:r,enter:d,exit:h,buffer:f,resume:g,data:l},Ae=[];let Ve=-1;for(;++Ve<X.length;)if(X[Ve][1].type==="listOrdered"||X[Ve][1].type==="listUnordered")if(X[Ve][0]==="enter")Ae.push(Ve);else{const Ue=Ae.pop();Ve=u(X,Ue,Ve)}for(Ve=-1;++Ve<X.length;){const Ue=r[X[Ve][0]];iy.call(Ue,X[Ve][1].type)&&Ue[X[Ve][1].type].call(Object.assign({sliceSerialize:X[Ve][2].sliceSerialize},de),X[Ve][1])}if(de.tokenStack.length>0){const Ue=de.tokenStack[de.tokenStack.length-1];(Ue[1]||ay).call(de,void 0,Ue[0])}for(le.position={start:Ir(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:Ir(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},Ve=-1;++Ve<r.transforms.length;)le=r.transforms[Ve](le)||le;return le}function u(X,le,de){let Ae=le-1,Ve=-1,Ue=!1,on,Ut,Nt,gi;for(;++Ae<=de;){const St=X[Ae];switch(St[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{St[0]==="enter"?Ve++:Ve--,gi=void 0;break}case"lineEndingBlank":{St[0]==="enter"&&(on&&!gi&&!Ve&&!Nt&&(Nt=Ae),gi=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:gi=void 0}if(!Ve&&St[0]==="enter"&&St[1].type==="listItemPrefix"||Ve===-1&&St[0]==="exit"&&(St[1].type==="listUnordered"||St[1].type==="listOrdered")){if(on){let Ot=Ae;for(Ut=void 0;Ot--;){const Fn=X[Ot];if(Fn[1].type==="lineEnding"||Fn[1].type==="lineEndingBlank"){if(Fn[0]==="exit")continue;Ut&&(X[Ut][1].type="lineEndingBlank",Ue=!0),Fn[1].type="lineEnding",Ut=Ot}else if(!(Fn[1].type==="linePrefix"||Fn[1].type==="blockQuotePrefix"||Fn[1].type==="blockQuotePrefixWhitespace"||Fn[1].type==="blockQuoteMarker"||Fn[1].type==="listItemIndent"))break}Nt&&(!Ut||Nt<Ut)&&(on._spread=!0),on.end=Object.assign({},Ut?X[Ut][1].start:St[1].end),X.splice(Ut||Ae,0,["exit",on,St[2]]),Ae++,de++}if(St[1].type==="listItemPrefix"){const Ot={type:"listItem",_spread:!1,start:Object.assign({},St[1].start),end:void 0};on=Ot,X.splice(Ae,0,["enter",Ot,St[2]]),Ae++,de++,Nt=void 0,gi=!0}}}return X[le][1]._spread=Ue,de}function s(X,le){return de;function de(Ae){d.call(this,X(Ae),Ae),le&&le.call(this,Ae)}}function f(){this.stack.push({type:"fragment",children:[]})}function d(X,le,de){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([le,de||void 0]),X.position={start:Ir(le.start),end:void 0}}function m(X){return le;function le(de){X&&X.call(this,de),h.call(this,de)}}function h(X,le){const de=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==X.type&&(le?le.call(this,X,Ae[0]):(Ae[1]||ay).call(this,X,Ae[0]));else throw new Error("Cannot close `"+X.type+"` ("+ka({start:X.start,end:X.end})+"): it’s not open");de.position.end=Ir(X.end)}function g(){return rw(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function v(X){if(this.data.expectingFirstListItemValue){const le=this.stack[this.stack.length-2];le.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function S(){const X=this.resume(),le=this.stack[this.stack.length-1];le.lang=X}function R(){const X=this.resume(),le=this.stack[this.stack.length-1];le.meta=X}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function N(){const X=this.resume(),le=this.stack[this.stack.length-1];le.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const X=this.resume(),le=this.stack[this.stack.length-1];le.value=X.replace(/(\r?\n|\r)$/g,"")}function B(X){const le=this.resume(),de=this.stack[this.stack.length-1];de.label=le,de.identifier=Ji(this.sliceSerialize(X)).toLowerCase()}function k(){const X=this.resume(),le=this.stack[this.stack.length-1];le.title=X}function z(){const X=this.resume(),le=this.stack[this.stack.length-1];le.url=X}function A(X){const le=this.stack[this.stack.length-1];if(!le.depth){const de=this.sliceSerialize(X).length;le.depth=de}}function _(){this.data.setextHeadingSlurpLineEnding=!0}function H(X){const le=this.stack[this.stack.length-1];le.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function ne(){this.data.setextHeadingSlurpLineEnding=void 0}function V(X){const de=this.stack[this.stack.length-1].children;let Ae=de[de.length-1];(!Ae||Ae.type!=="text")&&(Ae=ze(),Ae.position={start:Ir(X.start),end:void 0},de.push(Ae)),this.stack.push(Ae)}function E(X){const le=this.stack.pop();le.value+=this.sliceSerialize(X),le.position.end=Ir(X.end)}function I(X){const le=this.stack[this.stack.length-1];if(this.data.atHardBreak){const de=le.children[le.children.length-1];de.position.end=Ir(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(le.type)&&(V.call(this,X),E.call(this,X))}function Y(){this.data.atHardBreak=!0}function F(){const X=this.resume(),le=this.stack[this.stack.length-1];le.value=X}function P(){const X=this.resume(),le=this.stack[this.stack.length-1];le.value=X}function ee(){const X=this.resume(),le=this.stack[this.stack.length-1];le.value=X}function $(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const le=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=le,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function Z(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const le=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=le,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function Q(X){const le=this.sliceSerialize(X),de=this.stack[this.stack.length-2];de.label=PA(le),de.identifier=Ji(le).toLowerCase()}function ue(){const X=this.stack[this.stack.length-1],le=this.resume(),de=this.stack[this.stack.length-1];if(this.data.inReference=!0,de.type==="link"){const Ae=X.children;de.children=Ae}else de.alt=le}function x(){const X=this.resume(),le=this.stack[this.stack.length-1];le.url=X}function K(){const X=this.resume(),le=this.stack[this.stack.length-1];le.title=X}function se(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function ie(X){const le=this.resume(),de=this.stack[this.stack.length-1];de.label=le,de.identifier=Ji(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function ye(X){this.data.characterReferenceType=X.type}function he(X){const le=this.sliceSerialize(X),de=this.data.characterReferenceType;let Ae;de?(Ae=Ig(le,de==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=Jc(le);const Ve=this.stack[this.stack.length-1];Ve.value+=Ae}function Be(X){const le=this.stack.pop();le.position.end=Ir(X.end)}function Ce(X){E.call(this,X);const le=this.stack[this.stack.length-1];le.url=this.sliceSerialize(X)}function ke(X){E.call(this,X);const le=this.stack[this.stack.length-1];le.url="mailto:"+this.sliceSerialize(X)}function pe(){return{type:"blockquote",children:[]}}function De(){return{type:"code",lang:null,meta:null,value:""}}function me(){return{type:"inlineCode",value:""}}function ge(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function fe(){return{type:"emphasis",children:[]}}function Ee(){return{type:"heading",depth:0,children:[]}}function qe(){return{type:"break"}}function Le(){return{type:"html",value:""}}function Oe(){return{type:"image",title:null,url:"",alt:null}}function Pe(){return{type:"link",title:null,url:"",children:[]}}function ht(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function Qt(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function gn(){return{type:"paragraph",children:[]}}function xe(){return{type:"strong",children:[]}}function ze(){return{type:"text",value:""}}function Rt(){return{type:"thematicBreak"}}}function Ir(e){return{line:e.line,column:e.column,offset:e.offset}}function ly(e,r){let l=-1;for(;++l<r.length;){const a=r[l];Array.isArray(a)?ly(e,a):ZA(e,a)}}function ZA(e,r){let l;for(l in r)if(iy.call(r,l))switch(l){case"canContainEols":{const a=r[l];a&&e[l].push(...a);break}case"transforms":{const a=r[l];a&&e[l].push(...a);break}case"enter":case"exit":{const a=r[l];a&&Object.assign(e[l],a);break}}}function ay(e,r){throw e?new Error("Cannot close `"+e.type+"` ("+ka({start:e.start,end:e.end})+"): a different token (`"+r.type+"`, "+ka({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+ka({start:r.start,end:r.end})+") is still open")}function WA(e){const r=this;r.parser=l;function l(a){return QA(a,{...r.data("settings"),...e,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function JA(e,r){const l={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(r),!0)};return e.patch(r,l),e.applyData(r,l)}function ek(e,r){const l={type:"element",tagName:"br",properties:{},children:[]};return e.patch(r,l),[e.applyData(r,l),{type:"text",value:`
|
|
116
|
-
`}]}function
|
|
117
|
-
`:"",
|
|
118
|
-
`}),g.type==="element"&&g.tagName==="p"&&!u?f.push(...g.children):f.push(g)}const m=
|
|
119
|
-
`});const h={type:"element",tagName:"li",properties:s,children:f};return e.patch(r,h),e.applyData(r,h)}function
|
|
115
|
+
`;break}case-2:{f=r?" ":" ";break}case-1:{if(!r&&u)continue;f=" ";break}default:f=String.fromCharCode(s)}u=s===-2,l.push(f)}return l.join("")}const FA=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Xw},disable:{null:[]},document:{42:on,43:on,45:on,48:on,49:on,50:on,51:on,52:on,53:on,54:on,55:on,56:on,57:on,62:Wg},flow:{35:eA,42:mu,45:[uy,mu],60:iA,61:uy,95:mu,96:ny,126:ny},flowInitial:{[-2]:uf,[-1]:uf,32:uf},insideSpan:{null:[of,HA]},string:{38:ey,92:Jg},text:{[-5]:cf,[-4]:cf,[-3]:cf,33:EA,38:ey,42:of,60:[Tw,fA],91:TA,92:[Ww,Jg],93:sf,95:of,96:Uw}},Symbol.toStringTag,{value:"Module"}));function PA(e){const a=sw([FA,...(e||{}).extensions||[]]),l={defined:[],lazy:{},constructs:a,content:u(yw),document:u(Sw),flow:u(UA),string:u(IA),text:u(VA)};return l;function u(s){return f;function f(d){return qA(l,s,d)}}}function XA(e){for(;!ry(e););return e}const fy=/[\0\t\n\r]/g;function QA(){let e=1,r="",a=!0,l;return u;function u(s,f,d){const m=[];let h,g,y,v,S;for(s=r+(typeof s=="string"?s.toString():new TextDecoder(f||void 0).decode(s)),y=0,r="",a&&(s.charCodeAt(0)===65279&&y++,a=void 0);y<s.length;){if(fy.lastIndex=y,h=fy.exec(s),v=h&&h.index!==void 0?h.index:s.length,S=s.charCodeAt(v),!h){r=s.slice(y);break}if(S===10&&y===v&&l)m.push(-3),l=void 0;else switch(l&&(m.push(-5),l=void 0),y<v&&(m.push(s.slice(y,v)),e+=v-y),S){case 0:{m.push(65533),e++;break}case 9:{for(g=Math.ceil(e/4)*4,m.push(-2);e++<g;)m.push(-1);break}case 10:{m.push(-4),e=1;break}default:l=!0,e=1}y=v+1}return d&&(l&&m.push(-5),r&&m.push(r),m.push(null)),m}}const KA=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ZA(e){return e.replace(KA,WA)}function WA(e,r,a){if(r)return r;if(a.charCodeAt(0)===35){const u=a.charCodeAt(1),s=u===120||u===88;return Xg(a.slice(s?2:1),s?16:10)}return nf(a)||e}const dy={}.hasOwnProperty;function JA(e,r,a){return typeof r!="string"&&(a=r,r=void 0),ek(a)(XA(PA(a).document().write(QA()(e,r,!0))))}function ek(e){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Ke),autolinkProtocol:V,autolinkEmail:V,atxHeading:s(Te),blockQuote:s(pe),characterEscape:V,characterReference:V,codeFenced:s(Ne),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:s(Ne,f),codeText:s(me,f),codeTextData:V,data:V,codeFlowValue:V,definition:s(ge),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:s(fe),hardBreakEscape:s(Ge),hardBreakTrailing:s(Ge),htmlFlow:s(je,f),htmlFlowData:V,htmlText:s(je,f),htmlTextData:V,image:s(_e),label:f,link:s(Ke),listItem:s(Kt),listItemValue:v,listOrdered:s(gt,y),listUnordered:s(gt),paragraph:s(yn),reference:O,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:s(Te),strong:s(Ce),thematicBreak:s(Mt)},exit:{atxHeading:m(),atxHeadingSequence:R,autolink:m(),autolinkEmail:Oe,autolinkProtocol:we,blockQuote:m(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:ye,characterReferenceMarkerNumeric:ye,characterReferenceValue:he,characterReference:Ue,codeFenced:m(N),codeFencedFence:T,codeFencedFenceInfo:S,codeFencedFenceMeta:A,codeFlowValue:E,codeIndented:m(w),codeText:m(ee),codeTextData:E,data:E,definition:m(),definitionDestinationString:z,definitionLabelString:B,definitionTitleString:k,emphasis:m(),hardBreakEscape:m(Y),hardBreakTrailing:m(Y),htmlFlow:m(F),htmlFlowData:E,htmlText:m(P),htmlTextData:E,image:m(Z),label:ue,labelText:Q,lineEnding:I,link:m(q),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:ie,resourceDestinationString:x,resourceTitleString:K,resource:se,setextHeading:m(ne),setextHeadingLineSequence:H,setextHeadingText:_,strong:m(),thematicBreak:m()}};py(r,(e||{}).mdastExtensions||[]);const a={};return l;function l(X){let ae={type:"root",children:[]};const de={stack:[ae],tokenStack:[],config:r,enter:d,exit:h,buffer:f,resume:g,data:a},Re=[];let qe=-1;for(;++qe<X.length;)if(X[qe][1].type==="listOrdered"||X[qe][1].type==="listUnordered")if(X[qe][0]==="enter")Re.push(qe);else{const He=Re.pop();qe=u(X,He,qe)}for(qe=-1;++qe<X.length;){const He=r[X[qe][0]];dy.call(He,X[qe][1].type)&&He[X[qe][1].type].call(Object.assign({sliceSerialize:X[qe][2].sliceSerialize},de),X[qe][1])}if(de.tokenStack.length>0){const He=de.tokenStack[de.tokenStack.length-1];(He[1]||hy).call(de,void 0,He[0])}for(ae.position={start:qr(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:qr(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},qe=-1;++qe<r.transforms.length;)ae=r.transforms[qe](ae)||ae;return ae}function u(X,ae,de){let Re=ae-1,qe=-1,He=!1,un,Ht,Lt,vi;for(;++Re<=de;){const xt=X[Re];switch(xt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{xt[0]==="enter"?qe++:qe--,vi=void 0;break}case"lineEndingBlank":{xt[0]==="enter"&&(un&&!vi&&!qe&&!Lt&&(Lt=Re),vi=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:vi=void 0}if(!qe&&xt[0]==="enter"&&xt[1].type==="listItemPrefix"||qe===-1&&xt[0]==="exit"&&(xt[1].type==="listUnordered"||xt[1].type==="listOrdered")){if(un){let _t=Re;for(Ht=void 0;_t--;){const Xn=X[_t];if(Xn[1].type==="lineEnding"||Xn[1].type==="lineEndingBlank"){if(Xn[0]==="exit")continue;Ht&&(X[Ht][1].type="lineEndingBlank",He=!0),Xn[1].type="lineEnding",Ht=_t}else if(!(Xn[1].type==="linePrefix"||Xn[1].type==="blockQuotePrefix"||Xn[1].type==="blockQuotePrefixWhitespace"||Xn[1].type==="blockQuoteMarker"||Xn[1].type==="listItemIndent"))break}Lt&&(!Ht||Lt<Ht)&&(un._spread=!0),un.end=Object.assign({},Ht?X[Ht][1].start:xt[1].end),X.splice(Ht||Re,0,["exit",un,xt[2]]),Re++,de++}if(xt[1].type==="listItemPrefix"){const _t={type:"listItem",_spread:!1,start:Object.assign({},xt[1].start),end:void 0};un=_t,X.splice(Re,0,["enter",_t,xt[2]]),Re++,de++,Lt=void 0,vi=!0}}}return X[ae][1]._spread=He,de}function s(X,ae){return de;function de(Re){d.call(this,X(Re),Re),ae&&ae.call(this,Re)}}function f(){this.stack.push({type:"fragment",children:[]})}function d(X,ae,de){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([ae,de||void 0]),X.position={start:qr(ae.start),end:void 0}}function m(X){return ae;function ae(de){X&&X.call(this,de),h.call(this,de)}}function h(X,ae){const de=this.stack.pop(),Re=this.tokenStack.pop();if(Re)Re[0].type!==X.type&&(ae?ae.call(this,X,Re[0]):(Re[1]||hy).call(this,X,Re[0]));else throw new Error("Cannot close `"+X.type+"` ("+_l({start:X.start,end:X.end})+"): it’s not open");de.position.end=qr(X.end)}function g(){return ow(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function v(X){if(this.data.expectingFirstListItemValue){const ae=this.stack[this.stack.length-2];ae.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function S(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.lang=X}function A(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.meta=X}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function N(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.value=X.replace(/(\r?\n|\r)$/g,"")}function B(X){const ae=this.resume(),de=this.stack[this.stack.length-1];de.label=ae,de.identifier=ra(this.sliceSerialize(X)).toLowerCase()}function k(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.title=X}function z(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.url=X}function R(X){const ae=this.stack[this.stack.length-1];if(!ae.depth){const de=this.sliceSerialize(X).length;ae.depth=de}}function _(){this.data.setextHeadingSlurpLineEnding=!0}function H(X){const ae=this.stack[this.stack.length-1];ae.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function ne(){this.data.setextHeadingSlurpLineEnding=void 0}function V(X){const de=this.stack[this.stack.length-1].children;let Re=de[de.length-1];(!Re||Re.type!=="text")&&(Re=Be(),Re.position={start:qr(X.start),end:void 0},de.push(Re)),this.stack.push(Re)}function E(X){const ae=this.stack.pop();ae.value+=this.sliceSerialize(X),ae.position.end=qr(X.end)}function I(X){const ae=this.stack[this.stack.length-1];if(this.data.atHardBreak){const de=ae.children[ae.children.length-1];de.position.end=qr(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(ae.type)&&(V.call(this,X),E.call(this,X))}function Y(){this.data.atHardBreak=!0}function F(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.value=X}function P(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.value=X}function ee(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.value=X}function q(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=ae,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function Z(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const ae=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=ae,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function Q(X){const ae=this.sliceSerialize(X),de=this.stack[this.stack.length-2];de.label=ZA(ae),de.identifier=ra(ae).toLowerCase()}function ue(){const X=this.stack[this.stack.length-1],ae=this.resume(),de=this.stack[this.stack.length-1];if(this.data.inReference=!0,de.type==="link"){const Re=X.children;de.children=Re}else de.alt=ae}function x(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.url=X}function K(){const X=this.resume(),ae=this.stack[this.stack.length-1];ae.title=X}function se(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function ie(X){const ae=this.resume(),de=this.stack[this.stack.length-1];de.label=ae,de.identifier=ra(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function ye(X){this.data.characterReferenceType=X.type}function he(X){const ae=this.sliceSerialize(X),de=this.data.characterReferenceType;let Re;de?(Re=Xg(ae,de==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Re=nf(ae);const qe=this.stack[this.stack.length-1];qe.value+=Re}function Ue(X){const ae=this.stack.pop();ae.position.end=qr(X.end)}function we(X){E.call(this,X);const ae=this.stack[this.stack.length-1];ae.url=this.sliceSerialize(X)}function Oe(X){E.call(this,X);const ae=this.stack[this.stack.length-1];ae.url="mailto:"+this.sliceSerialize(X)}function pe(){return{type:"blockquote",children:[]}}function Ne(){return{type:"code",lang:null,meta:null,value:""}}function me(){return{type:"inlineCode",value:""}}function ge(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function fe(){return{type:"emphasis",children:[]}}function Te(){return{type:"heading",depth:0,children:[]}}function Ge(){return{type:"break"}}function je(){return{type:"html",value:""}}function _e(){return{type:"image",title:null,url:"",alt:null}}function Ke(){return{type:"link",title:null,url:"",children:[]}}function gt(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function Kt(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function yn(){return{type:"paragraph",children:[]}}function Ce(){return{type:"strong",children:[]}}function Be(){return{type:"text",value:""}}function Mt(){return{type:"thematicBreak"}}}function qr(e){return{line:e.line,column:e.column,offset:e.offset}}function py(e,r){let a=-1;for(;++a<r.length;){const l=r[a];Array.isArray(l)?py(e,l):tk(e,l)}}function tk(e,r){let a;for(a in r)if(dy.call(r,a))switch(a){case"canContainEols":{const l=r[a];l&&e[a].push(...l);break}case"transforms":{const l=r[a];l&&e[a].push(...l);break}case"enter":case"exit":{const l=r[a];l&&Object.assign(e[a],l);break}}}function hy(e,r){throw e?new Error("Cannot close `"+e.type+"` ("+_l({start:e.start,end:e.end})+"): a different token (`"+r.type+"`, "+_l({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+_l({start:r.start,end:r.end})+") is still open")}function nk(e){const r=this;r.parser=a;function a(l){return JA(l,{...r.data("settings"),...e,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function rk(e,r){const a={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(r),!0)};return e.patch(r,a),e.applyData(r,a)}function ik(e,r){const a={type:"element",tagName:"br",properties:{},children:[]};return e.patch(r,a),[e.applyData(r,a),{type:"text",value:`
|
|
116
|
+
`}]}function ak(e,r){const a=r.value?r.value+`
|
|
117
|
+
`:"",l={};r.lang&&(l.className=["language-"+r.lang]);let u={type:"element",tagName:"code",properties:l,children:[{type:"text",value:a}]};return r.meta&&(u.data={meta:r.meta}),e.patch(r,u),u=e.applyData(r,u),u={type:"element",tagName:"pre",properties:{},children:[u]},e.patch(r,u),u}function lk(e,r){const a={type:"element",tagName:"del",properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function ok(e,r){const a={type:"element",tagName:"em",properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function uk(e,r){const a=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",l=String(r.identifier).toUpperCase(),u=ia(l.toLowerCase()),s=e.footnoteOrder.indexOf(l);let f,d=e.footnoteCounts.get(l);d===void 0?(d=0,e.footnoteOrder.push(l),f=e.footnoteOrder.length):f=s+1,d+=1,e.footnoteCounts.set(l,d);const m={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+u,id:a+"fnref-"+u+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(f)}]};e.patch(r,m);const h={type:"element",tagName:"sup",properties:{},children:[m]};return e.patch(r,h),e.applyData(r,h)}function sk(e,r){const a={type:"element",tagName:"h"+r.depth,properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function ck(e,r){if(e.options.allowDangerousHtml){const a={type:"raw",value:r.value};return e.patch(r,a),e.applyData(r,a)}}function my(e,r){const a=r.referenceType;let l="]";if(a==="collapsed"?l+="[]":a==="full"&&(l+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+l}];const u=e.all(r),s=u[0];s&&s.type==="text"?s.value="["+s.value:u.unshift({type:"text",value:"["});const f=u[u.length-1];return f&&f.type==="text"?f.value+=l:u.push({type:"text",value:l}),u}function fk(e,r){const a=String(r.identifier).toUpperCase(),l=e.definitionById.get(a);if(!l)return my(e,r);const u={src:ia(l.url||""),alt:r.alt};l.title!==null&&l.title!==void 0&&(u.title=l.title);const s={type:"element",tagName:"img",properties:u,children:[]};return e.patch(r,s),e.applyData(r,s)}function dk(e,r){const a={src:ia(r.url)};r.alt!==null&&r.alt!==void 0&&(a.alt=r.alt),r.title!==null&&r.title!==void 0&&(a.title=r.title);const l={type:"element",tagName:"img",properties:a,children:[]};return e.patch(r,l),e.applyData(r,l)}function pk(e,r){const a={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};e.patch(r,a);const l={type:"element",tagName:"code",properties:{},children:[a]};return e.patch(r,l),e.applyData(r,l)}function hk(e,r){const a=String(r.identifier).toUpperCase(),l=e.definitionById.get(a);if(!l)return my(e,r);const u={href:ia(l.url||"")};l.title!==null&&l.title!==void 0&&(u.title=l.title);const s={type:"element",tagName:"a",properties:u,children:e.all(r)};return e.patch(r,s),e.applyData(r,s)}function mk(e,r){const a={href:ia(r.url)};r.title!==null&&r.title!==void 0&&(a.title=r.title);const l={type:"element",tagName:"a",properties:a,children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function gk(e,r,a){const l=e.all(r),u=a?yk(a):gy(r),s={},f=[];if(typeof r.checked=="boolean"){const g=l[0];let y;g&&g.type==="element"&&g.tagName==="p"?y=g:(y={type:"element",tagName:"p",properties:{},children:[]},l.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let d=-1;for(;++d<l.length;){const g=l[d];(u||d!==0||g.type!=="element"||g.tagName!=="p")&&f.push({type:"text",value:`
|
|
118
|
+
`}),g.type==="element"&&g.tagName==="p"&&!u?f.push(...g.children):f.push(g)}const m=l[l.length-1];m&&(u||m.type!=="element"||m.tagName!=="p")&&f.push({type:"text",value:`
|
|
119
|
+
`});const h={type:"element",tagName:"li",properties:s,children:f};return e.patch(r,h),e.applyData(r,h)}function yk(e){let r=!1;if(e.type==="list"){r=e.spread||!1;const a=e.children;let l=-1;for(;!r&&++l<a.length;)r=gy(a[l])}return r}function gy(e){const r=e.spread;return r??e.children.length>1}function bk(e,r){const a={},l=e.all(r);let u=-1;for(typeof r.start=="number"&&r.start!==1&&(a.start=r.start);++u<l.length;){const f=l[u];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}const s={type:"element",tagName:r.ordered?"ol":"ul",properties:a,children:e.wrap(l,!0)};return e.patch(r,s),e.applyData(r,s)}function Sk(e,r){const a={type:"element",tagName:"p",properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function vk(e,r){const a={type:"root",children:e.wrap(e.all(r))};return e.patch(r,a),e.applyData(r,a)}function xk(e,r){const a={type:"element",tagName:"strong",properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function Ek(e,r){const a=e.all(r),l=a.shift(),u=[];if(l){const f={type:"element",tagName:"thead",properties:{},children:e.wrap([l],!0)};e.patch(r.children[0],f),u.push(f)}if(a.length>0){const f={type:"element",tagName:"tbody",properties:{},children:e.wrap(a,!0)},d=Kc(r.children[1]),m=Lg(r.children[r.children.length-1]);d&&m&&(f.position={start:d,end:m}),u.push(f)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(u,!0)};return e.patch(r,s),e.applyData(r,s)}function Ck(e,r,a){const l=a?a.children:void 0,s=(l?l.indexOf(r):1)===0?"th":"td",f=a&&a.type==="table"?a.align:void 0,d=f?f.length:r.children.length;let m=-1;const h=[];for(;++m<d;){const y=r.children[m],v={},S=f?f[m]:void 0;S&&(v.align=S);let A={type:"element",tagName:s,properties:v,children:[]};y&&(A.children=e.all(y),e.patch(y,A),A=e.applyData(y,A)),h.push(A)}const g={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(r,g),e.applyData(r,g)}function Tk(e,r){const a={type:"element",tagName:"td",properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}const yy=9,by=32;function wk(e){const r=String(e),a=/\r?\n|\r/g;let l=a.exec(r),u=0;const s=[];for(;l;)s.push(Sy(r.slice(u,l.index),u>0,!0),l[0]),u=l.index+l[0].length,l=a.exec(r);return s.push(Sy(r.slice(u),u>0,!1)),s.join("")}function Sy(e,r,a){let l=0,u=e.length;if(r){let s=e.codePointAt(l);for(;s===yy||s===by;)l++,s=e.codePointAt(l)}if(a){let s=e.codePointAt(u-1);for(;s===yy||s===by;)u--,s=e.codePointAt(u-1)}return u>l?e.slice(l,u):""}function Ak(e,r){const a={type:"text",value:wk(String(r.value))};return e.patch(r,a),e.applyData(r,a)}function kk(e,r){const a={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(r,a),e.applyData(r,a)}const Rk={blockquote:rk,break:ik,code:ak,delete:lk,emphasis:ok,footnoteReference:uk,heading:sk,html:ck,imageReference:fk,image:dk,inlineCode:pk,linkReference:hk,link:mk,listItem:gk,list:bk,paragraph:Sk,root:vk,strong:xk,table:Ek,tableCell:Tk,tableRow:Ck,text:Ak,thematicBreak:kk,toml:gu,yaml:gu,definition:gu,footnoteDefinition:gu};function gu(){}const vy=-1,yu=0,bu=1,Su=2,ff=3,df=4,pf=5,hf=6,xy=7,Ey=8,Cy=typeof self=="object"?self:globalThis,Ok=(e,r)=>{const a=(u,s)=>(e.set(s,u),u),l=u=>{if(e.has(u))return e.get(u);const[s,f]=r[u];switch(s){case yu:case vy:return a(f,u);case bu:{const d=a([],u);for(const m of f)d.push(l(m));return d}case Su:{const d=a({},u);for(const[m,h]of f)d[l(m)]=l(h);return d}case ff:return a(new Date(f),u);case df:{const{source:d,flags:m}=f;return a(new RegExp(d,m),u)}case pf:{const d=a(new Map,u);for(const[m,h]of f)d.set(l(m),l(h));return d}case hf:{const d=a(new Set,u);for(const m of f)d.add(l(m));return d}case xy:{const{name:d,message:m}=f;return a(new Cy[d](m),u)}case Ey:return a(BigInt(f),u);case"BigInt":return a(Object(BigInt(f)),u)}return a(new Cy[s](f),u)};return l},Ty=e=>Ok(new Map,e)(0),aa="",{toString:Mk}={},{keys:_k}=Object,Bl=e=>{const r=typeof e;if(r!=="object"||!e)return[yu,r];const a=Mk.call(e).slice(8,-1);switch(a){case"Array":return[bu,aa];case"Object":return[Su,aa];case"Date":return[ff,aa];case"RegExp":return[df,aa];case"Map":return[pf,aa];case"Set":return[hf,aa]}return a.includes("Array")?[bu,a]:a.includes("Error")?[xy,a]:[Su,a]},vu=([e,r])=>e===yu&&(r==="function"||r==="symbol"),Dk=(e,r,a,l)=>{const u=(f,d)=>{const m=l.push(f)-1;return a.set(d,m),m},s=f=>{if(a.has(f))return a.get(f);let[d,m]=Bl(f);switch(d){case yu:{let g=f;switch(m){case"bigint":d=Ey,g=f.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+m);g=null;break;case"undefined":return u([vy],f)}return u([d,g],f)}case bu:{if(m)return u([m,[...f]],f);const g=[],y=u([d,g],f);for(const v of f)g.push(s(v));return y}case Su:{if(m)switch(m){case"BigInt":return u([m,f.toString()],f);case"Boolean":case"Number":case"String":return u([m,f.valueOf()],f)}if(r&&"toJSON"in f)return s(f.toJSON());const g=[],y=u([d,g],f);for(const v of _k(f))(e||!vu(Bl(f[v])))&&g.push([s(v),s(f[v])]);return y}case ff:return u([d,f.toISOString()],f);case df:{const{source:g,flags:y}=f;return u([d,{source:g,flags:y}],f)}case pf:{const g=[],y=u([d,g],f);for(const[v,S]of f)(e||!(vu(Bl(v))||vu(Bl(S))))&&g.push([s(v),s(S)]);return y}case hf:{const g=[],y=u([d,g],f);for(const v of f)(e||!vu(Bl(v)))&&g.push(s(v));return y}}const{message:h}=f;return u([d,{name:m,message:h}],f)};return s},wy=(e,{json:r,lossy:a}={})=>{const l=[];return Dk(!(r||a),!!r,new Map,l)(e),l},xu=typeof structuredClone=="function"?(e,r)=>r&&("json"in r||"lossy"in r)?Ty(wy(e,r)):structuredClone(e):(e,r)=>Ty(wy(e,r));function zk(e,r){const a=[{type:"text",value:"↩"}];return r>1&&a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),a}function Nk(e,r){return"Back to reference "+(e+1)+(r>1?"-"+r:"")}function Bk(e){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=e.options.footnoteBackContent||zk,l=e.options.footnoteBackLabel||Nk,u=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",f=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let m=-1;for(;++m<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[m]);if(!h)continue;const g=e.all(h),y=String(h.identifier).toUpperCase(),v=ia(y.toLowerCase());let S=0;const A=[],T=e.footnoteCounts.get(y);for(;T!==void 0&&++S<=T;){A.length>0&&A.push({type:"text",value:" "});let B=typeof a=="string"?a:a(m,S);typeof B=="string"&&(B={type:"text",value:B}),A.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+v+(S>1?"-"+S:""),dataFootnoteBackref:"",ariaLabel:typeof l=="string"?l:l(m,S),className:["data-footnote-backref"]},children:Array.isArray(B)?B:[B]})}const N=g[g.length-1];if(N&&N.type==="element"&&N.tagName==="p"){const B=N.children[N.children.length-1];B&&B.type==="text"?B.value+=" ":N.children.push({type:"text",value:" "}),N.children.push(...A)}else g.push(...A);const w={type:"element",tagName:"li",properties:{id:r+"fn-"+v},children:e.wrap(g,!0)};e.patch(h,w),d.push(w)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...xu(f),id:"footnote-label"},children:[{type:"text",value:u}]},{type:"text",value:`
|
|
120
120
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
|
|
121
|
-
`}]}}const
|
|
122
|
-
`});++
|
|
123
|
-
`}),
|
|
124
|
-
`}),
|
|
125
|
-
`},u),s}function Pk(e,r){return e&&"run"in e?async function(l,a){const u=Cy(l,{file:a,...r});await e.run(u,a)}:function(l,a){return Cy(l,{file:a,...e||r})}}function Ty(e){if(e)throw e}var pf,wy;function Xk(){if(wy)return pf;wy=1;var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,l=Object.defineProperty,a=Object.getOwnPropertyDescriptor,u=function(h){return typeof Array.isArray=="function"?Array.isArray(h):r.call(h)==="[object Array]"},s=function(h){if(!h||r.call(h)!=="[object Object]")return!1;var g=e.call(h,"constructor"),y=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!g&&!y)return!1;var v;for(v in h);return typeof v>"u"||e.call(h,v)},f=function(h,g){l&&g.name==="__proto__"?l(h,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):h[g.name]=g.newValue},d=function(h,g){if(g==="__proto__")if(e.call(h,g)){if(a)return a(h,g).value}else return;return h[g]};return pf=function m(){var h,g,y,v,S,R,T=arguments[0],N=1,w=arguments.length,B=!1;for(typeof T=="boolean"&&(B=T,T=arguments[1]||{},N=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});N<w;++N)if(h=arguments[N],h!=null)for(g in h)y=d(T,g),v=d(h,g),T!==v&&(B&&v&&(s(v)||(S=u(v)))?(S?(S=!1,R=y&&u(y)?y:[]):R=y&&s(y)?y:{},f(T,{name:g,newValue:m(B,R,v)})):typeof v<"u"&&f(T,{name:g,newValue:v}));return T},pf}var Qk=Xk();const hf=Cn(Qk);function mf(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Kk(){const e=[],r={run:l,use:a};return r;function l(...u){let s=-1;const f=u.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);d(null,...u);function d(m,...h){const g=e[++s];let y=-1;if(m){f(m);return}for(;++y<u.length;)(h[y]===null||h[y]===void 0)&&(h[y]=u[y]);u=h,g?Zk(g,d)(...h):f(null,...h)}}function a(u){if(typeof u!="function")throw new TypeError("Expected `middelware` to be a function, not "+u);return e.push(u),r}}function Zk(e,r){let l;return a;function a(...f){const d=e.length>f.length;let m;d&&f.push(u);try{m=e.apply(this,f)}catch(h){const g=h;if(d&&l)throw g;return u(g)}d||(m&&m.then&&typeof m.then=="function"?m.then(s,u):m instanceof Error?u(m):s(m))}function u(f,...d){l||(l=!0,r(f,...d))}function s(f){u(null,f)}}const lr={basename:Wk,dirname:Jk,extname:eR,join:tR,sep:"/"};function Wk(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');Da(e);let l=0,a=-1,u=e.length,s;if(r===void 0||r.length===0||r.length>e.length){for(;u--;)if(e.codePointAt(u)===47){if(s){l=u+1;break}}else a<0&&(s=!0,a=u+1);return a<0?"":e.slice(l,a)}if(r===e)return"";let f=-1,d=r.length-1;for(;u--;)if(e.codePointAt(u)===47){if(s){l=u+1;break}}else f<0&&(s=!0,f=u+1),d>-1&&(e.codePointAt(u)===r.codePointAt(d--)?d<0&&(a=u):(d=-1,a=f));return l===a?a=f:a<0&&(a=e.length),e.slice(l,a)}function Jk(e){if(Da(e),e.length===0)return".";let r=-1,l=e.length,a;for(;--l;)if(e.codePointAt(l)===47){if(a){r=l;break}}else a||(a=!0);return r<0?e.codePointAt(0)===47?"/":".":r===1&&e.codePointAt(0)===47?"//":e.slice(0,r)}function eR(e){Da(e);let r=e.length,l=-1,a=0,u=-1,s=0,f;for(;r--;){const d=e.codePointAt(r);if(d===47){if(f){a=r+1;break}continue}l<0&&(f=!0,l=r+1),d===46?u<0?u=r:s!==1&&(s=1):u>-1&&(s=-1)}return u<0||l<0||s===0||s===1&&u===l-1&&u===a+1?"":e.slice(u,l)}function tR(...e){let r=-1,l;for(;++r<e.length;)Da(e[r]),e[r]&&(l=l===void 0?e[r]:l+"/"+e[r]);return l===void 0?".":nR(l)}function nR(e){Da(e);const r=e.codePointAt(0)===47;let l=rR(e,!r);return l.length===0&&!r&&(l="."),l.length>0&&e.codePointAt(e.length-1)===47&&(l+="/"),r?"/"+l:l}function rR(e,r){let l="",a=0,u=-1,s=0,f=-1,d,m;for(;++f<=e.length;){if(f<e.length)d=e.codePointAt(f);else{if(d===47)break;d=47}if(d===47){if(!(u===f-1||s===1))if(u!==f-1&&s===2){if(l.length<2||a!==2||l.codePointAt(l.length-1)!==46||l.codePointAt(l.length-2)!==46){if(l.length>2){if(m=l.lastIndexOf("/"),m!==l.length-1){m<0?(l="",a=0):(l=l.slice(0,m),a=l.length-1-l.lastIndexOf("/")),u=f,s=0;continue}}else if(l.length>0){l="",a=0,u=f,s=0;continue}}r&&(l=l.length>0?l+"/..":"..",a=2)}else l.length>0?l+="/"+e.slice(u+1,f):l=e.slice(u+1,f),a=f-u-1;u=f,s=0}else d===46&&s>-1?s++:s=-1}return l}function Da(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const iR={cwd:lR};function lR(){return"/"}function gf(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function aR(e){if(typeof e=="string")e=new URL(e);else if(!gf(e)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(e.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return oR(e)}function oR(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 r=e.pathname;let l=-1;for(;++l<r.length;)if(r.codePointAt(l)===37&&r.codePointAt(l+1)===50){const a=r.codePointAt(l+2);if(a===70||a===102){const u=new TypeError("File URL path must not include encoded / characters");throw u.code="ERR_INVALID_FILE_URL_PATH",u}}return decodeURIComponent(r)}const yf=["history","path","basename","stem","extname","dirname"];class Ay{constructor(r){let l;r?gf(r)?l={path:r}:typeof r=="string"||uR(r)?l={value:r}:l=r:l={},this.cwd="cwd"in l?"":iR.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<yf.length;){const s=yf[a];s in l&&l[s]!==void 0&&l[s]!==null&&(this[s]=s==="history"?[...l[s]]:l[s])}let u;for(u in l)yf.includes(u)||(this[u]=l[u])}get basename(){return typeof this.path=="string"?lr.basename(this.path):void 0}set basename(r){Sf(r,"basename"),bf(r,"basename"),this.path=lr.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?lr.dirname(this.path):void 0}set dirname(r){ky(this.basename,"dirname"),this.path=lr.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?lr.extname(this.path):void 0}set extname(r){if(bf(r,"extname"),ky(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=lr.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){gf(r)&&(r=aR(r)),Sf(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?lr.basename(this.path,this.extname):void 0}set stem(r){Sf(r,"stem"),bf(r,"stem"),this.path=lr.join(this.dirname||"",r+(this.extname||""))}fail(r,l,a){const u=this.message(r,l,a);throw u.fatal=!0,u}info(r,l,a){const u=this.message(r,l,a);return u.fatal=void 0,u}message(r,l,a){const u=new Xt(r,l,a);return this.path&&(u.name=this.path+":"+u.name,u.file=this.path),u.fatal=!1,this.messages.push(u),u}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function bf(e,r){if(e&&e.includes(lr.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+lr.sep+"`")}function Sf(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function ky(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}function uR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const sR=function(e){const a=this.constructor.prototype,u=a[e],s=function(){return u.apply(s,arguments)};return Object.setPrototypeOf(s,a),s},cR={}.hasOwnProperty;class vf extends sR{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=Kk()}copy(){const r=new vf;let l=-1;for(;++l<this.attachers.length;){const a=this.attachers[l];r.use(...a)}return r.data(hf(!0,{},this.namespace)),r}data(r,l){return typeof r=="string"?arguments.length===2?(Cf("data",this.frozen),this.namespace[r]=l,this):cR.call(this.namespace,r)&&this.namespace[r]||void 0:r?(Cf("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[l,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const u=l.call(r,...a);typeof u=="function"&&this.transformers.use(u)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const l=vu(r),a=this.parser||this.Parser;return xf("parse",a),a(String(l),l)}process(r,l){const a=this;return this.freeze(),xf("process",this.parser||this.Parser),Ef("process",this.compiler||this.Compiler),l?u(void 0,l):new Promise(u);function u(s,f){const d=vu(r),m=a.parse(d);a.run(m,d,function(g,y,v){if(g||!y||!v)return h(g);const S=y,R=a.stringify(S,v);pR(R)?v.value=R:v.result=R,h(g,v)});function h(g,y){g||!y?f(g):s?s(y):l(void 0,y)}}}processSync(r){let l=!1,a;return this.freeze(),xf("processSync",this.parser||this.Parser),Ef("processSync",this.compiler||this.Compiler),this.process(r,u),Oy("processSync","process",l),a;function u(s,f){l=!0,Ty(s),a=f}}run(r,l,a){Ry(r),this.freeze();const u=this.transformers;return!a&&typeof l=="function"&&(a=l,l=void 0),a?s(void 0,a):new Promise(s);function s(f,d){const m=vu(l);u.run(r,m,h);function h(g,y,v){const S=y||r;g?d(g):f?f(S):a(void 0,S,v)}}}runSync(r,l){let a=!1,u;return this.run(r,l,s),Oy("runSync","run",a),u;function s(f,d){Ty(f),u=d,a=!0}}stringify(r,l){this.freeze();const a=vu(l),u=this.compiler||this.Compiler;return Ef("stringify",u),Ry(r),u(r,a)}use(r,...l){const a=this.attachers,u=this.namespace;if(Cf("use",this.frozen),r!=null)if(typeof r=="function")m(r,l);else if(typeof r=="object")Array.isArray(r)?d(r):f(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function s(h){if(typeof h=="function")m(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[g,...y]=h;m(g,y)}else f(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function f(h){if(!("plugins"in h)&&!("settings"in h))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");d(h.plugins),h.settings&&(u.settings=hf(!0,u.settings,h.settings))}function d(h){let g=-1;if(h!=null)if(Array.isArray(h))for(;++g<h.length;){const y=h[g];s(y)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function m(h,g){let y=-1,v=-1;for(;++y<a.length;)if(a[y][0]===h){v=y;break}if(v===-1)a.push([h,...g]);else if(g.length>0){let[S,...R]=g;const T=a[v][1];mf(T)&&mf(S)&&(S=hf(!0,T,S)),a[v]=[h,S,...R]}}}}const fR=new vf().freeze();function xf(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ef(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Cf(e,r){if(r)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ry(e){if(!mf(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Oy(e,r,l){if(!l)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function vu(e){return dR(e)?e:new Ay(e)}function dR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function pR(e){return typeof e=="string"||hR(e)}function hR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const mR="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",My=[],_y={allowDangerousHtml:!0},gR=/^(https?|ircs?|mailto|xmpp)$/i,yR=[{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:"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 bR(e){const r=e.allowedElements,l=e.allowElement,a=e.children||"",u=e.className,s=e.components,f=e.disallowedElements,d=e.rehypePlugins||My,m=e.remarkPlugins||My,h=e.remarkRehypeOptions?{...e.remarkRehypeOptions,..._y}:_y,g=e.skipHtml,y=e.unwrapDisallowed,v=e.urlTransform||SR,S=fR().use(WA).use(m).use(Pk,h).use(d),R=new Ay;typeof a=="string"&&(R.value=a);for(const B of yR)Object.hasOwn(e,B.from)&&(""+B.from+(B.to?"use `"+B.to+"` instead":"remove it")+mR+B.id,void 0);const T=S.parse(R);let N=S.runSync(T,R);return u&&(N={type:"element",tagName:"div",properties:{className:u},children:N.type==="root"?N.children:[N]}),xy(N,w),HT(N,{Fragment:ce.Fragment,components:s,ignoreInvalidStyle:!0,jsx:ce.jsx,jsxs:ce.jsxs,passKeys:!0,passNode:!0});function w(B,k,z){if(B.type==="raw"&&z&&typeof k=="number")return g?z.children.splice(k,1):z.children[k]={type:"text",value:B.value},k;if(B.type==="element"){let A;for(A in Wc)if(Object.hasOwn(Wc,A)&&Object.hasOwn(B.properties,A)){const _=B.properties[A],H=Wc[A];(H===null||H.includes(B.tagName))&&(B.properties[A]=v(String(_||""),A,B))}}if(B.type==="element"){let A=r?!r.includes(B.tagName):f?f.includes(B.tagName):!1;if(!A&&l&&typeof k=="number"&&(A=!l(B,k,z)),A&&z&&typeof k=="number")return y&&B.children?z.children.splice(k,1,...B.children):z.children.splice(k,1),k}}}function SR(e){const r=e.indexOf(":"),l=e.indexOf("?"),a=e.indexOf("#"),u=e.indexOf("/");return r<0||u>-1&&r>u||l>-1&&r>l||a>-1&&r>a||gR.test(e.slice(0,r))?e:""}const vR=(...e)=>r=>{e.forEach(l=>{typeof l=="function"?l(r):l&&(l.current=r)})},Dy=e=>e.scrollHeight-e.clientHeight-e.scrollTop,xR=e=>{e.scrollTop=e.scrollHeight},ER=et.div({overflow:"auto"}),CR=M.forwardRef(function({children:r,threshold:l=2,className:a},u){const s=M.useRef(null),[f,d]=M.useState(r),m=M.useRef(null);return M.useLayoutEffect(()=>{s.current&&(m.current=Dy(s.current)<l,d(r))},[r,l]),M.useLayoutEffect(()=>{if(!s.current)return;const h=Dy(s.current)<l;m.current&&!h&&(xR(s.current),m.current=null)},[f,l]),M.createElement(ER,{className:a,ref:vR(s,u)},f)}),zy=et.span({clipPath:"inset(100%)",clip:"rect(1px, 1px, 1px, 1px)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),TR={loadingMessages:[{delay:1500,text:"Loading"},{delay:4e3,text:"Still loading"}]},wR=({message:e,isLoading:r,loadingMessages:l=TR.loadingMessages})=>{var f;const[a,u]=M.useState(-1);M.useEffect(()=>{u(-1)},[r,l]),M.useEffect(()=>{const d=l[a+1];if(!r||!d)return()=>{};const m=setTimeout(()=>{u(a+1)},d.delay);return()=>{clearTimeout(m)}},[r,a,l]);const s=(f=l[a])==null?void 0:f.text;return M.createElement(zy,{"aria-atomic":"true","aria-live":"polite"},r?s:e)};function AR(e){return typeof e.main=="string"}function kR(e,r=[]){if(!AR(e))return!1;for(const l of r)if(!e.hasOwnProperty(l)||typeof e[l]!="string")return!1;return!0}function nl(e=[]){return([,r])=>r&&kR(r,e)}function RR(e){return qn("MuiTypography",e)}$n("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const OR={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},MR=h2(),_R=e=>{const{align:r,gutterBottom:l,noWrap:a,paragraph:u,variant:s,classes:f}=e,d={root:["root",s,e.align!=="inherit"&&`align${dt(r)}`,l&&"gutterBottom",a&&"noWrap",u&&"paragraph"]};return er(d,RR,f)},DR=zt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:l}=e;return[r.root,l.variant&&r[l.variant],l.align!=="inherit"&&r[`align${dt(l.align)}`],l.noWrap&&r.noWrap,l.gutterBottom&&r.gutterBottom,l.paragraph&&r.paragraph]}})(Gn(({theme:e})=>{var r;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([l,a])=>l!=="inherit"&&a&&typeof a=="object").map(([l,a])=>({props:{variant:l},style:a})),...Object.entries(e.palette).filter(nl()).map(([l])=>({props:{color:l},style:{color:(e.vars||e).palette[l].main}})),...Object.entries(((r=e.palette)==null?void 0:r.text)||{}).filter(([,l])=>typeof l=="string").map(([l])=>({props:{color:`text${dt(l)}`},style:{color:(e.vars||e).palette.text[l]}})),{props:({ownerState:l})=>l.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:l})=>l.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:l})=>l.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:l})=>l.paragraph,style:{marginBottom:16}}]}})),Ny={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Tf=M.forwardRef(function(r,l){const{color:a,...u}=Yn({props:r,name:"MuiTypography"}),s=!OR[a],f=MR({...u,...s&&{color:a}}),{align:d="inherit",className:m,component:h,gutterBottom:g=!1,noWrap:y=!1,paragraph:v=!1,variant:S="body1",variantMapping:R=Ny,...T}=f,N={...f,align:d,color:a,className:m,component:h,gutterBottom:g,noWrap:y,paragraph:v,variant:S,variantMapping:R},w=h||(v?"p":R[S]||Ny[S])||"span",B=_R(N);return ce.jsx(DR,{as:w,ref:l,className:at(B.root,m),...T,ownerState:N,style:{...d!=="inherit"&&{"--Typography-textAlign":d},...T.style}})});function rl(e,r){const{className:l,elementType:a,ownerState:u,externalForwardedProps:s,getSlotOwnerState:f,internalForwardedProps:d,...m}=r,{component:h,slots:g={[e]:void 0},slotProps:y={[e]:void 0},...v}=s,S=g[e]||a,R=Yv(y[e],u),{props:{component:T,...N},internalRef:w}=Gv({className:l,...m,externalForwardedProps:e==="root"?v:void 0,externalSlotProps:R}),B=Vn(w,R==null?void 0:R.ref,r.ref),k=f?f(N):{},z={...u,...k},A=e==="root"?T||h:T,_=$v(S,{...e==="root"&&!h&&!g[e]&&d,...e!=="root"&&!g[e]&&d,...N,...A&&{as:A},ref:B},z);return Object.keys(k).forEach(H=>{delete _[H]}),[S,_]}function zR(e){return qn("MuiPaper",e)}$n("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 NR=e=>{const{square:r,elevation:l,variant:a,classes:u}=e,s={root:["root",a,!r&&"rounded",a==="elevation"&&`elevation${l}`]};return er(s,zR,u)},BR=zt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:l}=e;return[r.root,r[l.variant],!l.square&&r.rounded,l.variant==="elevation"&&r[`elevation${l.elevation}`]]}})(Gn(({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:r})=>!r.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)"}}]}))),By=M.forwardRef(function(r,l){var S;const a=Yn({props:r,name:"MuiPaper"}),u=lu(),{className:s,component:f="div",elevation:d=1,square:m=!1,variant:h="elevation",...g}=a,y={...a,component:f,elevation:d,square:m,variant:h},v=NR(y);return ce.jsx(BR,{as:f,ownerState:y,className:at(v.root,s),ref:l,...g,style:{...h==="elevation"&&{"--Paper-shadow":(u.vars||u).shadows[d],...u.vars&&{"--Paper-overlay":(S=u.vars.overlays)==null?void 0:S[d]},...!u.vars&&u.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${ea("#fff",bc(d))}, ${ea("#fff",bc(d))})`}},...g.style}})});function LR(e){return qn("MuiAlert",e)}const Ly=$n("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);class xu{constructor(){Do(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new xu}static use(){const r=Th(xu.create).current,[l,a]=M.useState(!1);return r.shouldMount=l,r.setShouldMount=a,M.useEffect(r.mountEffect,[l]),r}mount(){return this.mounted||(this.mounted=jR(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...r){this.mount().then(()=>{var l;return(l=this.ref.current)==null?void 0:l.start(...r)})}stop(...r){this.mount().then(()=>{var l;return(l=this.ref.current)==null?void 0:l.stop(...r)})}pulsate(...r){this.mount().then(()=>{var l;return(l=this.ref.current)==null?void 0:l.pulsate(...r)})}}function UR(){return xu.use()}function jR(){let e,r;const l=new Promise((a,u)=>{e=a,r=u});return l.resolve=e,l.reject=r,l}function Uy(e,r){if(e==null)return{};var l={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(r.includes(a))continue;l[a]=e[a]}return l}function wf(e,r){return wf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,a){return l.__proto__=a,l},wf(e,r)}function jy(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,wf(e,r)}var Hy=Gp();const Eu=Cn(Hy),Iy={disabled:!1},Cu=ft.createContext(null);var HR=function(r){return r.scrollTop},za="unmounted",pi="exited",hi="entering",il="entered",Af="exiting",ar=function(e){jy(r,e);function r(a,u){var s;s=e.call(this,a,u)||this;var f=u,d=f&&!f.isMounting?a.enter:a.appear,m;return s.appearStatus=null,a.in?d?(m=pi,s.appearStatus=hi):m=il:a.unmountOnExit||a.mountOnEnter?m=za:m=pi,s.state={status:m},s.nextCallback=null,s}r.getDerivedStateFromProps=function(u,s){var f=u.in;return f&&s.status===za?{status:pi}:null};var l=r.prototype;return l.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},l.componentDidUpdate=function(u){var s=null;if(u!==this.props){var f=this.state.status;this.props.in?f!==hi&&f!==il&&(s=hi):(f===hi||f===il)&&(s=Af)}this.updateStatus(!1,s)},l.componentWillUnmount=function(){this.cancelNextCallback()},l.getTimeouts=function(){var u=this.props.timeout,s,f,d;return s=f=d=u,u!=null&&typeof u!="number"&&(s=u.exit,f=u.enter,d=u.appear!==void 0?u.appear:f),{exit:s,enter:f,appear:d}},l.updateStatus=function(u,s){if(u===void 0&&(u=!1),s!==null)if(this.cancelNextCallback(),s===hi){if(this.props.unmountOnExit||this.props.mountOnEnter){var f=this.props.nodeRef?this.props.nodeRef.current:Eu.findDOMNode(this);f&&HR(f)}this.performEnter(u)}else this.performExit();else this.props.unmountOnExit&&this.state.status===pi&&this.setState({status:za})},l.performEnter=function(u){var s=this,f=this.props.enter,d=this.context?this.context.isMounting:u,m=this.props.nodeRef?[d]:[Eu.findDOMNode(this),d],h=m[0],g=m[1],y=this.getTimeouts(),v=d?y.appear:y.enter;if(!u&&!f||Iy.disabled){this.safeSetState({status:il},function(){s.props.onEntered(h)});return}this.props.onEnter(h,g),this.safeSetState({status:hi},function(){s.props.onEntering(h,g),s.onTransitionEnd(v,function(){s.safeSetState({status:il},function(){s.props.onEntered(h,g)})})})},l.performExit=function(){var u=this,s=this.props.exit,f=this.getTimeouts(),d=this.props.nodeRef?void 0:Eu.findDOMNode(this);if(!s||Iy.disabled){this.safeSetState({status:pi},function(){u.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:Af},function(){u.props.onExiting(d),u.onTransitionEnd(f.exit,function(){u.safeSetState({status:pi},function(){u.props.onExited(d)})})})},l.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},l.safeSetState=function(u,s){s=this.setNextCallback(s),this.setState(u,s)},l.setNextCallback=function(u){var s=this,f=!0;return this.nextCallback=function(d){f&&(f=!1,s.nextCallback=null,u(d))},this.nextCallback.cancel=function(){f=!1},this.nextCallback},l.onTransitionEnd=function(u,s){this.setNextCallback(s);var f=this.props.nodeRef?this.props.nodeRef.current:Eu.findDOMNode(this),d=u==null&&!this.props.addEndListener;if(!f||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var m=this.props.nodeRef?[this.nextCallback]:[f,this.nextCallback],h=m[0],g=m[1];this.props.addEndListener(h,g)}u!=null&&setTimeout(this.nextCallback,u)},l.render=function(){var u=this.state.status;if(u===za)return null;var s=this.props,f=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 d=Uy(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ft.createElement(Cu.Provider,{value:null},typeof f=="function"?f(u,d):ft.cloneElement(ft.Children.only(f),d))},r}(ft.Component);ar.contextType=Cu,ar.propTypes={};function ll(){}ar.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ll,onEntering:ll,onEntered:ll,onExit:ll,onExiting:ll,onExited:ll},ar.UNMOUNTED=za,ar.EXITED=pi,ar.ENTERING=hi,ar.ENTERED=il,ar.EXITING=Af;function IR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kf(e,r){var l=function(s){return r&&M.isValidElement(s)?r(s):s},a=Object.create(null);return e&&M.Children.map(e,function(u){return u}).forEach(function(u){a[u.key]=l(u)}),a}function VR(e,r){e=e||{},r=r||{};function l(g){return g in r?r[g]:e[g]}var a=Object.create(null),u=[];for(var s in e)s in r?u.length&&(a[s]=u,u=[]):u.push(s);var f,d={};for(var m in r){if(a[m])for(f=0;f<a[m].length;f++){var h=a[m][f];d[a[m][f]]=l(h)}d[m]=l(m)}for(f=0;f<u.length;f++)d[u[f]]=l(u[f]);return d}function mi(e,r,l){return l[r]!=null?l[r]:e.props[r]}function qR(e,r){return kf(e.children,function(l){return M.cloneElement(l,{onExited:r.bind(null,l),in:!0,appear:mi(l,"appear",e),enter:mi(l,"enter",e),exit:mi(l,"exit",e)})})}function $R(e,r,l){var a=kf(e.children),u=VR(r,a);return Object.keys(u).forEach(function(s){var f=u[s];if(M.isValidElement(f)){var d=s in r,m=s in a,h=r[s],g=M.isValidElement(h)&&!h.props.in;m&&(!d||g)?u[s]=M.cloneElement(f,{onExited:l.bind(null,f),in:!0,exit:mi(f,"exit",e),enter:mi(f,"enter",e)}):!m&&d&&!g?u[s]=M.cloneElement(f,{in:!1}):m&&d&&M.isValidElement(h)&&(u[s]=M.cloneElement(f,{onExited:l.bind(null,f),in:h.props.in,exit:mi(f,"exit",e),enter:mi(f,"enter",e)}))}}),u}var GR=Object.values||function(e){return Object.keys(e).map(function(r){return e[r]})},YR={component:"div",childFactory:function(r){return r}},Rf=function(e){jy(r,e);function r(a,u){var s;s=e.call(this,a,u)||this;var f=s.handleExited.bind(IR(s));return s.state={contextValue:{isMounting:!0},handleExited:f,firstRender:!0},s}var l=r.prototype;return l.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},l.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(u,s){var f=s.children,d=s.handleExited,m=s.firstRender;return{children:m?qR(u,d):$R(u,f,d),firstRender:!1}},l.handleExited=function(u,s){var f=kf(this.props.children);u.key in f||(u.props.onExited&&u.props.onExited(s),this.mounted&&this.setState(function(d){var m=No({},d.children);return delete m[u.key],{children:m}}))},l.render=function(){var u=this.props,s=u.component,f=u.childFactory,d=Uy(u,["component","childFactory"]),m=this.state.contextValue,h=GR(this.state.children).map(f);return delete d.appear,delete d.enter,delete d.exit,s===null?ft.createElement(Cu.Provider,{value:m},h):ft.createElement(Cu.Provider,{value:m},ft.createElement(s,d,h))},r}(ft.Component);Rf.propTypes={},Rf.defaultProps=YR;function FR(e){const{className:r,classes:l,pulsate:a=!1,rippleX:u,rippleY:s,rippleSize:f,in:d,onExited:m,timeout:h}=e,[g,y]=M.useState(!1),v=at(r,l.ripple,l.rippleVisible,a&&l.ripplePulsate),S={width:f,height:f,top:-(f/2)+s,left:-(f/2)+u},R=at(l.child,g&&l.childLeaving,a&&l.childPulsate);return!d&&!g&&y(!0),M.useEffect(()=>{if(!d&&m!=null){const T=setTimeout(m,h);return()=>{clearTimeout(T)}}},[m,d,h]),ce.jsx("span",{className:v,style:S,children:ce.jsx("span",{className:R})})}const Rn=$n("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Of=550,PR=80,XR=Ws`
|
|
121
|
+
`}]}}const Ay=function(e){if(e==null)return Hk;if(typeof e=="function")return Eu(e);if(typeof e=="object")return Array.isArray(e)?Lk(e):Uk(e);if(typeof e=="string")return jk(e);throw new Error("Expected function, string, or object as test")};function Lk(e){const r=[];let a=-1;for(;++a<e.length;)r[a]=Ay(e[a]);return Eu(l);function l(...u){let s=-1;for(;++s<r.length;)if(r[s].apply(this,u))return!0;return!1}}function Uk(e){const r=e;return Eu(a);function a(l){const u=l;let s;for(s in e)if(u[s]!==r[s])return!1;return!0}}function jk(e){return Eu(r);function r(a){return a&&a.type===e}}function Eu(e){return r;function r(a,l,u){return!!(Ik(a)&&e.call(this,a,typeof l=="number"?l:void 0,u||void 0))}}function Hk(){return!0}function Ik(e){return e!==null&&typeof e=="object"&&"type"in e}function kO(e){return e}const ky=[],Vk=!0,Ry=!1,$k="skip";function qk(e,r,a,l){let u;typeof r=="function"&&typeof a!="function"?(l=a,a=r):u=r;const s=Ay(u),f=l?-1:1;d(e,void 0,[])();function d(m,h,g){const y=m&&typeof m=="object"?m:{};if(typeof y.type=="string"){const S=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(m.type+(S?"<"+S+">":""))+")"})}return v;function v(){let S=ky,A,T,N;if((!r||s(m,h,g[g.length-1]||void 0))&&(S=Gk(a(m,g)),S[0]===Ry))return S;if("children"in m&&m.children){const w=m;if(w.children&&S[0]!==$k)for(T=(l?w.children.length:-1)+f,N=g.concat(w);T>-1&&T<w.children.length;){const B=w.children[T];if(A=d(B,T,N)(),A[0]===Ry)return A;T=typeof A[1]=="number"?A[1]:T+f}}return S}}}function Gk(e){return Array.isArray(e)?e:typeof e=="number"?[Vk,e]:e==null?ky:[e]}function Oy(e,r,a,l){let u,s,f;typeof r=="function"?(s=void 0,f=r,u=a):(s=r,f=a,u=l),qk(e,s,d,u);function d(m,h){const g=h[h.length-1],y=g?g.children.indexOf(m):void 0;return f(m,y,g)}}const mf={}.hasOwnProperty,Yk={};function Fk(e,r){const a=r||Yk,l=new Map,u=new Map,s=new Map,f={...Rk,...a.handlers},d={all:h,applyData:Xk,definitionById:l,footnoteById:u,footnoteCounts:s,footnoteOrder:[],handlers:f,one:m,options:a,patch:Pk,wrap:Kk};return Oy(e,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const y=g.type==="definition"?l:u,v=String(g.identifier).toUpperCase();y.has(v)||y.set(v,g)}}),d;function m(g,y){const v=g.type,S=d.handlers[v];if(mf.call(d.handlers,v)&&S)return S(d,g,y);if(d.options.passThrough&&d.options.passThrough.includes(v)){if("children"in g){const{children:T,...N}=g,w=xu(N);return w.children=d.all(g),w}return xu(g)}return(d.options.unknownHandler||Qk)(d,g,y)}function h(g){const y=[];if("children"in g){const v=g.children;let S=-1;for(;++S<v.length;){const A=d.one(v[S],g);if(A){if(S&&v[S-1].type==="break"&&(!Array.isArray(A)&&A.type==="text"&&(A.value=My(A.value)),!Array.isArray(A)&&A.type==="element")){const T=A.children[0];T&&T.type==="text"&&(T.value=My(T.value))}Array.isArray(A)?y.push(...A):y.push(A)}}}return y}}function Pk(e,r){e.position&&(r.position=UT(e))}function Xk(e,r){let a=r;if(e&&e.data){const l=e.data.hName,u=e.data.hChildren,s=e.data.hProperties;if(typeof l=="string")if(a.type==="element")a.tagName=l;else{const f="children"in a?a.children:[a];a={type:"element",tagName:l,properties:{},children:f}}a.type==="element"&&s&&Object.assign(a.properties,xu(s)),"children"in a&&a.children&&u!==null&&u!==void 0&&(a.children=u)}return a}function Qk(e,r){const a=r.data||{},l="value"in r&&!(mf.call(a,"hProperties")||mf.call(a,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function Kk(e,r){const a=[];let l=-1;for(r&&a.push({type:"text",value:`
|
|
122
|
+
`});++l<e.length;)l&&a.push({type:"text",value:`
|
|
123
|
+
`}),a.push(e[l]);return r&&e.length>0&&a.push({type:"text",value:`
|
|
124
|
+
`}),a}function My(e){let r=0,a=e.charCodeAt(r);for(;a===9||a===32;)r++,a=e.charCodeAt(r);return e.slice(r)}function _y(e,r){const a=Fk(e,r),l=a.one(e,void 0),u=Bk(a),s=Array.isArray(l)?{type:"root",children:l}:l||{type:"root",children:[]};return u&&s.children.push({type:"text",value:`
|
|
125
|
+
`},u),s}function Zk(e,r){return e&&"run"in e?async function(a,l){const u=_y(a,{file:l,...r});await e.run(u,l)}:function(a,l){return _y(a,{file:l,...e||r})}}function Dy(e){if(e)throw e}var gf,zy;function Wk(){if(zy)return gf;zy=1;var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,a=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=function(h){return typeof Array.isArray=="function"?Array.isArray(h):r.call(h)==="[object Array]"},s=function(h){if(!h||r.call(h)!=="[object Object]")return!1;var g=e.call(h,"constructor"),y=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!g&&!y)return!1;var v;for(v in h);return typeof v>"u"||e.call(h,v)},f=function(h,g){a&&g.name==="__proto__"?a(h,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):h[g.name]=g.newValue},d=function(h,g){if(g==="__proto__")if(e.call(h,g)){if(l)return l(h,g).value}else return;return h[g]};return gf=function m(){var h,g,y,v,S,A,T=arguments[0],N=1,w=arguments.length,B=!1;for(typeof T=="boolean"&&(B=T,T=arguments[1]||{},N=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});N<w;++N)if(h=arguments[N],h!=null)for(g in h)y=d(T,g),v=d(h,g),T!==v&&(B&&v&&(s(v)||(S=u(v)))?(S?(S=!1,A=y&&u(y)?y:[]):A=y&&s(y)?y:{},f(T,{name:g,newValue:m(B,A,v)})):typeof v<"u"&&f(T,{name:g,newValue:v}));return T},gf}var Jk=Wk();const yf=Tn(Jk);function bf(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function e5(){const e=[],r={run:a,use:l};return r;function a(...u){let s=-1;const f=u.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);d(null,...u);function d(m,...h){const g=e[++s];let y=-1;if(m){f(m);return}for(;++y<u.length;)(h[y]===null||h[y]===void 0)&&(h[y]=u[y]);u=h,g?t5(g,d)(...h):f(null,...h)}}function l(u){if(typeof u!="function")throw new TypeError("Expected `middelware` to be a function, not "+u);return e.push(u),r}}function t5(e,r){let a;return l;function l(...f){const d=e.length>f.length;let m;d&&f.push(u);try{m=e.apply(this,f)}catch(h){const g=h;if(d&&a)throw g;return u(g)}d||(m&&m.then&&typeof m.then=="function"?m.then(s,u):m instanceof Error?u(m):s(m))}function u(f,...d){a||(a=!0,r(f,...d))}function s(f){u(null,f)}}const or={basename:n5,dirname:r5,extname:i5,join:a5,sep:"/"};function n5(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');Ll(e);let a=0,l=-1,u=e.length,s;if(r===void 0||r.length===0||r.length>e.length){for(;u--;)if(e.codePointAt(u)===47){if(s){a=u+1;break}}else l<0&&(s=!0,l=u+1);return l<0?"":e.slice(a,l)}if(r===e)return"";let f=-1,d=r.length-1;for(;u--;)if(e.codePointAt(u)===47){if(s){a=u+1;break}}else f<0&&(s=!0,f=u+1),d>-1&&(e.codePointAt(u)===r.codePointAt(d--)?d<0&&(l=u):(d=-1,l=f));return a===l?l=f:l<0&&(l=e.length),e.slice(a,l)}function r5(e){if(Ll(e),e.length===0)return".";let r=-1,a=e.length,l;for(;--a;)if(e.codePointAt(a)===47){if(l){r=a;break}}else l||(l=!0);return r<0?e.codePointAt(0)===47?"/":".":r===1&&e.codePointAt(0)===47?"//":e.slice(0,r)}function i5(e){Ll(e);let r=e.length,a=-1,l=0,u=-1,s=0,f;for(;r--;){const d=e.codePointAt(r);if(d===47){if(f){l=r+1;break}continue}a<0&&(f=!0,a=r+1),d===46?u<0?u=r:s!==1&&(s=1):u>-1&&(s=-1)}return u<0||a<0||s===0||s===1&&u===a-1&&u===l+1?"":e.slice(u,a)}function a5(...e){let r=-1,a;for(;++r<e.length;)Ll(e[r]),e[r]&&(a=a===void 0?e[r]:a+"/"+e[r]);return a===void 0?".":l5(a)}function l5(e){Ll(e);const r=e.codePointAt(0)===47;let a=o5(e,!r);return a.length===0&&!r&&(a="."),a.length>0&&e.codePointAt(e.length-1)===47&&(a+="/"),r?"/"+a:a}function o5(e,r){let a="",l=0,u=-1,s=0,f=-1,d,m;for(;++f<=e.length;){if(f<e.length)d=e.codePointAt(f);else{if(d===47)break;d=47}if(d===47){if(!(u===f-1||s===1))if(u!==f-1&&s===2){if(a.length<2||l!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(m=a.lastIndexOf("/"),m!==a.length-1){m<0?(a="",l=0):(a=a.slice(0,m),l=a.length-1-a.lastIndexOf("/")),u=f,s=0;continue}}else if(a.length>0){a="",l=0,u=f,s=0;continue}}r&&(a=a.length>0?a+"/..":"..",l=2)}else a.length>0?a+="/"+e.slice(u+1,f):a=e.slice(u+1,f),l=f-u-1;u=f,s=0}else d===46&&s>-1?s++:s=-1}return a}function Ll(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const u5={cwd:s5};function s5(){return"/"}function Sf(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function c5(e){if(typeof e=="string")e=new URL(e);else if(!Sf(e)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(e.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return f5(e)}function f5(e){if(e.hostname!==""){const l=new TypeError('File URL host must be "localhost" or empty on darwin');throw l.code="ERR_INVALID_FILE_URL_HOST",l}const r=e.pathname;let a=-1;for(;++a<r.length;)if(r.codePointAt(a)===37&&r.codePointAt(a+1)===50){const l=r.codePointAt(a+2);if(l===70||l===102){const u=new TypeError("File URL path must not include encoded / characters");throw u.code="ERR_INVALID_FILE_URL_PATH",u}}return decodeURIComponent(r)}const vf=["history","path","basename","stem","extname","dirname"];class Ny{constructor(r){let a;r?Sf(r)?a={path:r}:typeof r=="string"||d5(r)?a={value:r}:a=r:a={},this.cwd="cwd"in a?"":u5.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let l=-1;for(;++l<vf.length;){const s=vf[l];s in a&&a[s]!==void 0&&a[s]!==null&&(this[s]=s==="history"?[...a[s]]:a[s])}let u;for(u in a)vf.includes(u)||(this[u]=a[u])}get basename(){return typeof this.path=="string"?or.basename(this.path):void 0}set basename(r){Ef(r,"basename"),xf(r,"basename"),this.path=or.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?or.dirname(this.path):void 0}set dirname(r){By(this.basename,"dirname"),this.path=or.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?or.extname(this.path):void 0}set extname(r){if(xf(r,"extname"),By(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=or.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){Sf(r)&&(r=c5(r)),Ef(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?or.basename(this.path,this.extname):void 0}set stem(r){Ef(r,"stem"),xf(r,"stem"),this.path=or.join(this.dirname||"",r+(this.extname||""))}fail(r,a,l){const u=this.message(r,a,l);throw u.fatal=!0,u}info(r,a,l){const u=this.message(r,a,l);return u.fatal=void 0,u}message(r,a,l){const u=new Qt(r,a,l);return this.path&&(u.name=this.path+":"+u.name,u.file=this.path),u.fatal=!1,this.messages.push(u),u}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function xf(e,r){if(e&&e.includes(or.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+or.sep+"`")}function Ef(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function By(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}function d5(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const p5=function(e){const l=this.constructor.prototype,u=l[e],s=function(){return u.apply(s,arguments)};return Object.setPrototypeOf(s,l),s},h5={}.hasOwnProperty;class Cf extends p5{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=e5()}copy(){const r=new Cf;let a=-1;for(;++a<this.attachers.length;){const l=this.attachers[a];r.use(...l)}return r.data(yf(!0,{},this.namespace)),r}data(r,a){return typeof r=="string"?arguments.length===2?(Af("data",this.frozen),this.namespace[r]=a,this):h5.call(this.namespace,r)&&this.namespace[r]||void 0:r?(Af("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[a,...l]=this.attachers[this.freezeIndex];if(l[0]===!1)continue;l[0]===!0&&(l[0]=void 0);const u=a.call(r,...l);typeof u=="function"&&this.transformers.use(u)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const a=Cu(r),l=this.parser||this.Parser;return Tf("parse",l),l(String(a),a)}process(r,a){const l=this;return this.freeze(),Tf("process",this.parser||this.Parser),wf("process",this.compiler||this.Compiler),a?u(void 0,a):new Promise(u);function u(s,f){const d=Cu(r),m=l.parse(d);l.run(m,d,function(g,y,v){if(g||!y||!v)return h(g);const S=y,A=l.stringify(S,v);y5(A)?v.value=A:v.result=A,h(g,v)});function h(g,y){g||!y?f(g):s?s(y):a(void 0,y)}}}processSync(r){let a=!1,l;return this.freeze(),Tf("processSync",this.parser||this.Parser),wf("processSync",this.compiler||this.Compiler),this.process(r,u),Uy("processSync","process",a),l;function u(s,f){a=!0,Dy(s),l=f}}run(r,a,l){Ly(r),this.freeze();const u=this.transformers;return!l&&typeof a=="function"&&(l=a,a=void 0),l?s(void 0,l):new Promise(s);function s(f,d){const m=Cu(a);u.run(r,m,h);function h(g,y,v){const S=y||r;g?d(g):f?f(S):l(void 0,S,v)}}}runSync(r,a){let l=!1,u;return this.run(r,a,s),Uy("runSync","run",l),u;function s(f,d){Dy(f),u=d,l=!0}}stringify(r,a){this.freeze();const l=Cu(a),u=this.compiler||this.Compiler;return wf("stringify",u),Ly(r),u(r,l)}use(r,...a){const l=this.attachers,u=this.namespace;if(Af("use",this.frozen),r!=null)if(typeof r=="function")m(r,a);else if(typeof r=="object")Array.isArray(r)?d(r):f(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function s(h){if(typeof h=="function")m(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[g,...y]=h;m(g,y)}else f(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function f(h){if(!("plugins"in h)&&!("settings"in h))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");d(h.plugins),h.settings&&(u.settings=yf(!0,u.settings,h.settings))}function d(h){let g=-1;if(h!=null)if(Array.isArray(h))for(;++g<h.length;){const y=h[g];s(y)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function m(h,g){let y=-1,v=-1;for(;++y<l.length;)if(l[y][0]===h){v=y;break}if(v===-1)l.push([h,...g]);else if(g.length>0){let[S,...A]=g;const T=l[v][1];bf(T)&&bf(S)&&(S=yf(!0,T,S)),l[v]=[h,S,...A]}}}}const m5=new Cf().freeze();function Tf(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function wf(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Af(e,r){if(r)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ly(e){if(!bf(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Uy(e,r,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function Cu(e){return g5(e)?e:new Ny(e)}function g5(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function y5(e){return typeof e=="string"||b5(e)}function b5(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const S5="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",jy=[],Hy={allowDangerousHtml:!0},v5=/^(https?|ircs?|mailto|xmpp)$/i,x5=[{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:"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 E5(e){const r=e.allowedElements,a=e.allowElement,l=e.children||"",u=e.className,s=e.components,f=e.disallowedElements,d=e.rehypePlugins||jy,m=e.remarkPlugins||jy,h=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Hy}:Hy,g=e.skipHtml,y=e.unwrapDisallowed,v=e.urlTransform||C5,S=m5().use(nk).use(m).use(Zk,h).use(d),A=new Ny;typeof l=="string"&&(A.value=l);for(const B of x5)Object.hasOwn(e,B.from)&&(""+B.from+(B.to?"use `"+B.to+"` instead":"remove it")+S5+B.id,void 0);const T=S.parse(A);let N=S.runSync(T,A);return u&&(N={type:"element",tagName:"div",properties:{className:u},children:N.type==="root"?N.children:[N]}),Oy(N,w),qT(N,{Fragment:ce.Fragment,components:s,ignoreInvalidStyle:!0,jsx:ce.jsx,jsxs:ce.jsxs,passKeys:!0,passNode:!0});function w(B,k,z){if(B.type==="raw"&&z&&typeof k=="number")return g?z.children.splice(k,1):z.children[k]={type:"text",value:B.value},k;if(B.type==="element"){let R;for(R in tf)if(Object.hasOwn(tf,R)&&Object.hasOwn(B.properties,R)){const _=B.properties[R],H=tf[R];(H===null||H.includes(B.tagName))&&(B.properties[R]=v(String(_||""),R,B))}}if(B.type==="element"){let R=r?!r.includes(B.tagName):f?f.includes(B.tagName):!1;if(!R&&a&&typeof k=="number"&&(R=!a(B,k,z)),R&&z&&typeof k=="number")return y&&B.children?z.children.splice(k,1,...B.children):z.children.splice(k,1),k}}}function C5(e){const r=e.indexOf(":"),a=e.indexOf("?"),l=e.indexOf("#"),u=e.indexOf("/");return r<0||u>-1&&r>u||a>-1&&r>a||l>-1&&r>l||v5.test(e.slice(0,r))?e:""}const T5=(...e)=>r=>{e.forEach(a=>{typeof a=="function"?a(r):a&&(a.current=r)})},Iy=e=>e.scrollHeight-e.clientHeight-e.scrollTop,w5=e=>{e.scrollTop=e.scrollHeight},A5=tt.div({overflow:"auto"}),k5=M.forwardRef(function({children:r,threshold:a=2,className:l},u){const s=M.useRef(null),[f,d]=M.useState(r),m=M.useRef(null);return M.useLayoutEffect(()=>{s.current&&(m.current=Iy(s.current)<a,d(r))},[r,a]),M.useLayoutEffect(()=>{if(!s.current)return;const h=Iy(s.current)<a;m.current&&!h&&(w5(s.current),m.current=null)},[f,a]),M.createElement(A5,{className:l,ref:T5(s,u)},f)}),Vy=tt.span({clipPath:"inset(100%)",clip:"rect(1px, 1px, 1px, 1px)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),R5={loadingMessages:[{delay:1500,text:"Loading"},{delay:4e3,text:"Still loading"}]},O5=({message:e,isLoading:r,loadingMessages:a=R5.loadingMessages})=>{var f;const[l,u]=M.useState(-1);M.useEffect(()=>{u(-1)},[r,a]),M.useEffect(()=>{const d=a[l+1];if(!r||!d)return()=>{};const m=setTimeout(()=>{u(l+1)},d.delay);return()=>{clearTimeout(m)}},[r,l,a]);const s=(f=a[l])==null?void 0:f.text;return M.createElement(Vy,{"aria-atomic":"true","aria-live":"polite"},r?s:e)};function M5(e){return typeof e.main=="string"}function _5(e,r=[]){if(!M5(e))return!1;for(const a of r)if(!e.hasOwnProperty(a)||typeof e[a]!="string")return!1;return!0}function la(e=[]){return([,r])=>r&&_5(r,e)}function D5(e){return Gn("MuiTypography",e)}Yn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const z5={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},N5=b2(),B5=e=>{const{align:r,gutterBottom:a,noWrap:l,paragraph:u,variant:s,classes:f}=e,d={root:["root",s,e.align!=="inherit"&&`align${pt(r)}`,a&&"gutterBottom",l&&"noWrap",u&&"paragraph"]};return nr(d,D5,f)},L5=Bt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[r.root,a.variant&&r[a.variant],a.align!=="inherit"&&r[`align${pt(a.align)}`],a.noWrap&&r.noWrap,a.gutterBottom&&r.gutterBottom,a.paragraph&&r.paragraph]}})(Fn(({theme:e})=>{var r;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([a,l])=>a!=="inherit"&&l&&typeof l=="object").map(([a,l])=>({props:{variant:a},style:l})),...Object.entries(e.palette).filter(la()).map(([a])=>({props:{color:a},style:{color:(e.vars||e).palette[a].main}})),...Object.entries(((r=e.palette)==null?void 0:r.text)||{}).filter(([,a])=>typeof a=="string").map(([a])=>({props:{color:`text${pt(a)}`},style:{color:(e.vars||e).palette.text[a]}})),{props:({ownerState:a})=>a.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:a})=>a.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:a})=>a.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:a})=>a.paragraph,style:{marginBottom:16}}]}})),$y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},kf=M.forwardRef(function(r,a){const{color:l,...u}=Pn({props:r,name:"MuiTypography"}),s=!z5[l],f=N5({...u,...s&&{color:l}}),{align:d="inherit",className:m,component:h,gutterBottom:g=!1,noWrap:y=!1,paragraph:v=!1,variant:S="body1",variantMapping:A=$y,...T}=f,N={...f,align:d,color:l,className:m,component:h,gutterBottom:g,noWrap:y,paragraph:v,variant:S,variantMapping:A},w=h||(v?"p":A[S]||$y[S])||"span",B=B5(N);return ce.jsx(L5,{as:w,ref:a,className:ot(B.root,m),...T,ownerState:N,style:{...d!=="inherit"&&{"--Typography-textAlign":d},...T.style}})});function oa(e,r){const{className:a,elementType:l,ownerState:u,externalForwardedProps:s,getSlotOwnerState:f,internalForwardedProps:d,...m}=r,{component:h,slots:g={[e]:void 0},slotProps:y={[e]:void 0},...v}=s,S=g[e]||l,A=Qv(y[e],u),{props:{component:T,...N},internalRef:w}=Xv({className:a,...m,externalForwardedProps:e==="root"?v:void 0,externalSlotProps:A}),B=qn(w,A==null?void 0:A.ref,r.ref),k=f?f(N):{},z={...u,...k},R=e==="root"?T||h:T,_=Pv(S,{...e==="root"&&!h&&!g[e]&&d,...e!=="root"&&!g[e]&&d,...N,...R&&{as:R},ref:B},z);return Object.keys(k).forEach(H=>{delete _[H]}),[S,_]}function U5(e){return Gn("MuiPaper",e)}Yn("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 j5=e=>{const{square:r,elevation:a,variant:l,classes:u}=e,s={root:["root",l,!r&&"rounded",l==="elevation"&&`elevation${a}`]};return nr(s,U5,u)},H5=Bt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[r.root,r[a.variant],!a.square&&r.rounded,a.variant==="elevation"&&r[`elevation${a.elevation}`]]}})(Fn(({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:r})=>!r.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)"}}]}))),qy=M.forwardRef(function(r,a){var S;const l=Pn({props:r,name:"MuiPaper"}),u=uu(),{className:s,component:f="div",elevation:d=1,square:m=!1,variant:h="elevation",...g}=l,y={...l,component:f,elevation:d,square:m,variant:h},v=j5(y);return ce.jsx(H5,{as:f,ownerState:y,className:ot(v.root,s),ref:a,...g,style:{...h==="elevation"&&{"--Paper-shadow":(u.vars||u).shadows[d],...u.vars&&{"--Paper-overlay":(S=u.vars.overlays)==null?void 0:S[d]},...!u.vars&&u.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${il("#fff",xc(d))}, ${il("#fff",xc(d))})`}},...g.style}})});function I5(e){return Gn("MuiAlert",e)}const Gy=Yn("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);class Tu{constructor(){Lo(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Tu}static use(){const r=Dh(Tu.create).current,[a,l]=M.useState(!1);return r.shouldMount=a,r.setShouldMount=l,M.useEffect(r.mountEffect,[a]),r}mount(){return this.mounted||(this.mounted=$5(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...r){this.mount().then(()=>{var a;return(a=this.ref.current)==null?void 0:a.start(...r)})}stop(...r){this.mount().then(()=>{var a;return(a=this.ref.current)==null?void 0:a.stop(...r)})}pulsate(...r){this.mount().then(()=>{var a;return(a=this.ref.current)==null?void 0:a.pulsate(...r)})}}function V5(){return Tu.use()}function $5(){let e,r;const a=new Promise((l,u)=>{e=l,r=u});return a.resolve=e,a.reject=r,a}function Yy(e,r){if(e==null)return{};var a={};for(var l in e)if({}.hasOwnProperty.call(e,l)){if(r.includes(l))continue;a[l]=e[l]}return a}function Rf(e,r){return Rf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,l){return a.__proto__=l,a},Rf(e,r)}function Fy(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,Rf(e,r)}var Py=Pp();const wu=Tn(Py),Xy={disabled:!1},Au=dt.createContext(null);var q5=function(r){return r.scrollTop},Ul="unmounted",yi="exited",bi="entering",ua="entered",Of="exiting",ur=function(e){Fy(r,e);function r(l,u){var s;s=e.call(this,l,u)||this;var f=u,d=f&&!f.isMounting?l.enter:l.appear,m;return s.appearStatus=null,l.in?d?(m=yi,s.appearStatus=bi):m=ua:l.unmountOnExit||l.mountOnEnter?m=Ul:m=yi,s.state={status:m},s.nextCallback=null,s}r.getDerivedStateFromProps=function(u,s){var f=u.in;return f&&s.status===Ul?{status:yi}:null};var a=r.prototype;return a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(u){var s=null;if(u!==this.props){var f=this.state.status;this.props.in?f!==bi&&f!==ua&&(s=bi):(f===bi||f===ua)&&(s=Of)}this.updateStatus(!1,s)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var u=this.props.timeout,s,f,d;return s=f=d=u,u!=null&&typeof u!="number"&&(s=u.exit,f=u.enter,d=u.appear!==void 0?u.appear:f),{exit:s,enter:f,appear:d}},a.updateStatus=function(u,s){if(u===void 0&&(u=!1),s!==null)if(this.cancelNextCallback(),s===bi){if(this.props.unmountOnExit||this.props.mountOnEnter){var f=this.props.nodeRef?this.props.nodeRef.current:wu.findDOMNode(this);f&&q5(f)}this.performEnter(u)}else this.performExit();else this.props.unmountOnExit&&this.state.status===yi&&this.setState({status:Ul})},a.performEnter=function(u){var s=this,f=this.props.enter,d=this.context?this.context.isMounting:u,m=this.props.nodeRef?[d]:[wu.findDOMNode(this),d],h=m[0],g=m[1],y=this.getTimeouts(),v=d?y.appear:y.enter;if(!u&&!f||Xy.disabled){this.safeSetState({status:ua},function(){s.props.onEntered(h)});return}this.props.onEnter(h,g),this.safeSetState({status:bi},function(){s.props.onEntering(h,g),s.onTransitionEnd(v,function(){s.safeSetState({status:ua},function(){s.props.onEntered(h,g)})})})},a.performExit=function(){var u=this,s=this.props.exit,f=this.getTimeouts(),d=this.props.nodeRef?void 0:wu.findDOMNode(this);if(!s||Xy.disabled){this.safeSetState({status:yi},function(){u.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:Of},function(){u.props.onExiting(d),u.onTransitionEnd(f.exit,function(){u.safeSetState({status:yi},function(){u.props.onExited(d)})})})},a.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(u,s){s=this.setNextCallback(s),this.setState(u,s)},a.setNextCallback=function(u){var s=this,f=!0;return this.nextCallback=function(d){f&&(f=!1,s.nextCallback=null,u(d))},this.nextCallback.cancel=function(){f=!1},this.nextCallback},a.onTransitionEnd=function(u,s){this.setNextCallback(s);var f=this.props.nodeRef?this.props.nodeRef.current:wu.findDOMNode(this),d=u==null&&!this.props.addEndListener;if(!f||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var m=this.props.nodeRef?[this.nextCallback]:[f,this.nextCallback],h=m[0],g=m[1];this.props.addEndListener(h,g)}u!=null&&setTimeout(this.nextCallback,u)},a.render=function(){var u=this.state.status;if(u===Ul)return null;var s=this.props,f=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 d=Yy(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return dt.createElement(Au.Provider,{value:null},typeof f=="function"?f(u,d):dt.cloneElement(dt.Children.only(f),d))},r}(dt.Component);ur.contextType=Au,ur.propTypes={};function sa(){}ur.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:sa,onEntering:sa,onEntered:sa,onExit:sa,onExiting:sa,onExited:sa},ur.UNMOUNTED=Ul,ur.EXITED=yi,ur.ENTERING=bi,ur.ENTERED=ua,ur.EXITING=Of;function G5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mf(e,r){var a=function(s){return r&&M.isValidElement(s)?r(s):s},l=Object.create(null);return e&&M.Children.map(e,function(u){return u}).forEach(function(u){l[u.key]=a(u)}),l}function Y5(e,r){e=e||{},r=r||{};function a(g){return g in r?r[g]:e[g]}var l=Object.create(null),u=[];for(var s in e)s in r?u.length&&(l[s]=u,u=[]):u.push(s);var f,d={};for(var m in r){if(l[m])for(f=0;f<l[m].length;f++){var h=l[m][f];d[l[m][f]]=a(h)}d[m]=a(m)}for(f=0;f<u.length;f++)d[u[f]]=a(u[f]);return d}function Si(e,r,a){return a[r]!=null?a[r]:e.props[r]}function F5(e,r){return Mf(e.children,function(a){return M.cloneElement(a,{onExited:r.bind(null,a),in:!0,appear:Si(a,"appear",e),enter:Si(a,"enter",e),exit:Si(a,"exit",e)})})}function P5(e,r,a){var l=Mf(e.children),u=Y5(r,l);return Object.keys(u).forEach(function(s){var f=u[s];if(M.isValidElement(f)){var d=s in r,m=s in l,h=r[s],g=M.isValidElement(h)&&!h.props.in;m&&(!d||g)?u[s]=M.cloneElement(f,{onExited:a.bind(null,f),in:!0,exit:Si(f,"exit",e),enter:Si(f,"enter",e)}):!m&&d&&!g?u[s]=M.cloneElement(f,{in:!1}):m&&d&&M.isValidElement(h)&&(u[s]=M.cloneElement(f,{onExited:a.bind(null,f),in:h.props.in,exit:Si(f,"exit",e),enter:Si(f,"enter",e)}))}}),u}var X5=Object.values||function(e){return Object.keys(e).map(function(r){return e[r]})},Q5={component:"div",childFactory:function(r){return r}},_f=function(e){Fy(r,e);function r(l,u){var s;s=e.call(this,l,u)||this;var f=s.handleExited.bind(G5(s));return s.state={contextValue:{isMounting:!0},handleExited:f,firstRender:!0},s}var a=r.prototype;return a.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},a.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(u,s){var f=s.children,d=s.handleExited,m=s.firstRender;return{children:m?F5(u,d):P5(u,f,d),firstRender:!1}},a.handleExited=function(u,s){var f=Mf(this.props.children);u.key in f||(u.props.onExited&&u.props.onExited(s),this.mounted&&this.setState(function(d){var m=jo({},d.children);return delete m[u.key],{children:m}}))},a.render=function(){var u=this.props,s=u.component,f=u.childFactory,d=Yy(u,["component","childFactory"]),m=this.state.contextValue,h=X5(this.state.children).map(f);return delete d.appear,delete d.enter,delete d.exit,s===null?dt.createElement(Au.Provider,{value:m},h):dt.createElement(Au.Provider,{value:m},dt.createElement(s,d,h))},r}(dt.Component);_f.propTypes={},_f.defaultProps=Q5;function K5(e){const{className:r,classes:a,pulsate:l=!1,rippleX:u,rippleY:s,rippleSize:f,in:d,onExited:m,timeout:h}=e,[g,y]=M.useState(!1),v=ot(r,a.ripple,a.rippleVisible,l&&a.ripplePulsate),S={width:f,height:f,top:-(f/2)+s,left:-(f/2)+u},A=ot(a.child,g&&a.childLeaving,l&&a.childPulsate);return!d&&!g&&y(!0),M.useEffect(()=>{if(!d&&m!=null){const T=setTimeout(m,h);return()=>{clearTimeout(T)}}},[m,d,h]),ce.jsx("span",{className:v,style:S,children:ce.jsx("span",{className:A})})}const Mn=Yn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Df=550,Z5=80,W5=tc`
|
|
126
126
|
0% {
|
|
127
127
|
transform: scale(0);
|
|
128
128
|
opacity: 0.1;
|
|
@@ -132,7 +132,7 @@ Error message: ${Bm(l)}`,cause:l}),this[Ym]=!0,this.value=r}static isInstance(r)
|
|
|
132
132
|
transform: scale(1);
|
|
133
133
|
opacity: 0.3;
|
|
134
134
|
}
|
|
135
|
-
`,
|
|
135
|
+
`,J5=tc`
|
|
136
136
|
0% {
|
|
137
137
|
opacity: 1;
|
|
138
138
|
}
|
|
@@ -140,7 +140,7 @@ Error message: ${Bm(l)}`,cause:l}),this[Ym]=!0,this.value=r}static isInstance(r)
|
|
|
140
140
|
100% {
|
|
141
141
|
opacity: 0;
|
|
142
142
|
}
|
|
143
|
-
`,
|
|
143
|
+
`,eR=tc`
|
|
144
144
|
0% {
|
|
145
145
|
transform: scale(1);
|
|
146
146
|
}
|
|
@@ -152,23 +152,23 @@ Error message: ${Bm(l)}`,cause:l}),this[Ym]=!0,this.value=r}static isInstance(r)
|
|
|
152
152
|
100% {
|
|
153
153
|
transform: scale(1);
|
|
154
154
|
}
|
|
155
|
-
`,
|
|
155
|
+
`,tR=Bt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),nR=Bt(K5,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
156
156
|
opacity: 0;
|
|
157
157
|
position: absolute;
|
|
158
158
|
|
|
159
|
-
&.${
|
|
159
|
+
&.${Mn.rippleVisible} {
|
|
160
160
|
opacity: 0.3;
|
|
161
161
|
transform: scale(1);
|
|
162
|
-
animation-name: ${
|
|
163
|
-
animation-duration: ${
|
|
162
|
+
animation-name: ${W5};
|
|
163
|
+
animation-duration: ${Df}ms;
|
|
164
164
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
&.${
|
|
167
|
+
&.${Mn.ripplePulsate} {
|
|
168
168
|
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
& .${
|
|
171
|
+
& .${Mn.child} {
|
|
172
172
|
opacity: 1;
|
|
173
173
|
display: block;
|
|
174
174
|
width: 100%;
|
|
@@ -177,22 +177,22 @@ Error message: ${Bm(l)}`,cause:l}),this[Ym]=!0,this.value=r}static isInstance(r)
|
|
|
177
177
|
background-color: currentColor;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
& .${
|
|
180
|
+
& .${Mn.childLeaving} {
|
|
181
181
|
opacity: 0;
|
|
182
|
-
animation-name: ${
|
|
183
|
-
animation-duration: ${
|
|
182
|
+
animation-name: ${J5};
|
|
183
|
+
animation-duration: ${Df}ms;
|
|
184
184
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
& .${
|
|
187
|
+
& .${Mn.childPulsate} {
|
|
188
188
|
position: absolute;
|
|
189
189
|
/* @noflip */
|
|
190
190
|
left: 0px;
|
|
191
191
|
top: 0;
|
|
192
|
-
animation-name: ${
|
|
192
|
+
animation-name: ${eR};
|
|
193
193
|
animation-duration: 2500ms;
|
|
194
194
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
195
195
|
animation-iteration-count: infinite;
|
|
196
196
|
animation-delay: 200ms;
|
|
197
197
|
}
|
|
198
|
-
`,JR=M.forwardRef(function(r,l){const a=Yn({props:r,name:"MuiTouchRipple"}),{center:u=!1,classes:s={},className:f,...d}=a,[m,h]=M.useState([]),g=M.useRef(0),y=M.useRef(null);M.useEffect(()=>{y.current&&(y.current(),y.current=null)},[m]);const v=M.useRef(!1),S=Uv(),R=M.useRef(null),T=M.useRef(null),N=M.useCallback(z=>{const{pulsate:A,rippleX:_,rippleY:H,rippleSize:ne,cb:V}=z;h(E=>[...E,ce.jsx(WR,{classes:{ripple:at(s.ripple,Rn.ripple),rippleVisible:at(s.rippleVisible,Rn.rippleVisible),ripplePulsate:at(s.ripplePulsate,Rn.ripplePulsate),child:at(s.child,Rn.child),childLeaving:at(s.childLeaving,Rn.childLeaving),childPulsate:at(s.childPulsate,Rn.childPulsate)},timeout:Of,pulsate:A,rippleX:_,rippleY:H,rippleSize:ne},g.current)]),g.current+=1,y.current=V},[s]),w=M.useCallback((z={},A={},_=()=>{})=>{const{pulsate:H=!1,center:ne=u||A.pulsate,fakeElement:V=!1}=A;if((z==null?void 0:z.type)==="mousedown"&&v.current){v.current=!1;return}(z==null?void 0:z.type)==="touchstart"&&(v.current=!0);const E=V?null:T.current,I=E?E.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Y,F,P;if(ne||z===void 0||z.clientX===0&&z.clientY===0||!z.clientX&&!z.touches)Y=Math.round(I.width/2),F=Math.round(I.height/2);else{const{clientX:ee,clientY:$}=z.touches&&z.touches.length>0?z.touches[0]:z;Y=Math.round(ee-I.left),F=Math.round($-I.top)}if(ne)P=Math.sqrt((2*I.width**2+I.height**2)/3),P%2===0&&(P+=1);else{const ee=Math.max(Math.abs((E?E.clientWidth:0)-Y),Y)*2+2,$=Math.max(Math.abs((E?E.clientHeight:0)-F),F)*2+2;P=Math.sqrt(ee**2+$**2)}z!=null&&z.touches?R.current===null&&(R.current=()=>{N({pulsate:H,rippleX:Y,rippleY:F,rippleSize:P,cb:_})},S.start(PR,()=>{R.current&&(R.current(),R.current=null)})):N({pulsate:H,rippleX:Y,rippleY:F,rippleSize:P,cb:_})},[u,N,S]),B=M.useCallback(()=>{w({},{pulsate:!0})},[w]),k=M.useCallback((z,A)=>{if(S.clear(),(z==null?void 0:z.type)==="touchend"&&R.current){R.current(),R.current=null,S.start(0,()=>{k(z,A)});return}R.current=null,h(_=>_.length>0?_.slice(1):_),y.current=A},[S]);return M.useImperativeHandle(l,()=>({pulsate:B,start:w,stop:k}),[B,w,k]),ce.jsx(ZR,{className:at(Rn.root,s.root,f),ref:T,...d,children:ce.jsx(Rf,{component:null,exit:!0,children:m})})});function e5(e){return qn("MuiButtonBase",e)}const t5=$n("MuiButtonBase",["root","disabled","focusVisible"]),n5=e=>{const{disabled:r,focusVisible:l,focusVisibleClassName:a,classes:u}=e,f=er({root:["root",r&&"disabled",l&&"focusVisible"]},e5,u);return l&&a&&(f.root+=` ${a}`),f},r5=zt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,r)=>r.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"},[`&.${t5.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),i5=M.forwardRef(function(r,l){const a=Yn({props:r,name:"MuiButtonBase"}),{action:u,centerRipple:s=!1,children:f,className:d,component:m="button",disabled:h=!1,disableRipple:g=!1,disableTouchRipple:y=!1,focusRipple:v=!1,focusVisibleClassName:S,LinkComponent:R="a",onBlur:T,onClick:N,onContextMenu:w,onDragLeave:B,onFocus:k,onFocusVisible:z,onKeyDown:A,onKeyUp:_,onMouseDown:H,onMouseLeave:ne,onMouseUp:V,onTouchEnd:E,onTouchMove:I,onTouchStart:Y,tabIndex:F=0,TouchRippleProps:P,touchRippleRef:ee,type:$,...Z}=a,Q=M.useRef(null),ue=UR(),x=Vn(ue.ref,ee),[K,se]=M.useState(!1);h&&K&&se(!1),M.useImperativeHandle(u,()=>({focusVisible:()=>{se(!0),Q.current.focus()}}),[]);const O=ue.shouldMount&&!g&&!h;M.useEffect(()=>{K&&v&&!g&&ue.pulsate()},[g,v,K,ue]);function ie(xe,ze,Rt=y){return $i(X=>(ze&&ze(X),Rt||ue[xe](X),!0))}const ye=ie("start",H),he=ie("stop",w),Be=ie("stop",B),Ce=ie("stop",V),ke=ie("stop",xe=>{K&&xe.preventDefault(),ne&&ne(xe)}),pe=ie("start",Y),De=ie("stop",E),me=ie("stop",I),ge=ie("stop",xe=>{wh(xe.target)||se(!1),T&&T(xe)},!1),fe=$i(xe=>{Q.current||(Q.current=xe.currentTarget),wh(xe.target)&&(se(!0),z&&z(xe)),k&&k(xe)}),Ee=()=>{const xe=Q.current;return m&&m!=="button"&&!(xe.tagName==="A"&&xe.href)},qe=$i(xe=>{v&&!xe.repeat&&K&&xe.key===" "&&ue.stop(xe,()=>{ue.start(xe)}),xe.target===xe.currentTarget&&Ee()&&xe.key===" "&&xe.preventDefault(),A&&A(xe),xe.target===xe.currentTarget&&Ee()&&xe.key==="Enter"&&!h&&(xe.preventDefault(),N&&N(xe))}),Le=$i(xe=>{v&&xe.key===" "&&K&&!xe.defaultPrevented&&ue.stop(xe,()=>{ue.pulsate(xe)}),_&&_(xe),N&&xe.target===xe.currentTarget&&Ee()&&xe.key===" "&&!xe.defaultPrevented&&N(xe)});let Oe=m;Oe==="button"&&(Z.href||Z.to)&&(Oe=R);const Pe={};Oe==="button"?(Pe.type=$===void 0?"button":$,Pe.disabled=h):(!Z.href&&!Z.to&&(Pe.role="button"),h&&(Pe["aria-disabled"]=h));const ht=Vn(l,Q),Qt={...a,centerRipple:s,component:m,disabled:h,disableRipple:g,disableTouchRipple:y,focusRipple:v,tabIndex:F,focusVisible:K},gn=n5(Qt);return ce.jsxs(r5,{as:Oe,className:at(gn.root,d),ownerState:Qt,onBlur:ge,onClick:N,onContextMenu:he,onFocus:fe,onKeyDown:qe,onKeyUp:Le,onMouseDown:ye,onMouseLeave:ke,onMouseUp:Ce,onDragLeave:Be,onTouchEnd:De,onTouchMove:me,onTouchStart:pe,ref:ht,tabIndex:h?-1:F,type:$,...Pe,...Z,children:[f,O?ce.jsx(JR,{ref:x,center:s,...P}):null]})});function l5(e){return qn("MuiIconButton",e)}const a5=$n("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),o5=e=>{const{classes:r,disabled:l,color:a,edge:u,size:s}=e,f={root:["root",l&&"disabled",a!=="default"&&`color${dt(a)}`,u&&`edge${dt(u)}`,`size${dt(s)}`]};return er(f,l5,r)},u5=zt(i5,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:l}=e;return[r.root,l.color!=="default"&&r[`color${dt(l.color)}`],l.edge&&r[`edge${dt(l.edge)}`],r[`size${dt(l.size)}`]]}})(Gn(({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:r=>!r.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ea(e.palette.action.active,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}}]})),Gn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(nl()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(e.palette).filter(nl()).map(([r])=>({props:{color:r},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ea((e.vars||e).palette[r].main,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)}}],[`&.${a5.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),s5=M.forwardRef(function(r,l){const a=Yn({props:r,name:"MuiIconButton"}),{edge:u=!1,children:s,className:f,color:d="default",disabled:m=!1,disableFocusRipple:h=!1,size:g="medium",...y}=a,v={...a,edge:u,color:d,disabled:m,disableFocusRipple:h,size:g},S=o5(v);return ce.jsx(u5,{className:at(S.root,f),centerRipple:!0,focusRipple:!h,disabled:m,ref:l,...y,ownerState:v,children:s})});function c5(e){return qn("MuiSvgIcon",e)}$n("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const f5=e=>{const{color:r,fontSize:l,classes:a}=e,u={root:["root",r!=="inherit"&&`color${dt(r)}`,`fontSize${dt(l)}`]};return er(u,c5,a)},d5=zt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:l}=e;return[r.root,l.color!=="inherit"&&r[`color${dt(l.color)}`],r[`fontSize${dt(l.fontSize)}`]]}})(Gn(({theme:e})=>{var r,l,a,u,s,f,d,m,h,g,y,v,S,R;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(u=(r=e.transitions)==null?void 0:r.create)==null?void 0:u.call(r,"fill",{duration:(a=(l=(e.vars??e).transitions)==null?void 0:l.duration)==null?void 0:a.shorter}),variants:[{props:T=>!T.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((f=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:f.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((m=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:m.call(d,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((g=(h=e.typography)==null?void 0:h.pxToRem)==null?void 0:g.call(h,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,T])=>T&&T.main).map(([T])=>{var N,w;return{props:{color:T},style:{color:(w=(N=(e.vars??e).palette)==null?void 0:N[T])==null?void 0:w.main}}}),{props:{color:"action"},style:{color:(v=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:v.active}},{props:{color:"disabled"},style:{color:(R=(S=(e.vars??e).palette)==null?void 0:S.action)==null?void 0:R.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Tu=M.forwardRef(function(r,l){const a=Yn({props:r,name:"MuiSvgIcon"}),{children:u,className:s,color:f="inherit",component:d="svg",fontSize:m="medium",htmlColor:h,inheritViewBox:g=!1,titleAccess:y,viewBox:v="0 0 24 24",...S}=a,R=M.isValidElement(u)&&u.type==="svg",T={...a,color:f,component:d,fontSize:m,instanceFontSize:r.fontSize,inheritViewBox:g,viewBox:v,hasSvgAsChild:R},N={};g||(N.viewBox=v);const w=f5(T);return ce.jsxs(d5,{as:d,className:at(w.root,s),focusable:"false",color:h,"aria-hidden":y?void 0:!0,role:y?"img":void 0,ref:l,...N,...S,...R&&u.props,ownerState:T,children:[R?u.props.children:u,y?ce.jsx("title",{children:y}):null]})});Tu&&(Tu.muiName="SvgIcon");function Na(e,r){function l(a,u){return ce.jsx(Tu,{"data-testid":`${r}Icon`,ref:u,...a,children:e})}return l.muiName=Tu.muiName,M.memo(M.forwardRef(l))}const p5=Na(ce.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),h5=Na(ce.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),m5=Na(ce.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),g5=Na(ce.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),y5=Na(ce.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),b5=e=>{const{variant:r,color:l,severity:a,classes:u}=e,s={root:["root",`color${dt(l||a)}`,`${r}${dt(l||a)}`,`${r}`],icon:["icon"],message:["message"],action:["action"]};return er(s,LR,u)},S5=zt(By,{name:"MuiAlert",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:l}=e;return[r.root,r[l.variant],r[`${l.variant}${dt(l.color||l.severity)}`]]}})(Gn(({theme:e})=>{const r=e.palette.mode==="light"?ta:na,l=e.palette.mode==="light"?na:ta;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(nl(["light"])).map(([a])=>({props:{colorSeverity:a,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${a}Color`]:r(e.palette[a].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${a}StandardBg`]:l(e.palette[a].light,.9),[`& .${Ly.icon}`]:e.vars?{color:e.vars.palette.Alert[`${a}IconColor`]}:{color:e.palette[a].main}}})),...Object.entries(e.palette).filter(nl(["light"])).map(([a])=>({props:{colorSeverity:a,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${a}Color`]:r(e.palette[a].light,.6),border:`1px solid ${(e.vars||e).palette[a].light}`,[`& .${Ly.icon}`]:e.vars?{color:e.vars.palette.Alert[`${a}IconColor`]}:{color:e.palette[a].main}}})),...Object.entries(e.palette).filter(nl(["dark"])).map(([a])=>({props:{colorSeverity:a,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${a}FilledColor`],backgroundColor:e.vars.palette.Alert[`${a}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[a].dark:e.palette[a].main,color:e.palette.getContrastText(e.palette[a].main)}}}))]}})),v5=zt("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,r)=>r.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),x5=zt("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,r)=>r.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Vy=zt("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,r)=>r.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),qy={success:ce.jsx(p5,{fontSize:"inherit"}),warning:ce.jsx(h5,{fontSize:"inherit"}),error:ce.jsx(m5,{fontSize:"inherit"}),info:ce.jsx(g5,{fontSize:"inherit"})},E5=M.forwardRef(function(r,l){const a=Yn({props:r,name:"MuiAlert"}),{action:u,children:s,className:f,closeText:d="Close",color:m,components:h={},componentsProps:g={},icon:y,iconMapping:v=qy,onClose:S,role:R="alert",severity:T="success",slotProps:N={},slots:w={},variant:B="standard",...k}=a,z={...a,color:m,severity:T,variant:B,colorSeverity:m||T},A=b5(z),_={slots:{closeButton:h.CloseButton,closeIcon:h.CloseIcon,...w},slotProps:{...g,...N}},[H,ne]=rl("closeButton",{elementType:s5,externalForwardedProps:_,ownerState:z}),[V,E]=rl("closeIcon",{elementType:y5,externalForwardedProps:_,ownerState:z});return ce.jsxs(S5,{role:R,elevation:0,ownerState:z,className:at(A.root,f),ref:l,...k,children:[y!==!1?ce.jsx(v5,{ownerState:z,className:A.icon,children:y||v[T]||qy[T]}):null,ce.jsx(x5,{ownerState:z,className:A.message,children:s}),u!=null?ce.jsx(Vy,{ownerState:z,className:A.action,children:u}):null,u==null&&S?ce.jsx(Vy,{ownerState:z,className:A.action,children:ce.jsx(H,{size:"small","aria-label":d,title:d,color:"inherit",onClick:S,...ne,children:ce.jsx(V,{fontSize:"small",...E})})}):null]})}),$y=(e,r)=>({info:e.custom.colors.blue,success:e.custom.colors.green,warning:e.custom.colors.orange,error:e.custom.colors.lightRed})[r],C5=et(E5)(({theme:e,severity:r})=>({padding:"11px 16px",borderRadius:4,borderWidth:2,borderStyle:"solid",borderColor:$y(e,r),background:"#FFF",".MuiAlert-message":{...e.typography.body2,color:e.custom.colors.darkGray2,alignSelf:"center"},"> div":{paddingTop:0,paddingBottom:0},".MuiAlert-icon":{marginRight:8,svg:{width:16,fill:$y(e,r)}},button:{padding:0,":hover":{margin:0,background:"none"}}})),T5=et.span({display:"none"}),w5=({visible:e=!0,severity:r="info",closable:l,children:a,className:u})=>{const[s,f]=M.useState(e),d=M.useId(),m=()=>{f(!1)};return M.useEffect(()=>{f(e)},[e]),s?M.createElement(C5,{severity:r,onClose:l?m:void 0,role:"alert","aria-describedby":d,className:u},a,M.createElement(T5,{id:d},r," message")):null},Wt={root:"MitAiChat--root",title:"MitAiChat--title",conversationStarter:"MitAiChat--conversationStarter",messagesContainer:"MitAiChat--messagesContainer",messageRow:"MitAiChat--messageRow",messageRowUser:"MitAiChat--messageRowUser",messageRowAssistant:"MitAiChat--messageRowAssistant",message:"MitAiChat--message",input:"MitAiChat--input",bottomSection:"MitAiChat--bottomSection"},A5=et.div({width:"100%",height:"100%",display:"flex",flexDirection:"column"}),k5=et(Tc)(({theme:e})=>({"&&:hover":{backgroundColor:e.custom.colors.red,color:e.custom.colors.white}})),R5=et.div(({theme:e})=>({display:"flex",alignItems:"center",gap:"8px",color:e.custom.colors.darkGray2,img:{width:"24px",height:"24px"},svg:{fill:e.custom.colors.red,width:"24px",height:"24px"}})),O5=et(CR)({display:"flex",flexDirection:"column",flex:1,padding:"14px 0",overflow:"auto",gap:"16px"}),Gy=et.div({display:"flex",width:"100%",gap:"10px",[`&.${Wt.messageRowUser}`]:{flexDirection:"row-reverse"},"> *":{minWidth:0},position:"relative"}),Yy=et.div(({theme:e})=>({color:e.custom.colors.darkGray2,backgroundColor:e.custom.colors.white,padding:"12px 16px",...e.typography.body2,"p:first-of-type":{marginTop:0},"p:last-of-type":{marginBottom:0},"ol, ul":{paddingInlineStart:"32px",li:{margin:"16px 0"}},ul:{marginInlineStart:"-16px"},a:{color:e.custom.colors.red,fontWeight:"normal"},borderRadius:"12px",[`.${Wt.messageRowAssistant} &`]:{padding:"12px 16px 12px 0"},[`.${Wt.messageRowUser} &`]:{borderRadius:"8px 0px 8px 8px",backgroundColor:e.custom.colors.lightGray1}})),M5=et.div({alignSelf:"flex-end",alignItems:"end",display:"flex",flexDirection:"column",gap:"12px"}),_5=et.button(({theme:e})=>({border:`1px solid ${e.custom.colors.lightGray2}`,backgroundColor:e.custom.colors.white,padding:"8px 16px",...e.typography.body3,cursor:"pointer",boxSizing:"border-box","&:hover":{color:e.custom.colors.white,backgroundColor:e.custom.colors.silverGrayDark,borderColor:"transparent"},borderRadius:"8px"})),D5=et(F2)({width:"40px",height:"40px"}),z5=et($2)(({theme:e})=>({fill:e.custom.colors.red})),N5=et(G2)(({theme:e})=>({fill:e.custom.colors.red})),B5=et.div({paddingTop:"12px"}),L5=et(Tf)(({theme:e})=>({color:e.custom.colors.silverGrayDark,marginTop:"14px",textAlign:"center"})),U5=et(({title:e,askTimTitle:r,onClose:l,className:a})=>M.createElement("div",{className:a},r?M.createElement(R5,null,M.createElement(Y2,null),M.createElement(Tf,{variant:"body1"},"Ask",M.createElement("strong",null,"TIM")," ",r)):null,e?M.createElement(M.Fragment,null,M.createElement(D5,null),M.createElement(Tf,{flex:1,variant:"h5"},e)):null,l?M.createElement(k5,{variant:"tertiary",edge:"rounded",onClick:l,"aria-label":"Close chat"},M.createElement(Dm,null)):null))(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 0",gap:"16px",color:e.custom.colors.white,borderRadius:"8px 8px 0 0"})),j5=function({chatId:r,className:l,conversationStarters:a,requestOpts:u,initialMessages:s,parseContent:f,srLoadingMessages:d,title:m,askTimTitle:h,onClose:g,ImgComponent:y,placeholder:v="",ref:S,...R}){var ee,$;const T=M.useRef(null),N=M.useMemo(()=>{const Z=Math.random().toString().slice(2);return s.map((Q,ue)=>({...Q,id:`initial-${Z}-${ue}`}))},[s]),{messages:w,input:B,handleInputChange:k,handleSubmit:z,append:A,isLoading:_,stop:H,error:ne}=cT(u,{initialMessages:N,id:r});M.useImperativeHandle(S,()=>({append:A}),[A]);const V=M.useMemo(()=>{const Z=N.map(Q=>Q.id);return w.map(Q=>{if(Q.role==="assistant"&&!Z.includes(Q.id)){const ue=f?f(Q.content):Q.content;return{...Q,content:ue}}return Q})},[f,w,N]),E=V.length===N.length,I=!E&&!ne&&((ee=V[V.length-1])==null?void 0:ee.role)==="user",Y=_&&(($=V[V.length-1])==null?void 0:$.role)!=="user",F=()=>{var Z;(Z=T.current)==null||Z.scrollBy({behavior:"instant",top:T.current.scrollHeight})},P=V[V.length-1];return M.createElement(A5,{className:aa(l,Wt.root),...R},M.createElement(U5,{title:m,askTimTitle:h,onClose:g,className:aa(l,Wt.title)}),M.createElement(O5,{className:Wt.messagesContainer,ref:T},V.map(Z=>M.createElement(Gy,{key:Z.id,"data-chat-role":Z.role,className:aa(Wt.messageRow,{[Wt.messageRowUser]:Z.role==="user",[Wt.messageRowAssistant]:Z.role==="assistant"})},M.createElement(Yy,{className:Wt.message},M.createElement(zy,null,Z.role==="user"?"You said: ":"Assistant said: "),M.createElement(bR,{skipHtml:!0},Z.content)))),E?M.createElement(M5,null,a==null?void 0:a.map(Z=>M.createElement(_5,{className:Wt.conversationStarter,key:Z.content,onClick:()=>{F(),A({role:"user",content:Z.content})}},Z.content))):null,I?M.createElement(Gy,{className:aa(Wt.messageRow,Wt.messageRowAssistant),key:"loading"},M.createElement(Yy,null,M.createElement(q2,null))):null,ne?M.createElement(w5,{severity:"error",closable:!0},"An unexpected error has occurred."):null),M.createElement(B5,{className:Wt.bottomSection},M.createElement("form",{onSubmit:Z=>{Z.preventDefault(),_&&Y?H():(F(),z(Z))}},M.createElement(O2,{fullWidth:!0,size:"chat",className:Wt.input,placeholder:v,name:"message",sx:{flex:1},value:B,onChange:k,endAdornment:_?M.createElement(Sm,{"aria-label":"Stop",onClick:H,disabled:!Y},M.createElement(N5,null)):M.createElement(Sm,{"aria-label":"Send",type:"submit",onClick:Z=>{F(),z(Z)}},M.createElement(z5,null))})),M.createElement(L5,{variant:"body3"},"AI-generated content may be incorrect.")),M.createElement(wR,{isLoading:_,loadingMessages:d,message:P.role==="assistant"?P.content:""}))},H5=e=>M.createElement(j5,{key:e.chatId,...e});function I5(e){const r=si(e);return r.body===e?Br(e).innerWidth>r.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ba(e,r){r?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Fy(e){return parseInt(Br(e).getComputedStyle(e).paddingRight,10)||0}function V5(e){const l=["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 l||a}function Py(e,r,l,a,u){const s=[r,l,...a];[].forEach.call(e.children,f=>{const d=!s.includes(f),m=!V5(f);d&&m&&Ba(f,u)})}function Mf(e,r){let l=-1;return e.some((a,u)=>r(a)?(l=u,!0):!1),l}function q5(e,r){const l=[],a=e.container;if(!r.disableScrollLock){if(I5(a)){const f=jv(Br(a));l.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${Fy(a)+f}px`;const d=si(a).querySelectorAll(".mui-fixed");[].forEach.call(d,m=>{l.push({value:m.style.paddingRight,property:"padding-right",el:m}),m.style.paddingRight=`${Fy(m)+f}px`})}let s;if(a.parentNode instanceof DocumentFragment)s=si(a).body;else{const f=a.parentElement,d=Br(a);s=(f==null?void 0:f.nodeName)==="HTML"&&d.getComputedStyle(f).overflowY==="scroll"?f:a}l.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()=>{l.forEach(({value:s,el:f,property:d})=>{s?f.style.setProperty(d,s):f.style.removeProperty(d)})}}function $5(e){const r=[];return[].forEach.call(e.children,l=>{l.getAttribute("aria-hidden")==="true"&&r.push(l)}),r}class G5{constructor(){this.modals=[],this.containers=[]}add(r,l){let a=this.modals.indexOf(r);if(a!==-1)return a;a=this.modals.length,this.modals.push(r),r.modalRef&&Ba(r.modalRef,!1);const u=$5(l);Py(l,r.mount,r.modalRef,u,!0);const s=Mf(this.containers,f=>f.container===l);return s!==-1?(this.containers[s].modals.push(r),a):(this.containers.push({modals:[r],container:l,restore:null,hiddenSiblings:u}),a)}mount(r,l){const a=Mf(this.containers,s=>s.modals.includes(r)),u=this.containers[a];u.restore||(u.restore=q5(u,l))}remove(r,l=!0){const a=this.modals.indexOf(r);if(a===-1)return a;const u=Mf(this.containers,f=>f.modals.includes(r)),s=this.containers[u];if(s.modals.splice(s.modals.indexOf(r),1),this.modals.splice(a,1),s.modals.length===0)s.restore&&s.restore(),r.modalRef&&Ba(r.modalRef,l),Py(s.container,r.mount,r.modalRef,s.hiddenSiblings,!1),this.containers.splice(u,1);else{const f=s.modals[s.modals.length-1];f.modalRef&&Ba(f.modalRef,!1)}return a}isTopModal(r){return this.modals.length>0&&this.modals[this.modals.length-1]===r}}const Y5=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function F5(e){const r=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(r)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:r}function P5(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const r=a=>e.ownerDocument.querySelector(`input[type="radio"]${a}`);let l=r(`[name="${e.name}"]:checked`);return l||(l=r(`[name="${e.name}"]`)),l!==e}function X5(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||P5(e))}function Q5(e){const r=[],l=[];return Array.from(e.querySelectorAll(Y5)).forEach((a,u)=>{const s=F5(a);s===-1||!X5(a)||(s===0?r.push(a):l.push({documentOrder:u,tabIndex:s,node:a}))}),l.sort((a,u)=>a.tabIndex===u.tabIndex?a.documentOrder-u.documentOrder:a.tabIndex-u.tabIndex).map(a=>a.node).concat(r)}function K5(){return!0}function Z5(e){const{children:r,disableAutoFocus:l=!1,disableEnforceFocus:a=!1,disableRestoreFocus:u=!1,getTabbable:s=Q5,isEnabled:f=K5,open:d}=e,m=M.useRef(!1),h=M.useRef(null),g=M.useRef(null),y=M.useRef(null),v=M.useRef(null),S=M.useRef(!1),R=M.useRef(null),T=Vn(Go(r),R),N=M.useRef(null);M.useEffect(()=>{!d||!R.current||(S.current=!l)},[l,d]),M.useEffect(()=>{if(!d||!R.current)return;const k=si(R.current);return R.current.contains(k.activeElement)||(R.current.hasAttribute("tabIndex")||R.current.setAttribute("tabIndex","-1"),S.current&&R.current.focus()),()=>{u||(y.current&&y.current.focus&&(m.current=!0,y.current.focus()),y.current=null)}},[d]),M.useEffect(()=>{if(!d||!R.current)return;const k=si(R.current),z=H=>{N.current=H,!(a||!f()||H.key!=="Tab")&&k.activeElement===R.current&&H.shiftKey&&(m.current=!0,g.current&&g.current.focus())},A=()=>{var V,E;const H=R.current;if(H===null)return;if(!k.hasFocus()||!f()||m.current){m.current=!1;return}if(H.contains(k.activeElement)||a&&k.activeElement!==h.current&&k.activeElement!==g.current)return;if(k.activeElement!==v.current)v.current=null;else if(v.current!==null)return;if(!S.current)return;let ne=[];if((k.activeElement===h.current||k.activeElement===g.current)&&(ne=s(R.current)),ne.length>0){const I=!!((V=N.current)!=null&&V.shiftKey&&((E=N.current)==null?void 0:E.key)==="Tab"),Y=ne[0],F=ne[ne.length-1];typeof Y!="string"&&typeof F!="string"&&(I?F.focus():Y.focus())}else H.focus()};k.addEventListener("focusin",A),k.addEventListener("keydown",z,!0);const _=setInterval(()=>{k.activeElement&&k.activeElement.tagName==="BODY"&&A()},50);return()=>{clearInterval(_),k.removeEventListener("focusin",A),k.removeEventListener("keydown",z,!0)}},[l,a,u,f,d,s]);const w=k=>{y.current===null&&(y.current=k.relatedTarget),S.current=!0,v.current=k.target;const z=r.props.onFocus;z&&z(k)},B=k=>{y.current===null&&(y.current=k.relatedTarget),S.current=!0};return ce.jsxs(M.Fragment,{children:[ce.jsx("div",{tabIndex:d?0:-1,onFocus:B,ref:h,"data-testid":"sentinelStart"}),M.cloneElement(r,{ref:T,onFocus:w}),ce.jsx("div",{tabIndex:d?0:-1,onFocus:B,ref:g,"data-testid":"sentinelEnd"})]})}function W5(e){return typeof e=="function"?e():e}const J5=M.forwardRef(function(r,l){const{children:a,container:u,disablePortal:s=!1}=r,[f,d]=M.useState(null),m=Vn(M.isValidElement(a)?Go(a):null,l);if(qi(()=>{s||d(W5(u)||document.body)},[u,s]),qi(()=>{if(f&&!s)return Js(l,f),()=>{Js(l,null)}},[l,f,s]),s){if(M.isValidElement(a)){const h={ref:m};return M.cloneElement(a,h)}return ce.jsx(M.Fragment,{children:a})}return ce.jsx(M.Fragment,{children:f&&Hy.createPortal(a,f)})}),Xy=e=>e.scrollTop;function wu(e,r){const{timeout:l,easing:a,style:u={}}=e;return{duration:u.transitionDuration??(typeof l=="number"?l:l[r.mode]||0),easing:u.transitionTimingFunction??(typeof a=="object"?a[r.mode]:a),delay:u.transitionDelay}}const e4={entering:{opacity:1},entered:{opacity:1}},t4=M.forwardRef(function(r,l){const a=lu(),u={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{addEndListener:s,appear:f=!0,children:d,easing:m,in:h,onEnter:g,onEntered:y,onEntering:v,onExit:S,onExited:R,onExiting:T,style:N,timeout:w=u,TransitionComponent:B=ar,...k}=r,z=M.useRef(null),A=Vn(z,Go(d),l),_=P=>ee=>{if(P){const $=z.current;ee===void 0?P($):P($,ee)}},H=_(v),ne=_((P,ee)=>{Xy(P);const $=wu({style:N,timeout:w,easing:m},{mode:"enter"});P.style.webkitTransition=a.transitions.create("opacity",$),P.style.transition=a.transitions.create("opacity",$),g&&g(P,ee)}),V=_(y),E=_(T),I=_(P=>{const ee=wu({style:N,timeout:w,easing:m},{mode:"exit"});P.style.webkitTransition=a.transitions.create("opacity",ee),P.style.transition=a.transitions.create("opacity",ee),S&&S(P)}),Y=_(R),F=P=>{s&&s(z.current,P)};return ce.jsx(B,{appear:f,in:h,nodeRef:z,onEnter:ne,onEntered:V,onEntering:H,onExit:I,onExited:Y,onExiting:E,addEndListener:F,timeout:w,...k,children:(P,ee)=>M.cloneElement(d,{style:{opacity:0,visibility:P==="exited"&&!h?"hidden":void 0,...e4[P],...N,...d.props.style},ref:A,...ee})})});function n4(e){return qn("MuiBackdrop",e)}$n("MuiBackdrop",["root","invisible"]);const r4=e=>{const{ownerState:r,...l}=e;return l},i4=e=>{const{classes:r,invisible:l}=e;return er({root:["root",l&&"invisible"]},n4,r)},l4=zt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:l}=e;return[r.root,l.invisible&&r.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"}}]}),a4=M.forwardRef(function(r,l){const a=Yn({props:r,name:"MuiBackdrop"}),{children:u,className:s,component:f="div",invisible:d=!1,open:m,components:h={},componentsProps:g={},slotProps:y={},slots:v={},TransitionComponent:S,transitionDuration:R,...T}=a,N={...a,component:f,invisible:d},w=i4(N),B={transition:S,root:h.Root,...v},k={...g,...y},z={slots:B,slotProps:k},[A,_]=rl("root",{elementType:l4,externalForwardedProps:z,className:at(w.root,s),ownerState:N}),[H,ne]=rl("transition",{elementType:t4,externalForwardedProps:z,ownerState:N}),V=r4(ne);return ce.jsx(H,{in:m,timeout:R,...T,...V,children:ce.jsx(A,{"aria-hidden":!0,..._,classes:w,ref:l,children:u})})});function o4(e){return typeof e=="function"?e():e}function u4(e){return e?e.props.hasOwnProperty("in"):!1}const Au=new G5;function s4(e){const{container:r,disableEscapeKeyDown:l=!1,disableScrollLock:a=!1,closeAfterTransition:u=!1,onTransitionEnter:s,onTransitionExited:f,children:d,onClose:m,open:h,rootRef:g}=e,y=M.useRef({}),v=M.useRef(null),S=M.useRef(null),R=Vn(S,g),[T,N]=M.useState(!h),w=u4(d);let B=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(B=!1);const k=()=>si(v.current),z=()=>(y.current.modalRef=S.current,y.current.mount=v.current,y.current),A=()=>{Au.mount(z(),{disableScrollLock:a}),S.current&&(S.current.scrollTop=0)},_=$i(()=>{const ee=o4(r)||k().body;Au.add(z(),ee),S.current&&A()}),H=()=>Au.isTopModal(z()),ne=$i(ee=>{v.current=ee,ee&&(h&&H()?A():S.current&&Ba(S.current,B))}),V=M.useCallback(()=>{Au.remove(z(),B)},[B]);M.useEffect(()=>()=>{V()},[V]),M.useEffect(()=>{h?_():(!w||!u)&&V()},[h,V,w,u,_]);const E=ee=>$=>{var Z;(Z=ee.onKeyDown)==null||Z.call(ee,$),!($.key!=="Escape"||$.which===229||!H())&&(l||($.stopPropagation(),m&&m($,"escapeKeyDown")))},I=ee=>$=>{var Z;(Z=ee.onClick)==null||Z.call(ee,$),$.target===$.currentTarget&&m&&m($,"backdropClick")};return{getRootProps:(ee={})=>{const $=kh(e);delete $.onTransitionEnter,delete $.onTransitionExited;const Z={...$,...ee};return{role:"presentation",...Z,onKeyDown:E(Z),ref:R}},getBackdropProps:(ee={})=>{const $=ee;return{"aria-hidden":!0,...$,onClick:I($),open:h}},getTransitionProps:()=>{const ee=()=>{N(!1),s&&s()},$=()=>{N(!0),f&&f(),u&&V()};return{onEnter:xh(ee,d==null?void 0:d.props.onEnter),onExited:xh($,d==null?void 0:d.props.onExited)}},rootRef:R,portalRef:ne,isTopModal:H,exited:T,hasTransition:w}}function c4(e){return qn("MuiModal",e)}$n("MuiModal",["root","hidden","backdrop"]);const f4=e=>{const{open:r,exited:l,classes:a}=e;return er({root:["root",!r&&l&&"hidden"],backdrop:["backdrop"]},c4,a)},d4=zt("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:l}=e;return[r.root,!l.open&&l.exited&&r.hidden]}})(Gn(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:r})=>!r.open&&r.exited,style:{visibility:"hidden"}}]}))),p4=zt(a4,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,r)=>r.backdrop})({zIndex:-1}),h4=M.forwardRef(function(r,l){const a=Yn({name:"MuiModal",props:r}),{BackdropComponent:u=p4,BackdropProps:s,classes:f,className:d,closeAfterTransition:m=!1,children:h,container:g,component:y,components:v={},componentsProps:S={},disableAutoFocus:R=!1,disableEnforceFocus:T=!1,disableEscapeKeyDown:N=!1,disablePortal:w=!1,disableRestoreFocus:B=!1,disableScrollLock:k=!1,hideBackdrop:z=!1,keepMounted:A=!1,onBackdropClick:_,onClose:H,onTransitionEnter:ne,onTransitionExited:V,open:E,slotProps:I={},slots:Y={},theme:F,...P}=a,ee={...a,closeAfterTransition:m,disableAutoFocus:R,disableEnforceFocus:T,disableEscapeKeyDown:N,disablePortal:w,disableRestoreFocus:B,disableScrollLock:k,hideBackdrop:z,keepMounted:A},{getRootProps:$,getBackdropProps:Z,getTransitionProps:Q,portalRef:ue,isTopModal:x,exited:K,hasTransition:se}=s4({...ee,rootRef:l}),O={...ee,exited:K},ie=f4(O),ye={};if(h.props.tabIndex===void 0&&(ye.tabIndex="-1"),se){const{onEnter:me,onExited:ge}=Q();ye.onEnter=me,ye.onExited=ge}const he={...P,slots:{root:v.Root,backdrop:v.Backdrop,...Y},slotProps:{...S,...I}},[Be,Ce]=rl("root",{elementType:d4,externalForwardedProps:he,getSlotProps:$,additionalProps:{ref:l,as:y},ownerState:O,className:at(d,ie==null?void 0:ie.root,!O.open&&O.exited&&(ie==null?void 0:ie.hidden))}),[ke,pe]=rl("backdrop",{elementType:u,externalForwardedProps:he,additionalProps:s,getSlotProps:me=>Z({...me,onClick:ge=>{_&&_(ge),me!=null&&me.onClick&&me.onClick(ge)}}),className:at(s==null?void 0:s.className,ie==null?void 0:ie.backdrop),ownerState:O}),De=Vn(s==null?void 0:s.ref,pe.ref);return!A&&!E&&(!se||K)?null:ce.jsx(J5,{ref:ue,container:g,disablePortal:w,children:ce.jsxs(Be,{...Ce,children:[!z&&u?ce.jsx(ke,{...pe,ref:De}):null,ce.jsx(Z5,{disableEnforceFocus:T,disableAutoFocus:R,disableRestoreFocus:B,isEnabled:x,open:E,children:M.cloneElement(h,ye)})]})})});function m4(e,r,l){const a=r.getBoundingClientRect(),u=l&&l.getBoundingClientRect(),s=Br(r);let f;if(r.fakeTransform)f=r.fakeTransform;else{const h=s.getComputedStyle(r);f=h.getPropertyValue("-webkit-transform")||h.getPropertyValue("transform")}let d=0,m=0;if(f&&f!=="none"&&typeof f=="string"){const h=f.split("(")[1].split(")")[0].split(",");d=parseInt(h[4],10),m=parseInt(h[5],10)}return e==="left"?u?`translateX(${u.right+d-a.left}px)`:`translateX(${s.innerWidth+d-a.left}px)`:e==="right"?u?`translateX(-${a.right-u.left-d}px)`:`translateX(-${a.left+a.width-d}px)`:e==="up"?u?`translateY(${u.bottom+m-a.top}px)`:`translateY(${s.innerHeight+m-a.top}px)`:u?`translateY(-${a.top-u.top+a.height-m}px)`:`translateY(-${a.top+a.height-m}px)`}function g4(e){return typeof e=="function"?e():e}function ku(e,r,l){const a=g4(l),u=m4(e,r,a);u&&(r.style.webkitTransform=u,r.style.transform=u)}const y4=M.forwardRef(function(r,l){const a=lu(),u={enter:a.transitions.easing.easeOut,exit:a.transitions.easing.sharp},s={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{addEndListener:f,appear:d=!0,children:m,container:h,direction:g="down",easing:y=u,in:v,onEnter:S,onEntered:R,onEntering:T,onExit:N,onExited:w,onExiting:B,style:k,timeout:z=s,TransitionComponent:A=ar,..._}=r,H=M.useRef(null),ne=Vn(Go(m),H,l),V=Q=>ue=>{Q&&(ue===void 0?Q(H.current):Q(H.current,ue))},E=V((Q,ue)=>{ku(g,Q,h),Xy(Q),S&&S(Q,ue)}),I=V((Q,ue)=>{const x=wu({timeout:z,style:k,easing:y},{mode:"enter"});Q.style.webkitTransition=a.transitions.create("-webkit-transform",{...x}),Q.style.transition=a.transitions.create("transform",{...x}),Q.style.webkitTransform="none",Q.style.transform="none",T&&T(Q,ue)}),Y=V(R),F=V(B),P=V(Q=>{const ue=wu({timeout:z,style:k,easing:y},{mode:"exit"});Q.style.webkitTransition=a.transitions.create("-webkit-transform",ue),Q.style.transition=a.transitions.create("transform",ue),ku(g,Q,h),N&&N(Q)}),ee=V(Q=>{Q.style.webkitTransition="",Q.style.transition="",w&&w(Q)}),$=Q=>{f&&f(H.current,Q)},Z=M.useCallback(()=>{H.current&&ku(g,H.current,h)},[g,h]);return M.useEffect(()=>{if(v||g==="down"||g==="right")return;const Q=Eh(()=>{H.current&&ku(g,H.current,h)}),ue=Br(H.current);return ue.addEventListener("resize",Q),()=>{Q.clear(),ue.removeEventListener("resize",Q)}},[g,v,h]),M.useEffect(()=>{v||Z()},[v,Z]),ce.jsx(A,{nodeRef:H,onEnter:E,onEntered:Y,onEntering:I,onExit:P,onExited:ee,onExiting:F,addEndListener:$,appear:d,in:v,timeout:z,..._,children:(Q,ue)=>M.cloneElement(m,{ref:ne,style:{visibility:Q==="exited"&&!v?"hidden":void 0,...k,...m.props.style},...ue})})});function b4(e){return qn("MuiDrawer",e)}$n("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Qy=(e,r)=>{const{ownerState:l}=e;return[r.root,(l.variant==="permanent"||l.variant==="persistent")&&r.docked,r.modal]},S4=e=>{const{classes:r,anchor:l,variant:a}=e,u={root:["root"],docked:[(a==="permanent"||a==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${dt(l)}`,a!=="temporary"&&`paperAnchorDocked${dt(l)}`]};return er(u,b4,r)},v4=zt(h4,{name:"MuiDrawer",slot:"Root",overridesResolver:Qy})(Gn(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),Ky=zt("div",{shouldForwardProp:pm,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Qy})({flex:"0 0 auto"}),x4=zt(By,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,r)=>{const{ownerState:l}=e;return[r.paper,r[`paperAnchor${dt(l.anchor)}`],l.variant!=="temporary"&&r[`paperAnchorDocked${dt(l.anchor)}`]]}})(Gn(({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:r})=>r.anchor==="left"&&r.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:r})=>r.anchor==="top"&&r.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:r})=>r.anchor==="right"&&r.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:r})=>r.anchor==="bottom"&&r.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),Zy={left:"right",right:"left",top:"down",bottom:"up"};function E4(e){return["left","right"].includes(e)}function C4({direction:e},r){return e==="rtl"&&E4(r)?Zy[r]:r}const T4=M.forwardRef(function(r,l){const a=Yn({props:r,name:"MuiDrawer"}),u=lu(),s=SE(),f={enter:u.transitions.duration.enteringScreen,exit:u.transitions.duration.leavingScreen},{anchor:d="left",BackdropProps:m,children:h,className:g,elevation:y=16,hideBackdrop:v=!1,ModalProps:{BackdropProps:S,...R}={},onClose:T,open:N=!1,PaperProps:w={},SlideProps:B,TransitionComponent:k=y4,transitionDuration:z=f,variant:A="temporary",..._}=a,H=M.useRef(!1);M.useEffect(()=>{H.current=!0},[]);const ne=C4({direction:s?"rtl":"ltr"},d),E={...a,anchor:d,elevation:y,open:N,variant:A,..._},I=S4(E),Y=ce.jsx(x4,{elevation:A==="temporary"?y:0,square:!0,...w,className:at(I.paper,w.className),ownerState:E,children:h});if(A==="permanent")return ce.jsx(Ky,{className:at(I.root,I.docked,g),ownerState:E,ref:l,..._,children:Y});const F=ce.jsx(k,{in:N,direction:Zy[ne],timeout:z,appear:H.current,...B,children:Y});return A==="persistent"?ce.jsx(Ky,{className:at(I.root,I.docked,g),ownerState:E,ref:l,..._,children:F}):ce.jsx(v4,{BackdropProps:{...m,...S,transitionDuration:z},className:at(I.root,I.modal,g),open:N,ownerState:E,onClose:T,hideBackdrop:v,ref:l,..._,...R,children:F})}),w4=({messageOrigin:e,transformBody:r,className:l})=>{const[a,u]=M.useState(!1),[s,f]=M.useState(null);return M.useEffect(()=>{const d=m=>{m.origin===e&&m.data.type==="smoot-design::chat-open"&&(u(!0),f(m.data.payload))};return console.log("Attaching listener"),window.addEventListener("message",d),()=>{window.removeEventListener("message",d)}},[e]),M.createElement(T4,{className:l,PaperProps:{sx:{width:"600px",maxWidth:"100%",boxSizing:"border-box",padding:"24px 40px",".MitAiChat--title":{paddingTop:"0px"}}},anchor:"right",open:a,onClose:()=>u(!1)},s?M.createElement(H5,{...s,requestOpts:{transformBody:r,apiUrl:s==null?void 0:s.apiUrl},onClose:()=>u(!1)}):null)},A4={defaultProps:{disableRipple:!0},styleOverrides:{root:{":focus-visible":{outline:"revert"}}}},Ie={mitRed:"#750014",brightRed:"#FF1423",black:"#000000",white:"#FFFFFF",darkGray2:"#212326",darkGray1:"#40464C",silverGrayDark:"#626A73",silverGray:"#8B959E",silverGrayLight:"#B8C2CC",lightGray2:"#DDE1E6",lightGray1:"#F3F4F8",navGray:"#303337",darkPink:"#750062",pink:"#FF14F0",lightPink:"#FFB3FF",darkPurple:"#3E006B",purple:"#93F",lightPurple:"#BFB3FF",darkBlue:"#002896",blue:"#1966FF",lightBlue:"#99EBFF",darkGreen:"#004D1A",green:"#00AD00",lightGreen:"#AF3",darkRed:"#83192A",red:"#A31F34",lightRed:"#D02E44",orange:"#FAB005",yellow:"#FFEB00"},k4={defaultProps:{size:"medium",color:"default",variant:"outlined",deleteIcon:M.createElement(Dm,{"aria-hidden":"true"})},styleOverrides:{root:{borderRadius:"100vh",borderWidth:"1px"},deleteIcon:{"&:hover":{color:"inherit"},"&.MuiChip-deleteIconLarge":{width:"16px",height:"16px"},"&.MuiChip-deleteIconMedium":{width:"14px",height:"14px"},margin:"0 -2px 0 8px",color:"inherit"},icon:{margin:"0 8px 0 -2px",color:"inherit","&.MuiChip-iconLarge":{width:"16px",height:"16px"},"&.MuiChip-iconMedium":{width:"14px",height:"14px"}}},variants:[{props:{size:"medium"},style:({theme:e})=>({...e.typography.body3,boxSizing:"border-box",height:"24px",paddingRight:"12px",paddingLeft:"12px",".MuiChip-label":{paddingLeft:"0px",paddingRight:"0px"}})},{props:{size:"large"},style:({theme:e})=>({...e.typography.body2,height:"32px",paddingLeft:"16px",paddingRight:"16px",".MuiChip-label":{paddingLeft:"0px",paddingRight:"0px"}})},{props:{variant:"outlined"},style:{borderColor:Ie.silverGrayLight,color:Ie.darkGray1,"&.Mui-focusVisible":{backgroundColor:"transparent"},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:Ie.darkGray1,borderColor:Ie.silverGrayDark,backgroundColor:"transparent"}}},{props:{variant:"outlinedWhite"},style:{backgroundColor:"white",border:"1px solid",borderColor:Ie.silverGrayLight,color:Ie.darkGray1,"&.Mui-focusVisible":{backgroundColor:"white"},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:Ie.darkGray1,borderColor:Ie.silverGrayDark,backgroundColor:"white"}}},{props:{variant:"gray"},style:{backgroundColor:Ie.lightGray2,border:"none",color:Ie.darkGray2,"&.Mui-focusVisible":{backgroundColor:Ie.lightGray2},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:Ie.darkGray1,backgroundColor:Ie.silverGrayLight}}},{props:{variant:"dark"},style:{backgroundColor:Ie.silverGrayDark,border:"none",color:Ie.white,"&.Mui-focusVisible":{backgroundColor:Ie.silverGrayDark},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:Ie.darkGray1}}},{props:{variant:"darker"},style:{backgroundColor:Ie.darkGray2,border:`1px solid ${Ie.darkGray1}`,color:Ie.white,"&.Mui-focusVisible":{backgroundColor:Ie.darkGray2},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:Ie.black,border:`1px solid ${Ie.silverGray}`}}},{props:{variant:"filled"},style:{backgroundColor:Ie.mitRed,border:"none",color:Ie.white,"&.Mui-focusVisible":{backgroundColor:Ie.mitRed},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:Ie.red}}}]},R4={colors:Ie,dimensions:{headerHeight:"72px",headerHeightSm:"60px"}},O4={values:{xs:0,sm:600,md:900,lg:1320,xl:1536}},M4={custom:R4,palette:{primary:{main:Ie.mitRed,light:Ie.lightRed,active:Ie.red,contrastText:Ie.white},secondary:{light:Ie.darkGray2,active:Ie.silverGrayDark,main:Ie.black,contrastText:Ie.white}},shape:{borderRadius:8},spacing:8,typography:xm,breakpoints:O4,components:{MuiButtonBase:A4,MuiTypography:B2,MuiMenu:{styleOverrides:{paper:{borderRadius:"4px"}}},MuiAutocomplete:{styleOverrides:{paper:{borderRadius:"4px"},popupIndicator:{paddingRight:0,marginRight:0}}},MuiChip:k4}},_4=(e=>iu(nn(M4,e)))(),D4=({children:e,theme:r=_4})=>M.createElement(N2,{theme:r},e),z4=e=>{const r=document.createElement("div");r.id="smoot-chat-drawer-root",document.body.append(r),jS.createRoot(r).render(M.createElement(D4,null,M.createElement(w4,{...e})))};En.init=z4,Object.defineProperty(En,Symbol.toStringTag,{value:"Module"})});
|
|
198
|
+
`,rR=M.forwardRef(function(r,a){const l=Pn({props:r,name:"MuiTouchRipple"}),{center:u=!1,classes:s={},className:f,...d}=l,[m,h]=M.useState([]),g=M.useRef(0),y=M.useRef(null);M.useEffect(()=>{y.current&&(y.current(),y.current=null)},[m]);const v=M.useRef(!1),S=Vv(),A=M.useRef(null),T=M.useRef(null),N=M.useCallback(z=>{const{pulsate:R,rippleX:_,rippleY:H,rippleSize:ne,cb:V}=z;h(E=>[...E,ce.jsx(nR,{classes:{ripple:ot(s.ripple,Mn.ripple),rippleVisible:ot(s.rippleVisible,Mn.rippleVisible),ripplePulsate:ot(s.ripplePulsate,Mn.ripplePulsate),child:ot(s.child,Mn.child),childLeaving:ot(s.childLeaving,Mn.childLeaving),childPulsate:ot(s.childPulsate,Mn.childPulsate)},timeout:Df,pulsate:R,rippleX:_,rippleY:H,rippleSize:ne},g.current)]),g.current+=1,y.current=V},[s]),w=M.useCallback((z={},R={},_=()=>{})=>{const{pulsate:H=!1,center:ne=u||R.pulsate,fakeElement:V=!1}=R;if((z==null?void 0:z.type)==="mousedown"&&v.current){v.current=!1;return}(z==null?void 0:z.type)==="touchstart"&&(v.current=!0);const E=V?null:T.current,I=E?E.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Y,F,P;if(ne||z===void 0||z.clientX===0&&z.clientY===0||!z.clientX&&!z.touches)Y=Math.round(I.width/2),F=Math.round(I.height/2);else{const{clientX:ee,clientY:q}=z.touches&&z.touches.length>0?z.touches[0]:z;Y=Math.round(ee-I.left),F=Math.round(q-I.top)}if(ne)P=Math.sqrt((2*I.width**2+I.height**2)/3),P%2===0&&(P+=1);else{const ee=Math.max(Math.abs((E?E.clientWidth:0)-Y),Y)*2+2,q=Math.max(Math.abs((E?E.clientHeight:0)-F),F)*2+2;P=Math.sqrt(ee**2+q**2)}z!=null&&z.touches?A.current===null&&(A.current=()=>{N({pulsate:H,rippleX:Y,rippleY:F,rippleSize:P,cb:_})},S.start(Z5,()=>{A.current&&(A.current(),A.current=null)})):N({pulsate:H,rippleX:Y,rippleY:F,rippleSize:P,cb:_})},[u,N,S]),B=M.useCallback(()=>{w({},{pulsate:!0})},[w]),k=M.useCallback((z,R)=>{if(S.clear(),(z==null?void 0:z.type)==="touchend"&&A.current){A.current(),A.current=null,S.start(0,()=>{k(z,R)});return}A.current=null,h(_=>_.length>0?_.slice(1):_),y.current=R},[S]);return M.useImperativeHandle(a,()=>({pulsate:B,start:w,stop:k}),[B,w,k]),ce.jsx(tR,{className:ot(Mn.root,s.root,f),ref:T,...d,children:ce.jsx(_f,{component:null,exit:!0,children:m})})});function iR(e){return Gn("MuiButtonBase",e)}const aR=Yn("MuiButtonBase",["root","disabled","focusVisible"]),lR=e=>{const{disabled:r,focusVisible:a,focusVisibleClassName:l,classes:u}=e,f=nr({root:["root",r&&"disabled",a&&"focusVisible"]},iR,u);return a&&l&&(f.root+=` ${l}`),f},oR=Bt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,r)=>r.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"},[`&.${aR.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),uR=M.forwardRef(function(r,a){const l=Pn({props:r,name:"MuiButtonBase"}),{action:u,centerRipple:s=!1,children:f,className:d,component:m="button",disabled:h=!1,disableRipple:g=!1,disableTouchRipple:y=!1,focusRipple:v=!1,focusVisibleClassName:S,LinkComponent:A="a",onBlur:T,onClick:N,onContextMenu:w,onDragLeave:B,onFocus:k,onFocusVisible:z,onKeyDown:R,onKeyUp:_,onMouseDown:H,onMouseLeave:ne,onMouseUp:V,onTouchEnd:E,onTouchMove:I,onTouchStart:Y,tabIndex:F=0,TouchRippleProps:P,touchRippleRef:ee,type:q,...Z}=l,Q=M.useRef(null),ue=V5(),x=qn(ue.ref,ee),[K,se]=M.useState(!1);h&&K&&se(!1),M.useImperativeHandle(u,()=>({focusVisible:()=>{se(!0),Q.current.focus()}}),[]);const O=ue.shouldMount&&!g&&!h;M.useEffect(()=>{K&&v&&!g&&ue.pulsate()},[g,v,K,ue]);function ie(Ce,Be,Mt=y){return Pi(X=>(Be&&Be(X),Mt||ue[Ce](X),!0))}const ye=ie("start",H),he=ie("stop",w),Ue=ie("stop",B),we=ie("stop",V),Oe=ie("stop",Ce=>{K&&Ce.preventDefault(),ne&&ne(Ce)}),pe=ie("start",Y),Ne=ie("stop",E),me=ie("stop",I),ge=ie("stop",Ce=>{zh(Ce.target)||se(!1),T&&T(Ce)},!1),fe=Pi(Ce=>{Q.current||(Q.current=Ce.currentTarget),zh(Ce.target)&&(se(!0),z&&z(Ce)),k&&k(Ce)}),Te=()=>{const Ce=Q.current;return m&&m!=="button"&&!(Ce.tagName==="A"&&Ce.href)},Ge=Pi(Ce=>{v&&!Ce.repeat&&K&&Ce.key===" "&&ue.stop(Ce,()=>{ue.start(Ce)}),Ce.target===Ce.currentTarget&&Te()&&Ce.key===" "&&Ce.preventDefault(),R&&R(Ce),Ce.target===Ce.currentTarget&&Te()&&Ce.key==="Enter"&&!h&&(Ce.preventDefault(),N&&N(Ce))}),je=Pi(Ce=>{v&&Ce.key===" "&&K&&!Ce.defaultPrevented&&ue.stop(Ce,()=>{ue.pulsate(Ce)}),_&&_(Ce),N&&Ce.target===Ce.currentTarget&&Te()&&Ce.key===" "&&!Ce.defaultPrevented&&N(Ce)});let _e=m;_e==="button"&&(Z.href||Z.to)&&(_e=A);const Ke={};_e==="button"?(Ke.type=q===void 0?"button":q,Ke.disabled=h):(!Z.href&&!Z.to&&(Ke.role="button"),h&&(Ke["aria-disabled"]=h));const gt=qn(a,Q),Kt={...l,centerRipple:s,component:m,disabled:h,disableRipple:g,disableTouchRipple:y,focusRipple:v,tabIndex:F,focusVisible:K},yn=lR(Kt);return ce.jsxs(oR,{as:_e,className:ot(yn.root,d),ownerState:Kt,onBlur:ge,onClick:N,onContextMenu:he,onFocus:fe,onKeyDown:Ge,onKeyUp:je,onMouseDown:ye,onMouseLeave:Oe,onMouseUp:we,onDragLeave:Ue,onTouchEnd:Ne,onTouchMove:me,onTouchStart:pe,ref:gt,tabIndex:h?-1:F,type:q,...Ke,...Z,children:[f,O?ce.jsx(rR,{ref:x,center:s,...P}):null]})});function sR(e){return Gn("MuiIconButton",e)}const cR=Yn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),fR=e=>{const{classes:r,disabled:a,color:l,edge:u,size:s}=e,f={root:["root",a&&"disabled",l!=="default"&&`color${pt(l)}`,u&&`edge${pt(u)}`,`size${pt(s)}`]};return nr(f,sR,r)},dR=Bt(uR,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[r.root,a.color!=="default"&&r[`color${pt(a.color)}`],a.edge&&r[`edge${pt(a.edge)}`],r[`size${pt(a.size)}`]]}})(Fn(({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:r=>!r.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:il(e.palette.action.active,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}}]})),Fn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(la()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(e.palette).filter(la()).map(([r])=>({props:{color:r},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:il((e.vars||e).palette[r].main,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)}}],[`&.${cR.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),pR=M.forwardRef(function(r,a){const l=Pn({props:r,name:"MuiIconButton"}),{edge:u=!1,children:s,className:f,color:d="default",disabled:m=!1,disableFocusRipple:h=!1,size:g="medium",...y}=l,v={...l,edge:u,color:d,disabled:m,disableFocusRipple:h,size:g},S=fR(v);return ce.jsx(dR,{className:ot(S.root,f),centerRipple:!0,focusRipple:!h,disabled:m,ref:a,...y,ownerState:v,children:s})});function hR(e){return Gn("MuiSvgIcon",e)}Yn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const mR=e=>{const{color:r,fontSize:a,classes:l}=e,u={root:["root",r!=="inherit"&&`color${pt(r)}`,`fontSize${pt(a)}`]};return nr(u,hR,l)},gR=Bt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[r.root,a.color!=="inherit"&&r[`color${pt(a.color)}`],r[`fontSize${pt(a.fontSize)}`]]}})(Fn(({theme:e})=>{var r,a,l,u,s,f,d,m,h,g,y,v,S,A;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(u=(r=e.transitions)==null?void 0:r.create)==null?void 0:u.call(r,"fill",{duration:(l=(a=(e.vars??e).transitions)==null?void 0:a.duration)==null?void 0:l.shorter}),variants:[{props:T=>!T.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((f=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:f.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((m=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:m.call(d,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((g=(h=e.typography)==null?void 0:h.pxToRem)==null?void 0:g.call(h,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,T])=>T&&T.main).map(([T])=>{var N,w;return{props:{color:T},style:{color:(w=(N=(e.vars??e).palette)==null?void 0:N[T])==null?void 0:w.main}}}),{props:{color:"action"},style:{color:(v=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:v.active}},{props:{color:"disabled"},style:{color:(A=(S=(e.vars??e).palette)==null?void 0:S.action)==null?void 0:A.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),ku=M.forwardRef(function(r,a){const l=Pn({props:r,name:"MuiSvgIcon"}),{children:u,className:s,color:f="inherit",component:d="svg",fontSize:m="medium",htmlColor:h,inheritViewBox:g=!1,titleAccess:y,viewBox:v="0 0 24 24",...S}=l,A=M.isValidElement(u)&&u.type==="svg",T={...l,color:f,component:d,fontSize:m,instanceFontSize:r.fontSize,inheritViewBox:g,viewBox:v,hasSvgAsChild:A},N={};g||(N.viewBox=v);const w=mR(T);return ce.jsxs(gR,{as:d,className:ot(w.root,s),focusable:"false",color:h,"aria-hidden":y?void 0:!0,role:y?"img":void 0,ref:a,...N,...S,...A&&u.props,ownerState:T,children:[A?u.props.children:u,y?ce.jsx("title",{children:y}):null]})});ku&&(ku.muiName="SvgIcon");function jl(e,r){function a(l,u){return ce.jsx(ku,{"data-testid":`${r}Icon`,ref:u,...l,children:e})}return a.muiName=ku.muiName,M.memo(M.forwardRef(a))}const yR=jl(ce.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),bR=jl(ce.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),SR=jl(ce.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),vR=jl(ce.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),xR=jl(ce.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),ER=e=>{const{variant:r,color:a,severity:l,classes:u}=e,s={root:["root",`color${pt(a||l)}`,`${r}${pt(a||l)}`,`${r}`],icon:["icon"],message:["message"],action:["action"]};return nr(s,I5,u)},CR=Bt(qy,{name:"MuiAlert",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[r.root,r[a.variant],r[`${a.variant}${pt(a.color||a.severity)}`]]}})(Fn(({theme:e})=>{const r=e.palette.mode==="light"?al:ll,a=e.palette.mode==="light"?ll:al;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(la(["light"])).map(([l])=>({props:{colorSeverity:l,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${l}Color`]:r(e.palette[l].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${l}StandardBg`]:a(e.palette[l].light,.9),[`& .${Gy.icon}`]:e.vars?{color:e.vars.palette.Alert[`${l}IconColor`]}:{color:e.palette[l].main}}})),...Object.entries(e.palette).filter(la(["light"])).map(([l])=>({props:{colorSeverity:l,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${l}Color`]:r(e.palette[l].light,.6),border:`1px solid ${(e.vars||e).palette[l].light}`,[`& .${Gy.icon}`]:e.vars?{color:e.vars.palette.Alert[`${l}IconColor`]}:{color:e.palette[l].main}}})),...Object.entries(e.palette).filter(la(["dark"])).map(([l])=>({props:{colorSeverity:l,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${l}FilledColor`],backgroundColor:e.vars.palette.Alert[`${l}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[l].dark:e.palette[l].main,color:e.palette.getContrastText(e.palette[l].main)}}}))]}})),TR=Bt("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,r)=>r.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),wR=Bt("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,r)=>r.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Qy=Bt("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,r)=>r.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Ky={success:ce.jsx(yR,{fontSize:"inherit"}),warning:ce.jsx(bR,{fontSize:"inherit"}),error:ce.jsx(SR,{fontSize:"inherit"}),info:ce.jsx(vR,{fontSize:"inherit"})},AR=M.forwardRef(function(r,a){const l=Pn({props:r,name:"MuiAlert"}),{action:u,children:s,className:f,closeText:d="Close",color:m,components:h={},componentsProps:g={},icon:y,iconMapping:v=Ky,onClose:S,role:A="alert",severity:T="success",slotProps:N={},slots:w={},variant:B="standard",...k}=l,z={...l,color:m,severity:T,variant:B,colorSeverity:m||T},R=ER(z),_={slots:{closeButton:h.CloseButton,closeIcon:h.CloseIcon,...w},slotProps:{...g,...N}},[H,ne]=oa("closeButton",{elementType:pR,externalForwardedProps:_,ownerState:z}),[V,E]=oa("closeIcon",{elementType:xR,externalForwardedProps:_,ownerState:z});return ce.jsxs(CR,{role:A,elevation:0,ownerState:z,className:ot(R.root,f),ref:a,...k,children:[y!==!1?ce.jsx(TR,{ownerState:z,className:R.icon,children:y||v[T]||Ky[T]}):null,ce.jsx(wR,{ownerState:z,className:R.message,children:s}),u!=null?ce.jsx(Qy,{ownerState:z,className:R.action,children:u}):null,u==null&&S?ce.jsx(Qy,{ownerState:z,className:R.action,children:ce.jsx(H,{size:"small","aria-label":d,title:d,color:"inherit",onClick:S,...ne,children:ce.jsx(V,{fontSize:"small",...E})})}):null]})}),Zy=(e,r)=>({info:e.custom.colors.blue,success:e.custom.colors.green,warning:e.custom.colors.orange,error:e.custom.colors.lightRed})[r],kR=tt(AR)(({theme:e,severity:r})=>({padding:"11px 16px",borderRadius:4,borderWidth:2,borderStyle:"solid",borderColor:Zy(e,r),background:"#FFF",".MuiAlert-message":{...e.typography.body2,color:e.custom.colors.darkGray2,alignSelf:"center"},"> div":{paddingTop:0,paddingBottom:0},".MuiAlert-icon":{marginRight:8,svg:{width:16,fill:Zy(e,r)}},button:{padding:0,":hover":{margin:0,background:"none"}}})),RR=tt.span({display:"none"}),OR=({visible:e=!0,severity:r="info",closable:a,children:l,className:u})=>{const[s,f]=M.useState(e),d=M.useId(),m=()=>{f(!1)};return M.useEffect(()=>{f(e)},[e]),s?M.createElement(kR,{severity:r,onClose:a?m:void 0,role:"alert","aria-describedby":d,className:u},l,M.createElement(RR,{id:d},r," message")):null},en={root:"MitAiChat--root",title:"MitAiChat--title",conversationStarter:"MitAiChat--conversationStarter",messagesContainer:"MitAiChat--messagesContainer",messageRow:"MitAiChat--messageRow",messageRowUser:"MitAiChat--messageRowUser",messageRowAssistant:"MitAiChat--messageRowAssistant",message:"MitAiChat--message",input:"MitAiChat--input",bottomSection:"MitAiChat--bottomSection"},MR=tt.div({width:"100%",height:"100%",display:"flex",flexDirection:"column"}),_R=tt(kc)(({theme:e})=>({"&&:hover":{backgroundColor:e.custom.colors.red,color:e.custom.colors.white}})),DR=tt.div(({theme:e})=>({display:"flex",alignItems:"center",gap:"8px",color:e.custom.colors.darkGray2,img:{width:"24px",height:"24px"},svg:{fill:e.custom.colors.red,width:"24px",height:"24px"}})),zR=tt(k5)({display:"flex",flexDirection:"column",flex:1,padding:"14px 0",overflow:"auto",gap:"16px"}),Wy=tt.div({display:"flex",width:"100%",gap:"10px",[`&.${en.messageRowUser}`]:{flexDirection:"row-reverse"},"> *":{minWidth:0},position:"relative"}),Jy=tt.div(({theme:e})=>({color:e.custom.colors.darkGray2,backgroundColor:e.custom.colors.white,padding:"12px 16px",...e.typography.body2,"p:first-of-type":{marginTop:0},"p:last-of-type":{marginBottom:0},"ol, ul":{paddingInlineStart:"32px",li:{margin:"16px 0"}},ul:{marginInlineStart:"-16px"},a:{color:e.custom.colors.red,fontWeight:"normal"},borderRadius:"12px",[`.${en.messageRowAssistant} &`]:{padding:"12px 16px 12px 0"},[`.${en.messageRowUser} &`]:{borderRadius:"8px 0px 8px 8px",backgroundColor:e.custom.colors.lightGray1}})),NR=tt.div({alignSelf:"flex-end",alignItems:"end",display:"flex",flexDirection:"column",gap:"12px"}),BR=tt.button(({theme:e})=>({border:`1px solid ${e.custom.colors.lightGray2}`,backgroundColor:e.custom.colors.white,padding:"8px 16px",...e.typography.body3,cursor:"pointer",boxSizing:"border-box","&:hover":{color:e.custom.colors.white,backgroundColor:e.custom.colors.silverGrayDark,borderColor:"transparent"},borderRadius:"8px"})),LR=tt(K2)({width:"40px",height:"40px"}),UR=tt(P2)(({theme:e})=>({fill:e.custom.colors.red})),jR=tt(X2)(({theme:e})=>({fill:e.custom.colors.red})),HR=tt.div({paddingTop:"12px"}),IR=tt(kf)(({theme:e})=>({color:e.custom.colors.silverGrayDark,marginTop:"14px",textAlign:"center"})),VR=tt(({title:e,askTimTitle:r,onClose:a,className:l})=>M.createElement("div",{className:l},r?M.createElement(DR,null,M.createElement(Q2,null),M.createElement(kf,{variant:"body1"},"Ask",M.createElement("strong",null,"TIM")," ",r)):null,e?M.createElement(M.Fragment,null,M.createElement(LR,null),M.createElement(kf,{flex:1,variant:"h5"},e)):null,a?M.createElement(_R,{variant:"tertiary",edge:"rounded",onClick:a,"aria-label":"Close chat"},M.createElement(Im,null)):null))(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 0",gap:"16px",color:e.custom.colors.white,borderRadius:"8px 8px 0 0"})),$R=function({chatId:r,className:a,conversationStarters:l,requestOpts:u,initialMessages:s,parseContent:f,srLoadingMessages:d,title:m,askTimTitle:h,onClose:g,ImgComponent:y,placeholder:v="",ref:S,...A}){var ee,q;const T=M.useRef(null),N=M.useMemo(()=>{const Z=Math.random().toString().slice(2);return s.map((Q,ue)=>({...Q,id:`initial-${Z}-${ue}`}))},[s]),{messages:w,input:B,handleInputChange:k,handleSubmit:z,append:R,isLoading:_,stop:H,error:ne}=hT(u,{initialMessages:N,id:r});M.useImperativeHandle(S,()=>({append:R}),[R]);const V=M.useMemo(()=>{const Z=N.map(Q=>Q.id);return w.map(Q=>{if(Q.role==="assistant"&&!Z.includes(Q.id)){const ue=f?f(Q.content):Q.content;return{...Q,content:ue}}return Q})},[f,w,N]),E=V.length===N.length,I=!E&&!ne&&((ee=V[V.length-1])==null?void 0:ee.role)==="user",Y=_&&((q=V[V.length-1])==null?void 0:q.role)!=="user",F=()=>{var Z;(Z=T.current)==null||Z.scrollBy({behavior:"instant",top:T.current.scrollHeight})},P=V[V.length-1];return M.createElement(MR,{className:cl(a,en.root),...A},M.createElement(VR,{title:m,askTimTitle:h,onClose:g,className:cl(a,en.title)}),M.createElement(zR,{className:en.messagesContainer,ref:T},V.map(Z=>M.createElement(Wy,{key:Z.id,"data-chat-role":Z.role,className:cl(en.messageRow,{[en.messageRowUser]:Z.role==="user",[en.messageRowAssistant]:Z.role==="assistant"})},M.createElement(Jy,{className:en.message},M.createElement(Vy,null,Z.role==="user"?"You said: ":"Assistant said: "),M.createElement(E5,{skipHtml:!0},Z.content)))),E?M.createElement(NR,null,l==null?void 0:l.map(Z=>M.createElement(BR,{className:en.conversationStarter,key:Z.content,onClick:()=>{F(),R({role:"user",content:Z.content})}},Z.content))):null,I?M.createElement(Wy,{className:cl(en.messageRow,en.messageRowAssistant),key:"loading"},M.createElement(Jy,null,M.createElement(F2,null))):null,ne?M.createElement(OR,{severity:"error",closable:!0},"An unexpected error has occurred."):null),M.createElement(HR,{className:en.bottomSection},M.createElement("form",{onSubmit:Z=>{Z.preventDefault(),_&&Y?H():(F(),z(Z))}},M.createElement(z2,{fullWidth:!0,size:"chat",className:en.input,placeholder:v,name:"message",sx:{flex:1},value:B,onChange:k,endAdornment:_?M.createElement(km,{"aria-label":"Stop",onClick:H,disabled:!Y},M.createElement(jR,null)):M.createElement(km,{"aria-label":"Send",type:"submit",onClick:Z=>{F(),z(Z)}},M.createElement(UR,null))})),M.createElement(IR,{variant:"body3"},"AI-generated content may be incorrect.")),M.createElement(O5,{isLoading:_,loadingMessages:d,message:P.role==="assistant"?P.content:""}))},qR=e=>M.createElement($R,{key:e.chatId,...e});function GR(e){const r=pi(e);return r.body===e?jr(e).innerWidth>r.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Hl(e,r){r?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function e1(e){return parseInt(jr(e).getComputedStyle(e).paddingRight,10)||0}function YR(e){const a=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),l=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return a||l}function t1(e,r,a,l,u){const s=[r,a,...l];[].forEach.call(e.children,f=>{const d=!s.includes(f),m=!YR(f);d&&m&&Hl(f,u)})}function zf(e,r){let a=-1;return e.some((l,u)=>r(l)?(a=u,!0):!1),a}function FR(e,r){const a=[],l=e.container;if(!r.disableScrollLock){if(GR(l)){const f=$v(jr(l));a.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${e1(l)+f}px`;const d=pi(l).querySelectorAll(".mui-fixed");[].forEach.call(d,m=>{a.push({value:m.style.paddingRight,property:"padding-right",el:m}),m.style.paddingRight=`${e1(m)+f}px`})}let s;if(l.parentNode instanceof DocumentFragment)s=pi(l).body;else{const f=l.parentElement,d=jr(l);s=(f==null?void 0:f.nodeName)==="HTML"&&d.getComputedStyle(f).overflowY==="scroll"?f:l}a.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()=>{a.forEach(({value:s,el:f,property:d})=>{s?f.style.setProperty(d,s):f.style.removeProperty(d)})}}function PR(e){const r=[];return[].forEach.call(e.children,a=>{a.getAttribute("aria-hidden")==="true"&&r.push(a)}),r}class XR{constructor(){this.modals=[],this.containers=[]}add(r,a){let l=this.modals.indexOf(r);if(l!==-1)return l;l=this.modals.length,this.modals.push(r),r.modalRef&&Hl(r.modalRef,!1);const u=PR(a);t1(a,r.mount,r.modalRef,u,!0);const s=zf(this.containers,f=>f.container===a);return s!==-1?(this.containers[s].modals.push(r),l):(this.containers.push({modals:[r],container:a,restore:null,hiddenSiblings:u}),l)}mount(r,a){const l=zf(this.containers,s=>s.modals.includes(r)),u=this.containers[l];u.restore||(u.restore=FR(u,a))}remove(r,a=!0){const l=this.modals.indexOf(r);if(l===-1)return l;const u=zf(this.containers,f=>f.modals.includes(r)),s=this.containers[u];if(s.modals.splice(s.modals.indexOf(r),1),this.modals.splice(l,1),s.modals.length===0)s.restore&&s.restore(),r.modalRef&&Hl(r.modalRef,a),t1(s.container,r.mount,r.modalRef,s.hiddenSiblings,!1),this.containers.splice(u,1);else{const f=s.modals[s.modals.length-1];f.modalRef&&Hl(f.modalRef,!1)}return l}isTopModal(r){return this.modals.length>0&&this.modals[this.modals.length-1]===r}}const QR=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function KR(e){const r=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(r)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:r}function ZR(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const r=l=>e.ownerDocument.querySelector(`input[type="radio"]${l}`);let a=r(`[name="${e.name}"]:checked`);return a||(a=r(`[name="${e.name}"]`)),a!==e}function WR(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||ZR(e))}function JR(e){const r=[],a=[];return Array.from(e.querySelectorAll(QR)).forEach((l,u)=>{const s=KR(l);s===-1||!WR(l)||(s===0?r.push(l):a.push({documentOrder:u,tabIndex:s,node:l}))}),a.sort((l,u)=>l.tabIndex===u.tabIndex?l.documentOrder-u.documentOrder:l.tabIndex-u.tabIndex).map(l=>l.node).concat(r)}function e4(){return!0}function t4(e){const{children:r,disableAutoFocus:a=!1,disableEnforceFocus:l=!1,disableRestoreFocus:u=!1,getTabbable:s=JR,isEnabled:f=e4,open:d}=e,m=M.useRef(!1),h=M.useRef(null),g=M.useRef(null),y=M.useRef(null),v=M.useRef(null),S=M.useRef(!1),A=M.useRef(null),T=qn(Po(r),A),N=M.useRef(null);M.useEffect(()=>{!d||!A.current||(S.current=!a)},[a,d]),M.useEffect(()=>{if(!d||!A.current)return;const k=pi(A.current);return A.current.contains(k.activeElement)||(A.current.hasAttribute("tabIndex")||A.current.setAttribute("tabIndex","-1"),S.current&&A.current.focus()),()=>{u||(y.current&&y.current.focus&&(m.current=!0,y.current.focus()),y.current=null)}},[d]),M.useEffect(()=>{if(!d||!A.current)return;const k=pi(A.current),z=H=>{N.current=H,!(l||!f()||H.key!=="Tab")&&k.activeElement===A.current&&H.shiftKey&&(m.current=!0,g.current&&g.current.focus())},R=()=>{var V,E;const H=A.current;if(H===null)return;if(!k.hasFocus()||!f()||m.current){m.current=!1;return}if(H.contains(k.activeElement)||l&&k.activeElement!==h.current&&k.activeElement!==g.current)return;if(k.activeElement!==v.current)v.current=null;else if(v.current!==null)return;if(!S.current)return;let ne=[];if((k.activeElement===h.current||k.activeElement===g.current)&&(ne=s(A.current)),ne.length>0){const I=!!((V=N.current)!=null&&V.shiftKey&&((E=N.current)==null?void 0:E.key)==="Tab"),Y=ne[0],F=ne[ne.length-1];typeof Y!="string"&&typeof F!="string"&&(I?F.focus():Y.focus())}else H.focus()};k.addEventListener("focusin",R),k.addEventListener("keydown",z,!0);const _=setInterval(()=>{k.activeElement&&k.activeElement.tagName==="BODY"&&R()},50);return()=>{clearInterval(_),k.removeEventListener("focusin",R),k.removeEventListener("keydown",z,!0)}},[a,l,u,f,d,s]);const w=k=>{y.current===null&&(y.current=k.relatedTarget),S.current=!0,v.current=k.target;const z=r.props.onFocus;z&&z(k)},B=k=>{y.current===null&&(y.current=k.relatedTarget),S.current=!0};return ce.jsxs(M.Fragment,{children:[ce.jsx("div",{tabIndex:d?0:-1,onFocus:B,ref:h,"data-testid":"sentinelStart"}),M.cloneElement(r,{ref:T,onFocus:w}),ce.jsx("div",{tabIndex:d?0:-1,onFocus:B,ref:g,"data-testid":"sentinelEnd"})]})}function n4(e){return typeof e=="function"?e():e}const r4=M.forwardRef(function(r,a){const{children:l,container:u,disablePortal:s=!1}=r,[f,d]=M.useState(null),m=qn(M.isValidElement(l)?Po(l):null,a);if(Fi(()=>{s||d(n4(u)||document.body)},[u,s]),Fi(()=>{if(f&&!s)return nc(a,f),()=>{nc(a,null)}},[a,f,s]),s){if(M.isValidElement(l)){const h={ref:m};return M.cloneElement(l,h)}return ce.jsx(M.Fragment,{children:l})}return ce.jsx(M.Fragment,{children:f&&Py.createPortal(l,f)})}),n1=e=>e.scrollTop;function Ru(e,r){const{timeout:a,easing:l,style:u={}}=e;return{duration:u.transitionDuration??(typeof a=="number"?a:a[r.mode]||0),easing:u.transitionTimingFunction??(typeof l=="object"?l[r.mode]:l),delay:u.transitionDelay}}const i4={entering:{opacity:1},entered:{opacity:1}},a4=M.forwardRef(function(r,a){const l=uu(),u={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{addEndListener:s,appear:f=!0,children:d,easing:m,in:h,onEnter:g,onEntered:y,onEntering:v,onExit:S,onExited:A,onExiting:T,style:N,timeout:w=u,TransitionComponent:B=ur,...k}=r,z=M.useRef(null),R=qn(z,Po(d),a),_=P=>ee=>{if(P){const q=z.current;ee===void 0?P(q):P(q,ee)}},H=_(v),ne=_((P,ee)=>{n1(P);const q=Ru({style:N,timeout:w,easing:m},{mode:"enter"});P.style.webkitTransition=l.transitions.create("opacity",q),P.style.transition=l.transitions.create("opacity",q),g&&g(P,ee)}),V=_(y),E=_(T),I=_(P=>{const ee=Ru({style:N,timeout:w,easing:m},{mode:"exit"});P.style.webkitTransition=l.transitions.create("opacity",ee),P.style.transition=l.transitions.create("opacity",ee),S&&S(P)}),Y=_(A),F=P=>{s&&s(z.current,P)};return ce.jsx(B,{appear:f,in:h,nodeRef:z,onEnter:ne,onEntered:V,onEntering:H,onExit:I,onExited:Y,onExiting:E,addEndListener:F,timeout:w,...k,children:(P,ee)=>M.cloneElement(d,{style:{opacity:0,visibility:P==="exited"&&!h?"hidden":void 0,...i4[P],...N,...d.props.style},ref:R,...ee})})});function l4(e){return Gn("MuiBackdrop",e)}Yn("MuiBackdrop",["root","invisible"]);const o4=e=>{const{ownerState:r,...a}=e;return a},u4=e=>{const{classes:r,invisible:a}=e;return nr({root:["root",a&&"invisible"]},l4,r)},s4=Bt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[r.root,a.invisible&&r.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"}}]}),c4=M.forwardRef(function(r,a){const l=Pn({props:r,name:"MuiBackdrop"}),{children:u,className:s,component:f="div",invisible:d=!1,open:m,components:h={},componentsProps:g={},slotProps:y={},slots:v={},TransitionComponent:S,transitionDuration:A,...T}=l,N={...l,component:f,invisible:d},w=u4(N),B={transition:S,root:h.Root,...v},k={...g,...y},z={slots:B,slotProps:k},[R,_]=oa("root",{elementType:s4,externalForwardedProps:z,className:ot(w.root,s),ownerState:N}),[H,ne]=oa("transition",{elementType:a4,externalForwardedProps:z,ownerState:N}),V=o4(ne);return ce.jsx(H,{in:m,timeout:A,...T,...V,children:ce.jsx(R,{"aria-hidden":!0,..._,classes:w,ref:a,children:u})})});function f4(e){return typeof e=="function"?e():e}function d4(e){return e?e.props.hasOwnProperty("in"):!1}const Ou=new XR;function p4(e){const{container:r,disableEscapeKeyDown:a=!1,disableScrollLock:l=!1,closeAfterTransition:u=!1,onTransitionEnter:s,onTransitionExited:f,children:d,onClose:m,open:h,rootRef:g}=e,y=M.useRef({}),v=M.useRef(null),S=M.useRef(null),A=qn(S,g),[T,N]=M.useState(!h),w=d4(d);let B=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(B=!1);const k=()=>pi(v.current),z=()=>(y.current.modalRef=S.current,y.current.mount=v.current,y.current),R=()=>{Ou.mount(z(),{disableScrollLock:l}),S.current&&(S.current.scrollTop=0)},_=Pi(()=>{const ee=f4(r)||k().body;Ou.add(z(),ee),S.current&&R()}),H=()=>Ou.isTopModal(z()),ne=Pi(ee=>{v.current=ee,ee&&(h&&H()?R():S.current&&Hl(S.current,B))}),V=M.useCallback(()=>{Ou.remove(z(),B)},[B]);M.useEffect(()=>()=>{V()},[V]),M.useEffect(()=>{h?_():(!w||!u)&&V()},[h,V,w,u,_]);const E=ee=>q=>{var Z;(Z=ee.onKeyDown)==null||Z.call(ee,q),!(q.key!=="Escape"||q.which===229||!H())&&(a||(q.stopPropagation(),m&&m(q,"escapeKeyDown")))},I=ee=>q=>{var Z;(Z=ee.onClick)==null||Z.call(ee,q),q.target===q.currentTarget&&m&&m(q,"backdropClick")};return{getRootProps:(ee={})=>{const q=Bh(e);delete q.onTransitionEnter,delete q.onTransitionExited;const Z={...q,...ee};return{role:"presentation",...Z,onKeyDown:E(Z),ref:A}},getBackdropProps:(ee={})=>{const q=ee;return{"aria-hidden":!0,...q,onClick:I(q),open:h}},getTransitionProps:()=>{const ee=()=>{N(!1),s&&s()},q=()=>{N(!0),f&&f(),u&&V()};return{onEnter:Oh(ee,d==null?void 0:d.props.onEnter),onExited:Oh(q,d==null?void 0:d.props.onExited)}},rootRef:A,portalRef:ne,isTopModal:H,exited:T,hasTransition:w}}function h4(e){return Gn("MuiModal",e)}Yn("MuiModal",["root","hidden","backdrop"]);const m4=e=>{const{open:r,exited:a,classes:l}=e;return nr({root:["root",!r&&a&&"hidden"],backdrop:["backdrop"]},h4,l)},g4=Bt("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[r.root,!a.open&&a.exited&&r.hidden]}})(Fn(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:r})=>!r.open&&r.exited,style:{visibility:"hidden"}}]}))),y4=Bt(c4,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,r)=>r.backdrop})({zIndex:-1}),b4=M.forwardRef(function(r,a){const l=Pn({name:"MuiModal",props:r}),{BackdropComponent:u=y4,BackdropProps:s,classes:f,className:d,closeAfterTransition:m=!1,children:h,container:g,component:y,components:v={},componentsProps:S={},disableAutoFocus:A=!1,disableEnforceFocus:T=!1,disableEscapeKeyDown:N=!1,disablePortal:w=!1,disableRestoreFocus:B=!1,disableScrollLock:k=!1,hideBackdrop:z=!1,keepMounted:R=!1,onBackdropClick:_,onClose:H,onTransitionEnter:ne,onTransitionExited:V,open:E,slotProps:I={},slots:Y={},theme:F,...P}=l,ee={...l,closeAfterTransition:m,disableAutoFocus:A,disableEnforceFocus:T,disableEscapeKeyDown:N,disablePortal:w,disableRestoreFocus:B,disableScrollLock:k,hideBackdrop:z,keepMounted:R},{getRootProps:q,getBackdropProps:Z,getTransitionProps:Q,portalRef:ue,isTopModal:x,exited:K,hasTransition:se}=p4({...ee,rootRef:a}),O={...ee,exited:K},ie=m4(O),ye={};if(h.props.tabIndex===void 0&&(ye.tabIndex="-1"),se){const{onEnter:me,onExited:ge}=Q();ye.onEnter=me,ye.onExited=ge}const he={...P,slots:{root:v.Root,backdrop:v.Backdrop,...Y},slotProps:{...S,...I}},[Ue,we]=oa("root",{elementType:g4,externalForwardedProps:he,getSlotProps:q,additionalProps:{ref:a,as:y},ownerState:O,className:ot(d,ie==null?void 0:ie.root,!O.open&&O.exited&&(ie==null?void 0:ie.hidden))}),[Oe,pe]=oa("backdrop",{elementType:u,externalForwardedProps:he,additionalProps:s,getSlotProps:me=>Z({...me,onClick:ge=>{_&&_(ge),me!=null&&me.onClick&&me.onClick(ge)}}),className:ot(s==null?void 0:s.className,ie==null?void 0:ie.backdrop),ownerState:O}),Ne=qn(s==null?void 0:s.ref,pe.ref);return!R&&!E&&(!se||K)?null:ce.jsx(r4,{ref:ue,container:g,disablePortal:w,children:ce.jsxs(Ue,{...we,children:[!z&&u?ce.jsx(Oe,{...pe,ref:Ne}):null,ce.jsx(t4,{disableEnforceFocus:T,disableAutoFocus:A,disableRestoreFocus:B,isEnabled:x,open:E,children:M.cloneElement(h,ye)})]})})});function S4(e,r,a){const l=r.getBoundingClientRect(),u=a&&a.getBoundingClientRect(),s=jr(r);let f;if(r.fakeTransform)f=r.fakeTransform;else{const h=s.getComputedStyle(r);f=h.getPropertyValue("-webkit-transform")||h.getPropertyValue("transform")}let d=0,m=0;if(f&&f!=="none"&&typeof f=="string"){const h=f.split("(")[1].split(")")[0].split(",");d=parseInt(h[4],10),m=parseInt(h[5],10)}return e==="left"?u?`translateX(${u.right+d-l.left}px)`:`translateX(${s.innerWidth+d-l.left}px)`:e==="right"?u?`translateX(-${l.right-u.left-d}px)`:`translateX(-${l.left+l.width-d}px)`:e==="up"?u?`translateY(${u.bottom+m-l.top}px)`:`translateY(${s.innerHeight+m-l.top}px)`:u?`translateY(-${l.top-u.top+l.height-m}px)`:`translateY(-${l.top+l.height-m}px)`}function v4(e){return typeof e=="function"?e():e}function Mu(e,r,a){const l=v4(a),u=S4(e,r,l);u&&(r.style.webkitTransform=u,r.style.transform=u)}const x4=M.forwardRef(function(r,a){const l=uu(),u={enter:l.transitions.easing.easeOut,exit:l.transitions.easing.sharp},s={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{addEndListener:f,appear:d=!0,children:m,container:h,direction:g="down",easing:y=u,in:v,onEnter:S,onEntered:A,onEntering:T,onExit:N,onExited:w,onExiting:B,style:k,timeout:z=s,TransitionComponent:R=ur,..._}=r,H=M.useRef(null),ne=qn(Po(m),H,a),V=Q=>ue=>{Q&&(ue===void 0?Q(H.current):Q(H.current,ue))},E=V((Q,ue)=>{Mu(g,Q,h),n1(Q),S&&S(Q,ue)}),I=V((Q,ue)=>{const x=Ru({timeout:z,style:k,easing:y},{mode:"enter"});Q.style.webkitTransition=l.transitions.create("-webkit-transform",{...x}),Q.style.transition=l.transitions.create("transform",{...x}),Q.style.webkitTransform="none",Q.style.transform="none",T&&T(Q,ue)}),Y=V(A),F=V(B),P=V(Q=>{const ue=Ru({timeout:z,style:k,easing:y},{mode:"exit"});Q.style.webkitTransition=l.transitions.create("-webkit-transform",ue),Q.style.transition=l.transitions.create("transform",ue),Mu(g,Q,h),N&&N(Q)}),ee=V(Q=>{Q.style.webkitTransition="",Q.style.transition="",w&&w(Q)}),q=Q=>{f&&f(H.current,Q)},Z=M.useCallback(()=>{H.current&&Mu(g,H.current,h)},[g,h]);return M.useEffect(()=>{if(v||g==="down"||g==="right")return;const Q=Mh(()=>{H.current&&Mu(g,H.current,h)}),ue=jr(H.current);return ue.addEventListener("resize",Q),()=>{Q.clear(),ue.removeEventListener("resize",Q)}},[g,v,h]),M.useEffect(()=>{v||Z()},[v,Z]),ce.jsx(R,{nodeRef:H,onEnter:E,onEntered:Y,onEntering:I,onExit:P,onExited:ee,onExiting:F,addEndListener:q,appear:d,in:v,timeout:z,..._,children:(Q,ue)=>M.cloneElement(m,{ref:ne,style:{visibility:Q==="exited"&&!v?"hidden":void 0,...k,...m.props.style},...ue})})});function E4(e){return Gn("MuiDrawer",e)}Yn("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const r1=(e,r)=>{const{ownerState:a}=e;return[r.root,(a.variant==="permanent"||a.variant==="persistent")&&r.docked,r.modal]},C4=e=>{const{classes:r,anchor:a,variant:l}=e,u={root:["root"],docked:[(l==="permanent"||l==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${pt(a)}`,l!=="temporary"&&`paperAnchorDocked${pt(a)}`]};return nr(u,E4,r)},T4=Bt(b4,{name:"MuiDrawer",slot:"Root",overridesResolver:r1})(Fn(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),i1=Bt("div",{shouldForwardProp:xm,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:r1})({flex:"0 0 auto"}),w4=Bt(qy,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[r.paper,r[`paperAnchor${pt(a.anchor)}`],a.variant!=="temporary"&&r[`paperAnchorDocked${pt(a.anchor)}`]]}})(Fn(({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:r})=>r.anchor==="left"&&r.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:r})=>r.anchor==="top"&&r.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:r})=>r.anchor==="right"&&r.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:r})=>r.anchor==="bottom"&&r.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),a1={left:"right",right:"left",top:"down",bottom:"up"};function A4(e){return["left","right"].includes(e)}function k4({direction:e},r){return e==="rtl"&&A4(r)?a1[r]:r}const R4=M.forwardRef(function(r,a){const l=Pn({props:r,name:"MuiDrawer"}),u=uu(),s=CE(),f={enter:u.transitions.duration.enteringScreen,exit:u.transitions.duration.leavingScreen},{anchor:d="left",BackdropProps:m,children:h,className:g,elevation:y=16,hideBackdrop:v=!1,ModalProps:{BackdropProps:S,...A}={},onClose:T,open:N=!1,PaperProps:w={},SlideProps:B,TransitionComponent:k=x4,transitionDuration:z=f,variant:R="temporary",..._}=l,H=M.useRef(!1);M.useEffect(()=>{H.current=!0},[]);const ne=k4({direction:s?"rtl":"ltr"},d),E={...l,anchor:d,elevation:y,open:N,variant:R,..._},I=C4(E),Y=ce.jsx(w4,{elevation:R==="temporary"?y:0,square:!0,...w,className:ot(I.paper,w.className),ownerState:E,children:h});if(R==="permanent")return ce.jsx(i1,{className:ot(I.root,I.docked,g),ownerState:E,ref:a,..._,children:Y});const F=ce.jsx(k,{in:N,direction:a1[ne],timeout:z,appear:H.current,...B,children:Y});return R==="persistent"?ce.jsx(i1,{className:ot(I.root,I.docked,g),ownerState:E,ref:a,..._,children:F}):ce.jsx(T4,{BackdropProps:{...m,...S,transitionDuration:z},className:ot(I.root,I.modal,g),open:N,ownerState:E,onClose:T,hideBackdrop:v,ref:a,..._,...A,children:F})}),O4=e=>e,M4={credentials:"include"},_4=({messageOrigin:e,transformBody:r=O4,className:a,fetchOpts:l})=>{const[u,s]=M.useState(!1),[f,d]=M.useState(null);return M.useEffect(()=>{const m=h=>{h.origin===e&&h.data.type==="smoot-design::chat-open"&&(s(!0),d(h.data.payload))};return window.addEventListener("message",m),()=>{window.removeEventListener("message",m)}},[e]),M.createElement(R4,{className:a,PaperProps:{sx:{width:"900px",maxWidth:"100%",boxSizing:"border-box",padding:"24px 40px",".MitAiChat--title":{paddingTop:"0px"}}},anchor:"right",open:u,onClose:()=>s(!1)},f?M.createElement(qR,{...f,requestOpts:{transformBody:m=>({...f.requestBody,...r==null?void 0:r(m)}),apiUrl:f==null?void 0:f.apiUrl,fetchOpts:{...M4,...l}},onClose:()=>s(!1)}):null)},D4={defaultProps:{disableRipple:!0},styleOverrides:{root:{":focus-visible":{outline:"revert"}}}},$e={mitRed:"#750014",brightRed:"#FF1423",black:"#000000",white:"#FFFFFF",darkGray2:"#212326",darkGray1:"#40464C",silverGrayDark:"#626A73",silverGray:"#8B959E",silverGrayLight:"#B8C2CC",lightGray2:"#DDE1E6",lightGray1:"#F3F4F8",navGray:"#303337",darkPink:"#750062",pink:"#FF14F0",lightPink:"#FFB3FF",darkPurple:"#3E006B",purple:"#93F",lightPurple:"#BFB3FF",darkBlue:"#002896",blue:"#1966FF",lightBlue:"#99EBFF",darkGreen:"#004D1A",green:"#00AD00",lightGreen:"#AF3",darkRed:"#83192A",red:"#A31F34",lightRed:"#D02E44",orange:"#FAB005",yellow:"#FFEB00"},z4={defaultProps:{size:"medium",color:"default",variant:"outlined",deleteIcon:M.createElement(Im,{"aria-hidden":"true"})},styleOverrides:{root:{borderRadius:"100vh",borderWidth:"1px"},deleteIcon:{"&:hover":{color:"inherit"},"&.MuiChip-deleteIconLarge":{width:"16px",height:"16px"},"&.MuiChip-deleteIconMedium":{width:"14px",height:"14px"},margin:"0 -2px 0 8px",color:"inherit"},icon:{margin:"0 8px 0 -2px",color:"inherit","&.MuiChip-iconLarge":{width:"16px",height:"16px"},"&.MuiChip-iconMedium":{width:"14px",height:"14px"}}},variants:[{props:{size:"medium"},style:({theme:e})=>({...e.typography.body3,boxSizing:"border-box",height:"24px",paddingRight:"12px",paddingLeft:"12px",".MuiChip-label":{paddingLeft:"0px",paddingRight:"0px"}})},{props:{size:"large"},style:({theme:e})=>({...e.typography.body2,height:"32px",paddingLeft:"16px",paddingRight:"16px",".MuiChip-label":{paddingLeft:"0px",paddingRight:"0px"}})},{props:{variant:"outlined"},style:{borderColor:$e.silverGrayLight,color:$e.darkGray1,"&.Mui-focusVisible":{backgroundColor:"transparent"},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:$e.darkGray1,borderColor:$e.silverGrayDark,backgroundColor:"transparent"}}},{props:{variant:"outlinedWhite"},style:{backgroundColor:"white",border:"1px solid",borderColor:$e.silverGrayLight,color:$e.darkGray1,"&.Mui-focusVisible":{backgroundColor:"white"},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:$e.darkGray1,borderColor:$e.silverGrayDark,backgroundColor:"white"}}},{props:{variant:"gray"},style:{backgroundColor:$e.lightGray2,border:"none",color:$e.darkGray2,"&.Mui-focusVisible":{backgroundColor:$e.lightGray2},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:$e.darkGray1,backgroundColor:$e.silverGrayLight}}},{props:{variant:"dark"},style:{backgroundColor:$e.silverGrayDark,border:"none",color:$e.white,"&.Mui-focusVisible":{backgroundColor:$e.silverGrayDark},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:$e.darkGray1}}},{props:{variant:"darker"},style:{backgroundColor:$e.darkGray2,border:`1px solid ${$e.darkGray1}`,color:$e.white,"&.Mui-focusVisible":{backgroundColor:$e.darkGray2},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:$e.black,border:`1px solid ${$e.silverGray}`}}},{props:{variant:"filled"},style:{backgroundColor:$e.mitRed,border:"none",color:$e.white,"&.Mui-focusVisible":{backgroundColor:$e.mitRed},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:$e.red}}}]},N4={colors:$e,dimensions:{headerHeight:"72px",headerHeightSm:"60px"}},B4={values:{xs:0,sm:600,md:900,lg:1320,xl:1536}},L4={custom:N4,palette:{primary:{main:$e.mitRed,light:$e.lightRed,active:$e.red,contrastText:$e.white},secondary:{light:$e.darkGray2,active:$e.silverGrayDark,main:$e.black,contrastText:$e.white}},shape:{borderRadius:8},spacing:8,typography:Om,breakpoints:B4,components:{MuiButtonBase:D4,MuiTypography:H2,MuiMenu:{styleOverrides:{paper:{borderRadius:"4px"}}},MuiAutocomplete:{styleOverrides:{paper:{borderRadius:"4px"},popupIndicator:{paddingRight:0,marginRight:0}}},MuiChip:z4}},l1=e=>ou(rn(L4,e)),U4=l1(),j4=({children:e,theme:r=U4})=>M.createElement(j2,{theme:r},e);var H4=function(r,a,l){for(var u=0,s=0;u=s,s=pn(),u===38&&s===12&&(a[l]=1),!di(s);)Jt();return Yi(r,Xt)},I4=function(r,a){var l=-1,u=44;do switch(di(u)){case 0:u===38&&pn()===12&&(a[l]=1),r[l]+=H4(Xt-1,a,l);break;case 2:r[l]+=Qa(u);break;case 4:if(u===44){r[++l]=pn()===58?"&\f":"",a[l]=r[l].length;break}default:r[l]+=Fa(u)}while(u=Jt());return r},V4=function(r,a){return Qs(I4(Xs(r),a))},o1=new WeakMap,$4=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var a=r.value,l=r.parent,u=r.column===l.column&&r.line===l.line;l.type!=="rule";)if(l=l.parent,!l)return;if(!(r.props.length===1&&a.charCodeAt(0)!==58&&!o1.get(l))&&!u){o1.set(r,!0);for(var s=[],f=V4(a,s),d=l.props,m=0,h=0;m<f.length;m++)for(var g=0;g<d.length;g++,h++)r.props[h]=s[m]?f[m].replace(/&\f/g,d[g]):d[g]+" "+f[m]}}},q4=function(r){if(r.type==="decl"){var a=r.value;a.charCodeAt(0)===108&&a.charCodeAt(2)===98&&(r.return="",r.value="")}};function u1(e,r){switch(Jp(e,r)){case 5103:return Se+"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 Se+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Se+e+Lr+e+Xe+e+e;case 6828:case 4268:return Se+e+Xe+e+e;case 6165:return Se+e+Xe+"flex-"+e+e;case 5187:return Se+e+xe(e,/(\w+).+(:[^]+)/,Se+"box-$1$2"+Xe+"flex-$1$2")+e;case 5443:return Se+e+Xe+"flex-item-"+xe(e,/flex-|-self/,"")+e;case 4675:return Se+e+Xe+"flex-line-pack"+xe(e,/align-content|flex-|-self/,"")+e;case 5548:return Se+e+Xe+xe(e,"shrink","negative")+e;case 5292:return Se+e+Xe+xe(e,"basis","preferred-size")+e;case 6060:return Se+"box-"+xe(e,"-grow","")+Se+e+Xe+xe(e,"grow","positive")+e;case 4554:return Se+xe(e,/([^-])(transform)/g,"$1"+Se+"$2")+e;case 6187:return xe(xe(xe(e,/(zoom-|grab)/,Se+"$1"),/(image-set)/,Se+"$1"),e,"")+e;case 5495:case 3959:return xe(e,/(image-set\([^]*)/,Se+"$1$`$1");case 4968:return xe(xe(e,/(.+:)(flex-)?(.*)/,Se+"box-pack:$3"+Xe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Se+e+e;case 4095:case 3583:case 4068:case 2532:return xe(e,/(.+)-inline(.+)/,Se+"$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(wn(e)-1-r>6)switch(ht(e,r+1)){case 109:if(ht(e,r+4)!==45)break;case 102:return xe(e,/(.+:)(.+)-([^]+)/,"$1"+Se+"$2-$3$1"+Lr+(ht(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~Pa(e,"stretch")?u1(xe(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(ht(e,r+1)!==115)break;case 6444:switch(ht(e,wn(e)-3-(~Pa(e,"!important")&&10))){case 107:return xe(e,":",":"+Se)+e;case 101:return xe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Se+(ht(e,14)===45?"inline-":"")+"box$3$1"+Se+"$2$3$1"+Xe+"$2box$3")+e}break;case 5936:switch(ht(e,r+11)){case 114:return Se+e+Xe+xe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Se+e+Xe+xe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Se+e+Xe+xe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Se+e+Xe+e+e}return e}var G4=function(r,a,l,u){if(r.length>-1&&!r.return)switch(r.type){case Io:r.return=u1(r.value,r.length);break;case Fs:return er([Jn(r,{value:xe(r.value,"@","@"+Se)})],u);case Ho:if(r.length)return nh(r.props,function(s){switch(th(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return er([Jn(r,{props:[xe(s,/:(read-\w+)/,":"+Lr+"$1")]})],u);case"::placeholder":return er([Jn(r,{props:[xe(s,/:(plac\w+)/,":"+Se+"input-$1")]}),Jn(r,{props:[xe(s,/:(plac\w+)/,":"+Lr+"$1")]}),Jn(r,{props:[xe(s,/:(plac\w+)/,Xe+"input-$1")]})],u)}return""})}},Y4=[G4],F4=function(r){var a=r.key;if(a==="css"){var l=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(l,function(T){var N=T.getAttribute("data-emotion");N.indexOf(" ")!==-1&&(document.head.appendChild(T),T.setAttribute("data-s",""))})}var u=r.stylisPlugins||Y4,s={},f,d=[];f=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+a+' "]'),function(T){for(var N=T.getAttribute("data-emotion").split(" "),w=1;w<N.length;w++)s[N[w]]=!0;d.push(T)});var m,h=[$4,q4];{var g,y=[oh,sh(function(T){g.insert(T)})],v=uh(h.concat(u,y)),S=function(N){return er(ih(N),v)};m=function(N,w,B,k){g=B,S(N?N+"{"+w.styles+"}":w.styles),k&&(A.inserted[w.name]=!0)}}var A={key:a,sheet:new Zp({key:a,container:f,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:s,registered:{},insert:m};return A.sheet.hydrate(d),A};const P4=e=>{const r=document.createElement("div");document.body.appendChild(r);const a=r.attachShadow({mode:"open"}),l=document.createElement("div");l.id="smoot-chat-drawer-root",a.append(l);const u=F4({key:"css",prepend:!0,container:a}),s=l1({components:{MuiPopover:{defaultProps:{container:l}},MuiPopper:{defaultProps:{container:l}},MuiModal:{defaultProps:{container:l}}}});QS.createRoot(l).render(M.createElement(_v,{value:u},M.createElement(j4,{theme:s},M.createElement(_4,{...e}))))};Cn.init=P4,Object.defineProperty(Cn,Symbol.toStringTag,{value:"Module"})});
|