@mitodl/smoot-design 6.1.0 → 6.2.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.
@@ -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 jp;function Y3(){if(jp)return et;jp=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),E=Symbol.iterator;function S(C){return C===null||typeof C!="object"?null:(C=E&&C[E]||C["@@iterator"],typeof C=="function"?C:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,_={};function I(C,J,oe){this.props=C,this.context=J,this.refs=_,this.updater=oe||y}I.prototype.isReactComponent={},I.prototype.setState=function(C,J){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,J,"setState")},I.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function R(){}R.prototype=I.prototype;function H(C,J,oe){this.props=C,this.context=J,this.refs=_,this.updater=oe||y}var k=H.prototype=new R;k.constructor=H,O(k,I.prototype),k.isPureReactComponent=!0;var P=Array.isArray,L={H:null,A:null,T:null,S:null},M=Object.prototype.hasOwnProperty;function j(C,J,oe,D,ce,Oe){return oe=Oe.ref,{$$typeof:e,type:C,key:J,ref:oe!==void 0?oe:null,props:Oe}}function ae(C,J){return j(C.type,J,void 0,void 0,void 0,C.props)}function V(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function A(C){var J={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(oe){return J[oe]})}var Y=/\/+/g;function W(C,J){return typeof C=="object"&&C!==null&&C.key!=null?A(""+C.key):J.toString(36)}function X(){}function Q(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(X,X):(C.status="pending",C.then(function(J){C.status==="pending"&&(C.status="fulfilled",C.value=J)},function(J){C.status==="pending"&&(C.status="rejected",C.reason=J)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function te(C,J,oe,D,ce){var Oe=typeof C;(Oe==="undefined"||Oe==="boolean")&&(C=null);var Se=!1;if(C===null)Se=!0;else switch(Oe){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(C.$$typeof){case e:case t:Se=!0;break;case b:return Se=C._init,te(Se(C._payload),J,oe,D,ce)}}if(Se)return ce=ce(C),Se=D===""?"."+W(C,0):D,P(ce)?(oe="",Se!=null&&(oe=Se.replace(Y,"$&/")+"/"),te(ce,J,oe,"",function($e){return $e})):ce!=null&&(V(ce)&&(ce=ae(ce,oe+(ce.key==null||C&&C.key===ce.key?"":(""+ce.key).replace(Y,"$&/")+"/")+Se)),J.push(ce)),1;Se=0;var tt=D===""?".":D+":";if(P(C))for(var Me=0;Me<C.length;Me++)D=C[Me],Oe=tt+W(D,Me),Se+=te(D,J,oe,Oe,ce);else if(Me=S(C),typeof Me=="function")for(C=Me.call(C),Me=0;!(D=C.next()).done;)D=D.value,Oe=tt+W(D,Me++),Se+=te(D,J,oe,Oe,ce);else if(Oe==="object"){if(typeof C.then=="function")return te(Q(C),J,oe,D,ce);throw J=String(C),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return Se}function K(C,J,oe){if(C==null)return C;var D=[],ce=0;return te(C,D,"","",function(Oe){return J.call(oe,Oe,ce++)}),D}function se(C){if(C._status===-1){var J=C._result;J=J(),J.then(function(oe){(C._status===0||C._status===-1)&&(C._status=1,C._result=oe)},function(oe){(C._status===0||C._status===-1)&&(C._status=2,C._result=oe)}),C._status===-1&&(C._status=0,C._result=J)}if(C._status===1)return C._result.default;throw C._result}var re=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(J))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)};function be(){}return et.Children={map:K,forEach:function(C,J,oe){K(C,function(){J.apply(this,arguments)},oe)},count:function(C){var J=0;return K(C,function(){J++}),J},toArray:function(C){return K(C,function(J){return J})||[]},only:function(C){if(!V(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},et.Component=I,et.Fragment=r,et.Profiler=l,et.PureComponent=H,et.StrictMode=i,et.Suspense=p,et.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,et.act=function(){throw Error("act(...) is not supported in production builds of React.")},et.cache=function(C){return function(){return C.apply(null,arguments)}},et.cloneElement=function(C,J,oe){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var D=O({},C.props),ce=C.key,Oe=void 0;if(J!=null)for(Se in J.ref!==void 0&&(Oe=void 0),J.key!==void 0&&(ce=""+J.key),J)!M.call(J,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&J.ref===void 0||(D[Se]=J[Se]);var Se=arguments.length-2;if(Se===1)D.children=oe;else if(1<Se){for(var tt=Array(Se),Me=0;Me<Se;Me++)tt[Me]=arguments[Me+2];D.children=tt}return j(C.type,ce,void 0,void 0,Oe,D)},et.createContext=function(C){return C={$$typeof:c,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:s,_context:C},C},et.createElement=function(C,J,oe){var D,ce={},Oe=null;if(J!=null)for(D in J.key!==void 0&&(Oe=""+J.key),J)M.call(J,D)&&D!=="key"&&D!=="__self"&&D!=="__source"&&(ce[D]=J[D]);var Se=arguments.length-2;if(Se===1)ce.children=oe;else if(1<Se){for(var tt=Array(Se),Me=0;Me<Se;Me++)tt[Me]=arguments[Me+2];ce.children=tt}if(C&&C.defaultProps)for(D in Se=C.defaultProps,Se)ce[D]===void 0&&(ce[D]=Se[D]);return j(C,Oe,void 0,void 0,null,ce)},et.createRef=function(){return{current:null}},et.forwardRef=function(C){return{$$typeof:d,render:C}},et.isValidElement=V,et.lazy=function(C){return{$$typeof:b,_payload:{_status:-1,_result:C},_init:se}},et.memo=function(C,J){return{$$typeof:m,type:C,compare:J===void 0?null:J}},et.startTransition=function(C){var J=L.T,oe={};L.T=oe;try{var D=C(),ce=L.S;ce!==null&&ce(oe,D),typeof D=="object"&&D!==null&&typeof D.then=="function"&&D.then(be,re)}catch(Oe){re(Oe)}finally{L.T=J}},et.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},et.use=function(C){return L.H.use(C)},et.useActionState=function(C,J,oe){return L.H.useActionState(C,J,oe)},et.useCallback=function(C,J){return L.H.useCallback(C,J)},et.useContext=function(C){return L.H.useContext(C)},et.useDebugValue=function(){},et.useDeferredValue=function(C,J){return L.H.useDeferredValue(C,J)},et.useEffect=function(C,J){return L.H.useEffect(C,J)},et.useId=function(){return L.H.useId()},et.useImperativeHandle=function(C,J,oe){return L.H.useImperativeHandle(C,J,oe)},et.useInsertionEffect=function(C,J){return L.H.useInsertionEffect(C,J)},et.useLayoutEffect=function(C,J){return L.H.useLayoutEffect(C,J)},et.useMemo=function(C,J){return L.H.useMemo(C,J)},et.useOptimistic=function(C,J){return L.H.useOptimistic(C,J)},et.useReducer=function(C,J,oe){return L.H.useReducer(C,J,oe)},et.useRef=function(C){return L.H.useRef(C)},et.useState=function(C){return L.H.useState(C)},et.useSyncExternalStore=function(C,J,oe){return L.H.useSyncExternalStore(C,J,oe)},et.useTransition=function(){return L.H.useTransition()},et.version="19.0.0",et}var Vp;function as(){return Vp||(Vp=1,Sf.exports=Y3()),Sf.exports}var x=as();const xt=ur(x),$p=qn({__proto__:null,default:xt},[x]);var Cf={exports:{}},Wu={},Af={exports:{}},xf={};/**
9
+ */var jp;function Y3(){if(jp)return et;jp=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),E=Symbol.iterator;function S(C){return C===null||typeof C!="object"?null:(C=E&&C[E]||C["@@iterator"],typeof C=="function"?C:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,_={};function I(C,J,oe){this.props=C,this.context=J,this.refs=_,this.updater=oe||y}I.prototype.isReactComponent={},I.prototype.setState=function(C,J){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,J,"setState")},I.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function v(){}v.prototype=I.prototype;function H(C,J,oe){this.props=C,this.context=J,this.refs=_,this.updater=oe||y}var k=H.prototype=new v;k.constructor=H,O(k,I.prototype),k.isPureReactComponent=!0;var P=Array.isArray,L={H:null,A:null,T:null,S:null},M=Object.prototype.hasOwnProperty;function j(C,J,oe,D,ce,Oe){return oe=Oe.ref,{$$typeof:e,type:C,key:J,ref:oe!==void 0?oe:null,props:Oe}}function ae(C,J){return j(C.type,J,void 0,void 0,void 0,C.props)}function V(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function A(C){var J={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(oe){return J[oe]})}var Y=/\/+/g;function W(C,J){return typeof C=="object"&&C!==null&&C.key!=null?A(""+C.key):J.toString(36)}function Q(){}function G(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(Q,Q):(C.status="pending",C.then(function(J){C.status==="pending"&&(C.status="fulfilled",C.value=J)},function(J){C.status==="pending"&&(C.status="rejected",C.reason=J)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function ee(C,J,oe,D,ce){var Oe=typeof C;(Oe==="undefined"||Oe==="boolean")&&(C=null);var Se=!1;if(C===null)Se=!0;else switch(Oe){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(C.$$typeof){case e:case t:Se=!0;break;case b:return Se=C._init,ee(Se(C._payload),J,oe,D,ce)}}if(Se)return ce=ce(C),Se=D===""?"."+W(C,0):D,P(ce)?(oe="",Se!=null&&(oe=Se.replace(Y,"$&/")+"/"),ee(ce,J,oe,"",function($e){return $e})):ce!=null&&(V(ce)&&(ce=ae(ce,oe+(ce.key==null||C&&C.key===ce.key?"":(""+ce.key).replace(Y,"$&/")+"/")+Se)),J.push(ce)),1;Se=0;var tt=D===""?".":D+":";if(P(C))for(var Me=0;Me<C.length;Me++)D=C[Me],Oe=tt+W(D,Me),Se+=ee(D,J,oe,Oe,ce);else if(Me=S(C),typeof Me=="function")for(C=Me.call(C),Me=0;!(D=C.next()).done;)D=D.value,Oe=tt+W(D,Me++),Se+=ee(D,J,oe,Oe,ce);else if(Oe==="object"){if(typeof C.then=="function")return ee(G(C),J,oe,D,ce);throw J=String(C),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return Se}function K(C,J,oe){if(C==null)return C;var D=[],ce=0;return ee(C,D,"","",function(Oe){return J.call(oe,Oe,ce++)}),D}function se(C){if(C._status===-1){var J=C._result;J=J(),J.then(function(oe){(C._status===0||C._status===-1)&&(C._status=1,C._result=oe)},function(oe){(C._status===0||C._status===-1)&&(C._status=2,C._result=oe)}),C._status===-1&&(C._status=0,C._result=J)}if(C._status===1)return C._result.default;throw C._result}var re=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(J))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)};function be(){}return et.Children={map:K,forEach:function(C,J,oe){K(C,function(){J.apply(this,arguments)},oe)},count:function(C){var J=0;return K(C,function(){J++}),J},toArray:function(C){return K(C,function(J){return J})||[]},only:function(C){if(!V(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},et.Component=I,et.Fragment=r,et.Profiler=l,et.PureComponent=H,et.StrictMode=i,et.Suspense=p,et.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,et.act=function(){throw Error("act(...) is not supported in production builds of React.")},et.cache=function(C){return function(){return C.apply(null,arguments)}},et.cloneElement=function(C,J,oe){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var D=O({},C.props),ce=C.key,Oe=void 0;if(J!=null)for(Se in J.ref!==void 0&&(Oe=void 0),J.key!==void 0&&(ce=""+J.key),J)!M.call(J,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&J.ref===void 0||(D[Se]=J[Se]);var Se=arguments.length-2;if(Se===1)D.children=oe;else if(1<Se){for(var tt=Array(Se),Me=0;Me<Se;Me++)tt[Me]=arguments[Me+2];D.children=tt}return j(C.type,ce,void 0,void 0,Oe,D)},et.createContext=function(C){return C={$$typeof:c,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:s,_context:C},C},et.createElement=function(C,J,oe){var D,ce={},Oe=null;if(J!=null)for(D in J.key!==void 0&&(Oe=""+J.key),J)M.call(J,D)&&D!=="key"&&D!=="__self"&&D!=="__source"&&(ce[D]=J[D]);var Se=arguments.length-2;if(Se===1)ce.children=oe;else if(1<Se){for(var tt=Array(Se),Me=0;Me<Se;Me++)tt[Me]=arguments[Me+2];ce.children=tt}if(C&&C.defaultProps)for(D in Se=C.defaultProps,Se)ce[D]===void 0&&(ce[D]=Se[D]);return j(C,Oe,void 0,void 0,null,ce)},et.createRef=function(){return{current:null}},et.forwardRef=function(C){return{$$typeof:d,render:C}},et.isValidElement=V,et.lazy=function(C){return{$$typeof:b,_payload:{_status:-1,_result:C},_init:se}},et.memo=function(C,J){return{$$typeof:m,type:C,compare:J===void 0?null:J}},et.startTransition=function(C){var J=L.T,oe={};L.T=oe;try{var D=C(),ce=L.S;ce!==null&&ce(oe,D),typeof D=="object"&&D!==null&&typeof D.then=="function"&&D.then(be,re)}catch(Oe){re(Oe)}finally{L.T=J}},et.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},et.use=function(C){return L.H.use(C)},et.useActionState=function(C,J,oe){return L.H.useActionState(C,J,oe)},et.useCallback=function(C,J){return L.H.useCallback(C,J)},et.useContext=function(C){return L.H.useContext(C)},et.useDebugValue=function(){},et.useDeferredValue=function(C,J){return L.H.useDeferredValue(C,J)},et.useEffect=function(C,J){return L.H.useEffect(C,J)},et.useId=function(){return L.H.useId()},et.useImperativeHandle=function(C,J,oe){return L.H.useImperativeHandle(C,J,oe)},et.useInsertionEffect=function(C,J){return L.H.useInsertionEffect(C,J)},et.useLayoutEffect=function(C,J){return L.H.useLayoutEffect(C,J)},et.useMemo=function(C,J){return L.H.useMemo(C,J)},et.useOptimistic=function(C,J){return L.H.useOptimistic(C,J)},et.useReducer=function(C,J,oe){return L.H.useReducer(C,J,oe)},et.useRef=function(C){return L.H.useRef(C)},et.useState=function(C){return L.H.useState(C)},et.useSyncExternalStore=function(C,J,oe){return L.H.useSyncExternalStore(C,J,oe)},et.useTransition=function(){return L.H.useTransition()},et.version="19.0.0",et}var Vp;function as(){return Vp||(Vp=1,Sf.exports=Y3()),Sf.exports}var x=as();const xt=ur(x),$p=qn({__proto__:null,default:xt},[x]);var Cf={exports:{}},Wu={},Af={exports:{}},xf={};/**
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 qp;function j3(){return qp||(qp=1,function(e){function t(K,se){var re=K.length;K.push(se);e:for(;0<re;){var be=re-1>>>1,C=K[be];if(0<l(C,se))K[be]=se,K[re]=C,re=be;else break e}}function r(K){return K.length===0?null:K[0]}function i(K){if(K.length===0)return null;var se=K[0],re=K.pop();if(re!==se){K[0]=re;e:for(var be=0,C=K.length,J=C>>>1;be<J;){var oe=2*(be+1)-1,D=K[oe],ce=oe+1,Oe=K[ce];if(0>l(D,re))ce<C&&0>l(Oe,D)?(K[be]=Oe,K[ce]=re,be=ce):(K[be]=D,K[oe]=re,be=oe);else if(ce<C&&0>l(Oe,re))K[be]=Oe,K[ce]=re,be=ce;else break e}}return se}function l(K,se){var re=K.sortIndex-se.sortIndex;return re!==0?re:K.id-se.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var p=[],m=[],b=1,E=null,S=3,y=!1,O=!1,_=!1,I=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function k(K){for(var se=r(m);se!==null;){if(se.callback===null)i(m);else if(se.startTime<=K)i(m),se.sortIndex=se.expirationTime,t(p,se);else break;se=r(m)}}function P(K){if(_=!1,k(K),!O)if(r(p)!==null)O=!0,Q();else{var se=r(m);se!==null&&te(P,se.startTime-K)}}var L=!1,M=-1,j=5,ae=-1;function V(){return!(e.unstable_now()-ae<j)}function A(){if(L){var K=e.unstable_now();ae=K;var se=!0;try{e:{O=!1,_&&(_=!1,R(M),M=-1),y=!0;var re=S;try{t:{for(k(K),E=r(p);E!==null&&!(E.expirationTime>K&&V());){var be=E.callback;if(typeof be=="function"){E.callback=null,S=E.priorityLevel;var C=be(E.expirationTime<=K);if(K=e.unstable_now(),typeof C=="function"){E.callback=C,k(K),se=!0;break t}E===r(p)&&i(p),k(K)}else i(p);E=r(p)}if(E!==null)se=!0;else{var J=r(m);J!==null&&te(P,J.startTime-K),se=!1}}break e}finally{E=null,S=re,y=!1}se=void 0}}finally{se?Y():L=!1}}}var Y;if(typeof H=="function")Y=function(){H(A)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,X=W.port2;W.port1.onmessage=A,Y=function(){X.postMessage(null)}}else Y=function(){I(A,0)};function Q(){L||(L=!0,Y())}function te(K,se){M=I(function(){K(e.unstable_now())},se)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(K){K.callback=null},e.unstable_continueExecution=function(){O||y||(O=!0,Q())},e.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<K?Math.floor(1e3/K):5},e.unstable_getCurrentPriorityLevel=function(){return S},e.unstable_getFirstCallbackNode=function(){return r(p)},e.unstable_next=function(K){switch(S){case 1:case 2:case 3:var se=3;break;default:se=S}var re=S;S=se;try{return K()}finally{S=re}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(K,se){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var re=S;S=K;try{return se()}finally{S=re}},e.unstable_scheduleCallback=function(K,se,re){var be=e.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?be+re:be):re=be,K){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=re+C,K={id:b++,callback:se,priorityLevel:K,startTime:re,expirationTime:C,sortIndex:-1},re>be?(K.sortIndex=re,t(m,K),r(p)===null&&K===r(m)&&(_?(R(M),M=-1):_=!0,te(P,re-be))):(K.sortIndex=C,t(p,K),O||y||(O=!0,Q())),K},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(K){var se=S;return function(){var re=S;S=se;try{return K.apply(this,arguments)}finally{S=re}}}}(xf)),xf}var Gp;function V3(){return Gp||(Gp=1,Af.exports=j3()),Af.exports}var _f={exports:{}},Sn={};/**
17
+ */var qp;function j3(){return qp||(qp=1,function(e){function t(K,se){var re=K.length;K.push(se);e:for(;0<re;){var be=re-1>>>1,C=K[be];if(0<l(C,se))K[be]=se,K[re]=C,re=be;else break e}}function r(K){return K.length===0?null:K[0]}function i(K){if(K.length===0)return null;var se=K[0],re=K.pop();if(re!==se){K[0]=re;e:for(var be=0,C=K.length,J=C>>>1;be<J;){var oe=2*(be+1)-1,D=K[oe],ce=oe+1,Oe=K[ce];if(0>l(D,re))ce<C&&0>l(Oe,D)?(K[be]=Oe,K[ce]=re,be=ce):(K[be]=D,K[oe]=re,be=oe);else if(ce<C&&0>l(Oe,re))K[be]=Oe,K[ce]=re,be=ce;else break e}}return se}function l(K,se){var re=K.sortIndex-se.sortIndex;return re!==0?re:K.id-se.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var p=[],m=[],b=1,E=null,S=3,y=!1,O=!1,_=!1,I=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function k(K){for(var se=r(m);se!==null;){if(se.callback===null)i(m);else if(se.startTime<=K)i(m),se.sortIndex=se.expirationTime,t(p,se);else break;se=r(m)}}function P(K){if(_=!1,k(K),!O)if(r(p)!==null)O=!0,G();else{var se=r(m);se!==null&&ee(P,se.startTime-K)}}var L=!1,M=-1,j=5,ae=-1;function V(){return!(e.unstable_now()-ae<j)}function A(){if(L){var K=e.unstable_now();ae=K;var se=!0;try{e:{O=!1,_&&(_=!1,v(M),M=-1),y=!0;var re=S;try{t:{for(k(K),E=r(p);E!==null&&!(E.expirationTime>K&&V());){var be=E.callback;if(typeof be=="function"){E.callback=null,S=E.priorityLevel;var C=be(E.expirationTime<=K);if(K=e.unstable_now(),typeof C=="function"){E.callback=C,k(K),se=!0;break t}E===r(p)&&i(p),k(K)}else i(p);E=r(p)}if(E!==null)se=!0;else{var J=r(m);J!==null&&ee(P,J.startTime-K),se=!1}}break e}finally{E=null,S=re,y=!1}se=void 0}}finally{se?Y():L=!1}}}var Y;if(typeof H=="function")Y=function(){H(A)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,Q=W.port2;W.port1.onmessage=A,Y=function(){Q.postMessage(null)}}else Y=function(){I(A,0)};function G(){L||(L=!0,Y())}function ee(K,se){M=I(function(){K(e.unstable_now())},se)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(K){K.callback=null},e.unstable_continueExecution=function(){O||y||(O=!0,G())},e.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<K?Math.floor(1e3/K):5},e.unstable_getCurrentPriorityLevel=function(){return S},e.unstable_getFirstCallbackNode=function(){return r(p)},e.unstable_next=function(K){switch(S){case 1:case 2:case 3:var se=3;break;default:se=S}var re=S;S=se;try{return K()}finally{S=re}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(K,se){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var re=S;S=K;try{return se()}finally{S=re}},e.unstable_scheduleCallback=function(K,se,re){var be=e.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?be+re:be):re=be,K){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=re+C,K={id:b++,callback:se,priorityLevel:K,startTime:re,expirationTime:C,sortIndex:-1},re>be?(K.sortIndex=re,t(m,K),r(p)===null&&K===r(m)&&(_?(v(M),M=-1):_=!0,ee(P,re-be))):(K.sortIndex=C,t(p,K),O||y||(O=!0,G())),K},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(K){var se=S;return function(){var re=S;S=se;try{return K.apply(this,arguments)}finally{S=re}}}}(xf)),xf}var Gp;function V3(){return Gp||(Gp=1,Af.exports=j3()),Af.exports}var _f={exports:{}},Sn={};/**
18
18
  * @license React
19
19
  * react-dom.production.js
20
20
  *
@@ -30,23 +30,23 @@
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 Wp;function q3(){if(Wp)return Wu;Wp=1;var e=V3(),t=as(),r=Kp();function i(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}var s=Symbol.for("react.element"),c=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),S=Symbol.for("react.consumer"),y=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),P=Symbol.for("react.memo_cache_sentinel"),L=Symbol.iterator;function M(n){return n===null||typeof n!="object"?null:(n=L&&n[L]||n["@@iterator"],typeof n=="function"?n:null)}var j=Symbol.for("react.client.reference");function ae(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===j?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case p:return"Fragment";case d:return"Portal";case b:return"Profiler";case m:return"StrictMode";case _:return"Suspense";case I:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case y:return(n.displayName||"Context")+".Provider";case S:return(n._context.displayName||"Context")+".Consumer";case O:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case R:return a=n.displayName||null,a!==null?a:ae(n.type)||"Memo";case H:a=n._payload,n=n._init;try{return ae(n(a))}catch{}}return null}var V=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.assign,Y,W;function X(n){if(Y===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);Y=a&&a[1]||"",W=-1<u.stack.indexOf(`
33
+ */var Wp;function q3(){if(Wp)return Wu;Wp=1;var e=V3(),t=as(),r=Kp();function i(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}var s=Symbol.for("react.element"),c=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),S=Symbol.for("react.consumer"),y=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),P=Symbol.for("react.memo_cache_sentinel"),L=Symbol.iterator;function M(n){return n===null||typeof n!="object"?null:(n=L&&n[L]||n["@@iterator"],typeof n=="function"?n:null)}var j=Symbol.for("react.client.reference");function ae(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===j?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case p:return"Fragment";case d:return"Portal";case b:return"Profiler";case m:return"StrictMode";case _:return"Suspense";case I:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case y:return(n.displayName||"Context")+".Provider";case S:return(n._context.displayName||"Context")+".Consumer";case O:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case v:return a=n.displayName||null,a!==null?a:ae(n.type)||"Memo";case H:a=n._payload,n=n._init;try{return ae(n(a))}catch{}}return null}var V=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.assign,Y,W;function Q(n){if(Y===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);Y=a&&a[1]||"",W=-1<u.stack.indexOf(`
34
34
  at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
35
- `+Y+n+W}var Q=!1;function te(n,a){if(!n||Q)return"";Q=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(a){var he=function(){throw Error()};if(Object.defineProperty(he.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(he,[])}catch(ue){var Z=ue}Reflect.construct(n,[],he)}else{try{he.call()}catch(ue){Z=ue}n.call(he.prototype)}}else{try{throw Error()}catch(ue){Z=ue}(he=n())&&typeof he.catch=="function"&&he.catch(function(){})}}catch(ue){if(ue&&Z&&typeof ue.stack=="string")return[ue.stack,Z.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=o.DetermineComponentFrameRoot(),T=h[0],v=h[1];if(T&&v){var B=T.split(`
36
- `),z=v.split(`
35
+ `+Y+n+W}var G=!1;function ee(n,a){if(!n||G)return"";G=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(a){var he=function(){throw Error()};if(Object.defineProperty(he.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(he,[])}catch(ue){var Z=ue}Reflect.construct(n,[],he)}else{try{he.call()}catch(ue){Z=ue}n.call(he.prototype)}}else{try{throw Error()}catch(ue){Z=ue}(he=n())&&typeof he.catch=="function"&&he.catch(function(){})}}catch(ue){if(ue&&Z&&typeof ue.stack=="string")return[ue.stack,Z.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=o.DetermineComponentFrameRoot(),T=h[0],R=h[1];if(T&&R){var B=T.split(`
36
+ `),z=R.split(`
37
37
  `);for(f=o=0;o<B.length&&!B[o].includes("DetermineComponentFrameRoot");)o++;for(;f<z.length&&!z[f].includes("DetermineComponentFrameRoot");)f++;if(o===B.length||f===z.length)for(o=B.length-1,f=z.length-1;1<=o&&0<=f&&B[o]!==z[f];)f--;for(;1<=o&&0<=f;o--,f--)if(B[o]!==z[f]){if(o!==1||f!==1)do if(o--,f--,0>f||B[o]!==z[f]){var le=`
38
- `+B[o].replace(" at new "," at ");return n.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",n.displayName)),le}while(1<=o&&0<=f);break}}}finally{Q=!1,Error.prepareStackTrace=u}return(u=n?n.displayName||n.name:"")?X(u):""}function K(n){switch(n.tag){case 26:case 27:case 5:return X(n.type);case 16:return X("Lazy");case 13:return X("Suspense");case 19:return X("SuspenseList");case 0:case 15:return n=te(n.type,!1),n;case 11:return n=te(n.type.render,!1),n;case 1:return n=te(n.type,!0),n;default:return""}}function se(n){try{var a="";do a+=K(n),n=n.return;while(n);return a}catch(u){return`
38
+ `+B[o].replace(" at new "," at ");return n.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",n.displayName)),le}while(1<=o&&0<=f);break}}}finally{G=!1,Error.prepareStackTrace=u}return(u=n?n.displayName||n.name:"")?Q(u):""}function K(n){switch(n.tag){case 26:case 27:case 5:return Q(n.type);case 16:return Q("Lazy");case 13:return Q("Suspense");case 19:return Q("SuspenseList");case 0:case 15:return n=ee(n.type,!1),n;case 11:return n=ee(n.type.render,!1),n;case 1:return n=ee(n.type,!0),n;default:return""}}function se(n){try{var a="";do a+=K(n),n=n.return;while(n);return a}catch(u){return`
39
39
  Error generating stack: `+u.message+`
40
- `+u.stack}}function re(n){var a=n,u=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(u=a.return),n=a.return;while(n)}return a.tag===3?u:null}function be(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function C(n){if(re(n)!==n)throw Error(i(188))}function J(n){var a=n.alternate;if(!a){if(a=re(n),a===null)throw Error(i(188));return a!==n?null:n}for(var u=n,o=a;;){var f=u.return;if(f===null)break;var h=f.alternate;if(h===null){if(o=f.return,o!==null){u=o;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===u)return C(f),n;if(h===o)return C(f),a;h=h.sibling}throw Error(i(188))}if(u.return!==o.return)u=f,o=h;else{for(var T=!1,v=f.child;v;){if(v===u){T=!0,u=f,o=h;break}if(v===o){T=!0,o=f,u=h;break}v=v.sibling}if(!T){for(v=h.child;v;){if(v===u){T=!0,u=h,o=f;break}if(v===o){T=!0,o=h,u=f;break}v=v.sibling}if(!T)throw Error(i(189))}}if(u.alternate!==o)throw Error(i(190))}if(u.tag!==3)throw Error(i(188));return u.stateNode.current===u?n:a}function oe(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=oe(n),a!==null)return a;n=n.sibling}return null}var D=Array.isArray,ce=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Oe={pending:!1,data:null,method:null,action:null},Se=[],tt=-1;function Me(n){return{current:n}}function $e(n){0>tt||(n.current=Se[tt],Se[tt]=null,tt--)}function xe(n,a){tt++,Se[tt]=n.current,n.current=a}var Ge=Me(null),ve=Me(null),Re=Me(null),Ce=Me(null);function Be(n,a){switch(xe(Re,a),xe(ve,n),xe(Ge,null),n=a.nodeType,n){case 9:case 11:a=(a=a.documentElement)&&(a=a.namespaceURI)?g3(a):0;break;default:if(n=n===8?a.parentNode:a,a=n.tagName,n=n.namespaceURI)n=g3(n),a=b3(n,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}$e(Ge),xe(Ge,a)}function it(){$e(Ge),$e(ve),$e(Re)}function je(n){n.memoizedState!==null&&xe(Ce,n);var a=Ge.current,u=b3(a,n.type);a!==u&&(xe(ve,n),xe(Ge,u))}function Ue(n){ve.current===n&&($e(Ge),$e(ve)),Ce.current===n&&($e(Ce),Zo._currentValue=Oe)}var ct=Object.prototype.hasOwnProperty,St=e.unstable_scheduleCallback,rn=e.unstable_cancelCallback,_n=e.unstable_shouldYield,we=e.unstable_requestPaint,Xe=e.unstable_now,$t=e.unstable_getCurrentPriorityLevel,ee=e.unstable_ImmediatePriority,de=e.unstable_UserBlockingPriority,Ae=e.unstable_NormalPriority,He=e.unstable_LowPriority,nt=e.unstable_IdlePriority,Qe=e.log,vn=e.unstable_setDisableYieldValue,an=null,Ft=null;function ke(n){if(Ft&&typeof Ft.onCommitFiberRoot=="function")try{Ft.onCommitFiberRoot(an,n,void 0,(n.current.flags&128)===128)}catch{}}function _e(n){if(typeof Qe=="function"&&vn(n),Ft&&typeof Ft.setStrictMode=="function")try{Ft.setStrictMode(an,n)}catch{}}var ze=Math.clz32?Math.clz32:gr,Ke=Math.log,Ht=Math.LN2;function gr(n){return n>>>=0,n===0?32:31-(Ke(n)/Ht|0)|0}var br=128,Xr=4194304;function Qr(n){var a=n&42;if(a!==0)return a;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128: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&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Ma(n,a){var u=n.pendingLanes;if(u===0)return 0;var o=0,f=n.suspendedLanes,h=n.pingedLanes,T=n.warmLanes;n=n.finishedLanes!==0;var v=u&134217727;return v!==0?(u=v&~f,u!==0?o=Qr(u):(h&=v,h!==0?o=Qr(h):n||(T=v&~T,T!==0&&(o=Qr(T))))):(v=u&~f,v!==0?o=Qr(v):h!==0?o=Qr(h):n||(T=u&~T,T!==0&&(o=Qr(T)))),o===0?0:a!==0&&a!==o&&(a&f)===0&&(f=o&-o,T=a&-a,f>=T||f===32&&(T&4194176)!==0)?a:o}function lo(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function kI(n,a){switch(n){case 1:case 2:case 4:case 8:return a+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 a+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 oy(){var n=br;return br<<=1,(br&4194176)===0&&(br=128),n}function sy(){var n=Xr;return Xr<<=1,(Xr&62914560)===0&&(Xr=4194304),n}function P0(n){for(var a=[],u=0;31>u;u++)a.push(n);return a}function oo(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function DI(n,a,u,o,f,h){var T=n.pendingLanes;n.pendingLanes=u,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=u,n.entangledLanes&=u,n.errorRecoveryDisabledLanes&=u,n.shellSuspendCounter=0;var v=n.entanglements,B=n.expirationTimes,z=n.hiddenUpdates;for(u=T&~u;0<u;){var le=31-ze(u),he=1<<le;v[le]=0,B[le]=-1;var Z=z[le];if(Z!==null)for(z[le]=null,le=0;le<Z.length;le++){var ue=Z[le];ue!==null&&(ue.lane&=-536870913)}u&=~he}o!==0&&cy(n,o,0),h!==0&&f===0&&n.tag!==0&&(n.suspendedLanes|=h&~(T&~a))}function cy(n,a,u){n.pendingLanes|=a,n.suspendedLanes&=~a;var o=31-ze(a);n.entangledLanes|=a,n.entanglements[o]=n.entanglements[o]|1073741824|u&4194218}function fy(n,a){var u=n.entangledLanes|=a;for(n=n.entanglements;u;){var o=31-ze(u),f=1<<o;f&a|n[o]&a&&(n[o]|=a),u&=~f}}function dy(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function hy(){var n=ce.p;return n!==0?n:(n=window.event,n===void 0?32:M3(n.type))}function LI(n,a){var u=ce.p;try{return ce.p=n,a()}finally{ce.p=u}}var Ba=Math.random().toString(36).slice(2),Rn="__reactFiber$"+Ba,jn="__reactProps$"+Ba,gu="__reactContainer$"+Ba,U0="__reactEvents$"+Ba,II="__reactListeners$"+Ba,wI="__reactHandles$"+Ba,py="__reactResources$"+Ba,so="__reactMarker$"+Ba;function H0(n){delete n[Rn],delete n[jn],delete n[U0],delete n[II],delete n[wI]}function yi(n){var a=n[Rn];if(a)return a;for(var u=n.parentNode;u;){if(a=u[gu]||u[Rn]){if(u=a.alternate,a.child!==null||u!==null&&u.child!==null)for(n=T3(n);n!==null;){if(u=n[Rn])return u;n=T3(n)}return a}n=u,u=n.parentNode}return null}function bu(n){if(n=n[Rn]||n[gu]){var a=n.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return n}return null}function co(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(i(33))}function Eu(n){var a=n[py];return a||(a=n[py]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function hn(n){n[so]=!0}var my=new Set,gy={};function Ti(n,a){yu(n,a),yu(n+"Capture",a)}function yu(n,a){for(gy[n]=a,n=0;n<a.length;n++)my.add(a[n])}var la=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),MI=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]*$"),by={},Ey={};function BI(n){return ct.call(Ey,n)?!0:ct.call(by,n)?!1:MI.test(n)?Ey[n]=!0:(by[n]=!0,!1)}function hc(n,a,u){if(BI(a))if(u===null)n.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var o=a.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,""+u)}}function pc(n,a,u){if(u===null)n.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+u)}}function oa(n,a,u,o){if(o===null)n.removeAttribute(u);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(u);return}n.setAttributeNS(a,u,""+o)}}function Er(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function yy(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function PI(n){var a=yy(n)?"checked":"value",u=Object.getOwnPropertyDescriptor(n.constructor.prototype,a),o=""+n[a];if(!n.hasOwnProperty(a)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var f=u.get,h=u.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return f.call(this)},set:function(T){o=""+T,h.call(this,T)}}),Object.defineProperty(n,a,{enumerable:u.enumerable}),{getValue:function(){return o},setValue:function(T){o=""+T},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function mc(n){n._valueTracker||(n._valueTracker=PI(n))}function Ty(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var u=a.getValue(),o="";return n&&(o=yy(n)?n.checked?"true":"false":n.value),n=o,n!==u?(a.setValue(n),!0):!1}function gc(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var UI=/[\n"\\]/g;function yr(n){return n.replace(UI,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function F0(n,a,u,o,f,h,T,v){n.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?n.type=T:n.removeAttribute("type"),a!=null?T==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+Er(a)):n.value!==""+Er(a)&&(n.value=""+Er(a)):T!=="submit"&&T!=="reset"||n.removeAttribute("value"),a!=null?z0(n,T,Er(a)):u!=null?z0(n,T,Er(u)):o!=null&&n.removeAttribute("value"),f==null&&h!=null&&(n.defaultChecked=!!h),f!=null&&(n.checked=f&&typeof f!="function"&&typeof f!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?n.name=""+Er(v):n.removeAttribute("name")}function Sy(n,a,u,o,f,h,T,v){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(n.type=h),a!=null||u!=null){if(!(h!=="submit"&&h!=="reset"||a!=null))return;u=u!=null?""+Er(u):"",a=a!=null?""+Er(a):u,v||a===n.value||(n.value=a),n.defaultValue=a}o=o??f,o=typeof o!="function"&&typeof o!="symbol"&&!!o,n.checked=v?n.checked:!!o,n.defaultChecked=!!o,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(n.name=T)}function z0(n,a,u){a==="number"&&gc(n.ownerDocument)===n||n.defaultValue===""+u||(n.defaultValue=""+u)}function Tu(n,a,u,o){if(n=n.options,a){a={};for(var f=0;f<u.length;f++)a["$"+u[f]]=!0;for(u=0;u<n.length;u++)f=a.hasOwnProperty("$"+n[u].value),n[u].selected!==f&&(n[u].selected=f),f&&o&&(n[u].defaultSelected=!0)}else{for(u=""+Er(u),a=null,f=0;f<n.length;f++){if(n[f].value===u){n[f].selected=!0,o&&(n[f].defaultSelected=!0);return}a!==null||n[f].disabled||(a=n[f])}a!==null&&(a.selected=!0)}}function Cy(n,a,u){if(a!=null&&(a=""+Er(a),a!==n.value&&(n.value=a),u==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=u!=null?""+Er(u):""}function Ay(n,a,u,o){if(a==null){if(o!=null){if(u!=null)throw Error(i(92));if(D(o)){if(1<o.length)throw Error(i(93));o=o[0]}u=o}u==null&&(u=""),a=u}u=Er(a),n.defaultValue=u,o=n.textContent,o===u&&o!==""&&o!==null&&(n.value=o)}function Su(n,a){if(a){var u=n.firstChild;if(u&&u===n.lastChild&&u.nodeType===3){u.nodeValue=a;return}}n.textContent=a}var HI=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 xy(n,a,u){var o=a.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?o?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":o?n.setProperty(a,u):typeof u!="number"||u===0||HI.has(a)?a==="float"?n.cssFloat=u:n[a]=(""+u).trim():n[a]=u+"px"}function _y(n,a,u){if(a!=null&&typeof a!="object")throw Error(i(62));if(n=n.style,u!=null){for(var o in u)!u.hasOwnProperty(o)||a!=null&&a.hasOwnProperty(o)||(o.indexOf("--")===0?n.setProperty(o,""):o==="float"?n.cssFloat="":n[o]="");for(var f in a)o=a[f],a.hasOwnProperty(f)&&u[f]!==o&&xy(n,f,o)}else for(var h in a)a.hasOwnProperty(h)&&xy(n,h,a[h])}function Y0(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var FI=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"]]),zI=/^[\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 bc(n){return zI.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var j0=null;function V0(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Cu=null,Au=null;function vy(n){var a=bu(n);if(a&&(n=a.stateNode)){var u=n[jn]||null;e:switch(n=a.stateNode,a.type){case"input":if(F0(n,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),a=u.name,u.type==="radio"&&a!=null){for(u=n;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+yr(""+a)+'"][type="radio"]'),a=0;a<u.length;a++){var o=u[a];if(o!==n&&o.form===n.form){var f=o[jn]||null;if(!f)throw Error(i(90));F0(o,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(a=0;a<u.length;a++)o=u[a],o.form===n.form&&Ty(o)}break e;case"textarea":Cy(n,u.value,u.defaultValue);break e;case"select":a=u.value,a!=null&&Tu(n,!!u.multiple,a,!1)}}}var $0=!1;function Ry(n,a,u){if($0)return n(a,u);$0=!0;try{var o=n(a);return o}finally{if($0=!1,(Cu!==null||Au!==null)&&(ef(),Cu&&(a=Cu,n=Au,Au=Cu=null,vy(a),n)))for(a=0;a<n.length;a++)vy(n[a])}}function fo(n,a){var u=n.stateNode;if(u===null)return null;var o=u[jn]||null;if(o===null)return null;u=o[a];e:switch(a){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)||(n=n.type,o=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!o;break e;default:n=!1}if(n)return null;if(u&&typeof u!="function")throw Error(i(231,a,typeof u));return u}var q0=!1;if(la)try{var ho={};Object.defineProperty(ho,"passive",{get:function(){q0=!0}}),window.addEventListener("test",ho,ho),window.removeEventListener("test",ho,ho)}catch{q0=!1}var Pa=null,G0=null,Ec=null;function Oy(){if(Ec)return Ec;var n,a=G0,u=a.length,o,f="value"in Pa?Pa.value:Pa.textContent,h=f.length;for(n=0;n<u&&a[n]===f[n];n++);var T=u-n;for(o=1;o<=T&&a[u-o]===f[h-o];o++);return Ec=f.slice(n,1<o?1-o:void 0)}function yc(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function Tc(){return!0}function Ny(){return!1}function Vn(n){function a(u,o,f,h,T){this._reactName=u,this._targetInst=f,this.type=o,this.nativeEvent=h,this.target=T,this.currentTarget=null;for(var v in n)n.hasOwnProperty(v)&&(u=n[v],this[v]=u?u(h):h[v]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Tc:Ny,this.isPropagationStopped=Ny,this}return A(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Tc)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Tc)},persist:function(){},isPersistent:Tc}),a}var Si={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sc=Vn(Si),po=A({},Si,{view:0,detail:0}),YI=Vn(po),X0,Q0,mo,Cc=A({},po,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:W0,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==mo&&(mo&&n.type==="mousemove"?(X0=n.screenX-mo.screenX,Q0=n.screenY-mo.screenY):Q0=X0=0,mo=n),X0)},movementY:function(n){return"movementY"in n?n.movementY:Q0}}),ky=Vn(Cc),jI=A({},Cc,{dataTransfer:0}),VI=Vn(jI),$I=A({},po,{relatedTarget:0}),K0=Vn($I),qI=A({},Si,{animationName:0,elapsedTime:0,pseudoElement:0}),GI=Vn(qI),XI=A({},Si,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),QI=Vn(XI),KI=A({},Si,{data:0}),Dy=Vn(KI),WI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ZI={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"},JI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ew(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=JI[n])?!!a[n]:!1}function W0(){return ew}var tw=A({},po,{key:function(n){if(n.key){var a=WI[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=yc(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?ZI[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:W0,charCode:function(n){return n.type==="keypress"?yc(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?yc(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),nw=Vn(tw),rw=A({},Cc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ly=Vn(rw),aw=A({},po,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:W0}),iw=Vn(aw),uw=A({},Si,{propertyName:0,elapsedTime:0,pseudoElement:0}),lw=Vn(uw),ow=A({},Cc,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),sw=Vn(ow),cw=A({},Si,{newState:0,oldState:0}),fw=Vn(cw),dw=[9,13,27,32],Z0=la&&"CompositionEvent"in window,go=null;la&&"documentMode"in document&&(go=document.documentMode);var hw=la&&"TextEvent"in window&&!go,Iy=la&&(!Z0||go&&8<go&&11>=go),wy=" ",My=!1;function By(n,a){switch(n){case"keyup":return dw.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Py(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var xu=!1;function pw(n,a){switch(n){case"compositionend":return Py(a);case"keypress":return a.which!==32?null:(My=!0,wy);case"textInput":return n=a.data,n===wy&&My?null:n;default:return null}}function mw(n,a){if(xu)return n==="compositionend"||!Z0&&By(n,a)?(n=Oy(),Ec=G0=Pa=null,xu=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Iy&&a.locale!=="ko"?null:a.data;default:return null}}var gw={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 Uy(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!gw[n.type]:a==="textarea"}function Hy(n,a,u,o){Cu?Au?Au.push(o):Au=[o]:Cu=o,a=uf(a,"onChange"),0<a.length&&(u=new Sc("onChange","change",null,u,o),n.push({event:u,listeners:a}))}var bo=null,Eo=null;function bw(n){f3(n,0)}function Ac(n){var a=co(n);if(Ty(a))return n}function Fy(n,a){if(n==="change")return a}var zy=!1;if(la){var J0;if(la){var eh="oninput"in document;if(!eh){var Yy=document.createElement("div");Yy.setAttribute("oninput","return;"),eh=typeof Yy.oninput=="function"}J0=eh}else J0=!1;zy=J0&&(!document.documentMode||9<document.documentMode)}function jy(){bo&&(bo.detachEvent("onpropertychange",Vy),Eo=bo=null)}function Vy(n){if(n.propertyName==="value"&&Ac(Eo)){var a=[];Hy(a,Eo,n,V0(n)),Ry(bw,a)}}function Ew(n,a,u){n==="focusin"?(jy(),bo=a,Eo=u,bo.attachEvent("onpropertychange",Vy)):n==="focusout"&&jy()}function yw(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Ac(Eo)}function Tw(n,a){if(n==="click")return Ac(a)}function Sw(n,a){if(n==="input"||n==="change")return Ac(a)}function Cw(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var er=typeof Object.is=="function"?Object.is:Cw;function yo(n,a){if(er(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var u=Object.keys(n),o=Object.keys(a);if(u.length!==o.length)return!1;for(o=0;o<u.length;o++){var f=u[o];if(!ct.call(a,f)||!er(n[f],a[f]))return!1}return!0}function $y(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function qy(n,a){var u=$y(n);n=0;for(var o;u;){if(u.nodeType===3){if(o=n+u.textContent.length,n<=a&&o>=a)return{node:u,offset:a-n};n=o}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=$y(u)}}function Gy(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?Gy(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function Xy(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=gc(n.document);a instanceof n.HTMLIFrameElement;){try{var u=typeof a.contentWindow.location.href=="string"}catch{u=!1}if(u)n=a.contentWindow;else break;a=gc(n.document)}return a}function th(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}function Aw(n,a){var u=Xy(a);a=n.focusedElem;var o=n.selectionRange;if(u!==a&&a&&a.ownerDocument&&Gy(a.ownerDocument.documentElement,a)){if(o!==null&&th(a)){if(n=o.start,u=o.end,u===void 0&&(u=n),"selectionStart"in a)a.selectionStart=n,a.selectionEnd=Math.min(u,a.value.length);else if(u=(n=a.ownerDocument||document)&&n.defaultView||window,u.getSelection){u=u.getSelection();var f=a.textContent.length,h=Math.min(o.start,f);o=o.end===void 0?h:Math.min(o.end,f),!u.extend&&h>o&&(f=o,o=h,h=f),f=qy(a,h);var T=qy(a,o);f&&T&&(u.rangeCount!==1||u.anchorNode!==f.node||u.anchorOffset!==f.offset||u.focusNode!==T.node||u.focusOffset!==T.offset)&&(n=n.createRange(),n.setStart(f.node,f.offset),u.removeAllRanges(),h>o?(u.addRange(n),u.extend(T.node,T.offset)):(n.setEnd(T.node,T.offset),u.addRange(n)))}}for(n=[],u=a;u=u.parentNode;)u.nodeType===1&&n.push({element:u,left:u.scrollLeft,top:u.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<n.length;a++)u=n[a],u.element.scrollLeft=u.left,u.element.scrollTop=u.top}}var xw=la&&"documentMode"in document&&11>=document.documentMode,_u=null,nh=null,To=null,rh=!1;function Qy(n,a,u){var o=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;rh||_u==null||_u!==gc(o)||(o=_u,"selectionStart"in o&&th(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}),To&&yo(To,o)||(To=o,o=uf(nh,"onSelect"),0<o.length&&(a=new Sc("onSelect","select",null,a,u),n.push({event:a,listeners:o}),a.target=_u)))}function Ci(n,a){var u={};return u[n.toLowerCase()]=a.toLowerCase(),u["Webkit"+n]="webkit"+a,u["Moz"+n]="moz"+a,u}var vu={animationend:Ci("Animation","AnimationEnd"),animationiteration:Ci("Animation","AnimationIteration"),animationstart:Ci("Animation","AnimationStart"),transitionrun:Ci("Transition","TransitionRun"),transitionstart:Ci("Transition","TransitionStart"),transitioncancel:Ci("Transition","TransitionCancel"),transitionend:Ci("Transition","TransitionEnd")},ah={},Ky={};la&&(Ky=document.createElement("div").style,"AnimationEvent"in window||(delete vu.animationend.animation,delete vu.animationiteration.animation,delete vu.animationstart.animation),"TransitionEvent"in window||delete vu.transitionend.transition);function Ai(n){if(ah[n])return ah[n];if(!vu[n])return n;var a=vu[n],u;for(u in a)if(a.hasOwnProperty(u)&&u in Ky)return ah[n]=a[u];return n}var Wy=Ai("animationend"),Zy=Ai("animationiteration"),Jy=Ai("animationstart"),_w=Ai("transitionrun"),vw=Ai("transitionstart"),Rw=Ai("transitioncancel"),eT=Ai("transitionend"),tT=new Map,nT="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 Dr(n,a){tT.set(n,a),Ti(a,[n])}var Tr=[],Ru=0,ih=0;function xc(){for(var n=Ru,a=ih=Ru=0;a<n;){var u=Tr[a];Tr[a++]=null;var o=Tr[a];Tr[a++]=null;var f=Tr[a];Tr[a++]=null;var h=Tr[a];if(Tr[a++]=null,o!==null&&f!==null){var T=o.pending;T===null?f.next=f:(f.next=T.next,T.next=f),o.pending=f}h!==0&&rT(u,f,h)}}function _c(n,a,u,o){Tr[Ru++]=n,Tr[Ru++]=a,Tr[Ru++]=u,Tr[Ru++]=o,ih|=o,n.lanes|=o,n=n.alternate,n!==null&&(n.lanes|=o)}function uh(n,a,u,o){return _c(n,a,u,o),vc(n)}function Ua(n,a){return _c(n,null,null,a),vc(n)}function rT(n,a,u){n.lanes|=u;var o=n.alternate;o!==null&&(o.lanes|=u);for(var f=!1,h=n.return;h!==null;)h.childLanes|=u,o=h.alternate,o!==null&&(o.childLanes|=u),h.tag===22&&(n=h.stateNode,n===null||n._visibility&1||(f=!0)),n=h,h=h.return;f&&a!==null&&n.tag===3&&(h=n.stateNode,f=31-ze(u),h=h.hiddenUpdates,n=h[f],n===null?h[f]=[a]:n.push(a),a.lane=u|536870912)}function vc(n){if(50<$o)throw $o=0,dp=null,Error(i(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var Ou={},aT=new WeakMap;function Sr(n,a){if(typeof n=="object"&&n!==null){var u=aT.get(n);return u!==void 0?u:(a={value:n,source:a,stack:se(a)},aT.set(n,a),a)}return{value:n,source:a,stack:se(a)}}var Nu=[],ku=0,Rc=null,Oc=0,Cr=[],Ar=0,xi=null,sa=1,ca="";function _i(n,a){Nu[ku++]=Oc,Nu[ku++]=Rc,Rc=n,Oc=a}function iT(n,a,u){Cr[Ar++]=sa,Cr[Ar++]=ca,Cr[Ar++]=xi,xi=n;var o=sa;n=ca;var f=32-ze(o)-1;o&=~(1<<f),u+=1;var h=32-ze(a)+f;if(30<h){var T=f-f%5;h=(o&(1<<T)-1).toString(32),o>>=T,f-=T,sa=1<<32-ze(a)+f|u<<f|o,ca=h+n}else sa=1<<h|u<<f|o,ca=n}function lh(n){n.return!==null&&(_i(n,1),iT(n,1,0))}function oh(n){for(;n===Rc;)Rc=Nu[--ku],Nu[ku]=null,Oc=Nu[--ku],Nu[ku]=null;for(;n===xi;)xi=Cr[--Ar],Cr[Ar]=null,ca=Cr[--Ar],Cr[Ar]=null,sa=Cr[--Ar],Cr[Ar]=null}var kn=null,En=null,gt=!1,Lr=null,Kr=!1,sh=Error(i(519));function vi(n){var a=Error(i(418,""));throw Ao(Sr(a,n)),sh}function uT(n){var a=n.stateNode,u=n.type,o=n.memoizedProps;switch(a[Rn]=n,a[jn]=o,u){case"dialog":ft("cancel",a),ft("close",a);break;case"iframe":case"object":case"embed":ft("load",a);break;case"video":case"audio":for(u=0;u<Go.length;u++)ft(Go[u],a);break;case"source":ft("error",a);break;case"img":case"image":case"link":ft("error",a),ft("load",a);break;case"details":ft("toggle",a);break;case"input":ft("invalid",a),Sy(a,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),mc(a);break;case"select":ft("invalid",a);break;case"textarea":ft("invalid",a),Ay(a,o.value,o.defaultValue,o.children),mc(a)}u=o.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||a.textContent===""+u||o.suppressHydrationWarning===!0||m3(a.textContent,u)?(o.popover!=null&&(ft("beforetoggle",a),ft("toggle",a)),o.onScroll!=null&&ft("scroll",a),o.onScrollEnd!=null&&ft("scrollend",a),o.onClick!=null&&(a.onclick=lf),a=!0):a=!1,a||vi(n)}function lT(n){for(kn=n.return;kn;)switch(kn.tag){case 3:case 27:Kr=!0;return;case 5:case 13:Kr=!1;return;default:kn=kn.return}}function So(n){if(n!==kn)return!1;if(!gt)return lT(n),gt=!0,!1;var a=!1,u;if((u=n.tag!==3&&n.tag!==27)&&((u=n.tag===5)&&(u=n.type,u=!(u!=="form"&&u!=="button")||Np(n.type,n.memoizedProps)),u=!u),u&&(a=!0),a&&En&&vi(n),lT(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(317));e:{for(n=n.nextSibling,a=0;n;){if(n.nodeType===8)if(u=n.data,u==="/$"){if(a===0){En=wr(n.nextSibling);break e}a--}else u!=="$"&&u!=="$!"&&u!=="$?"||a++;n=n.nextSibling}En=null}}else En=kn?wr(n.stateNode.nextSibling):null;return!0}function Co(){En=kn=null,gt=!1}function Ao(n){Lr===null?Lr=[n]:Lr.push(n)}var xo=Error(i(460)),oT=Error(i(474)),ch={then:function(){}};function sT(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Nc(){}function cT(n,a,u){switch(u=n[u],u===void 0?n.push(a):u!==a&&(a.then(Nc,Nc),a=u),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,n===xo?Error(i(483)):n;default:if(typeof a.status=="string")a.then(Nc,Nc);else{if(n=wt,n!==null&&100<n.shellSuspendCounter)throw Error(i(482));n=a,n.status="pending",n.then(function(o){if(a.status==="pending"){var f=a;f.status="fulfilled",f.value=o}},function(o){if(a.status==="pending"){var f=a;f.status="rejected",f.reason=o}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,n===xo?Error(i(483)):n}throw _o=a,xo}}var _o=null;function fT(){if(_o===null)throw Error(i(459));var n=_o;return _o=null,n}var Du=null,vo=0;function kc(n){var a=vo;return vo+=1,Du===null&&(Du=[]),cT(Du,n,a)}function Ro(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function Dc(n,a){throw a.$$typeof===s?Error(i(525)):(n=Object.prototype.toString.call(a),Error(i(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function dT(n){var a=n._init;return a(n._payload)}function hT(n){function a($,F){if(n){var G=$.deletions;G===null?($.deletions=[F],$.flags|=16):G.push(F)}}function u($,F){if(!n)return null;for(;F!==null;)a($,F),F=F.sibling;return null}function o($){for(var F=new Map;$!==null;)$.key!==null?F.set($.key,$):F.set($.index,$),$=$.sibling;return F}function f($,F){return $=Ka($,F),$.index=0,$.sibling=null,$}function h($,F,G){return $.index=G,n?(G=$.alternate,G!==null?(G=G.index,G<F?($.flags|=33554434,F):G):($.flags|=33554434,F)):($.flags|=1048576,F)}function T($){return n&&$.alternate===null&&($.flags|=33554434),$}function v($,F,G,fe){return F===null||F.tag!==6?(F=ap(G,$.mode,fe),F.return=$,F):(F=f(F,G),F.return=$,F)}function B($,F,G,fe){var Ne=G.type;return Ne===p?le($,F,G.props.children,fe,G.key):F!==null&&(F.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===H&&dT(Ne)===F.type)?(F=f(F,G.props),Ro(F,G),F.return=$,F):(F=Qc(G.type,G.key,G.props,null,$.mode,fe),Ro(F,G),F.return=$,F)}function z($,F,G,fe){return F===null||F.tag!==4||F.stateNode.containerInfo!==G.containerInfo||F.stateNode.implementation!==G.implementation?(F=ip(G,$.mode,fe),F.return=$,F):(F=f(F,G.children||[]),F.return=$,F)}function le($,F,G,fe,Ne){return F===null||F.tag!==7?(F=Bi(G,$.mode,fe,Ne),F.return=$,F):(F=f(F,G),F.return=$,F)}function he($,F,G){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return F=ap(""+F,$.mode,G),F.return=$,F;if(typeof F=="object"&&F!==null){switch(F.$$typeof){case c:return G=Qc(F.type,F.key,F.props,null,$.mode,G),Ro(G,F),G.return=$,G;case d:return F=ip(F,$.mode,G),F.return=$,F;case H:var fe=F._init;return F=fe(F._payload),he($,F,G)}if(D(F)||M(F))return F=Bi(F,$.mode,G,null),F.return=$,F;if(typeof F.then=="function")return he($,kc(F),G);if(F.$$typeof===y)return he($,qc($,F),G);Dc($,F)}return null}function Z($,F,G,fe){var Ne=F!==null?F.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return Ne!==null?null:v($,F,""+G,fe);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case c:return G.key===Ne?B($,F,G,fe):null;case d:return G.key===Ne?z($,F,G,fe):null;case H:return Ne=G._init,G=Ne(G._payload),Z($,F,G,fe)}if(D(G)||M(G))return Ne!==null?null:le($,F,G,fe,null);if(typeof G.then=="function")return Z($,F,kc(G),fe);if(G.$$typeof===y)return Z($,F,qc($,G),fe);Dc($,G)}return null}function ue($,F,G,fe,Ne){if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return $=$.get(G)||null,v(F,$,""+fe,Ne);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case c:return $=$.get(fe.key===null?G:fe.key)||null,B(F,$,fe,Ne);case d:return $=$.get(fe.key===null?G:fe.key)||null,z(F,$,fe,Ne);case H:var ut=fe._init;return fe=ut(fe._payload),ue($,F,G,fe,Ne)}if(D(fe)||M(fe))return $=$.get(G)||null,le(F,$,fe,Ne,null);if(typeof fe.then=="function")return ue($,F,G,kc(fe),Ne);if(fe.$$typeof===y)return ue($,F,G,qc(F,fe),Ne);Dc(F,fe)}return null}function Le($,F,G,fe){for(var Ne=null,ut=null,Pe=F,Ye=F=0,gn=null;Pe!==null&&Ye<G.length;Ye++){Pe.index>Ye?(gn=Pe,Pe=null):gn=Pe.sibling;var bt=Z($,Pe,G[Ye],fe);if(bt===null){Pe===null&&(Pe=gn);break}n&&Pe&&bt.alternate===null&&a($,Pe),F=h(bt,F,Ye),ut===null?Ne=bt:ut.sibling=bt,ut=bt,Pe=gn}if(Ye===G.length)return u($,Pe),gt&&_i($,Ye),Ne;if(Pe===null){for(;Ye<G.length;Ye++)Pe=he($,G[Ye],fe),Pe!==null&&(F=h(Pe,F,Ye),ut===null?Ne=Pe:ut.sibling=Pe,ut=Pe);return gt&&_i($,Ye),Ne}for(Pe=o(Pe);Ye<G.length;Ye++)gn=ue(Pe,$,Ye,G[Ye],fe),gn!==null&&(n&&gn.alternate!==null&&Pe.delete(gn.key===null?Ye:gn.key),F=h(gn,F,Ye),ut===null?Ne=gn:ut.sibling=gn,ut=gn);return n&&Pe.forEach(function(ri){return a($,ri)}),gt&&_i($,Ye),Ne}function qe($,F,G,fe){if(G==null)throw Error(i(151));for(var Ne=null,ut=null,Pe=F,Ye=F=0,gn=null,bt=G.next();Pe!==null&&!bt.done;Ye++,bt=G.next()){Pe.index>Ye?(gn=Pe,Pe=null):gn=Pe.sibling;var ri=Z($,Pe,bt.value,fe);if(ri===null){Pe===null&&(Pe=gn);break}n&&Pe&&ri.alternate===null&&a($,Pe),F=h(ri,F,Ye),ut===null?Ne=ri:ut.sibling=ri,ut=ri,Pe=gn}if(bt.done)return u($,Pe),gt&&_i($,Ye),Ne;if(Pe===null){for(;!bt.done;Ye++,bt=G.next())bt=he($,bt.value,fe),bt!==null&&(F=h(bt,F,Ye),ut===null?Ne=bt:ut.sibling=bt,ut=bt);return gt&&_i($,Ye),Ne}for(Pe=o(Pe);!bt.done;Ye++,bt=G.next())bt=ue(Pe,$,Ye,bt.value,fe),bt!==null&&(n&&bt.alternate!==null&&Pe.delete(bt.key===null?Ye:bt.key),F=h(bt,F,Ye),ut===null?Ne=bt:ut.sibling=bt,ut=bt);return n&&Pe.forEach(function(zM){return a($,zM)}),gt&&_i($,Ye),Ne}function Xt($,F,G,fe){if(typeof G=="object"&&G!==null&&G.type===p&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case c:e:{for(var Ne=G.key;F!==null;){if(F.key===Ne){if(Ne=G.type,Ne===p){if(F.tag===7){u($,F.sibling),fe=f(F,G.props.children),fe.return=$,$=fe;break e}}else if(F.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===H&&dT(Ne)===F.type){u($,F.sibling),fe=f(F,G.props),Ro(fe,G),fe.return=$,$=fe;break e}u($,F);break}else a($,F);F=F.sibling}G.type===p?(fe=Bi(G.props.children,$.mode,fe,G.key),fe.return=$,$=fe):(fe=Qc(G.type,G.key,G.props,null,$.mode,fe),Ro(fe,G),fe.return=$,$=fe)}return T($);case d:e:{for(Ne=G.key;F!==null;){if(F.key===Ne)if(F.tag===4&&F.stateNode.containerInfo===G.containerInfo&&F.stateNode.implementation===G.implementation){u($,F.sibling),fe=f(F,G.children||[]),fe.return=$,$=fe;break e}else{u($,F);break}else a($,F);F=F.sibling}fe=ip(G,$.mode,fe),fe.return=$,$=fe}return T($);case H:return Ne=G._init,G=Ne(G._payload),Xt($,F,G,fe)}if(D(G))return Le($,F,G,fe);if(M(G)){if(Ne=M(G),typeof Ne!="function")throw Error(i(150));return G=Ne.call(G),qe($,F,G,fe)}if(typeof G.then=="function")return Xt($,F,kc(G),fe);if(G.$$typeof===y)return Xt($,F,qc($,G),fe);Dc($,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,F!==null&&F.tag===6?(u($,F.sibling),fe=f(F,G),fe.return=$,$=fe):(u($,F),fe=ap(G,$.mode,fe),fe.return=$,$=fe),T($)):u($,F)}return function($,F,G,fe){try{vo=0;var Ne=Xt($,F,G,fe);return Du=null,Ne}catch(Pe){if(Pe===xo)throw Pe;var ut=Rr(29,Pe,null,$.mode);return ut.lanes=fe,ut.return=$,ut}finally{}}}var Ri=hT(!0),pT=hT(!1),Lu=Me(null),Lc=Me(0);function mT(n,a){n=Sa,xe(Lc,n),xe(Lu,a),Sa=n|a.baseLanes}function fh(){xe(Lc,Sa),xe(Lu,Lu.current)}function dh(){Sa=Lc.current,$e(Lu),$e(Lc)}var xr=Me(null),Wr=null;function Ha(n){var a=n.alternate;xe(sn,sn.current&1),xe(xr,n),Wr===null&&(a===null||Lu.current!==null||a.memoizedState!==null)&&(Wr=n)}function gT(n){if(n.tag===22){if(xe(sn,sn.current),xe(xr,n),Wr===null){var a=n.alternate;a!==null&&a.memoizedState!==null&&(Wr=n)}}else Fa()}function Fa(){xe(sn,sn.current),xe(xr,xr.current)}function fa(n){$e(xr),Wr===n&&(Wr=null),$e(sn)}var sn=Me(0);function Ic(n){for(var a=n;a!==null;){if(a.tag===13){var u=a.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||u.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Ow=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(u,o){n.push(o)}};this.abort=function(){a.aborted=!0,n.forEach(function(u){return u()})}},Nw=e.unstable_scheduleCallback,kw=e.unstable_NormalPriority,cn={$$typeof:y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hh(){return{controller:new Ow,data:new Map,refCount:0}}function Oo(n){n.refCount--,n.refCount===0&&Nw(kw,function(){n.controller.abort()})}var No=null,ph=0,Iu=0,wu=null;function Dw(n,a){if(No===null){var u=No=[];ph=0,Iu=Tp(),wu={status:"pending",value:void 0,then:function(o){u.push(o)}}}return ph++,a.then(bT,bT),a}function bT(){if(--ph===0&&No!==null){wu!==null&&(wu.status="fulfilled");var n=No;No=null,Iu=0,wu=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function Lw(n,a){var u=[],o={status:"pending",value:null,reason:null,then:function(f){u.push(f)}};return n.then(function(){o.status="fulfilled",o.value=a;for(var f=0;f<u.length;f++)(0,u[f])(a)},function(f){for(o.status="rejected",o.reason=f,f=0;f<u.length;f++)(0,u[f])(void 0)}),o}var ET=V.S;V.S=function(n,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&Dw(n,a),ET!==null&&ET(n,a)};var Oi=Me(null);function mh(){var n=Oi.current;return n!==null?n:wt.pooledCache}function wc(n,a){a===null?xe(Oi,Oi.current):xe(Oi,a.pool)}function yT(){var n=mh();return n===null?null:{parent:cn._currentValue,pool:n}}var za=0,rt=null,Ct=null,un=null,Mc=!1,Mu=!1,Ni=!1,Bc=0,ko=0,Bu=null,Iw=0;function Wt(){throw Error(i(321))}function gh(n,a){if(a===null)return!1;for(var u=0;u<a.length&&u<n.length;u++)if(!er(n[u],a[u]))return!1;return!0}function bh(n,a,u,o,f,h){return za=h,rt=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,V.H=n===null||n.memoizedState===null?ki:Ya,Ni=!1,h=u(o,f),Ni=!1,Mu&&(h=ST(a,u,o,f)),TT(n),h}function TT(n){V.H=Zr;var a=Ct!==null&&Ct.next!==null;if(za=0,un=Ct=rt=null,Mc=!1,ko=0,Bu=null,a)throw Error(i(300));n===null||pn||(n=n.dependencies,n!==null&&$c(n)&&(pn=!0))}function ST(n,a,u,o){rt=n;var f=0;do{if(Mu&&(Bu=null),ko=0,Mu=!1,25<=f)throw Error(i(301));if(f+=1,un=Ct=null,n.updateQueue!=null){var h=n.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}V.H=Di,h=a(u,o)}while(Mu);return h}function ww(){var n=V.H,a=n.useState()[0];return a=typeof a.then=="function"?Do(a):a,n=n.useState()[0],(Ct!==null?Ct.memoizedState:null)!==n&&(rt.flags|=1024),a}function Eh(){var n=Bc!==0;return Bc=0,n}function yh(n,a,u){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~u}function Th(n){if(Mc){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Mc=!1}za=0,un=Ct=rt=null,Mu=!1,ko=Bc=0,Bu=null}function $n(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return un===null?rt.memoizedState=un=n:un=un.next=n,un}function ln(){if(Ct===null){var n=rt.alternate;n=n!==null?n.memoizedState:null}else n=Ct.next;var a=un===null?rt.memoizedState:un.next;if(a!==null)un=a,Ct=n;else{if(n===null)throw rt.alternate===null?Error(i(467)):Error(i(310));Ct=n,n={memoizedState:Ct.memoizedState,baseState:Ct.baseState,baseQueue:Ct.baseQueue,queue:Ct.queue,next:null},un===null?rt.memoizedState=un=n:un=un.next=n}return un}var Pc;Pc=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function Do(n){var a=ko;return ko+=1,Bu===null&&(Bu=[]),n=cT(Bu,n,a),a=rt,(un===null?a.memoizedState:un.next)===null&&(a=a.alternate,V.H=a===null||a.memoizedState===null?ki:Ya),n}function Uc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Do(n);if(n.$$typeof===y)return On(n)}throw Error(i(438,String(n)))}function Sh(n){var a=null,u=rt.updateQueue;if(u!==null&&(a=u.memoCache),a==null){var o=rt.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(a={data:o.data.map(function(f){return f.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),u===null&&(u=Pc(),rt.updateQueue=u),u.memoCache=a,u=a.data[a.index],u===void 0)for(u=a.data[a.index]=Array(n),o=0;o<n;o++)u[o]=P;return a.index++,u}function da(n,a){return typeof a=="function"?a(n):a}function Hc(n){var a=ln();return Ch(a,Ct,n)}function Ch(n,a,u){var o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=u;var f=n.baseQueue,h=o.pending;if(h!==null){if(f!==null){var T=f.next;f.next=h.next,h.next=T}a.baseQueue=f=h,o.pending=null}if(h=n.baseState,f===null)n.memoizedState=h;else{a=f.next;var v=T=null,B=null,z=a,le=!1;do{var he=z.lane&-536870913;if(he!==z.lane?(ht&he)===he:(za&he)===he){var Z=z.revertLane;if(Z===0)B!==null&&(B=B.next={lane:0,revertLane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),he===Iu&&(le=!0);else if((za&Z)===Z){z=z.next,Z===Iu&&(le=!0);continue}else he={lane:0,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},B===null?(v=B=he,T=h):B=B.next=he,rt.lanes|=Z,Wa|=Z;he=z.action,Ni&&u(h,he),h=z.hasEagerState?z.eagerState:u(h,he)}else Z={lane:he,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},B===null?(v=B=Z,T=h):B=B.next=Z,rt.lanes|=he,Wa|=he;z=z.next}while(z!==null&&z!==a);if(B===null?T=h:B.next=v,!er(h,n.memoizedState)&&(pn=!0,le&&(u=wu,u!==null)))throw u;n.memoizedState=h,n.baseState=T,n.baseQueue=B,o.lastRenderedState=h}return f===null&&(o.lanes=0),[n.memoizedState,o.dispatch]}function Ah(n){var a=ln(),u=a.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=n;var o=u.dispatch,f=u.pending,h=a.memoizedState;if(f!==null){u.pending=null;var T=f=f.next;do h=n(h,T.action),T=T.next;while(T!==f);er(h,a.memoizedState)||(pn=!0),a.memoizedState=h,a.baseQueue===null&&(a.baseState=h),u.lastRenderedState=h}return[h,o]}function CT(n,a,u){var o=rt,f=ln(),h=gt;if(h){if(u===void 0)throw Error(i(407));u=u()}else u=a();var T=!er((Ct||f).memoizedState,u);if(T&&(f.memoizedState=u,pn=!0),f=f.queue,vh(_T.bind(null,o,f,n),[n]),f.getSnapshot!==a||T||un!==null&&un.memoizedState.tag&1){if(o.flags|=2048,Pu(9,xT.bind(null,o,f,u,a),{destroy:void 0},null),wt===null)throw Error(i(349));h||(za&60)!==0||AT(o,a,u)}return u}function AT(n,a,u){n.flags|=16384,n={getSnapshot:a,value:u},a=rt.updateQueue,a===null?(a=Pc(),rt.updateQueue=a,a.stores=[n]):(u=a.stores,u===null?a.stores=[n]:u.push(n))}function xT(n,a,u,o){a.value=u,a.getSnapshot=o,vT(a)&&RT(n)}function _T(n,a,u){return u(function(){vT(a)&&RT(n)})}function vT(n){var a=n.getSnapshot;n=n.value;try{var u=a();return!er(n,u)}catch{return!0}}function RT(n){var a=Ua(n,2);a!==null&&Dn(a,n,2)}function xh(n){var a=$n();if(typeof n=="function"){var u=n;if(n=u(),Ni){_e(!0);try{u()}finally{_e(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:n},a}function OT(n,a,u,o){return n.baseState=u,Ch(n,Ct,typeof o=="function"?o:da)}function Mw(n,a,u,o,f){if(Yc(n))throw Error(i(485));if(n=a.action,n!==null){var h={payload:f,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){h.listeners.push(T)}};V.T!==null?u(!0):h.isTransition=!1,o(h),u=a.pending,u===null?(h.next=a.pending=h,NT(a,h)):(h.next=u.next,a.pending=u.next=h)}}function NT(n,a){var u=a.action,o=a.payload,f=n.state;if(a.isTransition){var h=V.T,T={};V.T=T;try{var v=u(f,o),B=V.S;B!==null&&B(T,v),kT(n,a,v)}catch(z){_h(n,a,z)}finally{V.T=h}}else try{h=u(f,o),kT(n,a,h)}catch(z){_h(n,a,z)}}function kT(n,a,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(o){DT(n,a,o)},function(o){return _h(n,a,o)}):DT(n,a,u)}function DT(n,a,u){a.status="fulfilled",a.value=u,LT(a),n.state=u,a=n.pending,a!==null&&(u=a.next,u===a?n.pending=null:(u=u.next,a.next=u,NT(n,u)))}function _h(n,a,u){var o=n.pending;if(n.pending=null,o!==null){o=o.next;do a.status="rejected",a.reason=u,LT(a),a=a.next;while(a!==o)}n.action=null}function LT(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function IT(n,a){return a}function wT(n,a){if(gt){var u=wt.formState;if(u!==null){e:{var o=rt;if(gt){if(En){t:{for(var f=En,h=Kr;f.nodeType!==8;){if(!h){f=null;break t}if(f=wr(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){En=wr(f.nextSibling),o=f.data==="F!";break e}}vi(o)}o=!1}o&&(a=u[0])}}return u=$n(),u.memoizedState=u.baseState=a,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:IT,lastRenderedState:a},u.queue=o,u=ZT.bind(null,rt,o),o.dispatch=u,o=xh(!1),h=Dh.bind(null,rt,!1,o.queue),o=$n(),f={state:a,dispatch:null,action:n,pending:null},o.queue=f,u=Mw.bind(null,rt,f,h,u),f.dispatch=u,o.memoizedState=n,[a,u,!1]}function MT(n){var a=ln();return BT(a,Ct,n)}function BT(n,a,u){a=Ch(n,a,IT)[0],n=Hc(da)[0],a=typeof a=="object"&&a!==null&&typeof a.then=="function"?Do(a):a;var o=ln(),f=o.queue,h=f.dispatch;return u!==o.memoizedState&&(rt.flags|=2048,Pu(9,Bw.bind(null,f,u),{destroy:void 0},null)),[a,h,n]}function Bw(n,a){n.action=a}function PT(n){var a=ln(),u=Ct;if(u!==null)return BT(a,u,n);ln(),a=a.memoizedState,u=ln();var o=u.queue.dispatch;return u.memoizedState=n,[a,o,!1]}function Pu(n,a,u,o){return n={tag:n,create:a,inst:u,deps:o,next:null},a=rt.updateQueue,a===null&&(a=Pc(),rt.updateQueue=a),u=a.lastEffect,u===null?a.lastEffect=n.next=n:(o=u.next,u.next=n,n.next=o,a.lastEffect=n),n}function UT(){return ln().memoizedState}function Fc(n,a,u,o){var f=$n();rt.flags|=n,f.memoizedState=Pu(1|a,u,{destroy:void 0},o===void 0?null:o)}function zc(n,a,u,o){var f=ln();o=o===void 0?null:o;var h=f.memoizedState.inst;Ct!==null&&o!==null&&gh(o,Ct.memoizedState.deps)?f.memoizedState=Pu(a,u,h,o):(rt.flags|=n,f.memoizedState=Pu(1|a,u,h,o))}function HT(n,a){Fc(8390656,8,n,a)}function vh(n,a){zc(2048,8,n,a)}function FT(n,a){return zc(4,2,n,a)}function zT(n,a){return zc(4,4,n,a)}function YT(n,a){if(typeof a=="function"){n=n();var u=a(n);return function(){typeof u=="function"?u():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function jT(n,a,u){u=u!=null?u.concat([n]):null,zc(4,4,YT.bind(null,a,n),u)}function Rh(){}function VT(n,a){var u=ln();a=a===void 0?null:a;var o=u.memoizedState;return a!==null&&gh(a,o[1])?o[0]:(u.memoizedState=[n,a],n)}function $T(n,a){var u=ln();a=a===void 0?null:a;var o=u.memoizedState;if(a!==null&&gh(a,o[1]))return o[0];if(o=n(),Ni){_e(!0);try{n()}finally{_e(!1)}}return u.memoizedState=[o,a],o}function Oh(n,a,u){return u===void 0||(za&1073741824)!==0?n.memoizedState=a:(n.memoizedState=u,n=GS(),rt.lanes|=n,Wa|=n,u)}function qT(n,a,u,o){return er(u,a)?u:Lu.current!==null?(n=Oh(n,u,o),er(n,a)||(pn=!0),n):(za&42)===0?(pn=!0,n.memoizedState=u):(n=GS(),rt.lanes|=n,Wa|=n,a)}function GT(n,a,u,o,f){var h=ce.p;ce.p=h!==0&&8>h?h:8;var T=V.T,v={};V.T=v,Dh(n,!1,a,u);try{var B=f(),z=V.S;if(z!==null&&z(v,B),B!==null&&typeof B=="object"&&typeof B.then=="function"){var le=Lw(B,o);Lo(n,a,le,ar(n))}else Lo(n,a,o,ar(n))}catch(he){Lo(n,a,{then:function(){},status:"rejected",reason:he},ar())}finally{ce.p=h,V.T=T}}function Pw(){}function Nh(n,a,u,o){if(n.tag!==5)throw Error(i(476));var f=XT(n).queue;GT(n,f,a,Oe,u===null?Pw:function(){return QT(n),u(o)})}function XT(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:Oe,baseState:Oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:Oe},next:null};var u={};return a.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:u},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function QT(n){var a=XT(n).next.queue;Lo(n,a,{},ar())}function kh(){return On(Zo)}function KT(){return ln().memoizedState}function WT(){return ln().memoizedState}function Uw(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var u=ar();n=$a(u);var o=qa(a,n,u);o!==null&&(Dn(o,a,u),Mo(o,a,u)),a={cache:hh()},n.payload=a;return}a=a.return}}function Hw(n,a,u){var o=ar();u={lane:o,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},Yc(n)?JT(a,u):(u=uh(n,a,u,o),u!==null&&(Dn(u,n,o),eS(u,a,o)))}function ZT(n,a,u){var o=ar();Lo(n,a,u,o)}function Lo(n,a,u,o){var f={lane:o,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(Yc(n))JT(a,f);else{var h=n.alternate;if(n.lanes===0&&(h===null||h.lanes===0)&&(h=a.lastRenderedReducer,h!==null))try{var T=a.lastRenderedState,v=h(T,u);if(f.hasEagerState=!0,f.eagerState=v,er(v,T))return _c(n,a,f,0),wt===null&&xc(),!1}catch{}finally{}if(u=uh(n,a,f,o),u!==null)return Dn(u,n,o),eS(u,a,o),!0}return!1}function Dh(n,a,u,o){if(o={lane:2,revertLane:Tp(),action:o,hasEagerState:!1,eagerState:null,next:null},Yc(n)){if(a)throw Error(i(479))}else a=uh(n,u,o,2),a!==null&&Dn(a,n,2)}function Yc(n){var a=n.alternate;return n===rt||a!==null&&a===rt}function JT(n,a){Mu=Mc=!0;var u=n.pending;u===null?a.next=a:(a.next=u.next,u.next=a),n.pending=a}function eS(n,a,u){if((u&4194176)!==0){var o=a.lanes;o&=n.pendingLanes,u|=o,a.lanes=u,fy(n,u)}}var Zr={readContext:On,use:Uc,useCallback:Wt,useContext:Wt,useEffect:Wt,useImperativeHandle:Wt,useLayoutEffect:Wt,useInsertionEffect:Wt,useMemo:Wt,useReducer:Wt,useRef:Wt,useState:Wt,useDebugValue:Wt,useDeferredValue:Wt,useTransition:Wt,useSyncExternalStore:Wt,useId:Wt};Zr.useCacheRefresh=Wt,Zr.useMemoCache=Wt,Zr.useHostTransitionStatus=Wt,Zr.useFormState=Wt,Zr.useActionState=Wt,Zr.useOptimistic=Wt;var ki={readContext:On,use:Uc,useCallback:function(n,a){return $n().memoizedState=[n,a===void 0?null:a],n},useContext:On,useEffect:HT,useImperativeHandle:function(n,a,u){u=u!=null?u.concat([n]):null,Fc(4194308,4,YT.bind(null,a,n),u)},useLayoutEffect:function(n,a){return Fc(4194308,4,n,a)},useInsertionEffect:function(n,a){Fc(4,2,n,a)},useMemo:function(n,a){var u=$n();a=a===void 0?null:a;var o=n();if(Ni){_e(!0);try{n()}finally{_e(!1)}}return u.memoizedState=[o,a],o},useReducer:function(n,a,u){var o=$n();if(u!==void 0){var f=u(a);if(Ni){_e(!0);try{u(a)}finally{_e(!1)}}}else f=a;return o.memoizedState=o.baseState=f,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:f},o.queue=n,n=n.dispatch=Hw.bind(null,rt,n),[o.memoizedState,n]},useRef:function(n){var a=$n();return n={current:n},a.memoizedState=n},useState:function(n){n=xh(n);var a=n.queue,u=ZT.bind(null,rt,a);return a.dispatch=u,[n.memoizedState,u]},useDebugValue:Rh,useDeferredValue:function(n,a){var u=$n();return Oh(u,n,a)},useTransition:function(){var n=xh(!1);return n=GT.bind(null,rt,n.queue,!0,!1),$n().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,u){var o=rt,f=$n();if(gt){if(u===void 0)throw Error(i(407));u=u()}else{if(u=a(),wt===null)throw Error(i(349));(ht&60)!==0||AT(o,a,u)}f.memoizedState=u;var h={value:u,getSnapshot:a};return f.queue=h,HT(_T.bind(null,o,h,n),[n]),o.flags|=2048,Pu(9,xT.bind(null,o,h,u,a),{destroy:void 0},null),u},useId:function(){var n=$n(),a=wt.identifierPrefix;if(gt){var u=ca,o=sa;u=(o&~(1<<32-ze(o)-1)).toString(32)+u,a=":"+a+"R"+u,u=Bc++,0<u&&(a+="H"+u.toString(32)),a+=":"}else u=Iw++,a=":"+a+"r"+u.toString(32)+":";return n.memoizedState=a},useCacheRefresh:function(){return $n().memoizedState=Uw.bind(null,rt)}};ki.useMemoCache=Sh,ki.useHostTransitionStatus=kh,ki.useFormState=wT,ki.useActionState=wT,ki.useOptimistic=function(n){var a=$n();a.memoizedState=a.baseState=n;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=u,a=Dh.bind(null,rt,!0,u),u.dispatch=a,[n,a]};var Ya={readContext:On,use:Uc,useCallback:VT,useContext:On,useEffect:vh,useImperativeHandle:jT,useInsertionEffect:FT,useLayoutEffect:zT,useMemo:$T,useReducer:Hc,useRef:UT,useState:function(){return Hc(da)},useDebugValue:Rh,useDeferredValue:function(n,a){var u=ln();return qT(u,Ct.memoizedState,n,a)},useTransition:function(){var n=Hc(da)[0],a=ln().memoizedState;return[typeof n=="boolean"?n:Do(n),a]},useSyncExternalStore:CT,useId:KT};Ya.useCacheRefresh=WT,Ya.useMemoCache=Sh,Ya.useHostTransitionStatus=kh,Ya.useFormState=MT,Ya.useActionState=MT,Ya.useOptimistic=function(n,a){var u=ln();return OT(u,Ct,n,a)};var Di={readContext:On,use:Uc,useCallback:VT,useContext:On,useEffect:vh,useImperativeHandle:jT,useInsertionEffect:FT,useLayoutEffect:zT,useMemo:$T,useReducer:Ah,useRef:UT,useState:function(){return Ah(da)},useDebugValue:Rh,useDeferredValue:function(n,a){var u=ln();return Ct===null?Oh(u,n,a):qT(u,Ct.memoizedState,n,a)},useTransition:function(){var n=Ah(da)[0],a=ln().memoizedState;return[typeof n=="boolean"?n:Do(n),a]},useSyncExternalStore:CT,useId:KT};Di.useCacheRefresh=WT,Di.useMemoCache=Sh,Di.useHostTransitionStatus=kh,Di.useFormState=PT,Di.useActionState=PT,Di.useOptimistic=function(n,a){var u=ln();return Ct!==null?OT(u,Ct,n,a):(u.baseState=n,[n,u.queue.dispatch])};function Lh(n,a,u,o){a=n.memoizedState,u=u(o,a),u=u==null?a:A({},a,u),n.memoizedState=u,n.lanes===0&&(n.updateQueue.baseState=u)}var Ih={isMounted:function(n){return(n=n._reactInternals)?re(n)===n:!1},enqueueSetState:function(n,a,u){n=n._reactInternals;var o=ar(),f=$a(o);f.payload=a,u!=null&&(f.callback=u),a=qa(n,f,o),a!==null&&(Dn(a,n,o),Mo(a,n,o))},enqueueReplaceState:function(n,a,u){n=n._reactInternals;var o=ar(),f=$a(o);f.tag=1,f.payload=a,u!=null&&(f.callback=u),a=qa(n,f,o),a!==null&&(Dn(a,n,o),Mo(a,n,o))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var u=ar(),o=$a(u);o.tag=2,a!=null&&(o.callback=a),a=qa(n,o,u),a!==null&&(Dn(a,n,u),Mo(a,n,u))}};function tS(n,a,u,o,f,h,T){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(o,h,T):a.prototype&&a.prototype.isPureReactComponent?!yo(u,o)||!yo(f,h):!0}function nS(n,a,u,o){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(u,o),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(u,o),a.state!==n&&Ih.enqueueReplaceState(a,a.state,null)}function Li(n,a){var u=a;if("ref"in a){u={};for(var o in a)o!=="ref"&&(u[o]=a[o])}if(n=n.defaultProps){u===a&&(u=A({},u));for(var f in n)u[f]===void 0&&(u[f]=n[f])}return u}var jc=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function rS(n){jc(n)}function aS(n){console.error(n)}function iS(n){jc(n)}function Vc(n,a){try{var u=n.onUncaughtError;u(a.value,{componentStack:a.stack})}catch(o){setTimeout(function(){throw o})}}function uS(n,a,u){try{var o=n.onCaughtError;o(u.value,{componentStack:u.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function wh(n,a,u){return u=$a(u),u.tag=3,u.payload={element:null},u.callback=function(){Vc(n,a)},u}function lS(n){return n=$a(n),n.tag=3,n}function oS(n,a,u,o){var f=u.type.getDerivedStateFromError;if(typeof f=="function"){var h=o.value;n.payload=function(){return f(h)},n.callback=function(){uS(a,u,o)}}var T=u.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(n.callback=function(){uS(a,u,o),typeof f!="function"&&(Za===null?Za=new Set([this]):Za.add(this));var v=o.stack;this.componentDidCatch(o.value,{componentStack:v!==null?v:""})})}function Fw(n,a,u,o,f){if(u.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(a=u.alternate,a!==null&&wo(a,u,f,!0),u=xr.current,u!==null){switch(u.tag){case 13:return Wr===null?mp():u.alternate===null&&Gt===0&&(Gt=3),u.flags&=-257,u.flags|=65536,u.lanes=f,o===ch?u.flags|=16384:(a=u.updateQueue,a===null?u.updateQueue=new Set([o]):a.add(o),bp(n,o,f)),!1;case 22:return u.flags|=65536,o===ch?u.flags|=16384:(a=u.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([o])},u.updateQueue=a):(u=a.retryQueue,u===null?a.retryQueue=new Set([o]):u.add(o)),bp(n,o,f)),!1}throw Error(i(435,u.tag))}return bp(n,o,f),mp(),!1}if(gt)return a=xr.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=f,o!==sh&&(n=Error(i(422),{cause:o}),Ao(Sr(n,u)))):(o!==sh&&(a=Error(i(423),{cause:o}),Ao(Sr(a,u))),n=n.current.alternate,n.flags|=65536,f&=-f,n.lanes|=f,o=Sr(o,u),f=wh(n.stateNode,o,f),Qh(n,f),Gt!==4&&(Gt=2)),!1;var h=Error(i(520),{cause:o});if(h=Sr(h,u),jo===null?jo=[h]:jo.push(h),Gt!==4&&(Gt=2),a===null)return!0;o=Sr(o,u),u=a;do{switch(u.tag){case 3:return u.flags|=65536,n=f&-f,u.lanes|=n,n=wh(u.stateNode,o,n),Qh(u,n),!1;case 1:if(a=u.type,h=u.stateNode,(u.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Za===null||!Za.has(h))))return u.flags|=65536,f&=-f,u.lanes|=f,f=lS(f),oS(f,n,u,o),Qh(u,f),!1}u=u.return}while(u!==null);return!1}var sS=Error(i(461)),pn=!1;function yn(n,a,u,o){a.child=n===null?pT(a,null,u,o):Ri(a,n.child,u,o)}function cS(n,a,u,o,f){u=u.render;var h=a.ref;if("ref"in o){var T={};for(var v in o)v!=="ref"&&(T[v]=o[v])}else T=o;return wi(a),o=bh(n,a,u,T,h,f),v=Eh(),n!==null&&!pn?(yh(n,a,f),ha(n,a,f)):(gt&&v&&lh(a),a.flags|=1,yn(n,a,o,f),a.child)}function fS(n,a,u,o,f){if(n===null){var h=u.type;return typeof h=="function"&&!rp(h)&&h.defaultProps===void 0&&u.compare===null?(a.tag=15,a.type=h,dS(n,a,h,o,f)):(n=Qc(u.type,null,o,a,a.mode,f),n.ref=a.ref,n.return=a,a.child=n)}if(h=n.child,!jh(n,f)){var T=h.memoizedProps;if(u=u.compare,u=u!==null?u:yo,u(T,o)&&n.ref===a.ref)return ha(n,a,f)}return a.flags|=1,n=Ka(h,o),n.ref=a.ref,n.return=a,a.child=n}function dS(n,a,u,o,f){if(n!==null){var h=n.memoizedProps;if(yo(h,o)&&n.ref===a.ref)if(pn=!1,a.pendingProps=o=h,jh(n,f))(n.flags&131072)!==0&&(pn=!0);else return a.lanes=n.lanes,ha(n,a,f)}return Mh(n,a,u,o,f)}function hS(n,a,u){var o=a.pendingProps,f=o.children,h=(a.stateNode._pendingVisibility&2)!==0,T=n!==null?n.memoizedState:null;if(Io(n,a),o.mode==="hidden"||h){if((a.flags&128)!==0){if(o=T!==null?T.baseLanes|u:u,n!==null){for(f=a.child=n.child,h=0;f!==null;)h=h|f.lanes|f.childLanes,f=f.sibling;a.childLanes=h&~o}else a.childLanes=0,a.child=null;return pS(n,a,o,u)}if((u&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&wc(a,T!==null?T.cachePool:null),T!==null?mT(a,T):fh(),gT(a);else return a.lanes=a.childLanes=536870912,pS(n,a,T!==null?T.baseLanes|u:u,u)}else T!==null?(wc(a,T.cachePool),mT(a,T),Fa(),a.memoizedState=null):(n!==null&&wc(a,null),fh(),Fa());return yn(n,a,f,u),a.child}function pS(n,a,u,o){var f=mh();return f=f===null?null:{parent:cn._currentValue,pool:f},a.memoizedState={baseLanes:u,cachePool:f},n!==null&&wc(a,null),fh(),gT(a),n!==null&&wo(n,a,o,!0),null}function Io(n,a){var u=a.ref;if(u===null)n!==null&&n.ref!==null&&(a.flags|=2097664);else{if(typeof u!="function"&&typeof u!="object")throw Error(i(284));(n===null||n.ref!==u)&&(a.flags|=2097664)}}function Mh(n,a,u,o,f){return wi(a),u=bh(n,a,u,o,void 0,f),o=Eh(),n!==null&&!pn?(yh(n,a,f),ha(n,a,f)):(gt&&o&&lh(a),a.flags|=1,yn(n,a,u,f),a.child)}function mS(n,a,u,o,f,h){return wi(a),a.updateQueue=null,u=ST(a,o,u,f),TT(n),o=Eh(),n!==null&&!pn?(yh(n,a,h),ha(n,a,h)):(gt&&o&&lh(a),a.flags|=1,yn(n,a,u,h),a.child)}function gS(n,a,u,o,f){if(wi(a),a.stateNode===null){var h=Ou,T=u.contextType;typeof T=="object"&&T!==null&&(h=On(T)),h=new u(o,h),a.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Ih,a.stateNode=h,h._reactInternals=a,h=a.stateNode,h.props=o,h.state=a.memoizedState,h.refs={},Gh(a),T=u.contextType,h.context=typeof T=="object"&&T!==null?On(T):Ou,h.state=a.memoizedState,T=u.getDerivedStateFromProps,typeof T=="function"&&(Lh(a,u,T,o),h.state=a.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(T=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),T!==h.state&&Ih.enqueueReplaceState(h,h.state,null),Po(a,o,h,f),Bo(),h.state=a.memoizedState),typeof h.componentDidMount=="function"&&(a.flags|=4194308),o=!0}else if(n===null){h=a.stateNode;var v=a.memoizedProps,B=Li(u,v);h.props=B;var z=h.context,le=u.contextType;T=Ou,typeof le=="object"&&le!==null&&(T=On(le));var he=u.getDerivedStateFromProps;le=typeof he=="function"||typeof h.getSnapshotBeforeUpdate=="function",v=a.pendingProps!==v,le||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(v||z!==T)&&nS(a,h,o,T),Va=!1;var Z=a.memoizedState;h.state=Z,Po(a,o,h,f),Bo(),z=a.memoizedState,v||Z!==z||Va?(typeof he=="function"&&(Lh(a,u,he,o),z=a.memoizedState),(B=Va||tS(a,u,B,o,Z,z,T))?(le||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(a.flags|=4194308)):(typeof h.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=o,a.memoizedState=z),h.props=o,h.state=z,h.context=T,o=B):(typeof h.componentDidMount=="function"&&(a.flags|=4194308),o=!1)}else{h=a.stateNode,Xh(n,a),T=a.memoizedProps,le=Li(u,T),h.props=le,he=a.pendingProps,Z=h.context,z=u.contextType,B=Ou,typeof z=="object"&&z!==null&&(B=On(z)),v=u.getDerivedStateFromProps,(z=typeof v=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(T!==he||Z!==B)&&nS(a,h,o,B),Va=!1,Z=a.memoizedState,h.state=Z,Po(a,o,h,f),Bo();var ue=a.memoizedState;T!==he||Z!==ue||Va||n!==null&&n.dependencies!==null&&$c(n.dependencies)?(typeof v=="function"&&(Lh(a,u,v,o),ue=a.memoizedState),(le=Va||tS(a,u,le,o,Z,ue,B)||n!==null&&n.dependencies!==null&&$c(n.dependencies))?(z||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(o,ue,B),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(o,ue,B)),typeof h.componentDidUpdate=="function"&&(a.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof h.componentDidUpdate!="function"||T===n.memoizedProps&&Z===n.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&Z===n.memoizedState||(a.flags|=1024),a.memoizedProps=o,a.memoizedState=ue),h.props=o,h.state=ue,h.context=B,o=le):(typeof h.componentDidUpdate!="function"||T===n.memoizedProps&&Z===n.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&Z===n.memoizedState||(a.flags|=1024),o=!1)}return h=o,Io(n,a),o=(a.flags&128)!==0,h||o?(h=a.stateNode,u=o&&typeof u.getDerivedStateFromError!="function"?null:h.render(),a.flags|=1,n!==null&&o?(a.child=Ri(a,n.child,null,f),a.child=Ri(a,null,u,f)):yn(n,a,u,f),a.memoizedState=h.state,n=a.child):n=ha(n,a,f),n}function bS(n,a,u,o){return Co(),a.flags|=256,yn(n,a,u,o),a.child}var Bh={dehydrated:null,treeContext:null,retryLane:0};function Ph(n){return{baseLanes:n,cachePool:yT()}}function Uh(n,a,u){return n=n!==null?n.childLanes&~u:0,a&&(n|=Or),n}function ES(n,a,u){var o=a.pendingProps,f=!1,h=(a.flags&128)!==0,T;if((T=h)||(T=n!==null&&n.memoizedState===null?!1:(sn.current&2)!==0),T&&(f=!0,a.flags&=-129),T=(a.flags&32)!==0,a.flags&=-33,n===null){if(gt){if(f?Ha(a):Fa(),gt){var v=En,B;if(B=v){e:{for(B=v,v=Kr;B.nodeType!==8;){if(!v){v=null;break e}if(B=wr(B.nextSibling),B===null){v=null;break e}}v=B}v!==null?(a.memoizedState={dehydrated:v,treeContext:xi!==null?{id:sa,overflow:ca}:null,retryLane:536870912},B=Rr(18,null,null,0),B.stateNode=v,B.return=a,a.child=B,kn=a,En=null,B=!0):B=!1}B||vi(a)}if(v=a.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return v.data==="$!"?a.lanes=16:a.lanes=536870912,null;fa(a)}return v=o.children,o=o.fallback,f?(Fa(),f=a.mode,v=Fh({mode:"hidden",children:v},f),o=Bi(o,f,u,null),v.return=a,o.return=a,v.sibling=o,a.child=v,f=a.child,f.memoizedState=Ph(u),f.childLanes=Uh(n,T,u),a.memoizedState=Bh,o):(Ha(a),Hh(a,v))}if(B=n.memoizedState,B!==null&&(v=B.dehydrated,v!==null)){if(h)a.flags&256?(Ha(a),a.flags&=-257,a=zh(n,a,u)):a.memoizedState!==null?(Fa(),a.child=n.child,a.flags|=128,a=null):(Fa(),f=o.fallback,v=a.mode,o=Fh({mode:"visible",children:o.children},v),f=Bi(f,v,u,null),f.flags|=2,o.return=a,f.return=a,o.sibling=f,a.child=o,Ri(a,n.child,null,u),o=a.child,o.memoizedState=Ph(u),o.childLanes=Uh(n,T,u),a.memoizedState=Bh,a=f);else if(Ha(a),v.data==="$!"){if(T=v.nextSibling&&v.nextSibling.dataset,T)var z=T.dgst;T=z,o=Error(i(419)),o.stack="",o.digest=T,Ao({value:o,source:null,stack:null}),a=zh(n,a,u)}else if(pn||wo(n,a,u,!1),T=(u&n.childLanes)!==0,pn||T){if(T=wt,T!==null){if(o=u&-u,(o&42)!==0)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&(T.suspendedLanes|u))!==0?0:o,o!==0&&o!==B.retryLane)throw B.retryLane=o,Ua(n,o),Dn(T,n,o),sS}v.data==="$?"||mp(),a=zh(n,a,u)}else v.data==="$?"?(a.flags|=128,a.child=n.child,a=tM.bind(null,n),v._reactRetry=a,a=null):(n=B.treeContext,En=wr(v.nextSibling),kn=a,gt=!0,Lr=null,Kr=!1,n!==null&&(Cr[Ar++]=sa,Cr[Ar++]=ca,Cr[Ar++]=xi,sa=n.id,ca=n.overflow,xi=a),a=Hh(a,o.children),a.flags|=4096);return a}return f?(Fa(),f=o.fallback,v=a.mode,B=n.child,z=B.sibling,o=Ka(B,{mode:"hidden",children:o.children}),o.subtreeFlags=B.subtreeFlags&31457280,z!==null?f=Ka(z,f):(f=Bi(f,v,u,null),f.flags|=2),f.return=a,o.return=a,o.sibling=f,a.child=o,o=f,f=a.child,v=n.child.memoizedState,v===null?v=Ph(u):(B=v.cachePool,B!==null?(z=cn._currentValue,B=B.parent!==z?{parent:z,pool:z}:B):B=yT(),v={baseLanes:v.baseLanes|u,cachePool:B}),f.memoizedState=v,f.childLanes=Uh(n,T,u),a.memoizedState=Bh,o):(Ha(a),u=n.child,n=u.sibling,u=Ka(u,{mode:"visible",children:o.children}),u.return=a,u.sibling=null,n!==null&&(T=a.deletions,T===null?(a.deletions=[n],a.flags|=16):T.push(n)),a.child=u,a.memoizedState=null,u)}function Hh(n,a){return a=Fh({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function Fh(n,a){return VS(n,a,0,null)}function zh(n,a,u){return Ri(a,n.child,null,u),n=Hh(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function yS(n,a,u){n.lanes|=a;var o=n.alternate;o!==null&&(o.lanes|=a),$h(n.return,a,u)}function Yh(n,a,u,o,f){var h=n.memoizedState;h===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:o,tail:u,tailMode:f}:(h.isBackwards=a,h.rendering=null,h.renderingStartTime=0,h.last=o,h.tail=u,h.tailMode=f)}function TS(n,a,u){var o=a.pendingProps,f=o.revealOrder,h=o.tail;if(yn(n,a,o.children,u),o=sn.current,(o&2)!==0)o=o&1|2,a.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&yS(n,u,a);else if(n.tag===19)yS(n,u,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}o&=1}switch(xe(sn,o),f){case"forwards":for(u=a.child,f=null;u!==null;)n=u.alternate,n!==null&&Ic(n)===null&&(f=u),u=u.sibling;u=f,u===null?(f=a.child,a.child=null):(f=u.sibling,u.sibling=null),Yh(a,!1,f,u,h);break;case"backwards":for(u=null,f=a.child,a.child=null;f!==null;){if(n=f.alternate,n!==null&&Ic(n)===null){a.child=f;break}n=f.sibling,f.sibling=u,u=f,f=n}Yh(a,!0,u,null,h);break;case"together":Yh(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function ha(n,a,u){if(n!==null&&(a.dependencies=n.dependencies),Wa|=a.lanes,(u&a.childLanes)===0)if(n!==null){if(wo(n,a,u,!1),(u&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(i(153));if(a.child!==null){for(n=a.child,u=Ka(n,n.pendingProps),a.child=u,u.return=a;n.sibling!==null;)n=n.sibling,u=u.sibling=Ka(n,n.pendingProps),u.return=a;u.sibling=null}return a.child}function jh(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&$c(n)))}function zw(n,a,u){switch(a.tag){case 3:Be(a,a.stateNode.containerInfo),ja(a,cn,n.memoizedState.cache),Co();break;case 27:case 5:je(a);break;case 4:Be(a,a.stateNode.containerInfo);break;case 10:ja(a,a.type,a.memoizedProps.value);break;case 13:var o=a.memoizedState;if(o!==null)return o.dehydrated!==null?(Ha(a),a.flags|=128,null):(u&a.child.childLanes)!==0?ES(n,a,u):(Ha(a),n=ha(n,a,u),n!==null?n.sibling:null);Ha(a);break;case 19:var f=(n.flags&128)!==0;if(o=(u&a.childLanes)!==0,o||(wo(n,a,u,!1),o=(u&a.childLanes)!==0),f){if(o)return TS(n,a,u);a.flags|=128}if(f=a.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),xe(sn,sn.current),o)break;return null;case 22:case 23:return a.lanes=0,hS(n,a,u);case 24:ja(a,cn,n.memoizedState.cache)}return ha(n,a,u)}function SS(n,a,u){if(n!==null)if(n.memoizedProps!==a.pendingProps)pn=!0;else{if(!jh(n,u)&&(a.flags&128)===0)return pn=!1,zw(n,a,u);pn=(n.flags&131072)!==0}else pn=!1,gt&&(a.flags&1048576)!==0&&iT(a,Oc,a.index);switch(a.lanes=0,a.tag){case 16:e:{n=a.pendingProps;var o=a.elementType,f=o._init;if(o=f(o._payload),a.type=o,typeof o=="function")rp(o)?(n=Li(o,n),a.tag=1,a=gS(null,a,o,n,u)):(a.tag=0,a=Mh(null,a,o,n,u));else{if(o!=null){if(f=o.$$typeof,f===O){a.tag=11,a=cS(null,a,o,n,u);break e}else if(f===R){a.tag=14,a=fS(null,a,o,n,u);break e}}throw a=ae(o)||o,Error(i(306,a,""))}}return a;case 0:return Mh(n,a,a.type,a.pendingProps,u);case 1:return o=a.type,f=Li(o,a.pendingProps),gS(n,a,o,f,u);case 3:e:{if(Be(a,a.stateNode.containerInfo),n===null)throw Error(i(387));var h=a.pendingProps;f=a.memoizedState,o=f.element,Xh(n,a),Po(a,h,null,u);var T=a.memoizedState;if(h=T.cache,ja(a,cn,h),h!==f.cache&&qh(a,[cn],u,!0),Bo(),h=T.element,f.isDehydrated)if(f={element:h,isDehydrated:!1,cache:T.cache},a.updateQueue.baseState=f,a.memoizedState=f,a.flags&256){a=bS(n,a,h,u);break e}else if(h!==o){o=Sr(Error(i(424)),a),Ao(o),a=bS(n,a,h,u);break e}else for(En=wr(a.stateNode.containerInfo.firstChild),kn=a,gt=!0,Lr=null,Kr=!0,u=pT(a,null,h,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(Co(),h===o){a=ha(n,a,u);break e}yn(n,a,h,u)}a=a.child}return a;case 26:return Io(n,a),n===null?(u=x3(a.type,null,a.pendingProps,null))?a.memoizedState=u:gt||(u=a.type,n=a.pendingProps,o=of(Re.current).createElement(u),o[Rn]=a,o[jn]=n,Tn(o,u,n),hn(o),a.stateNode=o):a.memoizedState=x3(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return je(a),n===null&&gt&&(o=a.stateNode=S3(a.type,a.pendingProps,Re.current),kn=a,Kr=!0,En=wr(o.firstChild)),o=a.pendingProps.children,n!==null||gt?yn(n,a,o,u):a.child=Ri(a,null,o,u),Io(n,a),a.child;case 5:return n===null&&gt&&((f=o=En)&&(o=bM(o,a.type,a.pendingProps,Kr),o!==null?(a.stateNode=o,kn=a,En=wr(o.firstChild),Kr=!1,f=!0):f=!1),f||vi(a)),je(a),f=a.type,h=a.pendingProps,T=n!==null?n.memoizedProps:null,o=h.children,Np(f,h)?o=null:T!==null&&Np(f,T)&&(a.flags|=32),a.memoizedState!==null&&(f=bh(n,a,ww,null,null,u),Zo._currentValue=f),Io(n,a),yn(n,a,o,u),a.child;case 6:return n===null&&gt&&((n=u=En)&&(u=EM(u,a.pendingProps,Kr),u!==null?(a.stateNode=u,kn=a,En=null,n=!0):n=!1),n||vi(a)),null;case 13:return ES(n,a,u);case 4:return Be(a,a.stateNode.containerInfo),o=a.pendingProps,n===null?a.child=Ri(a,null,o,u):yn(n,a,o,u),a.child;case 11:return cS(n,a,a.type,a.pendingProps,u);case 7:return yn(n,a,a.pendingProps,u),a.child;case 8:return yn(n,a,a.pendingProps.children,u),a.child;case 12:return yn(n,a,a.pendingProps.children,u),a.child;case 10:return o=a.pendingProps,ja(a,a.type,o.value),yn(n,a,o.children,u),a.child;case 9:return f=a.type._context,o=a.pendingProps.children,wi(a),f=On(f),o=o(f),a.flags|=1,yn(n,a,o,u),a.child;case 14:return fS(n,a,a.type,a.pendingProps,u);case 15:return dS(n,a,a.type,a.pendingProps,u);case 19:return TS(n,a,u);case 22:return hS(n,a,u);case 24:return wi(a),o=On(cn),n===null?(f=mh(),f===null&&(f=wt,h=hh(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=u),f=h),a.memoizedState={parent:o,cache:f},Gh(a),ja(a,cn,f)):((n.lanes&u)!==0&&(Xh(n,a),Po(a,null,null,u),Bo()),f=n.memoizedState,h=a.memoizedState,f.parent!==o?(f={parent:o,cache:o},a.memoizedState=f,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=f),ja(a,cn,o)):(o=h.cache,ja(a,cn,o),o!==f.cache&&qh(a,[cn],u,!0))),yn(n,a,a.pendingProps.children,u),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}var Vh=Me(null),Ii=null,pa=null;function ja(n,a,u){xe(Vh,a._currentValue),a._currentValue=u}function ma(n){n._currentValue=Vh.current,$e(Vh)}function $h(n,a,u){for(;n!==null;){var o=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,o!==null&&(o.childLanes|=a)):o!==null&&(o.childLanes&a)!==a&&(o.childLanes|=a),n===u)break;n=n.return}}function qh(n,a,u,o){var f=n.child;for(f!==null&&(f.return=n);f!==null;){var h=f.dependencies;if(h!==null){var T=f.child;h=h.firstContext;e:for(;h!==null;){var v=h;h=f;for(var B=0;B<a.length;B++)if(v.context===a[B]){h.lanes|=u,v=h.alternate,v!==null&&(v.lanes|=u),$h(h.return,u,n),o||(T=null);break e}h=v.next}}else if(f.tag===18){if(T=f.return,T===null)throw Error(i(341));T.lanes|=u,h=T.alternate,h!==null&&(h.lanes|=u),$h(T,u,n),T=null}else T=f.child;if(T!==null)T.return=f;else for(T=f;T!==null;){if(T===n){T=null;break}if(f=T.sibling,f!==null){f.return=T.return,T=f;break}T=T.return}f=T}}function wo(n,a,u,o){n=null;for(var f=a,h=!1;f!==null;){if(!h){if((f.flags&524288)!==0)h=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var T=f.alternate;if(T===null)throw Error(i(387));if(T=T.memoizedProps,T!==null){var v=f.type;er(f.pendingProps.value,T.value)||(n!==null?n.push(v):n=[v])}}else if(f===Ce.current){if(T=f.alternate,T===null)throw Error(i(387));T.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(n!==null?n.push(Zo):n=[Zo])}f=f.return}n!==null&&qh(a,n,u,o),a.flags|=262144}function $c(n){for(n=n.firstContext;n!==null;){if(!er(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function wi(n){Ii=n,pa=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function On(n){return CS(Ii,n)}function qc(n,a){return Ii===null&&wi(n),CS(n,a)}function CS(n,a){var u=a._currentValue;if(a={context:a,memoizedValue:u,next:null},pa===null){if(n===null)throw Error(i(308));pa=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else pa=pa.next=a;return u}var Va=!1;function Gh(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xh(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function $a(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function qa(n,a,u){var o=n.updateQueue;if(o===null)return null;if(o=o.shared,(Yt&2)!==0){var f=o.pending;return f===null?a.next=a:(a.next=f.next,f.next=a),o.pending=a,a=vc(n),rT(n,null,u),a}return _c(n,o,a,u),vc(n)}function Mo(n,a,u){if(a=a.updateQueue,a!==null&&(a=a.shared,(u&4194176)!==0)){var o=a.lanes;o&=n.pendingLanes,u|=o,a.lanes=u,fy(n,u)}}function Qh(n,a){var u=n.updateQueue,o=n.alternate;if(o!==null&&(o=o.updateQueue,u===o)){var f=null,h=null;if(u=u.firstBaseUpdate,u!==null){do{var T={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};h===null?f=h=T:h=h.next=T,u=u.next}while(u!==null);h===null?f=h=a:h=h.next=a}else f=h=a;u={baseState:o.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:o.shared,callbacks:o.callbacks},n.updateQueue=u;return}n=u.lastBaseUpdate,n===null?u.firstBaseUpdate=a:n.next=a,u.lastBaseUpdate=a}var Kh=!1;function Bo(){if(Kh){var n=wu;if(n!==null)throw n}}function Po(n,a,u,o){Kh=!1;var f=n.updateQueue;Va=!1;var h=f.firstBaseUpdate,T=f.lastBaseUpdate,v=f.shared.pending;if(v!==null){f.shared.pending=null;var B=v,z=B.next;B.next=null,T===null?h=z:T.next=z,T=B;var le=n.alternate;le!==null&&(le=le.updateQueue,v=le.lastBaseUpdate,v!==T&&(v===null?le.firstBaseUpdate=z:v.next=z,le.lastBaseUpdate=B))}if(h!==null){var he=f.baseState;T=0,le=z=B=null,v=h;do{var Z=v.lane&-536870913,ue=Z!==v.lane;if(ue?(ht&Z)===Z:(o&Z)===Z){Z!==0&&Z===Iu&&(Kh=!0),le!==null&&(le=le.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var Le=n,qe=v;Z=a;var Xt=u;switch(qe.tag){case 1:if(Le=qe.payload,typeof Le=="function"){he=Le.call(Xt,he,Z);break e}he=Le;break e;case 3:Le.flags=Le.flags&-65537|128;case 0:if(Le=qe.payload,Z=typeof Le=="function"?Le.call(Xt,he,Z):Le,Z==null)break e;he=A({},he,Z);break e;case 2:Va=!0}}Z=v.callback,Z!==null&&(n.flags|=64,ue&&(n.flags|=8192),ue=f.callbacks,ue===null?f.callbacks=[Z]:ue.push(Z))}else ue={lane:Z,tag:v.tag,payload:v.payload,callback:v.callback,next:null},le===null?(z=le=ue,B=he):le=le.next=ue,T|=Z;if(v=v.next,v===null){if(v=f.shared.pending,v===null)break;ue=v,v=ue.next,ue.next=null,f.lastBaseUpdate=ue,f.shared.pending=null}}while(!0);le===null&&(B=he),f.baseState=B,f.firstBaseUpdate=z,f.lastBaseUpdate=le,h===null&&(f.shared.lanes=0),Wa|=T,n.lanes=T,n.memoizedState=he}}function AS(n,a){if(typeof n!="function")throw Error(i(191,n));n.call(a)}function xS(n,a){var u=n.callbacks;if(u!==null)for(n.callbacks=null,n=0;n<u.length;n++)AS(u[n],a)}function Uo(n,a){try{var u=a.updateQueue,o=u!==null?u.lastEffect:null;if(o!==null){var f=o.next;u=f;do{if((u.tag&n)===n){o=void 0;var h=u.create,T=u.inst;o=h(),T.destroy=o}u=u.next}while(u!==f)}}catch(v){Nt(a,a.return,v)}}function Ga(n,a,u){try{var o=a.updateQueue,f=o!==null?o.lastEffect:null;if(f!==null){var h=f.next;o=h;do{if((o.tag&n)===n){var T=o.inst,v=T.destroy;if(v!==void 0){T.destroy=void 0,f=a;var B=u;try{v()}catch(z){Nt(f,B,z)}}}o=o.next}while(o!==h)}}catch(z){Nt(a,a.return,z)}}function _S(n){var a=n.updateQueue;if(a!==null){var u=n.stateNode;try{xS(a,u)}catch(o){Nt(n,n.return,o)}}}function vS(n,a,u){u.props=Li(n.type,n.memoizedProps),u.state=n.memoizedState;try{u.componentWillUnmount()}catch(o){Nt(n,a,o)}}function Mi(n,a){try{var u=n.ref;if(u!==null){var o=n.stateNode;switch(n.tag){case 26:case 27:case 5:var f=o;break;default:f=o}typeof u=="function"?n.refCleanup=u(f):u.current=f}}catch(h){Nt(n,a,h)}}function tr(n,a){var u=n.ref,o=n.refCleanup;if(u!==null)if(typeof o=="function")try{o()}catch(f){Nt(n,a,f)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(f){Nt(n,a,f)}else u.current=null}function RS(n){var a=n.type,u=n.memoizedProps,o=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":u.autoFocus&&o.focus();break e;case"img":u.src?o.src=u.src:u.srcSet&&(o.srcset=u.srcSet)}}catch(f){Nt(n,n.return,f)}}function OS(n,a,u){try{var o=n.stateNode;dM(o,n.type,u,a),o[jn]=a}catch(f){Nt(n,n.return,f)}}function NS(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27||n.tag===4}function Wh(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||NS(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==27&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Zh(n,a,u){var o=n.tag;if(o===5||o===6)n=n.stateNode,a?u.nodeType===8?u.parentNode.insertBefore(n,a):u.insertBefore(n,a):(u.nodeType===8?(a=u.parentNode,a.insertBefore(n,u)):(a=u,a.appendChild(n)),u=u._reactRootContainer,u!=null||a.onclick!==null||(a.onclick=lf));else if(o!==4&&o!==27&&(n=n.child,n!==null))for(Zh(n,a,u),n=n.sibling;n!==null;)Zh(n,a,u),n=n.sibling}function Gc(n,a,u){var o=n.tag;if(o===5||o===6)n=n.stateNode,a?u.insertBefore(n,a):u.appendChild(n);else if(o!==4&&o!==27&&(n=n.child,n!==null))for(Gc(n,a,u),n=n.sibling;n!==null;)Gc(n,a,u),n=n.sibling}var ga=!1,qt=!1,Jh=!1,kS=typeof WeakSet=="function"?WeakSet:Set,mn=null,DS=!1;function Yw(n,a){if(n=n.containerInfo,Rp=pf,n=Xy(n),th(n)){if("selectionStart"in n)var u={start:n.selectionStart,end:n.selectionEnd};else e:{u=(u=n.ownerDocument)&&u.defaultView||window;var o=u.getSelection&&u.getSelection();if(o&&o.rangeCount!==0){u=o.anchorNode;var f=o.anchorOffset,h=o.focusNode;o=o.focusOffset;try{u.nodeType,h.nodeType}catch{u=null;break e}var T=0,v=-1,B=-1,z=0,le=0,he=n,Z=null;t:for(;;){for(var ue;he!==u||f!==0&&he.nodeType!==3||(v=T+f),he!==h||o!==0&&he.nodeType!==3||(B=T+o),he.nodeType===3&&(T+=he.nodeValue.length),(ue=he.firstChild)!==null;)Z=he,he=ue;for(;;){if(he===n)break t;if(Z===u&&++z===f&&(v=T),Z===h&&++le===o&&(B=T),(ue=he.nextSibling)!==null)break;he=Z,Z=he.parentNode}he=ue}u=v===-1||B===-1?null:{start:v,end:B}}else u=null}u=u||{start:0,end:0}}else u=null;for(Op={focusedElem:n,selectionRange:u},pf=!1,mn=a;mn!==null;)if(a=mn,n=a.child,(a.subtreeFlags&1028)!==0&&n!==null)n.return=a,mn=n;else for(;mn!==null;){switch(a=mn,h=a.alternate,n=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&h!==null){n=void 0,u=a,f=h.memoizedProps,h=h.memoizedState,o=u.stateNode;try{var Le=Li(u.type,f,u.elementType===u.type);n=o.getSnapshotBeforeUpdate(Le,h),o.__reactInternalSnapshotBeforeUpdate=n}catch(qe){Nt(u,u.return,qe)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,u=n.nodeType,u===9)Lp(n);else if(u===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Lp(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(i(163))}if(n=a.sibling,n!==null){n.return=a.return,mn=n;break}mn=a.return}return Le=DS,DS=!1,Le}function LS(n,a,u){var o=u.flags;switch(u.tag){case 0:case 11:case 15:Ea(n,u),o&4&&Uo(5,u);break;case 1:if(Ea(n,u),o&4)if(n=u.stateNode,a===null)try{n.componentDidMount()}catch(v){Nt(u,u.return,v)}else{var f=Li(u.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(f,a,n.__reactInternalSnapshotBeforeUpdate)}catch(v){Nt(u,u.return,v)}}o&64&&_S(u),o&512&&Mi(u,u.return);break;case 3:if(Ea(n,u),o&64&&(o=u.updateQueue,o!==null)){if(n=null,u.child!==null)switch(u.child.tag){case 27:case 5:n=u.child.stateNode;break;case 1:n=u.child.stateNode}try{xS(o,n)}catch(v){Nt(u,u.return,v)}}break;case 26:Ea(n,u),o&512&&Mi(u,u.return);break;case 27:case 5:Ea(n,u),a===null&&o&4&&RS(u),o&512&&Mi(u,u.return);break;case 12:Ea(n,u);break;case 13:Ea(n,u),o&4&&MS(n,u);break;case 22:if(f=u.memoizedState!==null||ga,!f){a=a!==null&&a.memoizedState!==null||qt;var h=ga,T=qt;ga=f,(qt=a)&&!T?Xa(n,u,(u.subtreeFlags&8772)!==0):Ea(n,u),ga=h,qt=T}o&512&&(u.memoizedProps.mode==="manual"?Mi(u,u.return):tr(u,u.return));break;default:Ea(n,u)}}function IS(n){var a=n.alternate;a!==null&&(n.alternate=null,IS(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&H0(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var on=null,nr=!1;function ba(n,a,u){for(u=u.child;u!==null;)wS(n,a,u),u=u.sibling}function wS(n,a,u){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(an,u)}catch{}switch(u.tag){case 26:qt||tr(u,a),ba(n,a,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:qt||tr(u,a);var o=on,f=nr;for(on=u.stateNode,ba(n,a,u),u=u.stateNode,a=u.attributes;a.length;)u.removeAttributeNode(a[0]);H0(u),on=o,nr=f;break;case 5:qt||tr(u,a);case 6:f=on;var h=nr;if(on=null,ba(n,a,u),on=f,nr=h,on!==null)if(nr)try{n=on,o=u.stateNode,n.nodeType===8?n.parentNode.removeChild(o):n.removeChild(o)}catch(T){Nt(u,a,T)}else try{on.removeChild(u.stateNode)}catch(T){Nt(u,a,T)}break;case 18:on!==null&&(nr?(a=on,u=u.stateNode,a.nodeType===8?Dp(a.parentNode,u):a.nodeType===1&&Dp(a,u),ns(a)):Dp(on,u.stateNode));break;case 4:o=on,f=nr,on=u.stateNode.containerInfo,nr=!0,ba(n,a,u),on=o,nr=f;break;case 0:case 11:case 14:case 15:qt||Ga(2,u,a),qt||Ga(4,u,a),ba(n,a,u);break;case 1:qt||(tr(u,a),o=u.stateNode,typeof o.componentWillUnmount=="function"&&vS(u,a,o)),ba(n,a,u);break;case 21:ba(n,a,u);break;case 22:qt||tr(u,a),qt=(o=qt)||u.memoizedState!==null,ba(n,a,u),qt=o;break;default:ba(n,a,u)}}function MS(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{ns(n)}catch(u){Nt(a,a.return,u)}}function jw(n){switch(n.tag){case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new kS),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new kS),a;default:throw Error(i(435,n.tag))}}function ep(n,a){var u=jw(n);a.forEach(function(o){var f=nM.bind(null,n,o);u.has(o)||(u.add(o),o.then(f,f))})}function _r(n,a){var u=a.deletions;if(u!==null)for(var o=0;o<u.length;o++){var f=u[o],h=n,T=a,v=T;e:for(;v!==null;){switch(v.tag){case 27:case 5:on=v.stateNode,nr=!1;break e;case 3:on=v.stateNode.containerInfo,nr=!0;break e;case 4:on=v.stateNode.containerInfo,nr=!0;break e}v=v.return}if(on===null)throw Error(i(160));wS(h,T,f),on=null,nr=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)BS(a,n),a=a.sibling}var Ir=null;function BS(n,a){var u=n.alternate,o=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:_r(a,n),vr(n),o&4&&(Ga(3,n,n.return),Uo(3,n),Ga(5,n,n.return));break;case 1:_r(a,n),vr(n),o&512&&(qt||u===null||tr(u,u.return)),o&64&&ga&&(n=n.updateQueue,n!==null&&(o=n.callbacks,o!==null&&(u=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=u===null?o:u.concat(o))));break;case 26:var f=Ir;if(_r(a,n),vr(n),o&512&&(qt||u===null||tr(u,u.return)),o&4){var h=u!==null?u.memoizedState:null;if(o=n.memoizedState,u===null)if(o===null)if(n.stateNode===null){e:{o=n.type,u=n.memoizedProps,f=f.ownerDocument||f;t:switch(o){case"title":h=f.getElementsByTagName("title")[0],(!h||h[so]||h[Rn]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=f.createElement(o),f.head.insertBefore(h,f.querySelector("head > title"))),Tn(h,o,u),h[Rn]=n,hn(h),o=h;break e;case"link":var T=R3("link","href",f).get(o+(u.href||""));if(T){for(var v=0;v<T.length;v++)if(h=T[v],h.getAttribute("href")===(u.href==null?null:u.href)&&h.getAttribute("rel")===(u.rel==null?null:u.rel)&&h.getAttribute("title")===(u.title==null?null:u.title)&&h.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){T.splice(v,1);break t}}h=f.createElement(o),Tn(h,o,u),f.head.appendChild(h);break;case"meta":if(T=R3("meta","content",f).get(o+(u.content||""))){for(v=0;v<T.length;v++)if(h=T[v],h.getAttribute("content")===(u.content==null?null:""+u.content)&&h.getAttribute("name")===(u.name==null?null:u.name)&&h.getAttribute("property")===(u.property==null?null:u.property)&&h.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&h.getAttribute("charset")===(u.charSet==null?null:u.charSet)){T.splice(v,1);break t}}h=f.createElement(o),Tn(h,o,u),f.head.appendChild(h);break;default:throw Error(i(468,o))}h[Rn]=n,hn(h),o=h}n.stateNode=o}else O3(f,n.type,n.stateNode);else n.stateNode=v3(f,o,n.memoizedProps);else h!==o?(h===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):h.count--,o===null?O3(f,n.type,n.stateNode):v3(f,o,n.memoizedProps)):o===null&&n.stateNode!==null&&OS(n,n.memoizedProps,u.memoizedProps)}break;case 27:if(o&4&&n.alternate===null){f=n.stateNode,h=n.memoizedProps;try{for(var B=f.firstChild;B;){var z=B.nextSibling,le=B.nodeName;B[so]||le==="HEAD"||le==="BODY"||le==="SCRIPT"||le==="STYLE"||le==="LINK"&&B.rel.toLowerCase()==="stylesheet"||f.removeChild(B),B=z}for(var he=n.type,Z=f.attributes;Z.length;)f.removeAttributeNode(Z[0]);Tn(f,he,h),f[Rn]=n,f[jn]=h}catch(Le){Nt(n,n.return,Le)}}case 5:if(_r(a,n),vr(n),o&512&&(qt||u===null||tr(u,u.return)),n.flags&32){f=n.stateNode;try{Su(f,"")}catch(Le){Nt(n,n.return,Le)}}o&4&&n.stateNode!=null&&(f=n.memoizedProps,OS(n,f,u!==null?u.memoizedProps:f)),o&1024&&(Jh=!0);break;case 6:if(_r(a,n),vr(n),o&4){if(n.stateNode===null)throw Error(i(162));o=n.memoizedProps,u=n.stateNode;try{u.nodeValue=o}catch(Le){Nt(n,n.return,Le)}}break;case 3:if(ff=null,f=Ir,Ir=sf(a.containerInfo),_r(a,n),Ir=f,vr(n),o&4&&u!==null&&u.memoizedState.isDehydrated)try{ns(a.containerInfo)}catch(Le){Nt(n,n.return,Le)}Jh&&(Jh=!1,PS(n));break;case 4:o=Ir,Ir=sf(n.stateNode.containerInfo),_r(a,n),vr(n),Ir=o;break;case 12:_r(a,n),vr(n);break;case 13:_r(a,n),vr(n),n.child.flags&8192&&n.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(sp=Xe()),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,ep(n,o)));break;case 22:if(o&512&&(qt||u===null||tr(u,u.return)),B=n.memoizedState!==null,z=u!==null&&u.memoizedState!==null,le=ga,he=qt,ga=le||B,qt=he||z,_r(a,n),qt=he,ga=le,vr(n),a=n.stateNode,a._current=n,a._visibility&=-3,a._visibility|=a._pendingVisibility&2,o&8192&&(a._visibility=B?a._visibility&-2:a._visibility|1,B&&(a=ga||qt,u===null||z||a||Uu(n)),n.memoizedProps===null||n.memoizedProps.mode!=="manual"))e:for(u=null,a=n;;){if(a.tag===5||a.tag===26||a.tag===27){if(u===null){z=u=a;try{if(f=z.stateNode,B)h=f.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{T=z.stateNode,v=z.memoizedProps.style;var ue=v!=null&&v.hasOwnProperty("display")?v.display:null;T.style.display=ue==null||typeof ue=="boolean"?"":(""+ue).trim()}}catch(Le){Nt(z,z.return,Le)}}}else if(a.tag===6){if(u===null){z=a;try{z.stateNode.nodeValue=B?"":z.memoizedProps}catch(Le){Nt(z,z.return,Le)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break e;for(;a.sibling===null;){if(a.return===null||a.return===n)break e;u===a&&(u=null),a=a.return}u===a&&(u=null),a.sibling.return=a.return,a=a.sibling}o&4&&(o=n.updateQueue,o!==null&&(u=o.retryQueue,u!==null&&(o.retryQueue=null,ep(n,u))));break;case 19:_r(a,n),vr(n),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,ep(n,o)));break;case 21:break;default:_r(a,n),vr(n)}}function vr(n){var a=n.flags;if(a&2){try{if(n.tag!==27){e:{for(var u=n.return;u!==null;){if(NS(u)){var o=u;break e}u=u.return}throw Error(i(160))}switch(o.tag){case 27:var f=o.stateNode,h=Wh(n);Gc(n,h,f);break;case 5:var T=o.stateNode;o.flags&32&&(Su(T,""),o.flags&=-33);var v=Wh(n);Gc(n,v,T);break;case 3:case 4:var B=o.stateNode.containerInfo,z=Wh(n);Zh(n,z,B);break;default:throw Error(i(161))}}}catch(le){Nt(n,n.return,le)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function PS(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;PS(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function Ea(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)LS(n,a.alternate,a),a=a.sibling}function Uu(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:Ga(4,a,a.return),Uu(a);break;case 1:tr(a,a.return);var u=a.stateNode;typeof u.componentWillUnmount=="function"&&vS(a,a.return,u),Uu(a);break;case 26:case 27:case 5:tr(a,a.return),Uu(a);break;case 22:tr(a,a.return),a.memoizedState===null&&Uu(a);break;default:Uu(a)}n=n.sibling}}function Xa(n,a,u){for(u=u&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var o=a.alternate,f=n,h=a,T=h.flags;switch(h.tag){case 0:case 11:case 15:Xa(f,h,u),Uo(4,h);break;case 1:if(Xa(f,h,u),o=h,f=o.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(z){Nt(o,o.return,z)}if(o=h,f=o.updateQueue,f!==null){var v=o.stateNode;try{var B=f.shared.hiddenCallbacks;if(B!==null)for(f.shared.hiddenCallbacks=null,f=0;f<B.length;f++)AS(B[f],v)}catch(z){Nt(o,o.return,z)}}u&&T&64&&_S(h),Mi(h,h.return);break;case 26:case 27:case 5:Xa(f,h,u),u&&o===null&&T&4&&RS(h),Mi(h,h.return);break;case 12:Xa(f,h,u);break;case 13:Xa(f,h,u),u&&T&4&&MS(f,h);break;case 22:h.memoizedState===null&&Xa(f,h,u),Mi(h,h.return);break;default:Xa(f,h,u)}a=a.sibling}}function tp(n,a){var u=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==u&&(n!=null&&n.refCount++,u!=null&&Oo(u))}function np(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Oo(n))}function Qa(n,a,u,o){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)US(n,a,u,o),a=a.sibling}function US(n,a,u,o){var f=a.flags;switch(a.tag){case 0:case 11:case 15:Qa(n,a,u,o),f&2048&&Uo(9,a);break;case 3:Qa(n,a,u,o),f&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Oo(n)));break;case 12:if(f&2048){Qa(n,a,u,o),n=a.stateNode;try{var h=a.memoizedProps,T=h.id,v=h.onPostCommit;typeof v=="function"&&v(T,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(B){Nt(a,a.return,B)}}else Qa(n,a,u,o);break;case 23:break;case 22:h=a.stateNode,a.memoizedState!==null?h._visibility&4?Qa(n,a,u,o):Ho(n,a):h._visibility&4?Qa(n,a,u,o):(h._visibility|=4,Hu(n,a,u,o,(a.subtreeFlags&10256)!==0)),f&2048&&tp(a.alternate,a);break;case 24:Qa(n,a,u,o),f&2048&&np(a.alternate,a);break;default:Qa(n,a,u,o)}}function Hu(n,a,u,o,f){for(f=f&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var h=n,T=a,v=u,B=o,z=T.flags;switch(T.tag){case 0:case 11:case 15:Hu(h,T,v,B,f),Uo(8,T);break;case 23:break;case 22:var le=T.stateNode;T.memoizedState!==null?le._visibility&4?Hu(h,T,v,B,f):Ho(h,T):(le._visibility|=4,Hu(h,T,v,B,f)),f&&z&2048&&tp(T.alternate,T);break;case 24:Hu(h,T,v,B,f),f&&z&2048&&np(T.alternate,T);break;default:Hu(h,T,v,B,f)}a=a.sibling}}function Ho(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var u=n,o=a,f=o.flags;switch(o.tag){case 22:Ho(u,o),f&2048&&tp(o.alternate,o);break;case 24:Ho(u,o),f&2048&&np(o.alternate,o);break;default:Ho(u,o)}a=a.sibling}}var Fo=8192;function Fu(n){if(n.subtreeFlags&Fo)for(n=n.child;n!==null;)HS(n),n=n.sibling}function HS(n){switch(n.tag){case 26:Fu(n),n.flags&Fo&&n.memoizedState!==null&&DM(Ir,n.memoizedState,n.memoizedProps);break;case 5:Fu(n);break;case 3:case 4:var a=Ir;Ir=sf(n.stateNode.containerInfo),Fu(n),Ir=a;break;case 22:n.memoizedState===null&&(a=n.alternate,a!==null&&a.memoizedState!==null?(a=Fo,Fo=16777216,Fu(n),Fo=a):Fu(n));break;default:Fu(n)}}function FS(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function zo(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var o=a[u];mn=o,YS(o,n)}FS(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)zS(n),n=n.sibling}function zS(n){switch(n.tag){case 0:case 11:case 15:zo(n),n.flags&2048&&Ga(9,n,n.return);break;case 3:zo(n);break;case 12:zo(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&4&&(n.return===null||n.return.tag!==13)?(a._visibility&=-5,Xc(n)):zo(n);break;default:zo(n)}}function Xc(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var o=a[u];mn=o,YS(o,n)}FS(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:Ga(8,a,a.return),Xc(a);break;case 22:u=a.stateNode,u._visibility&4&&(u._visibility&=-5,Xc(a));break;default:Xc(a)}n=n.sibling}}function YS(n,a){for(;mn!==null;){var u=mn;switch(u.tag){case 0:case 11:case 15:Ga(8,u,a);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var o=u.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Oo(u.memoizedState.cache)}if(o=u.child,o!==null)o.return=u,mn=o;else e:for(u=n;mn!==null;){o=mn;var f=o.sibling,h=o.return;if(IS(o),o===u){mn=null;break e}if(f!==null){f.return=h,mn=f;break e}mn=h}}}function Vw(n,a,u,o){this.tag=n,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,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 Rr(n,a,u,o){return new Vw(n,a,u,o)}function rp(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Ka(n,a){var u=n.alternate;return u===null?(u=Rr(n.tag,a,n.key,n.mode),u.elementType=n.elementType,u.type=n.type,u.stateNode=n.stateNode,u.alternate=n,n.alternate=u):(u.pendingProps=a,u.type=n.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=n.flags&31457280,u.childLanes=n.childLanes,u.lanes=n.lanes,u.child=n.child,u.memoizedProps=n.memoizedProps,u.memoizedState=n.memoizedState,u.updateQueue=n.updateQueue,a=n.dependencies,u.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},u.sibling=n.sibling,u.index=n.index,u.ref=n.ref,u.refCleanup=n.refCleanup,u}function jS(n,a){n.flags&=31457282;var u=n.alternate;return u===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=u.childLanes,n.lanes=u.lanes,n.child=u.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=u.memoizedProps,n.memoizedState=u.memoizedState,n.updateQueue=u.updateQueue,n.type=u.type,a=u.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function Qc(n,a,u,o,f,h){var T=0;if(o=n,typeof n=="function")rp(n)&&(T=1);else if(typeof n=="string")T=NM(n,u,Ge.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case p:return Bi(u.children,f,h,a);case m:T=8,f|=24;break;case b:return n=Rr(12,u,a,f|2),n.elementType=b,n.lanes=h,n;case _:return n=Rr(13,u,a,f),n.elementType=_,n.lanes=h,n;case I:return n=Rr(19,u,a,f),n.elementType=I,n.lanes=h,n;case k:return VS(u,f,h,a);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case E:case y:T=10;break e;case S:T=9;break e;case O:T=11;break e;case R:T=14;break e;case H:T=16,o=null;break e}T=29,u=Error(i(130,n===null?"null":typeof n,"")),o=null}return a=Rr(T,u,a,f),a.elementType=n,a.type=o,a.lanes=h,a}function Bi(n,a,u,o){return n=Rr(7,n,o,a),n.lanes=u,n}function VS(n,a,u,o){n=Rr(22,n,o,a),n.elementType=k,n.lanes=u;var f={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var h=f._current;if(h===null)throw Error(i(456));if((f._pendingVisibility&2)===0){var T=Ua(h,2);T!==null&&(f._pendingVisibility|=2,Dn(T,h,2))}},attach:function(){var h=f._current;if(h===null)throw Error(i(456));if((f._pendingVisibility&2)!==0){var T=Ua(h,2);T!==null&&(f._pendingVisibility&=-3,Dn(T,h,2))}}};return n.stateNode=f,n}function ap(n,a,u){return n=Rr(6,n,null,a),n.lanes=u,n}function ip(n,a,u){return a=Rr(4,n.children!==null?n.children:[],n.key,a),a.lanes=u,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}function ya(n){n.flags|=4}function $S(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!N3(a)){if(a=xr.current,a!==null&&((ht&4194176)===ht?Wr!==null:(ht&62914560)!==ht&&(ht&536870912)===0||a!==Wr))throw _o=ch,oT;n.flags|=8192}}function Kc(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?sy():536870912,n.lanes|=a,Yu|=a)}function Yo(n,a){if(!gt)switch(n.tailMode){case"hidden":a=n.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?n.tail=null:u.sibling=null;break;case"collapsed":u=n.tail;for(var o=null;u!==null;)u.alternate!==null&&(o=u),u=u.sibling;o===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:o.sibling=null}}function zt(n){var a=n.alternate!==null&&n.alternate.child===n.child,u=0,o=0;if(a)for(var f=n.child;f!==null;)u|=f.lanes|f.childLanes,o|=f.subtreeFlags&31457280,o|=f.flags&31457280,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)u|=f.lanes|f.childLanes,o|=f.subtreeFlags,o|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=o,n.childLanes=u,a}function $w(n,a,u){var o=a.pendingProps;switch(oh(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zt(a),null;case 1:return zt(a),null;case 3:return u=a.stateNode,o=null,n!==null&&(o=n.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),ma(cn),it(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(n===null||n.child===null)&&(So(a)?ya(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Lr!==null&&(hp(Lr),Lr=null))),zt(a),null;case 26:return u=a.memoizedState,n===null?(ya(a),u!==null?(zt(a),$S(a,u)):(zt(a),a.flags&=-16777217)):u?u!==n.memoizedState?(ya(a),zt(a),$S(a,u)):(zt(a),a.flags&=-16777217):(n.memoizedProps!==o&&ya(a),zt(a),a.flags&=-16777217),null;case 27:Ue(a),u=Re.current;var f=a.type;if(n!==null&&a.stateNode!=null)n.memoizedProps!==o&&ya(a);else{if(!o){if(a.stateNode===null)throw Error(i(166));return zt(a),null}n=Ge.current,So(a)?uT(a):(n=S3(f,o,u),a.stateNode=n,ya(a))}return zt(a),null;case 5:if(Ue(a),u=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==o&&ya(a);else{if(!o){if(a.stateNode===null)throw Error(i(166));return zt(a),null}if(n=Ge.current,So(a))uT(a);else{switch(f=of(Re.current),n){case 1:n=f.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:n=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":n=f.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":n=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":n=f.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof o.is=="string"?f.createElement("select",{is:o.is}):f.createElement("select"),o.multiple?n.multiple=!0:o.size&&(n.size=o.size);break;default:n=typeof o.is=="string"?f.createElement(u,{is:o.is}):f.createElement(u)}}n[Rn]=a,n[jn]=o;e:for(f=a.child;f!==null;){if(f.tag===5||f.tag===6)n.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===a)break e;for(;f.sibling===null;){if(f.return===null||f.return===a)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}a.stateNode=n;e:switch(Tn(n,u,o),u){case"button":case"input":case"select":case"textarea":n=!!o.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&ya(a)}}return zt(a),a.flags&=-16777217,null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==o&&ya(a);else{if(typeof o!="string"&&a.stateNode===null)throw Error(i(166));if(n=Re.current,So(a)){if(n=a.stateNode,u=a.memoizedProps,o=null,f=kn,f!==null)switch(f.tag){case 27:case 5:o=f.memoizedProps}n[Rn]=a,n=!!(n.nodeValue===u||o!==null&&o.suppressHydrationWarning===!0||m3(n.nodeValue,u)),n||vi(a)}else n=of(n).createTextNode(o),n[Rn]=a,a.stateNode=n}return zt(a),null;case 13:if(o=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(f=So(a),o!==null&&o.dehydrated!==null){if(n===null){if(!f)throw Error(i(318));if(f=a.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(i(317));f[Rn]=a}else Co(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;zt(a),f=!1}else Lr!==null&&(hp(Lr),Lr=null),f=!0;if(!f)return a.flags&256?(fa(a),a):(fa(a),null)}if(fa(a),(a.flags&128)!==0)return a.lanes=u,a;if(u=o!==null,n=n!==null&&n.memoizedState!==null,u){o=a.child,f=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(f=o.alternate.memoizedState.cachePool.pool);var h=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==f&&(o.flags|=2048)}return u!==n&&u&&(a.child.flags|=8192),Kc(a,a.updateQueue),zt(a),null;case 4:return it(),n===null&&xp(a.stateNode.containerInfo),zt(a),null;case 10:return ma(a.type),zt(a),null;case 19:if($e(sn),f=a.memoizedState,f===null)return zt(a),null;if(o=(a.flags&128)!==0,h=f.rendering,h===null)if(o)Yo(f,!1);else{if(Gt!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(h=Ic(n),h!==null){for(a.flags|=128,Yo(f,!1),n=h.updateQueue,a.updateQueue=n,Kc(a,n),a.subtreeFlags=0,n=u,u=a.child;u!==null;)jS(u,n),u=u.sibling;return xe(sn,sn.current&1|2),a.child}n=n.sibling}f.tail!==null&&Xe()>Wc&&(a.flags|=128,o=!0,Yo(f,!1),a.lanes=4194304)}else{if(!o)if(n=Ic(h),n!==null){if(a.flags|=128,o=!0,n=n.updateQueue,a.updateQueue=n,Kc(a,n),Yo(f,!0),f.tail===null&&f.tailMode==="hidden"&&!h.alternate&&!gt)return zt(a),null}else 2*Xe()-f.renderingStartTime>Wc&&u!==536870912&&(a.flags|=128,o=!0,Yo(f,!1),a.lanes=4194304);f.isBackwards?(h.sibling=a.child,a.child=h):(n=f.last,n!==null?n.sibling=h:a.child=h,f.last=h)}return f.tail!==null?(a=f.tail,f.rendering=a,f.tail=a.sibling,f.renderingStartTime=Xe(),a.sibling=null,n=sn.current,xe(sn,o?n&1|2:n&1),a):(zt(a),null);case 22:case 23:return fa(a),dh(),o=a.memoizedState!==null,n!==null?n.memoizedState!==null!==o&&(a.flags|=8192):o&&(a.flags|=8192),o?(u&536870912)!==0&&(a.flags&128)===0&&(zt(a),a.subtreeFlags&6&&(a.flags|=8192)):zt(a),u=a.updateQueue,u!==null&&Kc(a,u.retryQueue),u=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==u&&(a.flags|=2048),n!==null&&$e(Oi),null;case 24:return u=null,n!==null&&(u=n.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),ma(cn),zt(a),null;case 25:return null}throw Error(i(156,a.tag))}function qw(n,a){switch(oh(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return ma(cn),it(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return Ue(a),null;case 13:if(fa(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(i(340));Co()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return $e(sn),null;case 4:return it(),null;case 10:return ma(a.type),null;case 22:case 23:return fa(a),dh(),n!==null&&$e(Oi),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return ma(cn),null;case 25:return null;default:return null}}function qS(n,a){switch(oh(a),a.tag){case 3:ma(cn),it();break;case 26:case 27:case 5:Ue(a);break;case 4:it();break;case 13:fa(a);break;case 19:$e(sn);break;case 10:ma(a.type);break;case 22:case 23:fa(a),dh(),n!==null&&$e(Oi);break;case 24:ma(cn)}}var Gw={getCacheForType:function(n){var a=On(cn),u=a.data.get(n);return u===void 0&&(u=n(),a.data.set(n,u)),u}},Xw=typeof WeakMap=="function"?WeakMap:Map,Yt=0,wt=null,lt=null,ht=0,Mt=0,rr=null,Ta=!1,zu=!1,up=!1,Sa=0,Gt=0,Wa=0,Pi=0,lp=0,Or=0,Yu=0,jo=null,Jr=null,op=!1,sp=0,Wc=1/0,Zc=null,Za=null,Jc=!1,Ui=null,Vo=0,cp=0,fp=null,$o=0,dp=null;function ar(){if((Yt&2)!==0&&ht!==0)return ht&-ht;if(V.T!==null){var n=Iu;return n!==0?n:Tp()}return hy()}function GS(){Or===0&&(Or=(ht&536870912)===0||gt?oy():536870912);var n=xr.current;return n!==null&&(n.flags|=32),Or}function Dn(n,a,u){(n===wt&&Mt===2||n.cancelPendingCommit!==null)&&(ju(n,0),Ca(n,ht,Or,!1)),oo(n,u),((Yt&2)===0||n!==wt)&&(n===wt&&((Yt&2)===0&&(Pi|=u),Gt===4&&Ca(n,ht,Or,!1)),ea(n))}function XS(n,a,u){if((Yt&6)!==0)throw Error(i(327));var o=!u&&(a&60)===0&&(a&n.expiredLanes)===0||lo(n,a),f=o?Ww(n,a):gp(n,a,!0),h=o;do{if(f===0){zu&&!o&&Ca(n,a,0,!1);break}else if(f===6)Ca(n,a,0,!Ta);else{if(u=n.current.alternate,h&&!Qw(u)){f=gp(n,a,!1),h=!1;continue}if(f===2){if(h=a,n.errorRecoveryDisabledLanes&h)var T=0;else T=n.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){a=T;e:{var v=n;f=jo;var B=v.current.memoizedState.isDehydrated;if(B&&(ju(v,T).flags|=256),T=gp(v,T,!1),T!==2){if(up&&!B){v.errorRecoveryDisabledLanes|=h,Pi|=h,f=4;break e}h=Jr,Jr=f,h!==null&&hp(h)}f=T}if(h=!1,f!==2)continue}}if(f===1){ju(n,0),Ca(n,a,0,!0);break}e:{switch(o=n,f){case 0:case 1:throw Error(i(345));case 4:if((a&4194176)===a){Ca(o,a,Or,!Ta);break e}break;case 2:Jr=null;break;case 3:case 5:break;default:throw Error(i(329))}if(o.finishedWork=u,o.finishedLanes=a,(a&62914560)===a&&(h=sp+300-Xe(),10<h)){if(Ca(o,a,Or,!Ta),Ma(o,0)!==0)break e;o.timeoutHandle=E3(QS.bind(null,o,u,Jr,Zc,op,a,Or,Pi,Yu,Ta,2,-0,0),h);break e}QS(o,u,Jr,Zc,op,a,Or,Pi,Yu,Ta,0,-0,0)}}break}while(!0);ea(n)}function hp(n){Jr===null?Jr=n:Jr.push.apply(Jr,n)}function QS(n,a,u,o,f,h,T,v,B,z,le,he,Z){var ue=a.subtreeFlags;if((ue&8192||(ue&16785408)===16785408)&&(Wo={stylesheets:null,count:0,unsuspend:kM},HS(a),a=LM(),a!==null)){n.cancelPendingCommit=a(n3.bind(null,n,u,o,f,T,v,B,1,he,Z)),Ca(n,h,T,!z);return}n3(n,u,o,f,T,v,B,le,he,Z)}function Qw(n){for(var a=n;;){var u=a.tag;if((u===0||u===11||u===15)&&a.flags&16384&&(u=a.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var o=0;o<u.length;o++){var f=u[o],h=f.getSnapshot;f=f.value;try{if(!er(h(),f))return!1}catch{return!1}}if(u=a.child,a.subtreeFlags&16384&&u!==null)u.return=a,a=u;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ca(n,a,u,o){a&=~lp,a&=~Pi,n.suspendedLanes|=a,n.pingedLanes&=~a,o&&(n.warmLanes|=a),o=n.expirationTimes;for(var f=a;0<f;){var h=31-ze(f),T=1<<h;o[h]=-1,f&=~T}u!==0&&cy(n,u,a)}function ef(){return(Yt&6)===0?(qo(0),!1):!0}function pp(){if(lt!==null){if(Mt===0)var n=lt.return;else n=lt,pa=Ii=null,Th(n),Du=null,vo=0,n=lt;for(;n!==null;)qS(n.alternate,n),n=n.return;lt=null}}function ju(n,a){n.finishedWork=null,n.finishedLanes=0;var u=n.timeoutHandle;u!==-1&&(n.timeoutHandle=-1,pM(u)),u=n.cancelPendingCommit,u!==null&&(n.cancelPendingCommit=null,u()),pp(),wt=n,lt=u=Ka(n.current,null),ht=a,Mt=0,rr=null,Ta=!1,zu=lo(n,a),up=!1,Yu=Or=lp=Pi=Wa=Gt=0,Jr=jo=null,op=!1,(a&8)!==0&&(a|=a&32);var o=n.entangledLanes;if(o!==0)for(n=n.entanglements,o&=a;0<o;){var f=31-ze(o),h=1<<f;a|=n[f],o&=~h}return Sa=a,xc(),u}function KS(n,a){rt=null,V.H=Zr,a===xo?(a=fT(),Mt=3):a===oT?(a=fT(),Mt=4):Mt=a===sS?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,rr=a,lt===null&&(Gt=1,Vc(n,Sr(a,n.current)))}function WS(){var n=V.H;return V.H=Zr,n===null?Zr:n}function ZS(){var n=V.A;return V.A=Gw,n}function mp(){Gt=4,Ta||(ht&4194176)!==ht&&xr.current!==null||(zu=!0),(Wa&134217727)===0&&(Pi&134217727)===0||wt===null||Ca(wt,ht,Or,!1)}function gp(n,a,u){var o=Yt;Yt|=2;var f=WS(),h=ZS();(wt!==n||ht!==a)&&(Zc=null,ju(n,a)),a=!1;var T=Gt;e:do try{if(Mt!==0&&lt!==null){var v=lt,B=rr;switch(Mt){case 8:pp(),T=6;break e;case 3:case 2:case 6:xr.current===null&&(a=!0);var z=Mt;if(Mt=0,rr=null,Vu(n,v,B,z),u&&zu){T=0;break e}break;default:z=Mt,Mt=0,rr=null,Vu(n,v,B,z)}}Kw(),T=Gt;break}catch(le){KS(n,le)}while(!0);return a&&n.shellSuspendCounter++,pa=Ii=null,Yt=o,V.H=f,V.A=h,lt===null&&(wt=null,ht=0,xc()),T}function Kw(){for(;lt!==null;)JS(lt)}function Ww(n,a){var u=Yt;Yt|=2;var o=WS(),f=ZS();wt!==n||ht!==a?(Zc=null,Wc=Xe()+500,ju(n,a)):zu=lo(n,a);e:do try{if(Mt!==0&&lt!==null){a=lt;var h=rr;t:switch(Mt){case 1:Mt=0,rr=null,Vu(n,a,h,1);break;case 2:if(sT(h)){Mt=0,rr=null,e3(a);break}a=function(){Mt===2&&wt===n&&(Mt=7),ea(n)},h.then(a,a);break e;case 3:Mt=7;break e;case 4:Mt=5;break e;case 7:sT(h)?(Mt=0,rr=null,e3(a)):(Mt=0,rr=null,Vu(n,a,h,7));break;case 5:var T=null;switch(lt.tag){case 26:T=lt.memoizedState;case 5:case 27:var v=lt;if(!T||N3(T)){Mt=0,rr=null;var B=v.sibling;if(B!==null)lt=B;else{var z=v.return;z!==null?(lt=z,tf(z)):lt=null}break t}}Mt=0,rr=null,Vu(n,a,h,5);break;case 6:Mt=0,rr=null,Vu(n,a,h,6);break;case 8:pp(),Gt=6;break e;default:throw Error(i(462))}}Zw();break}catch(le){KS(n,le)}while(!0);return pa=Ii=null,V.H=o,V.A=f,Yt=u,lt!==null?0:(wt=null,ht=0,xc(),Gt)}function Zw(){for(;lt!==null&&!_n();)JS(lt)}function JS(n){var a=SS(n.alternate,n,Sa);n.memoizedProps=n.pendingProps,a===null?tf(n):lt=a}function e3(n){var a=n,u=a.alternate;switch(a.tag){case 15:case 0:a=mS(u,a,a.pendingProps,a.type,void 0,ht);break;case 11:a=mS(u,a,a.pendingProps,a.type.render,a.ref,ht);break;case 5:Th(a);default:qS(u,a),a=lt=jS(a,Sa),a=SS(u,a,Sa)}n.memoizedProps=n.pendingProps,a===null?tf(n):lt=a}function Vu(n,a,u,o){pa=Ii=null,Th(a),Du=null,vo=0;var f=a.return;try{if(Fw(n,f,a,u,ht)){Gt=1,Vc(n,Sr(u,n.current)),lt=null;return}}catch(h){if(f!==null)throw lt=f,h;Gt=1,Vc(n,Sr(u,n.current)),lt=null;return}a.flags&32768?(gt||o===1?n=!0:zu||(ht&536870912)!==0?n=!1:(Ta=n=!0,(o===2||o===3||o===6)&&(o=xr.current,o!==null&&o.tag===13&&(o.flags|=16384))),t3(a,n)):tf(a)}function tf(n){var a=n;do{if((a.flags&32768)!==0){t3(a,Ta);return}n=a.return;var u=$w(a.alternate,a,Sa);if(u!==null){lt=u;return}if(a=a.sibling,a!==null){lt=a;return}lt=a=n}while(a!==null);Gt===0&&(Gt=5)}function t3(n,a){do{var u=qw(n.alternate,n);if(u!==null){u.flags&=32767,lt=u;return}if(u=n.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!a&&(n=n.sibling,n!==null)){lt=n;return}lt=n=u}while(n!==null);Gt=6,lt=null}function n3(n,a,u,o,f,h,T,v,B,z){var le=V.T,he=ce.p;try{ce.p=2,V.T=null,Jw(n,a,u,o,he,f,h,T,v,B,z)}finally{V.T=le,ce.p=he}}function Jw(n,a,u,o,f,h,T,v){do $u();while(Ui!==null);if((Yt&6)!==0)throw Error(i(327));var B=n.finishedWork;if(o=n.finishedLanes,B===null)return null;if(n.finishedWork=null,n.finishedLanes=0,B===n.current)throw Error(i(177));n.callbackNode=null,n.callbackPriority=0,n.cancelPendingCommit=null;var z=B.lanes|B.childLanes;if(z|=ih,DI(n,o,z,h,T,v),n===wt&&(lt=wt=null,ht=0),(B.subtreeFlags&10256)===0&&(B.flags&10256)===0||Jc||(Jc=!0,cp=z,fp=u,rM(Ae,function(){return $u(),null})),u=(B.flags&15990)!==0,(B.subtreeFlags&15990)!==0||u?(u=V.T,V.T=null,h=ce.p,ce.p=2,T=Yt,Yt|=4,Yw(n,B),BS(B,n),Aw(Op,n.containerInfo),pf=!!Rp,Op=Rp=null,n.current=B,LS(n,B.alternate,B),we(),Yt=T,ce.p=h,V.T=u):n.current=B,Jc?(Jc=!1,Ui=n,Vo=o):r3(n,z),z=n.pendingLanes,z===0&&(Za=null),ke(B.stateNode),ea(n),a!==null)for(f=n.onRecoverableError,B=0;B<a.length;B++)z=a[B],f(z.value,{componentStack:z.stack});return(Vo&3)!==0&&$u(),z=n.pendingLanes,(o&4194218)!==0&&(z&42)!==0?n===dp?$o++:($o=0,dp=n):$o=0,qo(0),null}function r3(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,Oo(a)))}function $u(){if(Ui!==null){var n=Ui,a=cp;cp=0;var u=dy(Vo),o=V.T,f=ce.p;try{if(ce.p=32>u?32:u,V.T=null,Ui===null)var h=!1;else{u=fp,fp=null;var T=Ui,v=Vo;if(Ui=null,Vo=0,(Yt&6)!==0)throw Error(i(331));var B=Yt;if(Yt|=4,zS(T.current),US(T,T.current,v,u),Yt=B,qo(0,!1),Ft&&typeof Ft.onPostCommitFiberRoot=="function")try{Ft.onPostCommitFiberRoot(an,T)}catch{}h=!0}return h}finally{ce.p=f,V.T=o,r3(n,a)}}return!1}function a3(n,a,u){a=Sr(u,a),a=wh(n.stateNode,a,2),n=qa(n,a,2),n!==null&&(oo(n,2),ea(n))}function Nt(n,a,u){if(n.tag===3)a3(n,n,u);else for(;a!==null;){if(a.tag===3){a3(a,n,u);break}else if(a.tag===1){var o=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Za===null||!Za.has(o))){n=Sr(u,n),u=lS(2),o=qa(a,u,2),o!==null&&(oS(u,o,a,n),oo(o,2),ea(o));break}}a=a.return}}function bp(n,a,u){var o=n.pingCache;if(o===null){o=n.pingCache=new Xw;var f=new Set;o.set(a,f)}else f=o.get(a),f===void 0&&(f=new Set,o.set(a,f));f.has(u)||(up=!0,f.add(u),n=eM.bind(null,n,a,u),a.then(n,n))}function eM(n,a,u){var o=n.pingCache;o!==null&&o.delete(a),n.pingedLanes|=n.suspendedLanes&u,n.warmLanes&=~u,wt===n&&(ht&u)===u&&(Gt===4||Gt===3&&(ht&62914560)===ht&&300>Xe()-sp?(Yt&2)===0&&ju(n,0):lp|=u,Yu===ht&&(Yu=0)),ea(n)}function i3(n,a){a===0&&(a=sy()),n=Ua(n,a),n!==null&&(oo(n,a),ea(n))}function tM(n){var a=n.memoizedState,u=0;a!==null&&(u=a.retryLane),i3(n,u)}function nM(n,a){var u=0;switch(n.tag){case 13:var o=n.stateNode,f=n.memoizedState;f!==null&&(u=f.retryLane);break;case 19:o=n.stateNode;break;case 22:o=n.stateNode._retryCache;break;default:throw Error(i(314))}o!==null&&o.delete(a),i3(n,u)}function rM(n,a){return St(n,a)}var nf=null,qu=null,Ep=!1,rf=!1,yp=!1,Hi=0;function ea(n){n!==qu&&n.next===null&&(qu===null?nf=qu=n:qu=qu.next=n),rf=!0,Ep||(Ep=!0,iM(aM))}function qo(n,a){if(!yp&&rf){yp=!0;do for(var u=!1,o=nf;o!==null;){if(n!==0){var f=o.pendingLanes;if(f===0)var h=0;else{var T=o.suspendedLanes,v=o.pingedLanes;h=(1<<31-ze(42|n)+1)-1,h&=f&~(T&~v),h=h&201326677?h&201326677|1:h?h|2:0}h!==0&&(u=!0,o3(o,h))}else h=ht,h=Ma(o,o===wt?h:0),(h&3)===0||lo(o,h)||(u=!0,o3(o,h));o=o.next}while(u);yp=!1}}function aM(){rf=Ep=!1;var n=0;Hi!==0&&(hM()&&(n=Hi),Hi=0);for(var a=Xe(),u=null,o=nf;o!==null;){var f=o.next,h=u3(o,a);h===0?(o.next=null,u===null?nf=f:u.next=f,f===null&&(qu=u)):(u=o,(n!==0||(h&3)!==0)&&(rf=!0)),o=f}qo(n)}function u3(n,a){for(var u=n.suspendedLanes,o=n.pingedLanes,f=n.expirationTimes,h=n.pendingLanes&-62914561;0<h;){var T=31-ze(h),v=1<<T,B=f[T];B===-1?((v&u)===0||(v&o)!==0)&&(f[T]=kI(v,a)):B<=a&&(n.expiredLanes|=v),h&=~v}if(a=wt,u=ht,u=Ma(n,n===a?u:0),o=n.callbackNode,u===0||n===a&&Mt===2||n.cancelPendingCommit!==null)return o!==null&&o!==null&&rn(o),n.callbackNode=null,n.callbackPriority=0;if((u&3)===0||lo(n,u)){if(a=u&-u,a===n.callbackPriority)return a;switch(o!==null&&rn(o),dy(u)){case 2:case 8:u=de;break;case 32:u=Ae;break;case 268435456:u=nt;break;default:u=Ae}return o=l3.bind(null,n),u=St(u,o),n.callbackPriority=a,n.callbackNode=u,a}return o!==null&&o!==null&&rn(o),n.callbackPriority=2,n.callbackNode=null,2}function l3(n,a){var u=n.callbackNode;if($u()&&n.callbackNode!==u)return null;var o=ht;return o=Ma(n,n===wt?o:0),o===0?null:(XS(n,o,a),u3(n,Xe()),n.callbackNode!=null&&n.callbackNode===u?l3.bind(null,n):null)}function o3(n,a){if($u())return null;XS(n,a,!0)}function iM(n){mM(function(){(Yt&6)!==0?St(ee,n):n()})}function Tp(){return Hi===0&&(Hi=oy()),Hi}function s3(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:bc(""+n)}function c3(n,a){var u=a.ownerDocument.createElement("input");return u.name=a.name,u.value=a.value,n.id&&u.setAttribute("form",n.id),a.parentNode.insertBefore(u,a),n=new FormData(n),u.parentNode.removeChild(u),n}function uM(n,a,u,o,f){if(a==="submit"&&u&&u.stateNode===f){var h=s3((f[jn]||null).action),T=o.submitter;T&&(a=(a=T[jn]||null)?s3(a.formAction):T.getAttribute("formAction"),a!==null&&(h=a,T=null));var v=new Sc("action","action",null,o,f);n.push({event:v,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Hi!==0){var B=T?c3(f,T):new FormData(f);Nh(u,{pending:!0,data:B,method:f.method,action:h},null,B)}}else typeof h=="function"&&(v.preventDefault(),B=T?c3(f,T):new FormData(f),Nh(u,{pending:!0,data:B,method:f.method,action:h},h,B))},currentTarget:f}]})}}for(var Sp=0;Sp<nT.length;Sp++){var Cp=nT[Sp],lM=Cp.toLowerCase(),oM=Cp[0].toUpperCase()+Cp.slice(1);Dr(lM,"on"+oM)}Dr(Wy,"onAnimationEnd"),Dr(Zy,"onAnimationIteration"),Dr(Jy,"onAnimationStart"),Dr("dblclick","onDoubleClick"),Dr("focusin","onFocus"),Dr("focusout","onBlur"),Dr(_w,"onTransitionRun"),Dr(vw,"onTransitionStart"),Dr(Rw,"onTransitionCancel"),Dr(eT,"onTransitionEnd"),yu("onMouseEnter",["mouseout","mouseover"]),yu("onMouseLeave",["mouseout","mouseover"]),yu("onPointerEnter",["pointerout","pointerover"]),yu("onPointerLeave",["pointerout","pointerover"]),Ti("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ti("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ti("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ti("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ti("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ti("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Go="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(" "),sM=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Go));function f3(n,a){a=(a&4)!==0;for(var u=0;u<n.length;u++){var o=n[u],f=o.event;o=o.listeners;e:{var h=void 0;if(a)for(var T=o.length-1;0<=T;T--){var v=o[T],B=v.instance,z=v.currentTarget;if(v=v.listener,B!==h&&f.isPropagationStopped())break e;h=v,f.currentTarget=z;try{h(f)}catch(le){jc(le)}f.currentTarget=null,h=B}else for(T=0;T<o.length;T++){if(v=o[T],B=v.instance,z=v.currentTarget,v=v.listener,B!==h&&f.isPropagationStopped())break e;h=v,f.currentTarget=z;try{h(f)}catch(le){jc(le)}f.currentTarget=null,h=B}}}}function ft(n,a){var u=a[U0];u===void 0&&(u=a[U0]=new Set);var o=n+"__bubble";u.has(o)||(d3(a,n,2,!1),u.add(o))}function Ap(n,a,u){var o=0;a&&(o|=4),d3(u,n,o,a)}var af="_reactListening"+Math.random().toString(36).slice(2);function xp(n){if(!n[af]){n[af]=!0,my.forEach(function(u){u!=="selectionchange"&&(sM.has(u)||Ap(u,!1,n),Ap(u,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[af]||(a[af]=!0,Ap("selectionchange",!1,a))}}function d3(n,a,u,o){switch(M3(a)){case 2:var f=MM;break;case 8:f=BM;break;default:f=Pp}u=f.bind(null,a,u,n),f=void 0,!q0||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(f=!0),o?f!==void 0?n.addEventListener(a,u,{capture:!0,passive:f}):n.addEventListener(a,u,!0):f!==void 0?n.addEventListener(a,u,{passive:f}):n.addEventListener(a,u,!1)}function _p(n,a,u,o,f){var h=o;if((a&1)===0&&(a&2)===0&&o!==null)e:for(;;){if(o===null)return;var T=o.tag;if(T===3||T===4){var v=o.stateNode.containerInfo;if(v===f||v.nodeType===8&&v.parentNode===f)break;if(T===4)for(T=o.return;T!==null;){var B=T.tag;if((B===3||B===4)&&(B=T.stateNode.containerInfo,B===f||B.nodeType===8&&B.parentNode===f))return;T=T.return}for(;v!==null;){if(T=yi(v),T===null)return;if(B=T.tag,B===5||B===6||B===26||B===27){o=h=T;continue e}v=v.parentNode}}o=o.return}Ry(function(){var z=h,le=V0(u),he=[];e:{var Z=tT.get(n);if(Z!==void 0){var ue=Sc,Le=n;switch(n){case"keypress":if(yc(u)===0)break e;case"keydown":case"keyup":ue=nw;break;case"focusin":Le="focus",ue=K0;break;case"focusout":Le="blur",ue=K0;break;case"beforeblur":case"afterblur":ue=K0;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ue=ky;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ue=VI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ue=iw;break;case Wy:case Zy:case Jy:ue=GI;break;case eT:ue=lw;break;case"scroll":case"scrollend":ue=YI;break;case"wheel":ue=sw;break;case"copy":case"cut":case"paste":ue=QI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ue=Ly;break;case"toggle":case"beforetoggle":ue=fw}var qe=(a&4)!==0,Xt=!qe&&(n==="scroll"||n==="scrollend"),$=qe?Z!==null?Z+"Capture":null:Z;qe=[];for(var F=z,G;F!==null;){var fe=F;if(G=fe.stateNode,fe=fe.tag,fe!==5&&fe!==26&&fe!==27||G===null||$===null||(fe=fo(F,$),fe!=null&&qe.push(Xo(F,fe,G))),Xt)break;F=F.return}0<qe.length&&(Z=new ue(Z,Le,null,u,le),he.push({event:Z,listeners:qe}))}}if((a&7)===0){e:{if(Z=n==="mouseover"||n==="pointerover",ue=n==="mouseout"||n==="pointerout",Z&&u!==j0&&(Le=u.relatedTarget||u.fromElement)&&(yi(Le)||Le[gu]))break e;if((ue||Z)&&(Z=le.window===le?le:(Z=le.ownerDocument)?Z.defaultView||Z.parentWindow:window,ue?(Le=u.relatedTarget||u.toElement,ue=z,Le=Le?yi(Le):null,Le!==null&&(Xt=re(Le),qe=Le.tag,Le!==Xt||qe!==5&&qe!==27&&qe!==6)&&(Le=null)):(ue=null,Le=z),ue!==Le)){if(qe=ky,fe="onMouseLeave",$="onMouseEnter",F="mouse",(n==="pointerout"||n==="pointerover")&&(qe=Ly,fe="onPointerLeave",$="onPointerEnter",F="pointer"),Xt=ue==null?Z:co(ue),G=Le==null?Z:co(Le),Z=new qe(fe,F+"leave",ue,u,le),Z.target=Xt,Z.relatedTarget=G,fe=null,yi(le)===z&&(qe=new qe($,F+"enter",Le,u,le),qe.target=G,qe.relatedTarget=Xt,fe=qe),Xt=fe,ue&&Le)t:{for(qe=ue,$=Le,F=0,G=qe;G;G=Gu(G))F++;for(G=0,fe=$;fe;fe=Gu(fe))G++;for(;0<F-G;)qe=Gu(qe),F--;for(;0<G-F;)$=Gu($),G--;for(;F--;){if(qe===$||$!==null&&qe===$.alternate)break t;qe=Gu(qe),$=Gu($)}qe=null}else qe=null;ue!==null&&h3(he,Z,ue,qe,!1),Le!==null&&Xt!==null&&h3(he,Xt,Le,qe,!0)}}e:{if(Z=z?co(z):window,ue=Z.nodeName&&Z.nodeName.toLowerCase(),ue==="select"||ue==="input"&&Z.type==="file")var Ne=Fy;else if(Uy(Z))if(zy)Ne=Sw;else{Ne=yw;var ut=Ew}else ue=Z.nodeName,!ue||ue.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?z&&Y0(z.elementType)&&(Ne=Fy):Ne=Tw;if(Ne&&(Ne=Ne(n,z))){Hy(he,Ne,u,le);break e}ut&&ut(n,Z,z),n==="focusout"&&z&&Z.type==="number"&&z.memoizedProps.value!=null&&z0(Z,"number",Z.value)}switch(ut=z?co(z):window,n){case"focusin":(Uy(ut)||ut.contentEditable==="true")&&(_u=ut,nh=z,To=null);break;case"focusout":To=nh=_u=null;break;case"mousedown":rh=!0;break;case"contextmenu":case"mouseup":case"dragend":rh=!1,Qy(he,u,le);break;case"selectionchange":if(xw)break;case"keydown":case"keyup":Qy(he,u,le)}var Pe;if(Z0)e:{switch(n){case"compositionstart":var Ye="onCompositionStart";break e;case"compositionend":Ye="onCompositionEnd";break e;case"compositionupdate":Ye="onCompositionUpdate";break e}Ye=void 0}else xu?By(n,u)&&(Ye="onCompositionEnd"):n==="keydown"&&u.keyCode===229&&(Ye="onCompositionStart");Ye&&(Iy&&u.locale!=="ko"&&(xu||Ye!=="onCompositionStart"?Ye==="onCompositionEnd"&&xu&&(Pe=Oy()):(Pa=le,G0="value"in Pa?Pa.value:Pa.textContent,xu=!0)),ut=uf(z,Ye),0<ut.length&&(Ye=new Dy(Ye,n,null,u,le),he.push({event:Ye,listeners:ut}),Pe?Ye.data=Pe:(Pe=Py(u),Pe!==null&&(Ye.data=Pe)))),(Pe=hw?pw(n,u):mw(n,u))&&(Ye=uf(z,"onBeforeInput"),0<Ye.length&&(ut=new Dy("onBeforeInput","beforeinput",null,u,le),he.push({event:ut,listeners:Ye}),ut.data=Pe)),uM(he,n,z,u,le)}f3(he,a)})}function Xo(n,a,u){return{instance:n,listener:a,currentTarget:u}}function uf(n,a){for(var u=a+"Capture",o=[];n!==null;){var f=n,h=f.stateNode;f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=fo(n,u),f!=null&&o.unshift(Xo(n,f,h)),f=fo(n,a),f!=null&&o.push(Xo(n,f,h))),n=n.return}return o}function Gu(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function h3(n,a,u,o,f){for(var h=a._reactName,T=[];u!==null&&u!==o;){var v=u,B=v.alternate,z=v.stateNode;if(v=v.tag,B!==null&&B===o)break;v!==5&&v!==26&&v!==27||z===null||(B=z,f?(z=fo(u,h),z!=null&&T.unshift(Xo(u,z,B))):f||(z=fo(u,h),z!=null&&T.push(Xo(u,z,B)))),u=u.return}T.length!==0&&n.push({event:a,listeners:T})}var cM=/\r\n?/g,fM=/\u0000|\uFFFD/g;function p3(n){return(typeof n=="string"?n:""+n).replace(cM,`
41
- `).replace(fM,"")}function m3(n,a){return a=p3(a),p3(n)===a}function lf(){}function At(n,a,u,o,f,h){switch(u){case"children":typeof o=="string"?a==="body"||a==="textarea"&&o===""||Su(n,o):(typeof o=="number"||typeof o=="bigint")&&a!=="body"&&Su(n,""+o);break;case"className":pc(n,"class",o);break;case"tabIndex":pc(n,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":pc(n,u,o);break;case"style":_y(n,o,h);break;case"data":if(a!=="object"){pc(n,"data",o);break}case"src":case"href":if(o===""&&(a!=="a"||u!=="href")){n.removeAttribute(u);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){n.removeAttribute(u);break}o=bc(""+o),n.setAttribute(u,o);break;case"action":case"formAction":if(typeof o=="function"){n.setAttribute(u,"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 h=="function"&&(u==="formAction"?(a!=="input"&&At(n,a,"name",f.name,f,null),At(n,a,"formEncType",f.formEncType,f,null),At(n,a,"formMethod",f.formMethod,f,null),At(n,a,"formTarget",f.formTarget,f,null)):(At(n,a,"encType",f.encType,f,null),At(n,a,"method",f.method,f,null),At(n,a,"target",f.target,f,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){n.removeAttribute(u);break}o=bc(""+o),n.setAttribute(u,o);break;case"onClick":o!=null&&(n.onclick=lf);break;case"onScroll":o!=null&&ft("scroll",n);break;case"onScrollEnd":o!=null&&ft("scrollend",n);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(u=o.__html,u!=null){if(f.children!=null)throw Error(i(60));n.innerHTML=u}}break;case"multiple":n.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":n.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"){n.removeAttribute("xlink:href");break}u=bc(""+o),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);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"?n.setAttribute(u,""+o):n.removeAttribute(u);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"?n.setAttribute(u,""):n.removeAttribute(u);break;case"capture":case"download":o===!0?n.setAttribute(u,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(u,o):n.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?n.setAttribute(u,o):n.removeAttribute(u);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?n.removeAttribute(u):n.setAttribute(u,o);break;case"popover":ft("beforetoggle",n),ft("toggle",n),hc(n,"popover",o);break;case"xlinkActuate":oa(n,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":oa(n,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":oa(n,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":oa(n,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":oa(n,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":oa(n,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":oa(n,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":oa(n,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":oa(n,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":hc(n,"is",o);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=FI.get(u)||u,hc(n,u,o))}}function vp(n,a,u,o,f,h){switch(u){case"style":_y(n,o,h);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(u=o.__html,u!=null){if(f.children!=null)throw Error(i(60));n.innerHTML=u}}break;case"children":typeof o=="string"?Su(n,o):(typeof o=="number"||typeof o=="bigint")&&Su(n,""+o);break;case"onScroll":o!=null&&ft("scroll",n);break;case"onScrollEnd":o!=null&&ft("scrollend",n);break;case"onClick":o!=null&&(n.onclick=lf);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!gy.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(f=u.endsWith("Capture"),a=u.slice(2,f?u.length-7:void 0),h=n[jn]||null,h=h!=null?h[u]:null,typeof h=="function"&&n.removeEventListener(a,h,f),typeof o=="function")){typeof h!="function"&&h!==null&&(u in n?n[u]=null:n.hasAttribute(u)&&n.removeAttribute(u)),n.addEventListener(a,o,f);break e}u in n?n[u]=o:o===!0?n.setAttribute(u,""):hc(n,u,o)}}}function Tn(n,a,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ft("error",n),ft("load",n);var o=!1,f=!1,h;for(h in u)if(u.hasOwnProperty(h)){var T=u[h];if(T!=null)switch(h){case"src":o=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:At(n,a,h,T,u,null)}}f&&At(n,a,"srcSet",u.srcSet,u,null),o&&At(n,a,"src",u.src,u,null);return;case"input":ft("invalid",n);var v=h=T=f=null,B=null,z=null;for(o in u)if(u.hasOwnProperty(o)){var le=u[o];if(le!=null)switch(o){case"name":f=le;break;case"type":T=le;break;case"checked":B=le;break;case"defaultChecked":z=le;break;case"value":h=le;break;case"defaultValue":v=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(i(137,a));break;default:At(n,a,o,le,u,null)}}Sy(n,h,v,B,z,T,f,!1),mc(n);return;case"select":ft("invalid",n),o=T=h=null;for(f in u)if(u.hasOwnProperty(f)&&(v=u[f],v!=null))switch(f){case"value":h=v;break;case"defaultValue":T=v;break;case"multiple":o=v;default:At(n,a,f,v,u,null)}a=h,u=T,n.multiple=!!o,a!=null?Tu(n,!!o,a,!1):u!=null&&Tu(n,!!o,u,!0);return;case"textarea":ft("invalid",n),h=f=o=null;for(T in u)if(u.hasOwnProperty(T)&&(v=u[T],v!=null))switch(T){case"value":o=v;break;case"defaultValue":f=v;break;case"children":h=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(i(91));break;default:At(n,a,T,v,u,null)}Ay(n,o,f,h),mc(n);return;case"option":for(B in u)if(u.hasOwnProperty(B)&&(o=u[B],o!=null))switch(B){case"selected":n.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:At(n,a,B,o,u,null)}return;case"dialog":ft("cancel",n),ft("close",n);break;case"iframe":case"object":ft("load",n);break;case"video":case"audio":for(o=0;o<Go.length;o++)ft(Go[o],n);break;case"image":ft("error",n),ft("load",n);break;case"details":ft("toggle",n);break;case"embed":case"source":case"link":ft("error",n),ft("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in u)if(u.hasOwnProperty(z)&&(o=u[z],o!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:At(n,a,z,o,u,null)}return;default:if(Y0(a)){for(le in u)u.hasOwnProperty(le)&&(o=u[le],o!==void 0&&vp(n,a,le,o,u,void 0));return}}for(v in u)u.hasOwnProperty(v)&&(o=u[v],o!=null&&At(n,a,v,o,u,null))}function dM(n,a,u,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,h=null,T=null,v=null,B=null,z=null,le=null;for(ue in u){var he=u[ue];if(u.hasOwnProperty(ue)&&he!=null)switch(ue){case"checked":break;case"value":break;case"defaultValue":B=he;default:o.hasOwnProperty(ue)||At(n,a,ue,null,o,he)}}for(var Z in o){var ue=o[Z];if(he=u[Z],o.hasOwnProperty(Z)&&(ue!=null||he!=null))switch(Z){case"type":h=ue;break;case"name":f=ue;break;case"checked":z=ue;break;case"defaultChecked":le=ue;break;case"value":T=ue;break;case"defaultValue":v=ue;break;case"children":case"dangerouslySetInnerHTML":if(ue!=null)throw Error(i(137,a));break;default:ue!==he&&At(n,a,Z,ue,o,he)}}F0(n,T,v,B,z,le,h,f);return;case"select":ue=T=v=Z=null;for(h in u)if(B=u[h],u.hasOwnProperty(h)&&B!=null)switch(h){case"value":break;case"multiple":ue=B;default:o.hasOwnProperty(h)||At(n,a,h,null,o,B)}for(f in o)if(h=o[f],B=u[f],o.hasOwnProperty(f)&&(h!=null||B!=null))switch(f){case"value":Z=h;break;case"defaultValue":v=h;break;case"multiple":T=h;default:h!==B&&At(n,a,f,h,o,B)}a=v,u=T,o=ue,Z!=null?Tu(n,!!u,Z,!1):!!o!=!!u&&(a!=null?Tu(n,!!u,a,!0):Tu(n,!!u,u?[]:"",!1));return;case"textarea":ue=Z=null;for(v in u)if(f=u[v],u.hasOwnProperty(v)&&f!=null&&!o.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:At(n,a,v,null,o,f)}for(T in o)if(f=o[T],h=u[T],o.hasOwnProperty(T)&&(f!=null||h!=null))switch(T){case"value":Z=f;break;case"defaultValue":ue=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(i(91));break;default:f!==h&&At(n,a,T,f,o,h)}Cy(n,Z,ue);return;case"option":for(var Le in u)if(Z=u[Le],u.hasOwnProperty(Le)&&Z!=null&&!o.hasOwnProperty(Le))switch(Le){case"selected":n.selected=!1;break;default:At(n,a,Le,null,o,Z)}for(B in o)if(Z=o[B],ue=u[B],o.hasOwnProperty(B)&&Z!==ue&&(Z!=null||ue!=null))switch(B){case"selected":n.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:At(n,a,B,Z,o,ue)}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 qe in u)Z=u[qe],u.hasOwnProperty(qe)&&Z!=null&&!o.hasOwnProperty(qe)&&At(n,a,qe,null,o,Z);for(z in o)if(Z=o[z],ue=u[z],o.hasOwnProperty(z)&&Z!==ue&&(Z!=null||ue!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(i(137,a));break;default:At(n,a,z,Z,o,ue)}return;default:if(Y0(a)){for(var Xt in u)Z=u[Xt],u.hasOwnProperty(Xt)&&Z!==void 0&&!o.hasOwnProperty(Xt)&&vp(n,a,Xt,void 0,o,Z);for(le in o)Z=o[le],ue=u[le],!o.hasOwnProperty(le)||Z===ue||Z===void 0&&ue===void 0||vp(n,a,le,Z,o,ue);return}}for(var $ in u)Z=u[$],u.hasOwnProperty($)&&Z!=null&&!o.hasOwnProperty($)&&At(n,a,$,null,o,Z);for(he in o)Z=o[he],ue=u[he],!o.hasOwnProperty(he)||Z===ue||Z==null&&ue==null||At(n,a,he,Z,o,ue)}var Rp=null,Op=null;function of(n){return n.nodeType===9?n:n.ownerDocument}function g3(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function b3(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function Np(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var kp=null;function hM(){var n=window.event;return n&&n.type==="popstate"?n===kp?!1:(kp=n,!0):(kp=null,!1)}var E3=typeof setTimeout=="function"?setTimeout:void 0,pM=typeof clearTimeout=="function"?clearTimeout:void 0,y3=typeof Promise=="function"?Promise:void 0,mM=typeof queueMicrotask=="function"?queueMicrotask:typeof y3<"u"?function(n){return y3.resolve(null).then(n).catch(gM)}:E3;function gM(n){setTimeout(function(){throw n})}function Dp(n,a){var u=a,o=0;do{var f=u.nextSibling;if(n.removeChild(u),f&&f.nodeType===8)if(u=f.data,u==="/$"){if(o===0){n.removeChild(f),ns(a);return}o--}else u!=="$"&&u!=="$?"&&u!=="$!"||o++;u=f}while(u);ns(a)}function Lp(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var u=a;switch(a=a.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":Lp(u),H0(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}n.removeChild(u)}}function bM(n,a,u,o){for(;n.nodeType===1;){var f=u;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!o&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(o){if(!n[so])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(h=n.getAttribute("rel"),h==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(h!==f.rel||n.getAttribute("href")!==(f.href==null?null:f.href)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||n.getAttribute("title")!==(f.title==null?null:f.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(h=n.getAttribute("src"),(h!==(f.src==null?null:f.src)||n.getAttribute("type")!==(f.type==null?null:f.type)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&n.getAttribute("name")===h)return n}else return n;if(n=wr(n.nextSibling),n===null)break}return null}function EM(n,a,u){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!u||(n=wr(n.nextSibling),n===null))return null;return n}function wr(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return n}function T3(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var u=n.data;if(u==="$"||u==="$!"||u==="$?"){if(a===0)return n;a--}else u==="/$"&&a++}n=n.previousSibling}return null}function S3(n,a,u){switch(a=of(u),n){case"html":if(n=a.documentElement,!n)throw Error(i(452));return n;case"head":if(n=a.head,!n)throw Error(i(453));return n;case"body":if(n=a.body,!n)throw Error(i(454));return n;default:throw Error(i(451))}}var Nr=new Map,C3=new Set;function sf(n){return typeof n.getRootNode=="function"?n.getRootNode():n.ownerDocument}var Aa=ce.d;ce.d={f:yM,r:TM,D:SM,C:CM,L:AM,m:xM,X:vM,S:_M,M:RM};function yM(){var n=Aa.f(),a=ef();return n||a}function TM(n){var a=bu(n);a!==null&&a.tag===5&&a.type==="form"?QT(a):Aa.r(n)}var Xu=typeof document>"u"?null:document;function A3(n,a,u){var o=Xu;if(o&&typeof a=="string"&&a){var f=yr(a);f='link[rel="'+n+'"][href="'+f+'"]',typeof u=="string"&&(f+='[crossorigin="'+u+'"]'),C3.has(f)||(C3.add(f),n={rel:n,crossOrigin:u,href:a},o.querySelector(f)===null&&(a=o.createElement("link"),Tn(a,"link",n),hn(a),o.head.appendChild(a)))}}function SM(n){Aa.D(n),A3("dns-prefetch",n,null)}function CM(n,a){Aa.C(n,a),A3("preconnect",n,a)}function AM(n,a,u){Aa.L(n,a,u);var o=Xu;if(o&&n&&a){var f='link[rel="preload"][as="'+yr(a)+'"]';a==="image"&&u&&u.imageSrcSet?(f+='[imagesrcset="'+yr(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(f+='[imagesizes="'+yr(u.imageSizes)+'"]')):f+='[href="'+yr(n)+'"]';var h=f;switch(a){case"style":h=Qu(n);break;case"script":h=Ku(n)}Nr.has(h)||(n=A({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:n,as:a},u),Nr.set(h,n),o.querySelector(f)!==null||a==="style"&&o.querySelector(Qo(h))||a==="script"&&o.querySelector(Ko(h))||(a=o.createElement("link"),Tn(a,"link",n),hn(a),o.head.appendChild(a)))}}function xM(n,a){Aa.m(n,a);var u=Xu;if(u&&n){var o=a&&typeof a.as=="string"?a.as:"script",f='link[rel="modulepreload"][as="'+yr(o)+'"][href="'+yr(n)+'"]',h=f;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Ku(n)}if(!Nr.has(h)&&(n=A({rel:"modulepreload",href:n},a),Nr.set(h,n),u.querySelector(f)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Ko(h)))return}o=u.createElement("link"),Tn(o,"link",n),hn(o),u.head.appendChild(o)}}}function _M(n,a,u){Aa.S(n,a,u);var o=Xu;if(o&&n){var f=Eu(o).hoistableStyles,h=Qu(n);a=a||"default";var T=f.get(h);if(!T){var v={loading:0,preload:null};if(T=o.querySelector(Qo(h)))v.loading=5;else{n=A({rel:"stylesheet",href:n,"data-precedence":a},u),(u=Nr.get(h))&&Ip(n,u);var B=T=o.createElement("link");hn(B),Tn(B,"link",n),B._p=new Promise(function(z,le){B.onload=z,B.onerror=le}),B.addEventListener("load",function(){v.loading|=1}),B.addEventListener("error",function(){v.loading|=2}),v.loading|=4,cf(T,a,o)}T={type:"stylesheet",instance:T,count:1,state:v},f.set(h,T)}}}function vM(n,a){Aa.X(n,a);var u=Xu;if(u&&n){var o=Eu(u).hoistableScripts,f=Ku(n),h=o.get(f);h||(h=u.querySelector(Ko(f)),h||(n=A({src:n,async:!0},a),(a=Nr.get(f))&&wp(n,a),h=u.createElement("script"),hn(h),Tn(h,"link",n),u.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},o.set(f,h))}}function RM(n,a){Aa.M(n,a);var u=Xu;if(u&&n){var o=Eu(u).hoistableScripts,f=Ku(n),h=o.get(f);h||(h=u.querySelector(Ko(f)),h||(n=A({src:n,async:!0,type:"module"},a),(a=Nr.get(f))&&wp(n,a),h=u.createElement("script"),hn(h),Tn(h,"link",n),u.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},o.set(f,h))}}function x3(n,a,u,o){var f=(f=Re.current)?sf(f):null;if(!f)throw Error(i(446));switch(n){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(a=Qu(u.href),u=Eu(f).hoistableStyles,o=u.get(a),o||(o={type:"style",instance:null,count:0,state:null},u.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){n=Qu(u.href);var h=Eu(f).hoistableStyles,T=h.get(n);if(T||(f=f.ownerDocument||f,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(n,T),(h=f.querySelector(Qo(n)))&&!h._p&&(T.instance=h,T.state.loading=5),Nr.has(n)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},Nr.set(n,u),h||OM(f,n,u,T.state))),a&&o===null)throw Error(i(528,""));return T}if(a&&o!==null)throw Error(i(529,""));return null;case"script":return a=u.async,u=u.src,typeof u=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Ku(u),u=Eu(f).hoistableScripts,o=u.get(a),o||(o={type:"script",instance:null,count:0,state:null},u.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,n))}}function Qu(n){return'href="'+yr(n)+'"'}function Qo(n){return'link[rel="stylesheet"]['+n+"]"}function _3(n){return A({},n,{"data-precedence":n.precedence,precedence:null})}function OM(n,a,u,o){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?o.loading=1:(a=n.createElement("link"),o.preload=a,a.addEventListener("load",function(){return o.loading|=1}),a.addEventListener("error",function(){return o.loading|=2}),Tn(a,"link",u),hn(a),n.head.appendChild(a))}function Ku(n){return'[src="'+yr(n)+'"]'}function Ko(n){return"script[async]"+n}function v3(n,a,u){if(a.count++,a.instance===null)switch(a.type){case"style":var o=n.querySelector('style[data-href~="'+yr(u.href)+'"]');if(o)return a.instance=o,hn(o),o;var f=A({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return o=(n.ownerDocument||n).createElement("style"),hn(o),Tn(o,"style",f),cf(o,u.precedence,n),a.instance=o;case"stylesheet":f=Qu(u.href);var h=n.querySelector(Qo(f));if(h)return a.state.loading|=4,a.instance=h,hn(h),h;o=_3(u),(f=Nr.get(f))&&Ip(o,f),h=(n.ownerDocument||n).createElement("link"),hn(h);var T=h;return T._p=new Promise(function(v,B){T.onload=v,T.onerror=B}),Tn(h,"link",o),a.state.loading|=4,cf(h,u.precedence,n),a.instance=h;case"script":return h=Ku(u.src),(f=n.querySelector(Ko(h)))?(a.instance=f,hn(f),f):(o=u,(f=Nr.get(h))&&(o=A({},u),wp(o,f)),n=n.ownerDocument||n,f=n.createElement("script"),hn(f),Tn(f,"link",o),n.head.appendChild(f),a.instance=f);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(o=a.instance,a.state.loading|=4,cf(o,u.precedence,n));return a.instance}function cf(n,a,u){for(var o=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=o.length?o[o.length-1]:null,h=f,T=0;T<o.length;T++){var v=o[T];if(v.dataset.precedence===a)h=v;else if(h!==f)break}h?h.parentNode.insertBefore(n,h.nextSibling):(a=u.nodeType===9?u.head:u,a.insertBefore(n,a.firstChild))}function Ip(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function wp(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var ff=null;function R3(n,a,u){if(ff===null){var o=new Map,f=ff=new Map;f.set(u,o)}else f=ff,o=f.get(u),o||(o=new Map,f.set(u,o));if(o.has(n))return o;for(o.set(n,null),u=u.getElementsByTagName(n),f=0;f<u.length;f++){var h=u[f];if(!(h[so]||h[Rn]||n==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var T=h.getAttribute(a)||"";T=n+T;var v=o.get(T);v?v.push(h):o.set(T,[h])}}return o}function O3(n,a,u){n=n.ownerDocument||n,n.head.insertBefore(u,a==="title"?n.querySelector("head > title"):null)}function NM(n,a,u){if(u===1||a.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return n=a.disabled,typeof a.precedence=="string"&&n==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function N3(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var Wo=null;function kM(){}function DM(n,a,u){if(Wo===null)throw Error(i(475));var o=Wo;if(a.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var f=Qu(u.href),h=n.querySelector(Qo(f));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(o.count++,o=df.bind(o),n.then(o,o)),a.state.loading|=4,a.instance=h,hn(h);return}h=n.ownerDocument||n,u=_3(u),(f=Nr.get(f))&&Ip(u,f),h=h.createElement("link"),hn(h);var T=h;T._p=new Promise(function(v,B){T.onload=v,T.onerror=B}),Tn(h,"link",u),a.instance=h}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(o.count++,a=df.bind(o),n.addEventListener("load",a),n.addEventListener("error",a))}}function LM(){if(Wo===null)throw Error(i(475));var n=Wo;return n.stylesheets&&n.count===0&&Mp(n,n.stylesheets),0<n.count?function(a){var u=setTimeout(function(){if(n.stylesheets&&Mp(n,n.stylesheets),n.unsuspend){var o=n.unsuspend;n.unsuspend=null,o()}},6e4);return n.unsuspend=a,function(){n.unsuspend=null,clearTimeout(u)}}:null}function df(){if(this.count--,this.count===0){if(this.stylesheets)Mp(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var hf=null;function Mp(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,hf=new Map,a.forEach(IM,n),hf=null,df.call(n))}function IM(n,a){if(!(a.state.loading&4)){var u=hf.get(n);if(u)var o=u.get(null);else{u=new Map,hf.set(n,u);for(var f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var T=f[h];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(u.set(T.dataset.precedence,T),o=T)}o&&u.set(null,o)}f=a.instance,T=f.getAttribute("data-precedence"),h=u.get(T)||o,h===o&&u.set(null,f),u.set(T,f),this.count++,o=df.bind(this),f.addEventListener("load",o),f.addEventListener("error",o),h?h.parentNode.insertBefore(f,h.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(f,n.firstChild)),a.state.loading|=4}}var Zo={$$typeof:y,Provider:null,Consumer:null,_currentValue:Oe,_currentValue2:Oe,_threadCount:0};function wM(n,a,u,o,f,h,T,v){this.tag=1,this.containerInfo=n,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=P0(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=P0(0),this.hiddenUpdates=P0(null),this.identifierPrefix=o,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function k3(n,a,u,o,f,h,T,v,B,z,le,he){return n=new wM(n,a,u,T,v,B,z,he),a=1,h===!0&&(a|=24),h=Rr(3,null,null,a),n.current=h,h.stateNode=n,a=hh(),a.refCount++,n.pooledCache=a,a.refCount++,h.memoizedState={element:o,isDehydrated:u,cache:a},Gh(h),n}function D3(n){return n?(n=Ou,n):Ou}function L3(n,a,u,o,f,h){f=D3(f),o.context===null?o.context=f:o.pendingContext=f,o=$a(a),o.payload={element:u},h=h===void 0?null:h,h!==null&&(o.callback=h),u=qa(n,o,a),u!==null&&(Dn(u,n,a),Mo(u,n,a))}function I3(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var u=n.retryLane;n.retryLane=u!==0&&u<a?u:a}}function Bp(n,a){I3(n,a),(n=n.alternate)&&I3(n,a)}function w3(n){if(n.tag===13){var a=Ua(n,67108864);a!==null&&Dn(a,n,67108864),Bp(n,67108864)}}var pf=!0;function MM(n,a,u,o){var f=V.T;V.T=null;var h=ce.p;try{ce.p=2,Pp(n,a,u,o)}finally{ce.p=h,V.T=f}}function BM(n,a,u,o){var f=V.T;V.T=null;var h=ce.p;try{ce.p=8,Pp(n,a,u,o)}finally{ce.p=h,V.T=f}}function Pp(n,a,u,o){if(pf){var f=Up(o);if(f===null)_p(n,a,o,mf,u),B3(n,o);else if(UM(f,n,a,u,o))o.stopPropagation();else if(B3(n,o),a&4&&-1<PM.indexOf(n)){for(;f!==null;){var h=bu(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var T=Qr(h.pendingLanes);if(T!==0){var v=h;for(v.pendingLanes|=2,v.entangledLanes|=2;T;){var B=1<<31-ze(T);v.entanglements[1]|=B,T&=~B}ea(h),(Yt&6)===0&&(Wc=Xe()+500,qo(0))}}break;case 13:v=Ua(h,2),v!==null&&Dn(v,h,2),ef(),Bp(h,2)}if(h=Up(o),h===null&&_p(n,a,o,mf,u),h===f)break;f=h}f!==null&&o.stopPropagation()}else _p(n,a,o,null,u)}}function Up(n){return n=V0(n),Hp(n)}var mf=null;function Hp(n){if(mf=null,n=yi(n),n!==null){var a=re(n);if(a===null)n=null;else{var u=a.tag;if(u===13){if(n=be(a),n!==null)return n;n=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return mf=n,null}function M3(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch($t()){case ee:return 2;case de:return 8;case Ae:case He:return 32;case nt:return 268435456;default:return 32}default:return 32}}var Fp=!1,Ja=null,ei=null,ti=null,Jo=new Map,es=new Map,ni=[],PM="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 B3(n,a){switch(n){case"focusin":case"focusout":Ja=null;break;case"dragenter":case"dragleave":ei=null;break;case"mouseover":case"mouseout":ti=null;break;case"pointerover":case"pointerout":Jo.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":es.delete(a.pointerId)}}function ts(n,a,u,o,f,h){return n===null||n.nativeEvent!==h?(n={blockedOn:a,domEventName:u,eventSystemFlags:o,nativeEvent:h,targetContainers:[f]},a!==null&&(a=bu(a),a!==null&&w3(a)),n):(n.eventSystemFlags|=o,a=n.targetContainers,f!==null&&a.indexOf(f)===-1&&a.push(f),n)}function UM(n,a,u,o,f){switch(a){case"focusin":return Ja=ts(Ja,n,a,u,o,f),!0;case"dragenter":return ei=ts(ei,n,a,u,o,f),!0;case"mouseover":return ti=ts(ti,n,a,u,o,f),!0;case"pointerover":var h=f.pointerId;return Jo.set(h,ts(Jo.get(h)||null,n,a,u,o,f)),!0;case"gotpointercapture":return h=f.pointerId,es.set(h,ts(es.get(h)||null,n,a,u,o,f)),!0}return!1}function P3(n){var a=yi(n.target);if(a!==null){var u=re(a);if(u!==null){if(a=u.tag,a===13){if(a=be(u),a!==null){n.blockedOn=a,LI(n.priority,function(){if(u.tag===13){var o=ar(),f=Ua(u,o);f!==null&&Dn(f,u,o),Bp(u,o)}});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){n.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}n.blockedOn=null}function gf(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var u=Up(n.nativeEvent);if(u===null){u=n.nativeEvent;var o=new u.constructor(u.type,u);j0=o,u.target.dispatchEvent(o),j0=null}else return a=bu(u),a!==null&&w3(a),n.blockedOn=u,!1;a.shift()}return!0}function U3(n,a,u){gf(n)&&u.delete(a)}function HM(){Fp=!1,Ja!==null&&gf(Ja)&&(Ja=null),ei!==null&&gf(ei)&&(ei=null),ti!==null&&gf(ti)&&(ti=null),Jo.forEach(U3),es.forEach(U3)}function bf(n,a){n.blockedOn===a&&(n.blockedOn=null,Fp||(Fp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,HM)))}var Ef=null;function H3(n){Ef!==n&&(Ef=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Ef===n&&(Ef=null);for(var a=0;a<n.length;a+=3){var u=n[a],o=n[a+1],f=n[a+2];if(typeof o!="function"){if(Hp(o||u)===null)continue;break}var h=bu(u);h!==null&&(n.splice(a,3),a-=3,Nh(h,{pending:!0,data:f,method:u.method,action:o},o,f))}}))}function ns(n){function a(B){return bf(B,n)}Ja!==null&&bf(Ja,n),ei!==null&&bf(ei,n),ti!==null&&bf(ti,n),Jo.forEach(a),es.forEach(a);for(var u=0;u<ni.length;u++){var o=ni[u];o.blockedOn===n&&(o.blockedOn=null)}for(;0<ni.length&&(u=ni[0],u.blockedOn===null);)P3(u),u.blockedOn===null&&ni.shift();if(u=(n.ownerDocument||n).$$reactFormReplay,u!=null)for(o=0;o<u.length;o+=3){var f=u[o],h=u[o+1],T=f[jn]||null;if(typeof h=="function")T||H3(u);else if(T){var v=null;if(h&&h.hasAttribute("formAction")){if(f=h,T=h[jn]||null)v=T.formAction;else if(Hp(f)!==null)continue}else v=T.action;typeof v=="function"?u[o+1]=v:(u.splice(o,3),o-=3),H3(u)}}}function zp(n){this._internalRoot=n}yf.prototype.render=zp.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(i(409));var u=a.current,o=ar();L3(u,o,n,a,null,null)},yf.prototype.unmount=zp.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;n.tag===0&&$u(),L3(n.current,2,null,n,null,null),ef(),a[gu]=null}};function yf(n){this._internalRoot=n}yf.prototype.unstable_scheduleHydration=function(n){if(n){var a=hy();n={blockedOn:null,target:n,priority:a};for(var u=0;u<ni.length&&a!==0&&a<ni[u].priority;u++);ni.splice(u,0,n),u===0&&P3(n)}};var F3=t.version;if(F3!=="19.0.0")throw Error(i(527,F3,"19.0.0"));ce.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(i(188)):(n=Object.keys(n).join(","),Error(i(268,n)));return n=J(a),n=n!==null?oe(n):null,n=n===null?null:n.stateNode,n};var FM={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:V,findFiberByHostInstance:yi,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Tf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tf.isDisabled&&Tf.supportsFiber)try{an=Tf.inject(FM),Ft=Tf}catch{}}return Wu.createRoot=function(n,a){if(!l(n))throw Error(i(299));var u=!1,o="",f=rS,h=aS,T=iS,v=null;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(h=a.onCaughtError),a.onRecoverableError!==void 0&&(T=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(v=a.unstable_transitionCallbacks)),a=k3(n,1,!1,null,null,u,o,f,h,T,v,null),n[gu]=a.current,xp(n.nodeType===8?n.parentNode:n),new zp(a)},Wu.hydrateRoot=function(n,a,u){if(!l(n))throw Error(i(299));var o=!1,f="",h=rS,T=aS,v=iS,B=null,z=null;return u!=null&&(u.unstable_strictMode===!0&&(o=!0),u.identifierPrefix!==void 0&&(f=u.identifierPrefix),u.onUncaughtError!==void 0&&(h=u.onUncaughtError),u.onCaughtError!==void 0&&(T=u.onCaughtError),u.onRecoverableError!==void 0&&(v=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(B=u.unstable_transitionCallbacks),u.formState!==void 0&&(z=u.formState)),a=k3(n,1,!0,a,u??null,o,f,h,T,v,B,z),a.context=D3(null),u=a.current,o=ar(),f=$a(o),f.callback=null,qa(u,f,o),a.current.lanes=o,oo(a,o),ea(a),n[gu]=a.current,xp(n),new yf(a)},Wu.version="19.0.0",Wu}var Zp;function G3(){if(Zp)return Cf.exports;Zp=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Cf.exports=q3(),Cf.exports}var X3=G3();function is(){return is=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},is.apply(null,arguments)}function Jp(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Q3=/^((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)-.*))$/,K3=Jp(function(e){return Q3.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function W3(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Z3(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var em=function(){function e(r){var i=this;this._insertTag=function(l){var s;i.tags.length===0?i.insertionPoint?s=i.insertionPoint.nextSibling:i.prepend?s=i.container.firstChild:s=i.before:s=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(l,s),i.tags.push(l)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Z3(this));var l=this.tags[this.tags.length-1];if(this.isSpeedy){var s=W3(l);try{s.insertRule(i,s.cssRules.length)}catch{}}else l.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var l;return(l=i.parentNode)==null?void 0:l.removeChild(i)}),this.tags=[],this.ctr=0},e}(),pt="-ms-",xa="-moz-",De="-webkit-",tm="comm",us="rule",ls="decl",J3="@import",vf="@keyframes",eC="@layer",tC=Math.abs,Zu=String.fromCharCode,nC=Object.assign;function nm(e,t){return Bt(e,0)^45?(((t<<2^Bt(e,0))<<2^Bt(e,1))<<2^Bt(e,2))<<2^Bt(e,3):0}function rm(e){return e.trim()}function am(e,t){return(e=t.exec(e))?e[0]:e}function Ie(e,t,r){return e.replace(t,r)}function Ju(e,t){return e.indexOf(t)}function Bt(e,t){return e.charCodeAt(t)|0}function el(e,t,r){return e.slice(t,r)}function lr(e){return e.length}function Rf(e){return e.length}function os(e,t){return t.push(e),e}function im(e,t){return e.map(t).join("")}var ss=1,Fi=1,um=0,Cn=0,Zt=0,zi="";function cs(e,t,r,i,l,s,c){return{value:e,root:t,parent:r,type:i,props:l,children:s,line:ss,column:Fi,length:c,return:""}}function Mr(e,t){return nC(cs("",null,null,"",null,null,0),e,{length:-e.length},t)}function rC(){return Zt}function aC(){return Zt=Cn>0?Bt(zi,--Cn):0,Fi--,Zt===10&&(Fi=1,ss--),Zt}function Nn(){return Zt=Cn<um?Bt(zi,Cn++):0,Fi++,Zt===10&&(Fi=1,ss++),Zt}function Gn(){return Bt(zi,Cn)}function fs(){return Cn}function Yi(e,t){return el(zi,e,t)}function ai(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 Of(e){return ss=Fi=1,um=lr(zi=e),Cn=0,[]}function Nf(e){return zi="",e}function tl(e){return rm(Yi(Cn-1,kf(e===91?e+2:e===40?e+1:e)))}function iC(e){for(;(Zt=Gn())&&Zt<33;)Nn();return ai(e)>2||ai(Zt)>3?"":" "}function uC(e,t){for(;--t&&Nn()&&!(Zt<48||Zt>102||Zt>57&&Zt<65||Zt>70&&Zt<97););return Yi(e,fs()+(t<6&&Gn()==32&&Nn()==32))}function kf(e){for(;Nn();)switch(Zt){case e:return Cn;case 34:case 39:e!==34&&e!==39&&kf(Zt);break;case 40:e===41&&kf(e);break;case 92:Nn();break}return Cn}function lC(e,t){for(;Nn()&&e+Zt!==57;)if(e+Zt===84&&Gn()===47)break;return"/*"+Yi(t,Cn-1)+"*"+Zu(e===47?e:Nn())}function oC(e){for(;!ai(Gn());)Nn();return Yi(e,Cn)}function lm(e){return Nf(ds("",null,null,null,[""],e=Of(e),0,[0],e))}function ds(e,t,r,i,l,s,c,d,p){for(var m=0,b=0,E=c,S=0,y=0,O=0,_=1,I=1,R=1,H=0,k="",P=l,L=s,M=i,j=k;I;)switch(O=H,H=Nn()){case 40:if(O!=108&&Bt(j,E-1)==58){Ju(j+=Ie(tl(H),"&","&\f"),"&\f")!=-1&&(R=-1);break}case 34:case 39:case 91:j+=tl(H);break;case 9:case 10:case 13:case 32:j+=iC(O);break;case 92:j+=uC(fs()-1,7);continue;case 47:switch(Gn()){case 42:case 47:os(sC(lC(Nn(),fs()),t,r),p);break;default:j+="/"}break;case 123*_:d[m++]=lr(j)*R;case 125*_:case 59:case 0:switch(H){case 0:case 125:I=0;case 59+b:R==-1&&(j=Ie(j,/\f/g,"")),y>0&&lr(j)-E&&os(y>32?sm(j+";",i,r,E-1):sm(Ie(j," ","")+";",i,r,E-2),p);break;case 59:j+=";";default:if(os(M=om(j,t,r,m,b,l,d,k,P=[],L=[],E),s),H===123)if(b===0)ds(j,t,M,M,P,s,E,d,L);else switch(S===99&&Bt(j,3)===110?100:S){case 100:case 108:case 109:case 115:ds(e,M,M,i&&os(om(e,M,M,0,0,l,d,k,l,P=[],E),L),l,L,E,d,i?P:L);break;default:ds(j,M,M,M,[""],L,0,d,L)}}m=b=y=0,_=R=1,k=j="",E=c;break;case 58:E=1+lr(j),y=O;default:if(_<1){if(H==123)--_;else if(H==125&&_++==0&&aC()==125)continue}switch(j+=Zu(H),H*_){case 38:R=b>0?1:(j+="\f",-1);break;case 44:d[m++]=(lr(j)-1)*R,R=1;break;case 64:Gn()===45&&(j+=tl(Nn())),S=Gn(),b=E=lr(k=j+=oC(fs())),H++;break;case 45:O===45&&lr(j)==2&&(_=0)}}return s}function om(e,t,r,i,l,s,c,d,p,m,b){for(var E=l-1,S=l===0?s:[""],y=Rf(S),O=0,_=0,I=0;O<i;++O)for(var R=0,H=el(e,E+1,E=tC(_=c[O])),k=e;R<y;++R)(k=rm(_>0?S[R]+" "+H:Ie(H,/&\f/g,S[R])))&&(p[I++]=k);return cs(e,t,r,l===0?us:d,p,m,b)}function sC(e,t,r){return cs(e,t,r,tm,Zu(rC()),el(e,2,-2),0)}function sm(e,t,r,i){return cs(e,t,r,ls,el(e,0,i),el(e,i+1,-1),i)}function Br(e,t){for(var r="",i=Rf(e),l=0;l<i;l++)r+=t(e[l],l,e,t)||"";return r}function cm(e,t,r,i){switch(e.type){case eC:if(e.children.length)break;case J3:case ls:return e.return=e.return||e.value;case tm:return"";case vf:return e.return=e.value+"{"+Br(e.children,i)+"}";case us:e.value=e.props.join(",")}return lr(r=Br(e.children,i))?e.return=e.value+"{"+r+"}":""}function fm(e){var t=Rf(e);return function(r,i,l,s){for(var c="",d=0;d<t;d++)c+=e[d](r,i,l,s)||"";return c}}function dm(e){return function(t){t.root||(t=t.return)&&e(t)}}var cC=function(t,r,i){for(var l=0,s=0;l=s,s=Gn(),l===38&&s===12&&(r[i]=1),!ai(s);)Nn();return Yi(t,Cn)},fC=function(t,r){var i=-1,l=44;do switch(ai(l)){case 0:l===38&&Gn()===12&&(r[i]=1),t[i]+=cC(Cn-1,r,i);break;case 2:t[i]+=tl(l);break;case 4:if(l===44){t[++i]=Gn()===58?"&\f":"",r[i]=t[i].length;break}default:t[i]+=Zu(l)}while(l=Nn());return t},dC=function(t,r){return Nf(fC(Of(t),r))},hm=new WeakMap,hC=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,i=t.parent,l=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!hm.get(i))&&!l){hm.set(t,!0);for(var s=[],c=dC(r,s),d=i.props,p=0,m=0;p<c.length;p++)for(var b=0;b<d.length;b++,m++)t.props[m]=s[p]?c[p].replace(/&\f/g,d[b]):d[b]+" "+c[p]}}},pC=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function pm(e,t){switch(nm(e,t)){case 5103:return De+"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 De+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return De+e+xa+e+pt+e+e;case 6828:case 4268:return De+e+pt+e+e;case 6165:return De+e+pt+"flex-"+e+e;case 5187:return De+e+Ie(e,/(\w+).+(:[^]+)/,De+"box-$1$2"+pt+"flex-$1$2")+e;case 5443:return De+e+pt+"flex-item-"+Ie(e,/flex-|-self/,"")+e;case 4675:return De+e+pt+"flex-line-pack"+Ie(e,/align-content|flex-|-self/,"")+e;case 5548:return De+e+pt+Ie(e,"shrink","negative")+e;case 5292:return De+e+pt+Ie(e,"basis","preferred-size")+e;case 6060:return De+"box-"+Ie(e,"-grow","")+De+e+pt+Ie(e,"grow","positive")+e;case 4554:return De+Ie(e,/([^-])(transform)/g,"$1"+De+"$2")+e;case 6187:return Ie(Ie(Ie(e,/(zoom-|grab)/,De+"$1"),/(image-set)/,De+"$1"),e,"")+e;case 5495:case 3959:return Ie(e,/(image-set\([^]*)/,De+"$1$`$1");case 4968:return Ie(Ie(e,/(.+:)(flex-)?(.*)/,De+"box-pack:$3"+pt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+De+e+e;case 4095:case 3583:case 4068:case 2532:return Ie(e,/(.+)-inline(.+)/,De+"$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(lr(e)-1-t>6)switch(Bt(e,t+1)){case 109:if(Bt(e,t+4)!==45)break;case 102:return Ie(e,/(.+:)(.+)-([^]+)/,"$1"+De+"$2-$3$1"+xa+(Bt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ju(e,"stretch")?pm(Ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Bt(e,t+1)!==115)break;case 6444:switch(Bt(e,lr(e)-3-(~Ju(e,"!important")&&10))){case 107:return Ie(e,":",":"+De)+e;case 101:return Ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+De+(Bt(e,14)===45?"inline-":"")+"box$3$1"+De+"$2$3$1"+pt+"$2box$3")+e}break;case 5936:switch(Bt(e,t+11)){case 114:return De+e+pt+Ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return De+e+pt+Ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return De+e+pt+Ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return De+e+pt+e+e}return e}var mC=function(t,r,i,l){if(t.length>-1&&!t.return)switch(t.type){case ls:t.return=pm(t.value,t.length);break;case vf:return Br([Mr(t,{value:Ie(t.value,"@","@"+De)})],l);case us:if(t.length)return im(t.props,function(s){switch(am(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Br([Mr(t,{props:[Ie(s,/:(read-\w+)/,":"+xa+"$1")]})],l);case"::placeholder":return Br([Mr(t,{props:[Ie(s,/:(plac\w+)/,":"+De+"input-$1")]}),Mr(t,{props:[Ie(s,/:(plac\w+)/,":"+xa+"$1")]}),Mr(t,{props:[Ie(s,/:(plac\w+)/,pt+"input-$1")]})],l)}return""})}},gC=[mC],bC=function(t){var r=t.key;if(r==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(_){var I=_.getAttribute("data-emotion");I.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var l=t.stylisPlugins||gC,s={},c,d=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(_){for(var I=_.getAttribute("data-emotion").split(" "),R=1;R<I.length;R++)s[I[R]]=!0;d.push(_)});var p,m=[hC,pC];{var b,E=[cm,dm(function(_){b.insert(_)})],S=fm(m.concat(l,E)),y=function(I){return Br(lm(I),S)};p=function(I,R,H,k){b=H,y(I?I+"{"+R.styles+"}":R.styles),k&&(O.inserted[R.name]=!0)}}var O={key:r,sheet:new em({key:r,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:p};return O.sheet.hydrate(d),O},Df={exports:{}},yt={};/** @license React v16.13.1
40
+ `+u.stack}}function re(n){var a=n,u=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(u=a.return),n=a.return;while(n)}return a.tag===3?u:null}function be(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function C(n){if(re(n)!==n)throw Error(i(188))}function J(n){var a=n.alternate;if(!a){if(a=re(n),a===null)throw Error(i(188));return a!==n?null:n}for(var u=n,o=a;;){var f=u.return;if(f===null)break;var h=f.alternate;if(h===null){if(o=f.return,o!==null){u=o;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===u)return C(f),n;if(h===o)return C(f),a;h=h.sibling}throw Error(i(188))}if(u.return!==o.return)u=f,o=h;else{for(var T=!1,R=f.child;R;){if(R===u){T=!0,u=f,o=h;break}if(R===o){T=!0,o=f,u=h;break}R=R.sibling}if(!T){for(R=h.child;R;){if(R===u){T=!0,u=h,o=f;break}if(R===o){T=!0,o=h,u=f;break}R=R.sibling}if(!T)throw Error(i(189))}}if(u.alternate!==o)throw Error(i(190))}if(u.tag!==3)throw Error(i(188));return u.stateNode.current===u?n:a}function oe(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=oe(n),a!==null)return a;n=n.sibling}return null}var D=Array.isArray,ce=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Oe={pending:!1,data:null,method:null,action:null},Se=[],tt=-1;function Me(n){return{current:n}}function $e(n){0>tt||(n.current=Se[tt],Se[tt]=null,tt--)}function xe(n,a){tt++,Se[tt]=n.current,n.current=a}var Ge=Me(null),ve=Me(null),Re=Me(null),Ce=Me(null);function Be(n,a){switch(xe(Re,a),xe(ve,n),xe(Ge,null),n=a.nodeType,n){case 9:case 11:a=(a=a.documentElement)&&(a=a.namespaceURI)?g3(a):0;break;default:if(n=n===8?a.parentNode:a,a=n.tagName,n=n.namespaceURI)n=g3(n),a=b3(n,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}$e(Ge),xe(Ge,a)}function it(){$e(Ge),$e(ve),$e(Re)}function je(n){n.memoizedState!==null&&xe(Ce,n);var a=Ge.current,u=b3(a,n.type);a!==u&&(xe(ve,n),xe(Ge,u))}function Ue(n){ve.current===n&&($e(Ge),$e(ve)),Ce.current===n&&($e(Ce),Zo._currentValue=Oe)}var ct=Object.prototype.hasOwnProperty,St=e.unstable_scheduleCallback,rn=e.unstable_cancelCallback,_n=e.unstable_shouldYield,we=e.unstable_requestPaint,Xe=e.unstable_now,$t=e.unstable_getCurrentPriorityLevel,te=e.unstable_ImmediatePriority,de=e.unstable_UserBlockingPriority,Ae=e.unstable_NormalPriority,He=e.unstable_LowPriority,nt=e.unstable_IdlePriority,Qe=e.log,vn=e.unstable_setDisableYieldValue,an=null,Ft=null;function ke(n){if(Ft&&typeof Ft.onCommitFiberRoot=="function")try{Ft.onCommitFiberRoot(an,n,void 0,(n.current.flags&128)===128)}catch{}}function _e(n){if(typeof Qe=="function"&&vn(n),Ft&&typeof Ft.setStrictMode=="function")try{Ft.setStrictMode(an,n)}catch{}}var ze=Math.clz32?Math.clz32:gr,Ke=Math.log,Ht=Math.LN2;function gr(n){return n>>>=0,n===0?32:31-(Ke(n)/Ht|0)|0}var br=128,Xr=4194304;function Qr(n){var a=n&42;if(a!==0)return a;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128: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&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Ma(n,a){var u=n.pendingLanes;if(u===0)return 0;var o=0,f=n.suspendedLanes,h=n.pingedLanes,T=n.warmLanes;n=n.finishedLanes!==0;var R=u&134217727;return R!==0?(u=R&~f,u!==0?o=Qr(u):(h&=R,h!==0?o=Qr(h):n||(T=R&~T,T!==0&&(o=Qr(T))))):(R=u&~f,R!==0?o=Qr(R):h!==0?o=Qr(h):n||(T=u&~T,T!==0&&(o=Qr(T)))),o===0?0:a!==0&&a!==o&&(a&f)===0&&(f=o&-o,T=a&-a,f>=T||f===32&&(T&4194176)!==0)?a:o}function lo(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function kI(n,a){switch(n){case 1:case 2:case 4:case 8:return a+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 a+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 oy(){var n=br;return br<<=1,(br&4194176)===0&&(br=128),n}function sy(){var n=Xr;return Xr<<=1,(Xr&62914560)===0&&(Xr=4194304),n}function P0(n){for(var a=[],u=0;31>u;u++)a.push(n);return a}function oo(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function DI(n,a,u,o,f,h){var T=n.pendingLanes;n.pendingLanes=u,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=u,n.entangledLanes&=u,n.errorRecoveryDisabledLanes&=u,n.shellSuspendCounter=0;var R=n.entanglements,B=n.expirationTimes,z=n.hiddenUpdates;for(u=T&~u;0<u;){var le=31-ze(u),he=1<<le;R[le]=0,B[le]=-1;var Z=z[le];if(Z!==null)for(z[le]=null,le=0;le<Z.length;le++){var ue=Z[le];ue!==null&&(ue.lane&=-536870913)}u&=~he}o!==0&&cy(n,o,0),h!==0&&f===0&&n.tag!==0&&(n.suspendedLanes|=h&~(T&~a))}function cy(n,a,u){n.pendingLanes|=a,n.suspendedLanes&=~a;var o=31-ze(a);n.entangledLanes|=a,n.entanglements[o]=n.entanglements[o]|1073741824|u&4194218}function fy(n,a){var u=n.entangledLanes|=a;for(n=n.entanglements;u;){var o=31-ze(u),f=1<<o;f&a|n[o]&a&&(n[o]|=a),u&=~f}}function dy(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function hy(){var n=ce.p;return n!==0?n:(n=window.event,n===void 0?32:M3(n.type))}function LI(n,a){var u=ce.p;try{return ce.p=n,a()}finally{ce.p=u}}var Ba=Math.random().toString(36).slice(2),Rn="__reactFiber$"+Ba,jn="__reactProps$"+Ba,gu="__reactContainer$"+Ba,U0="__reactEvents$"+Ba,II="__reactListeners$"+Ba,wI="__reactHandles$"+Ba,py="__reactResources$"+Ba,so="__reactMarker$"+Ba;function H0(n){delete n[Rn],delete n[jn],delete n[U0],delete n[II],delete n[wI]}function yi(n){var a=n[Rn];if(a)return a;for(var u=n.parentNode;u;){if(a=u[gu]||u[Rn]){if(u=a.alternate,a.child!==null||u!==null&&u.child!==null)for(n=T3(n);n!==null;){if(u=n[Rn])return u;n=T3(n)}return a}n=u,u=n.parentNode}return null}function bu(n){if(n=n[Rn]||n[gu]){var a=n.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return n}return null}function co(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(i(33))}function Eu(n){var a=n[py];return a||(a=n[py]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function hn(n){n[so]=!0}var my=new Set,gy={};function Ti(n,a){yu(n,a),yu(n+"Capture",a)}function yu(n,a){for(gy[n]=a,n=0;n<a.length;n++)my.add(a[n])}var la=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),MI=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]*$"),by={},Ey={};function BI(n){return ct.call(Ey,n)?!0:ct.call(by,n)?!1:MI.test(n)?Ey[n]=!0:(by[n]=!0,!1)}function hc(n,a,u){if(BI(a))if(u===null)n.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var o=a.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,""+u)}}function pc(n,a,u){if(u===null)n.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+u)}}function oa(n,a,u,o){if(o===null)n.removeAttribute(u);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(u);return}n.setAttributeNS(a,u,""+o)}}function Er(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function yy(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function PI(n){var a=yy(n)?"checked":"value",u=Object.getOwnPropertyDescriptor(n.constructor.prototype,a),o=""+n[a];if(!n.hasOwnProperty(a)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var f=u.get,h=u.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return f.call(this)},set:function(T){o=""+T,h.call(this,T)}}),Object.defineProperty(n,a,{enumerable:u.enumerable}),{getValue:function(){return o},setValue:function(T){o=""+T},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function mc(n){n._valueTracker||(n._valueTracker=PI(n))}function Ty(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var u=a.getValue(),o="";return n&&(o=yy(n)?n.checked?"true":"false":n.value),n=o,n!==u?(a.setValue(n),!0):!1}function gc(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var UI=/[\n"\\]/g;function yr(n){return n.replace(UI,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function F0(n,a,u,o,f,h,T,R){n.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?n.type=T:n.removeAttribute("type"),a!=null?T==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+Er(a)):n.value!==""+Er(a)&&(n.value=""+Er(a)):T!=="submit"&&T!=="reset"||n.removeAttribute("value"),a!=null?z0(n,T,Er(a)):u!=null?z0(n,T,Er(u)):o!=null&&n.removeAttribute("value"),f==null&&h!=null&&(n.defaultChecked=!!h),f!=null&&(n.checked=f&&typeof f!="function"&&typeof f!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?n.name=""+Er(R):n.removeAttribute("name")}function Sy(n,a,u,o,f,h,T,R){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(n.type=h),a!=null||u!=null){if(!(h!=="submit"&&h!=="reset"||a!=null))return;u=u!=null?""+Er(u):"",a=a!=null?""+Er(a):u,R||a===n.value||(n.value=a),n.defaultValue=a}o=o??f,o=typeof o!="function"&&typeof o!="symbol"&&!!o,n.checked=R?n.checked:!!o,n.defaultChecked=!!o,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(n.name=T)}function z0(n,a,u){a==="number"&&gc(n.ownerDocument)===n||n.defaultValue===""+u||(n.defaultValue=""+u)}function Tu(n,a,u,o){if(n=n.options,a){a={};for(var f=0;f<u.length;f++)a["$"+u[f]]=!0;for(u=0;u<n.length;u++)f=a.hasOwnProperty("$"+n[u].value),n[u].selected!==f&&(n[u].selected=f),f&&o&&(n[u].defaultSelected=!0)}else{for(u=""+Er(u),a=null,f=0;f<n.length;f++){if(n[f].value===u){n[f].selected=!0,o&&(n[f].defaultSelected=!0);return}a!==null||n[f].disabled||(a=n[f])}a!==null&&(a.selected=!0)}}function Cy(n,a,u){if(a!=null&&(a=""+Er(a),a!==n.value&&(n.value=a),u==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=u!=null?""+Er(u):""}function Ay(n,a,u,o){if(a==null){if(o!=null){if(u!=null)throw Error(i(92));if(D(o)){if(1<o.length)throw Error(i(93));o=o[0]}u=o}u==null&&(u=""),a=u}u=Er(a),n.defaultValue=u,o=n.textContent,o===u&&o!==""&&o!==null&&(n.value=o)}function Su(n,a){if(a){var u=n.firstChild;if(u&&u===n.lastChild&&u.nodeType===3){u.nodeValue=a;return}}n.textContent=a}var HI=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 xy(n,a,u){var o=a.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?o?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":o?n.setProperty(a,u):typeof u!="number"||u===0||HI.has(a)?a==="float"?n.cssFloat=u:n[a]=(""+u).trim():n[a]=u+"px"}function _y(n,a,u){if(a!=null&&typeof a!="object")throw Error(i(62));if(n=n.style,u!=null){for(var o in u)!u.hasOwnProperty(o)||a!=null&&a.hasOwnProperty(o)||(o.indexOf("--")===0?n.setProperty(o,""):o==="float"?n.cssFloat="":n[o]="");for(var f in a)o=a[f],a.hasOwnProperty(f)&&u[f]!==o&&xy(n,f,o)}else for(var h in a)a.hasOwnProperty(h)&&xy(n,h,a[h])}function Y0(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var FI=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"]]),zI=/^[\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 bc(n){return zI.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var j0=null;function V0(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Cu=null,Au=null;function vy(n){var a=bu(n);if(a&&(n=a.stateNode)){var u=n[jn]||null;e:switch(n=a.stateNode,a.type){case"input":if(F0(n,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),a=u.name,u.type==="radio"&&a!=null){for(u=n;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+yr(""+a)+'"][type="radio"]'),a=0;a<u.length;a++){var o=u[a];if(o!==n&&o.form===n.form){var f=o[jn]||null;if(!f)throw Error(i(90));F0(o,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(a=0;a<u.length;a++)o=u[a],o.form===n.form&&Ty(o)}break e;case"textarea":Cy(n,u.value,u.defaultValue);break e;case"select":a=u.value,a!=null&&Tu(n,!!u.multiple,a,!1)}}}var $0=!1;function Ry(n,a,u){if($0)return n(a,u);$0=!0;try{var o=n(a);return o}finally{if($0=!1,(Cu!==null||Au!==null)&&(ef(),Cu&&(a=Cu,n=Au,Au=Cu=null,vy(a),n)))for(a=0;a<n.length;a++)vy(n[a])}}function fo(n,a){var u=n.stateNode;if(u===null)return null;var o=u[jn]||null;if(o===null)return null;u=o[a];e:switch(a){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)||(n=n.type,o=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!o;break e;default:n=!1}if(n)return null;if(u&&typeof u!="function")throw Error(i(231,a,typeof u));return u}var q0=!1;if(la)try{var ho={};Object.defineProperty(ho,"passive",{get:function(){q0=!0}}),window.addEventListener("test",ho,ho),window.removeEventListener("test",ho,ho)}catch{q0=!1}var Pa=null,G0=null,Ec=null;function Oy(){if(Ec)return Ec;var n,a=G0,u=a.length,o,f="value"in Pa?Pa.value:Pa.textContent,h=f.length;for(n=0;n<u&&a[n]===f[n];n++);var T=u-n;for(o=1;o<=T&&a[u-o]===f[h-o];o++);return Ec=f.slice(n,1<o?1-o:void 0)}function yc(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function Tc(){return!0}function Ny(){return!1}function Vn(n){function a(u,o,f,h,T){this._reactName=u,this._targetInst=f,this.type=o,this.nativeEvent=h,this.target=T,this.currentTarget=null;for(var R in n)n.hasOwnProperty(R)&&(u=n[R],this[R]=u?u(h):h[R]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Tc:Ny,this.isPropagationStopped=Ny,this}return A(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Tc)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Tc)},persist:function(){},isPersistent:Tc}),a}var Si={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sc=Vn(Si),po=A({},Si,{view:0,detail:0}),YI=Vn(po),X0,Q0,mo,Cc=A({},po,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:W0,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==mo&&(mo&&n.type==="mousemove"?(X0=n.screenX-mo.screenX,Q0=n.screenY-mo.screenY):Q0=X0=0,mo=n),X0)},movementY:function(n){return"movementY"in n?n.movementY:Q0}}),ky=Vn(Cc),jI=A({},Cc,{dataTransfer:0}),VI=Vn(jI),$I=A({},po,{relatedTarget:0}),K0=Vn($I),qI=A({},Si,{animationName:0,elapsedTime:0,pseudoElement:0}),GI=Vn(qI),XI=A({},Si,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),QI=Vn(XI),KI=A({},Si,{data:0}),Dy=Vn(KI),WI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ZI={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"},JI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ew(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=JI[n])?!!a[n]:!1}function W0(){return ew}var tw=A({},po,{key:function(n){if(n.key){var a=WI[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=yc(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?ZI[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:W0,charCode:function(n){return n.type==="keypress"?yc(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?yc(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),nw=Vn(tw),rw=A({},Cc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ly=Vn(rw),aw=A({},po,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:W0}),iw=Vn(aw),uw=A({},Si,{propertyName:0,elapsedTime:0,pseudoElement:0}),lw=Vn(uw),ow=A({},Cc,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),sw=Vn(ow),cw=A({},Si,{newState:0,oldState:0}),fw=Vn(cw),dw=[9,13,27,32],Z0=la&&"CompositionEvent"in window,go=null;la&&"documentMode"in document&&(go=document.documentMode);var hw=la&&"TextEvent"in window&&!go,Iy=la&&(!Z0||go&&8<go&&11>=go),wy=" ",My=!1;function By(n,a){switch(n){case"keyup":return dw.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Py(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var xu=!1;function pw(n,a){switch(n){case"compositionend":return Py(a);case"keypress":return a.which!==32?null:(My=!0,wy);case"textInput":return n=a.data,n===wy&&My?null:n;default:return null}}function mw(n,a){if(xu)return n==="compositionend"||!Z0&&By(n,a)?(n=Oy(),Ec=G0=Pa=null,xu=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Iy&&a.locale!=="ko"?null:a.data;default:return null}}var gw={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 Uy(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!gw[n.type]:a==="textarea"}function Hy(n,a,u,o){Cu?Au?Au.push(o):Au=[o]:Cu=o,a=uf(a,"onChange"),0<a.length&&(u=new Sc("onChange","change",null,u,o),n.push({event:u,listeners:a}))}var bo=null,Eo=null;function bw(n){f3(n,0)}function Ac(n){var a=co(n);if(Ty(a))return n}function Fy(n,a){if(n==="change")return a}var zy=!1;if(la){var J0;if(la){var eh="oninput"in document;if(!eh){var Yy=document.createElement("div");Yy.setAttribute("oninput","return;"),eh=typeof Yy.oninput=="function"}J0=eh}else J0=!1;zy=J0&&(!document.documentMode||9<document.documentMode)}function jy(){bo&&(bo.detachEvent("onpropertychange",Vy),Eo=bo=null)}function Vy(n){if(n.propertyName==="value"&&Ac(Eo)){var a=[];Hy(a,Eo,n,V0(n)),Ry(bw,a)}}function Ew(n,a,u){n==="focusin"?(jy(),bo=a,Eo=u,bo.attachEvent("onpropertychange",Vy)):n==="focusout"&&jy()}function yw(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Ac(Eo)}function Tw(n,a){if(n==="click")return Ac(a)}function Sw(n,a){if(n==="input"||n==="change")return Ac(a)}function Cw(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var er=typeof Object.is=="function"?Object.is:Cw;function yo(n,a){if(er(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var u=Object.keys(n),o=Object.keys(a);if(u.length!==o.length)return!1;for(o=0;o<u.length;o++){var f=u[o];if(!ct.call(a,f)||!er(n[f],a[f]))return!1}return!0}function $y(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function qy(n,a){var u=$y(n);n=0;for(var o;u;){if(u.nodeType===3){if(o=n+u.textContent.length,n<=a&&o>=a)return{node:u,offset:a-n};n=o}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=$y(u)}}function Gy(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?Gy(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function Xy(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=gc(n.document);a instanceof n.HTMLIFrameElement;){try{var u=typeof a.contentWindow.location.href=="string"}catch{u=!1}if(u)n=a.contentWindow;else break;a=gc(n.document)}return a}function th(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}function Aw(n,a){var u=Xy(a);a=n.focusedElem;var o=n.selectionRange;if(u!==a&&a&&a.ownerDocument&&Gy(a.ownerDocument.documentElement,a)){if(o!==null&&th(a)){if(n=o.start,u=o.end,u===void 0&&(u=n),"selectionStart"in a)a.selectionStart=n,a.selectionEnd=Math.min(u,a.value.length);else if(u=(n=a.ownerDocument||document)&&n.defaultView||window,u.getSelection){u=u.getSelection();var f=a.textContent.length,h=Math.min(o.start,f);o=o.end===void 0?h:Math.min(o.end,f),!u.extend&&h>o&&(f=o,o=h,h=f),f=qy(a,h);var T=qy(a,o);f&&T&&(u.rangeCount!==1||u.anchorNode!==f.node||u.anchorOffset!==f.offset||u.focusNode!==T.node||u.focusOffset!==T.offset)&&(n=n.createRange(),n.setStart(f.node,f.offset),u.removeAllRanges(),h>o?(u.addRange(n),u.extend(T.node,T.offset)):(n.setEnd(T.node,T.offset),u.addRange(n)))}}for(n=[],u=a;u=u.parentNode;)u.nodeType===1&&n.push({element:u,left:u.scrollLeft,top:u.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<n.length;a++)u=n[a],u.element.scrollLeft=u.left,u.element.scrollTop=u.top}}var xw=la&&"documentMode"in document&&11>=document.documentMode,_u=null,nh=null,To=null,rh=!1;function Qy(n,a,u){var o=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;rh||_u==null||_u!==gc(o)||(o=_u,"selectionStart"in o&&th(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}),To&&yo(To,o)||(To=o,o=uf(nh,"onSelect"),0<o.length&&(a=new Sc("onSelect","select",null,a,u),n.push({event:a,listeners:o}),a.target=_u)))}function Ci(n,a){var u={};return u[n.toLowerCase()]=a.toLowerCase(),u["Webkit"+n]="webkit"+a,u["Moz"+n]="moz"+a,u}var vu={animationend:Ci("Animation","AnimationEnd"),animationiteration:Ci("Animation","AnimationIteration"),animationstart:Ci("Animation","AnimationStart"),transitionrun:Ci("Transition","TransitionRun"),transitionstart:Ci("Transition","TransitionStart"),transitioncancel:Ci("Transition","TransitionCancel"),transitionend:Ci("Transition","TransitionEnd")},ah={},Ky={};la&&(Ky=document.createElement("div").style,"AnimationEvent"in window||(delete vu.animationend.animation,delete vu.animationiteration.animation,delete vu.animationstart.animation),"TransitionEvent"in window||delete vu.transitionend.transition);function Ai(n){if(ah[n])return ah[n];if(!vu[n])return n;var a=vu[n],u;for(u in a)if(a.hasOwnProperty(u)&&u in Ky)return ah[n]=a[u];return n}var Wy=Ai("animationend"),Zy=Ai("animationiteration"),Jy=Ai("animationstart"),_w=Ai("transitionrun"),vw=Ai("transitionstart"),Rw=Ai("transitioncancel"),eT=Ai("transitionend"),tT=new Map,nT="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 Dr(n,a){tT.set(n,a),Ti(a,[n])}var Tr=[],Ru=0,ih=0;function xc(){for(var n=Ru,a=ih=Ru=0;a<n;){var u=Tr[a];Tr[a++]=null;var o=Tr[a];Tr[a++]=null;var f=Tr[a];Tr[a++]=null;var h=Tr[a];if(Tr[a++]=null,o!==null&&f!==null){var T=o.pending;T===null?f.next=f:(f.next=T.next,T.next=f),o.pending=f}h!==0&&rT(u,f,h)}}function _c(n,a,u,o){Tr[Ru++]=n,Tr[Ru++]=a,Tr[Ru++]=u,Tr[Ru++]=o,ih|=o,n.lanes|=o,n=n.alternate,n!==null&&(n.lanes|=o)}function uh(n,a,u,o){return _c(n,a,u,o),vc(n)}function Ua(n,a){return _c(n,null,null,a),vc(n)}function rT(n,a,u){n.lanes|=u;var o=n.alternate;o!==null&&(o.lanes|=u);for(var f=!1,h=n.return;h!==null;)h.childLanes|=u,o=h.alternate,o!==null&&(o.childLanes|=u),h.tag===22&&(n=h.stateNode,n===null||n._visibility&1||(f=!0)),n=h,h=h.return;f&&a!==null&&n.tag===3&&(h=n.stateNode,f=31-ze(u),h=h.hiddenUpdates,n=h[f],n===null?h[f]=[a]:n.push(a),a.lane=u|536870912)}function vc(n){if(50<$o)throw $o=0,dp=null,Error(i(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var Ou={},aT=new WeakMap;function Sr(n,a){if(typeof n=="object"&&n!==null){var u=aT.get(n);return u!==void 0?u:(a={value:n,source:a,stack:se(a)},aT.set(n,a),a)}return{value:n,source:a,stack:se(a)}}var Nu=[],ku=0,Rc=null,Oc=0,Cr=[],Ar=0,xi=null,sa=1,ca="";function _i(n,a){Nu[ku++]=Oc,Nu[ku++]=Rc,Rc=n,Oc=a}function iT(n,a,u){Cr[Ar++]=sa,Cr[Ar++]=ca,Cr[Ar++]=xi,xi=n;var o=sa;n=ca;var f=32-ze(o)-1;o&=~(1<<f),u+=1;var h=32-ze(a)+f;if(30<h){var T=f-f%5;h=(o&(1<<T)-1).toString(32),o>>=T,f-=T,sa=1<<32-ze(a)+f|u<<f|o,ca=h+n}else sa=1<<h|u<<f|o,ca=n}function lh(n){n.return!==null&&(_i(n,1),iT(n,1,0))}function oh(n){for(;n===Rc;)Rc=Nu[--ku],Nu[ku]=null,Oc=Nu[--ku],Nu[ku]=null;for(;n===xi;)xi=Cr[--Ar],Cr[Ar]=null,ca=Cr[--Ar],Cr[Ar]=null,sa=Cr[--Ar],Cr[Ar]=null}var kn=null,En=null,gt=!1,Lr=null,Kr=!1,sh=Error(i(519));function vi(n){var a=Error(i(418,""));throw Ao(Sr(a,n)),sh}function uT(n){var a=n.stateNode,u=n.type,o=n.memoizedProps;switch(a[Rn]=n,a[jn]=o,u){case"dialog":ft("cancel",a),ft("close",a);break;case"iframe":case"object":case"embed":ft("load",a);break;case"video":case"audio":for(u=0;u<Go.length;u++)ft(Go[u],a);break;case"source":ft("error",a);break;case"img":case"image":case"link":ft("error",a),ft("load",a);break;case"details":ft("toggle",a);break;case"input":ft("invalid",a),Sy(a,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),mc(a);break;case"select":ft("invalid",a);break;case"textarea":ft("invalid",a),Ay(a,o.value,o.defaultValue,o.children),mc(a)}u=o.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||a.textContent===""+u||o.suppressHydrationWarning===!0||m3(a.textContent,u)?(o.popover!=null&&(ft("beforetoggle",a),ft("toggle",a)),o.onScroll!=null&&ft("scroll",a),o.onScrollEnd!=null&&ft("scrollend",a),o.onClick!=null&&(a.onclick=lf),a=!0):a=!1,a||vi(n)}function lT(n){for(kn=n.return;kn;)switch(kn.tag){case 3:case 27:Kr=!0;return;case 5:case 13:Kr=!1;return;default:kn=kn.return}}function So(n){if(n!==kn)return!1;if(!gt)return lT(n),gt=!0,!1;var a=!1,u;if((u=n.tag!==3&&n.tag!==27)&&((u=n.tag===5)&&(u=n.type,u=!(u!=="form"&&u!=="button")||Np(n.type,n.memoizedProps)),u=!u),u&&(a=!0),a&&En&&vi(n),lT(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(317));e:{for(n=n.nextSibling,a=0;n;){if(n.nodeType===8)if(u=n.data,u==="/$"){if(a===0){En=wr(n.nextSibling);break e}a--}else u!=="$"&&u!=="$!"&&u!=="$?"||a++;n=n.nextSibling}En=null}}else En=kn?wr(n.stateNode.nextSibling):null;return!0}function Co(){En=kn=null,gt=!1}function Ao(n){Lr===null?Lr=[n]:Lr.push(n)}var xo=Error(i(460)),oT=Error(i(474)),ch={then:function(){}};function sT(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Nc(){}function cT(n,a,u){switch(u=n[u],u===void 0?n.push(a):u!==a&&(a.then(Nc,Nc),a=u),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,n===xo?Error(i(483)):n;default:if(typeof a.status=="string")a.then(Nc,Nc);else{if(n=wt,n!==null&&100<n.shellSuspendCounter)throw Error(i(482));n=a,n.status="pending",n.then(function(o){if(a.status==="pending"){var f=a;f.status="fulfilled",f.value=o}},function(o){if(a.status==="pending"){var f=a;f.status="rejected",f.reason=o}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,n===xo?Error(i(483)):n}throw _o=a,xo}}var _o=null;function fT(){if(_o===null)throw Error(i(459));var n=_o;return _o=null,n}var Du=null,vo=0;function kc(n){var a=vo;return vo+=1,Du===null&&(Du=[]),cT(Du,n,a)}function Ro(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function Dc(n,a){throw a.$$typeof===s?Error(i(525)):(n=Object.prototype.toString.call(a),Error(i(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function dT(n){var a=n._init;return a(n._payload)}function hT(n){function a($,F){if(n){var X=$.deletions;X===null?($.deletions=[F],$.flags|=16):X.push(F)}}function u($,F){if(!n)return null;for(;F!==null;)a($,F),F=F.sibling;return null}function o($){for(var F=new Map;$!==null;)$.key!==null?F.set($.key,$):F.set($.index,$),$=$.sibling;return F}function f($,F){return $=Ka($,F),$.index=0,$.sibling=null,$}function h($,F,X){return $.index=X,n?(X=$.alternate,X!==null?(X=X.index,X<F?($.flags|=33554434,F):X):($.flags|=33554434,F)):($.flags|=1048576,F)}function T($){return n&&$.alternate===null&&($.flags|=33554434),$}function R($,F,X,fe){return F===null||F.tag!==6?(F=ap(X,$.mode,fe),F.return=$,F):(F=f(F,X),F.return=$,F)}function B($,F,X,fe){var Ne=X.type;return Ne===p?le($,F,X.props.children,fe,X.key):F!==null&&(F.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===H&&dT(Ne)===F.type)?(F=f(F,X.props),Ro(F,X),F.return=$,F):(F=Qc(X.type,X.key,X.props,null,$.mode,fe),Ro(F,X),F.return=$,F)}function z($,F,X,fe){return F===null||F.tag!==4||F.stateNode.containerInfo!==X.containerInfo||F.stateNode.implementation!==X.implementation?(F=ip(X,$.mode,fe),F.return=$,F):(F=f(F,X.children||[]),F.return=$,F)}function le($,F,X,fe,Ne){return F===null||F.tag!==7?(F=Bi(X,$.mode,fe,Ne),F.return=$,F):(F=f(F,X),F.return=$,F)}function he($,F,X){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return F=ap(""+F,$.mode,X),F.return=$,F;if(typeof F=="object"&&F!==null){switch(F.$$typeof){case c:return X=Qc(F.type,F.key,F.props,null,$.mode,X),Ro(X,F),X.return=$,X;case d:return F=ip(F,$.mode,X),F.return=$,F;case H:var fe=F._init;return F=fe(F._payload),he($,F,X)}if(D(F)||M(F))return F=Bi(F,$.mode,X,null),F.return=$,F;if(typeof F.then=="function")return he($,kc(F),X);if(F.$$typeof===y)return he($,qc($,F),X);Dc($,F)}return null}function Z($,F,X,fe){var Ne=F!==null?F.key:null;if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return Ne!==null?null:R($,F,""+X,fe);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case c:return X.key===Ne?B($,F,X,fe):null;case d:return X.key===Ne?z($,F,X,fe):null;case H:return Ne=X._init,X=Ne(X._payload),Z($,F,X,fe)}if(D(X)||M(X))return Ne!==null?null:le($,F,X,fe,null);if(typeof X.then=="function")return Z($,F,kc(X),fe);if(X.$$typeof===y)return Z($,F,qc($,X),fe);Dc($,X)}return null}function ue($,F,X,fe,Ne){if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return $=$.get(X)||null,R(F,$,""+fe,Ne);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case c:return $=$.get(fe.key===null?X:fe.key)||null,B(F,$,fe,Ne);case d:return $=$.get(fe.key===null?X:fe.key)||null,z(F,$,fe,Ne);case H:var ut=fe._init;return fe=ut(fe._payload),ue($,F,X,fe,Ne)}if(D(fe)||M(fe))return $=$.get(X)||null,le(F,$,fe,Ne,null);if(typeof fe.then=="function")return ue($,F,X,kc(fe),Ne);if(fe.$$typeof===y)return ue($,F,X,qc(F,fe),Ne);Dc(F,fe)}return null}function Le($,F,X,fe){for(var Ne=null,ut=null,Pe=F,Ye=F=0,gn=null;Pe!==null&&Ye<X.length;Ye++){Pe.index>Ye?(gn=Pe,Pe=null):gn=Pe.sibling;var bt=Z($,Pe,X[Ye],fe);if(bt===null){Pe===null&&(Pe=gn);break}n&&Pe&&bt.alternate===null&&a($,Pe),F=h(bt,F,Ye),ut===null?Ne=bt:ut.sibling=bt,ut=bt,Pe=gn}if(Ye===X.length)return u($,Pe),gt&&_i($,Ye),Ne;if(Pe===null){for(;Ye<X.length;Ye++)Pe=he($,X[Ye],fe),Pe!==null&&(F=h(Pe,F,Ye),ut===null?Ne=Pe:ut.sibling=Pe,ut=Pe);return gt&&_i($,Ye),Ne}for(Pe=o(Pe);Ye<X.length;Ye++)gn=ue(Pe,$,Ye,X[Ye],fe),gn!==null&&(n&&gn.alternate!==null&&Pe.delete(gn.key===null?Ye:gn.key),F=h(gn,F,Ye),ut===null?Ne=gn:ut.sibling=gn,ut=gn);return n&&Pe.forEach(function(ri){return a($,ri)}),gt&&_i($,Ye),Ne}function qe($,F,X,fe){if(X==null)throw Error(i(151));for(var Ne=null,ut=null,Pe=F,Ye=F=0,gn=null,bt=X.next();Pe!==null&&!bt.done;Ye++,bt=X.next()){Pe.index>Ye?(gn=Pe,Pe=null):gn=Pe.sibling;var ri=Z($,Pe,bt.value,fe);if(ri===null){Pe===null&&(Pe=gn);break}n&&Pe&&ri.alternate===null&&a($,Pe),F=h(ri,F,Ye),ut===null?Ne=ri:ut.sibling=ri,ut=ri,Pe=gn}if(bt.done)return u($,Pe),gt&&_i($,Ye),Ne;if(Pe===null){for(;!bt.done;Ye++,bt=X.next())bt=he($,bt.value,fe),bt!==null&&(F=h(bt,F,Ye),ut===null?Ne=bt:ut.sibling=bt,ut=bt);return gt&&_i($,Ye),Ne}for(Pe=o(Pe);!bt.done;Ye++,bt=X.next())bt=ue(Pe,$,Ye,bt.value,fe),bt!==null&&(n&&bt.alternate!==null&&Pe.delete(bt.key===null?Ye:bt.key),F=h(bt,F,Ye),ut===null?Ne=bt:ut.sibling=bt,ut=bt);return n&&Pe.forEach(function(zM){return a($,zM)}),gt&&_i($,Ye),Ne}function Xt($,F,X,fe){if(typeof X=="object"&&X!==null&&X.type===p&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case c:e:{for(var Ne=X.key;F!==null;){if(F.key===Ne){if(Ne=X.type,Ne===p){if(F.tag===7){u($,F.sibling),fe=f(F,X.props.children),fe.return=$,$=fe;break e}}else if(F.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===H&&dT(Ne)===F.type){u($,F.sibling),fe=f(F,X.props),Ro(fe,X),fe.return=$,$=fe;break e}u($,F);break}else a($,F);F=F.sibling}X.type===p?(fe=Bi(X.props.children,$.mode,fe,X.key),fe.return=$,$=fe):(fe=Qc(X.type,X.key,X.props,null,$.mode,fe),Ro(fe,X),fe.return=$,$=fe)}return T($);case d:e:{for(Ne=X.key;F!==null;){if(F.key===Ne)if(F.tag===4&&F.stateNode.containerInfo===X.containerInfo&&F.stateNode.implementation===X.implementation){u($,F.sibling),fe=f(F,X.children||[]),fe.return=$,$=fe;break e}else{u($,F);break}else a($,F);F=F.sibling}fe=ip(X,$.mode,fe),fe.return=$,$=fe}return T($);case H:return Ne=X._init,X=Ne(X._payload),Xt($,F,X,fe)}if(D(X))return Le($,F,X,fe);if(M(X)){if(Ne=M(X),typeof Ne!="function")throw Error(i(150));return X=Ne.call(X),qe($,F,X,fe)}if(typeof X.then=="function")return Xt($,F,kc(X),fe);if(X.$$typeof===y)return Xt($,F,qc($,X),fe);Dc($,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(X=""+X,F!==null&&F.tag===6?(u($,F.sibling),fe=f(F,X),fe.return=$,$=fe):(u($,F),fe=ap(X,$.mode,fe),fe.return=$,$=fe),T($)):u($,F)}return function($,F,X,fe){try{vo=0;var Ne=Xt($,F,X,fe);return Du=null,Ne}catch(Pe){if(Pe===xo)throw Pe;var ut=Rr(29,Pe,null,$.mode);return ut.lanes=fe,ut.return=$,ut}finally{}}}var Ri=hT(!0),pT=hT(!1),Lu=Me(null),Lc=Me(0);function mT(n,a){n=Sa,xe(Lc,n),xe(Lu,a),Sa=n|a.baseLanes}function fh(){xe(Lc,Sa),xe(Lu,Lu.current)}function dh(){Sa=Lc.current,$e(Lu),$e(Lc)}var xr=Me(null),Wr=null;function Ha(n){var a=n.alternate;xe(sn,sn.current&1),xe(xr,n),Wr===null&&(a===null||Lu.current!==null||a.memoizedState!==null)&&(Wr=n)}function gT(n){if(n.tag===22){if(xe(sn,sn.current),xe(xr,n),Wr===null){var a=n.alternate;a!==null&&a.memoizedState!==null&&(Wr=n)}}else Fa()}function Fa(){xe(sn,sn.current),xe(xr,xr.current)}function fa(n){$e(xr),Wr===n&&(Wr=null),$e(sn)}var sn=Me(0);function Ic(n){for(var a=n;a!==null;){if(a.tag===13){var u=a.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||u.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Ow=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(u,o){n.push(o)}};this.abort=function(){a.aborted=!0,n.forEach(function(u){return u()})}},Nw=e.unstable_scheduleCallback,kw=e.unstable_NormalPriority,cn={$$typeof:y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hh(){return{controller:new Ow,data:new Map,refCount:0}}function Oo(n){n.refCount--,n.refCount===0&&Nw(kw,function(){n.controller.abort()})}var No=null,ph=0,Iu=0,wu=null;function Dw(n,a){if(No===null){var u=No=[];ph=0,Iu=Tp(),wu={status:"pending",value:void 0,then:function(o){u.push(o)}}}return ph++,a.then(bT,bT),a}function bT(){if(--ph===0&&No!==null){wu!==null&&(wu.status="fulfilled");var n=No;No=null,Iu=0,wu=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function Lw(n,a){var u=[],o={status:"pending",value:null,reason:null,then:function(f){u.push(f)}};return n.then(function(){o.status="fulfilled",o.value=a;for(var f=0;f<u.length;f++)(0,u[f])(a)},function(f){for(o.status="rejected",o.reason=f,f=0;f<u.length;f++)(0,u[f])(void 0)}),o}var ET=V.S;V.S=function(n,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&Dw(n,a),ET!==null&&ET(n,a)};var Oi=Me(null);function mh(){var n=Oi.current;return n!==null?n:wt.pooledCache}function wc(n,a){a===null?xe(Oi,Oi.current):xe(Oi,a.pool)}function yT(){var n=mh();return n===null?null:{parent:cn._currentValue,pool:n}}var za=0,rt=null,Ct=null,un=null,Mc=!1,Mu=!1,Ni=!1,Bc=0,ko=0,Bu=null,Iw=0;function Wt(){throw Error(i(321))}function gh(n,a){if(a===null)return!1;for(var u=0;u<a.length&&u<n.length;u++)if(!er(n[u],a[u]))return!1;return!0}function bh(n,a,u,o,f,h){return za=h,rt=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,V.H=n===null||n.memoizedState===null?ki:Ya,Ni=!1,h=u(o,f),Ni=!1,Mu&&(h=ST(a,u,o,f)),TT(n),h}function TT(n){V.H=Zr;var a=Ct!==null&&Ct.next!==null;if(za=0,un=Ct=rt=null,Mc=!1,ko=0,Bu=null,a)throw Error(i(300));n===null||pn||(n=n.dependencies,n!==null&&$c(n)&&(pn=!0))}function ST(n,a,u,o){rt=n;var f=0;do{if(Mu&&(Bu=null),ko=0,Mu=!1,25<=f)throw Error(i(301));if(f+=1,un=Ct=null,n.updateQueue!=null){var h=n.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}V.H=Di,h=a(u,o)}while(Mu);return h}function ww(){var n=V.H,a=n.useState()[0];return a=typeof a.then=="function"?Do(a):a,n=n.useState()[0],(Ct!==null?Ct.memoizedState:null)!==n&&(rt.flags|=1024),a}function Eh(){var n=Bc!==0;return Bc=0,n}function yh(n,a,u){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~u}function Th(n){if(Mc){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Mc=!1}za=0,un=Ct=rt=null,Mu=!1,ko=Bc=0,Bu=null}function $n(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return un===null?rt.memoizedState=un=n:un=un.next=n,un}function ln(){if(Ct===null){var n=rt.alternate;n=n!==null?n.memoizedState:null}else n=Ct.next;var a=un===null?rt.memoizedState:un.next;if(a!==null)un=a,Ct=n;else{if(n===null)throw rt.alternate===null?Error(i(467)):Error(i(310));Ct=n,n={memoizedState:Ct.memoizedState,baseState:Ct.baseState,baseQueue:Ct.baseQueue,queue:Ct.queue,next:null},un===null?rt.memoizedState=un=n:un=un.next=n}return un}var Pc;Pc=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function Do(n){var a=ko;return ko+=1,Bu===null&&(Bu=[]),n=cT(Bu,n,a),a=rt,(un===null?a.memoizedState:un.next)===null&&(a=a.alternate,V.H=a===null||a.memoizedState===null?ki:Ya),n}function Uc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Do(n);if(n.$$typeof===y)return On(n)}throw Error(i(438,String(n)))}function Sh(n){var a=null,u=rt.updateQueue;if(u!==null&&(a=u.memoCache),a==null){var o=rt.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(a={data:o.data.map(function(f){return f.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),u===null&&(u=Pc(),rt.updateQueue=u),u.memoCache=a,u=a.data[a.index],u===void 0)for(u=a.data[a.index]=Array(n),o=0;o<n;o++)u[o]=P;return a.index++,u}function da(n,a){return typeof a=="function"?a(n):a}function Hc(n){var a=ln();return Ch(a,Ct,n)}function Ch(n,a,u){var o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=u;var f=n.baseQueue,h=o.pending;if(h!==null){if(f!==null){var T=f.next;f.next=h.next,h.next=T}a.baseQueue=f=h,o.pending=null}if(h=n.baseState,f===null)n.memoizedState=h;else{a=f.next;var R=T=null,B=null,z=a,le=!1;do{var he=z.lane&-536870913;if(he!==z.lane?(ht&he)===he:(za&he)===he){var Z=z.revertLane;if(Z===0)B!==null&&(B=B.next={lane:0,revertLane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),he===Iu&&(le=!0);else if((za&Z)===Z){z=z.next,Z===Iu&&(le=!0);continue}else he={lane:0,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},B===null?(R=B=he,T=h):B=B.next=he,rt.lanes|=Z,Wa|=Z;he=z.action,Ni&&u(h,he),h=z.hasEagerState?z.eagerState:u(h,he)}else Z={lane:he,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},B===null?(R=B=Z,T=h):B=B.next=Z,rt.lanes|=he,Wa|=he;z=z.next}while(z!==null&&z!==a);if(B===null?T=h:B.next=R,!er(h,n.memoizedState)&&(pn=!0,le&&(u=wu,u!==null)))throw u;n.memoizedState=h,n.baseState=T,n.baseQueue=B,o.lastRenderedState=h}return f===null&&(o.lanes=0),[n.memoizedState,o.dispatch]}function Ah(n){var a=ln(),u=a.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=n;var o=u.dispatch,f=u.pending,h=a.memoizedState;if(f!==null){u.pending=null;var T=f=f.next;do h=n(h,T.action),T=T.next;while(T!==f);er(h,a.memoizedState)||(pn=!0),a.memoizedState=h,a.baseQueue===null&&(a.baseState=h),u.lastRenderedState=h}return[h,o]}function CT(n,a,u){var o=rt,f=ln(),h=gt;if(h){if(u===void 0)throw Error(i(407));u=u()}else u=a();var T=!er((Ct||f).memoizedState,u);if(T&&(f.memoizedState=u,pn=!0),f=f.queue,vh(_T.bind(null,o,f,n),[n]),f.getSnapshot!==a||T||un!==null&&un.memoizedState.tag&1){if(o.flags|=2048,Pu(9,xT.bind(null,o,f,u,a),{destroy:void 0},null),wt===null)throw Error(i(349));h||(za&60)!==0||AT(o,a,u)}return u}function AT(n,a,u){n.flags|=16384,n={getSnapshot:a,value:u},a=rt.updateQueue,a===null?(a=Pc(),rt.updateQueue=a,a.stores=[n]):(u=a.stores,u===null?a.stores=[n]:u.push(n))}function xT(n,a,u,o){a.value=u,a.getSnapshot=o,vT(a)&&RT(n)}function _T(n,a,u){return u(function(){vT(a)&&RT(n)})}function vT(n){var a=n.getSnapshot;n=n.value;try{var u=a();return!er(n,u)}catch{return!0}}function RT(n){var a=Ua(n,2);a!==null&&Dn(a,n,2)}function xh(n){var a=$n();if(typeof n=="function"){var u=n;if(n=u(),Ni){_e(!0);try{u()}finally{_e(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:n},a}function OT(n,a,u,o){return n.baseState=u,Ch(n,Ct,typeof o=="function"?o:da)}function Mw(n,a,u,o,f){if(Yc(n))throw Error(i(485));if(n=a.action,n!==null){var h={payload:f,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){h.listeners.push(T)}};V.T!==null?u(!0):h.isTransition=!1,o(h),u=a.pending,u===null?(h.next=a.pending=h,NT(a,h)):(h.next=u.next,a.pending=u.next=h)}}function NT(n,a){var u=a.action,o=a.payload,f=n.state;if(a.isTransition){var h=V.T,T={};V.T=T;try{var R=u(f,o),B=V.S;B!==null&&B(T,R),kT(n,a,R)}catch(z){_h(n,a,z)}finally{V.T=h}}else try{h=u(f,o),kT(n,a,h)}catch(z){_h(n,a,z)}}function kT(n,a,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(o){DT(n,a,o)},function(o){return _h(n,a,o)}):DT(n,a,u)}function DT(n,a,u){a.status="fulfilled",a.value=u,LT(a),n.state=u,a=n.pending,a!==null&&(u=a.next,u===a?n.pending=null:(u=u.next,a.next=u,NT(n,u)))}function _h(n,a,u){var o=n.pending;if(n.pending=null,o!==null){o=o.next;do a.status="rejected",a.reason=u,LT(a),a=a.next;while(a!==o)}n.action=null}function LT(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function IT(n,a){return a}function wT(n,a){if(gt){var u=wt.formState;if(u!==null){e:{var o=rt;if(gt){if(En){t:{for(var f=En,h=Kr;f.nodeType!==8;){if(!h){f=null;break t}if(f=wr(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){En=wr(f.nextSibling),o=f.data==="F!";break e}}vi(o)}o=!1}o&&(a=u[0])}}return u=$n(),u.memoizedState=u.baseState=a,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:IT,lastRenderedState:a},u.queue=o,u=ZT.bind(null,rt,o),o.dispatch=u,o=xh(!1),h=Dh.bind(null,rt,!1,o.queue),o=$n(),f={state:a,dispatch:null,action:n,pending:null},o.queue=f,u=Mw.bind(null,rt,f,h,u),f.dispatch=u,o.memoizedState=n,[a,u,!1]}function MT(n){var a=ln();return BT(a,Ct,n)}function BT(n,a,u){a=Ch(n,a,IT)[0],n=Hc(da)[0],a=typeof a=="object"&&a!==null&&typeof a.then=="function"?Do(a):a;var o=ln(),f=o.queue,h=f.dispatch;return u!==o.memoizedState&&(rt.flags|=2048,Pu(9,Bw.bind(null,f,u),{destroy:void 0},null)),[a,h,n]}function Bw(n,a){n.action=a}function PT(n){var a=ln(),u=Ct;if(u!==null)return BT(a,u,n);ln(),a=a.memoizedState,u=ln();var o=u.queue.dispatch;return u.memoizedState=n,[a,o,!1]}function Pu(n,a,u,o){return n={tag:n,create:a,inst:u,deps:o,next:null},a=rt.updateQueue,a===null&&(a=Pc(),rt.updateQueue=a),u=a.lastEffect,u===null?a.lastEffect=n.next=n:(o=u.next,u.next=n,n.next=o,a.lastEffect=n),n}function UT(){return ln().memoizedState}function Fc(n,a,u,o){var f=$n();rt.flags|=n,f.memoizedState=Pu(1|a,u,{destroy:void 0},o===void 0?null:o)}function zc(n,a,u,o){var f=ln();o=o===void 0?null:o;var h=f.memoizedState.inst;Ct!==null&&o!==null&&gh(o,Ct.memoizedState.deps)?f.memoizedState=Pu(a,u,h,o):(rt.flags|=n,f.memoizedState=Pu(1|a,u,h,o))}function HT(n,a){Fc(8390656,8,n,a)}function vh(n,a){zc(2048,8,n,a)}function FT(n,a){return zc(4,2,n,a)}function zT(n,a){return zc(4,4,n,a)}function YT(n,a){if(typeof a=="function"){n=n();var u=a(n);return function(){typeof u=="function"?u():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function jT(n,a,u){u=u!=null?u.concat([n]):null,zc(4,4,YT.bind(null,a,n),u)}function Rh(){}function VT(n,a){var u=ln();a=a===void 0?null:a;var o=u.memoizedState;return a!==null&&gh(a,o[1])?o[0]:(u.memoizedState=[n,a],n)}function $T(n,a){var u=ln();a=a===void 0?null:a;var o=u.memoizedState;if(a!==null&&gh(a,o[1]))return o[0];if(o=n(),Ni){_e(!0);try{n()}finally{_e(!1)}}return u.memoizedState=[o,a],o}function Oh(n,a,u){return u===void 0||(za&1073741824)!==0?n.memoizedState=a:(n.memoizedState=u,n=GS(),rt.lanes|=n,Wa|=n,u)}function qT(n,a,u,o){return er(u,a)?u:Lu.current!==null?(n=Oh(n,u,o),er(n,a)||(pn=!0),n):(za&42)===0?(pn=!0,n.memoizedState=u):(n=GS(),rt.lanes|=n,Wa|=n,a)}function GT(n,a,u,o,f){var h=ce.p;ce.p=h!==0&&8>h?h:8;var T=V.T,R={};V.T=R,Dh(n,!1,a,u);try{var B=f(),z=V.S;if(z!==null&&z(R,B),B!==null&&typeof B=="object"&&typeof B.then=="function"){var le=Lw(B,o);Lo(n,a,le,ar(n))}else Lo(n,a,o,ar(n))}catch(he){Lo(n,a,{then:function(){},status:"rejected",reason:he},ar())}finally{ce.p=h,V.T=T}}function Pw(){}function Nh(n,a,u,o){if(n.tag!==5)throw Error(i(476));var f=XT(n).queue;GT(n,f,a,Oe,u===null?Pw:function(){return QT(n),u(o)})}function XT(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:Oe,baseState:Oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:Oe},next:null};var u={};return a.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:u},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function QT(n){var a=XT(n).next.queue;Lo(n,a,{},ar())}function kh(){return On(Zo)}function KT(){return ln().memoizedState}function WT(){return ln().memoizedState}function Uw(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var u=ar();n=$a(u);var o=qa(a,n,u);o!==null&&(Dn(o,a,u),Mo(o,a,u)),a={cache:hh()},n.payload=a;return}a=a.return}}function Hw(n,a,u){var o=ar();u={lane:o,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},Yc(n)?JT(a,u):(u=uh(n,a,u,o),u!==null&&(Dn(u,n,o),eS(u,a,o)))}function ZT(n,a,u){var o=ar();Lo(n,a,u,o)}function Lo(n,a,u,o){var f={lane:o,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(Yc(n))JT(a,f);else{var h=n.alternate;if(n.lanes===0&&(h===null||h.lanes===0)&&(h=a.lastRenderedReducer,h!==null))try{var T=a.lastRenderedState,R=h(T,u);if(f.hasEagerState=!0,f.eagerState=R,er(R,T))return _c(n,a,f,0),wt===null&&xc(),!1}catch{}finally{}if(u=uh(n,a,f,o),u!==null)return Dn(u,n,o),eS(u,a,o),!0}return!1}function Dh(n,a,u,o){if(o={lane:2,revertLane:Tp(),action:o,hasEagerState:!1,eagerState:null,next:null},Yc(n)){if(a)throw Error(i(479))}else a=uh(n,u,o,2),a!==null&&Dn(a,n,2)}function Yc(n){var a=n.alternate;return n===rt||a!==null&&a===rt}function JT(n,a){Mu=Mc=!0;var u=n.pending;u===null?a.next=a:(a.next=u.next,u.next=a),n.pending=a}function eS(n,a,u){if((u&4194176)!==0){var o=a.lanes;o&=n.pendingLanes,u|=o,a.lanes=u,fy(n,u)}}var Zr={readContext:On,use:Uc,useCallback:Wt,useContext:Wt,useEffect:Wt,useImperativeHandle:Wt,useLayoutEffect:Wt,useInsertionEffect:Wt,useMemo:Wt,useReducer:Wt,useRef:Wt,useState:Wt,useDebugValue:Wt,useDeferredValue:Wt,useTransition:Wt,useSyncExternalStore:Wt,useId:Wt};Zr.useCacheRefresh=Wt,Zr.useMemoCache=Wt,Zr.useHostTransitionStatus=Wt,Zr.useFormState=Wt,Zr.useActionState=Wt,Zr.useOptimistic=Wt;var ki={readContext:On,use:Uc,useCallback:function(n,a){return $n().memoizedState=[n,a===void 0?null:a],n},useContext:On,useEffect:HT,useImperativeHandle:function(n,a,u){u=u!=null?u.concat([n]):null,Fc(4194308,4,YT.bind(null,a,n),u)},useLayoutEffect:function(n,a){return Fc(4194308,4,n,a)},useInsertionEffect:function(n,a){Fc(4,2,n,a)},useMemo:function(n,a){var u=$n();a=a===void 0?null:a;var o=n();if(Ni){_e(!0);try{n()}finally{_e(!1)}}return u.memoizedState=[o,a],o},useReducer:function(n,a,u){var o=$n();if(u!==void 0){var f=u(a);if(Ni){_e(!0);try{u(a)}finally{_e(!1)}}}else f=a;return o.memoizedState=o.baseState=f,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:f},o.queue=n,n=n.dispatch=Hw.bind(null,rt,n),[o.memoizedState,n]},useRef:function(n){var a=$n();return n={current:n},a.memoizedState=n},useState:function(n){n=xh(n);var a=n.queue,u=ZT.bind(null,rt,a);return a.dispatch=u,[n.memoizedState,u]},useDebugValue:Rh,useDeferredValue:function(n,a){var u=$n();return Oh(u,n,a)},useTransition:function(){var n=xh(!1);return n=GT.bind(null,rt,n.queue,!0,!1),$n().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,u){var o=rt,f=$n();if(gt){if(u===void 0)throw Error(i(407));u=u()}else{if(u=a(),wt===null)throw Error(i(349));(ht&60)!==0||AT(o,a,u)}f.memoizedState=u;var h={value:u,getSnapshot:a};return f.queue=h,HT(_T.bind(null,o,h,n),[n]),o.flags|=2048,Pu(9,xT.bind(null,o,h,u,a),{destroy:void 0},null),u},useId:function(){var n=$n(),a=wt.identifierPrefix;if(gt){var u=ca,o=sa;u=(o&~(1<<32-ze(o)-1)).toString(32)+u,a=":"+a+"R"+u,u=Bc++,0<u&&(a+="H"+u.toString(32)),a+=":"}else u=Iw++,a=":"+a+"r"+u.toString(32)+":";return n.memoizedState=a},useCacheRefresh:function(){return $n().memoizedState=Uw.bind(null,rt)}};ki.useMemoCache=Sh,ki.useHostTransitionStatus=kh,ki.useFormState=wT,ki.useActionState=wT,ki.useOptimistic=function(n){var a=$n();a.memoizedState=a.baseState=n;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=u,a=Dh.bind(null,rt,!0,u),u.dispatch=a,[n,a]};var Ya={readContext:On,use:Uc,useCallback:VT,useContext:On,useEffect:vh,useImperativeHandle:jT,useInsertionEffect:FT,useLayoutEffect:zT,useMemo:$T,useReducer:Hc,useRef:UT,useState:function(){return Hc(da)},useDebugValue:Rh,useDeferredValue:function(n,a){var u=ln();return qT(u,Ct.memoizedState,n,a)},useTransition:function(){var n=Hc(da)[0],a=ln().memoizedState;return[typeof n=="boolean"?n:Do(n),a]},useSyncExternalStore:CT,useId:KT};Ya.useCacheRefresh=WT,Ya.useMemoCache=Sh,Ya.useHostTransitionStatus=kh,Ya.useFormState=MT,Ya.useActionState=MT,Ya.useOptimistic=function(n,a){var u=ln();return OT(u,Ct,n,a)};var Di={readContext:On,use:Uc,useCallback:VT,useContext:On,useEffect:vh,useImperativeHandle:jT,useInsertionEffect:FT,useLayoutEffect:zT,useMemo:$T,useReducer:Ah,useRef:UT,useState:function(){return Ah(da)},useDebugValue:Rh,useDeferredValue:function(n,a){var u=ln();return Ct===null?Oh(u,n,a):qT(u,Ct.memoizedState,n,a)},useTransition:function(){var n=Ah(da)[0],a=ln().memoizedState;return[typeof n=="boolean"?n:Do(n),a]},useSyncExternalStore:CT,useId:KT};Di.useCacheRefresh=WT,Di.useMemoCache=Sh,Di.useHostTransitionStatus=kh,Di.useFormState=PT,Di.useActionState=PT,Di.useOptimistic=function(n,a){var u=ln();return Ct!==null?OT(u,Ct,n,a):(u.baseState=n,[n,u.queue.dispatch])};function Lh(n,a,u,o){a=n.memoizedState,u=u(o,a),u=u==null?a:A({},a,u),n.memoizedState=u,n.lanes===0&&(n.updateQueue.baseState=u)}var Ih={isMounted:function(n){return(n=n._reactInternals)?re(n)===n:!1},enqueueSetState:function(n,a,u){n=n._reactInternals;var o=ar(),f=$a(o);f.payload=a,u!=null&&(f.callback=u),a=qa(n,f,o),a!==null&&(Dn(a,n,o),Mo(a,n,o))},enqueueReplaceState:function(n,a,u){n=n._reactInternals;var o=ar(),f=$a(o);f.tag=1,f.payload=a,u!=null&&(f.callback=u),a=qa(n,f,o),a!==null&&(Dn(a,n,o),Mo(a,n,o))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var u=ar(),o=$a(u);o.tag=2,a!=null&&(o.callback=a),a=qa(n,o,u),a!==null&&(Dn(a,n,u),Mo(a,n,u))}};function tS(n,a,u,o,f,h,T){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(o,h,T):a.prototype&&a.prototype.isPureReactComponent?!yo(u,o)||!yo(f,h):!0}function nS(n,a,u,o){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(u,o),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(u,o),a.state!==n&&Ih.enqueueReplaceState(a,a.state,null)}function Li(n,a){var u=a;if("ref"in a){u={};for(var o in a)o!=="ref"&&(u[o]=a[o])}if(n=n.defaultProps){u===a&&(u=A({},u));for(var f in n)u[f]===void 0&&(u[f]=n[f])}return u}var jc=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function rS(n){jc(n)}function aS(n){console.error(n)}function iS(n){jc(n)}function Vc(n,a){try{var u=n.onUncaughtError;u(a.value,{componentStack:a.stack})}catch(o){setTimeout(function(){throw o})}}function uS(n,a,u){try{var o=n.onCaughtError;o(u.value,{componentStack:u.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function wh(n,a,u){return u=$a(u),u.tag=3,u.payload={element:null},u.callback=function(){Vc(n,a)},u}function lS(n){return n=$a(n),n.tag=3,n}function oS(n,a,u,o){var f=u.type.getDerivedStateFromError;if(typeof f=="function"){var h=o.value;n.payload=function(){return f(h)},n.callback=function(){uS(a,u,o)}}var T=u.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(n.callback=function(){uS(a,u,o),typeof f!="function"&&(Za===null?Za=new Set([this]):Za.add(this));var R=o.stack;this.componentDidCatch(o.value,{componentStack:R!==null?R:""})})}function Fw(n,a,u,o,f){if(u.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(a=u.alternate,a!==null&&wo(a,u,f,!0),u=xr.current,u!==null){switch(u.tag){case 13:return Wr===null?mp():u.alternate===null&&Gt===0&&(Gt=3),u.flags&=-257,u.flags|=65536,u.lanes=f,o===ch?u.flags|=16384:(a=u.updateQueue,a===null?u.updateQueue=new Set([o]):a.add(o),bp(n,o,f)),!1;case 22:return u.flags|=65536,o===ch?u.flags|=16384:(a=u.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([o])},u.updateQueue=a):(u=a.retryQueue,u===null?a.retryQueue=new Set([o]):u.add(o)),bp(n,o,f)),!1}throw Error(i(435,u.tag))}return bp(n,o,f),mp(),!1}if(gt)return a=xr.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=f,o!==sh&&(n=Error(i(422),{cause:o}),Ao(Sr(n,u)))):(o!==sh&&(a=Error(i(423),{cause:o}),Ao(Sr(a,u))),n=n.current.alternate,n.flags|=65536,f&=-f,n.lanes|=f,o=Sr(o,u),f=wh(n.stateNode,o,f),Qh(n,f),Gt!==4&&(Gt=2)),!1;var h=Error(i(520),{cause:o});if(h=Sr(h,u),jo===null?jo=[h]:jo.push(h),Gt!==4&&(Gt=2),a===null)return!0;o=Sr(o,u),u=a;do{switch(u.tag){case 3:return u.flags|=65536,n=f&-f,u.lanes|=n,n=wh(u.stateNode,o,n),Qh(u,n),!1;case 1:if(a=u.type,h=u.stateNode,(u.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Za===null||!Za.has(h))))return u.flags|=65536,f&=-f,u.lanes|=f,f=lS(f),oS(f,n,u,o),Qh(u,f),!1}u=u.return}while(u!==null);return!1}var sS=Error(i(461)),pn=!1;function yn(n,a,u,o){a.child=n===null?pT(a,null,u,o):Ri(a,n.child,u,o)}function cS(n,a,u,o,f){u=u.render;var h=a.ref;if("ref"in o){var T={};for(var R in o)R!=="ref"&&(T[R]=o[R])}else T=o;return wi(a),o=bh(n,a,u,T,h,f),R=Eh(),n!==null&&!pn?(yh(n,a,f),ha(n,a,f)):(gt&&R&&lh(a),a.flags|=1,yn(n,a,o,f),a.child)}function fS(n,a,u,o,f){if(n===null){var h=u.type;return typeof h=="function"&&!rp(h)&&h.defaultProps===void 0&&u.compare===null?(a.tag=15,a.type=h,dS(n,a,h,o,f)):(n=Qc(u.type,null,o,a,a.mode,f),n.ref=a.ref,n.return=a,a.child=n)}if(h=n.child,!jh(n,f)){var T=h.memoizedProps;if(u=u.compare,u=u!==null?u:yo,u(T,o)&&n.ref===a.ref)return ha(n,a,f)}return a.flags|=1,n=Ka(h,o),n.ref=a.ref,n.return=a,a.child=n}function dS(n,a,u,o,f){if(n!==null){var h=n.memoizedProps;if(yo(h,o)&&n.ref===a.ref)if(pn=!1,a.pendingProps=o=h,jh(n,f))(n.flags&131072)!==0&&(pn=!0);else return a.lanes=n.lanes,ha(n,a,f)}return Mh(n,a,u,o,f)}function hS(n,a,u){var o=a.pendingProps,f=o.children,h=(a.stateNode._pendingVisibility&2)!==0,T=n!==null?n.memoizedState:null;if(Io(n,a),o.mode==="hidden"||h){if((a.flags&128)!==0){if(o=T!==null?T.baseLanes|u:u,n!==null){for(f=a.child=n.child,h=0;f!==null;)h=h|f.lanes|f.childLanes,f=f.sibling;a.childLanes=h&~o}else a.childLanes=0,a.child=null;return pS(n,a,o,u)}if((u&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&wc(a,T!==null?T.cachePool:null),T!==null?mT(a,T):fh(),gT(a);else return a.lanes=a.childLanes=536870912,pS(n,a,T!==null?T.baseLanes|u:u,u)}else T!==null?(wc(a,T.cachePool),mT(a,T),Fa(),a.memoizedState=null):(n!==null&&wc(a,null),fh(),Fa());return yn(n,a,f,u),a.child}function pS(n,a,u,o){var f=mh();return f=f===null?null:{parent:cn._currentValue,pool:f},a.memoizedState={baseLanes:u,cachePool:f},n!==null&&wc(a,null),fh(),gT(a),n!==null&&wo(n,a,o,!0),null}function Io(n,a){var u=a.ref;if(u===null)n!==null&&n.ref!==null&&(a.flags|=2097664);else{if(typeof u!="function"&&typeof u!="object")throw Error(i(284));(n===null||n.ref!==u)&&(a.flags|=2097664)}}function Mh(n,a,u,o,f){return wi(a),u=bh(n,a,u,o,void 0,f),o=Eh(),n!==null&&!pn?(yh(n,a,f),ha(n,a,f)):(gt&&o&&lh(a),a.flags|=1,yn(n,a,u,f),a.child)}function mS(n,a,u,o,f,h){return wi(a),a.updateQueue=null,u=ST(a,o,u,f),TT(n),o=Eh(),n!==null&&!pn?(yh(n,a,h),ha(n,a,h)):(gt&&o&&lh(a),a.flags|=1,yn(n,a,u,h),a.child)}function gS(n,a,u,o,f){if(wi(a),a.stateNode===null){var h=Ou,T=u.contextType;typeof T=="object"&&T!==null&&(h=On(T)),h=new u(o,h),a.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Ih,a.stateNode=h,h._reactInternals=a,h=a.stateNode,h.props=o,h.state=a.memoizedState,h.refs={},Gh(a),T=u.contextType,h.context=typeof T=="object"&&T!==null?On(T):Ou,h.state=a.memoizedState,T=u.getDerivedStateFromProps,typeof T=="function"&&(Lh(a,u,T,o),h.state=a.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(T=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),T!==h.state&&Ih.enqueueReplaceState(h,h.state,null),Po(a,o,h,f),Bo(),h.state=a.memoizedState),typeof h.componentDidMount=="function"&&(a.flags|=4194308),o=!0}else if(n===null){h=a.stateNode;var R=a.memoizedProps,B=Li(u,R);h.props=B;var z=h.context,le=u.contextType;T=Ou,typeof le=="object"&&le!==null&&(T=On(le));var he=u.getDerivedStateFromProps;le=typeof he=="function"||typeof h.getSnapshotBeforeUpdate=="function",R=a.pendingProps!==R,le||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(R||z!==T)&&nS(a,h,o,T),Va=!1;var Z=a.memoizedState;h.state=Z,Po(a,o,h,f),Bo(),z=a.memoizedState,R||Z!==z||Va?(typeof he=="function"&&(Lh(a,u,he,o),z=a.memoizedState),(B=Va||tS(a,u,B,o,Z,z,T))?(le||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(a.flags|=4194308)):(typeof h.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=o,a.memoizedState=z),h.props=o,h.state=z,h.context=T,o=B):(typeof h.componentDidMount=="function"&&(a.flags|=4194308),o=!1)}else{h=a.stateNode,Xh(n,a),T=a.memoizedProps,le=Li(u,T),h.props=le,he=a.pendingProps,Z=h.context,z=u.contextType,B=Ou,typeof z=="object"&&z!==null&&(B=On(z)),R=u.getDerivedStateFromProps,(z=typeof R=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(T!==he||Z!==B)&&nS(a,h,o,B),Va=!1,Z=a.memoizedState,h.state=Z,Po(a,o,h,f),Bo();var ue=a.memoizedState;T!==he||Z!==ue||Va||n!==null&&n.dependencies!==null&&$c(n.dependencies)?(typeof R=="function"&&(Lh(a,u,R,o),ue=a.memoizedState),(le=Va||tS(a,u,le,o,Z,ue,B)||n!==null&&n.dependencies!==null&&$c(n.dependencies))?(z||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(o,ue,B),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(o,ue,B)),typeof h.componentDidUpdate=="function"&&(a.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof h.componentDidUpdate!="function"||T===n.memoizedProps&&Z===n.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&Z===n.memoizedState||(a.flags|=1024),a.memoizedProps=o,a.memoizedState=ue),h.props=o,h.state=ue,h.context=B,o=le):(typeof h.componentDidUpdate!="function"||T===n.memoizedProps&&Z===n.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&Z===n.memoizedState||(a.flags|=1024),o=!1)}return h=o,Io(n,a),o=(a.flags&128)!==0,h||o?(h=a.stateNode,u=o&&typeof u.getDerivedStateFromError!="function"?null:h.render(),a.flags|=1,n!==null&&o?(a.child=Ri(a,n.child,null,f),a.child=Ri(a,null,u,f)):yn(n,a,u,f),a.memoizedState=h.state,n=a.child):n=ha(n,a,f),n}function bS(n,a,u,o){return Co(),a.flags|=256,yn(n,a,u,o),a.child}var Bh={dehydrated:null,treeContext:null,retryLane:0};function Ph(n){return{baseLanes:n,cachePool:yT()}}function Uh(n,a,u){return n=n!==null?n.childLanes&~u:0,a&&(n|=Or),n}function ES(n,a,u){var o=a.pendingProps,f=!1,h=(a.flags&128)!==0,T;if((T=h)||(T=n!==null&&n.memoizedState===null?!1:(sn.current&2)!==0),T&&(f=!0,a.flags&=-129),T=(a.flags&32)!==0,a.flags&=-33,n===null){if(gt){if(f?Ha(a):Fa(),gt){var R=En,B;if(B=R){e:{for(B=R,R=Kr;B.nodeType!==8;){if(!R){R=null;break e}if(B=wr(B.nextSibling),B===null){R=null;break e}}R=B}R!==null?(a.memoizedState={dehydrated:R,treeContext:xi!==null?{id:sa,overflow:ca}:null,retryLane:536870912},B=Rr(18,null,null,0),B.stateNode=R,B.return=a,a.child=B,kn=a,En=null,B=!0):B=!1}B||vi(a)}if(R=a.memoizedState,R!==null&&(R=R.dehydrated,R!==null))return R.data==="$!"?a.lanes=16:a.lanes=536870912,null;fa(a)}return R=o.children,o=o.fallback,f?(Fa(),f=a.mode,R=Fh({mode:"hidden",children:R},f),o=Bi(o,f,u,null),R.return=a,o.return=a,R.sibling=o,a.child=R,f=a.child,f.memoizedState=Ph(u),f.childLanes=Uh(n,T,u),a.memoizedState=Bh,o):(Ha(a),Hh(a,R))}if(B=n.memoizedState,B!==null&&(R=B.dehydrated,R!==null)){if(h)a.flags&256?(Ha(a),a.flags&=-257,a=zh(n,a,u)):a.memoizedState!==null?(Fa(),a.child=n.child,a.flags|=128,a=null):(Fa(),f=o.fallback,R=a.mode,o=Fh({mode:"visible",children:o.children},R),f=Bi(f,R,u,null),f.flags|=2,o.return=a,f.return=a,o.sibling=f,a.child=o,Ri(a,n.child,null,u),o=a.child,o.memoizedState=Ph(u),o.childLanes=Uh(n,T,u),a.memoizedState=Bh,a=f);else if(Ha(a),R.data==="$!"){if(T=R.nextSibling&&R.nextSibling.dataset,T)var z=T.dgst;T=z,o=Error(i(419)),o.stack="",o.digest=T,Ao({value:o,source:null,stack:null}),a=zh(n,a,u)}else if(pn||wo(n,a,u,!1),T=(u&n.childLanes)!==0,pn||T){if(T=wt,T!==null){if(o=u&-u,(o&42)!==0)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&(T.suspendedLanes|u))!==0?0:o,o!==0&&o!==B.retryLane)throw B.retryLane=o,Ua(n,o),Dn(T,n,o),sS}R.data==="$?"||mp(),a=zh(n,a,u)}else R.data==="$?"?(a.flags|=128,a.child=n.child,a=tM.bind(null,n),R._reactRetry=a,a=null):(n=B.treeContext,En=wr(R.nextSibling),kn=a,gt=!0,Lr=null,Kr=!1,n!==null&&(Cr[Ar++]=sa,Cr[Ar++]=ca,Cr[Ar++]=xi,sa=n.id,ca=n.overflow,xi=a),a=Hh(a,o.children),a.flags|=4096);return a}return f?(Fa(),f=o.fallback,R=a.mode,B=n.child,z=B.sibling,o=Ka(B,{mode:"hidden",children:o.children}),o.subtreeFlags=B.subtreeFlags&31457280,z!==null?f=Ka(z,f):(f=Bi(f,R,u,null),f.flags|=2),f.return=a,o.return=a,o.sibling=f,a.child=o,o=f,f=a.child,R=n.child.memoizedState,R===null?R=Ph(u):(B=R.cachePool,B!==null?(z=cn._currentValue,B=B.parent!==z?{parent:z,pool:z}:B):B=yT(),R={baseLanes:R.baseLanes|u,cachePool:B}),f.memoizedState=R,f.childLanes=Uh(n,T,u),a.memoizedState=Bh,o):(Ha(a),u=n.child,n=u.sibling,u=Ka(u,{mode:"visible",children:o.children}),u.return=a,u.sibling=null,n!==null&&(T=a.deletions,T===null?(a.deletions=[n],a.flags|=16):T.push(n)),a.child=u,a.memoizedState=null,u)}function Hh(n,a){return a=Fh({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function Fh(n,a){return VS(n,a,0,null)}function zh(n,a,u){return Ri(a,n.child,null,u),n=Hh(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function yS(n,a,u){n.lanes|=a;var o=n.alternate;o!==null&&(o.lanes|=a),$h(n.return,a,u)}function Yh(n,a,u,o,f){var h=n.memoizedState;h===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:o,tail:u,tailMode:f}:(h.isBackwards=a,h.rendering=null,h.renderingStartTime=0,h.last=o,h.tail=u,h.tailMode=f)}function TS(n,a,u){var o=a.pendingProps,f=o.revealOrder,h=o.tail;if(yn(n,a,o.children,u),o=sn.current,(o&2)!==0)o=o&1|2,a.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&yS(n,u,a);else if(n.tag===19)yS(n,u,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}o&=1}switch(xe(sn,o),f){case"forwards":for(u=a.child,f=null;u!==null;)n=u.alternate,n!==null&&Ic(n)===null&&(f=u),u=u.sibling;u=f,u===null?(f=a.child,a.child=null):(f=u.sibling,u.sibling=null),Yh(a,!1,f,u,h);break;case"backwards":for(u=null,f=a.child,a.child=null;f!==null;){if(n=f.alternate,n!==null&&Ic(n)===null){a.child=f;break}n=f.sibling,f.sibling=u,u=f,f=n}Yh(a,!0,u,null,h);break;case"together":Yh(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function ha(n,a,u){if(n!==null&&(a.dependencies=n.dependencies),Wa|=a.lanes,(u&a.childLanes)===0)if(n!==null){if(wo(n,a,u,!1),(u&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(i(153));if(a.child!==null){for(n=a.child,u=Ka(n,n.pendingProps),a.child=u,u.return=a;n.sibling!==null;)n=n.sibling,u=u.sibling=Ka(n,n.pendingProps),u.return=a;u.sibling=null}return a.child}function jh(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&$c(n)))}function zw(n,a,u){switch(a.tag){case 3:Be(a,a.stateNode.containerInfo),ja(a,cn,n.memoizedState.cache),Co();break;case 27:case 5:je(a);break;case 4:Be(a,a.stateNode.containerInfo);break;case 10:ja(a,a.type,a.memoizedProps.value);break;case 13:var o=a.memoizedState;if(o!==null)return o.dehydrated!==null?(Ha(a),a.flags|=128,null):(u&a.child.childLanes)!==0?ES(n,a,u):(Ha(a),n=ha(n,a,u),n!==null?n.sibling:null);Ha(a);break;case 19:var f=(n.flags&128)!==0;if(o=(u&a.childLanes)!==0,o||(wo(n,a,u,!1),o=(u&a.childLanes)!==0),f){if(o)return TS(n,a,u);a.flags|=128}if(f=a.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),xe(sn,sn.current),o)break;return null;case 22:case 23:return a.lanes=0,hS(n,a,u);case 24:ja(a,cn,n.memoizedState.cache)}return ha(n,a,u)}function SS(n,a,u){if(n!==null)if(n.memoizedProps!==a.pendingProps)pn=!0;else{if(!jh(n,u)&&(a.flags&128)===0)return pn=!1,zw(n,a,u);pn=(n.flags&131072)!==0}else pn=!1,gt&&(a.flags&1048576)!==0&&iT(a,Oc,a.index);switch(a.lanes=0,a.tag){case 16:e:{n=a.pendingProps;var o=a.elementType,f=o._init;if(o=f(o._payload),a.type=o,typeof o=="function")rp(o)?(n=Li(o,n),a.tag=1,a=gS(null,a,o,n,u)):(a.tag=0,a=Mh(null,a,o,n,u));else{if(o!=null){if(f=o.$$typeof,f===O){a.tag=11,a=cS(null,a,o,n,u);break e}else if(f===v){a.tag=14,a=fS(null,a,o,n,u);break e}}throw a=ae(o)||o,Error(i(306,a,""))}}return a;case 0:return Mh(n,a,a.type,a.pendingProps,u);case 1:return o=a.type,f=Li(o,a.pendingProps),gS(n,a,o,f,u);case 3:e:{if(Be(a,a.stateNode.containerInfo),n===null)throw Error(i(387));var h=a.pendingProps;f=a.memoizedState,o=f.element,Xh(n,a),Po(a,h,null,u);var T=a.memoizedState;if(h=T.cache,ja(a,cn,h),h!==f.cache&&qh(a,[cn],u,!0),Bo(),h=T.element,f.isDehydrated)if(f={element:h,isDehydrated:!1,cache:T.cache},a.updateQueue.baseState=f,a.memoizedState=f,a.flags&256){a=bS(n,a,h,u);break e}else if(h!==o){o=Sr(Error(i(424)),a),Ao(o),a=bS(n,a,h,u);break e}else for(En=wr(a.stateNode.containerInfo.firstChild),kn=a,gt=!0,Lr=null,Kr=!0,u=pT(a,null,h,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(Co(),h===o){a=ha(n,a,u);break e}yn(n,a,h,u)}a=a.child}return a;case 26:return Io(n,a),n===null?(u=x3(a.type,null,a.pendingProps,null))?a.memoizedState=u:gt||(u=a.type,n=a.pendingProps,o=of(Re.current).createElement(u),o[Rn]=a,o[jn]=n,Tn(o,u,n),hn(o),a.stateNode=o):a.memoizedState=x3(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return je(a),n===null&&gt&&(o=a.stateNode=S3(a.type,a.pendingProps,Re.current),kn=a,Kr=!0,En=wr(o.firstChild)),o=a.pendingProps.children,n!==null||gt?yn(n,a,o,u):a.child=Ri(a,null,o,u),Io(n,a),a.child;case 5:return n===null&&gt&&((f=o=En)&&(o=bM(o,a.type,a.pendingProps,Kr),o!==null?(a.stateNode=o,kn=a,En=wr(o.firstChild),Kr=!1,f=!0):f=!1),f||vi(a)),je(a),f=a.type,h=a.pendingProps,T=n!==null?n.memoizedProps:null,o=h.children,Np(f,h)?o=null:T!==null&&Np(f,T)&&(a.flags|=32),a.memoizedState!==null&&(f=bh(n,a,ww,null,null,u),Zo._currentValue=f),Io(n,a),yn(n,a,o,u),a.child;case 6:return n===null&&gt&&((n=u=En)&&(u=EM(u,a.pendingProps,Kr),u!==null?(a.stateNode=u,kn=a,En=null,n=!0):n=!1),n||vi(a)),null;case 13:return ES(n,a,u);case 4:return Be(a,a.stateNode.containerInfo),o=a.pendingProps,n===null?a.child=Ri(a,null,o,u):yn(n,a,o,u),a.child;case 11:return cS(n,a,a.type,a.pendingProps,u);case 7:return yn(n,a,a.pendingProps,u),a.child;case 8:return yn(n,a,a.pendingProps.children,u),a.child;case 12:return yn(n,a,a.pendingProps.children,u),a.child;case 10:return o=a.pendingProps,ja(a,a.type,o.value),yn(n,a,o.children,u),a.child;case 9:return f=a.type._context,o=a.pendingProps.children,wi(a),f=On(f),o=o(f),a.flags|=1,yn(n,a,o,u),a.child;case 14:return fS(n,a,a.type,a.pendingProps,u);case 15:return dS(n,a,a.type,a.pendingProps,u);case 19:return TS(n,a,u);case 22:return hS(n,a,u);case 24:return wi(a),o=On(cn),n===null?(f=mh(),f===null&&(f=wt,h=hh(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=u),f=h),a.memoizedState={parent:o,cache:f},Gh(a),ja(a,cn,f)):((n.lanes&u)!==0&&(Xh(n,a),Po(a,null,null,u),Bo()),f=n.memoizedState,h=a.memoizedState,f.parent!==o?(f={parent:o,cache:o},a.memoizedState=f,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=f),ja(a,cn,o)):(o=h.cache,ja(a,cn,o),o!==f.cache&&qh(a,[cn],u,!0))),yn(n,a,a.pendingProps.children,u),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}var Vh=Me(null),Ii=null,pa=null;function ja(n,a,u){xe(Vh,a._currentValue),a._currentValue=u}function ma(n){n._currentValue=Vh.current,$e(Vh)}function $h(n,a,u){for(;n!==null;){var o=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,o!==null&&(o.childLanes|=a)):o!==null&&(o.childLanes&a)!==a&&(o.childLanes|=a),n===u)break;n=n.return}}function qh(n,a,u,o){var f=n.child;for(f!==null&&(f.return=n);f!==null;){var h=f.dependencies;if(h!==null){var T=f.child;h=h.firstContext;e:for(;h!==null;){var R=h;h=f;for(var B=0;B<a.length;B++)if(R.context===a[B]){h.lanes|=u,R=h.alternate,R!==null&&(R.lanes|=u),$h(h.return,u,n),o||(T=null);break e}h=R.next}}else if(f.tag===18){if(T=f.return,T===null)throw Error(i(341));T.lanes|=u,h=T.alternate,h!==null&&(h.lanes|=u),$h(T,u,n),T=null}else T=f.child;if(T!==null)T.return=f;else for(T=f;T!==null;){if(T===n){T=null;break}if(f=T.sibling,f!==null){f.return=T.return,T=f;break}T=T.return}f=T}}function wo(n,a,u,o){n=null;for(var f=a,h=!1;f!==null;){if(!h){if((f.flags&524288)!==0)h=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var T=f.alternate;if(T===null)throw Error(i(387));if(T=T.memoizedProps,T!==null){var R=f.type;er(f.pendingProps.value,T.value)||(n!==null?n.push(R):n=[R])}}else if(f===Ce.current){if(T=f.alternate,T===null)throw Error(i(387));T.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(n!==null?n.push(Zo):n=[Zo])}f=f.return}n!==null&&qh(a,n,u,o),a.flags|=262144}function $c(n){for(n=n.firstContext;n!==null;){if(!er(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function wi(n){Ii=n,pa=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function On(n){return CS(Ii,n)}function qc(n,a){return Ii===null&&wi(n),CS(n,a)}function CS(n,a){var u=a._currentValue;if(a={context:a,memoizedValue:u,next:null},pa===null){if(n===null)throw Error(i(308));pa=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else pa=pa.next=a;return u}var Va=!1;function Gh(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xh(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function $a(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function qa(n,a,u){var o=n.updateQueue;if(o===null)return null;if(o=o.shared,(Yt&2)!==0){var f=o.pending;return f===null?a.next=a:(a.next=f.next,f.next=a),o.pending=a,a=vc(n),rT(n,null,u),a}return _c(n,o,a,u),vc(n)}function Mo(n,a,u){if(a=a.updateQueue,a!==null&&(a=a.shared,(u&4194176)!==0)){var o=a.lanes;o&=n.pendingLanes,u|=o,a.lanes=u,fy(n,u)}}function Qh(n,a){var u=n.updateQueue,o=n.alternate;if(o!==null&&(o=o.updateQueue,u===o)){var f=null,h=null;if(u=u.firstBaseUpdate,u!==null){do{var T={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};h===null?f=h=T:h=h.next=T,u=u.next}while(u!==null);h===null?f=h=a:h=h.next=a}else f=h=a;u={baseState:o.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:o.shared,callbacks:o.callbacks},n.updateQueue=u;return}n=u.lastBaseUpdate,n===null?u.firstBaseUpdate=a:n.next=a,u.lastBaseUpdate=a}var Kh=!1;function Bo(){if(Kh){var n=wu;if(n!==null)throw n}}function Po(n,a,u,o){Kh=!1;var f=n.updateQueue;Va=!1;var h=f.firstBaseUpdate,T=f.lastBaseUpdate,R=f.shared.pending;if(R!==null){f.shared.pending=null;var B=R,z=B.next;B.next=null,T===null?h=z:T.next=z,T=B;var le=n.alternate;le!==null&&(le=le.updateQueue,R=le.lastBaseUpdate,R!==T&&(R===null?le.firstBaseUpdate=z:R.next=z,le.lastBaseUpdate=B))}if(h!==null){var he=f.baseState;T=0,le=z=B=null,R=h;do{var Z=R.lane&-536870913,ue=Z!==R.lane;if(ue?(ht&Z)===Z:(o&Z)===Z){Z!==0&&Z===Iu&&(Kh=!0),le!==null&&(le=le.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var Le=n,qe=R;Z=a;var Xt=u;switch(qe.tag){case 1:if(Le=qe.payload,typeof Le=="function"){he=Le.call(Xt,he,Z);break e}he=Le;break e;case 3:Le.flags=Le.flags&-65537|128;case 0:if(Le=qe.payload,Z=typeof Le=="function"?Le.call(Xt,he,Z):Le,Z==null)break e;he=A({},he,Z);break e;case 2:Va=!0}}Z=R.callback,Z!==null&&(n.flags|=64,ue&&(n.flags|=8192),ue=f.callbacks,ue===null?f.callbacks=[Z]:ue.push(Z))}else ue={lane:Z,tag:R.tag,payload:R.payload,callback:R.callback,next:null},le===null?(z=le=ue,B=he):le=le.next=ue,T|=Z;if(R=R.next,R===null){if(R=f.shared.pending,R===null)break;ue=R,R=ue.next,ue.next=null,f.lastBaseUpdate=ue,f.shared.pending=null}}while(!0);le===null&&(B=he),f.baseState=B,f.firstBaseUpdate=z,f.lastBaseUpdate=le,h===null&&(f.shared.lanes=0),Wa|=T,n.lanes=T,n.memoizedState=he}}function AS(n,a){if(typeof n!="function")throw Error(i(191,n));n.call(a)}function xS(n,a){var u=n.callbacks;if(u!==null)for(n.callbacks=null,n=0;n<u.length;n++)AS(u[n],a)}function Uo(n,a){try{var u=a.updateQueue,o=u!==null?u.lastEffect:null;if(o!==null){var f=o.next;u=f;do{if((u.tag&n)===n){o=void 0;var h=u.create,T=u.inst;o=h(),T.destroy=o}u=u.next}while(u!==f)}}catch(R){Nt(a,a.return,R)}}function Ga(n,a,u){try{var o=a.updateQueue,f=o!==null?o.lastEffect:null;if(f!==null){var h=f.next;o=h;do{if((o.tag&n)===n){var T=o.inst,R=T.destroy;if(R!==void 0){T.destroy=void 0,f=a;var B=u;try{R()}catch(z){Nt(f,B,z)}}}o=o.next}while(o!==h)}}catch(z){Nt(a,a.return,z)}}function _S(n){var a=n.updateQueue;if(a!==null){var u=n.stateNode;try{xS(a,u)}catch(o){Nt(n,n.return,o)}}}function vS(n,a,u){u.props=Li(n.type,n.memoizedProps),u.state=n.memoizedState;try{u.componentWillUnmount()}catch(o){Nt(n,a,o)}}function Mi(n,a){try{var u=n.ref;if(u!==null){var o=n.stateNode;switch(n.tag){case 26:case 27:case 5:var f=o;break;default:f=o}typeof u=="function"?n.refCleanup=u(f):u.current=f}}catch(h){Nt(n,a,h)}}function tr(n,a){var u=n.ref,o=n.refCleanup;if(u!==null)if(typeof o=="function")try{o()}catch(f){Nt(n,a,f)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(f){Nt(n,a,f)}else u.current=null}function RS(n){var a=n.type,u=n.memoizedProps,o=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":u.autoFocus&&o.focus();break e;case"img":u.src?o.src=u.src:u.srcSet&&(o.srcset=u.srcSet)}}catch(f){Nt(n,n.return,f)}}function OS(n,a,u){try{var o=n.stateNode;dM(o,n.type,u,a),o[jn]=a}catch(f){Nt(n,n.return,f)}}function NS(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27||n.tag===4}function Wh(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||NS(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==27&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Zh(n,a,u){var o=n.tag;if(o===5||o===6)n=n.stateNode,a?u.nodeType===8?u.parentNode.insertBefore(n,a):u.insertBefore(n,a):(u.nodeType===8?(a=u.parentNode,a.insertBefore(n,u)):(a=u,a.appendChild(n)),u=u._reactRootContainer,u!=null||a.onclick!==null||(a.onclick=lf));else if(o!==4&&o!==27&&(n=n.child,n!==null))for(Zh(n,a,u),n=n.sibling;n!==null;)Zh(n,a,u),n=n.sibling}function Gc(n,a,u){var o=n.tag;if(o===5||o===6)n=n.stateNode,a?u.insertBefore(n,a):u.appendChild(n);else if(o!==4&&o!==27&&(n=n.child,n!==null))for(Gc(n,a,u),n=n.sibling;n!==null;)Gc(n,a,u),n=n.sibling}var ga=!1,qt=!1,Jh=!1,kS=typeof WeakSet=="function"?WeakSet:Set,mn=null,DS=!1;function Yw(n,a){if(n=n.containerInfo,Rp=pf,n=Xy(n),th(n)){if("selectionStart"in n)var u={start:n.selectionStart,end:n.selectionEnd};else e:{u=(u=n.ownerDocument)&&u.defaultView||window;var o=u.getSelection&&u.getSelection();if(o&&o.rangeCount!==0){u=o.anchorNode;var f=o.anchorOffset,h=o.focusNode;o=o.focusOffset;try{u.nodeType,h.nodeType}catch{u=null;break e}var T=0,R=-1,B=-1,z=0,le=0,he=n,Z=null;t:for(;;){for(var ue;he!==u||f!==0&&he.nodeType!==3||(R=T+f),he!==h||o!==0&&he.nodeType!==3||(B=T+o),he.nodeType===3&&(T+=he.nodeValue.length),(ue=he.firstChild)!==null;)Z=he,he=ue;for(;;){if(he===n)break t;if(Z===u&&++z===f&&(R=T),Z===h&&++le===o&&(B=T),(ue=he.nextSibling)!==null)break;he=Z,Z=he.parentNode}he=ue}u=R===-1||B===-1?null:{start:R,end:B}}else u=null}u=u||{start:0,end:0}}else u=null;for(Op={focusedElem:n,selectionRange:u},pf=!1,mn=a;mn!==null;)if(a=mn,n=a.child,(a.subtreeFlags&1028)!==0&&n!==null)n.return=a,mn=n;else for(;mn!==null;){switch(a=mn,h=a.alternate,n=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&h!==null){n=void 0,u=a,f=h.memoizedProps,h=h.memoizedState,o=u.stateNode;try{var Le=Li(u.type,f,u.elementType===u.type);n=o.getSnapshotBeforeUpdate(Le,h),o.__reactInternalSnapshotBeforeUpdate=n}catch(qe){Nt(u,u.return,qe)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,u=n.nodeType,u===9)Lp(n);else if(u===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Lp(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(i(163))}if(n=a.sibling,n!==null){n.return=a.return,mn=n;break}mn=a.return}return Le=DS,DS=!1,Le}function LS(n,a,u){var o=u.flags;switch(u.tag){case 0:case 11:case 15:Ea(n,u),o&4&&Uo(5,u);break;case 1:if(Ea(n,u),o&4)if(n=u.stateNode,a===null)try{n.componentDidMount()}catch(R){Nt(u,u.return,R)}else{var f=Li(u.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(f,a,n.__reactInternalSnapshotBeforeUpdate)}catch(R){Nt(u,u.return,R)}}o&64&&_S(u),o&512&&Mi(u,u.return);break;case 3:if(Ea(n,u),o&64&&(o=u.updateQueue,o!==null)){if(n=null,u.child!==null)switch(u.child.tag){case 27:case 5:n=u.child.stateNode;break;case 1:n=u.child.stateNode}try{xS(o,n)}catch(R){Nt(u,u.return,R)}}break;case 26:Ea(n,u),o&512&&Mi(u,u.return);break;case 27:case 5:Ea(n,u),a===null&&o&4&&RS(u),o&512&&Mi(u,u.return);break;case 12:Ea(n,u);break;case 13:Ea(n,u),o&4&&MS(n,u);break;case 22:if(f=u.memoizedState!==null||ga,!f){a=a!==null&&a.memoizedState!==null||qt;var h=ga,T=qt;ga=f,(qt=a)&&!T?Xa(n,u,(u.subtreeFlags&8772)!==0):Ea(n,u),ga=h,qt=T}o&512&&(u.memoizedProps.mode==="manual"?Mi(u,u.return):tr(u,u.return));break;default:Ea(n,u)}}function IS(n){var a=n.alternate;a!==null&&(n.alternate=null,IS(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&H0(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var on=null,nr=!1;function ba(n,a,u){for(u=u.child;u!==null;)wS(n,a,u),u=u.sibling}function wS(n,a,u){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(an,u)}catch{}switch(u.tag){case 26:qt||tr(u,a),ba(n,a,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:qt||tr(u,a);var o=on,f=nr;for(on=u.stateNode,ba(n,a,u),u=u.stateNode,a=u.attributes;a.length;)u.removeAttributeNode(a[0]);H0(u),on=o,nr=f;break;case 5:qt||tr(u,a);case 6:f=on;var h=nr;if(on=null,ba(n,a,u),on=f,nr=h,on!==null)if(nr)try{n=on,o=u.stateNode,n.nodeType===8?n.parentNode.removeChild(o):n.removeChild(o)}catch(T){Nt(u,a,T)}else try{on.removeChild(u.stateNode)}catch(T){Nt(u,a,T)}break;case 18:on!==null&&(nr?(a=on,u=u.stateNode,a.nodeType===8?Dp(a.parentNode,u):a.nodeType===1&&Dp(a,u),ns(a)):Dp(on,u.stateNode));break;case 4:o=on,f=nr,on=u.stateNode.containerInfo,nr=!0,ba(n,a,u),on=o,nr=f;break;case 0:case 11:case 14:case 15:qt||Ga(2,u,a),qt||Ga(4,u,a),ba(n,a,u);break;case 1:qt||(tr(u,a),o=u.stateNode,typeof o.componentWillUnmount=="function"&&vS(u,a,o)),ba(n,a,u);break;case 21:ba(n,a,u);break;case 22:qt||tr(u,a),qt=(o=qt)||u.memoizedState!==null,ba(n,a,u),qt=o;break;default:ba(n,a,u)}}function MS(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{ns(n)}catch(u){Nt(a,a.return,u)}}function jw(n){switch(n.tag){case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new kS),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new kS),a;default:throw Error(i(435,n.tag))}}function ep(n,a){var u=jw(n);a.forEach(function(o){var f=nM.bind(null,n,o);u.has(o)||(u.add(o),o.then(f,f))})}function _r(n,a){var u=a.deletions;if(u!==null)for(var o=0;o<u.length;o++){var f=u[o],h=n,T=a,R=T;e:for(;R!==null;){switch(R.tag){case 27:case 5:on=R.stateNode,nr=!1;break e;case 3:on=R.stateNode.containerInfo,nr=!0;break e;case 4:on=R.stateNode.containerInfo,nr=!0;break e}R=R.return}if(on===null)throw Error(i(160));wS(h,T,f),on=null,nr=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)BS(a,n),a=a.sibling}var Ir=null;function BS(n,a){var u=n.alternate,o=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:_r(a,n),vr(n),o&4&&(Ga(3,n,n.return),Uo(3,n),Ga(5,n,n.return));break;case 1:_r(a,n),vr(n),o&512&&(qt||u===null||tr(u,u.return)),o&64&&ga&&(n=n.updateQueue,n!==null&&(o=n.callbacks,o!==null&&(u=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=u===null?o:u.concat(o))));break;case 26:var f=Ir;if(_r(a,n),vr(n),o&512&&(qt||u===null||tr(u,u.return)),o&4){var h=u!==null?u.memoizedState:null;if(o=n.memoizedState,u===null)if(o===null)if(n.stateNode===null){e:{o=n.type,u=n.memoizedProps,f=f.ownerDocument||f;t:switch(o){case"title":h=f.getElementsByTagName("title")[0],(!h||h[so]||h[Rn]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=f.createElement(o),f.head.insertBefore(h,f.querySelector("head > title"))),Tn(h,o,u),h[Rn]=n,hn(h),o=h;break e;case"link":var T=R3("link","href",f).get(o+(u.href||""));if(T){for(var R=0;R<T.length;R++)if(h=T[R],h.getAttribute("href")===(u.href==null?null:u.href)&&h.getAttribute("rel")===(u.rel==null?null:u.rel)&&h.getAttribute("title")===(u.title==null?null:u.title)&&h.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){T.splice(R,1);break t}}h=f.createElement(o),Tn(h,o,u),f.head.appendChild(h);break;case"meta":if(T=R3("meta","content",f).get(o+(u.content||""))){for(R=0;R<T.length;R++)if(h=T[R],h.getAttribute("content")===(u.content==null?null:""+u.content)&&h.getAttribute("name")===(u.name==null?null:u.name)&&h.getAttribute("property")===(u.property==null?null:u.property)&&h.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&h.getAttribute("charset")===(u.charSet==null?null:u.charSet)){T.splice(R,1);break t}}h=f.createElement(o),Tn(h,o,u),f.head.appendChild(h);break;default:throw Error(i(468,o))}h[Rn]=n,hn(h),o=h}n.stateNode=o}else O3(f,n.type,n.stateNode);else n.stateNode=v3(f,o,n.memoizedProps);else h!==o?(h===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):h.count--,o===null?O3(f,n.type,n.stateNode):v3(f,o,n.memoizedProps)):o===null&&n.stateNode!==null&&OS(n,n.memoizedProps,u.memoizedProps)}break;case 27:if(o&4&&n.alternate===null){f=n.stateNode,h=n.memoizedProps;try{for(var B=f.firstChild;B;){var z=B.nextSibling,le=B.nodeName;B[so]||le==="HEAD"||le==="BODY"||le==="SCRIPT"||le==="STYLE"||le==="LINK"&&B.rel.toLowerCase()==="stylesheet"||f.removeChild(B),B=z}for(var he=n.type,Z=f.attributes;Z.length;)f.removeAttributeNode(Z[0]);Tn(f,he,h),f[Rn]=n,f[jn]=h}catch(Le){Nt(n,n.return,Le)}}case 5:if(_r(a,n),vr(n),o&512&&(qt||u===null||tr(u,u.return)),n.flags&32){f=n.stateNode;try{Su(f,"")}catch(Le){Nt(n,n.return,Le)}}o&4&&n.stateNode!=null&&(f=n.memoizedProps,OS(n,f,u!==null?u.memoizedProps:f)),o&1024&&(Jh=!0);break;case 6:if(_r(a,n),vr(n),o&4){if(n.stateNode===null)throw Error(i(162));o=n.memoizedProps,u=n.stateNode;try{u.nodeValue=o}catch(Le){Nt(n,n.return,Le)}}break;case 3:if(ff=null,f=Ir,Ir=sf(a.containerInfo),_r(a,n),Ir=f,vr(n),o&4&&u!==null&&u.memoizedState.isDehydrated)try{ns(a.containerInfo)}catch(Le){Nt(n,n.return,Le)}Jh&&(Jh=!1,PS(n));break;case 4:o=Ir,Ir=sf(n.stateNode.containerInfo),_r(a,n),vr(n),Ir=o;break;case 12:_r(a,n),vr(n);break;case 13:_r(a,n),vr(n),n.child.flags&8192&&n.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(sp=Xe()),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,ep(n,o)));break;case 22:if(o&512&&(qt||u===null||tr(u,u.return)),B=n.memoizedState!==null,z=u!==null&&u.memoizedState!==null,le=ga,he=qt,ga=le||B,qt=he||z,_r(a,n),qt=he,ga=le,vr(n),a=n.stateNode,a._current=n,a._visibility&=-3,a._visibility|=a._pendingVisibility&2,o&8192&&(a._visibility=B?a._visibility&-2:a._visibility|1,B&&(a=ga||qt,u===null||z||a||Uu(n)),n.memoizedProps===null||n.memoizedProps.mode!=="manual"))e:for(u=null,a=n;;){if(a.tag===5||a.tag===26||a.tag===27){if(u===null){z=u=a;try{if(f=z.stateNode,B)h=f.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{T=z.stateNode,R=z.memoizedProps.style;var ue=R!=null&&R.hasOwnProperty("display")?R.display:null;T.style.display=ue==null||typeof ue=="boolean"?"":(""+ue).trim()}}catch(Le){Nt(z,z.return,Le)}}}else if(a.tag===6){if(u===null){z=a;try{z.stateNode.nodeValue=B?"":z.memoizedProps}catch(Le){Nt(z,z.return,Le)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break e;for(;a.sibling===null;){if(a.return===null||a.return===n)break e;u===a&&(u=null),a=a.return}u===a&&(u=null),a.sibling.return=a.return,a=a.sibling}o&4&&(o=n.updateQueue,o!==null&&(u=o.retryQueue,u!==null&&(o.retryQueue=null,ep(n,u))));break;case 19:_r(a,n),vr(n),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,ep(n,o)));break;case 21:break;default:_r(a,n),vr(n)}}function vr(n){var a=n.flags;if(a&2){try{if(n.tag!==27){e:{for(var u=n.return;u!==null;){if(NS(u)){var o=u;break e}u=u.return}throw Error(i(160))}switch(o.tag){case 27:var f=o.stateNode,h=Wh(n);Gc(n,h,f);break;case 5:var T=o.stateNode;o.flags&32&&(Su(T,""),o.flags&=-33);var R=Wh(n);Gc(n,R,T);break;case 3:case 4:var B=o.stateNode.containerInfo,z=Wh(n);Zh(n,z,B);break;default:throw Error(i(161))}}}catch(le){Nt(n,n.return,le)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function PS(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;PS(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function Ea(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)LS(n,a.alternate,a),a=a.sibling}function Uu(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:Ga(4,a,a.return),Uu(a);break;case 1:tr(a,a.return);var u=a.stateNode;typeof u.componentWillUnmount=="function"&&vS(a,a.return,u),Uu(a);break;case 26:case 27:case 5:tr(a,a.return),Uu(a);break;case 22:tr(a,a.return),a.memoizedState===null&&Uu(a);break;default:Uu(a)}n=n.sibling}}function Xa(n,a,u){for(u=u&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var o=a.alternate,f=n,h=a,T=h.flags;switch(h.tag){case 0:case 11:case 15:Xa(f,h,u),Uo(4,h);break;case 1:if(Xa(f,h,u),o=h,f=o.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(z){Nt(o,o.return,z)}if(o=h,f=o.updateQueue,f!==null){var R=o.stateNode;try{var B=f.shared.hiddenCallbacks;if(B!==null)for(f.shared.hiddenCallbacks=null,f=0;f<B.length;f++)AS(B[f],R)}catch(z){Nt(o,o.return,z)}}u&&T&64&&_S(h),Mi(h,h.return);break;case 26:case 27:case 5:Xa(f,h,u),u&&o===null&&T&4&&RS(h),Mi(h,h.return);break;case 12:Xa(f,h,u);break;case 13:Xa(f,h,u),u&&T&4&&MS(f,h);break;case 22:h.memoizedState===null&&Xa(f,h,u),Mi(h,h.return);break;default:Xa(f,h,u)}a=a.sibling}}function tp(n,a){var u=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==u&&(n!=null&&n.refCount++,u!=null&&Oo(u))}function np(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Oo(n))}function Qa(n,a,u,o){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)US(n,a,u,o),a=a.sibling}function US(n,a,u,o){var f=a.flags;switch(a.tag){case 0:case 11:case 15:Qa(n,a,u,o),f&2048&&Uo(9,a);break;case 3:Qa(n,a,u,o),f&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Oo(n)));break;case 12:if(f&2048){Qa(n,a,u,o),n=a.stateNode;try{var h=a.memoizedProps,T=h.id,R=h.onPostCommit;typeof R=="function"&&R(T,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(B){Nt(a,a.return,B)}}else Qa(n,a,u,o);break;case 23:break;case 22:h=a.stateNode,a.memoizedState!==null?h._visibility&4?Qa(n,a,u,o):Ho(n,a):h._visibility&4?Qa(n,a,u,o):(h._visibility|=4,Hu(n,a,u,o,(a.subtreeFlags&10256)!==0)),f&2048&&tp(a.alternate,a);break;case 24:Qa(n,a,u,o),f&2048&&np(a.alternate,a);break;default:Qa(n,a,u,o)}}function Hu(n,a,u,o,f){for(f=f&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var h=n,T=a,R=u,B=o,z=T.flags;switch(T.tag){case 0:case 11:case 15:Hu(h,T,R,B,f),Uo(8,T);break;case 23:break;case 22:var le=T.stateNode;T.memoizedState!==null?le._visibility&4?Hu(h,T,R,B,f):Ho(h,T):(le._visibility|=4,Hu(h,T,R,B,f)),f&&z&2048&&tp(T.alternate,T);break;case 24:Hu(h,T,R,B,f),f&&z&2048&&np(T.alternate,T);break;default:Hu(h,T,R,B,f)}a=a.sibling}}function Ho(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var u=n,o=a,f=o.flags;switch(o.tag){case 22:Ho(u,o),f&2048&&tp(o.alternate,o);break;case 24:Ho(u,o),f&2048&&np(o.alternate,o);break;default:Ho(u,o)}a=a.sibling}}var Fo=8192;function Fu(n){if(n.subtreeFlags&Fo)for(n=n.child;n!==null;)HS(n),n=n.sibling}function HS(n){switch(n.tag){case 26:Fu(n),n.flags&Fo&&n.memoizedState!==null&&DM(Ir,n.memoizedState,n.memoizedProps);break;case 5:Fu(n);break;case 3:case 4:var a=Ir;Ir=sf(n.stateNode.containerInfo),Fu(n),Ir=a;break;case 22:n.memoizedState===null&&(a=n.alternate,a!==null&&a.memoizedState!==null?(a=Fo,Fo=16777216,Fu(n),Fo=a):Fu(n));break;default:Fu(n)}}function FS(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function zo(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var o=a[u];mn=o,YS(o,n)}FS(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)zS(n),n=n.sibling}function zS(n){switch(n.tag){case 0:case 11:case 15:zo(n),n.flags&2048&&Ga(9,n,n.return);break;case 3:zo(n);break;case 12:zo(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&4&&(n.return===null||n.return.tag!==13)?(a._visibility&=-5,Xc(n)):zo(n);break;default:zo(n)}}function Xc(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var o=a[u];mn=o,YS(o,n)}FS(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:Ga(8,a,a.return),Xc(a);break;case 22:u=a.stateNode,u._visibility&4&&(u._visibility&=-5,Xc(a));break;default:Xc(a)}n=n.sibling}}function YS(n,a){for(;mn!==null;){var u=mn;switch(u.tag){case 0:case 11:case 15:Ga(8,u,a);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var o=u.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Oo(u.memoizedState.cache)}if(o=u.child,o!==null)o.return=u,mn=o;else e:for(u=n;mn!==null;){o=mn;var f=o.sibling,h=o.return;if(IS(o),o===u){mn=null;break e}if(f!==null){f.return=h,mn=f;break e}mn=h}}}function Vw(n,a,u,o){this.tag=n,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,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 Rr(n,a,u,o){return new Vw(n,a,u,o)}function rp(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Ka(n,a){var u=n.alternate;return u===null?(u=Rr(n.tag,a,n.key,n.mode),u.elementType=n.elementType,u.type=n.type,u.stateNode=n.stateNode,u.alternate=n,n.alternate=u):(u.pendingProps=a,u.type=n.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=n.flags&31457280,u.childLanes=n.childLanes,u.lanes=n.lanes,u.child=n.child,u.memoizedProps=n.memoizedProps,u.memoizedState=n.memoizedState,u.updateQueue=n.updateQueue,a=n.dependencies,u.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},u.sibling=n.sibling,u.index=n.index,u.ref=n.ref,u.refCleanup=n.refCleanup,u}function jS(n,a){n.flags&=31457282;var u=n.alternate;return u===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=u.childLanes,n.lanes=u.lanes,n.child=u.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=u.memoizedProps,n.memoizedState=u.memoizedState,n.updateQueue=u.updateQueue,n.type=u.type,a=u.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function Qc(n,a,u,o,f,h){var T=0;if(o=n,typeof n=="function")rp(n)&&(T=1);else if(typeof n=="string")T=NM(n,u,Ge.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case p:return Bi(u.children,f,h,a);case m:T=8,f|=24;break;case b:return n=Rr(12,u,a,f|2),n.elementType=b,n.lanes=h,n;case _:return n=Rr(13,u,a,f),n.elementType=_,n.lanes=h,n;case I:return n=Rr(19,u,a,f),n.elementType=I,n.lanes=h,n;case k:return VS(u,f,h,a);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case E:case y:T=10;break e;case S:T=9;break e;case O:T=11;break e;case v:T=14;break e;case H:T=16,o=null;break e}T=29,u=Error(i(130,n===null?"null":typeof n,"")),o=null}return a=Rr(T,u,a,f),a.elementType=n,a.type=o,a.lanes=h,a}function Bi(n,a,u,o){return n=Rr(7,n,o,a),n.lanes=u,n}function VS(n,a,u,o){n=Rr(22,n,o,a),n.elementType=k,n.lanes=u;var f={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var h=f._current;if(h===null)throw Error(i(456));if((f._pendingVisibility&2)===0){var T=Ua(h,2);T!==null&&(f._pendingVisibility|=2,Dn(T,h,2))}},attach:function(){var h=f._current;if(h===null)throw Error(i(456));if((f._pendingVisibility&2)!==0){var T=Ua(h,2);T!==null&&(f._pendingVisibility&=-3,Dn(T,h,2))}}};return n.stateNode=f,n}function ap(n,a,u){return n=Rr(6,n,null,a),n.lanes=u,n}function ip(n,a,u){return a=Rr(4,n.children!==null?n.children:[],n.key,a),a.lanes=u,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}function ya(n){n.flags|=4}function $S(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!N3(a)){if(a=xr.current,a!==null&&((ht&4194176)===ht?Wr!==null:(ht&62914560)!==ht&&(ht&536870912)===0||a!==Wr))throw _o=ch,oT;n.flags|=8192}}function Kc(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?sy():536870912,n.lanes|=a,Yu|=a)}function Yo(n,a){if(!gt)switch(n.tailMode){case"hidden":a=n.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?n.tail=null:u.sibling=null;break;case"collapsed":u=n.tail;for(var o=null;u!==null;)u.alternate!==null&&(o=u),u=u.sibling;o===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:o.sibling=null}}function zt(n){var a=n.alternate!==null&&n.alternate.child===n.child,u=0,o=0;if(a)for(var f=n.child;f!==null;)u|=f.lanes|f.childLanes,o|=f.subtreeFlags&31457280,o|=f.flags&31457280,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)u|=f.lanes|f.childLanes,o|=f.subtreeFlags,o|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=o,n.childLanes=u,a}function $w(n,a,u){var o=a.pendingProps;switch(oh(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zt(a),null;case 1:return zt(a),null;case 3:return u=a.stateNode,o=null,n!==null&&(o=n.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),ma(cn),it(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(n===null||n.child===null)&&(So(a)?ya(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Lr!==null&&(hp(Lr),Lr=null))),zt(a),null;case 26:return u=a.memoizedState,n===null?(ya(a),u!==null?(zt(a),$S(a,u)):(zt(a),a.flags&=-16777217)):u?u!==n.memoizedState?(ya(a),zt(a),$S(a,u)):(zt(a),a.flags&=-16777217):(n.memoizedProps!==o&&ya(a),zt(a),a.flags&=-16777217),null;case 27:Ue(a),u=Re.current;var f=a.type;if(n!==null&&a.stateNode!=null)n.memoizedProps!==o&&ya(a);else{if(!o){if(a.stateNode===null)throw Error(i(166));return zt(a),null}n=Ge.current,So(a)?uT(a):(n=S3(f,o,u),a.stateNode=n,ya(a))}return zt(a),null;case 5:if(Ue(a),u=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==o&&ya(a);else{if(!o){if(a.stateNode===null)throw Error(i(166));return zt(a),null}if(n=Ge.current,So(a))uT(a);else{switch(f=of(Re.current),n){case 1:n=f.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:n=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":n=f.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":n=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":n=f.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof o.is=="string"?f.createElement("select",{is:o.is}):f.createElement("select"),o.multiple?n.multiple=!0:o.size&&(n.size=o.size);break;default:n=typeof o.is=="string"?f.createElement(u,{is:o.is}):f.createElement(u)}}n[Rn]=a,n[jn]=o;e:for(f=a.child;f!==null;){if(f.tag===5||f.tag===6)n.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===a)break e;for(;f.sibling===null;){if(f.return===null||f.return===a)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}a.stateNode=n;e:switch(Tn(n,u,o),u){case"button":case"input":case"select":case"textarea":n=!!o.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&ya(a)}}return zt(a),a.flags&=-16777217,null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==o&&ya(a);else{if(typeof o!="string"&&a.stateNode===null)throw Error(i(166));if(n=Re.current,So(a)){if(n=a.stateNode,u=a.memoizedProps,o=null,f=kn,f!==null)switch(f.tag){case 27:case 5:o=f.memoizedProps}n[Rn]=a,n=!!(n.nodeValue===u||o!==null&&o.suppressHydrationWarning===!0||m3(n.nodeValue,u)),n||vi(a)}else n=of(n).createTextNode(o),n[Rn]=a,a.stateNode=n}return zt(a),null;case 13:if(o=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(f=So(a),o!==null&&o.dehydrated!==null){if(n===null){if(!f)throw Error(i(318));if(f=a.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(i(317));f[Rn]=a}else Co(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;zt(a),f=!1}else Lr!==null&&(hp(Lr),Lr=null),f=!0;if(!f)return a.flags&256?(fa(a),a):(fa(a),null)}if(fa(a),(a.flags&128)!==0)return a.lanes=u,a;if(u=o!==null,n=n!==null&&n.memoizedState!==null,u){o=a.child,f=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(f=o.alternate.memoizedState.cachePool.pool);var h=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==f&&(o.flags|=2048)}return u!==n&&u&&(a.child.flags|=8192),Kc(a,a.updateQueue),zt(a),null;case 4:return it(),n===null&&xp(a.stateNode.containerInfo),zt(a),null;case 10:return ma(a.type),zt(a),null;case 19:if($e(sn),f=a.memoizedState,f===null)return zt(a),null;if(o=(a.flags&128)!==0,h=f.rendering,h===null)if(o)Yo(f,!1);else{if(Gt!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(h=Ic(n),h!==null){for(a.flags|=128,Yo(f,!1),n=h.updateQueue,a.updateQueue=n,Kc(a,n),a.subtreeFlags=0,n=u,u=a.child;u!==null;)jS(u,n),u=u.sibling;return xe(sn,sn.current&1|2),a.child}n=n.sibling}f.tail!==null&&Xe()>Wc&&(a.flags|=128,o=!0,Yo(f,!1),a.lanes=4194304)}else{if(!o)if(n=Ic(h),n!==null){if(a.flags|=128,o=!0,n=n.updateQueue,a.updateQueue=n,Kc(a,n),Yo(f,!0),f.tail===null&&f.tailMode==="hidden"&&!h.alternate&&!gt)return zt(a),null}else 2*Xe()-f.renderingStartTime>Wc&&u!==536870912&&(a.flags|=128,o=!0,Yo(f,!1),a.lanes=4194304);f.isBackwards?(h.sibling=a.child,a.child=h):(n=f.last,n!==null?n.sibling=h:a.child=h,f.last=h)}return f.tail!==null?(a=f.tail,f.rendering=a,f.tail=a.sibling,f.renderingStartTime=Xe(),a.sibling=null,n=sn.current,xe(sn,o?n&1|2:n&1),a):(zt(a),null);case 22:case 23:return fa(a),dh(),o=a.memoizedState!==null,n!==null?n.memoizedState!==null!==o&&(a.flags|=8192):o&&(a.flags|=8192),o?(u&536870912)!==0&&(a.flags&128)===0&&(zt(a),a.subtreeFlags&6&&(a.flags|=8192)):zt(a),u=a.updateQueue,u!==null&&Kc(a,u.retryQueue),u=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==u&&(a.flags|=2048),n!==null&&$e(Oi),null;case 24:return u=null,n!==null&&(u=n.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),ma(cn),zt(a),null;case 25:return null}throw Error(i(156,a.tag))}function qw(n,a){switch(oh(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return ma(cn),it(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return Ue(a),null;case 13:if(fa(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(i(340));Co()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return $e(sn),null;case 4:return it(),null;case 10:return ma(a.type),null;case 22:case 23:return fa(a),dh(),n!==null&&$e(Oi),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return ma(cn),null;case 25:return null;default:return null}}function qS(n,a){switch(oh(a),a.tag){case 3:ma(cn),it();break;case 26:case 27:case 5:Ue(a);break;case 4:it();break;case 13:fa(a);break;case 19:$e(sn);break;case 10:ma(a.type);break;case 22:case 23:fa(a),dh(),n!==null&&$e(Oi);break;case 24:ma(cn)}}var Gw={getCacheForType:function(n){var a=On(cn),u=a.data.get(n);return u===void 0&&(u=n(),a.data.set(n,u)),u}},Xw=typeof WeakMap=="function"?WeakMap:Map,Yt=0,wt=null,lt=null,ht=0,Mt=0,rr=null,Ta=!1,zu=!1,up=!1,Sa=0,Gt=0,Wa=0,Pi=0,lp=0,Or=0,Yu=0,jo=null,Jr=null,op=!1,sp=0,Wc=1/0,Zc=null,Za=null,Jc=!1,Ui=null,Vo=0,cp=0,fp=null,$o=0,dp=null;function ar(){if((Yt&2)!==0&&ht!==0)return ht&-ht;if(V.T!==null){var n=Iu;return n!==0?n:Tp()}return hy()}function GS(){Or===0&&(Or=(ht&536870912)===0||gt?oy():536870912);var n=xr.current;return n!==null&&(n.flags|=32),Or}function Dn(n,a,u){(n===wt&&Mt===2||n.cancelPendingCommit!==null)&&(ju(n,0),Ca(n,ht,Or,!1)),oo(n,u),((Yt&2)===0||n!==wt)&&(n===wt&&((Yt&2)===0&&(Pi|=u),Gt===4&&Ca(n,ht,Or,!1)),ea(n))}function XS(n,a,u){if((Yt&6)!==0)throw Error(i(327));var o=!u&&(a&60)===0&&(a&n.expiredLanes)===0||lo(n,a),f=o?Ww(n,a):gp(n,a,!0),h=o;do{if(f===0){zu&&!o&&Ca(n,a,0,!1);break}else if(f===6)Ca(n,a,0,!Ta);else{if(u=n.current.alternate,h&&!Qw(u)){f=gp(n,a,!1),h=!1;continue}if(f===2){if(h=a,n.errorRecoveryDisabledLanes&h)var T=0;else T=n.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){a=T;e:{var R=n;f=jo;var B=R.current.memoizedState.isDehydrated;if(B&&(ju(R,T).flags|=256),T=gp(R,T,!1),T!==2){if(up&&!B){R.errorRecoveryDisabledLanes|=h,Pi|=h,f=4;break e}h=Jr,Jr=f,h!==null&&hp(h)}f=T}if(h=!1,f!==2)continue}}if(f===1){ju(n,0),Ca(n,a,0,!0);break}e:{switch(o=n,f){case 0:case 1:throw Error(i(345));case 4:if((a&4194176)===a){Ca(o,a,Or,!Ta);break e}break;case 2:Jr=null;break;case 3:case 5:break;default:throw Error(i(329))}if(o.finishedWork=u,o.finishedLanes=a,(a&62914560)===a&&(h=sp+300-Xe(),10<h)){if(Ca(o,a,Or,!Ta),Ma(o,0)!==0)break e;o.timeoutHandle=E3(QS.bind(null,o,u,Jr,Zc,op,a,Or,Pi,Yu,Ta,2,-0,0),h);break e}QS(o,u,Jr,Zc,op,a,Or,Pi,Yu,Ta,0,-0,0)}}break}while(!0);ea(n)}function hp(n){Jr===null?Jr=n:Jr.push.apply(Jr,n)}function QS(n,a,u,o,f,h,T,R,B,z,le,he,Z){var ue=a.subtreeFlags;if((ue&8192||(ue&16785408)===16785408)&&(Wo={stylesheets:null,count:0,unsuspend:kM},HS(a),a=LM(),a!==null)){n.cancelPendingCommit=a(n3.bind(null,n,u,o,f,T,R,B,1,he,Z)),Ca(n,h,T,!z);return}n3(n,u,o,f,T,R,B,le,he,Z)}function Qw(n){for(var a=n;;){var u=a.tag;if((u===0||u===11||u===15)&&a.flags&16384&&(u=a.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var o=0;o<u.length;o++){var f=u[o],h=f.getSnapshot;f=f.value;try{if(!er(h(),f))return!1}catch{return!1}}if(u=a.child,a.subtreeFlags&16384&&u!==null)u.return=a,a=u;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ca(n,a,u,o){a&=~lp,a&=~Pi,n.suspendedLanes|=a,n.pingedLanes&=~a,o&&(n.warmLanes|=a),o=n.expirationTimes;for(var f=a;0<f;){var h=31-ze(f),T=1<<h;o[h]=-1,f&=~T}u!==0&&cy(n,u,a)}function ef(){return(Yt&6)===0?(qo(0),!1):!0}function pp(){if(lt!==null){if(Mt===0)var n=lt.return;else n=lt,pa=Ii=null,Th(n),Du=null,vo=0,n=lt;for(;n!==null;)qS(n.alternate,n),n=n.return;lt=null}}function ju(n,a){n.finishedWork=null,n.finishedLanes=0;var u=n.timeoutHandle;u!==-1&&(n.timeoutHandle=-1,pM(u)),u=n.cancelPendingCommit,u!==null&&(n.cancelPendingCommit=null,u()),pp(),wt=n,lt=u=Ka(n.current,null),ht=a,Mt=0,rr=null,Ta=!1,zu=lo(n,a),up=!1,Yu=Or=lp=Pi=Wa=Gt=0,Jr=jo=null,op=!1,(a&8)!==0&&(a|=a&32);var o=n.entangledLanes;if(o!==0)for(n=n.entanglements,o&=a;0<o;){var f=31-ze(o),h=1<<f;a|=n[f],o&=~h}return Sa=a,xc(),u}function KS(n,a){rt=null,V.H=Zr,a===xo?(a=fT(),Mt=3):a===oT?(a=fT(),Mt=4):Mt=a===sS?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,rr=a,lt===null&&(Gt=1,Vc(n,Sr(a,n.current)))}function WS(){var n=V.H;return V.H=Zr,n===null?Zr:n}function ZS(){var n=V.A;return V.A=Gw,n}function mp(){Gt=4,Ta||(ht&4194176)!==ht&&xr.current!==null||(zu=!0),(Wa&134217727)===0&&(Pi&134217727)===0||wt===null||Ca(wt,ht,Or,!1)}function gp(n,a,u){var o=Yt;Yt|=2;var f=WS(),h=ZS();(wt!==n||ht!==a)&&(Zc=null,ju(n,a)),a=!1;var T=Gt;e:do try{if(Mt!==0&&lt!==null){var R=lt,B=rr;switch(Mt){case 8:pp(),T=6;break e;case 3:case 2:case 6:xr.current===null&&(a=!0);var z=Mt;if(Mt=0,rr=null,Vu(n,R,B,z),u&&zu){T=0;break e}break;default:z=Mt,Mt=0,rr=null,Vu(n,R,B,z)}}Kw(),T=Gt;break}catch(le){KS(n,le)}while(!0);return a&&n.shellSuspendCounter++,pa=Ii=null,Yt=o,V.H=f,V.A=h,lt===null&&(wt=null,ht=0,xc()),T}function Kw(){for(;lt!==null;)JS(lt)}function Ww(n,a){var u=Yt;Yt|=2;var o=WS(),f=ZS();wt!==n||ht!==a?(Zc=null,Wc=Xe()+500,ju(n,a)):zu=lo(n,a);e:do try{if(Mt!==0&&lt!==null){a=lt;var h=rr;t:switch(Mt){case 1:Mt=0,rr=null,Vu(n,a,h,1);break;case 2:if(sT(h)){Mt=0,rr=null,e3(a);break}a=function(){Mt===2&&wt===n&&(Mt=7),ea(n)},h.then(a,a);break e;case 3:Mt=7;break e;case 4:Mt=5;break e;case 7:sT(h)?(Mt=0,rr=null,e3(a)):(Mt=0,rr=null,Vu(n,a,h,7));break;case 5:var T=null;switch(lt.tag){case 26:T=lt.memoizedState;case 5:case 27:var R=lt;if(!T||N3(T)){Mt=0,rr=null;var B=R.sibling;if(B!==null)lt=B;else{var z=R.return;z!==null?(lt=z,tf(z)):lt=null}break t}}Mt=0,rr=null,Vu(n,a,h,5);break;case 6:Mt=0,rr=null,Vu(n,a,h,6);break;case 8:pp(),Gt=6;break e;default:throw Error(i(462))}}Zw();break}catch(le){KS(n,le)}while(!0);return pa=Ii=null,V.H=o,V.A=f,Yt=u,lt!==null?0:(wt=null,ht=0,xc(),Gt)}function Zw(){for(;lt!==null&&!_n();)JS(lt)}function JS(n){var a=SS(n.alternate,n,Sa);n.memoizedProps=n.pendingProps,a===null?tf(n):lt=a}function e3(n){var a=n,u=a.alternate;switch(a.tag){case 15:case 0:a=mS(u,a,a.pendingProps,a.type,void 0,ht);break;case 11:a=mS(u,a,a.pendingProps,a.type.render,a.ref,ht);break;case 5:Th(a);default:qS(u,a),a=lt=jS(a,Sa),a=SS(u,a,Sa)}n.memoizedProps=n.pendingProps,a===null?tf(n):lt=a}function Vu(n,a,u,o){pa=Ii=null,Th(a),Du=null,vo=0;var f=a.return;try{if(Fw(n,f,a,u,ht)){Gt=1,Vc(n,Sr(u,n.current)),lt=null;return}}catch(h){if(f!==null)throw lt=f,h;Gt=1,Vc(n,Sr(u,n.current)),lt=null;return}a.flags&32768?(gt||o===1?n=!0:zu||(ht&536870912)!==0?n=!1:(Ta=n=!0,(o===2||o===3||o===6)&&(o=xr.current,o!==null&&o.tag===13&&(o.flags|=16384))),t3(a,n)):tf(a)}function tf(n){var a=n;do{if((a.flags&32768)!==0){t3(a,Ta);return}n=a.return;var u=$w(a.alternate,a,Sa);if(u!==null){lt=u;return}if(a=a.sibling,a!==null){lt=a;return}lt=a=n}while(a!==null);Gt===0&&(Gt=5)}function t3(n,a){do{var u=qw(n.alternate,n);if(u!==null){u.flags&=32767,lt=u;return}if(u=n.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!a&&(n=n.sibling,n!==null)){lt=n;return}lt=n=u}while(n!==null);Gt=6,lt=null}function n3(n,a,u,o,f,h,T,R,B,z){var le=V.T,he=ce.p;try{ce.p=2,V.T=null,Jw(n,a,u,o,he,f,h,T,R,B,z)}finally{V.T=le,ce.p=he}}function Jw(n,a,u,o,f,h,T,R){do $u();while(Ui!==null);if((Yt&6)!==0)throw Error(i(327));var B=n.finishedWork;if(o=n.finishedLanes,B===null)return null;if(n.finishedWork=null,n.finishedLanes=0,B===n.current)throw Error(i(177));n.callbackNode=null,n.callbackPriority=0,n.cancelPendingCommit=null;var z=B.lanes|B.childLanes;if(z|=ih,DI(n,o,z,h,T,R),n===wt&&(lt=wt=null,ht=0),(B.subtreeFlags&10256)===0&&(B.flags&10256)===0||Jc||(Jc=!0,cp=z,fp=u,rM(Ae,function(){return $u(),null})),u=(B.flags&15990)!==0,(B.subtreeFlags&15990)!==0||u?(u=V.T,V.T=null,h=ce.p,ce.p=2,T=Yt,Yt|=4,Yw(n,B),BS(B,n),Aw(Op,n.containerInfo),pf=!!Rp,Op=Rp=null,n.current=B,LS(n,B.alternate,B),we(),Yt=T,ce.p=h,V.T=u):n.current=B,Jc?(Jc=!1,Ui=n,Vo=o):r3(n,z),z=n.pendingLanes,z===0&&(Za=null),ke(B.stateNode),ea(n),a!==null)for(f=n.onRecoverableError,B=0;B<a.length;B++)z=a[B],f(z.value,{componentStack:z.stack});return(Vo&3)!==0&&$u(),z=n.pendingLanes,(o&4194218)!==0&&(z&42)!==0?n===dp?$o++:($o=0,dp=n):$o=0,qo(0),null}function r3(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,Oo(a)))}function $u(){if(Ui!==null){var n=Ui,a=cp;cp=0;var u=dy(Vo),o=V.T,f=ce.p;try{if(ce.p=32>u?32:u,V.T=null,Ui===null)var h=!1;else{u=fp,fp=null;var T=Ui,R=Vo;if(Ui=null,Vo=0,(Yt&6)!==0)throw Error(i(331));var B=Yt;if(Yt|=4,zS(T.current),US(T,T.current,R,u),Yt=B,qo(0,!1),Ft&&typeof Ft.onPostCommitFiberRoot=="function")try{Ft.onPostCommitFiberRoot(an,T)}catch{}h=!0}return h}finally{ce.p=f,V.T=o,r3(n,a)}}return!1}function a3(n,a,u){a=Sr(u,a),a=wh(n.stateNode,a,2),n=qa(n,a,2),n!==null&&(oo(n,2),ea(n))}function Nt(n,a,u){if(n.tag===3)a3(n,n,u);else for(;a!==null;){if(a.tag===3){a3(a,n,u);break}else if(a.tag===1){var o=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Za===null||!Za.has(o))){n=Sr(u,n),u=lS(2),o=qa(a,u,2),o!==null&&(oS(u,o,a,n),oo(o,2),ea(o));break}}a=a.return}}function bp(n,a,u){var o=n.pingCache;if(o===null){o=n.pingCache=new Xw;var f=new Set;o.set(a,f)}else f=o.get(a),f===void 0&&(f=new Set,o.set(a,f));f.has(u)||(up=!0,f.add(u),n=eM.bind(null,n,a,u),a.then(n,n))}function eM(n,a,u){var o=n.pingCache;o!==null&&o.delete(a),n.pingedLanes|=n.suspendedLanes&u,n.warmLanes&=~u,wt===n&&(ht&u)===u&&(Gt===4||Gt===3&&(ht&62914560)===ht&&300>Xe()-sp?(Yt&2)===0&&ju(n,0):lp|=u,Yu===ht&&(Yu=0)),ea(n)}function i3(n,a){a===0&&(a=sy()),n=Ua(n,a),n!==null&&(oo(n,a),ea(n))}function tM(n){var a=n.memoizedState,u=0;a!==null&&(u=a.retryLane),i3(n,u)}function nM(n,a){var u=0;switch(n.tag){case 13:var o=n.stateNode,f=n.memoizedState;f!==null&&(u=f.retryLane);break;case 19:o=n.stateNode;break;case 22:o=n.stateNode._retryCache;break;default:throw Error(i(314))}o!==null&&o.delete(a),i3(n,u)}function rM(n,a){return St(n,a)}var nf=null,qu=null,Ep=!1,rf=!1,yp=!1,Hi=0;function ea(n){n!==qu&&n.next===null&&(qu===null?nf=qu=n:qu=qu.next=n),rf=!0,Ep||(Ep=!0,iM(aM))}function qo(n,a){if(!yp&&rf){yp=!0;do for(var u=!1,o=nf;o!==null;){if(n!==0){var f=o.pendingLanes;if(f===0)var h=0;else{var T=o.suspendedLanes,R=o.pingedLanes;h=(1<<31-ze(42|n)+1)-1,h&=f&~(T&~R),h=h&201326677?h&201326677|1:h?h|2:0}h!==0&&(u=!0,o3(o,h))}else h=ht,h=Ma(o,o===wt?h:0),(h&3)===0||lo(o,h)||(u=!0,o3(o,h));o=o.next}while(u);yp=!1}}function aM(){rf=Ep=!1;var n=0;Hi!==0&&(hM()&&(n=Hi),Hi=0);for(var a=Xe(),u=null,o=nf;o!==null;){var f=o.next,h=u3(o,a);h===0?(o.next=null,u===null?nf=f:u.next=f,f===null&&(qu=u)):(u=o,(n!==0||(h&3)!==0)&&(rf=!0)),o=f}qo(n)}function u3(n,a){for(var u=n.suspendedLanes,o=n.pingedLanes,f=n.expirationTimes,h=n.pendingLanes&-62914561;0<h;){var T=31-ze(h),R=1<<T,B=f[T];B===-1?((R&u)===0||(R&o)!==0)&&(f[T]=kI(R,a)):B<=a&&(n.expiredLanes|=R),h&=~R}if(a=wt,u=ht,u=Ma(n,n===a?u:0),o=n.callbackNode,u===0||n===a&&Mt===2||n.cancelPendingCommit!==null)return o!==null&&o!==null&&rn(o),n.callbackNode=null,n.callbackPriority=0;if((u&3)===0||lo(n,u)){if(a=u&-u,a===n.callbackPriority)return a;switch(o!==null&&rn(o),dy(u)){case 2:case 8:u=de;break;case 32:u=Ae;break;case 268435456:u=nt;break;default:u=Ae}return o=l3.bind(null,n),u=St(u,o),n.callbackPriority=a,n.callbackNode=u,a}return o!==null&&o!==null&&rn(o),n.callbackPriority=2,n.callbackNode=null,2}function l3(n,a){var u=n.callbackNode;if($u()&&n.callbackNode!==u)return null;var o=ht;return o=Ma(n,n===wt?o:0),o===0?null:(XS(n,o,a),u3(n,Xe()),n.callbackNode!=null&&n.callbackNode===u?l3.bind(null,n):null)}function o3(n,a){if($u())return null;XS(n,a,!0)}function iM(n){mM(function(){(Yt&6)!==0?St(te,n):n()})}function Tp(){return Hi===0&&(Hi=oy()),Hi}function s3(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:bc(""+n)}function c3(n,a){var u=a.ownerDocument.createElement("input");return u.name=a.name,u.value=a.value,n.id&&u.setAttribute("form",n.id),a.parentNode.insertBefore(u,a),n=new FormData(n),u.parentNode.removeChild(u),n}function uM(n,a,u,o,f){if(a==="submit"&&u&&u.stateNode===f){var h=s3((f[jn]||null).action),T=o.submitter;T&&(a=(a=T[jn]||null)?s3(a.formAction):T.getAttribute("formAction"),a!==null&&(h=a,T=null));var R=new Sc("action","action",null,o,f);n.push({event:R,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Hi!==0){var B=T?c3(f,T):new FormData(f);Nh(u,{pending:!0,data:B,method:f.method,action:h},null,B)}}else typeof h=="function"&&(R.preventDefault(),B=T?c3(f,T):new FormData(f),Nh(u,{pending:!0,data:B,method:f.method,action:h},h,B))},currentTarget:f}]})}}for(var Sp=0;Sp<nT.length;Sp++){var Cp=nT[Sp],lM=Cp.toLowerCase(),oM=Cp[0].toUpperCase()+Cp.slice(1);Dr(lM,"on"+oM)}Dr(Wy,"onAnimationEnd"),Dr(Zy,"onAnimationIteration"),Dr(Jy,"onAnimationStart"),Dr("dblclick","onDoubleClick"),Dr("focusin","onFocus"),Dr("focusout","onBlur"),Dr(_w,"onTransitionRun"),Dr(vw,"onTransitionStart"),Dr(Rw,"onTransitionCancel"),Dr(eT,"onTransitionEnd"),yu("onMouseEnter",["mouseout","mouseover"]),yu("onMouseLeave",["mouseout","mouseover"]),yu("onPointerEnter",["pointerout","pointerover"]),yu("onPointerLeave",["pointerout","pointerover"]),Ti("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ti("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ti("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ti("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ti("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ti("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Go="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(" "),sM=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Go));function f3(n,a){a=(a&4)!==0;for(var u=0;u<n.length;u++){var o=n[u],f=o.event;o=o.listeners;e:{var h=void 0;if(a)for(var T=o.length-1;0<=T;T--){var R=o[T],B=R.instance,z=R.currentTarget;if(R=R.listener,B!==h&&f.isPropagationStopped())break e;h=R,f.currentTarget=z;try{h(f)}catch(le){jc(le)}f.currentTarget=null,h=B}else for(T=0;T<o.length;T++){if(R=o[T],B=R.instance,z=R.currentTarget,R=R.listener,B!==h&&f.isPropagationStopped())break e;h=R,f.currentTarget=z;try{h(f)}catch(le){jc(le)}f.currentTarget=null,h=B}}}}function ft(n,a){var u=a[U0];u===void 0&&(u=a[U0]=new Set);var o=n+"__bubble";u.has(o)||(d3(a,n,2,!1),u.add(o))}function Ap(n,a,u){var o=0;a&&(o|=4),d3(u,n,o,a)}var af="_reactListening"+Math.random().toString(36).slice(2);function xp(n){if(!n[af]){n[af]=!0,my.forEach(function(u){u!=="selectionchange"&&(sM.has(u)||Ap(u,!1,n),Ap(u,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[af]||(a[af]=!0,Ap("selectionchange",!1,a))}}function d3(n,a,u,o){switch(M3(a)){case 2:var f=MM;break;case 8:f=BM;break;default:f=Pp}u=f.bind(null,a,u,n),f=void 0,!q0||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(f=!0),o?f!==void 0?n.addEventListener(a,u,{capture:!0,passive:f}):n.addEventListener(a,u,!0):f!==void 0?n.addEventListener(a,u,{passive:f}):n.addEventListener(a,u,!1)}function _p(n,a,u,o,f){var h=o;if((a&1)===0&&(a&2)===0&&o!==null)e:for(;;){if(o===null)return;var T=o.tag;if(T===3||T===4){var R=o.stateNode.containerInfo;if(R===f||R.nodeType===8&&R.parentNode===f)break;if(T===4)for(T=o.return;T!==null;){var B=T.tag;if((B===3||B===4)&&(B=T.stateNode.containerInfo,B===f||B.nodeType===8&&B.parentNode===f))return;T=T.return}for(;R!==null;){if(T=yi(R),T===null)return;if(B=T.tag,B===5||B===6||B===26||B===27){o=h=T;continue e}R=R.parentNode}}o=o.return}Ry(function(){var z=h,le=V0(u),he=[];e:{var Z=tT.get(n);if(Z!==void 0){var ue=Sc,Le=n;switch(n){case"keypress":if(yc(u)===0)break e;case"keydown":case"keyup":ue=nw;break;case"focusin":Le="focus",ue=K0;break;case"focusout":Le="blur",ue=K0;break;case"beforeblur":case"afterblur":ue=K0;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ue=ky;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ue=VI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ue=iw;break;case Wy:case Zy:case Jy:ue=GI;break;case eT:ue=lw;break;case"scroll":case"scrollend":ue=YI;break;case"wheel":ue=sw;break;case"copy":case"cut":case"paste":ue=QI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ue=Ly;break;case"toggle":case"beforetoggle":ue=fw}var qe=(a&4)!==0,Xt=!qe&&(n==="scroll"||n==="scrollend"),$=qe?Z!==null?Z+"Capture":null:Z;qe=[];for(var F=z,X;F!==null;){var fe=F;if(X=fe.stateNode,fe=fe.tag,fe!==5&&fe!==26&&fe!==27||X===null||$===null||(fe=fo(F,$),fe!=null&&qe.push(Xo(F,fe,X))),Xt)break;F=F.return}0<qe.length&&(Z=new ue(Z,Le,null,u,le),he.push({event:Z,listeners:qe}))}}if((a&7)===0){e:{if(Z=n==="mouseover"||n==="pointerover",ue=n==="mouseout"||n==="pointerout",Z&&u!==j0&&(Le=u.relatedTarget||u.fromElement)&&(yi(Le)||Le[gu]))break e;if((ue||Z)&&(Z=le.window===le?le:(Z=le.ownerDocument)?Z.defaultView||Z.parentWindow:window,ue?(Le=u.relatedTarget||u.toElement,ue=z,Le=Le?yi(Le):null,Le!==null&&(Xt=re(Le),qe=Le.tag,Le!==Xt||qe!==5&&qe!==27&&qe!==6)&&(Le=null)):(ue=null,Le=z),ue!==Le)){if(qe=ky,fe="onMouseLeave",$="onMouseEnter",F="mouse",(n==="pointerout"||n==="pointerover")&&(qe=Ly,fe="onPointerLeave",$="onPointerEnter",F="pointer"),Xt=ue==null?Z:co(ue),X=Le==null?Z:co(Le),Z=new qe(fe,F+"leave",ue,u,le),Z.target=Xt,Z.relatedTarget=X,fe=null,yi(le)===z&&(qe=new qe($,F+"enter",Le,u,le),qe.target=X,qe.relatedTarget=Xt,fe=qe),Xt=fe,ue&&Le)t:{for(qe=ue,$=Le,F=0,X=qe;X;X=Gu(X))F++;for(X=0,fe=$;fe;fe=Gu(fe))X++;for(;0<F-X;)qe=Gu(qe),F--;for(;0<X-F;)$=Gu($),X--;for(;F--;){if(qe===$||$!==null&&qe===$.alternate)break t;qe=Gu(qe),$=Gu($)}qe=null}else qe=null;ue!==null&&h3(he,Z,ue,qe,!1),Le!==null&&Xt!==null&&h3(he,Xt,Le,qe,!0)}}e:{if(Z=z?co(z):window,ue=Z.nodeName&&Z.nodeName.toLowerCase(),ue==="select"||ue==="input"&&Z.type==="file")var Ne=Fy;else if(Uy(Z))if(zy)Ne=Sw;else{Ne=yw;var ut=Ew}else ue=Z.nodeName,!ue||ue.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?z&&Y0(z.elementType)&&(Ne=Fy):Ne=Tw;if(Ne&&(Ne=Ne(n,z))){Hy(he,Ne,u,le);break e}ut&&ut(n,Z,z),n==="focusout"&&z&&Z.type==="number"&&z.memoizedProps.value!=null&&z0(Z,"number",Z.value)}switch(ut=z?co(z):window,n){case"focusin":(Uy(ut)||ut.contentEditable==="true")&&(_u=ut,nh=z,To=null);break;case"focusout":To=nh=_u=null;break;case"mousedown":rh=!0;break;case"contextmenu":case"mouseup":case"dragend":rh=!1,Qy(he,u,le);break;case"selectionchange":if(xw)break;case"keydown":case"keyup":Qy(he,u,le)}var Pe;if(Z0)e:{switch(n){case"compositionstart":var Ye="onCompositionStart";break e;case"compositionend":Ye="onCompositionEnd";break e;case"compositionupdate":Ye="onCompositionUpdate";break e}Ye=void 0}else xu?By(n,u)&&(Ye="onCompositionEnd"):n==="keydown"&&u.keyCode===229&&(Ye="onCompositionStart");Ye&&(Iy&&u.locale!=="ko"&&(xu||Ye!=="onCompositionStart"?Ye==="onCompositionEnd"&&xu&&(Pe=Oy()):(Pa=le,G0="value"in Pa?Pa.value:Pa.textContent,xu=!0)),ut=uf(z,Ye),0<ut.length&&(Ye=new Dy(Ye,n,null,u,le),he.push({event:Ye,listeners:ut}),Pe?Ye.data=Pe:(Pe=Py(u),Pe!==null&&(Ye.data=Pe)))),(Pe=hw?pw(n,u):mw(n,u))&&(Ye=uf(z,"onBeforeInput"),0<Ye.length&&(ut=new Dy("onBeforeInput","beforeinput",null,u,le),he.push({event:ut,listeners:Ye}),ut.data=Pe)),uM(he,n,z,u,le)}f3(he,a)})}function Xo(n,a,u){return{instance:n,listener:a,currentTarget:u}}function uf(n,a){for(var u=a+"Capture",o=[];n!==null;){var f=n,h=f.stateNode;f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=fo(n,u),f!=null&&o.unshift(Xo(n,f,h)),f=fo(n,a),f!=null&&o.push(Xo(n,f,h))),n=n.return}return o}function Gu(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function h3(n,a,u,o,f){for(var h=a._reactName,T=[];u!==null&&u!==o;){var R=u,B=R.alternate,z=R.stateNode;if(R=R.tag,B!==null&&B===o)break;R!==5&&R!==26&&R!==27||z===null||(B=z,f?(z=fo(u,h),z!=null&&T.unshift(Xo(u,z,B))):f||(z=fo(u,h),z!=null&&T.push(Xo(u,z,B)))),u=u.return}T.length!==0&&n.push({event:a,listeners:T})}var cM=/\r\n?/g,fM=/\u0000|\uFFFD/g;function p3(n){return(typeof n=="string"?n:""+n).replace(cM,`
41
+ `).replace(fM,"")}function m3(n,a){return a=p3(a),p3(n)===a}function lf(){}function At(n,a,u,o,f,h){switch(u){case"children":typeof o=="string"?a==="body"||a==="textarea"&&o===""||Su(n,o):(typeof o=="number"||typeof o=="bigint")&&a!=="body"&&Su(n,""+o);break;case"className":pc(n,"class",o);break;case"tabIndex":pc(n,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":pc(n,u,o);break;case"style":_y(n,o,h);break;case"data":if(a!=="object"){pc(n,"data",o);break}case"src":case"href":if(o===""&&(a!=="a"||u!=="href")){n.removeAttribute(u);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){n.removeAttribute(u);break}o=bc(""+o),n.setAttribute(u,o);break;case"action":case"formAction":if(typeof o=="function"){n.setAttribute(u,"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 h=="function"&&(u==="formAction"?(a!=="input"&&At(n,a,"name",f.name,f,null),At(n,a,"formEncType",f.formEncType,f,null),At(n,a,"formMethod",f.formMethod,f,null),At(n,a,"formTarget",f.formTarget,f,null)):(At(n,a,"encType",f.encType,f,null),At(n,a,"method",f.method,f,null),At(n,a,"target",f.target,f,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){n.removeAttribute(u);break}o=bc(""+o),n.setAttribute(u,o);break;case"onClick":o!=null&&(n.onclick=lf);break;case"onScroll":o!=null&&ft("scroll",n);break;case"onScrollEnd":o!=null&&ft("scrollend",n);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(u=o.__html,u!=null){if(f.children!=null)throw Error(i(60));n.innerHTML=u}}break;case"multiple":n.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":n.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"){n.removeAttribute("xlink:href");break}u=bc(""+o),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);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"?n.setAttribute(u,""+o):n.removeAttribute(u);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"?n.setAttribute(u,""):n.removeAttribute(u);break;case"capture":case"download":o===!0?n.setAttribute(u,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(u,o):n.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?n.setAttribute(u,o):n.removeAttribute(u);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?n.removeAttribute(u):n.setAttribute(u,o);break;case"popover":ft("beforetoggle",n),ft("toggle",n),hc(n,"popover",o);break;case"xlinkActuate":oa(n,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":oa(n,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":oa(n,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":oa(n,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":oa(n,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":oa(n,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":oa(n,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":oa(n,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":oa(n,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":hc(n,"is",o);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=FI.get(u)||u,hc(n,u,o))}}function vp(n,a,u,o,f,h){switch(u){case"style":_y(n,o,h);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(u=o.__html,u!=null){if(f.children!=null)throw Error(i(60));n.innerHTML=u}}break;case"children":typeof o=="string"?Su(n,o):(typeof o=="number"||typeof o=="bigint")&&Su(n,""+o);break;case"onScroll":o!=null&&ft("scroll",n);break;case"onScrollEnd":o!=null&&ft("scrollend",n);break;case"onClick":o!=null&&(n.onclick=lf);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!gy.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(f=u.endsWith("Capture"),a=u.slice(2,f?u.length-7:void 0),h=n[jn]||null,h=h!=null?h[u]:null,typeof h=="function"&&n.removeEventListener(a,h,f),typeof o=="function")){typeof h!="function"&&h!==null&&(u in n?n[u]=null:n.hasAttribute(u)&&n.removeAttribute(u)),n.addEventListener(a,o,f);break e}u in n?n[u]=o:o===!0?n.setAttribute(u,""):hc(n,u,o)}}}function Tn(n,a,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ft("error",n),ft("load",n);var o=!1,f=!1,h;for(h in u)if(u.hasOwnProperty(h)){var T=u[h];if(T!=null)switch(h){case"src":o=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:At(n,a,h,T,u,null)}}f&&At(n,a,"srcSet",u.srcSet,u,null),o&&At(n,a,"src",u.src,u,null);return;case"input":ft("invalid",n);var R=h=T=f=null,B=null,z=null;for(o in u)if(u.hasOwnProperty(o)){var le=u[o];if(le!=null)switch(o){case"name":f=le;break;case"type":T=le;break;case"checked":B=le;break;case"defaultChecked":z=le;break;case"value":h=le;break;case"defaultValue":R=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(i(137,a));break;default:At(n,a,o,le,u,null)}}Sy(n,h,R,B,z,T,f,!1),mc(n);return;case"select":ft("invalid",n),o=T=h=null;for(f in u)if(u.hasOwnProperty(f)&&(R=u[f],R!=null))switch(f){case"value":h=R;break;case"defaultValue":T=R;break;case"multiple":o=R;default:At(n,a,f,R,u,null)}a=h,u=T,n.multiple=!!o,a!=null?Tu(n,!!o,a,!1):u!=null&&Tu(n,!!o,u,!0);return;case"textarea":ft("invalid",n),h=f=o=null;for(T in u)if(u.hasOwnProperty(T)&&(R=u[T],R!=null))switch(T){case"value":o=R;break;case"defaultValue":f=R;break;case"children":h=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(i(91));break;default:At(n,a,T,R,u,null)}Ay(n,o,f,h),mc(n);return;case"option":for(B in u)if(u.hasOwnProperty(B)&&(o=u[B],o!=null))switch(B){case"selected":n.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:At(n,a,B,o,u,null)}return;case"dialog":ft("cancel",n),ft("close",n);break;case"iframe":case"object":ft("load",n);break;case"video":case"audio":for(o=0;o<Go.length;o++)ft(Go[o],n);break;case"image":ft("error",n),ft("load",n);break;case"details":ft("toggle",n);break;case"embed":case"source":case"link":ft("error",n),ft("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in u)if(u.hasOwnProperty(z)&&(o=u[z],o!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:At(n,a,z,o,u,null)}return;default:if(Y0(a)){for(le in u)u.hasOwnProperty(le)&&(o=u[le],o!==void 0&&vp(n,a,le,o,u,void 0));return}}for(R in u)u.hasOwnProperty(R)&&(o=u[R],o!=null&&At(n,a,R,o,u,null))}function dM(n,a,u,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,h=null,T=null,R=null,B=null,z=null,le=null;for(ue in u){var he=u[ue];if(u.hasOwnProperty(ue)&&he!=null)switch(ue){case"checked":break;case"value":break;case"defaultValue":B=he;default:o.hasOwnProperty(ue)||At(n,a,ue,null,o,he)}}for(var Z in o){var ue=o[Z];if(he=u[Z],o.hasOwnProperty(Z)&&(ue!=null||he!=null))switch(Z){case"type":h=ue;break;case"name":f=ue;break;case"checked":z=ue;break;case"defaultChecked":le=ue;break;case"value":T=ue;break;case"defaultValue":R=ue;break;case"children":case"dangerouslySetInnerHTML":if(ue!=null)throw Error(i(137,a));break;default:ue!==he&&At(n,a,Z,ue,o,he)}}F0(n,T,R,B,z,le,h,f);return;case"select":ue=T=R=Z=null;for(h in u)if(B=u[h],u.hasOwnProperty(h)&&B!=null)switch(h){case"value":break;case"multiple":ue=B;default:o.hasOwnProperty(h)||At(n,a,h,null,o,B)}for(f in o)if(h=o[f],B=u[f],o.hasOwnProperty(f)&&(h!=null||B!=null))switch(f){case"value":Z=h;break;case"defaultValue":R=h;break;case"multiple":T=h;default:h!==B&&At(n,a,f,h,o,B)}a=R,u=T,o=ue,Z!=null?Tu(n,!!u,Z,!1):!!o!=!!u&&(a!=null?Tu(n,!!u,a,!0):Tu(n,!!u,u?[]:"",!1));return;case"textarea":ue=Z=null;for(R in u)if(f=u[R],u.hasOwnProperty(R)&&f!=null&&!o.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:At(n,a,R,null,o,f)}for(T in o)if(f=o[T],h=u[T],o.hasOwnProperty(T)&&(f!=null||h!=null))switch(T){case"value":Z=f;break;case"defaultValue":ue=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(i(91));break;default:f!==h&&At(n,a,T,f,o,h)}Cy(n,Z,ue);return;case"option":for(var Le in u)if(Z=u[Le],u.hasOwnProperty(Le)&&Z!=null&&!o.hasOwnProperty(Le))switch(Le){case"selected":n.selected=!1;break;default:At(n,a,Le,null,o,Z)}for(B in o)if(Z=o[B],ue=u[B],o.hasOwnProperty(B)&&Z!==ue&&(Z!=null||ue!=null))switch(B){case"selected":n.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:At(n,a,B,Z,o,ue)}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 qe in u)Z=u[qe],u.hasOwnProperty(qe)&&Z!=null&&!o.hasOwnProperty(qe)&&At(n,a,qe,null,o,Z);for(z in o)if(Z=o[z],ue=u[z],o.hasOwnProperty(z)&&Z!==ue&&(Z!=null||ue!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(i(137,a));break;default:At(n,a,z,Z,o,ue)}return;default:if(Y0(a)){for(var Xt in u)Z=u[Xt],u.hasOwnProperty(Xt)&&Z!==void 0&&!o.hasOwnProperty(Xt)&&vp(n,a,Xt,void 0,o,Z);for(le in o)Z=o[le],ue=u[le],!o.hasOwnProperty(le)||Z===ue||Z===void 0&&ue===void 0||vp(n,a,le,Z,o,ue);return}}for(var $ in u)Z=u[$],u.hasOwnProperty($)&&Z!=null&&!o.hasOwnProperty($)&&At(n,a,$,null,o,Z);for(he in o)Z=o[he],ue=u[he],!o.hasOwnProperty(he)||Z===ue||Z==null&&ue==null||At(n,a,he,Z,o,ue)}var Rp=null,Op=null;function of(n){return n.nodeType===9?n:n.ownerDocument}function g3(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function b3(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function Np(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var kp=null;function hM(){var n=window.event;return n&&n.type==="popstate"?n===kp?!1:(kp=n,!0):(kp=null,!1)}var E3=typeof setTimeout=="function"?setTimeout:void 0,pM=typeof clearTimeout=="function"?clearTimeout:void 0,y3=typeof Promise=="function"?Promise:void 0,mM=typeof queueMicrotask=="function"?queueMicrotask:typeof y3<"u"?function(n){return y3.resolve(null).then(n).catch(gM)}:E3;function gM(n){setTimeout(function(){throw n})}function Dp(n,a){var u=a,o=0;do{var f=u.nextSibling;if(n.removeChild(u),f&&f.nodeType===8)if(u=f.data,u==="/$"){if(o===0){n.removeChild(f),ns(a);return}o--}else u!=="$"&&u!=="$?"&&u!=="$!"||o++;u=f}while(u);ns(a)}function Lp(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var u=a;switch(a=a.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":Lp(u),H0(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}n.removeChild(u)}}function bM(n,a,u,o){for(;n.nodeType===1;){var f=u;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!o&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(o){if(!n[so])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(h=n.getAttribute("rel"),h==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(h!==f.rel||n.getAttribute("href")!==(f.href==null?null:f.href)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||n.getAttribute("title")!==(f.title==null?null:f.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(h=n.getAttribute("src"),(h!==(f.src==null?null:f.src)||n.getAttribute("type")!==(f.type==null?null:f.type)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&n.getAttribute("name")===h)return n}else return n;if(n=wr(n.nextSibling),n===null)break}return null}function EM(n,a,u){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!u||(n=wr(n.nextSibling),n===null))return null;return n}function wr(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return n}function T3(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var u=n.data;if(u==="$"||u==="$!"||u==="$?"){if(a===0)return n;a--}else u==="/$"&&a++}n=n.previousSibling}return null}function S3(n,a,u){switch(a=of(u),n){case"html":if(n=a.documentElement,!n)throw Error(i(452));return n;case"head":if(n=a.head,!n)throw Error(i(453));return n;case"body":if(n=a.body,!n)throw Error(i(454));return n;default:throw Error(i(451))}}var Nr=new Map,C3=new Set;function sf(n){return typeof n.getRootNode=="function"?n.getRootNode():n.ownerDocument}var Aa=ce.d;ce.d={f:yM,r:TM,D:SM,C:CM,L:AM,m:xM,X:vM,S:_M,M:RM};function yM(){var n=Aa.f(),a=ef();return n||a}function TM(n){var a=bu(n);a!==null&&a.tag===5&&a.type==="form"?QT(a):Aa.r(n)}var Xu=typeof document>"u"?null:document;function A3(n,a,u){var o=Xu;if(o&&typeof a=="string"&&a){var f=yr(a);f='link[rel="'+n+'"][href="'+f+'"]',typeof u=="string"&&(f+='[crossorigin="'+u+'"]'),C3.has(f)||(C3.add(f),n={rel:n,crossOrigin:u,href:a},o.querySelector(f)===null&&(a=o.createElement("link"),Tn(a,"link",n),hn(a),o.head.appendChild(a)))}}function SM(n){Aa.D(n),A3("dns-prefetch",n,null)}function CM(n,a){Aa.C(n,a),A3("preconnect",n,a)}function AM(n,a,u){Aa.L(n,a,u);var o=Xu;if(o&&n&&a){var f='link[rel="preload"][as="'+yr(a)+'"]';a==="image"&&u&&u.imageSrcSet?(f+='[imagesrcset="'+yr(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(f+='[imagesizes="'+yr(u.imageSizes)+'"]')):f+='[href="'+yr(n)+'"]';var h=f;switch(a){case"style":h=Qu(n);break;case"script":h=Ku(n)}Nr.has(h)||(n=A({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:n,as:a},u),Nr.set(h,n),o.querySelector(f)!==null||a==="style"&&o.querySelector(Qo(h))||a==="script"&&o.querySelector(Ko(h))||(a=o.createElement("link"),Tn(a,"link",n),hn(a),o.head.appendChild(a)))}}function xM(n,a){Aa.m(n,a);var u=Xu;if(u&&n){var o=a&&typeof a.as=="string"?a.as:"script",f='link[rel="modulepreload"][as="'+yr(o)+'"][href="'+yr(n)+'"]',h=f;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Ku(n)}if(!Nr.has(h)&&(n=A({rel:"modulepreload",href:n},a),Nr.set(h,n),u.querySelector(f)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Ko(h)))return}o=u.createElement("link"),Tn(o,"link",n),hn(o),u.head.appendChild(o)}}}function _M(n,a,u){Aa.S(n,a,u);var o=Xu;if(o&&n){var f=Eu(o).hoistableStyles,h=Qu(n);a=a||"default";var T=f.get(h);if(!T){var R={loading:0,preload:null};if(T=o.querySelector(Qo(h)))R.loading=5;else{n=A({rel:"stylesheet",href:n,"data-precedence":a},u),(u=Nr.get(h))&&Ip(n,u);var B=T=o.createElement("link");hn(B),Tn(B,"link",n),B._p=new Promise(function(z,le){B.onload=z,B.onerror=le}),B.addEventListener("load",function(){R.loading|=1}),B.addEventListener("error",function(){R.loading|=2}),R.loading|=4,cf(T,a,o)}T={type:"stylesheet",instance:T,count:1,state:R},f.set(h,T)}}}function vM(n,a){Aa.X(n,a);var u=Xu;if(u&&n){var o=Eu(u).hoistableScripts,f=Ku(n),h=o.get(f);h||(h=u.querySelector(Ko(f)),h||(n=A({src:n,async:!0},a),(a=Nr.get(f))&&wp(n,a),h=u.createElement("script"),hn(h),Tn(h,"link",n),u.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},o.set(f,h))}}function RM(n,a){Aa.M(n,a);var u=Xu;if(u&&n){var o=Eu(u).hoistableScripts,f=Ku(n),h=o.get(f);h||(h=u.querySelector(Ko(f)),h||(n=A({src:n,async:!0,type:"module"},a),(a=Nr.get(f))&&wp(n,a),h=u.createElement("script"),hn(h),Tn(h,"link",n),u.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},o.set(f,h))}}function x3(n,a,u,o){var f=(f=Re.current)?sf(f):null;if(!f)throw Error(i(446));switch(n){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(a=Qu(u.href),u=Eu(f).hoistableStyles,o=u.get(a),o||(o={type:"style",instance:null,count:0,state:null},u.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){n=Qu(u.href);var h=Eu(f).hoistableStyles,T=h.get(n);if(T||(f=f.ownerDocument||f,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(n,T),(h=f.querySelector(Qo(n)))&&!h._p&&(T.instance=h,T.state.loading=5),Nr.has(n)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},Nr.set(n,u),h||OM(f,n,u,T.state))),a&&o===null)throw Error(i(528,""));return T}if(a&&o!==null)throw Error(i(529,""));return null;case"script":return a=u.async,u=u.src,typeof u=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Ku(u),u=Eu(f).hoistableScripts,o=u.get(a),o||(o={type:"script",instance:null,count:0,state:null},u.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,n))}}function Qu(n){return'href="'+yr(n)+'"'}function Qo(n){return'link[rel="stylesheet"]['+n+"]"}function _3(n){return A({},n,{"data-precedence":n.precedence,precedence:null})}function OM(n,a,u,o){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?o.loading=1:(a=n.createElement("link"),o.preload=a,a.addEventListener("load",function(){return o.loading|=1}),a.addEventListener("error",function(){return o.loading|=2}),Tn(a,"link",u),hn(a),n.head.appendChild(a))}function Ku(n){return'[src="'+yr(n)+'"]'}function Ko(n){return"script[async]"+n}function v3(n,a,u){if(a.count++,a.instance===null)switch(a.type){case"style":var o=n.querySelector('style[data-href~="'+yr(u.href)+'"]');if(o)return a.instance=o,hn(o),o;var f=A({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return o=(n.ownerDocument||n).createElement("style"),hn(o),Tn(o,"style",f),cf(o,u.precedence,n),a.instance=o;case"stylesheet":f=Qu(u.href);var h=n.querySelector(Qo(f));if(h)return a.state.loading|=4,a.instance=h,hn(h),h;o=_3(u),(f=Nr.get(f))&&Ip(o,f),h=(n.ownerDocument||n).createElement("link"),hn(h);var T=h;return T._p=new Promise(function(R,B){T.onload=R,T.onerror=B}),Tn(h,"link",o),a.state.loading|=4,cf(h,u.precedence,n),a.instance=h;case"script":return h=Ku(u.src),(f=n.querySelector(Ko(h)))?(a.instance=f,hn(f),f):(o=u,(f=Nr.get(h))&&(o=A({},u),wp(o,f)),n=n.ownerDocument||n,f=n.createElement("script"),hn(f),Tn(f,"link",o),n.head.appendChild(f),a.instance=f);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(o=a.instance,a.state.loading|=4,cf(o,u.precedence,n));return a.instance}function cf(n,a,u){for(var o=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=o.length?o[o.length-1]:null,h=f,T=0;T<o.length;T++){var R=o[T];if(R.dataset.precedence===a)h=R;else if(h!==f)break}h?h.parentNode.insertBefore(n,h.nextSibling):(a=u.nodeType===9?u.head:u,a.insertBefore(n,a.firstChild))}function Ip(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function wp(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var ff=null;function R3(n,a,u){if(ff===null){var o=new Map,f=ff=new Map;f.set(u,o)}else f=ff,o=f.get(u),o||(o=new Map,f.set(u,o));if(o.has(n))return o;for(o.set(n,null),u=u.getElementsByTagName(n),f=0;f<u.length;f++){var h=u[f];if(!(h[so]||h[Rn]||n==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var T=h.getAttribute(a)||"";T=n+T;var R=o.get(T);R?R.push(h):o.set(T,[h])}}return o}function O3(n,a,u){n=n.ownerDocument||n,n.head.insertBefore(u,a==="title"?n.querySelector("head > title"):null)}function NM(n,a,u){if(u===1||a.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return n=a.disabled,typeof a.precedence=="string"&&n==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function N3(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var Wo=null;function kM(){}function DM(n,a,u){if(Wo===null)throw Error(i(475));var o=Wo;if(a.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var f=Qu(u.href),h=n.querySelector(Qo(f));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(o.count++,o=df.bind(o),n.then(o,o)),a.state.loading|=4,a.instance=h,hn(h);return}h=n.ownerDocument||n,u=_3(u),(f=Nr.get(f))&&Ip(u,f),h=h.createElement("link"),hn(h);var T=h;T._p=new Promise(function(R,B){T.onload=R,T.onerror=B}),Tn(h,"link",u),a.instance=h}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(o.count++,a=df.bind(o),n.addEventListener("load",a),n.addEventListener("error",a))}}function LM(){if(Wo===null)throw Error(i(475));var n=Wo;return n.stylesheets&&n.count===0&&Mp(n,n.stylesheets),0<n.count?function(a){var u=setTimeout(function(){if(n.stylesheets&&Mp(n,n.stylesheets),n.unsuspend){var o=n.unsuspend;n.unsuspend=null,o()}},6e4);return n.unsuspend=a,function(){n.unsuspend=null,clearTimeout(u)}}:null}function df(){if(this.count--,this.count===0){if(this.stylesheets)Mp(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var hf=null;function Mp(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,hf=new Map,a.forEach(IM,n),hf=null,df.call(n))}function IM(n,a){if(!(a.state.loading&4)){var u=hf.get(n);if(u)var o=u.get(null);else{u=new Map,hf.set(n,u);for(var f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var T=f[h];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(u.set(T.dataset.precedence,T),o=T)}o&&u.set(null,o)}f=a.instance,T=f.getAttribute("data-precedence"),h=u.get(T)||o,h===o&&u.set(null,f),u.set(T,f),this.count++,o=df.bind(this),f.addEventListener("load",o),f.addEventListener("error",o),h?h.parentNode.insertBefore(f,h.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(f,n.firstChild)),a.state.loading|=4}}var Zo={$$typeof:y,Provider:null,Consumer:null,_currentValue:Oe,_currentValue2:Oe,_threadCount:0};function wM(n,a,u,o,f,h,T,R){this.tag=1,this.containerInfo=n,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=P0(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=P0(0),this.hiddenUpdates=P0(null),this.identifierPrefix=o,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function k3(n,a,u,o,f,h,T,R,B,z,le,he){return n=new wM(n,a,u,T,R,B,z,he),a=1,h===!0&&(a|=24),h=Rr(3,null,null,a),n.current=h,h.stateNode=n,a=hh(),a.refCount++,n.pooledCache=a,a.refCount++,h.memoizedState={element:o,isDehydrated:u,cache:a},Gh(h),n}function D3(n){return n?(n=Ou,n):Ou}function L3(n,a,u,o,f,h){f=D3(f),o.context===null?o.context=f:o.pendingContext=f,o=$a(a),o.payload={element:u},h=h===void 0?null:h,h!==null&&(o.callback=h),u=qa(n,o,a),u!==null&&(Dn(u,n,a),Mo(u,n,a))}function I3(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var u=n.retryLane;n.retryLane=u!==0&&u<a?u:a}}function Bp(n,a){I3(n,a),(n=n.alternate)&&I3(n,a)}function w3(n){if(n.tag===13){var a=Ua(n,67108864);a!==null&&Dn(a,n,67108864),Bp(n,67108864)}}var pf=!0;function MM(n,a,u,o){var f=V.T;V.T=null;var h=ce.p;try{ce.p=2,Pp(n,a,u,o)}finally{ce.p=h,V.T=f}}function BM(n,a,u,o){var f=V.T;V.T=null;var h=ce.p;try{ce.p=8,Pp(n,a,u,o)}finally{ce.p=h,V.T=f}}function Pp(n,a,u,o){if(pf){var f=Up(o);if(f===null)_p(n,a,o,mf,u),B3(n,o);else if(UM(f,n,a,u,o))o.stopPropagation();else if(B3(n,o),a&4&&-1<PM.indexOf(n)){for(;f!==null;){var h=bu(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var T=Qr(h.pendingLanes);if(T!==0){var R=h;for(R.pendingLanes|=2,R.entangledLanes|=2;T;){var B=1<<31-ze(T);R.entanglements[1]|=B,T&=~B}ea(h),(Yt&6)===0&&(Wc=Xe()+500,qo(0))}}break;case 13:R=Ua(h,2),R!==null&&Dn(R,h,2),ef(),Bp(h,2)}if(h=Up(o),h===null&&_p(n,a,o,mf,u),h===f)break;f=h}f!==null&&o.stopPropagation()}else _p(n,a,o,null,u)}}function Up(n){return n=V0(n),Hp(n)}var mf=null;function Hp(n){if(mf=null,n=yi(n),n!==null){var a=re(n);if(a===null)n=null;else{var u=a.tag;if(u===13){if(n=be(a),n!==null)return n;n=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return mf=n,null}function M3(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch($t()){case te:return 2;case de:return 8;case Ae:case He:return 32;case nt:return 268435456;default:return 32}default:return 32}}var Fp=!1,Ja=null,ei=null,ti=null,Jo=new Map,es=new Map,ni=[],PM="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 B3(n,a){switch(n){case"focusin":case"focusout":Ja=null;break;case"dragenter":case"dragleave":ei=null;break;case"mouseover":case"mouseout":ti=null;break;case"pointerover":case"pointerout":Jo.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":es.delete(a.pointerId)}}function ts(n,a,u,o,f,h){return n===null||n.nativeEvent!==h?(n={blockedOn:a,domEventName:u,eventSystemFlags:o,nativeEvent:h,targetContainers:[f]},a!==null&&(a=bu(a),a!==null&&w3(a)),n):(n.eventSystemFlags|=o,a=n.targetContainers,f!==null&&a.indexOf(f)===-1&&a.push(f),n)}function UM(n,a,u,o,f){switch(a){case"focusin":return Ja=ts(Ja,n,a,u,o,f),!0;case"dragenter":return ei=ts(ei,n,a,u,o,f),!0;case"mouseover":return ti=ts(ti,n,a,u,o,f),!0;case"pointerover":var h=f.pointerId;return Jo.set(h,ts(Jo.get(h)||null,n,a,u,o,f)),!0;case"gotpointercapture":return h=f.pointerId,es.set(h,ts(es.get(h)||null,n,a,u,o,f)),!0}return!1}function P3(n){var a=yi(n.target);if(a!==null){var u=re(a);if(u!==null){if(a=u.tag,a===13){if(a=be(u),a!==null){n.blockedOn=a,LI(n.priority,function(){if(u.tag===13){var o=ar(),f=Ua(u,o);f!==null&&Dn(f,u,o),Bp(u,o)}});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){n.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}n.blockedOn=null}function gf(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var u=Up(n.nativeEvent);if(u===null){u=n.nativeEvent;var o=new u.constructor(u.type,u);j0=o,u.target.dispatchEvent(o),j0=null}else return a=bu(u),a!==null&&w3(a),n.blockedOn=u,!1;a.shift()}return!0}function U3(n,a,u){gf(n)&&u.delete(a)}function HM(){Fp=!1,Ja!==null&&gf(Ja)&&(Ja=null),ei!==null&&gf(ei)&&(ei=null),ti!==null&&gf(ti)&&(ti=null),Jo.forEach(U3),es.forEach(U3)}function bf(n,a){n.blockedOn===a&&(n.blockedOn=null,Fp||(Fp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,HM)))}var Ef=null;function H3(n){Ef!==n&&(Ef=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Ef===n&&(Ef=null);for(var a=0;a<n.length;a+=3){var u=n[a],o=n[a+1],f=n[a+2];if(typeof o!="function"){if(Hp(o||u)===null)continue;break}var h=bu(u);h!==null&&(n.splice(a,3),a-=3,Nh(h,{pending:!0,data:f,method:u.method,action:o},o,f))}}))}function ns(n){function a(B){return bf(B,n)}Ja!==null&&bf(Ja,n),ei!==null&&bf(ei,n),ti!==null&&bf(ti,n),Jo.forEach(a),es.forEach(a);for(var u=0;u<ni.length;u++){var o=ni[u];o.blockedOn===n&&(o.blockedOn=null)}for(;0<ni.length&&(u=ni[0],u.blockedOn===null);)P3(u),u.blockedOn===null&&ni.shift();if(u=(n.ownerDocument||n).$$reactFormReplay,u!=null)for(o=0;o<u.length;o+=3){var f=u[o],h=u[o+1],T=f[jn]||null;if(typeof h=="function")T||H3(u);else if(T){var R=null;if(h&&h.hasAttribute("formAction")){if(f=h,T=h[jn]||null)R=T.formAction;else if(Hp(f)!==null)continue}else R=T.action;typeof R=="function"?u[o+1]=R:(u.splice(o,3),o-=3),H3(u)}}}function zp(n){this._internalRoot=n}yf.prototype.render=zp.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(i(409));var u=a.current,o=ar();L3(u,o,n,a,null,null)},yf.prototype.unmount=zp.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;n.tag===0&&$u(),L3(n.current,2,null,n,null,null),ef(),a[gu]=null}};function yf(n){this._internalRoot=n}yf.prototype.unstable_scheduleHydration=function(n){if(n){var a=hy();n={blockedOn:null,target:n,priority:a};for(var u=0;u<ni.length&&a!==0&&a<ni[u].priority;u++);ni.splice(u,0,n),u===0&&P3(n)}};var F3=t.version;if(F3!=="19.0.0")throw Error(i(527,F3,"19.0.0"));ce.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(i(188)):(n=Object.keys(n).join(","),Error(i(268,n)));return n=J(a),n=n!==null?oe(n):null,n=n===null?null:n.stateNode,n};var FM={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:V,findFiberByHostInstance:yi,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Tf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tf.isDisabled&&Tf.supportsFiber)try{an=Tf.inject(FM),Ft=Tf}catch{}}return Wu.createRoot=function(n,a){if(!l(n))throw Error(i(299));var u=!1,o="",f=rS,h=aS,T=iS,R=null;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(h=a.onCaughtError),a.onRecoverableError!==void 0&&(T=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(R=a.unstable_transitionCallbacks)),a=k3(n,1,!1,null,null,u,o,f,h,T,R,null),n[gu]=a.current,xp(n.nodeType===8?n.parentNode:n),new zp(a)},Wu.hydrateRoot=function(n,a,u){if(!l(n))throw Error(i(299));var o=!1,f="",h=rS,T=aS,R=iS,B=null,z=null;return u!=null&&(u.unstable_strictMode===!0&&(o=!0),u.identifierPrefix!==void 0&&(f=u.identifierPrefix),u.onUncaughtError!==void 0&&(h=u.onUncaughtError),u.onCaughtError!==void 0&&(T=u.onCaughtError),u.onRecoverableError!==void 0&&(R=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(B=u.unstable_transitionCallbacks),u.formState!==void 0&&(z=u.formState)),a=k3(n,1,!0,a,u??null,o,f,h,T,R,B,z),a.context=D3(null),u=a.current,o=ar(),f=$a(o),f.callback=null,qa(u,f,o),a.current.lanes=o,oo(a,o),ea(a),n[gu]=a.current,xp(n),new yf(a)},Wu.version="19.0.0",Wu}var Zp;function G3(){if(Zp)return Cf.exports;Zp=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Cf.exports=q3(),Cf.exports}var X3=G3();function is(){return is=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},is.apply(null,arguments)}function Jp(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Q3=/^((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)-.*))$/,K3=Jp(function(e){return Q3.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function W3(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Z3(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var em=function(){function e(r){var i=this;this._insertTag=function(l){var s;i.tags.length===0?i.insertionPoint?s=i.insertionPoint.nextSibling:i.prepend?s=i.container.firstChild:s=i.before:s=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(l,s),i.tags.push(l)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Z3(this));var l=this.tags[this.tags.length-1];if(this.isSpeedy){var s=W3(l);try{s.insertRule(i,s.cssRules.length)}catch{}}else l.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var l;return(l=i.parentNode)==null?void 0:l.removeChild(i)}),this.tags=[],this.ctr=0},e}(),pt="-ms-",xa="-moz-",De="-webkit-",tm="comm",us="rule",ls="decl",J3="@import",vf="@keyframes",eC="@layer",tC=Math.abs,Zu=String.fromCharCode,nC=Object.assign;function nm(e,t){return Bt(e,0)^45?(((t<<2^Bt(e,0))<<2^Bt(e,1))<<2^Bt(e,2))<<2^Bt(e,3):0}function rm(e){return e.trim()}function am(e,t){return(e=t.exec(e))?e[0]:e}function Ie(e,t,r){return e.replace(t,r)}function Ju(e,t){return e.indexOf(t)}function Bt(e,t){return e.charCodeAt(t)|0}function el(e,t,r){return e.slice(t,r)}function lr(e){return e.length}function Rf(e){return e.length}function os(e,t){return t.push(e),e}function im(e,t){return e.map(t).join("")}var ss=1,Fi=1,um=0,Cn=0,Zt=0,zi="";function cs(e,t,r,i,l,s,c){return{value:e,root:t,parent:r,type:i,props:l,children:s,line:ss,column:Fi,length:c,return:""}}function Mr(e,t){return nC(cs("",null,null,"",null,null,0),e,{length:-e.length},t)}function rC(){return Zt}function aC(){return Zt=Cn>0?Bt(zi,--Cn):0,Fi--,Zt===10&&(Fi=1,ss--),Zt}function Nn(){return Zt=Cn<um?Bt(zi,Cn++):0,Fi++,Zt===10&&(Fi=1,ss++),Zt}function Gn(){return Bt(zi,Cn)}function fs(){return Cn}function Yi(e,t){return el(zi,e,t)}function ai(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 Of(e){return ss=Fi=1,um=lr(zi=e),Cn=0,[]}function Nf(e){return zi="",e}function tl(e){return rm(Yi(Cn-1,kf(e===91?e+2:e===40?e+1:e)))}function iC(e){for(;(Zt=Gn())&&Zt<33;)Nn();return ai(e)>2||ai(Zt)>3?"":" "}function uC(e,t){for(;--t&&Nn()&&!(Zt<48||Zt>102||Zt>57&&Zt<65||Zt>70&&Zt<97););return Yi(e,fs()+(t<6&&Gn()==32&&Nn()==32))}function kf(e){for(;Nn();)switch(Zt){case e:return Cn;case 34:case 39:e!==34&&e!==39&&kf(Zt);break;case 40:e===41&&kf(e);break;case 92:Nn();break}return Cn}function lC(e,t){for(;Nn()&&e+Zt!==57;)if(e+Zt===84&&Gn()===47)break;return"/*"+Yi(t,Cn-1)+"*"+Zu(e===47?e:Nn())}function oC(e){for(;!ai(Gn());)Nn();return Yi(e,Cn)}function lm(e){return Nf(ds("",null,null,null,[""],e=Of(e),0,[0],e))}function ds(e,t,r,i,l,s,c,d,p){for(var m=0,b=0,E=c,S=0,y=0,O=0,_=1,I=1,v=1,H=0,k="",P=l,L=s,M=i,j=k;I;)switch(O=H,H=Nn()){case 40:if(O!=108&&Bt(j,E-1)==58){Ju(j+=Ie(tl(H),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:j+=tl(H);break;case 9:case 10:case 13:case 32:j+=iC(O);break;case 92:j+=uC(fs()-1,7);continue;case 47:switch(Gn()){case 42:case 47:os(sC(lC(Nn(),fs()),t,r),p);break;default:j+="/"}break;case 123*_:d[m++]=lr(j)*v;case 125*_:case 59:case 0:switch(H){case 0:case 125:I=0;case 59+b:v==-1&&(j=Ie(j,/\f/g,"")),y>0&&lr(j)-E&&os(y>32?sm(j+";",i,r,E-1):sm(Ie(j," ","")+";",i,r,E-2),p);break;case 59:j+=";";default:if(os(M=om(j,t,r,m,b,l,d,k,P=[],L=[],E),s),H===123)if(b===0)ds(j,t,M,M,P,s,E,d,L);else switch(S===99&&Bt(j,3)===110?100:S){case 100:case 108:case 109:case 115:ds(e,M,M,i&&os(om(e,M,M,0,0,l,d,k,l,P=[],E),L),l,L,E,d,i?P:L);break;default:ds(j,M,M,M,[""],L,0,d,L)}}m=b=y=0,_=v=1,k=j="",E=c;break;case 58:E=1+lr(j),y=O;default:if(_<1){if(H==123)--_;else if(H==125&&_++==0&&aC()==125)continue}switch(j+=Zu(H),H*_){case 38:v=b>0?1:(j+="\f",-1);break;case 44:d[m++]=(lr(j)-1)*v,v=1;break;case 64:Gn()===45&&(j+=tl(Nn())),S=Gn(),b=E=lr(k=j+=oC(fs())),H++;break;case 45:O===45&&lr(j)==2&&(_=0)}}return s}function om(e,t,r,i,l,s,c,d,p,m,b){for(var E=l-1,S=l===0?s:[""],y=Rf(S),O=0,_=0,I=0;O<i;++O)for(var v=0,H=el(e,E+1,E=tC(_=c[O])),k=e;v<y;++v)(k=rm(_>0?S[v]+" "+H:Ie(H,/&\f/g,S[v])))&&(p[I++]=k);return cs(e,t,r,l===0?us:d,p,m,b)}function sC(e,t,r){return cs(e,t,r,tm,Zu(rC()),el(e,2,-2),0)}function sm(e,t,r,i){return cs(e,t,r,ls,el(e,0,i),el(e,i+1,-1),i)}function Br(e,t){for(var r="",i=Rf(e),l=0;l<i;l++)r+=t(e[l],l,e,t)||"";return r}function cm(e,t,r,i){switch(e.type){case eC:if(e.children.length)break;case J3:case ls:return e.return=e.return||e.value;case tm:return"";case vf:return e.return=e.value+"{"+Br(e.children,i)+"}";case us:e.value=e.props.join(",")}return lr(r=Br(e.children,i))?e.return=e.value+"{"+r+"}":""}function fm(e){var t=Rf(e);return function(r,i,l,s){for(var c="",d=0;d<t;d++)c+=e[d](r,i,l,s)||"";return c}}function dm(e){return function(t){t.root||(t=t.return)&&e(t)}}var cC=function(t,r,i){for(var l=0,s=0;l=s,s=Gn(),l===38&&s===12&&(r[i]=1),!ai(s);)Nn();return Yi(t,Cn)},fC=function(t,r){var i=-1,l=44;do switch(ai(l)){case 0:l===38&&Gn()===12&&(r[i]=1),t[i]+=cC(Cn-1,r,i);break;case 2:t[i]+=tl(l);break;case 4:if(l===44){t[++i]=Gn()===58?"&\f":"",r[i]=t[i].length;break}default:t[i]+=Zu(l)}while(l=Nn());return t},dC=function(t,r){return Nf(fC(Of(t),r))},hm=new WeakMap,hC=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,i=t.parent,l=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!hm.get(i))&&!l){hm.set(t,!0);for(var s=[],c=dC(r,s),d=i.props,p=0,m=0;p<c.length;p++)for(var b=0;b<d.length;b++,m++)t.props[m]=s[p]?c[p].replace(/&\f/g,d[b]):d[b]+" "+c[p]}}},pC=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function pm(e,t){switch(nm(e,t)){case 5103:return De+"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 De+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return De+e+xa+e+pt+e+e;case 6828:case 4268:return De+e+pt+e+e;case 6165:return De+e+pt+"flex-"+e+e;case 5187:return De+e+Ie(e,/(\w+).+(:[^]+)/,De+"box-$1$2"+pt+"flex-$1$2")+e;case 5443:return De+e+pt+"flex-item-"+Ie(e,/flex-|-self/,"")+e;case 4675:return De+e+pt+"flex-line-pack"+Ie(e,/align-content|flex-|-self/,"")+e;case 5548:return De+e+pt+Ie(e,"shrink","negative")+e;case 5292:return De+e+pt+Ie(e,"basis","preferred-size")+e;case 6060:return De+"box-"+Ie(e,"-grow","")+De+e+pt+Ie(e,"grow","positive")+e;case 4554:return De+Ie(e,/([^-])(transform)/g,"$1"+De+"$2")+e;case 6187:return Ie(Ie(Ie(e,/(zoom-|grab)/,De+"$1"),/(image-set)/,De+"$1"),e,"")+e;case 5495:case 3959:return Ie(e,/(image-set\([^]*)/,De+"$1$`$1");case 4968:return Ie(Ie(e,/(.+:)(flex-)?(.*)/,De+"box-pack:$3"+pt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+De+e+e;case 4095:case 3583:case 4068:case 2532:return Ie(e,/(.+)-inline(.+)/,De+"$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(lr(e)-1-t>6)switch(Bt(e,t+1)){case 109:if(Bt(e,t+4)!==45)break;case 102:return Ie(e,/(.+:)(.+)-([^]+)/,"$1"+De+"$2-$3$1"+xa+(Bt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ju(e,"stretch")?pm(Ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Bt(e,t+1)!==115)break;case 6444:switch(Bt(e,lr(e)-3-(~Ju(e,"!important")&&10))){case 107:return Ie(e,":",":"+De)+e;case 101:return Ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+De+(Bt(e,14)===45?"inline-":"")+"box$3$1"+De+"$2$3$1"+pt+"$2box$3")+e}break;case 5936:switch(Bt(e,t+11)){case 114:return De+e+pt+Ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return De+e+pt+Ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return De+e+pt+Ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return De+e+pt+e+e}return e}var mC=function(t,r,i,l){if(t.length>-1&&!t.return)switch(t.type){case ls:t.return=pm(t.value,t.length);break;case vf:return Br([Mr(t,{value:Ie(t.value,"@","@"+De)})],l);case us:if(t.length)return im(t.props,function(s){switch(am(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Br([Mr(t,{props:[Ie(s,/:(read-\w+)/,":"+xa+"$1")]})],l);case"::placeholder":return Br([Mr(t,{props:[Ie(s,/:(plac\w+)/,":"+De+"input-$1")]}),Mr(t,{props:[Ie(s,/:(plac\w+)/,":"+xa+"$1")]}),Mr(t,{props:[Ie(s,/:(plac\w+)/,pt+"input-$1")]})],l)}return""})}},gC=[mC],bC=function(t){var r=t.key;if(r==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(_){var I=_.getAttribute("data-emotion");I.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var l=t.stylisPlugins||gC,s={},c,d=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(_){for(var I=_.getAttribute("data-emotion").split(" "),v=1;v<I.length;v++)s[I[v]]=!0;d.push(_)});var p,m=[hC,pC];{var b,E=[cm,dm(function(_){b.insert(_)})],S=fm(m.concat(l,E)),y=function(I){return Br(lm(I),S)};p=function(I,v,H,k){b=H,y(I?I+"{"+v.styles+"}":v.styles),k&&(O.inserted[v.name]=!0)}}var O={key:r,sheet:new em({key:r,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:p};return O.sheet.hydrate(d),O},Df={exports:{}},yt={};/** @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 mm;function EC(){if(mm)return yt;mm=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,b=e?Symbol.for("react.forward_ref"):60112,E=e?Symbol.for("react.suspense"):60113,S=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,O=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,I=e?Symbol.for("react.fundamental"):60117,R=e?Symbol.for("react.responder"):60118,H=e?Symbol.for("react.scope"):60119;function k(L){if(typeof L=="object"&&L!==null){var M=L.$$typeof;switch(M){case t:switch(L=L.type,L){case p:case m:case i:case s:case l:case E:return L;default:switch(L=L&&L.$$typeof,L){case d:case b:case O:case y:case c:return L;default:return M}}case r:return M}}}function P(L){return k(L)===m}return yt.AsyncMode=p,yt.ConcurrentMode=m,yt.ContextConsumer=d,yt.ContextProvider=c,yt.Element=t,yt.ForwardRef=b,yt.Fragment=i,yt.Lazy=O,yt.Memo=y,yt.Portal=r,yt.Profiler=s,yt.StrictMode=l,yt.Suspense=E,yt.isAsyncMode=function(L){return P(L)||k(L)===p},yt.isConcurrentMode=P,yt.isContextConsumer=function(L){return k(L)===d},yt.isContextProvider=function(L){return k(L)===c},yt.isElement=function(L){return typeof L=="object"&&L!==null&&L.$$typeof===t},yt.isForwardRef=function(L){return k(L)===b},yt.isFragment=function(L){return k(L)===i},yt.isLazy=function(L){return k(L)===O},yt.isMemo=function(L){return k(L)===y},yt.isPortal=function(L){return k(L)===r},yt.isProfiler=function(L){return k(L)===s},yt.isStrictMode=function(L){return k(L)===l},yt.isSuspense=function(L){return k(L)===E},yt.isValidElementType=function(L){return typeof L=="string"||typeof L=="function"||L===i||L===m||L===s||L===l||L===E||L===S||typeof L=="object"&&L!==null&&(L.$$typeof===O||L.$$typeof===y||L.$$typeof===c||L.$$typeof===d||L.$$typeof===b||L.$$typeof===I||L.$$typeof===R||L.$$typeof===H||L.$$typeof===_)},yt.typeOf=k,yt}var gm;function yC(){return gm||(gm=1,Df.exports=EC()),Df.exports}var Lf,bm;function TC(){if(bm)return Lf;bm=1;var e=yC(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=i,s[e.Memo]=l;function c(O){return e.isMemo(O)?l:s[O.$$typeof]||t}var d=Object.defineProperty,p=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,b=Object.getOwnPropertyDescriptor,E=Object.getPrototypeOf,S=Object.prototype;function y(O,_,I){if(typeof _!="string"){if(S){var R=E(_);R&&R!==S&&y(O,R,I)}var H=p(_);m&&(H=H.concat(m(_)));for(var k=c(O),P=c(_),L=0;L<H.length;++L){var M=H[L];if(!r[M]&&!(I&&I[M])&&!(P&&P[M])&&!(k&&k[M])){var j=b(_,M);try{d(O,M,j)}catch{}}}}return O}return Lf=y,Lf}TC();var SC=!0;function CC(e,t,r){var i="";return r.split(" ").forEach(function(l){e[l]!==void 0?t.push(e[l]+";"):l&&(i+=l+" ")}),i}var Em=function(t,r,i){var l=t.key+"-"+r.name;(i===!1||SC===!1)&&t.registered[l]===void 0&&(t.registered[l]=r.styles)},ym=function(t,r,i){Em(t,r,i);var l=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+l:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function AC(e){for(var t=0,r,i=0,l=e.length;l>=4;++i,l-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var xC={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},_C=/[A-Z]|^ms/g,vC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Tm=function(t){return t.charCodeAt(1)===45},Sm=function(t){return t!=null&&typeof t!="boolean"},If=Jp(function(e){return Tm(e)?e:e.replace(_C,"-$&").toLowerCase()}),Cm=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(vC,function(i,l,s){return Pr={name:l,styles:s,next:Pr},l})}return xC[t]!==1&&!Tm(t)&&typeof r=="number"&&r!==0?r+"px":r};function nl(e,t,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var l=r;if(l.anim===1)return Pr={name:l.name,styles:l.styles,next:Pr},l.name;var s=r;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)Pr={name:c.name,styles:c.styles,next:Pr},c=c.next;var d=s.styles+";";return d}return RC(e,t,r)}case"function":{if(e!==void 0){var p=Pr,m=r(e);return Pr=p,nl(e,t,m)}break}}var b=r;if(t==null)return b;var E=t[b];return E!==void 0?E:b}function RC(e,t,r){var i="";if(Array.isArray(r))for(var l=0;l<r.length;l++)i+=nl(e,t,r[l])+";";else for(var s in r){var c=r[s];if(typeof c!="object"){var d=c;t!=null&&t[d]!==void 0?i+=s+"{"+t[d]+"}":Sm(d)&&(i+=If(s)+":"+Cm(s,d)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var p=0;p<c.length;p++)Sm(c[p])&&(i+=If(s)+":"+Cm(s,c[p])+";");else{var m=nl(e,t,c);switch(s){case"animation":case"animationName":{i+=If(s)+":"+m+";";break}default:i+=s+"{"+m+"}"}}}return i}var Am=/label:\s*([^\s;{]+)\s*(;|$)/g,Pr;function hs(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,l="";Pr=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,l+=nl(r,t,s);else{var c=s;l+=c[0]}for(var d=1;d<e.length;d++)if(l+=nl(r,t,e[d]),i){var p=s;l+=p[d]}Am.lastIndex=0;for(var m="",b;(b=Am.exec(l))!==null;)m+="-"+b[1];var E=AC(l)+m;return{name:E,styles:l,next:Pr}}var OC=function(t){return t()},xm=$p.useInsertionEffect?$p.useInsertionEffect:!1,NC=xm||OC,_m=xm||x.useLayoutEffect,vm=x.createContext(typeof HTMLElement<"u"?bC({key:"css"}):null),kC=vm.Provider,Rm=function(t){return x.forwardRef(function(r,i){var l=x.useContext(vm);return t(r,l,i)})},rl=x.createContext({}),DC=function(){return x.useContext(rl)},LC=Rm(function(e,t){var r=e.styles,i=hs([r],void 0,x.useContext(rl)),l=x.useRef();return _m(function(){var s=t.key+"-global",c=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),d=!1,p=document.querySelector('style[data-emotion="'+s+" "+i.name+'"]');return t.sheet.tags.length&&(c.before=t.sheet.tags[0]),p!==null&&(d=!0,p.setAttribute("data-emotion",s),c.hydrate([p])),l.current=[c,d],function(){c.flush()}},[t]),_m(function(){var s=l.current,c=s[0],d=s[1];if(d){s[1]=!1;return}if(i.next!==void 0&&ym(t,i.next,!0),c.tags.length){var p=c.tags[c.tags.length-1].nextElementSibling;c.before=p,c.flush()}t.insert("",i,c,!1)},[t,i.name]),null});function ps(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return hs(t)}var wf=function(){var t=ps.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},IC=K3,wC=function(t){return t!=="theme"},Om=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?IC:wC},Nm=function(t,r,i){var l;if(r){var s=r.shouldForwardProp;l=t.__emotion_forwardProp&&s?function(c){return t.__emotion_forwardProp(c)&&s(c)}:s}return typeof l!="function"&&i&&(l=t.__emotion_forwardProp),l},MC=function(t){var r=t.cache,i=t.serialized,l=t.isStringTag;return Em(r,i,l),NC(function(){return ym(r,i,l)}),null},BC=function e(t,r){var i=t.__emotion_real===t,l=i&&t.__emotion_base||t,s,c;r!==void 0&&(s=r.label,c=r.target);var d=Nm(t,r,i),p=d||Om(l),m=!p("as");return function(){var b=arguments,E=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&E.push("label:"+s+";"),b[0]==null||b[0].raw===void 0)E.push.apply(E,b);else{E.push(b[0][0]);for(var S=b.length,y=1;y<S;y++)E.push(b[y],b[0][y])}var O=Rm(function(_,I,R){var H=m&&_.as||l,k="",P=[],L=_;if(_.theme==null){L={};for(var M in _)L[M]=_[M];L.theme=x.useContext(rl)}typeof _.className=="string"?k=CC(I.registered,P,_.className):_.className!=null&&(k=_.className+" ");var j=hs(E.concat(P),I.registered,L);k+=I.key+"-"+j.name,c!==void 0&&(k+=" "+c);var ae=m&&d===void 0?Om(H):p,V={};for(var A in _)m&&A==="as"||ae(A)&&(V[A]=_[A]);return V.className=k,R&&(V.ref=R),x.createElement(x.Fragment,null,x.createElement(MC,{cache:I,serialized:j,isStringTag:typeof H=="string"}),x.createElement(H,V))});return O.displayName=s!==void 0?s:"Styled("+(typeof l=="string"?l:l.displayName||l.name||"Component")+")",O.defaultProps=t.defaultProps,O.__emotion_real=O,O.__emotion_base=l,O.__emotion_styles=E,O.__emotion_forwardProp=d,Object.defineProperty(O,"toString",{value:function(){return"."+c}}),O.withComponent=function(_,I){return e(_,is({},r,I,{shouldForwardProp:Nm(O,I,!0)})).apply(void 0,E)},O}},PC=["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"],Fe=BC.bind();PC.forEach(function(e){Fe[e]=Fe(e)});function VM(){}function $M(){}function km(e){const t=[],r=String(e||"");let i=r.indexOf(","),l=0,s=!1;for(;!s;){i===-1&&(i=r.length,s=!0);const c=r.slice(l,i).trim();(c||!s)&&t.push(c),l=i+1,i=r.indexOf(",",l)}return t}function Dm(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const UC=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,HC=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,FC={};function Lm(e,t){return(FC.jsx?HC:UC).test(e)}const zC=/[ \t\n\f\r]/g;function YC(e){return typeof e=="object"?e.type==="text"?Im(e.value):!1:Im(e)}function Im(e){return e.replace(zC,"")===""}let al=class{constructor(t,r,i){this.property=t,this.normal=r,i&&(this.space=i)}};al.prototype.property={},al.prototype.normal={},al.prototype.space=null;function wm(e,t){const r={},i={};let l=-1;for(;++l<e.length;)Object.assign(r,e[l].property),Object.assign(i,e[l].normal);return new al(r,i,t)}function Mf(e){return e.toLowerCase()}let or=class{constructor(t,r){this.property=t,this.attribute=r}};or.prototype.space=null,or.prototype.boolean=!1,or.prototype.booleanish=!1,or.prototype.overloadedBoolean=!1,or.prototype.number=!1,or.prototype.commaSeparated=!1,or.prototype.spaceSeparated=!1,or.prototype.commaOrSpaceSeparated=!1,or.prototype.mustUseProperty=!1,or.prototype.defined=!1;let jC=0;const We=ii(),Jt=ii(),Mm=ii(),Ee=ii(),kt=ii(),ji=ii(),Xn=ii();function ii(){return 2**++jC}const Bf=Object.freeze(Object.defineProperty({__proto__:null,boolean:We,booleanish:Jt,commaOrSpaceSeparated:Xn,commaSeparated:ji,number:Ee,overloadedBoolean:Mm,spaceSeparated:kt},Symbol.toStringTag,{value:"Module"})),Pf=Object.keys(Bf);let Uf=class extends or{constructor(t,r,i,l){let s=-1;if(super(t,r),Bm(this,"space",l),typeof i=="number")for(;++s<Pf.length;){const c=Pf[s];Bm(this,Pf[s],(i&Bf[c])===Bf[c])}}};Uf.prototype.defined=!0;function Bm(e,t,r){r&&(e[t]=r)}const VC={}.hasOwnProperty;function Vi(e){const t={},r={};let i;for(i in e.properties)if(VC.call(e.properties,i)){const l=e.properties[i],s=new Uf(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,r[Mf(i)]=i,r[Mf(s.attribute)]=i}return new al(t,r,e.space)}const Pm=Vi({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Um=Vi({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Hm(e,t){return t in e?e[t]:t}function Fm(e,t){return Hm(e,t.toLowerCase())}const zm=Vi({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Fm,properties:{xmlns:null,xmlnsXLink:null}}),Ym=Vi({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Jt,ariaAutoComplete:null,ariaBusy:Jt,ariaChecked:Jt,ariaColCount:Ee,ariaColIndex:Ee,ariaColSpan:Ee,ariaControls:kt,ariaCurrent:null,ariaDescribedBy:kt,ariaDetails:null,ariaDisabled:Jt,ariaDropEffect:kt,ariaErrorMessage:null,ariaExpanded:Jt,ariaFlowTo:kt,ariaGrabbed:Jt,ariaHasPopup:null,ariaHidden:Jt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:kt,ariaLevel:Ee,ariaLive:null,ariaModal:Jt,ariaMultiLine:Jt,ariaMultiSelectable:Jt,ariaOrientation:null,ariaOwns:kt,ariaPlaceholder:null,ariaPosInSet:Ee,ariaPressed:Jt,ariaReadOnly:Jt,ariaRelevant:null,ariaRequired:Jt,ariaRoleDescription:kt,ariaRowCount:Ee,ariaRowIndex:Ee,ariaRowSpan:Ee,ariaSelected:Jt,ariaSetSize:Ee,ariaSort:null,ariaValueMax:Ee,ariaValueMin:Ee,ariaValueNow:Ee,ariaValueText:null,role:null}}),$C=Vi({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Fm,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ji,acceptCharset:kt,accessKey:kt,action:null,allow:null,allowFullScreen:We,allowPaymentRequest:We,allowUserMedia:We,alt:null,as:null,async:We,autoCapitalize:null,autoComplete:kt,autoFocus:We,autoPlay:We,blocking:kt,capture:null,charSet:null,checked:We,cite:null,className:kt,cols:Ee,colSpan:null,content:null,contentEditable:Jt,controls:We,controlsList:kt,coords:Ee|ji,crossOrigin:null,data:null,dateTime:null,decoding:null,default:We,defer:We,dir:null,dirName:null,disabled:We,download:Mm,draggable:Jt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:We,formTarget:null,headers:kt,height:Ee,hidden:We,high:Ee,href:null,hrefLang:null,htmlFor:kt,httpEquiv:kt,id:null,imageSizes:null,imageSrcSet:null,inert:We,inputMode:null,integrity:null,is:null,isMap:We,itemId:null,itemProp:kt,itemRef:kt,itemScope:We,itemType:kt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:We,low:Ee,manifest:null,max:null,maxLength:Ee,media:null,method:null,min:null,minLength:Ee,multiple:We,muted:We,name:null,nonce:null,noModule:We,noValidate:We,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:We,optimum:Ee,pattern:null,ping:kt,placeholder:null,playsInline:We,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:We,referrerPolicy:null,rel:kt,required:We,reversed:We,rows:Ee,rowSpan:Ee,sandbox:kt,scope:null,scoped:We,seamless:We,selected:We,shadowRootClonable:We,shadowRootDelegatesFocus:We,shadowRootMode:null,shape:null,size:Ee,sizes:null,slot:null,span:Ee,spellCheck:Jt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ee,step:null,style:null,tabIndex:Ee,target:null,title:null,translate:null,type:null,typeMustMatch:We,useMap:null,value:Jt,width:Ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:kt,axis:null,background:null,bgColor:null,border:Ee,borderColor:null,bottomMargin:Ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:We,declare:We,event:null,face:null,frame:null,frameBorder:null,hSpace:Ee,leftMargin:Ee,link:null,longDesc:null,lowSrc:null,marginHeight:Ee,marginWidth:Ee,noResize:We,noHref:We,noShade:We,noWrap:We,object:null,profile:null,prompt:null,rev:null,rightMargin:Ee,rules:null,scheme:null,scrolling:Jt,standby:null,summary:null,text:null,topMargin:Ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:We,disableRemotePlayback:We,prefix:null,property:null,results:Ee,security:null,unselectable:null}}),qC=Vi({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:Hm,properties:{about:Xn,accentHeight:Ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ee,amplitude:Ee,arabicForm:null,ascent:Ee,attributeName:null,attributeType:null,azimuth:Ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ee,by:null,calcMode:null,capHeight:Ee,className:kt,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:Ee,diffuseConstant:Ee,direction:null,display:null,dur:null,divisor:Ee,dominantBaseline:null,download:We,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ee,enableBackground:null,end:null,event:null,exponent:Ee,externalResourcesRequired:null,fill:null,fillOpacity:Ee,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:ji,g2:ji,glyphName:ji,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ee,horizOriginX:Ee,horizOriginY:Ee,id:null,ideographic:Ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ee,k:Ee,k1:Ee,k2:Ee,k3:Ee,k4:Ee,kernelMatrix:Xn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ee,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:Ee,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:Ee,overlineThickness:Ee,paintOrder:null,panose1:null,path:null,pathLength:Ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:kt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ee,pointsAtY:Ee,pointsAtZ:Ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Xn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Xn,rev:Xn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Xn,requiredFeatures:Xn,requiredFonts:Xn,requiredFormats:Xn,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:Ee,specularExponent:Ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ee,strikethroughThickness:Ee,string:null,stroke:null,strokeDashArray:Xn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ee,strokeOpacity:Ee,strokeWidth:null,style:null,surfaceScale:Ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Xn,tabIndex:Ee,tableValues:null,target:null,targetX:Ee,targetY:Ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Xn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ee,underlineThickness:Ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ee,values:null,vAlphabetic:Ee,vMathematical:Ee,vectorEffect:null,vHanging:Ee,vIdeographic:Ee,version:null,vertAdvY:Ee,vertOriginX:Ee,vertOriginY:Ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),GC=/^data[-\w.:]+$/i,jm=/-[a-z]/g,XC=/[A-Z]/g;function Vm(e,t){const r=Mf(t);let i=t,l=or;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&GC.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(jm,KC);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!jm.test(s)){let c=s.replace(XC,QC);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}l=Uf}return new l(i,t)}function QC(e){return"-"+e.toLowerCase()}function KC(e){return e.charAt(1).toUpperCase()}const WC={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"},$m=wm([Um,Pm,zm,Ym,$C],"html"),il=wm([Um,Pm,zm,Ym,qC],"svg");function qm(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Gm(e){return e.join(" ").trim()}var $i={},Hf,Xm;function ZC(){if(Xm)return Hf;Xm=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,p=`
49
- `,m="/",b="*",E="",S="comment",y="declaration";Hf=function(_,I){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];I=I||{};var R=1,H=1;function k(X){var Q=X.match(t);Q&&(R+=Q.length);var te=X.lastIndexOf(p);H=~te?X.length-te:H+X.length}function P(){var X={line:R,column:H};return function(Q){return Q.position=new L(X),ae(),Q}}function L(X){this.start=X,this.end={line:R,column:H},this.source=I.source}L.prototype.content=_;function M(X){var Q=new Error(I.source+":"+R+":"+H+": "+X);if(Q.reason=X,Q.filename=I.source,Q.line=R,Q.column=H,Q.source=_,!I.silent)throw Q}function j(X){var Q=X.exec(_);if(Q){var te=Q[0];return k(te),_=_.slice(te.length),Q}}function ae(){j(r)}function V(X){var Q;for(X=X||[];Q=A();)Q!==!1&&X.push(Q);return X}function A(){var X=P();if(!(m!=_.charAt(0)||b!=_.charAt(1))){for(var Q=2;E!=_.charAt(Q)&&(b!=_.charAt(Q)||m!=_.charAt(Q+1));)++Q;if(Q+=2,E===_.charAt(Q-1))return M("End of comment missing");var te=_.slice(2,Q-2);return H+=2,k(te),_=_.slice(Q),H+=2,X({type:S,comment:te})}}function Y(){var X=P(),Q=j(i);if(Q){if(A(),!j(l))return M("property missing ':'");var te=j(s),K=X({type:y,property:O(Q[0].replace(e,E)),value:te?O(te[0].replace(e,E)):E});return j(c),K}}function W(){var X=[];V(X);for(var Q;Q=Y();)Q!==!1&&(X.push(Q),V(X));return X}return ae(),W()};function O(_){return _?_.replace(d,E):E}return Hf}var Qm;function JC(){if(Qm)return $i;Qm=1;var e=$i&&$i.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty($i,"__esModule",{value:!0}),$i.default=r;var t=e(ZC());function r(i,l){var s=null;if(!i||typeof i!="string")return s;var c=(0,t.default)(i),d=typeof l=="function";return c.forEach(function(p){if(p.type==="declaration"){var m=p.property,b=p.value;d?l(m,b,p):b&&(s=s||{},s[m]=b)}}),s}return $i}var e6=JC();const Km=ur(e6),t6=Km.default||Km,ms=Wm("end"),Ur=Wm("start");function Wm(e){return t;function t(r){const i=r&&r.position&&r.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function n6(e){const t=Ur(e),r=ms(e);if(t&&r)return{start:t,end:r}}function ul(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Zm(e.position):"start"in e||"end"in e?Zm(e):"line"in e||"column"in e?Ff(e):""}function Ff(e){return Jm(e&&e.line)+":"+Jm(e&&e.column)}function Zm(e){return Ff(e&&e.start)+"-"+Ff(e&&e.end)}function Jm(e){return e&&typeof e=="number"?e:1}class An extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let l="",s={},c=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof t=="string"?l=t:!s.cause&&t&&(c=!0,l=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof i=="string"){const p=i.indexOf(":");p===-1?s.ruleId=i:(s.source=i.slice(0,p),s.ruleId=i.slice(p+1))}if(!s.place&&s.ancestors&&s.ancestors){const p=s.ancestors[s.ancestors.length-1];p&&(s.place=p.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=l,this.line=d?d.line:void 0,this.name=ul(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=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}An.prototype.file="",An.prototype.name="",An.prototype.reason="",An.prototype.message="",An.prototype.stack="",An.prototype.column=void 0,An.prototype.line=void 0,An.prototype.ancestors=void 0,An.prototype.cause=void 0,An.prototype.fatal=void 0,An.prototype.place=void 0,An.prototype.ruleId=void 0,An.prototype.source=void 0;const zf={}.hasOwnProperty,r6=new Map,a6=/[A-Z]/g,i6=/-([a-z])/g,u6=new Set(["table","tbody","thead","tfoot","tr"]),l6=new Set(["td","th"]),e1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function o6(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=g6(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=m6(r,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?il:$m,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=t1(l,e,void 0);return s&&typeof s!="string"?s:l.create(e,l.Fragment,{children:s||void 0},void 0)}function t1(e,t,r){if(t.type==="element")return s6(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return c6(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return d6(e,t,r);if(t.type==="mdxjsEsm")return f6(e,t);if(t.type==="root")return h6(e,t,r);if(t.type==="text")return p6(e,t)}function s6(e,t,r){const i=e.schema;let l=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(l=il,e.schema=l),e.ancestors.push(t);const s=r1(e,t.tagName,!1),c=b6(e,t);let d=jf(e,t);return u6.has(t.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!YC(p):!0})),n1(e,c,s,t),Yf(c,d),e.ancestors.pop(),e.schema=i,e.create(t,s,c,r)}function c6(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}ll(e,t.position)}function f6(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ll(e,t.position)}function d6(e,t,r){const i=e.schema;let l=i;t.name==="svg"&&i.space==="html"&&(l=il,e.schema=l),e.ancestors.push(t);const s=t.name===null?e.Fragment:r1(e,t.name,!0),c=E6(e,t),d=jf(e,t);return n1(e,c,s,t),Yf(c,d),e.ancestors.pop(),e.schema=i,e.create(t,s,c,r)}function h6(e,t,r){const i={};return Yf(i,jf(e,t)),e.create(t,e.Fragment,i,r)}function p6(e,t){return t.value}function n1(e,t,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=i)}function Yf(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function m6(e,t,r){return i;function i(l,s,c,d){const m=Array.isArray(c.children)?r:t;return d?m(s,c,d):m(s,c)}}function g6(e,t){return r;function r(i,l,s,c){const d=Array.isArray(s.children),p=Ur(i);return t(l,s,c,d,{columnNumber:p?p.column-1:void 0,fileName:e,lineNumber:p?p.line:void 0},void 0)}}function b6(e,t){const r={};let i,l;for(l in t.properties)if(l!=="children"&&zf.call(t.properties,l)){const s=y6(e,l,t.properties[l]);if(s){const[c,d]=s;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&l6.has(t.tagName)?i=d:r[c]=d}}if(i){const s=r.style||(r.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function E6(e,t){const r={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const s=i.data.estree.body[0];s.type;const c=s.expression;c.type;const d=c.properties[0];d.type,Object.assign(r,e.evaluater.evaluateExpression(d.argument))}else ll(e,t.position);else{const l=i.name;let s;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const d=i.value.data.estree.body[0];d.type,s=e.evaluater.evaluateExpression(d.expression)}else ll(e,t.position);else s=i.value===null?!0:i.value;r[l]=s}return r}function jf(e,t){const r=[];let i=-1;const l=e.passKeys?new Map:r6;for(;++i<t.children.length;){const s=t.children[i];let c;if(e.passKeys){const p=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(p){const m=l.get(p)||0;c=p+"-"+m,l.set(p,m+1)}}const d=t1(e,s,c);d!==void 0&&r.push(d)}return r}function y6(e,t,r){const i=Vm(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?Dm(r):Gm(r)),i.property==="style"){let l=typeof r=="object"?r:T6(e,String(r));return e.stylePropertyNameCase==="css"&&(l=S6(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&i.space?WC[i.property]||i.property:i.attribute,r]}}function T6(e,t){const r={};try{t6(t,i)}catch(l){if(!e.ignoreInvalidStyle){const s=l,c=new An("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:s,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw c.file=e.filePath||void 0,c.url=e1+"#cannot-parse-style-attribute",c}}return r;function i(l,s){let c=l;c.slice(0,2)!=="--"&&(c.slice(0,4)==="-ms-"&&(c="ms-"+c.slice(4)),c=c.replace(i6,A6)),r[c]=s}}function r1(e,t,r){let i;if(!r)i={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let s=-1,c;for(;++s<l.length;){const d=Lm(l[s])?{type:"Identifier",name:l[s]}:{type:"Literal",value:l[s]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(s&&d.type==="Literal"),optional:!1}:d}i=c}else i=Lm(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const l=i.value;return zf.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(i);ll(e)}function ll(e,t){const r=new An("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=e1+"#cannot-handle-mdx-estrees-without-createevaluater",r}function S6(e){const t={};let r;for(r in e)zf.call(e,r)&&(t[C6(r)]=e[r]);return t}function C6(e){let t=e.replace(a6,x6);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function A6(e,t){return t.toUpperCase()}function x6(e){return"-"+e.toLowerCase()}const Vf={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"]};var $f={exports:{}},ol={};/**
48
+ */var mm;function EC(){if(mm)return yt;mm=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,b=e?Symbol.for("react.forward_ref"):60112,E=e?Symbol.for("react.suspense"):60113,S=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,O=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,I=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,H=e?Symbol.for("react.scope"):60119;function k(L){if(typeof L=="object"&&L!==null){var M=L.$$typeof;switch(M){case t:switch(L=L.type,L){case p:case m:case i:case s:case l:case E:return L;default:switch(L=L&&L.$$typeof,L){case d:case b:case O:case y:case c:return L;default:return M}}case r:return M}}}function P(L){return k(L)===m}return yt.AsyncMode=p,yt.ConcurrentMode=m,yt.ContextConsumer=d,yt.ContextProvider=c,yt.Element=t,yt.ForwardRef=b,yt.Fragment=i,yt.Lazy=O,yt.Memo=y,yt.Portal=r,yt.Profiler=s,yt.StrictMode=l,yt.Suspense=E,yt.isAsyncMode=function(L){return P(L)||k(L)===p},yt.isConcurrentMode=P,yt.isContextConsumer=function(L){return k(L)===d},yt.isContextProvider=function(L){return k(L)===c},yt.isElement=function(L){return typeof L=="object"&&L!==null&&L.$$typeof===t},yt.isForwardRef=function(L){return k(L)===b},yt.isFragment=function(L){return k(L)===i},yt.isLazy=function(L){return k(L)===O},yt.isMemo=function(L){return k(L)===y},yt.isPortal=function(L){return k(L)===r},yt.isProfiler=function(L){return k(L)===s},yt.isStrictMode=function(L){return k(L)===l},yt.isSuspense=function(L){return k(L)===E},yt.isValidElementType=function(L){return typeof L=="string"||typeof L=="function"||L===i||L===m||L===s||L===l||L===E||L===S||typeof L=="object"&&L!==null&&(L.$$typeof===O||L.$$typeof===y||L.$$typeof===c||L.$$typeof===d||L.$$typeof===b||L.$$typeof===I||L.$$typeof===v||L.$$typeof===H||L.$$typeof===_)},yt.typeOf=k,yt}var gm;function yC(){return gm||(gm=1,Df.exports=EC()),Df.exports}var Lf,bm;function TC(){if(bm)return Lf;bm=1;var e=yC(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=i,s[e.Memo]=l;function c(O){return e.isMemo(O)?l:s[O.$$typeof]||t}var d=Object.defineProperty,p=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,b=Object.getOwnPropertyDescriptor,E=Object.getPrototypeOf,S=Object.prototype;function y(O,_,I){if(typeof _!="string"){if(S){var v=E(_);v&&v!==S&&y(O,v,I)}var H=p(_);m&&(H=H.concat(m(_)));for(var k=c(O),P=c(_),L=0;L<H.length;++L){var M=H[L];if(!r[M]&&!(I&&I[M])&&!(P&&P[M])&&!(k&&k[M])){var j=b(_,M);try{d(O,M,j)}catch{}}}}return O}return Lf=y,Lf}TC();var SC=!0;function CC(e,t,r){var i="";return r.split(" ").forEach(function(l){e[l]!==void 0?t.push(e[l]+";"):l&&(i+=l+" ")}),i}var Em=function(t,r,i){var l=t.key+"-"+r.name;(i===!1||SC===!1)&&t.registered[l]===void 0&&(t.registered[l]=r.styles)},ym=function(t,r,i){Em(t,r,i);var l=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+l:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function AC(e){for(var t=0,r,i=0,l=e.length;l>=4;++i,l-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var xC={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},_C=/[A-Z]|^ms/g,vC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Tm=function(t){return t.charCodeAt(1)===45},Sm=function(t){return t!=null&&typeof t!="boolean"},If=Jp(function(e){return Tm(e)?e:e.replace(_C,"-$&").toLowerCase()}),Cm=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(vC,function(i,l,s){return Pr={name:l,styles:s,next:Pr},l})}return xC[t]!==1&&!Tm(t)&&typeof r=="number"&&r!==0?r+"px":r};function nl(e,t,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var l=r;if(l.anim===1)return Pr={name:l.name,styles:l.styles,next:Pr},l.name;var s=r;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)Pr={name:c.name,styles:c.styles,next:Pr},c=c.next;var d=s.styles+";";return d}return RC(e,t,r)}case"function":{if(e!==void 0){var p=Pr,m=r(e);return Pr=p,nl(e,t,m)}break}}var b=r;if(t==null)return b;var E=t[b];return E!==void 0?E:b}function RC(e,t,r){var i="";if(Array.isArray(r))for(var l=0;l<r.length;l++)i+=nl(e,t,r[l])+";";else for(var s in r){var c=r[s];if(typeof c!="object"){var d=c;t!=null&&t[d]!==void 0?i+=s+"{"+t[d]+"}":Sm(d)&&(i+=If(s)+":"+Cm(s,d)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var p=0;p<c.length;p++)Sm(c[p])&&(i+=If(s)+":"+Cm(s,c[p])+";");else{var m=nl(e,t,c);switch(s){case"animation":case"animationName":{i+=If(s)+":"+m+";";break}default:i+=s+"{"+m+"}"}}}return i}var Am=/label:\s*([^\s;{]+)\s*(;|$)/g,Pr;function hs(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,l="";Pr=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,l+=nl(r,t,s);else{var c=s;l+=c[0]}for(var d=1;d<e.length;d++)if(l+=nl(r,t,e[d]),i){var p=s;l+=p[d]}Am.lastIndex=0;for(var m="",b;(b=Am.exec(l))!==null;)m+="-"+b[1];var E=AC(l)+m;return{name:E,styles:l,next:Pr}}var OC=function(t){return t()},xm=$p.useInsertionEffect?$p.useInsertionEffect:!1,NC=xm||OC,_m=xm||x.useLayoutEffect,vm=x.createContext(typeof HTMLElement<"u"?bC({key:"css"}):null),kC=vm.Provider,Rm=function(t){return x.forwardRef(function(r,i){var l=x.useContext(vm);return t(r,l,i)})},rl=x.createContext({}),DC=function(){return x.useContext(rl)},LC=Rm(function(e,t){var r=e.styles,i=hs([r],void 0,x.useContext(rl)),l=x.useRef();return _m(function(){var s=t.key+"-global",c=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),d=!1,p=document.querySelector('style[data-emotion="'+s+" "+i.name+'"]');return t.sheet.tags.length&&(c.before=t.sheet.tags[0]),p!==null&&(d=!0,p.setAttribute("data-emotion",s),c.hydrate([p])),l.current=[c,d],function(){c.flush()}},[t]),_m(function(){var s=l.current,c=s[0],d=s[1];if(d){s[1]=!1;return}if(i.next!==void 0&&ym(t,i.next,!0),c.tags.length){var p=c.tags[c.tags.length-1].nextElementSibling;c.before=p,c.flush()}t.insert("",i,c,!1)},[t,i.name]),null});function ps(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return hs(t)}var wf=function(){var t=ps.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},IC=K3,wC=function(t){return t!=="theme"},Om=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?IC:wC},Nm=function(t,r,i){var l;if(r){var s=r.shouldForwardProp;l=t.__emotion_forwardProp&&s?function(c){return t.__emotion_forwardProp(c)&&s(c)}:s}return typeof l!="function"&&i&&(l=t.__emotion_forwardProp),l},MC=function(t){var r=t.cache,i=t.serialized,l=t.isStringTag;return Em(r,i,l),NC(function(){return ym(r,i,l)}),null},BC=function e(t,r){var i=t.__emotion_real===t,l=i&&t.__emotion_base||t,s,c;r!==void 0&&(s=r.label,c=r.target);var d=Nm(t,r,i),p=d||Om(l),m=!p("as");return function(){var b=arguments,E=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&E.push("label:"+s+";"),b[0]==null||b[0].raw===void 0)E.push.apply(E,b);else{E.push(b[0][0]);for(var S=b.length,y=1;y<S;y++)E.push(b[y],b[0][y])}var O=Rm(function(_,I,v){var H=m&&_.as||l,k="",P=[],L=_;if(_.theme==null){L={};for(var M in _)L[M]=_[M];L.theme=x.useContext(rl)}typeof _.className=="string"?k=CC(I.registered,P,_.className):_.className!=null&&(k=_.className+" ");var j=hs(E.concat(P),I.registered,L);k+=I.key+"-"+j.name,c!==void 0&&(k+=" "+c);var ae=m&&d===void 0?Om(H):p,V={};for(var A in _)m&&A==="as"||ae(A)&&(V[A]=_[A]);return V.className=k,v&&(V.ref=v),x.createElement(x.Fragment,null,x.createElement(MC,{cache:I,serialized:j,isStringTag:typeof H=="string"}),x.createElement(H,V))});return O.displayName=s!==void 0?s:"Styled("+(typeof l=="string"?l:l.displayName||l.name||"Component")+")",O.defaultProps=t.defaultProps,O.__emotion_real=O,O.__emotion_base=l,O.__emotion_styles=E,O.__emotion_forwardProp=d,Object.defineProperty(O,"toString",{value:function(){return"."+c}}),O.withComponent=function(_,I){return e(_,is({},r,I,{shouldForwardProp:Nm(O,I,!0)})).apply(void 0,E)},O}},PC=["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"],Fe=BC.bind();PC.forEach(function(e){Fe[e]=Fe(e)});function VM(){}function $M(){}function km(e){const t=[],r=String(e||"");let i=r.indexOf(","),l=0,s=!1;for(;!s;){i===-1&&(i=r.length,s=!0);const c=r.slice(l,i).trim();(c||!s)&&t.push(c),l=i+1,i=r.indexOf(",",l)}return t}function Dm(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const UC=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,HC=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,FC={};function Lm(e,t){return(FC.jsx?HC:UC).test(e)}const zC=/[ \t\n\f\r]/g;function YC(e){return typeof e=="object"?e.type==="text"?Im(e.value):!1:Im(e)}function Im(e){return e.replace(zC,"")===""}let al=class{constructor(t,r,i){this.property=t,this.normal=r,i&&(this.space=i)}};al.prototype.property={},al.prototype.normal={},al.prototype.space=null;function wm(e,t){const r={},i={};let l=-1;for(;++l<e.length;)Object.assign(r,e[l].property),Object.assign(i,e[l].normal);return new al(r,i,t)}function Mf(e){return e.toLowerCase()}let or=class{constructor(t,r){this.property=t,this.attribute=r}};or.prototype.space=null,or.prototype.boolean=!1,or.prototype.booleanish=!1,or.prototype.overloadedBoolean=!1,or.prototype.number=!1,or.prototype.commaSeparated=!1,or.prototype.spaceSeparated=!1,or.prototype.commaOrSpaceSeparated=!1,or.prototype.mustUseProperty=!1,or.prototype.defined=!1;let jC=0;const We=ii(),Jt=ii(),Mm=ii(),Ee=ii(),kt=ii(),ji=ii(),Xn=ii();function ii(){return 2**++jC}const Bf=Object.freeze(Object.defineProperty({__proto__:null,boolean:We,booleanish:Jt,commaOrSpaceSeparated:Xn,commaSeparated:ji,number:Ee,overloadedBoolean:Mm,spaceSeparated:kt},Symbol.toStringTag,{value:"Module"})),Pf=Object.keys(Bf);let Uf=class extends or{constructor(t,r,i,l){let s=-1;if(super(t,r),Bm(this,"space",l),typeof i=="number")for(;++s<Pf.length;){const c=Pf[s];Bm(this,Pf[s],(i&Bf[c])===Bf[c])}}};Uf.prototype.defined=!0;function Bm(e,t,r){r&&(e[t]=r)}const VC={}.hasOwnProperty;function Vi(e){const t={},r={};let i;for(i in e.properties)if(VC.call(e.properties,i)){const l=e.properties[i],s=new Uf(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,r[Mf(i)]=i,r[Mf(s.attribute)]=i}return new al(t,r,e.space)}const Pm=Vi({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Um=Vi({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Hm(e,t){return t in e?e[t]:t}function Fm(e,t){return Hm(e,t.toLowerCase())}const zm=Vi({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Fm,properties:{xmlns:null,xmlnsXLink:null}}),Ym=Vi({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Jt,ariaAutoComplete:null,ariaBusy:Jt,ariaChecked:Jt,ariaColCount:Ee,ariaColIndex:Ee,ariaColSpan:Ee,ariaControls:kt,ariaCurrent:null,ariaDescribedBy:kt,ariaDetails:null,ariaDisabled:Jt,ariaDropEffect:kt,ariaErrorMessage:null,ariaExpanded:Jt,ariaFlowTo:kt,ariaGrabbed:Jt,ariaHasPopup:null,ariaHidden:Jt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:kt,ariaLevel:Ee,ariaLive:null,ariaModal:Jt,ariaMultiLine:Jt,ariaMultiSelectable:Jt,ariaOrientation:null,ariaOwns:kt,ariaPlaceholder:null,ariaPosInSet:Ee,ariaPressed:Jt,ariaReadOnly:Jt,ariaRelevant:null,ariaRequired:Jt,ariaRoleDescription:kt,ariaRowCount:Ee,ariaRowIndex:Ee,ariaRowSpan:Ee,ariaSelected:Jt,ariaSetSize:Ee,ariaSort:null,ariaValueMax:Ee,ariaValueMin:Ee,ariaValueNow:Ee,ariaValueText:null,role:null}}),$C=Vi({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Fm,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ji,acceptCharset:kt,accessKey:kt,action:null,allow:null,allowFullScreen:We,allowPaymentRequest:We,allowUserMedia:We,alt:null,as:null,async:We,autoCapitalize:null,autoComplete:kt,autoFocus:We,autoPlay:We,blocking:kt,capture:null,charSet:null,checked:We,cite:null,className:kt,cols:Ee,colSpan:null,content:null,contentEditable:Jt,controls:We,controlsList:kt,coords:Ee|ji,crossOrigin:null,data:null,dateTime:null,decoding:null,default:We,defer:We,dir:null,dirName:null,disabled:We,download:Mm,draggable:Jt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:We,formTarget:null,headers:kt,height:Ee,hidden:We,high:Ee,href:null,hrefLang:null,htmlFor:kt,httpEquiv:kt,id:null,imageSizes:null,imageSrcSet:null,inert:We,inputMode:null,integrity:null,is:null,isMap:We,itemId:null,itemProp:kt,itemRef:kt,itemScope:We,itemType:kt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:We,low:Ee,manifest:null,max:null,maxLength:Ee,media:null,method:null,min:null,minLength:Ee,multiple:We,muted:We,name:null,nonce:null,noModule:We,noValidate:We,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:We,optimum:Ee,pattern:null,ping:kt,placeholder:null,playsInline:We,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:We,referrerPolicy:null,rel:kt,required:We,reversed:We,rows:Ee,rowSpan:Ee,sandbox:kt,scope:null,scoped:We,seamless:We,selected:We,shadowRootClonable:We,shadowRootDelegatesFocus:We,shadowRootMode:null,shape:null,size:Ee,sizes:null,slot:null,span:Ee,spellCheck:Jt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ee,step:null,style:null,tabIndex:Ee,target:null,title:null,translate:null,type:null,typeMustMatch:We,useMap:null,value:Jt,width:Ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:kt,axis:null,background:null,bgColor:null,border:Ee,borderColor:null,bottomMargin:Ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:We,declare:We,event:null,face:null,frame:null,frameBorder:null,hSpace:Ee,leftMargin:Ee,link:null,longDesc:null,lowSrc:null,marginHeight:Ee,marginWidth:Ee,noResize:We,noHref:We,noShade:We,noWrap:We,object:null,profile:null,prompt:null,rev:null,rightMargin:Ee,rules:null,scheme:null,scrolling:Jt,standby:null,summary:null,text:null,topMargin:Ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:We,disableRemotePlayback:We,prefix:null,property:null,results:Ee,security:null,unselectable:null}}),qC=Vi({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:Hm,properties:{about:Xn,accentHeight:Ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ee,amplitude:Ee,arabicForm:null,ascent:Ee,attributeName:null,attributeType:null,azimuth:Ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ee,by:null,calcMode:null,capHeight:Ee,className:kt,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:Ee,diffuseConstant:Ee,direction:null,display:null,dur:null,divisor:Ee,dominantBaseline:null,download:We,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ee,enableBackground:null,end:null,event:null,exponent:Ee,externalResourcesRequired:null,fill:null,fillOpacity:Ee,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:ji,g2:ji,glyphName:ji,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ee,horizOriginX:Ee,horizOriginY:Ee,id:null,ideographic:Ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ee,k:Ee,k1:Ee,k2:Ee,k3:Ee,k4:Ee,kernelMatrix:Xn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ee,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:Ee,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:Ee,overlineThickness:Ee,paintOrder:null,panose1:null,path:null,pathLength:Ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:kt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ee,pointsAtY:Ee,pointsAtZ:Ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Xn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Xn,rev:Xn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Xn,requiredFeatures:Xn,requiredFonts:Xn,requiredFormats:Xn,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:Ee,specularExponent:Ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ee,strikethroughThickness:Ee,string:null,stroke:null,strokeDashArray:Xn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ee,strokeOpacity:Ee,strokeWidth:null,style:null,surfaceScale:Ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Xn,tabIndex:Ee,tableValues:null,target:null,targetX:Ee,targetY:Ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Xn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ee,underlineThickness:Ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ee,values:null,vAlphabetic:Ee,vMathematical:Ee,vectorEffect:null,vHanging:Ee,vIdeographic:Ee,version:null,vertAdvY:Ee,vertOriginX:Ee,vertOriginY:Ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),GC=/^data[-\w.:]+$/i,jm=/-[a-z]/g,XC=/[A-Z]/g;function Vm(e,t){const r=Mf(t);let i=t,l=or;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&GC.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(jm,KC);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!jm.test(s)){let c=s.replace(XC,QC);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}l=Uf}return new l(i,t)}function QC(e){return"-"+e.toLowerCase()}function KC(e){return e.charAt(1).toUpperCase()}const WC={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"},$m=wm([Um,Pm,zm,Ym,$C],"html"),il=wm([Um,Pm,zm,Ym,qC],"svg");function qm(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Gm(e){return e.join(" ").trim()}var $i={},Hf,Xm;function ZC(){if(Xm)return Hf;Xm=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,p=`
49
+ `,m="/",b="*",E="",S="comment",y="declaration";Hf=function(_,I){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];I=I||{};var v=1,H=1;function k(Q){var G=Q.match(t);G&&(v+=G.length);var ee=Q.lastIndexOf(p);H=~ee?Q.length-ee:H+Q.length}function P(){var Q={line:v,column:H};return function(G){return G.position=new L(Q),ae(),G}}function L(Q){this.start=Q,this.end={line:v,column:H},this.source=I.source}L.prototype.content=_;function M(Q){var G=new Error(I.source+":"+v+":"+H+": "+Q);if(G.reason=Q,G.filename=I.source,G.line=v,G.column=H,G.source=_,!I.silent)throw G}function j(Q){var G=Q.exec(_);if(G){var ee=G[0];return k(ee),_=_.slice(ee.length),G}}function ae(){j(r)}function V(Q){var G;for(Q=Q||[];G=A();)G!==!1&&Q.push(G);return Q}function A(){var Q=P();if(!(m!=_.charAt(0)||b!=_.charAt(1))){for(var G=2;E!=_.charAt(G)&&(b!=_.charAt(G)||m!=_.charAt(G+1));)++G;if(G+=2,E===_.charAt(G-1))return M("End of comment missing");var ee=_.slice(2,G-2);return H+=2,k(ee),_=_.slice(G),H+=2,Q({type:S,comment:ee})}}function Y(){var Q=P(),G=j(i);if(G){if(A(),!j(l))return M("property missing ':'");var ee=j(s),K=Q({type:y,property:O(G[0].replace(e,E)),value:ee?O(ee[0].replace(e,E)):E});return j(c),K}}function W(){var Q=[];V(Q);for(var G;G=Y();)G!==!1&&(Q.push(G),V(Q));return Q}return ae(),W()};function O(_){return _?_.replace(d,E):E}return Hf}var Qm;function JC(){if(Qm)return $i;Qm=1;var e=$i&&$i.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty($i,"__esModule",{value:!0}),$i.default=r;var t=e(ZC());function r(i,l){var s=null;if(!i||typeof i!="string")return s;var c=(0,t.default)(i),d=typeof l=="function";return c.forEach(function(p){if(p.type==="declaration"){var m=p.property,b=p.value;d?l(m,b,p):b&&(s=s||{},s[m]=b)}}),s}return $i}var e6=JC();const Km=ur(e6),t6=Km.default||Km,ms=Wm("end"),Ur=Wm("start");function Wm(e){return t;function t(r){const i=r&&r.position&&r.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function n6(e){const t=Ur(e),r=ms(e);if(t&&r)return{start:t,end:r}}function ul(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Zm(e.position):"start"in e||"end"in e?Zm(e):"line"in e||"column"in e?Ff(e):""}function Ff(e){return Jm(e&&e.line)+":"+Jm(e&&e.column)}function Zm(e){return Ff(e&&e.start)+"-"+Ff(e&&e.end)}function Jm(e){return e&&typeof e=="number"?e:1}class An extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let l="",s={},c=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof t=="string"?l=t:!s.cause&&t&&(c=!0,l=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof i=="string"){const p=i.indexOf(":");p===-1?s.ruleId=i:(s.source=i.slice(0,p),s.ruleId=i.slice(p+1))}if(!s.place&&s.ancestors&&s.ancestors){const p=s.ancestors[s.ancestors.length-1];p&&(s.place=p.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=l,this.line=d?d.line:void 0,this.name=ul(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=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}An.prototype.file="",An.prototype.name="",An.prototype.reason="",An.prototype.message="",An.prototype.stack="",An.prototype.column=void 0,An.prototype.line=void 0,An.prototype.ancestors=void 0,An.prototype.cause=void 0,An.prototype.fatal=void 0,An.prototype.place=void 0,An.prototype.ruleId=void 0,An.prototype.source=void 0;const zf={}.hasOwnProperty,r6=new Map,a6=/[A-Z]/g,i6=/-([a-z])/g,u6=new Set(["table","tbody","thead","tfoot","tr"]),l6=new Set(["td","th"]),e1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function o6(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=g6(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=m6(r,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?il:$m,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=t1(l,e,void 0);return s&&typeof s!="string"?s:l.create(e,l.Fragment,{children:s||void 0},void 0)}function t1(e,t,r){if(t.type==="element")return s6(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return c6(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return d6(e,t,r);if(t.type==="mdxjsEsm")return f6(e,t);if(t.type==="root")return h6(e,t,r);if(t.type==="text")return p6(e,t)}function s6(e,t,r){const i=e.schema;let l=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(l=il,e.schema=l),e.ancestors.push(t);const s=r1(e,t.tagName,!1),c=b6(e,t);let d=jf(e,t);return u6.has(t.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!YC(p):!0})),n1(e,c,s,t),Yf(c,d),e.ancestors.pop(),e.schema=i,e.create(t,s,c,r)}function c6(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}ll(e,t.position)}function f6(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ll(e,t.position)}function d6(e,t,r){const i=e.schema;let l=i;t.name==="svg"&&i.space==="html"&&(l=il,e.schema=l),e.ancestors.push(t);const s=t.name===null?e.Fragment:r1(e,t.name,!0),c=E6(e,t),d=jf(e,t);return n1(e,c,s,t),Yf(c,d),e.ancestors.pop(),e.schema=i,e.create(t,s,c,r)}function h6(e,t,r){const i={};return Yf(i,jf(e,t)),e.create(t,e.Fragment,i,r)}function p6(e,t){return t.value}function n1(e,t,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=i)}function Yf(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function m6(e,t,r){return i;function i(l,s,c,d){const m=Array.isArray(c.children)?r:t;return d?m(s,c,d):m(s,c)}}function g6(e,t){return r;function r(i,l,s,c){const d=Array.isArray(s.children),p=Ur(i);return t(l,s,c,d,{columnNumber:p?p.column-1:void 0,fileName:e,lineNumber:p?p.line:void 0},void 0)}}function b6(e,t){const r={};let i,l;for(l in t.properties)if(l!=="children"&&zf.call(t.properties,l)){const s=y6(e,l,t.properties[l]);if(s){const[c,d]=s;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&l6.has(t.tagName)?i=d:r[c]=d}}if(i){const s=r.style||(r.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function E6(e,t){const r={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const s=i.data.estree.body[0];s.type;const c=s.expression;c.type;const d=c.properties[0];d.type,Object.assign(r,e.evaluater.evaluateExpression(d.argument))}else ll(e,t.position);else{const l=i.name;let s;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const d=i.value.data.estree.body[0];d.type,s=e.evaluater.evaluateExpression(d.expression)}else ll(e,t.position);else s=i.value===null?!0:i.value;r[l]=s}return r}function jf(e,t){const r=[];let i=-1;const l=e.passKeys?new Map:r6;for(;++i<t.children.length;){const s=t.children[i];let c;if(e.passKeys){const p=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(p){const m=l.get(p)||0;c=p+"-"+m,l.set(p,m+1)}}const d=t1(e,s,c);d!==void 0&&r.push(d)}return r}function y6(e,t,r){const i=Vm(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?Dm(r):Gm(r)),i.property==="style"){let l=typeof r=="object"?r:T6(e,String(r));return e.stylePropertyNameCase==="css"&&(l=S6(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&i.space?WC[i.property]||i.property:i.attribute,r]}}function T6(e,t){const r={};try{t6(t,i)}catch(l){if(!e.ignoreInvalidStyle){const s=l,c=new An("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:s,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw c.file=e.filePath||void 0,c.url=e1+"#cannot-parse-style-attribute",c}}return r;function i(l,s){let c=l;c.slice(0,2)!=="--"&&(c.slice(0,4)==="-ms-"&&(c="ms-"+c.slice(4)),c=c.replace(i6,A6)),r[c]=s}}function r1(e,t,r){let i;if(!r)i={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let s=-1,c;for(;++s<l.length;){const d=Lm(l[s])?{type:"Identifier",name:l[s]}:{type:"Literal",value:l[s]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(s&&d.type==="Literal"),optional:!1}:d}i=c}else i=Lm(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const l=i.value;return zf.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(i);ll(e)}function ll(e,t){const r=new An("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=e1+"#cannot-handle-mdx-estrees-without-createevaluater",r}function S6(e){const t={};let r;for(r in e)zf.call(e,r)&&(t[C6(r)]=e[r]);return t}function C6(e){let t=e.replace(a6,x6);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function A6(e,t){return t.toUpperCase()}function x6(e){return"-"+e.toLowerCase()}const Vf={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"]};var $f={exports:{}},ol={};/**
50
50
  * @license React
51
51
  * react-jsx-runtime.production.js
52
52
  *
@@ -54,19 +54,19 @@ Error generating stack: `+u.message+`
54
54
  *
55
55
  * This source code is licensed under the MIT license found in the
56
56
  * LICENSE file in the root directory of this source tree.
57
- */var a1;function _6(){if(a1)return ol;a1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(i,l,s){var c=null;if(s!==void 0&&(c=""+s),l.key!==void 0&&(c=""+l.key),"key"in l){s={};for(var d in l)d!=="key"&&(s[d]=l[d])}else s=l;return l=s.ref,{$$typeof:e,type:i,key:c,ref:l!==void 0?l:null,props:s}}return ol.Fragment=t,ol.jsx=r,ol.jsxs=r,ol}var i1;function v6(){return i1||(i1=1,$f.exports=_6()),$f.exports}var me=v6();const R6={};function O6(e,t){const r=R6,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,l=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return u1(e,i,l)}function u1(e,t,r){if(N6(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return l1(e.children,t,r)}return Array.isArray(e)?l1(e,t,r):""}function l1(e,t,r){const i=[];let l=-1;for(;++l<e.length;)i[l]=u1(e[l],t,r);return i.join("")}function N6(e){return!!(e&&typeof e=="object")}const o1=document.createElement("i");function qf(e){const t="&"+e+";";o1.innerHTML=t;const r=o1.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function ta(e,t,r,i){const l=e.length;let s=0,c;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,r=r>0?r:0,i.length<1e4)c=Array.from(i),c.unshift(t,r),e.splice(...c);else for(r&&e.splice(t,r);s<i.length;)c=i.slice(s,s+1e4),c.unshift(t,0),e.splice(...c),s+=1e4,t+=1e4}function sr(e,t){return e.length>0?(ta(e,e.length,0,t),e):t}const s1={}.hasOwnProperty;function k6(e){const t={};let r=-1;for(;++r<e.length;)D6(t,e[r]);return t}function D6(e,t){let r;for(r in t){const l=(s1.call(e,r)?e[r]:void 0)||(e[r]={}),s=t[r];let c;if(s)for(c in s){s1.call(l,c)||(l[c]=[]);const d=s[c];L6(l[c],Array.isArray(d)?d:d?[d]:[])}}}function L6(e,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);ta(e,0,0,i)}function c1(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function qi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Hr=_a(/[A-Za-z]/),Qn=_a(/[\dA-Za-z]/),I6=_a(/[#-'*+\--9=?A-Z^-~]/);function Gf(e){return e!==null&&(e<32||e===127)}const Xf=_a(/\d/),w6=_a(/[\dA-Fa-f]/),M6=_a(/[!-/:-@[-`{-~]/);function Ve(e){return e!==null&&e<-2}function Ln(e){return e!==null&&(e<0||e===32)}function Et(e){return e===-2||e===-1||e===32}const B6=_a(new RegExp("\\p{P}|\\p{S}","u")),P6=_a(/\s/);function _a(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Gi(e){const t=[];let r=-1,i=0,l=0;for(;++r<e.length;){const s=e.charCodeAt(r);let c="";if(s===37&&Qn(e.charCodeAt(r+1))&&Qn(e.charCodeAt(r+2)))l=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const d=e.charCodeAt(r+1);s<56320&&d>56319&&d<57344?(c=String.fromCharCode(s,d),l=1):c="�"}else c=String.fromCharCode(s);c&&(t.push(e.slice(i,r),encodeURIComponent(c)),i=r+l+1,c=""),l&&(r+=l,l=0)}return t.join("")+e.slice(i)}function Dt(e,t,r,i){const l=i?i-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(p){return Et(p)?(e.enter(r),d(p)):t(p)}function d(p){return Et(p)&&s++<l?(e.consume(p),d):(e.exit(r),t(p))}}const U6={tokenize:H6};function H6(e){const t=e.attempt(this.parser.constructs.contentInitial,i,l);let r;return t;function i(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Dt(e,t,"linePrefix")}function l(d){return e.enter("paragraph"),s(d)}function s(d){const p=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=p),r=p,c(d)}function c(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return Ve(d)?(e.consume(d),e.exit("chunkText"),s):(e.consume(d),c)}}const F6={tokenize:z6},f1={tokenize:Y6};function z6(e){const t=this,r=[];let i=0,l,s,c;return d;function d(k){if(i<r.length){const P=r[i];return t.containerState=P[1],e.attempt(P[0].continuation,p,m)(k)}return m(k)}function p(k){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&H();const P=t.events.length;let L=P,M;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){M=t.events[L][1].end;break}R(i);let j=P;for(;j<t.events.length;)t.events[j][1].end=Object.assign({},M),j++;return ta(t.events,L+1,0,t.events.slice(P)),t.events.length=j,m(k)}return d(k)}function m(k){if(i===r.length){if(!l)return S(k);if(l.currentConstruct&&l.currentConstruct.concrete)return O(k);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(f1,b,E)(k)}function b(k){return l&&H(),R(i),S(k)}function E(k){return t.parser.lazy[t.now().line]=i!==r.length,c=t.now().offset,O(k)}function S(k){return t.containerState={},e.attempt(f1,y,O)(k)}function y(k){return i++,r.push([t.currentConstruct,t.containerState]),S(k)}function O(k){if(k===null){l&&H(),R(0),e.consume(k);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:s,_tokenizer:l}),_(k)}function _(k){if(k===null){I(e.exit("chunkFlow"),!0),R(0),e.consume(k);return}return Ve(k)?(e.consume(k),I(e.exit("chunkFlow")),i=0,t.interrupt=void 0,d):(e.consume(k),_)}function I(k,P){const L=t.sliceStream(k);if(P&&L.push(null),k.previous=s,s&&(s.next=k),s=k,l.defineSkip(k.start),l.write(L),t.parser.lazy[k.start.line]){let M=l.events.length;for(;M--;)if(l.events[M][1].start.offset<c&&(!l.events[M][1].end||l.events[M][1].end.offset>c))return;const j=t.events.length;let ae=j,V,A;for(;ae--;)if(t.events[ae][0]==="exit"&&t.events[ae][1].type==="chunkFlow"){if(V){A=t.events[ae][1].end;break}V=!0}for(R(i),M=j;M<t.events.length;)t.events[M][1].end=Object.assign({},A),M++;ta(t.events,ae+1,0,t.events.slice(j)),t.events.length=M}}function R(k){let P=r.length;for(;P-- >k;){const L=r[P];t.containerState=L[1],L[0].exit.call(t,e)}r.length=k}function H(){l.write([null]),s=void 0,l=void 0,t.containerState._closeFlow=void 0}}function Y6(e,t,r){return Dt(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function d1(e){if(e===null||Ln(e)||P6(e))return 1;if(B6(e))return 2}function Qf(e,t,r){const i=[];let l=-1;for(;++l<e.length;){const s=e[l].resolveAll;s&&!i.includes(s)&&(t=s(t,r),i.push(s))}return t}const Kf={name:"attention",tokenize:V6,resolveAll:j6};function j6(e,t){let r=-1,i,l,s,c,d,p,m,b;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;p=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const E=Object.assign({},e[i][1].end),S=Object.assign({},e[r][1].start);h1(E,-p),h1(S,p),c={type:p>1?"strongSequence":"emphasisSequence",start:E,end:Object.assign({},e[i][1].end)},d={type:p>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:S},s={type:p>1?"strongText":"emphasisText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[r][1].start)},l={type:p>1?"strong":"emphasis",start:Object.assign({},c.start),end:Object.assign({},d.end)},e[i][1].end=Object.assign({},c.start),e[r][1].start=Object.assign({},d.end),m=[],e[i][1].end.offset-e[i][1].start.offset&&(m=sr(m,[["enter",e[i][1],t],["exit",e[i][1],t]])),m=sr(m,[["enter",l,t],["enter",c,t],["exit",c,t],["enter",s,t]]),m=sr(m,Qf(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),m=sr(m,[["exit",s,t],["enter",d,t],["exit",d,t],["exit",l,t]]),e[r][1].end.offset-e[r][1].start.offset?(b=2,m=sr(m,[["enter",e[r][1],t],["exit",e[r][1],t]])):b=0,ta(e,i-1,r-i+3,m),r=i+m.length-b-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function V6(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,l=d1(i);let s;return c;function c(p){return s=p,e.enter("attentionSequence"),d(p)}function d(p){if(p===s)return e.consume(p),d;const m=e.exit("attentionSequence"),b=d1(p),E=!b||b===2&&l||r.includes(p),S=!l||l===2&&b||r.includes(i);return m._open=!!(s===42?E:E&&(l||!S)),m._close=!!(s===42?S:S&&(b||!E)),t(p)}}function h1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const $6={name:"autolink",tokenize:q6};function q6(e,t,r){let i=0;return l;function l(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(y){return Hr(y)?(e.consume(y),c):y===64?r(y):m(y)}function c(y){return y===43||y===45||y===46||Qn(y)?(i=1,d(y)):m(y)}function d(y){return y===58?(e.consume(y),i=0,p):(y===43||y===45||y===46||Qn(y))&&i++<32?(e.consume(y),d):(i=0,m(y))}function p(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||Gf(y)?r(y):(e.consume(y),p)}function m(y){return y===64?(e.consume(y),b):I6(y)?(e.consume(y),m):r(y)}function b(y){return Qn(y)?E(y):r(y)}function E(y){return y===46?(e.consume(y),i=0,b):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):S(y)}function S(y){if((y===45||Qn(y))&&i++<63){const O=y===45?S:E;return e.consume(y),O}return r(y)}}const gs={tokenize:G6,partial:!0};function G6(e,t,r){return i;function i(s){return Et(s)?Dt(e,l,"linePrefix")(s):l(s)}function l(s){return s===null||Ve(s)?t(s):r(s)}}const p1={name:"blockQuote",tokenize:X6,continuation:{tokenize:Q6},exit:K6};function X6(e,t,r){const i=this;return l;function l(c){if(c===62){const d=i.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),s}return r(c)}function s(c){return Et(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}function Q6(e,t,r){const i=this;return l;function l(c){return Et(c)?Dt(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return e.attempt(p1,t,r)(c)}}function K6(e){e.exit("blockQuote")}const m1={name:"characterEscape",tokenize:W6};function W6(e,t,r){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),l}function l(s){return M6(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(s)}}const g1={name:"characterReference",tokenize:Z6};function Z6(e,t,r){const i=this;let l=0,s,c;return d;function d(E){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(E),e.exit("characterReferenceMarker"),p}function p(E){return E===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(E),e.exit("characterReferenceMarkerNumeric"),m):(e.enter("characterReferenceValue"),s=31,c=Qn,b(E))}function m(E){return E===88||E===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(E),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,c=w6,b):(e.enter("characterReferenceValue"),s=7,c=Xf,b(E))}function b(E){if(E===59&&l){const S=e.exit("characterReferenceValue");return c===Qn&&!qf(i.sliceSerialize(S))?r(E):(e.enter("characterReferenceMarker"),e.consume(E),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(E)&&l++<s?(e.consume(E),b):r(E)}}const b1={tokenize:eA,partial:!0},E1={name:"codeFenced",tokenize:J6,concrete:!0};function J6(e,t,r){const i=this,l={tokenize:L,partial:!0};let s=0,c=0,d;return p;function p(M){return m(M)}function m(M){const j=i.events[i.events.length-1];return s=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,d=M,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),b(M)}function b(M){return M===d?(c++,e.consume(M),b):c<3?r(M):(e.exit("codeFencedFenceSequence"),Et(M)?Dt(e,E,"whitespace")(M):E(M))}function E(M){return M===null||Ve(M)?(e.exit("codeFencedFence"),i.interrupt?t(M):e.check(b1,_,P)(M)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),S(M))}function S(M){return M===null||Ve(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),E(M)):Et(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Dt(e,y,"whitespace")(M)):M===96&&M===d?r(M):(e.consume(M),S)}function y(M){return M===null||Ve(M)?E(M):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),O(M))}function O(M){return M===null||Ve(M)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),E(M)):M===96&&M===d?r(M):(e.consume(M),O)}function _(M){return e.attempt(l,P,I)(M)}function I(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),R}function R(M){return s>0&&Et(M)?Dt(e,H,"linePrefix",s+1)(M):H(M)}function H(M){return M===null||Ve(M)?e.check(b1,_,P)(M):(e.enter("codeFlowValue"),k(M))}function k(M){return M===null||Ve(M)?(e.exit("codeFlowValue"),H(M)):(e.consume(M),k)}function P(M){return e.exit("codeFenced"),t(M)}function L(M,j,ae){let V=0;return A;function A(te){return M.enter("lineEnding"),M.consume(te),M.exit("lineEnding"),Y}function Y(te){return M.enter("codeFencedFence"),Et(te)?Dt(M,W,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(te):W(te)}function W(te){return te===d?(M.enter("codeFencedFenceSequence"),X(te)):ae(te)}function X(te){return te===d?(V++,M.consume(te),X):V>=c?(M.exit("codeFencedFenceSequence"),Et(te)?Dt(M,Q,"whitespace")(te):Q(te)):ae(te)}function Q(te){return te===null||Ve(te)?(M.exit("codeFencedFence"),j(te)):ae(te)}}}function eA(e,t,r){const i=this;return l;function l(c){return c===null?r(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s)}function s(c){return i.parser.lazy[i.now().line]?r(c):t(c)}}const Wf={name:"codeIndented",tokenize:nA},tA={tokenize:rA,partial:!0};function nA(e,t,r){const i=this;return l;function l(m){return e.enter("codeIndented"),Dt(e,s,"linePrefix",5)(m)}function s(m){const b=i.events[i.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?c(m):r(m)}function c(m){return m===null?p(m):Ve(m)?e.attempt(tA,c,p)(m):(e.enter("codeFlowValue"),d(m))}function d(m){return m===null||Ve(m)?(e.exit("codeFlowValue"),c(m)):(e.consume(m),d)}function p(m){return e.exit("codeIndented"),t(m)}}function rA(e,t,r){const i=this;return l;function l(c){return i.parser.lazy[i.now().line]?r(c):Ve(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):Dt(e,s,"linePrefix",5)(c)}function s(c){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):Ve(c)?l(c):r(c)}}const aA={name:"codeText",tokenize:lA,resolve:iA,previous:uA};function iA(e){let t=e.length-4,r=3,i,l;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i<t;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(i=r-1,t++;++i<=t;)l===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(l=i):(i===t||e[i][1].type==="lineEnding")&&(e[l][1].type="codeTextData",i!==l+2&&(e[l][1].end=e[i-1][1].end,e.splice(l+2,i-l-2),t-=i-l-2,i=l+2),l=void 0);return e}function uA(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function lA(e,t,r){let i=0,l,s;return c;function c(E){return e.enter("codeText"),e.enter("codeTextSequence"),d(E)}function d(E){return E===96?(e.consume(E),i++,d):(e.exit("codeTextSequence"),p(E))}function p(E){return E===null?r(E):E===32?(e.enter("space"),e.consume(E),e.exit("space"),p):E===96?(s=e.enter("codeTextSequence"),l=0,b(E)):Ve(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),p):(e.enter("codeTextData"),m(E))}function m(E){return E===null||E===32||E===96||Ve(E)?(e.exit("codeTextData"),p(E)):(e.consume(E),m)}function b(E){return E===96?(e.consume(E),l++,b):l===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(E)):(s.type="codeTextData",m(E))}}class oA{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,r,i){const l=r||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return i&&sl(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),sl(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),sl(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);sl(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);sl(this.left,r.reverse())}}}function sl(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function y1(e){const t={};let r=-1,i,l,s,c,d,p,m;const b=new oA(e);for(;++r<b.length;){for(;r in t;)r=t[r];if(i=b.get(r),r&&i[1].type==="chunkFlow"&&b.get(r-1)[1].type==="listItemPrefix"&&(p=i[1]._tokenizer.events,s=0,s<p.length&&p[s][1].type==="lineEndingBlank"&&(s+=2),s<p.length&&p[s][1].type==="content"))for(;++s<p.length&&p[s][1].type!=="content";)p[s][1].type==="chunkText"&&(p[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,sA(b,r)),r=t[r],m=!0);else if(i[1]._container){for(s=r,l=void 0;s--&&(c=b.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank");)c[0]==="enter"&&(l&&(b.get(l)[1].type="lineEndingBlank"),c[1].type="lineEnding",l=s);l&&(i[1].end=Object.assign({},b.get(l)[1].start),d=b.slice(l,r),d.unshift(i),b.splice(l,r-l+1,d))}}return ta(e,0,Number.POSITIVE_INFINITY,b.slice(0)),!m}function sA(e,t){const r=e.get(t)[1],i=e.get(t)[2];let l=t-1;const s=[],c=r._tokenizer||i.parser[r.contentType](r.start),d=c.events,p=[],m={};let b,E,S=-1,y=r,O=0,_=0;const I=[_];for(;y;){for(;e.get(++l)[1]!==y;);s.push(l),y._tokenizer||(b=i.sliceStream(y),y.next||b.push(null),E&&c.defineSkip(y.start),y._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(b),y._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),E=y,y=y.next}for(y=r;++S<d.length;)d[S][0]==="exit"&&d[S-1][0]==="enter"&&d[S][1].type===d[S-1][1].type&&d[S][1].start.line!==d[S][1].end.line&&(_=S+1,I.push(_),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(c.events=[],y?(y._tokenizer=void 0,y.previous=void 0):I.pop(),S=I.length;S--;){const R=d.slice(I[S],I[S+1]),H=s.pop();p.push([H,H+R.length-1]),e.splice(H,2,R)}for(p.reverse(),S=-1;++S<p.length;)m[O+p[S][0]]=O+p[S][1],O+=p[S][1]-p[S][0]-1;return m}const cA={tokenize:hA,resolve:dA},fA={tokenize:pA,partial:!0};function dA(e){return y1(e),e}function hA(e,t){let r;return i;function i(d){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),l(d)}function l(d){return d===null?s(d):Ve(d)?e.check(fA,c,s)(d):(e.consume(d),l)}function s(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function c(d){return e.consume(d),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,l}}function pA(e,t,r){const i=this;return l;function l(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Dt(e,s,"linePrefix")}function s(c){if(c===null||Ve(c))return r(c);const d=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):e.interrupt(i.parser.constructs.flow,r,t)(c)}}function T1(e,t,r,i,l,s,c,d,p){const m=p||Number.POSITIVE_INFINITY;let b=0;return E;function E(R){return R===60?(e.enter(i),e.enter(l),e.enter(s),e.consume(R),e.exit(s),S):R===null||R===32||R===41||Gf(R)?r(R):(e.enter(i),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),_(R))}function S(R){return R===62?(e.enter(s),e.consume(R),e.exit(s),e.exit(l),e.exit(i),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),y(R))}function y(R){return R===62?(e.exit("chunkString"),e.exit(d),S(R)):R===null||R===60||Ve(R)?r(R):(e.consume(R),R===92?O:y)}function O(R){return R===60||R===62||R===92?(e.consume(R),y):y(R)}function _(R){return!b&&(R===null||R===41||Ln(R))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(i),t(R)):b<m&&R===40?(e.consume(R),b++,_):R===41?(e.consume(R),b--,_):R===null||R===32||R===40||Gf(R)?r(R):(e.consume(R),R===92?I:_)}function I(R){return R===40||R===41||R===92?(e.consume(R),_):_(R)}}function S1(e,t,r,i,l,s){const c=this;let d=0,p;return m;function m(y){return e.enter(i),e.enter(l),e.consume(y),e.exit(l),e.enter(s),b}function b(y){return d>999||y===null||y===91||y===93&&!p||y===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?r(y):y===93?(e.exit(s),e.enter(l),e.consume(y),e.exit(l),e.exit(i),t):Ve(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),b):(e.enter("chunkString",{contentType:"string"}),E(y))}function E(y){return y===null||y===91||y===93||Ve(y)||d++>999?(e.exit("chunkString"),b(y)):(e.consume(y),p||(p=!Et(y)),y===92?S:E)}function S(y){return y===91||y===92||y===93?(e.consume(y),d++,E):E(y)}}function C1(e,t,r,i,l,s){let c;return d;function d(S){return S===34||S===39||S===40?(e.enter(i),e.enter(l),e.consume(S),e.exit(l),c=S===40?41:S,p):r(S)}function p(S){return S===c?(e.enter(l),e.consume(S),e.exit(l),e.exit(i),t):(e.enter(s),m(S))}function m(S){return S===c?(e.exit(s),p(c)):S===null?r(S):Ve(S)?(e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),Dt(e,m,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),b(S))}function b(S){return S===c||S===null||Ve(S)?(e.exit("chunkString"),m(S)):(e.consume(S),S===92?E:b)}function E(S){return S===c||S===92?(e.consume(S),b):b(S)}}function cl(e,t){let r;return i;function i(l){return Ve(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r=!0,i):Et(l)?Dt(e,i,r?"linePrefix":"lineSuffix")(l):t(l)}}const mA={name:"definition",tokenize:bA},gA={tokenize:EA,partial:!0};function bA(e,t,r){const i=this;let l;return s;function s(y){return e.enter("definition"),c(y)}function c(y){return S1.call(i,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function d(y){return l=qi(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),p):r(y)}function p(y){return Ln(y)?cl(e,m)(y):m(y)}function m(y){return T1(e,b,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function b(y){return e.attempt(gA,E,E)(y)}function E(y){return Et(y)?Dt(e,S,"whitespace")(y):S(y)}function S(y){return y===null||Ve(y)?(e.exit("definition"),i.parser.defined.push(l),t(y)):r(y)}}function EA(e,t,r){return i;function i(d){return Ln(d)?cl(e,l)(d):r(d)}function l(d){return C1(e,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function s(d){return Et(d)?Dt(e,c,"whitespace")(d):c(d)}function c(d){return d===null||Ve(d)?t(d):r(d)}}const yA={name:"hardBreakEscape",tokenize:TA};function TA(e,t,r){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),l}function l(s){return Ve(s)?(e.exit("hardBreakEscape"),t(s)):r(s)}}const SA={name:"headingAtx",tokenize:AA,resolve:CA};function CA(e,t){let r=e.length-2,i=3,l,s;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(l={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},s={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},ta(e,i,r-i+1,[["enter",l,t],["enter",s,t],["exit",s,t],["exit",l,t]])),e}function AA(e,t,r){let i=0;return l;function l(b){return e.enter("atxHeading"),s(b)}function s(b){return e.enter("atxHeadingSequence"),c(b)}function c(b){return b===35&&i++<6?(e.consume(b),c):b===null||Ln(b)?(e.exit("atxHeadingSequence"),d(b)):r(b)}function d(b){return b===35?(e.enter("atxHeadingSequence"),p(b)):b===null||Ve(b)?(e.exit("atxHeading"),t(b)):Et(b)?Dt(e,d,"whitespace")(b):(e.enter("atxHeadingText"),m(b))}function p(b){return b===35?(e.consume(b),p):(e.exit("atxHeadingSequence"),d(b))}function m(b){return b===null||b===35||Ln(b)?(e.exit("atxHeadingText"),d(b)):(e.consume(b),m)}}const xA=["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"],A1=["pre","script","style","textarea"],_A={name:"htmlFlow",tokenize:NA,resolveTo:OA,concrete:!0},vA={tokenize:DA,partial:!0},RA={tokenize:kA,partial:!0};function OA(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function NA(e,t,r){const i=this;let l,s,c,d,p;return m;function m(D){return b(D)}function b(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),E}function E(D){return D===33?(e.consume(D),S):D===47?(e.consume(D),s=!0,_):D===63?(e.consume(D),l=3,i.interrupt?t:C):Hr(D)?(e.consume(D),c=String.fromCharCode(D),I):r(D)}function S(D){return D===45?(e.consume(D),l=2,y):D===91?(e.consume(D),l=5,d=0,O):Hr(D)?(e.consume(D),l=4,i.interrupt?t:C):r(D)}function y(D){return D===45?(e.consume(D),i.interrupt?t:C):r(D)}function O(D){const ce="CDATA[";return D===ce.charCodeAt(d++)?(e.consume(D),d===ce.length?i.interrupt?t:W:O):r(D)}function _(D){return Hr(D)?(e.consume(D),c=String.fromCharCode(D),I):r(D)}function I(D){if(D===null||D===47||D===62||Ln(D)){const ce=D===47,Oe=c.toLowerCase();return!ce&&!s&&A1.includes(Oe)?(l=1,i.interrupt?t(D):W(D)):xA.includes(c.toLowerCase())?(l=6,ce?(e.consume(D),R):i.interrupt?t(D):W(D)):(l=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(D):s?H(D):k(D))}return D===45||Qn(D)?(e.consume(D),c+=String.fromCharCode(D),I):r(D)}function R(D){return D===62?(e.consume(D),i.interrupt?t:W):r(D)}function H(D){return Et(D)?(e.consume(D),H):A(D)}function k(D){return D===47?(e.consume(D),A):D===58||D===95||Hr(D)?(e.consume(D),P):Et(D)?(e.consume(D),k):A(D)}function P(D){return D===45||D===46||D===58||D===95||Qn(D)?(e.consume(D),P):L(D)}function L(D){return D===61?(e.consume(D),M):Et(D)?(e.consume(D),L):k(D)}function M(D){return D===null||D===60||D===61||D===62||D===96?r(D):D===34||D===39?(e.consume(D),p=D,j):Et(D)?(e.consume(D),M):ae(D)}function j(D){return D===p?(e.consume(D),p=null,V):D===null||Ve(D)?r(D):(e.consume(D),j)}function ae(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||Ln(D)?L(D):(e.consume(D),ae)}function V(D){return D===47||D===62||Et(D)?k(D):r(D)}function A(D){return D===62?(e.consume(D),Y):r(D)}function Y(D){return D===null||Ve(D)?W(D):Et(D)?(e.consume(D),Y):r(D)}function W(D){return D===45&&l===2?(e.consume(D),K):D===60&&l===1?(e.consume(D),se):D===62&&l===4?(e.consume(D),J):D===63&&l===3?(e.consume(D),C):D===93&&l===5?(e.consume(D),be):Ve(D)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(vA,oe,X)(D)):D===null||Ve(D)?(e.exit("htmlFlowData"),X(D)):(e.consume(D),W)}function X(D){return e.check(RA,Q,oe)(D)}function Q(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),te}function te(D){return D===null||Ve(D)?X(D):(e.enter("htmlFlowData"),W(D))}function K(D){return D===45?(e.consume(D),C):W(D)}function se(D){return D===47?(e.consume(D),c="",re):W(D)}function re(D){if(D===62){const ce=c.toLowerCase();return A1.includes(ce)?(e.consume(D),J):W(D)}return Hr(D)&&c.length<8?(e.consume(D),c+=String.fromCharCode(D),re):W(D)}function be(D){return D===93?(e.consume(D),C):W(D)}function C(D){return D===62?(e.consume(D),J):D===45&&l===2?(e.consume(D),C):W(D)}function J(D){return D===null||Ve(D)?(e.exit("htmlFlowData"),oe(D)):(e.consume(D),J)}function oe(D){return e.exit("htmlFlow"),t(D)}}function kA(e,t,r){const i=this;return l;function l(c){return Ve(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):r(c)}function s(c){return i.parser.lazy[i.now().line]?r(c):t(c)}}function DA(e,t,r){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(gs,t,r)}}const LA={name:"htmlText",tokenize:IA};function IA(e,t,r){const i=this;let l,s,c;return d;function d(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),p}function p(C){return C===33?(e.consume(C),m):C===47?(e.consume(C),L):C===63?(e.consume(C),k):Hr(C)?(e.consume(C),ae):r(C)}function m(C){return C===45?(e.consume(C),b):C===91?(e.consume(C),s=0,O):Hr(C)?(e.consume(C),H):r(C)}function b(C){return C===45?(e.consume(C),y):r(C)}function E(C){return C===null?r(C):C===45?(e.consume(C),S):Ve(C)?(c=E,se(C)):(e.consume(C),E)}function S(C){return C===45?(e.consume(C),y):E(C)}function y(C){return C===62?K(C):C===45?S(C):E(C)}function O(C){const J="CDATA[";return C===J.charCodeAt(s++)?(e.consume(C),s===J.length?_:O):r(C)}function _(C){return C===null?r(C):C===93?(e.consume(C),I):Ve(C)?(c=_,se(C)):(e.consume(C),_)}function I(C){return C===93?(e.consume(C),R):_(C)}function R(C){return C===62?K(C):C===93?(e.consume(C),R):_(C)}function H(C){return C===null||C===62?K(C):Ve(C)?(c=H,se(C)):(e.consume(C),H)}function k(C){return C===null?r(C):C===63?(e.consume(C),P):Ve(C)?(c=k,se(C)):(e.consume(C),k)}function P(C){return C===62?K(C):k(C)}function L(C){return Hr(C)?(e.consume(C),M):r(C)}function M(C){return C===45||Qn(C)?(e.consume(C),M):j(C)}function j(C){return Ve(C)?(c=j,se(C)):Et(C)?(e.consume(C),j):K(C)}function ae(C){return C===45||Qn(C)?(e.consume(C),ae):C===47||C===62||Ln(C)?V(C):r(C)}function V(C){return C===47?(e.consume(C),K):C===58||C===95||Hr(C)?(e.consume(C),A):Ve(C)?(c=V,se(C)):Et(C)?(e.consume(C),V):K(C)}function A(C){return C===45||C===46||C===58||C===95||Qn(C)?(e.consume(C),A):Y(C)}function Y(C){return C===61?(e.consume(C),W):Ve(C)?(c=Y,se(C)):Et(C)?(e.consume(C),Y):V(C)}function W(C){return C===null||C===60||C===61||C===62||C===96?r(C):C===34||C===39?(e.consume(C),l=C,X):Ve(C)?(c=W,se(C)):Et(C)?(e.consume(C),W):(e.consume(C),Q)}function X(C){return C===l?(e.consume(C),l=void 0,te):C===null?r(C):Ve(C)?(c=X,se(C)):(e.consume(C),X)}function Q(C){return C===null||C===34||C===39||C===60||C===61||C===96?r(C):C===47||C===62||Ln(C)?V(C):(e.consume(C),Q)}function te(C){return C===47||C===62||Ln(C)?V(C):r(C)}function K(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):r(C)}function se(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),re}function re(C){return Et(C)?Dt(e,be,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):be(C)}function be(C){return e.enter("htmlTextData"),c(C)}}const Zf={name:"labelEnd",tokenize:HA,resolveTo:UA,resolveAll:PA},wA={tokenize:FA},MA={tokenize:zA},BA={tokenize:YA};function PA(e){let t=-1;for(;++t<e.length;){const r=e[t][1];(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(e.splice(t+1,r.type==="labelImage"?4:2),r.type="data",t++)}return e}function UA(e,t){let r=e.length,i=0,l,s,c,d;for(;r--;)if(l=e[r][1],s){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[r][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(c){if(e[r][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(s=r,l.type!=="labelLink")){i=2;break}}else l.type==="labelEnd"&&(c=r);const p={type:e[s][1].type==="labelLink"?"link":"image",start:Object.assign({},e[s][1].start),end:Object.assign({},e[e.length-1][1].end)},m={type:"label",start:Object.assign({},e[s][1].start),end:Object.assign({},e[c][1].end)},b={type:"labelText",start:Object.assign({},e[s+i+2][1].end),end:Object.assign({},e[c-2][1].start)};return d=[["enter",p,t],["enter",m,t]],d=sr(d,e.slice(s+1,s+i+3)),d=sr(d,[["enter",b,t]]),d=sr(d,Qf(t.parser.constructs.insideSpan.null,e.slice(s+i+4,c-3),t)),d=sr(d,[["exit",b,t],e[c-2],e[c-1],["exit",m,t]]),d=sr(d,e.slice(c+1)),d=sr(d,[["exit",p,t]]),ta(e,s,e.length,d),e}function HA(e,t,r){const i=this;let l=i.events.length,s,c;for(;l--;)if((i.events[l][1].type==="labelImage"||i.events[l][1].type==="labelLink")&&!i.events[l][1]._balanced){s=i.events[l][1];break}return d;function d(S){return s?s._inactive?E(S):(c=i.parser.defined.includes(qi(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(S),e.exit("labelMarker"),e.exit("labelEnd"),p):r(S)}function p(S){return S===40?e.attempt(wA,b,c?b:E)(S):S===91?e.attempt(MA,b,c?m:E)(S):c?b(S):E(S)}function m(S){return e.attempt(BA,b,E)(S)}function b(S){return t(S)}function E(S){return s._balanced=!0,r(S)}}function FA(e,t,r){return i;function i(E){return e.enter("resource"),e.enter("resourceMarker"),e.consume(E),e.exit("resourceMarker"),l}function l(E){return Ln(E)?cl(e,s)(E):s(E)}function s(E){return E===41?b(E):T1(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(E)}function c(E){return Ln(E)?cl(e,p)(E):b(E)}function d(E){return r(E)}function p(E){return E===34||E===39||E===40?C1(e,m,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(E):b(E)}function m(E){return Ln(E)?cl(e,b)(E):b(E)}function b(E){return E===41?(e.enter("resourceMarker"),e.consume(E),e.exit("resourceMarker"),e.exit("resource"),t):r(E)}}function zA(e,t,r){const i=this;return l;function l(d){return S1.call(i,e,s,c,"reference","referenceMarker","referenceString")(d)}function s(d){return i.parser.defined.includes(qi(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(d):r(d)}function c(d){return r(d)}}function YA(e,t,r){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),l}function l(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):r(s)}}const jA={name:"labelStartImage",tokenize:VA,resolveAll:Zf.resolveAll};function VA(e,t,r){const i=this;return l;function l(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"),c):r(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(d):t(d)}}const $A={name:"labelStartLink",tokenize:qA,resolveAll:Zf.resolveAll};function qA(e,t,r){const i=this;return l;function l(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),s}function s(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(c):t(c)}}const Jf={name:"lineEnding",tokenize:GA};function GA(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Dt(e,t,"linePrefix")}}const bs={name:"thematicBreak",tokenize:XA};function XA(e,t,r){let i=0,l;return s;function s(m){return e.enter("thematicBreak"),c(m)}function c(m){return l=m,d(m)}function d(m){return m===l?(e.enter("thematicBreakSequence"),p(m)):i>=3&&(m===null||Ve(m))?(e.exit("thematicBreak"),t(m)):r(m)}function p(m){return m===l?(e.consume(m),i++,p):(e.exit("thematicBreakSequence"),Et(m)?Dt(e,d,"whitespace")(m):d(m))}}const In={name:"list",tokenize:WA,continuation:{tokenize:ZA},exit:e4},QA={tokenize:t4,partial:!0},KA={tokenize:JA,partial:!0};function WA(e,t,r){const i=this,l=i.events[i.events.length-1];let s=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,c=0;return d;function d(y){const O=i.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(O==="listUnordered"?!i.containerState.marker||y===i.containerState.marker:Xf(y)){if(i.containerState.type||(i.containerState.type=O,e.enter(O,{_container:!0})),O==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(bs,r,m)(y):m(y);if(!i.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),p(y)}return r(y)}function p(y){return Xf(y)&&++c<10?(e.consume(y),p):(!i.interrupt||c<2)&&(i.containerState.marker?y===i.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),m(y)):r(y)}function m(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||y,e.check(gs,i.interrupt?r:b,e.attempt(QA,S,E))}function b(y){return i.containerState.initialBlankLine=!0,s++,S(y)}function E(y){return Et(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),S):r(y)}function S(y){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function ZA(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(gs,l,s);function l(d){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Dt(e,t,"listItemIndent",i.containerState.size+1)(d)}function s(d){return i.containerState.furtherBlankLines||!Et(d)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(d)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(KA,t,c)(d))}function c(d){return i.containerState._closeFlow=!0,i.interrupt=void 0,Dt(e,e.attempt(In,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function JA(e,t,r){const i=this;return Dt(e,l,"listItemIndent",i.containerState.size+1);function l(s){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?t(s):r(s)}}function e4(e){e.exit(this.containerState.type)}function t4(e,t,r){const i=this;return Dt(e,l,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(s){const c=i.events[i.events.length-1];return!Et(s)&&c&&c[1].type==="listItemPrefixWhitespace"?t(s):r(s)}}const x1={name:"setextUnderline",tokenize:r4,resolveTo:n4};function n4(e,t){let r=e.length,i,l,s;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(l=r)}else e[r][1].type==="content"&&e.splice(r,1),!s&&e[r][1].type==="definition"&&(s=r);const c={type:"setextHeading",start:Object.assign({},e[l][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[l][1].type="setextHeadingText",s?(e.splice(l,0,["enter",c,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end=Object.assign({},e[s][1].end)):e[i][1]=c,e.push(["exit",c,t]),e}function r4(e,t,r){const i=this;let l;return s;function s(m){let b=i.events.length,E;for(;b--;)if(i.events[b][1].type!=="lineEnding"&&i.events[b][1].type!=="linePrefix"&&i.events[b][1].type!=="content"){E=i.events[b][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||E)?(e.enter("setextHeadingLine"),l=m,c(m)):r(m)}function c(m){return e.enter("setextHeadingLineSequence"),d(m)}function d(m){return m===l?(e.consume(m),d):(e.exit("setextHeadingLineSequence"),Et(m)?Dt(e,p,"lineSuffix")(m):p(m))}function p(m){return m===null||Ve(m)?(e.exit("setextHeadingLine"),t(m)):r(m)}}const a4={tokenize:i4};function i4(e){const t=this,r=e.attempt(gs,i,e.attempt(this.parser.constructs.flowInitial,l,Dt(e,e.attempt(this.parser.constructs.flow,l,e.attempt(cA,l)),"linePrefix")));return r;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function l(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const u4={resolveAll:v1()},l4=_1("string"),o4=_1("text");function _1(e){return{tokenize:t,resolveAll:v1(e==="text"?s4:void 0)};function t(r){const i=this,l=this.parser.constructs[e],s=r.attempt(l,c,d);return c;function c(b){return m(b)?s(b):d(b)}function d(b){if(b===null){r.consume(b);return}return r.enter("data"),r.consume(b),p}function p(b){return m(b)?(r.exit("data"),s(b)):(r.consume(b),p)}function m(b){if(b===null)return!0;const E=l[b];let S=-1;if(E)for(;++S<E.length;){const y=E[S];if(!y.previous||y.previous.call(i,i.previous))return!0}return!1}}}function v1(e){return t;function t(r,i){let l=-1,s;for(;++l<=r.length;)s===void 0?r[l]&&r[l][1].type==="data"&&(s=l,l++):(!r[l]||r[l][1].type!=="data")&&(l!==s+2&&(r[s][1].end=r[l-1][1].end,r.splice(s+2,l-s-2),l=s+2),s=void 0);return e?e(r,i):r}}function s4(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],l=t.sliceStream(i);let s=l.length,c=-1,d=0,p;for(;s--;){const m=l[s];if(typeof m=="string"){for(c=m.length;m.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(m===-2)p=!0,d++;else if(m!==-1){s++;break}}if(d){const m={type:r===e.length||p||d<2?"lineSuffix":"hardBreakTrailing",start:{line:i.end.line,column:i.end.column-d,offset:i.end.offset-d,_index:i.start._index+s,_bufferIndex:s?c:i.start._bufferIndex+c},end:Object.assign({},i.end)};i.end=Object.assign({},m.start),i.start.offset===i.end.offset?Object.assign(i,m):(e.splice(r,0,["enter",m,t],["exit",m,t]),r+=2)}r++}return e}function c4(e,t,r){let i=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const l={},s=[];let c=[],d=[];const p={consume:H,enter:k,exit:P,attempt:j(L),check:j(M),interrupt:j(M,{interrupt:!0})},m={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:y,sliceSerialize:S,now:O,defineSkip:_,write:E};let b=t.tokenize.call(m,p);return t.resolveAll&&s.push(t),m;function E(Y){return c=sr(c,Y),I(),c[c.length-1]!==null?[]:(ae(t,0),m.events=Qf(s,m.events,m),m.events)}function S(Y,W){return d4(y(Y),W)}function y(Y){return f4(c,Y)}function O(){const{line:Y,column:W,offset:X,_index:Q,_bufferIndex:te}=i;return{line:Y,column:W,offset:X,_index:Q,_bufferIndex:te}}function _(Y){l[Y.line]=Y.column,A()}function I(){let Y;for(;i._index<c.length;){const W=c[i._index];if(typeof W=="string")for(Y=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===Y&&i._bufferIndex<W.length;)R(W.charCodeAt(i._bufferIndex));else R(W)}}function R(Y){b=b(Y)}function H(Y){Ve(Y)?(i.line++,i.column=1,i.offset+=Y===-3?2:1,A()):Y!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),m.previous=Y}function k(Y,W){const X=W||{};return X.type=Y,X.start=O(),m.events.push(["enter",X,m]),d.push(X),X}function P(Y){const W=d.pop();return W.end=O(),m.events.push(["exit",W,m]),W}function L(Y,W){ae(Y,W.from)}function M(Y,W){W.restore()}function j(Y,W){return X;function X(Q,te,K){let se,re,be,C;return Array.isArray(Q)?oe(Q):"tokenize"in Q?oe([Q]):J(Q);function J(Se){return tt;function tt(Me){const $e=Me!==null&&Se[Me],xe=Me!==null&&Se.null,Ge=[...Array.isArray($e)?$e:$e?[$e]:[],...Array.isArray(xe)?xe:xe?[xe]:[]];return oe(Ge)(Me)}}function oe(Se){return se=Se,re=0,Se.length===0?K:D(Se[re])}function D(Se){return tt;function tt(Me){return C=V(),be=Se,Se.partial||(m.currentConstruct=Se),Se.name&&m.parser.constructs.disable.null.includes(Se.name)?Oe():Se.tokenize.call(W?Object.assign(Object.create(m),W):m,p,ce,Oe)(Me)}}function ce(Se){return Y(be,C),te}function Oe(Se){return C.restore(),++re<se.length?D(se[re]):K}}}function ae(Y,W){Y.resolveAll&&!s.includes(Y)&&s.push(Y),Y.resolve&&ta(m.events,W,m.events.length-W,Y.resolve(m.events.slice(W),m)),Y.resolveTo&&(m.events=Y.resolveTo(m.events,m))}function V(){const Y=O(),W=m.previous,X=m.currentConstruct,Q=m.events.length,te=Array.from(d);return{restore:K,from:Q};function K(){i=Y,m.previous=W,m.currentConstruct=X,m.events.length=Q,d=te,A()}}function A(){i.line in l&&i.column<2&&(i.column=l[i.line],i.offset+=l[i.line]-1)}}function f4(e,t){const r=t.start._index,i=t.start._bufferIndex,l=t.end._index,s=t.end._bufferIndex;let c;if(r===l)c=[e[r].slice(i,s)];else{if(c=e.slice(r,l),i>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(i):c.shift()}s>0&&c.push(e[l].slice(0,s))}return c}function d4(e,t){let r=-1;const i=[];let l;for(;++r<e.length;){const s=e[r];let c;if(typeof s=="string")c=s;else switch(s){case-5:{c="\r";break}case-4:{c=`
57
+ */var a1;function _6(){if(a1)return ol;a1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(i,l,s){var c=null;if(s!==void 0&&(c=""+s),l.key!==void 0&&(c=""+l.key),"key"in l){s={};for(var d in l)d!=="key"&&(s[d]=l[d])}else s=l;return l=s.ref,{$$typeof:e,type:i,key:c,ref:l!==void 0?l:null,props:s}}return ol.Fragment=t,ol.jsx=r,ol.jsxs=r,ol}var i1;function v6(){return i1||(i1=1,$f.exports=_6()),$f.exports}var me=v6();const R6={};function O6(e,t){const r=R6,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,l=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return u1(e,i,l)}function u1(e,t,r){if(N6(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return l1(e.children,t,r)}return Array.isArray(e)?l1(e,t,r):""}function l1(e,t,r){const i=[];let l=-1;for(;++l<e.length;)i[l]=u1(e[l],t,r);return i.join("")}function N6(e){return!!(e&&typeof e=="object")}const o1=document.createElement("i");function qf(e){const t="&"+e+";";o1.innerHTML=t;const r=o1.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function ta(e,t,r,i){const l=e.length;let s=0,c;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,r=r>0?r:0,i.length<1e4)c=Array.from(i),c.unshift(t,r),e.splice(...c);else for(r&&e.splice(t,r);s<i.length;)c=i.slice(s,s+1e4),c.unshift(t,0),e.splice(...c),s+=1e4,t+=1e4}function sr(e,t){return e.length>0?(ta(e,e.length,0,t),e):t}const s1={}.hasOwnProperty;function k6(e){const t={};let r=-1;for(;++r<e.length;)D6(t,e[r]);return t}function D6(e,t){let r;for(r in t){const l=(s1.call(e,r)?e[r]:void 0)||(e[r]={}),s=t[r];let c;if(s)for(c in s){s1.call(l,c)||(l[c]=[]);const d=s[c];L6(l[c],Array.isArray(d)?d:d?[d]:[])}}}function L6(e,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);ta(e,0,0,i)}function c1(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function qi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Hr=_a(/[A-Za-z]/),Qn=_a(/[\dA-Za-z]/),I6=_a(/[#-'*+\--9=?A-Z^-~]/);function Gf(e){return e!==null&&(e<32||e===127)}const Xf=_a(/\d/),w6=_a(/[\dA-Fa-f]/),M6=_a(/[!-/:-@[-`{-~]/);function Ve(e){return e!==null&&e<-2}function Ln(e){return e!==null&&(e<0||e===32)}function Et(e){return e===-2||e===-1||e===32}const B6=_a(new RegExp("\\p{P}|\\p{S}","u")),P6=_a(/\s/);function _a(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Gi(e){const t=[];let r=-1,i=0,l=0;for(;++r<e.length;){const s=e.charCodeAt(r);let c="";if(s===37&&Qn(e.charCodeAt(r+1))&&Qn(e.charCodeAt(r+2)))l=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const d=e.charCodeAt(r+1);s<56320&&d>56319&&d<57344?(c=String.fromCharCode(s,d),l=1):c="�"}else c=String.fromCharCode(s);c&&(t.push(e.slice(i,r),encodeURIComponent(c)),i=r+l+1,c=""),l&&(r+=l,l=0)}return t.join("")+e.slice(i)}function Dt(e,t,r,i){const l=i?i-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(p){return Et(p)?(e.enter(r),d(p)):t(p)}function d(p){return Et(p)&&s++<l?(e.consume(p),d):(e.exit(r),t(p))}}const U6={tokenize:H6};function H6(e){const t=e.attempt(this.parser.constructs.contentInitial,i,l);let r;return t;function i(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Dt(e,t,"linePrefix")}function l(d){return e.enter("paragraph"),s(d)}function s(d){const p=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=p),r=p,c(d)}function c(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return Ve(d)?(e.consume(d),e.exit("chunkText"),s):(e.consume(d),c)}}const F6={tokenize:z6},f1={tokenize:Y6};function z6(e){const t=this,r=[];let i=0,l,s,c;return d;function d(k){if(i<r.length){const P=r[i];return t.containerState=P[1],e.attempt(P[0].continuation,p,m)(k)}return m(k)}function p(k){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&H();const P=t.events.length;let L=P,M;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){M=t.events[L][1].end;break}v(i);let j=P;for(;j<t.events.length;)t.events[j][1].end=Object.assign({},M),j++;return ta(t.events,L+1,0,t.events.slice(P)),t.events.length=j,m(k)}return d(k)}function m(k){if(i===r.length){if(!l)return S(k);if(l.currentConstruct&&l.currentConstruct.concrete)return O(k);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(f1,b,E)(k)}function b(k){return l&&H(),v(i),S(k)}function E(k){return t.parser.lazy[t.now().line]=i!==r.length,c=t.now().offset,O(k)}function S(k){return t.containerState={},e.attempt(f1,y,O)(k)}function y(k){return i++,r.push([t.currentConstruct,t.containerState]),S(k)}function O(k){if(k===null){l&&H(),v(0),e.consume(k);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:s,_tokenizer:l}),_(k)}function _(k){if(k===null){I(e.exit("chunkFlow"),!0),v(0),e.consume(k);return}return Ve(k)?(e.consume(k),I(e.exit("chunkFlow")),i=0,t.interrupt=void 0,d):(e.consume(k),_)}function I(k,P){const L=t.sliceStream(k);if(P&&L.push(null),k.previous=s,s&&(s.next=k),s=k,l.defineSkip(k.start),l.write(L),t.parser.lazy[k.start.line]){let M=l.events.length;for(;M--;)if(l.events[M][1].start.offset<c&&(!l.events[M][1].end||l.events[M][1].end.offset>c))return;const j=t.events.length;let ae=j,V,A;for(;ae--;)if(t.events[ae][0]==="exit"&&t.events[ae][1].type==="chunkFlow"){if(V){A=t.events[ae][1].end;break}V=!0}for(v(i),M=j;M<t.events.length;)t.events[M][1].end=Object.assign({},A),M++;ta(t.events,ae+1,0,t.events.slice(j)),t.events.length=M}}function v(k){let P=r.length;for(;P-- >k;){const L=r[P];t.containerState=L[1],L[0].exit.call(t,e)}r.length=k}function H(){l.write([null]),s=void 0,l=void 0,t.containerState._closeFlow=void 0}}function Y6(e,t,r){return Dt(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function d1(e){if(e===null||Ln(e)||P6(e))return 1;if(B6(e))return 2}function Qf(e,t,r){const i=[];let l=-1;for(;++l<e.length;){const s=e[l].resolveAll;s&&!i.includes(s)&&(t=s(t,r),i.push(s))}return t}const Kf={name:"attention",tokenize:V6,resolveAll:j6};function j6(e,t){let r=-1,i,l,s,c,d,p,m,b;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;p=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const E=Object.assign({},e[i][1].end),S=Object.assign({},e[r][1].start);h1(E,-p),h1(S,p),c={type:p>1?"strongSequence":"emphasisSequence",start:E,end:Object.assign({},e[i][1].end)},d={type:p>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:S},s={type:p>1?"strongText":"emphasisText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[r][1].start)},l={type:p>1?"strong":"emphasis",start:Object.assign({},c.start),end:Object.assign({},d.end)},e[i][1].end=Object.assign({},c.start),e[r][1].start=Object.assign({},d.end),m=[],e[i][1].end.offset-e[i][1].start.offset&&(m=sr(m,[["enter",e[i][1],t],["exit",e[i][1],t]])),m=sr(m,[["enter",l,t],["enter",c,t],["exit",c,t],["enter",s,t]]),m=sr(m,Qf(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),m=sr(m,[["exit",s,t],["enter",d,t],["exit",d,t],["exit",l,t]]),e[r][1].end.offset-e[r][1].start.offset?(b=2,m=sr(m,[["enter",e[r][1],t],["exit",e[r][1],t]])):b=0,ta(e,i-1,r-i+3,m),r=i+m.length-b-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function V6(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,l=d1(i);let s;return c;function c(p){return s=p,e.enter("attentionSequence"),d(p)}function d(p){if(p===s)return e.consume(p),d;const m=e.exit("attentionSequence"),b=d1(p),E=!b||b===2&&l||r.includes(p),S=!l||l===2&&b||r.includes(i);return m._open=!!(s===42?E:E&&(l||!S)),m._close=!!(s===42?S:S&&(b||!E)),t(p)}}function h1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const $6={name:"autolink",tokenize:q6};function q6(e,t,r){let i=0;return l;function l(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(y){return Hr(y)?(e.consume(y),c):y===64?r(y):m(y)}function c(y){return y===43||y===45||y===46||Qn(y)?(i=1,d(y)):m(y)}function d(y){return y===58?(e.consume(y),i=0,p):(y===43||y===45||y===46||Qn(y))&&i++<32?(e.consume(y),d):(i=0,m(y))}function p(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||Gf(y)?r(y):(e.consume(y),p)}function m(y){return y===64?(e.consume(y),b):I6(y)?(e.consume(y),m):r(y)}function b(y){return Qn(y)?E(y):r(y)}function E(y){return y===46?(e.consume(y),i=0,b):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):S(y)}function S(y){if((y===45||Qn(y))&&i++<63){const O=y===45?S:E;return e.consume(y),O}return r(y)}}const gs={tokenize:G6,partial:!0};function G6(e,t,r){return i;function i(s){return Et(s)?Dt(e,l,"linePrefix")(s):l(s)}function l(s){return s===null||Ve(s)?t(s):r(s)}}const p1={name:"blockQuote",tokenize:X6,continuation:{tokenize:Q6},exit:K6};function X6(e,t,r){const i=this;return l;function l(c){if(c===62){const d=i.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),s}return r(c)}function s(c){return Et(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}function Q6(e,t,r){const i=this;return l;function l(c){return Et(c)?Dt(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return e.attempt(p1,t,r)(c)}}function K6(e){e.exit("blockQuote")}const m1={name:"characterEscape",tokenize:W6};function W6(e,t,r){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),l}function l(s){return M6(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(s)}}const g1={name:"characterReference",tokenize:Z6};function Z6(e,t,r){const i=this;let l=0,s,c;return d;function d(E){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(E),e.exit("characterReferenceMarker"),p}function p(E){return E===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(E),e.exit("characterReferenceMarkerNumeric"),m):(e.enter("characterReferenceValue"),s=31,c=Qn,b(E))}function m(E){return E===88||E===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(E),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,c=w6,b):(e.enter("characterReferenceValue"),s=7,c=Xf,b(E))}function b(E){if(E===59&&l){const S=e.exit("characterReferenceValue");return c===Qn&&!qf(i.sliceSerialize(S))?r(E):(e.enter("characterReferenceMarker"),e.consume(E),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(E)&&l++<s?(e.consume(E),b):r(E)}}const b1={tokenize:eA,partial:!0},E1={name:"codeFenced",tokenize:J6,concrete:!0};function J6(e,t,r){const i=this,l={tokenize:L,partial:!0};let s=0,c=0,d;return p;function p(M){return m(M)}function m(M){const j=i.events[i.events.length-1];return s=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,d=M,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),b(M)}function b(M){return M===d?(c++,e.consume(M),b):c<3?r(M):(e.exit("codeFencedFenceSequence"),Et(M)?Dt(e,E,"whitespace")(M):E(M))}function E(M){return M===null||Ve(M)?(e.exit("codeFencedFence"),i.interrupt?t(M):e.check(b1,_,P)(M)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),S(M))}function S(M){return M===null||Ve(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),E(M)):Et(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Dt(e,y,"whitespace")(M)):M===96&&M===d?r(M):(e.consume(M),S)}function y(M){return M===null||Ve(M)?E(M):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),O(M))}function O(M){return M===null||Ve(M)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),E(M)):M===96&&M===d?r(M):(e.consume(M),O)}function _(M){return e.attempt(l,P,I)(M)}function I(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),v}function v(M){return s>0&&Et(M)?Dt(e,H,"linePrefix",s+1)(M):H(M)}function H(M){return M===null||Ve(M)?e.check(b1,_,P)(M):(e.enter("codeFlowValue"),k(M))}function k(M){return M===null||Ve(M)?(e.exit("codeFlowValue"),H(M)):(e.consume(M),k)}function P(M){return e.exit("codeFenced"),t(M)}function L(M,j,ae){let V=0;return A;function A(ee){return M.enter("lineEnding"),M.consume(ee),M.exit("lineEnding"),Y}function Y(ee){return M.enter("codeFencedFence"),Et(ee)?Dt(M,W,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ee):W(ee)}function W(ee){return ee===d?(M.enter("codeFencedFenceSequence"),Q(ee)):ae(ee)}function Q(ee){return ee===d?(V++,M.consume(ee),Q):V>=c?(M.exit("codeFencedFenceSequence"),Et(ee)?Dt(M,G,"whitespace")(ee):G(ee)):ae(ee)}function G(ee){return ee===null||Ve(ee)?(M.exit("codeFencedFence"),j(ee)):ae(ee)}}}function eA(e,t,r){const i=this;return l;function l(c){return c===null?r(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s)}function s(c){return i.parser.lazy[i.now().line]?r(c):t(c)}}const Wf={name:"codeIndented",tokenize:nA},tA={tokenize:rA,partial:!0};function nA(e,t,r){const i=this;return l;function l(m){return e.enter("codeIndented"),Dt(e,s,"linePrefix",5)(m)}function s(m){const b=i.events[i.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?c(m):r(m)}function c(m){return m===null?p(m):Ve(m)?e.attempt(tA,c,p)(m):(e.enter("codeFlowValue"),d(m))}function d(m){return m===null||Ve(m)?(e.exit("codeFlowValue"),c(m)):(e.consume(m),d)}function p(m){return e.exit("codeIndented"),t(m)}}function rA(e,t,r){const i=this;return l;function l(c){return i.parser.lazy[i.now().line]?r(c):Ve(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):Dt(e,s,"linePrefix",5)(c)}function s(c){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):Ve(c)?l(c):r(c)}}const aA={name:"codeText",tokenize:lA,resolve:iA,previous:uA};function iA(e){let t=e.length-4,r=3,i,l;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i<t;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(i=r-1,t++;++i<=t;)l===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(l=i):(i===t||e[i][1].type==="lineEnding")&&(e[l][1].type="codeTextData",i!==l+2&&(e[l][1].end=e[i-1][1].end,e.splice(l+2,i-l-2),t-=i-l-2,i=l+2),l=void 0);return e}function uA(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function lA(e,t,r){let i=0,l,s;return c;function c(E){return e.enter("codeText"),e.enter("codeTextSequence"),d(E)}function d(E){return E===96?(e.consume(E),i++,d):(e.exit("codeTextSequence"),p(E))}function p(E){return E===null?r(E):E===32?(e.enter("space"),e.consume(E),e.exit("space"),p):E===96?(s=e.enter("codeTextSequence"),l=0,b(E)):Ve(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),p):(e.enter("codeTextData"),m(E))}function m(E){return E===null||E===32||E===96||Ve(E)?(e.exit("codeTextData"),p(E)):(e.consume(E),m)}function b(E){return E===96?(e.consume(E),l++,b):l===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(E)):(s.type="codeTextData",m(E))}}class oA{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,r,i){const l=r||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return i&&sl(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),sl(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),sl(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);sl(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);sl(this.left,r.reverse())}}}function sl(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function y1(e){const t={};let r=-1,i,l,s,c,d,p,m;const b=new oA(e);for(;++r<b.length;){for(;r in t;)r=t[r];if(i=b.get(r),r&&i[1].type==="chunkFlow"&&b.get(r-1)[1].type==="listItemPrefix"&&(p=i[1]._tokenizer.events,s=0,s<p.length&&p[s][1].type==="lineEndingBlank"&&(s+=2),s<p.length&&p[s][1].type==="content"))for(;++s<p.length&&p[s][1].type!=="content";)p[s][1].type==="chunkText"&&(p[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,sA(b,r)),r=t[r],m=!0);else if(i[1]._container){for(s=r,l=void 0;s--&&(c=b.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank");)c[0]==="enter"&&(l&&(b.get(l)[1].type="lineEndingBlank"),c[1].type="lineEnding",l=s);l&&(i[1].end=Object.assign({},b.get(l)[1].start),d=b.slice(l,r),d.unshift(i),b.splice(l,r-l+1,d))}}return ta(e,0,Number.POSITIVE_INFINITY,b.slice(0)),!m}function sA(e,t){const r=e.get(t)[1],i=e.get(t)[2];let l=t-1;const s=[],c=r._tokenizer||i.parser[r.contentType](r.start),d=c.events,p=[],m={};let b,E,S=-1,y=r,O=0,_=0;const I=[_];for(;y;){for(;e.get(++l)[1]!==y;);s.push(l),y._tokenizer||(b=i.sliceStream(y),y.next||b.push(null),E&&c.defineSkip(y.start),y._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(b),y._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),E=y,y=y.next}for(y=r;++S<d.length;)d[S][0]==="exit"&&d[S-1][0]==="enter"&&d[S][1].type===d[S-1][1].type&&d[S][1].start.line!==d[S][1].end.line&&(_=S+1,I.push(_),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(c.events=[],y?(y._tokenizer=void 0,y.previous=void 0):I.pop(),S=I.length;S--;){const v=d.slice(I[S],I[S+1]),H=s.pop();p.push([H,H+v.length-1]),e.splice(H,2,v)}for(p.reverse(),S=-1;++S<p.length;)m[O+p[S][0]]=O+p[S][1],O+=p[S][1]-p[S][0]-1;return m}const cA={tokenize:hA,resolve:dA},fA={tokenize:pA,partial:!0};function dA(e){return y1(e),e}function hA(e,t){let r;return i;function i(d){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),l(d)}function l(d){return d===null?s(d):Ve(d)?e.check(fA,c,s)(d):(e.consume(d),l)}function s(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function c(d){return e.consume(d),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,l}}function pA(e,t,r){const i=this;return l;function l(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Dt(e,s,"linePrefix")}function s(c){if(c===null||Ve(c))return r(c);const d=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):e.interrupt(i.parser.constructs.flow,r,t)(c)}}function T1(e,t,r,i,l,s,c,d,p){const m=p||Number.POSITIVE_INFINITY;let b=0;return E;function E(v){return v===60?(e.enter(i),e.enter(l),e.enter(s),e.consume(v),e.exit(s),S):v===null||v===32||v===41||Gf(v)?r(v):(e.enter(i),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),_(v))}function S(v){return v===62?(e.enter(s),e.consume(v),e.exit(s),e.exit(l),e.exit(i),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===62?(e.exit("chunkString"),e.exit(d),S(v)):v===null||v===60||Ve(v)?r(v):(e.consume(v),v===92?O:y)}function O(v){return v===60||v===62||v===92?(e.consume(v),y):y(v)}function _(v){return!b&&(v===null||v===41||Ln(v))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(i),t(v)):b<m&&v===40?(e.consume(v),b++,_):v===41?(e.consume(v),b--,_):v===null||v===32||v===40||Gf(v)?r(v):(e.consume(v),v===92?I:_)}function I(v){return v===40||v===41||v===92?(e.consume(v),_):_(v)}}function S1(e,t,r,i,l,s){const c=this;let d=0,p;return m;function m(y){return e.enter(i),e.enter(l),e.consume(y),e.exit(l),e.enter(s),b}function b(y){return d>999||y===null||y===91||y===93&&!p||y===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?r(y):y===93?(e.exit(s),e.enter(l),e.consume(y),e.exit(l),e.exit(i),t):Ve(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),b):(e.enter("chunkString",{contentType:"string"}),E(y))}function E(y){return y===null||y===91||y===93||Ve(y)||d++>999?(e.exit("chunkString"),b(y)):(e.consume(y),p||(p=!Et(y)),y===92?S:E)}function S(y){return y===91||y===92||y===93?(e.consume(y),d++,E):E(y)}}function C1(e,t,r,i,l,s){let c;return d;function d(S){return S===34||S===39||S===40?(e.enter(i),e.enter(l),e.consume(S),e.exit(l),c=S===40?41:S,p):r(S)}function p(S){return S===c?(e.enter(l),e.consume(S),e.exit(l),e.exit(i),t):(e.enter(s),m(S))}function m(S){return S===c?(e.exit(s),p(c)):S===null?r(S):Ve(S)?(e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),Dt(e,m,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),b(S))}function b(S){return S===c||S===null||Ve(S)?(e.exit("chunkString"),m(S)):(e.consume(S),S===92?E:b)}function E(S){return S===c||S===92?(e.consume(S),b):b(S)}}function cl(e,t){let r;return i;function i(l){return Ve(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r=!0,i):Et(l)?Dt(e,i,r?"linePrefix":"lineSuffix")(l):t(l)}}const mA={name:"definition",tokenize:bA},gA={tokenize:EA,partial:!0};function bA(e,t,r){const i=this;let l;return s;function s(y){return e.enter("definition"),c(y)}function c(y){return S1.call(i,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function d(y){return l=qi(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),p):r(y)}function p(y){return Ln(y)?cl(e,m)(y):m(y)}function m(y){return T1(e,b,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function b(y){return e.attempt(gA,E,E)(y)}function E(y){return Et(y)?Dt(e,S,"whitespace")(y):S(y)}function S(y){return y===null||Ve(y)?(e.exit("definition"),i.parser.defined.push(l),t(y)):r(y)}}function EA(e,t,r){return i;function i(d){return Ln(d)?cl(e,l)(d):r(d)}function l(d){return C1(e,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function s(d){return Et(d)?Dt(e,c,"whitespace")(d):c(d)}function c(d){return d===null||Ve(d)?t(d):r(d)}}const yA={name:"hardBreakEscape",tokenize:TA};function TA(e,t,r){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),l}function l(s){return Ve(s)?(e.exit("hardBreakEscape"),t(s)):r(s)}}const SA={name:"headingAtx",tokenize:AA,resolve:CA};function CA(e,t){let r=e.length-2,i=3,l,s;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(l={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},s={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},ta(e,i,r-i+1,[["enter",l,t],["enter",s,t],["exit",s,t],["exit",l,t]])),e}function AA(e,t,r){let i=0;return l;function l(b){return e.enter("atxHeading"),s(b)}function s(b){return e.enter("atxHeadingSequence"),c(b)}function c(b){return b===35&&i++<6?(e.consume(b),c):b===null||Ln(b)?(e.exit("atxHeadingSequence"),d(b)):r(b)}function d(b){return b===35?(e.enter("atxHeadingSequence"),p(b)):b===null||Ve(b)?(e.exit("atxHeading"),t(b)):Et(b)?Dt(e,d,"whitespace")(b):(e.enter("atxHeadingText"),m(b))}function p(b){return b===35?(e.consume(b),p):(e.exit("atxHeadingSequence"),d(b))}function m(b){return b===null||b===35||Ln(b)?(e.exit("atxHeadingText"),d(b)):(e.consume(b),m)}}const xA=["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"],A1=["pre","script","style","textarea"],_A={name:"htmlFlow",tokenize:NA,resolveTo:OA,concrete:!0},vA={tokenize:DA,partial:!0},RA={tokenize:kA,partial:!0};function OA(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function NA(e,t,r){const i=this;let l,s,c,d,p;return m;function m(D){return b(D)}function b(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),E}function E(D){return D===33?(e.consume(D),S):D===47?(e.consume(D),s=!0,_):D===63?(e.consume(D),l=3,i.interrupt?t:C):Hr(D)?(e.consume(D),c=String.fromCharCode(D),I):r(D)}function S(D){return D===45?(e.consume(D),l=2,y):D===91?(e.consume(D),l=5,d=0,O):Hr(D)?(e.consume(D),l=4,i.interrupt?t:C):r(D)}function y(D){return D===45?(e.consume(D),i.interrupt?t:C):r(D)}function O(D){const ce="CDATA[";return D===ce.charCodeAt(d++)?(e.consume(D),d===ce.length?i.interrupt?t:W:O):r(D)}function _(D){return Hr(D)?(e.consume(D),c=String.fromCharCode(D),I):r(D)}function I(D){if(D===null||D===47||D===62||Ln(D)){const ce=D===47,Oe=c.toLowerCase();return!ce&&!s&&A1.includes(Oe)?(l=1,i.interrupt?t(D):W(D)):xA.includes(c.toLowerCase())?(l=6,ce?(e.consume(D),v):i.interrupt?t(D):W(D)):(l=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(D):s?H(D):k(D))}return D===45||Qn(D)?(e.consume(D),c+=String.fromCharCode(D),I):r(D)}function v(D){return D===62?(e.consume(D),i.interrupt?t:W):r(D)}function H(D){return Et(D)?(e.consume(D),H):A(D)}function k(D){return D===47?(e.consume(D),A):D===58||D===95||Hr(D)?(e.consume(D),P):Et(D)?(e.consume(D),k):A(D)}function P(D){return D===45||D===46||D===58||D===95||Qn(D)?(e.consume(D),P):L(D)}function L(D){return D===61?(e.consume(D),M):Et(D)?(e.consume(D),L):k(D)}function M(D){return D===null||D===60||D===61||D===62||D===96?r(D):D===34||D===39?(e.consume(D),p=D,j):Et(D)?(e.consume(D),M):ae(D)}function j(D){return D===p?(e.consume(D),p=null,V):D===null||Ve(D)?r(D):(e.consume(D),j)}function ae(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||Ln(D)?L(D):(e.consume(D),ae)}function V(D){return D===47||D===62||Et(D)?k(D):r(D)}function A(D){return D===62?(e.consume(D),Y):r(D)}function Y(D){return D===null||Ve(D)?W(D):Et(D)?(e.consume(D),Y):r(D)}function W(D){return D===45&&l===2?(e.consume(D),K):D===60&&l===1?(e.consume(D),se):D===62&&l===4?(e.consume(D),J):D===63&&l===3?(e.consume(D),C):D===93&&l===5?(e.consume(D),be):Ve(D)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(vA,oe,Q)(D)):D===null||Ve(D)?(e.exit("htmlFlowData"),Q(D)):(e.consume(D),W)}function Q(D){return e.check(RA,G,oe)(D)}function G(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),ee}function ee(D){return D===null||Ve(D)?Q(D):(e.enter("htmlFlowData"),W(D))}function K(D){return D===45?(e.consume(D),C):W(D)}function se(D){return D===47?(e.consume(D),c="",re):W(D)}function re(D){if(D===62){const ce=c.toLowerCase();return A1.includes(ce)?(e.consume(D),J):W(D)}return Hr(D)&&c.length<8?(e.consume(D),c+=String.fromCharCode(D),re):W(D)}function be(D){return D===93?(e.consume(D),C):W(D)}function C(D){return D===62?(e.consume(D),J):D===45&&l===2?(e.consume(D),C):W(D)}function J(D){return D===null||Ve(D)?(e.exit("htmlFlowData"),oe(D)):(e.consume(D),J)}function oe(D){return e.exit("htmlFlow"),t(D)}}function kA(e,t,r){const i=this;return l;function l(c){return Ve(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):r(c)}function s(c){return i.parser.lazy[i.now().line]?r(c):t(c)}}function DA(e,t,r){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(gs,t,r)}}const LA={name:"htmlText",tokenize:IA};function IA(e,t,r){const i=this;let l,s,c;return d;function d(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),p}function p(C){return C===33?(e.consume(C),m):C===47?(e.consume(C),L):C===63?(e.consume(C),k):Hr(C)?(e.consume(C),ae):r(C)}function m(C){return C===45?(e.consume(C),b):C===91?(e.consume(C),s=0,O):Hr(C)?(e.consume(C),H):r(C)}function b(C){return C===45?(e.consume(C),y):r(C)}function E(C){return C===null?r(C):C===45?(e.consume(C),S):Ve(C)?(c=E,se(C)):(e.consume(C),E)}function S(C){return C===45?(e.consume(C),y):E(C)}function y(C){return C===62?K(C):C===45?S(C):E(C)}function O(C){const J="CDATA[";return C===J.charCodeAt(s++)?(e.consume(C),s===J.length?_:O):r(C)}function _(C){return C===null?r(C):C===93?(e.consume(C),I):Ve(C)?(c=_,se(C)):(e.consume(C),_)}function I(C){return C===93?(e.consume(C),v):_(C)}function v(C){return C===62?K(C):C===93?(e.consume(C),v):_(C)}function H(C){return C===null||C===62?K(C):Ve(C)?(c=H,se(C)):(e.consume(C),H)}function k(C){return C===null?r(C):C===63?(e.consume(C),P):Ve(C)?(c=k,se(C)):(e.consume(C),k)}function P(C){return C===62?K(C):k(C)}function L(C){return Hr(C)?(e.consume(C),M):r(C)}function M(C){return C===45||Qn(C)?(e.consume(C),M):j(C)}function j(C){return Ve(C)?(c=j,se(C)):Et(C)?(e.consume(C),j):K(C)}function ae(C){return C===45||Qn(C)?(e.consume(C),ae):C===47||C===62||Ln(C)?V(C):r(C)}function V(C){return C===47?(e.consume(C),K):C===58||C===95||Hr(C)?(e.consume(C),A):Ve(C)?(c=V,se(C)):Et(C)?(e.consume(C),V):K(C)}function A(C){return C===45||C===46||C===58||C===95||Qn(C)?(e.consume(C),A):Y(C)}function Y(C){return C===61?(e.consume(C),W):Ve(C)?(c=Y,se(C)):Et(C)?(e.consume(C),Y):V(C)}function W(C){return C===null||C===60||C===61||C===62||C===96?r(C):C===34||C===39?(e.consume(C),l=C,Q):Ve(C)?(c=W,se(C)):Et(C)?(e.consume(C),W):(e.consume(C),G)}function Q(C){return C===l?(e.consume(C),l=void 0,ee):C===null?r(C):Ve(C)?(c=Q,se(C)):(e.consume(C),Q)}function G(C){return C===null||C===34||C===39||C===60||C===61||C===96?r(C):C===47||C===62||Ln(C)?V(C):(e.consume(C),G)}function ee(C){return C===47||C===62||Ln(C)?V(C):r(C)}function K(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):r(C)}function se(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),re}function re(C){return Et(C)?Dt(e,be,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):be(C)}function be(C){return e.enter("htmlTextData"),c(C)}}const Zf={name:"labelEnd",tokenize:HA,resolveTo:UA,resolveAll:PA},wA={tokenize:FA},MA={tokenize:zA},BA={tokenize:YA};function PA(e){let t=-1;for(;++t<e.length;){const r=e[t][1];(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(e.splice(t+1,r.type==="labelImage"?4:2),r.type="data",t++)}return e}function UA(e,t){let r=e.length,i=0,l,s,c,d;for(;r--;)if(l=e[r][1],s){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[r][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(c){if(e[r][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(s=r,l.type!=="labelLink")){i=2;break}}else l.type==="labelEnd"&&(c=r);const p={type:e[s][1].type==="labelLink"?"link":"image",start:Object.assign({},e[s][1].start),end:Object.assign({},e[e.length-1][1].end)},m={type:"label",start:Object.assign({},e[s][1].start),end:Object.assign({},e[c][1].end)},b={type:"labelText",start:Object.assign({},e[s+i+2][1].end),end:Object.assign({},e[c-2][1].start)};return d=[["enter",p,t],["enter",m,t]],d=sr(d,e.slice(s+1,s+i+3)),d=sr(d,[["enter",b,t]]),d=sr(d,Qf(t.parser.constructs.insideSpan.null,e.slice(s+i+4,c-3),t)),d=sr(d,[["exit",b,t],e[c-2],e[c-1],["exit",m,t]]),d=sr(d,e.slice(c+1)),d=sr(d,[["exit",p,t]]),ta(e,s,e.length,d),e}function HA(e,t,r){const i=this;let l=i.events.length,s,c;for(;l--;)if((i.events[l][1].type==="labelImage"||i.events[l][1].type==="labelLink")&&!i.events[l][1]._balanced){s=i.events[l][1];break}return d;function d(S){return s?s._inactive?E(S):(c=i.parser.defined.includes(qi(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(S),e.exit("labelMarker"),e.exit("labelEnd"),p):r(S)}function p(S){return S===40?e.attempt(wA,b,c?b:E)(S):S===91?e.attempt(MA,b,c?m:E)(S):c?b(S):E(S)}function m(S){return e.attempt(BA,b,E)(S)}function b(S){return t(S)}function E(S){return s._balanced=!0,r(S)}}function FA(e,t,r){return i;function i(E){return e.enter("resource"),e.enter("resourceMarker"),e.consume(E),e.exit("resourceMarker"),l}function l(E){return Ln(E)?cl(e,s)(E):s(E)}function s(E){return E===41?b(E):T1(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(E)}function c(E){return Ln(E)?cl(e,p)(E):b(E)}function d(E){return r(E)}function p(E){return E===34||E===39||E===40?C1(e,m,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(E):b(E)}function m(E){return Ln(E)?cl(e,b)(E):b(E)}function b(E){return E===41?(e.enter("resourceMarker"),e.consume(E),e.exit("resourceMarker"),e.exit("resource"),t):r(E)}}function zA(e,t,r){const i=this;return l;function l(d){return S1.call(i,e,s,c,"reference","referenceMarker","referenceString")(d)}function s(d){return i.parser.defined.includes(qi(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(d):r(d)}function c(d){return r(d)}}function YA(e,t,r){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),l}function l(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):r(s)}}const jA={name:"labelStartImage",tokenize:VA,resolveAll:Zf.resolveAll};function VA(e,t,r){const i=this;return l;function l(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"),c):r(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(d):t(d)}}const $A={name:"labelStartLink",tokenize:qA,resolveAll:Zf.resolveAll};function qA(e,t,r){const i=this;return l;function l(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),s}function s(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(c):t(c)}}const Jf={name:"lineEnding",tokenize:GA};function GA(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Dt(e,t,"linePrefix")}}const bs={name:"thematicBreak",tokenize:XA};function XA(e,t,r){let i=0,l;return s;function s(m){return e.enter("thematicBreak"),c(m)}function c(m){return l=m,d(m)}function d(m){return m===l?(e.enter("thematicBreakSequence"),p(m)):i>=3&&(m===null||Ve(m))?(e.exit("thematicBreak"),t(m)):r(m)}function p(m){return m===l?(e.consume(m),i++,p):(e.exit("thematicBreakSequence"),Et(m)?Dt(e,d,"whitespace")(m):d(m))}}const In={name:"list",tokenize:WA,continuation:{tokenize:ZA},exit:e4},QA={tokenize:t4,partial:!0},KA={tokenize:JA,partial:!0};function WA(e,t,r){const i=this,l=i.events[i.events.length-1];let s=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,c=0;return d;function d(y){const O=i.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(O==="listUnordered"?!i.containerState.marker||y===i.containerState.marker:Xf(y)){if(i.containerState.type||(i.containerState.type=O,e.enter(O,{_container:!0})),O==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(bs,r,m)(y):m(y);if(!i.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),p(y)}return r(y)}function p(y){return Xf(y)&&++c<10?(e.consume(y),p):(!i.interrupt||c<2)&&(i.containerState.marker?y===i.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),m(y)):r(y)}function m(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||y,e.check(gs,i.interrupt?r:b,e.attempt(QA,S,E))}function b(y){return i.containerState.initialBlankLine=!0,s++,S(y)}function E(y){return Et(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),S):r(y)}function S(y){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function ZA(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(gs,l,s);function l(d){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Dt(e,t,"listItemIndent",i.containerState.size+1)(d)}function s(d){return i.containerState.furtherBlankLines||!Et(d)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(d)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(KA,t,c)(d))}function c(d){return i.containerState._closeFlow=!0,i.interrupt=void 0,Dt(e,e.attempt(In,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function JA(e,t,r){const i=this;return Dt(e,l,"listItemIndent",i.containerState.size+1);function l(s){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?t(s):r(s)}}function e4(e){e.exit(this.containerState.type)}function t4(e,t,r){const i=this;return Dt(e,l,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(s){const c=i.events[i.events.length-1];return!Et(s)&&c&&c[1].type==="listItemPrefixWhitespace"?t(s):r(s)}}const x1={name:"setextUnderline",tokenize:r4,resolveTo:n4};function n4(e,t){let r=e.length,i,l,s;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(l=r)}else e[r][1].type==="content"&&e.splice(r,1),!s&&e[r][1].type==="definition"&&(s=r);const c={type:"setextHeading",start:Object.assign({},e[l][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[l][1].type="setextHeadingText",s?(e.splice(l,0,["enter",c,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end=Object.assign({},e[s][1].end)):e[i][1]=c,e.push(["exit",c,t]),e}function r4(e,t,r){const i=this;let l;return s;function s(m){let b=i.events.length,E;for(;b--;)if(i.events[b][1].type!=="lineEnding"&&i.events[b][1].type!=="linePrefix"&&i.events[b][1].type!=="content"){E=i.events[b][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||E)?(e.enter("setextHeadingLine"),l=m,c(m)):r(m)}function c(m){return e.enter("setextHeadingLineSequence"),d(m)}function d(m){return m===l?(e.consume(m),d):(e.exit("setextHeadingLineSequence"),Et(m)?Dt(e,p,"lineSuffix")(m):p(m))}function p(m){return m===null||Ve(m)?(e.exit("setextHeadingLine"),t(m)):r(m)}}const a4={tokenize:i4};function i4(e){const t=this,r=e.attempt(gs,i,e.attempt(this.parser.constructs.flowInitial,l,Dt(e,e.attempt(this.parser.constructs.flow,l,e.attempt(cA,l)),"linePrefix")));return r;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function l(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const u4={resolveAll:v1()},l4=_1("string"),o4=_1("text");function _1(e){return{tokenize:t,resolveAll:v1(e==="text"?s4:void 0)};function t(r){const i=this,l=this.parser.constructs[e],s=r.attempt(l,c,d);return c;function c(b){return m(b)?s(b):d(b)}function d(b){if(b===null){r.consume(b);return}return r.enter("data"),r.consume(b),p}function p(b){return m(b)?(r.exit("data"),s(b)):(r.consume(b),p)}function m(b){if(b===null)return!0;const E=l[b];let S=-1;if(E)for(;++S<E.length;){const y=E[S];if(!y.previous||y.previous.call(i,i.previous))return!0}return!1}}}function v1(e){return t;function t(r,i){let l=-1,s;for(;++l<=r.length;)s===void 0?r[l]&&r[l][1].type==="data"&&(s=l,l++):(!r[l]||r[l][1].type!=="data")&&(l!==s+2&&(r[s][1].end=r[l-1][1].end,r.splice(s+2,l-s-2),l=s+2),s=void 0);return e?e(r,i):r}}function s4(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],l=t.sliceStream(i);let s=l.length,c=-1,d=0,p;for(;s--;){const m=l[s];if(typeof m=="string"){for(c=m.length;m.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(m===-2)p=!0,d++;else if(m!==-1){s++;break}}if(d){const m={type:r===e.length||p||d<2?"lineSuffix":"hardBreakTrailing",start:{line:i.end.line,column:i.end.column-d,offset:i.end.offset-d,_index:i.start._index+s,_bufferIndex:s?c:i.start._bufferIndex+c},end:Object.assign({},i.end)};i.end=Object.assign({},m.start),i.start.offset===i.end.offset?Object.assign(i,m):(e.splice(r,0,["enter",m,t],["exit",m,t]),r+=2)}r++}return e}function c4(e,t,r){let i=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const l={},s=[];let c=[],d=[];const p={consume:H,enter:k,exit:P,attempt:j(L),check:j(M),interrupt:j(M,{interrupt:!0})},m={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:y,sliceSerialize:S,now:O,defineSkip:_,write:E};let b=t.tokenize.call(m,p);return t.resolveAll&&s.push(t),m;function E(Y){return c=sr(c,Y),I(),c[c.length-1]!==null?[]:(ae(t,0),m.events=Qf(s,m.events,m),m.events)}function S(Y,W){return d4(y(Y),W)}function y(Y){return f4(c,Y)}function O(){const{line:Y,column:W,offset:Q,_index:G,_bufferIndex:ee}=i;return{line:Y,column:W,offset:Q,_index:G,_bufferIndex:ee}}function _(Y){l[Y.line]=Y.column,A()}function I(){let Y;for(;i._index<c.length;){const W=c[i._index];if(typeof W=="string")for(Y=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===Y&&i._bufferIndex<W.length;)v(W.charCodeAt(i._bufferIndex));else v(W)}}function v(Y){b=b(Y)}function H(Y){Ve(Y)?(i.line++,i.column=1,i.offset+=Y===-3?2:1,A()):Y!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),m.previous=Y}function k(Y,W){const Q=W||{};return Q.type=Y,Q.start=O(),m.events.push(["enter",Q,m]),d.push(Q),Q}function P(Y){const W=d.pop();return W.end=O(),m.events.push(["exit",W,m]),W}function L(Y,W){ae(Y,W.from)}function M(Y,W){W.restore()}function j(Y,W){return Q;function Q(G,ee,K){let se,re,be,C;return Array.isArray(G)?oe(G):"tokenize"in G?oe([G]):J(G);function J(Se){return tt;function tt(Me){const $e=Me!==null&&Se[Me],xe=Me!==null&&Se.null,Ge=[...Array.isArray($e)?$e:$e?[$e]:[],...Array.isArray(xe)?xe:xe?[xe]:[]];return oe(Ge)(Me)}}function oe(Se){return se=Se,re=0,Se.length===0?K:D(Se[re])}function D(Se){return tt;function tt(Me){return C=V(),be=Se,Se.partial||(m.currentConstruct=Se),Se.name&&m.parser.constructs.disable.null.includes(Se.name)?Oe():Se.tokenize.call(W?Object.assign(Object.create(m),W):m,p,ce,Oe)(Me)}}function ce(Se){return Y(be,C),ee}function Oe(Se){return C.restore(),++re<se.length?D(se[re]):K}}}function ae(Y,W){Y.resolveAll&&!s.includes(Y)&&s.push(Y),Y.resolve&&ta(m.events,W,m.events.length-W,Y.resolve(m.events.slice(W),m)),Y.resolveTo&&(m.events=Y.resolveTo(m.events,m))}function V(){const Y=O(),W=m.previous,Q=m.currentConstruct,G=m.events.length,ee=Array.from(d);return{restore:K,from:G};function K(){i=Y,m.previous=W,m.currentConstruct=Q,m.events.length=G,d=ee,A()}}function A(){i.line in l&&i.column<2&&(i.column=l[i.line],i.offset+=l[i.line]-1)}}function f4(e,t){const r=t.start._index,i=t.start._bufferIndex,l=t.end._index,s=t.end._bufferIndex;let c;if(r===l)c=[e[r].slice(i,s)];else{if(c=e.slice(r,l),i>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(i):c.shift()}s>0&&c.push(e[l].slice(0,s))}return c}function d4(e,t){let r=-1;const i=[];let l;for(;++r<e.length;){const s=e[r];let c;if(typeof s=="string")c=s;else switch(s){case-5:{c="\r";break}case-4:{c=`
58
58
  `;break}case-3:{c=`\r
59
- `;break}case-2:{c=t?" ":" ";break}case-1:{if(!t&&l)continue;c=" ";break}default:c=String.fromCharCode(s)}l=s===-2,i.push(c)}return i.join("")}const h4=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:mA},disable:{null:[]},document:{42:In,43:In,45:In,48:In,49:In,50:In,51:In,52:In,53:In,54:In,55:In,56:In,57:In,62:p1},flow:{35:SA,42:bs,45:[x1,bs],60:_A,61:x1,95:bs,96:E1,126:E1},flowInitial:{[-2]:Wf,[-1]:Wf,32:Wf},insideSpan:{null:[Kf,u4]},string:{38:g1,92:m1},text:{[-5]:Jf,[-4]:Jf,[-3]:Jf,33:jA,38:g1,42:Kf,60:[$6,LA],91:$A,92:[yA,m1],93:Zf,95:Kf,96:aA}},Symbol.toStringTag,{value:"Module"}));function p4(e){const r=k6([h4,...(e||{}).extensions||[]]),i={defined:[],lazy:{},constructs:r,content:l(U6),document:l(F6),flow:l(a4),string:l(l4),text:l(o4)};return i;function l(s){return c;function c(d){return c4(i,s,d)}}}function m4(e){for(;!y1(e););return e}const R1=/[\0\t\n\r]/g;function g4(){let e=1,t="",r=!0,i;return l;function l(s,c,d){const p=[];let m,b,E,S,y;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(c||void 0).decode(s)),E=0,t="",r&&(s.charCodeAt(0)===65279&&E++,r=void 0);E<s.length;){if(R1.lastIndex=E,m=R1.exec(s),S=m&&m.index!==void 0?m.index:s.length,y=s.charCodeAt(S),!m){t=s.slice(E);break}if(y===10&&E===S&&i)p.push(-3),i=void 0;else switch(i&&(p.push(-5),i=void 0),E<S&&(p.push(s.slice(E,S)),e+=S-E),y){case 0:{p.push(65533),e++;break}case 9:{for(b=Math.ceil(e/4)*4,p.push(-2);e++<b;)p.push(-1);break}case 10:{p.push(-4),e=1;break}default:i=!0,e=1}E=S+1}return d&&(i&&p.push(-5),t&&p.push(t),p.push(null)),p}}const b4=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function E4(e){return e.replace(b4,y4)}function y4(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const l=r.charCodeAt(1),s=l===120||l===88;return c1(r.slice(s?2:1),s?16:10)}return qf(r)||e}const O1={}.hasOwnProperty;function T4(e,t,r){return typeof t!="string"&&(r=t,t=void 0),S4(r)(m4(p4(r).document().write(g4()(e,t,!0))))}function S4(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ct),autolinkProtocol:V,autolinkEmail:V,atxHeading:s(Be),blockQuote:s(xe),characterEscape:V,characterReference:V,codeFenced:s(Ge),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(Ge,c),codeText:s(ve,c),codeTextData:V,data:V,codeFlowValue:V,definition:s(Re),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(Ce),hardBreakEscape:s(it),hardBreakTrailing:s(it),htmlFlow:s(je,c),htmlFlowData:V,htmlText:s(je,c),htmlTextData:V,image:s(Ue),label:c,link:s(ct),listItem:s(rn),listItemValue:S,listOrdered:s(St,E),listUnordered:s(St),paragraph:s(_n),reference:D,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(Be),strong:s(we),thematicBreak:s($t)},exit:{atxHeading:p(),atxHeadingSequence:L,autolink:p(),autolinkEmail:$e,autolinkProtocol:Me,blockQuote:p(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:Oe,characterReferenceMarkerNumeric:Oe,characterReferenceValue:Se,characterReference:tt,codeFenced:p(I),codeFencedFence:_,codeFencedFenceInfo:y,codeFencedFenceMeta:O,codeFlowValue:A,codeIndented:p(R),codeText:p(te),codeTextData:A,data:A,definition:p(),definitionDestinationString:P,definitionLabelString:H,definitionTitleString:k,emphasis:p(),hardBreakEscape:p(W),hardBreakTrailing:p(W),htmlFlow:p(X),htmlFlowData:A,htmlText:p(Q),htmlTextData:A,image:p(se),label:be,labelText:re,lineEnding:Y,link:p(K),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:ce,resourceDestinationString:C,resourceTitleString:J,resource:oe,setextHeading:p(ae),setextHeadingLineSequence:j,setextHeadingText:M,strong:p(),thematicBreak:p()}};N1(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(ee){let de={type:"root",children:[]};const Ae={stack:[de],tokenStack:[],config:t,enter:d,exit:m,buffer:c,resume:b,data:r},He=[];let nt=-1;for(;++nt<ee.length;)if(ee[nt][1].type==="listOrdered"||ee[nt][1].type==="listUnordered")if(ee[nt][0]==="enter")He.push(nt);else{const Qe=He.pop();nt=l(ee,Qe,nt)}for(nt=-1;++nt<ee.length;){const Qe=t[ee[nt][0]];O1.call(Qe,ee[nt][1].type)&&Qe[ee[nt][1].type].call(Object.assign({sliceSerialize:ee[nt][2].sliceSerialize},Ae),ee[nt][1])}if(Ae.tokenStack.length>0){const Qe=Ae.tokenStack[Ae.tokenStack.length-1];(Qe[1]||k1).call(Ae,void 0,Qe[0])}for(de.position={start:va(ee.length>0?ee[0][1].start:{line:1,column:1,offset:0}),end:va(ee.length>0?ee[ee.length-2][1].end:{line:1,column:1,offset:0})},nt=-1;++nt<t.transforms.length;)de=t.transforms[nt](de)||de;return de}function l(ee,de,Ae){let He=de-1,nt=-1,Qe=!1,vn,an,Ft,ke;for(;++He<=Ae;){const _e=ee[He];switch(_e[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{_e[0]==="enter"?nt++:nt--,ke=void 0;break}case"lineEndingBlank":{_e[0]==="enter"&&(vn&&!ke&&!nt&&!Ft&&(Ft=He),ke=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ke=void 0}if(!nt&&_e[0]==="enter"&&_e[1].type==="listItemPrefix"||nt===-1&&_e[0]==="exit"&&(_e[1].type==="listUnordered"||_e[1].type==="listOrdered")){if(vn){let ze=He;for(an=void 0;ze--;){const Ke=ee[ze];if(Ke[1].type==="lineEnding"||Ke[1].type==="lineEndingBlank"){if(Ke[0]==="exit")continue;an&&(ee[an][1].type="lineEndingBlank",Qe=!0),Ke[1].type="lineEnding",an=ze}else if(!(Ke[1].type==="linePrefix"||Ke[1].type==="blockQuotePrefix"||Ke[1].type==="blockQuotePrefixWhitespace"||Ke[1].type==="blockQuoteMarker"||Ke[1].type==="listItemIndent"))break}Ft&&(!an||Ft<an)&&(vn._spread=!0),vn.end=Object.assign({},an?ee[an][1].start:_e[1].end),ee.splice(an||He,0,["exit",vn,_e[2]]),He++,Ae++}if(_e[1].type==="listItemPrefix"){const ze={type:"listItem",_spread:!1,start:Object.assign({},_e[1].start),end:void 0};vn=ze,ee.splice(He,0,["enter",ze,_e[2]]),He++,Ae++,Ft=void 0,ke=!0}}}return ee[de][1]._spread=Qe,Ae}function s(ee,de){return Ae;function Ae(He){d.call(this,ee(He),He),de&&de.call(this,He)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(ee,de,Ae){this.stack[this.stack.length-1].children.push(ee),this.stack.push(ee),this.tokenStack.push([de,Ae||void 0]),ee.position={start:va(de.start),end:void 0}}function p(ee){return de;function de(Ae){ee&&ee.call(this,Ae),m.call(this,Ae)}}function m(ee,de){const Ae=this.stack.pop(),He=this.tokenStack.pop();if(He)He[0].type!==ee.type&&(de?de.call(this,ee,He[0]):(He[1]||k1).call(this,ee,He[0]));else throw new Error("Cannot close `"+ee.type+"` ("+ul({start:ee.start,end:ee.end})+"): it’s not open");Ae.position.end=va(ee.end)}function b(){return O6(this.stack.pop())}function E(){this.data.expectingFirstListItemValue=!0}function S(ee){if(this.data.expectingFirstListItemValue){const de=this.stack[this.stack.length-2];de.start=Number.parseInt(this.sliceSerialize(ee),10),this.data.expectingFirstListItemValue=void 0}}function y(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.lang=ee}function O(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.meta=ee}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function R(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee.replace(/(\r?\n|\r)$/g,"")}function H(ee){const de=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=de,Ae.identifier=qi(this.sliceSerialize(ee)).toLowerCase()}function k(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.title=ee}function P(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.url=ee}function L(ee){const de=this.stack[this.stack.length-1];if(!de.depth){const Ae=this.sliceSerialize(ee).length;de.depth=Ae}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function j(ee){const de=this.stack[this.stack.length-1];de.depth=this.sliceSerialize(ee).codePointAt(0)===61?1:2}function ae(){this.data.setextHeadingSlurpLineEnding=void 0}function V(ee){const Ae=this.stack[this.stack.length-1].children;let He=Ae[Ae.length-1];(!He||He.type!=="text")&&(He=Xe(),He.position={start:va(ee.start),end:void 0},Ae.push(He)),this.stack.push(He)}function A(ee){const de=this.stack.pop();de.value+=this.sliceSerialize(ee),de.position.end=va(ee.end)}function Y(ee){const de=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ae=de.children[de.children.length-1];Ae.position.end=va(ee.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(de.type)&&(V.call(this,ee),A.call(this,ee))}function W(){this.data.atHardBreak=!0}function X(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee}function Q(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee}function te(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee}function K(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=de,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function se(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=de,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function re(ee){const de=this.sliceSerialize(ee),Ae=this.stack[this.stack.length-2];Ae.label=E4(de),Ae.identifier=qi(de).toLowerCase()}function be(){const ee=this.stack[this.stack.length-1],de=this.resume(),Ae=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ae.type==="link"){const He=ee.children;Ae.children=He}else Ae.alt=de}function C(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.url=ee}function J(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.title=ee}function oe(){this.data.inReference=void 0}function D(){this.data.referenceType="collapsed"}function ce(ee){const de=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=de,Ae.identifier=qi(this.sliceSerialize(ee)).toLowerCase(),this.data.referenceType="full"}function Oe(ee){this.data.characterReferenceType=ee.type}function Se(ee){const de=this.sliceSerialize(ee),Ae=this.data.characterReferenceType;let He;Ae?(He=c1(de,Ae==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):He=qf(de);const nt=this.stack[this.stack.length-1];nt.value+=He}function tt(ee){const de=this.stack.pop();de.position.end=va(ee.end)}function Me(ee){A.call(this,ee);const de=this.stack[this.stack.length-1];de.url=this.sliceSerialize(ee)}function $e(ee){A.call(this,ee);const de=this.stack[this.stack.length-1];de.url="mailto:"+this.sliceSerialize(ee)}function xe(){return{type:"blockquote",children:[]}}function Ge(){return{type:"code",lang:null,meta:null,value:""}}function ve(){return{type:"inlineCode",value:""}}function Re(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ce(){return{type:"emphasis",children:[]}}function Be(){return{type:"heading",depth:0,children:[]}}function it(){return{type:"break"}}function je(){return{type:"html",value:""}}function Ue(){return{type:"image",title:null,url:"",alt:null}}function ct(){return{type:"link",title:null,url:"",children:[]}}function St(ee){return{type:"list",ordered:ee.type==="listOrdered",start:null,spread:ee._spread,children:[]}}function rn(ee){return{type:"listItem",spread:ee._spread,checked:null,children:[]}}function _n(){return{type:"paragraph",children:[]}}function we(){return{type:"strong",children:[]}}function Xe(){return{type:"text",value:""}}function $t(){return{type:"thematicBreak"}}}function va(e){return{line:e.line,column:e.column,offset:e.offset}}function N1(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?N1(e,i):C4(e,i)}}function C4(e,t){let r;for(r in t)if(O1.call(t,r))switch(r){case"canContainEols":{const i=t[r];i&&e[r].push(...i);break}case"transforms":{const i=t[r];i&&e[r].push(...i);break}case"enter":case"exit":{const i=t[r];i&&Object.assign(e[r],i);break}}}function k1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ul({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ul({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ul({start:t.start,end:t.end})+") is still open")}function A4(e){const t=this;t.parser=r;function r(i){return T4(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function x4(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function _4(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
59
+ `;break}case-2:{c=t?" ":" ";break}case-1:{if(!t&&l)continue;c=" ";break}default:c=String.fromCharCode(s)}l=s===-2,i.push(c)}return i.join("")}const h4=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:mA},disable:{null:[]},document:{42:In,43:In,45:In,48:In,49:In,50:In,51:In,52:In,53:In,54:In,55:In,56:In,57:In,62:p1},flow:{35:SA,42:bs,45:[x1,bs],60:_A,61:x1,95:bs,96:E1,126:E1},flowInitial:{[-2]:Wf,[-1]:Wf,32:Wf},insideSpan:{null:[Kf,u4]},string:{38:g1,92:m1},text:{[-5]:Jf,[-4]:Jf,[-3]:Jf,33:jA,38:g1,42:Kf,60:[$6,LA],91:$A,92:[yA,m1],93:Zf,95:Kf,96:aA}},Symbol.toStringTag,{value:"Module"}));function p4(e){const r=k6([h4,...(e||{}).extensions||[]]),i={defined:[],lazy:{},constructs:r,content:l(U6),document:l(F6),flow:l(a4),string:l(l4),text:l(o4)};return i;function l(s){return c;function c(d){return c4(i,s,d)}}}function m4(e){for(;!y1(e););return e}const R1=/[\0\t\n\r]/g;function g4(){let e=1,t="",r=!0,i;return l;function l(s,c,d){const p=[];let m,b,E,S,y;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(c||void 0).decode(s)),E=0,t="",r&&(s.charCodeAt(0)===65279&&E++,r=void 0);E<s.length;){if(R1.lastIndex=E,m=R1.exec(s),S=m&&m.index!==void 0?m.index:s.length,y=s.charCodeAt(S),!m){t=s.slice(E);break}if(y===10&&E===S&&i)p.push(-3),i=void 0;else switch(i&&(p.push(-5),i=void 0),E<S&&(p.push(s.slice(E,S)),e+=S-E),y){case 0:{p.push(65533),e++;break}case 9:{for(b=Math.ceil(e/4)*4,p.push(-2);e++<b;)p.push(-1);break}case 10:{p.push(-4),e=1;break}default:i=!0,e=1}E=S+1}return d&&(i&&p.push(-5),t&&p.push(t),p.push(null)),p}}const b4=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function E4(e){return e.replace(b4,y4)}function y4(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const l=r.charCodeAt(1),s=l===120||l===88;return c1(r.slice(s?2:1),s?16:10)}return qf(r)||e}const O1={}.hasOwnProperty;function T4(e,t,r){return typeof t!="string"&&(r=t,t=void 0),S4(r)(m4(p4(r).document().write(g4()(e,t,!0))))}function S4(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ct),autolinkProtocol:V,autolinkEmail:V,atxHeading:s(Be),blockQuote:s(xe),characterEscape:V,characterReference:V,codeFenced:s(Ge),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(Ge,c),codeText:s(ve,c),codeTextData:V,data:V,codeFlowValue:V,definition:s(Re),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(Ce),hardBreakEscape:s(it),hardBreakTrailing:s(it),htmlFlow:s(je,c),htmlFlowData:V,htmlText:s(je,c),htmlTextData:V,image:s(Ue),label:c,link:s(ct),listItem:s(rn),listItemValue:S,listOrdered:s(St,E),listUnordered:s(St),paragraph:s(_n),reference:D,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(Be),strong:s(we),thematicBreak:s($t)},exit:{atxHeading:p(),atxHeadingSequence:L,autolink:p(),autolinkEmail:$e,autolinkProtocol:Me,blockQuote:p(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:Oe,characterReferenceMarkerNumeric:Oe,characterReferenceValue:Se,characterReference:tt,codeFenced:p(I),codeFencedFence:_,codeFencedFenceInfo:y,codeFencedFenceMeta:O,codeFlowValue:A,codeIndented:p(v),codeText:p(ee),codeTextData:A,data:A,definition:p(),definitionDestinationString:P,definitionLabelString:H,definitionTitleString:k,emphasis:p(),hardBreakEscape:p(W),hardBreakTrailing:p(W),htmlFlow:p(Q),htmlFlowData:A,htmlText:p(G),htmlTextData:A,image:p(se),label:be,labelText:re,lineEnding:Y,link:p(K),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:ce,resourceDestinationString:C,resourceTitleString:J,resource:oe,setextHeading:p(ae),setextHeadingLineSequence:j,setextHeadingText:M,strong:p(),thematicBreak:p()}};N1(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(te){let de={type:"root",children:[]};const Ae={stack:[de],tokenStack:[],config:t,enter:d,exit:m,buffer:c,resume:b,data:r},He=[];let nt=-1;for(;++nt<te.length;)if(te[nt][1].type==="listOrdered"||te[nt][1].type==="listUnordered")if(te[nt][0]==="enter")He.push(nt);else{const Qe=He.pop();nt=l(te,Qe,nt)}for(nt=-1;++nt<te.length;){const Qe=t[te[nt][0]];O1.call(Qe,te[nt][1].type)&&Qe[te[nt][1].type].call(Object.assign({sliceSerialize:te[nt][2].sliceSerialize},Ae),te[nt][1])}if(Ae.tokenStack.length>0){const Qe=Ae.tokenStack[Ae.tokenStack.length-1];(Qe[1]||k1).call(Ae,void 0,Qe[0])}for(de.position={start:va(te.length>0?te[0][1].start:{line:1,column:1,offset:0}),end:va(te.length>0?te[te.length-2][1].end:{line:1,column:1,offset:0})},nt=-1;++nt<t.transforms.length;)de=t.transforms[nt](de)||de;return de}function l(te,de,Ae){let He=de-1,nt=-1,Qe=!1,vn,an,Ft,ke;for(;++He<=Ae;){const _e=te[He];switch(_e[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{_e[0]==="enter"?nt++:nt--,ke=void 0;break}case"lineEndingBlank":{_e[0]==="enter"&&(vn&&!ke&&!nt&&!Ft&&(Ft=He),ke=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ke=void 0}if(!nt&&_e[0]==="enter"&&_e[1].type==="listItemPrefix"||nt===-1&&_e[0]==="exit"&&(_e[1].type==="listUnordered"||_e[1].type==="listOrdered")){if(vn){let ze=He;for(an=void 0;ze--;){const Ke=te[ze];if(Ke[1].type==="lineEnding"||Ke[1].type==="lineEndingBlank"){if(Ke[0]==="exit")continue;an&&(te[an][1].type="lineEndingBlank",Qe=!0),Ke[1].type="lineEnding",an=ze}else if(!(Ke[1].type==="linePrefix"||Ke[1].type==="blockQuotePrefix"||Ke[1].type==="blockQuotePrefixWhitespace"||Ke[1].type==="blockQuoteMarker"||Ke[1].type==="listItemIndent"))break}Ft&&(!an||Ft<an)&&(vn._spread=!0),vn.end=Object.assign({},an?te[an][1].start:_e[1].end),te.splice(an||He,0,["exit",vn,_e[2]]),He++,Ae++}if(_e[1].type==="listItemPrefix"){const ze={type:"listItem",_spread:!1,start:Object.assign({},_e[1].start),end:void 0};vn=ze,te.splice(He,0,["enter",ze,_e[2]]),He++,Ae++,Ft=void 0,ke=!0}}}return te[de][1]._spread=Qe,Ae}function s(te,de){return Ae;function Ae(He){d.call(this,te(He),He),de&&de.call(this,He)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(te,de,Ae){this.stack[this.stack.length-1].children.push(te),this.stack.push(te),this.tokenStack.push([de,Ae||void 0]),te.position={start:va(de.start),end:void 0}}function p(te){return de;function de(Ae){te&&te.call(this,Ae),m.call(this,Ae)}}function m(te,de){const Ae=this.stack.pop(),He=this.tokenStack.pop();if(He)He[0].type!==te.type&&(de?de.call(this,te,He[0]):(He[1]||k1).call(this,te,He[0]));else throw new Error("Cannot close `"+te.type+"` ("+ul({start:te.start,end:te.end})+"): it’s not open");Ae.position.end=va(te.end)}function b(){return O6(this.stack.pop())}function E(){this.data.expectingFirstListItemValue=!0}function S(te){if(this.data.expectingFirstListItemValue){const de=this.stack[this.stack.length-2];de.start=Number.parseInt(this.sliceSerialize(te),10),this.data.expectingFirstListItemValue=void 0}}function y(){const te=this.resume(),de=this.stack[this.stack.length-1];de.lang=te}function O(){const te=this.resume(),de=this.stack[this.stack.length-1];de.meta=te}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const te=this.resume(),de=this.stack[this.stack.length-1];de.value=te.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const te=this.resume(),de=this.stack[this.stack.length-1];de.value=te.replace(/(\r?\n|\r)$/g,"")}function H(te){const de=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=de,Ae.identifier=qi(this.sliceSerialize(te)).toLowerCase()}function k(){const te=this.resume(),de=this.stack[this.stack.length-1];de.title=te}function P(){const te=this.resume(),de=this.stack[this.stack.length-1];de.url=te}function L(te){const de=this.stack[this.stack.length-1];if(!de.depth){const Ae=this.sliceSerialize(te).length;de.depth=Ae}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function j(te){const de=this.stack[this.stack.length-1];de.depth=this.sliceSerialize(te).codePointAt(0)===61?1:2}function ae(){this.data.setextHeadingSlurpLineEnding=void 0}function V(te){const Ae=this.stack[this.stack.length-1].children;let He=Ae[Ae.length-1];(!He||He.type!=="text")&&(He=Xe(),He.position={start:va(te.start),end:void 0},Ae.push(He)),this.stack.push(He)}function A(te){const de=this.stack.pop();de.value+=this.sliceSerialize(te),de.position.end=va(te.end)}function Y(te){const de=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ae=de.children[de.children.length-1];Ae.position.end=va(te.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(de.type)&&(V.call(this,te),A.call(this,te))}function W(){this.data.atHardBreak=!0}function Q(){const te=this.resume(),de=this.stack[this.stack.length-1];de.value=te}function G(){const te=this.resume(),de=this.stack[this.stack.length-1];de.value=te}function ee(){const te=this.resume(),de=this.stack[this.stack.length-1];de.value=te}function K(){const te=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";te.type+="Reference",te.referenceType=de,delete te.url,delete te.title}else delete te.identifier,delete te.label;this.data.referenceType=void 0}function se(){const te=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";te.type+="Reference",te.referenceType=de,delete te.url,delete te.title}else delete te.identifier,delete te.label;this.data.referenceType=void 0}function re(te){const de=this.sliceSerialize(te),Ae=this.stack[this.stack.length-2];Ae.label=E4(de),Ae.identifier=qi(de).toLowerCase()}function be(){const te=this.stack[this.stack.length-1],de=this.resume(),Ae=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ae.type==="link"){const He=te.children;Ae.children=He}else Ae.alt=de}function C(){const te=this.resume(),de=this.stack[this.stack.length-1];de.url=te}function J(){const te=this.resume(),de=this.stack[this.stack.length-1];de.title=te}function oe(){this.data.inReference=void 0}function D(){this.data.referenceType="collapsed"}function ce(te){const de=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=de,Ae.identifier=qi(this.sliceSerialize(te)).toLowerCase(),this.data.referenceType="full"}function Oe(te){this.data.characterReferenceType=te.type}function Se(te){const de=this.sliceSerialize(te),Ae=this.data.characterReferenceType;let He;Ae?(He=c1(de,Ae==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):He=qf(de);const nt=this.stack[this.stack.length-1];nt.value+=He}function tt(te){const de=this.stack.pop();de.position.end=va(te.end)}function Me(te){A.call(this,te);const de=this.stack[this.stack.length-1];de.url=this.sliceSerialize(te)}function $e(te){A.call(this,te);const de=this.stack[this.stack.length-1];de.url="mailto:"+this.sliceSerialize(te)}function xe(){return{type:"blockquote",children:[]}}function Ge(){return{type:"code",lang:null,meta:null,value:""}}function ve(){return{type:"inlineCode",value:""}}function Re(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ce(){return{type:"emphasis",children:[]}}function Be(){return{type:"heading",depth:0,children:[]}}function it(){return{type:"break"}}function je(){return{type:"html",value:""}}function Ue(){return{type:"image",title:null,url:"",alt:null}}function ct(){return{type:"link",title:null,url:"",children:[]}}function St(te){return{type:"list",ordered:te.type==="listOrdered",start:null,spread:te._spread,children:[]}}function rn(te){return{type:"listItem",spread:te._spread,checked:null,children:[]}}function _n(){return{type:"paragraph",children:[]}}function we(){return{type:"strong",children:[]}}function Xe(){return{type:"text",value:""}}function $t(){return{type:"thematicBreak"}}}function va(e){return{line:e.line,column:e.column,offset:e.offset}}function N1(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?N1(e,i):C4(e,i)}}function C4(e,t){let r;for(r in t)if(O1.call(t,r))switch(r){case"canContainEols":{const i=t[r];i&&e[r].push(...i);break}case"transforms":{const i=t[r];i&&e[r].push(...i);break}case"enter":case"exit":{const i=t[r];i&&Object.assign(e[r],i);break}}}function k1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ul({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ul({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ul({start:t.start,end:t.end})+") is still open")}function A4(e){const t=this;t.parser=r;function r(i){return T4(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function x4(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function _4(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
60
60
  `}]}function v4(e,t){const r=t.value?t.value+`
61
61
  `:"",i={};t.lang&&(i.className=["language-"+t.lang]);let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function R4(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function O4(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function N4(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),l=Gi(i.toLowerCase()),s=e.footnoteOrder.indexOf(i);let c,d=e.footnoteCounts.get(i);d===void 0?(d=0,e.footnoteOrder.push(i),c=e.footnoteOrder.length):c=s+1,d+=1,e.footnoteCounts.set(i,d);const p={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,p);const m={type:"element",tagName:"sup",properties:{},children:[p]};return e.patch(t,m),e.applyData(t,m)}function k4(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function D4(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function D1(e,t){const r=t.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const l=e.all(t),s=l[0];s&&s.type==="text"?s.value="["+s.value:l.unshift({type:"text",value:"["});const c=l[l.length-1];return c&&c.type==="text"?c.value+=i:l.push({type:"text",value:i}),l}function L4(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return D1(e,t);const l={src:Gi(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(l.title=i.title);const s={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,s),e.applyData(t,s)}function I4(e,t){const r={src:Gi(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function w4(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,i),e.applyData(t,i)}function M4(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return D1(e,t);const l={href:Gi(i.url||"")};i.title!==null&&i.title!==void 0&&(l.title=i.title);const s={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function B4(e,t){const r={href:Gi(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function P4(e,t,r){const i=e.all(t),l=r?U4(r):L1(t),s={},c=[];if(typeof t.checked=="boolean"){const b=i[0];let E;b&&b.type==="element"&&b.tagName==="p"?E=b:(E={type:"element",tagName:"p",properties:{},children:[]},i.unshift(E)),E.children.length>0&&E.children.unshift({type:"text",value:" "}),E.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let d=-1;for(;++d<i.length;){const b=i[d];(l||d!==0||b.type!=="element"||b.tagName!=="p")&&c.push({type:"text",value:`
62
62
  `}),b.type==="element"&&b.tagName==="p"&&!l?c.push(...b.children):c.push(b)}const p=i[i.length-1];p&&(l||p.type!=="element"||p.tagName!=="p")&&c.push({type:"text",value:`
63
- `});const m={type:"element",tagName:"li",properties:s,children:c};return e.patch(t,m),e.applyData(t,m)}function U4(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let i=-1;for(;!t&&++i<r.length;)t=L1(r[i])}return t}function L1(e){const t=e.spread;return t??e.children.length>1}function H4(e,t){const r={},i=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++l<i.length;){const c=i[l];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function F4(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function z4(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function Y4(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function j4(e,t){const r=e.all(t),i=r.shift(),l=[];if(i){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],c),l.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},d=Ur(t.children[1]),p=ms(t.children[t.children.length-1]);d&&p&&(c.position={start:d,end:p}),l.push(c)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,s),e.applyData(t,s)}function V4(e,t,r){const i=r?r.children:void 0,s=(i?i.indexOf(t):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,d=c?c.length:t.children.length;let p=-1;const m=[];for(;++p<d;){const E=t.children[p],S={},y=c?c[p]:void 0;y&&(S.align=y);let O={type:"element",tagName:s,properties:S,children:[]};E&&(O.children=e.all(E),e.patch(E,O),O=e.applyData(E,O)),m.push(O)}const b={type:"element",tagName:"tr",properties:{},children:e.wrap(m,!0)};return e.patch(t,b),e.applyData(t,b)}function $4(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const I1=9,w1=32;function q4(e){const t=String(e),r=/\r?\n|\r/g;let i=r.exec(t),l=0;const s=[];for(;i;)s.push(M1(t.slice(l,i.index),l>0,!0),i[0]),l=i.index+i[0].length,i=r.exec(t);return s.push(M1(t.slice(l),l>0,!1)),s.join("")}function M1(e,t,r){let i=0,l=e.length;if(t){let s=e.codePointAt(i);for(;s===I1||s===w1;)i++,s=e.codePointAt(i)}if(r){let s=e.codePointAt(l-1);for(;s===I1||s===w1;)l--,s=e.codePointAt(l-1)}return l>i?e.slice(i,l):""}function G4(e,t){const r={type:"text",value:q4(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function X4(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const Q4={blockquote:x4,break:_4,code:v4,delete:R4,emphasis:O4,footnoteReference:N4,heading:k4,html:D4,imageReference:L4,image:I4,inlineCode:w4,linkReference:M4,link:B4,listItem:P4,list:H4,paragraph:F4,root:z4,strong:Y4,table:j4,tableCell:$4,tableRow:V4,text:G4,thematicBreak:X4,toml:Es,yaml:Es,definition:Es,footnoteDefinition:Es};function Es(){}const B1=-1,ys=0,Ts=1,Ss=2,ed=3,td=4,nd=5,rd=6,P1=7,U1=8,H1=typeof self=="object"?self:globalThis,K4=(e,t)=>{const r=(l,s)=>(e.set(s,l),l),i=l=>{if(e.has(l))return e.get(l);const[s,c]=t[l];switch(s){case ys:case B1:return r(c,l);case Ts:{const d=r([],l);for(const p of c)d.push(i(p));return d}case Ss:{const d=r({},l);for(const[p,m]of c)d[i(p)]=i(m);return d}case ed:return r(new Date(c),l);case td:{const{source:d,flags:p}=c;return r(new RegExp(d,p),l)}case nd:{const d=r(new Map,l);for(const[p,m]of c)d.set(i(p),i(m));return d}case rd:{const d=r(new Set,l);for(const p of c)d.add(i(p));return d}case P1:{const{name:d,message:p}=c;return r(new H1[d](p),l)}case U1:return r(BigInt(c),l);case"BigInt":return r(Object(BigInt(c)),l)}return r(new H1[s](c),l)};return i},F1=e=>K4(new Map,e)(0),Xi="",{toString:W4}={},{keys:Z4}=Object,fl=e=>{const t=typeof e;if(t!=="object"||!e)return[ys,t];const r=W4.call(e).slice(8,-1);switch(r){case"Array":return[Ts,Xi];case"Object":return[Ss,Xi];case"Date":return[ed,Xi];case"RegExp":return[td,Xi];case"Map":return[nd,Xi];case"Set":return[rd,Xi]}return r.includes("Array")?[Ts,r]:r.includes("Error")?[P1,r]:[Ss,r]},Cs=([e,t])=>e===ys&&(t==="function"||t==="symbol"),J4=(e,t,r,i)=>{const l=(c,d)=>{const p=i.push(c)-1;return r.set(d,p),p},s=c=>{if(r.has(c))return r.get(c);let[d,p]=fl(c);switch(d){case ys:{let b=c;switch(p){case"bigint":d=U1,b=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+p);b=null;break;case"undefined":return l([B1],c)}return l([d,b],c)}case Ts:{if(p)return l([p,[...c]],c);const b=[],E=l([d,b],c);for(const S of c)b.push(s(S));return E}case Ss:{if(p)switch(p){case"BigInt":return l([p,c.toString()],c);case"Boolean":case"Number":case"String":return l([p,c.valueOf()],c)}if(t&&"toJSON"in c)return s(c.toJSON());const b=[],E=l([d,b],c);for(const S of Z4(c))(e||!Cs(fl(c[S])))&&b.push([s(S),s(c[S])]);return E}case ed:return l([d,c.toISOString()],c);case td:{const{source:b,flags:E}=c;return l([d,{source:b,flags:E}],c)}case nd:{const b=[],E=l([d,b],c);for(const[S,y]of c)(e||!(Cs(fl(S))||Cs(fl(y))))&&b.push([s(S),s(y)]);return E}case rd:{const b=[],E=l([d,b],c);for(const S of c)(e||!Cs(fl(S)))&&b.push(s(S));return E}}const{message:m}=c;return l([d,{name:p,message:m}],c)};return s},z1=(e,{json:t,lossy:r}={})=>{const i=[];return J4(!(t||r),!!t,new Map,i)(e),i},Qi=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?F1(z1(e,t)):structuredClone(e):(e,t)=>F1(z1(e,t));function ex(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function tx(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function nx(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||ex,i=e.options.footnoteBackLabel||tx,l=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let p=-1;for(;++p<e.footnoteOrder.length;){const m=e.footnoteById.get(e.footnoteOrder[p]);if(!m)continue;const b=e.all(m),E=String(m.identifier).toUpperCase(),S=Gi(E.toLowerCase());let y=0;const O=[],_=e.footnoteCounts.get(E);for(;_!==void 0&&++y<=_;){O.length>0&&O.push({type:"text",value:" "});let H=typeof r=="string"?r:r(p,y);typeof H=="string"&&(H={type:"text",value:H}),O.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+S+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(p,y),className:["data-footnote-backref"]},children:Array.isArray(H)?H:[H]})}const I=b[b.length-1];if(I&&I.type==="element"&&I.tagName==="p"){const H=I.children[I.children.length-1];H&&H.type==="text"?H.value+=" ":I.children.push({type:"text",value:" "}),I.children.push(...O)}else b.push(...O);const R={type:"element",tagName:"li",properties:{id:t+"fn-"+S},children:e.wrap(b,!0)};e.patch(m,R),d.push(R)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Qi(c),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
63
+ `});const m={type:"element",tagName:"li",properties:s,children:c};return e.patch(t,m),e.applyData(t,m)}function U4(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let i=-1;for(;!t&&++i<r.length;)t=L1(r[i])}return t}function L1(e){const t=e.spread;return t??e.children.length>1}function H4(e,t){const r={},i=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++l<i.length;){const c=i[l];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function F4(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function z4(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function Y4(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function j4(e,t){const r=e.all(t),i=r.shift(),l=[];if(i){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],c),l.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},d=Ur(t.children[1]),p=ms(t.children[t.children.length-1]);d&&p&&(c.position={start:d,end:p}),l.push(c)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,s),e.applyData(t,s)}function V4(e,t,r){const i=r?r.children:void 0,s=(i?i.indexOf(t):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,d=c?c.length:t.children.length;let p=-1;const m=[];for(;++p<d;){const E=t.children[p],S={},y=c?c[p]:void 0;y&&(S.align=y);let O={type:"element",tagName:s,properties:S,children:[]};E&&(O.children=e.all(E),e.patch(E,O),O=e.applyData(E,O)),m.push(O)}const b={type:"element",tagName:"tr",properties:{},children:e.wrap(m,!0)};return e.patch(t,b),e.applyData(t,b)}function $4(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const I1=9,w1=32;function q4(e){const t=String(e),r=/\r?\n|\r/g;let i=r.exec(t),l=0;const s=[];for(;i;)s.push(M1(t.slice(l,i.index),l>0,!0),i[0]),l=i.index+i[0].length,i=r.exec(t);return s.push(M1(t.slice(l),l>0,!1)),s.join("")}function M1(e,t,r){let i=0,l=e.length;if(t){let s=e.codePointAt(i);for(;s===I1||s===w1;)i++,s=e.codePointAt(i)}if(r){let s=e.codePointAt(l-1);for(;s===I1||s===w1;)l--,s=e.codePointAt(l-1)}return l>i?e.slice(i,l):""}function G4(e,t){const r={type:"text",value:q4(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function X4(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const Q4={blockquote:x4,break:_4,code:v4,delete:R4,emphasis:O4,footnoteReference:N4,heading:k4,html:D4,imageReference:L4,image:I4,inlineCode:w4,linkReference:M4,link:B4,listItem:P4,list:H4,paragraph:F4,root:z4,strong:Y4,table:j4,tableCell:$4,tableRow:V4,text:G4,thematicBreak:X4,toml:Es,yaml:Es,definition:Es,footnoteDefinition:Es};function Es(){}const B1=-1,ys=0,Ts=1,Ss=2,ed=3,td=4,nd=5,rd=6,P1=7,U1=8,H1=typeof self=="object"?self:globalThis,K4=(e,t)=>{const r=(l,s)=>(e.set(s,l),l),i=l=>{if(e.has(l))return e.get(l);const[s,c]=t[l];switch(s){case ys:case B1:return r(c,l);case Ts:{const d=r([],l);for(const p of c)d.push(i(p));return d}case Ss:{const d=r({},l);for(const[p,m]of c)d[i(p)]=i(m);return d}case ed:return r(new Date(c),l);case td:{const{source:d,flags:p}=c;return r(new RegExp(d,p),l)}case nd:{const d=r(new Map,l);for(const[p,m]of c)d.set(i(p),i(m));return d}case rd:{const d=r(new Set,l);for(const p of c)d.add(i(p));return d}case P1:{const{name:d,message:p}=c;return r(new H1[d](p),l)}case U1:return r(BigInt(c),l);case"BigInt":return r(Object(BigInt(c)),l)}return r(new H1[s](c),l)};return i},F1=e=>K4(new Map,e)(0),Xi="",{toString:W4}={},{keys:Z4}=Object,fl=e=>{const t=typeof e;if(t!=="object"||!e)return[ys,t];const r=W4.call(e).slice(8,-1);switch(r){case"Array":return[Ts,Xi];case"Object":return[Ss,Xi];case"Date":return[ed,Xi];case"RegExp":return[td,Xi];case"Map":return[nd,Xi];case"Set":return[rd,Xi]}return r.includes("Array")?[Ts,r]:r.includes("Error")?[P1,r]:[Ss,r]},Cs=([e,t])=>e===ys&&(t==="function"||t==="symbol"),J4=(e,t,r,i)=>{const l=(c,d)=>{const p=i.push(c)-1;return r.set(d,p),p},s=c=>{if(r.has(c))return r.get(c);let[d,p]=fl(c);switch(d){case ys:{let b=c;switch(p){case"bigint":d=U1,b=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+p);b=null;break;case"undefined":return l([B1],c)}return l([d,b],c)}case Ts:{if(p)return l([p,[...c]],c);const b=[],E=l([d,b],c);for(const S of c)b.push(s(S));return E}case Ss:{if(p)switch(p){case"BigInt":return l([p,c.toString()],c);case"Boolean":case"Number":case"String":return l([p,c.valueOf()],c)}if(t&&"toJSON"in c)return s(c.toJSON());const b=[],E=l([d,b],c);for(const S of Z4(c))(e||!Cs(fl(c[S])))&&b.push([s(S),s(c[S])]);return E}case ed:return l([d,c.toISOString()],c);case td:{const{source:b,flags:E}=c;return l([d,{source:b,flags:E}],c)}case nd:{const b=[],E=l([d,b],c);for(const[S,y]of c)(e||!(Cs(fl(S))||Cs(fl(y))))&&b.push([s(S),s(y)]);return E}case rd:{const b=[],E=l([d,b],c);for(const S of c)(e||!Cs(fl(S)))&&b.push(s(S));return E}}const{message:m}=c;return l([d,{name:p,message:m}],c)};return s},z1=(e,{json:t,lossy:r}={})=>{const i=[];return J4(!(t||r),!!t,new Map,i)(e),i},Qi=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?F1(z1(e,t)):structuredClone(e):(e,t)=>F1(z1(e,t));function ex(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function tx(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function nx(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||ex,i=e.options.footnoteBackLabel||tx,l=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let p=-1;for(;++p<e.footnoteOrder.length;){const m=e.footnoteById.get(e.footnoteOrder[p]);if(!m)continue;const b=e.all(m),E=String(m.identifier).toUpperCase(),S=Gi(E.toLowerCase());let y=0;const O=[],_=e.footnoteCounts.get(E);for(;_!==void 0&&++y<=_;){O.length>0&&O.push({type:"text",value:" "});let H=typeof r=="string"?r:r(p,y);typeof H=="string"&&(H={type:"text",value:H}),O.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+S+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(p,y),className:["data-footnote-backref"]},children:Array.isArray(H)?H:[H]})}const I=b[b.length-1];if(I&&I.type==="element"&&I.tagName==="p"){const H=I.children[I.children.length-1];H&&H.type==="text"?H.value+=" ":I.children.push({type:"text",value:" "}),I.children.push(...O)}else b.push(...O);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+S},children:e.wrap(b,!0)};e.patch(m,v),d.push(v)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Qi(c),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
64
64
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
65
- `}]}}const Y1=function(e){if(e==null)return ux;if(typeof e=="function")return As(e);if(typeof e=="object")return Array.isArray(e)?rx(e):ax(e);if(typeof e=="string")return ix(e);throw new Error("Expected function, string, or object as test")};function rx(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Y1(e[r]);return As(i);function i(...l){let s=-1;for(;++s<t.length;)if(t[s].apply(this,l))return!0;return!1}}function ax(e){const t=e;return As(r);function r(i){const l=i;let s;for(s in e)if(l[s]!==t[s])return!1;return!0}}function ix(e){return As(t);function t(r){return r&&r.type===e}}function As(e){return t;function t(r,i,l){return!!(lx(r)&&e.call(this,r,typeof i=="number"?i:void 0,l||void 0))}}function ux(){return!0}function lx(e){return e!==null&&typeof e=="object"&&"type"in e}function t7(e){return e}const j1=[],ox=!0,V1=!1,sx="skip";function cx(e,t,r,i){let l;typeof t=="function"&&typeof r!="function"?(i=r,r=t):l=t;const s=Y1(l),c=i?-1:1;d(e,void 0,[])();function d(p,m,b){const E=p&&typeof p=="object"?p:{};if(typeof E.type=="string"){const y=typeof E.tagName=="string"?E.tagName:typeof E.name=="string"?E.name:void 0;Object.defineProperty(S,"name",{value:"node ("+(p.type+(y?"<"+y+">":""))+")"})}return S;function S(){let y=j1,O,_,I;if((!t||s(p,m,b[b.length-1]||void 0))&&(y=fx(r(p,b)),y[0]===V1))return y;if("children"in p&&p.children){const R=p;if(R.children&&y[0]!==sx)for(_=(i?R.children.length:-1)+c,I=b.concat(R);_>-1&&_<R.children.length;){const H=R.children[_];if(O=d(H,_,I)(),O[0]===V1)return O;_=typeof O[1]=="number"?O[1]:_+c}}return y}}}function fx(e){return Array.isArray(e)?e:typeof e=="number"?[ox,e]:e==null?j1:[e]}function ad(e,t,r,i){let l,s,c;typeof t=="function"&&typeof r!="function"?(s=void 0,c=t,l=r):(s=t,c=r,l=i),cx(e,s,d,l);function d(p,m){const b=m[m.length-1],E=b?b.children.indexOf(p):void 0;return c(p,E,b)}}const id={}.hasOwnProperty,dx={};function hx(e,t){const r=t||dx,i=new Map,l=new Map,s=new Map,c={...Q4,...r.handlers},d={all:m,applyData:mx,definitionById:i,footnoteById:l,footnoteCounts:s,footnoteOrder:[],handlers:c,one:p,options:r,patch:px,wrap:bx};return ad(e,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const E=b.type==="definition"?i:l,S=String(b.identifier).toUpperCase();E.has(S)||E.set(S,b)}}),d;function p(b,E){const S=b.type,y=d.handlers[S];if(id.call(d.handlers,S)&&y)return y(d,b,E);if(d.options.passThrough&&d.options.passThrough.includes(S)){if("children"in b){const{children:_,...I}=b,R=Qi(I);return R.children=d.all(b),R}return Qi(b)}return(d.options.unknownHandler||gx)(d,b,E)}function m(b){const E=[];if("children"in b){const S=b.children;let y=-1;for(;++y<S.length;){const O=d.one(S[y],b);if(O){if(y&&S[y-1].type==="break"&&(!Array.isArray(O)&&O.type==="text"&&(O.value=$1(O.value)),!Array.isArray(O)&&O.type==="element")){const _=O.children[0];_&&_.type==="text"&&(_.value=$1(_.value))}Array.isArray(O)?E.push(...O):E.push(O)}}}return E}}function px(e,t){e.position&&(t.position=n6(e))}function mx(e,t){let r=t;if(e&&e.data){const i=e.data.hName,l=e.data.hChildren,s=e.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const c="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:c}}r.type==="element"&&s&&Object.assign(r.properties,Qi(s)),"children"in r&&r.children&&l!==null&&l!==void 0&&(r.children=l)}return r}function gx(e,t){const r=t.data||{},i="value"in t&&!(id.call(r,"hProperties")||id.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function bx(e,t){const r=[];let i=-1;for(t&&r.push({type:"text",value:`
65
+ `}]}}const Y1=function(e){if(e==null)return ux;if(typeof e=="function")return As(e);if(typeof e=="object")return Array.isArray(e)?rx(e):ax(e);if(typeof e=="string")return ix(e);throw new Error("Expected function, string, or object as test")};function rx(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Y1(e[r]);return As(i);function i(...l){let s=-1;for(;++s<t.length;)if(t[s].apply(this,l))return!0;return!1}}function ax(e){const t=e;return As(r);function r(i){const l=i;let s;for(s in e)if(l[s]!==t[s])return!1;return!0}}function ix(e){return As(t);function t(r){return r&&r.type===e}}function As(e){return t;function t(r,i,l){return!!(lx(r)&&e.call(this,r,typeof i=="number"?i:void 0,l||void 0))}}function ux(){return!0}function lx(e){return e!==null&&typeof e=="object"&&"type"in e}function t7(e){return e}const j1=[],ox=!0,V1=!1,sx="skip";function cx(e,t,r,i){let l;typeof t=="function"&&typeof r!="function"?(i=r,r=t):l=t;const s=Y1(l),c=i?-1:1;d(e,void 0,[])();function d(p,m,b){const E=p&&typeof p=="object"?p:{};if(typeof E.type=="string"){const y=typeof E.tagName=="string"?E.tagName:typeof E.name=="string"?E.name:void 0;Object.defineProperty(S,"name",{value:"node ("+(p.type+(y?"<"+y+">":""))+")"})}return S;function S(){let y=j1,O,_,I;if((!t||s(p,m,b[b.length-1]||void 0))&&(y=fx(r(p,b)),y[0]===V1))return y;if("children"in p&&p.children){const v=p;if(v.children&&y[0]!==sx)for(_=(i?v.children.length:-1)+c,I=b.concat(v);_>-1&&_<v.children.length;){const H=v.children[_];if(O=d(H,_,I)(),O[0]===V1)return O;_=typeof O[1]=="number"?O[1]:_+c}}return y}}}function fx(e){return Array.isArray(e)?e:typeof e=="number"?[ox,e]:e==null?j1:[e]}function ad(e,t,r,i){let l,s,c;typeof t=="function"&&typeof r!="function"?(s=void 0,c=t,l=r):(s=t,c=r,l=i),cx(e,s,d,l);function d(p,m){const b=m[m.length-1],E=b?b.children.indexOf(p):void 0;return c(p,E,b)}}const id={}.hasOwnProperty,dx={};function hx(e,t){const r=t||dx,i=new Map,l=new Map,s=new Map,c={...Q4,...r.handlers},d={all:m,applyData:mx,definitionById:i,footnoteById:l,footnoteCounts:s,footnoteOrder:[],handlers:c,one:p,options:r,patch:px,wrap:bx};return ad(e,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const E=b.type==="definition"?i:l,S=String(b.identifier).toUpperCase();E.has(S)||E.set(S,b)}}),d;function p(b,E){const S=b.type,y=d.handlers[S];if(id.call(d.handlers,S)&&y)return y(d,b,E);if(d.options.passThrough&&d.options.passThrough.includes(S)){if("children"in b){const{children:_,...I}=b,v=Qi(I);return v.children=d.all(b),v}return Qi(b)}return(d.options.unknownHandler||gx)(d,b,E)}function m(b){const E=[];if("children"in b){const S=b.children;let y=-1;for(;++y<S.length;){const O=d.one(S[y],b);if(O){if(y&&S[y-1].type==="break"&&(!Array.isArray(O)&&O.type==="text"&&(O.value=$1(O.value)),!Array.isArray(O)&&O.type==="element")){const _=O.children[0];_&&_.type==="text"&&(_.value=$1(_.value))}Array.isArray(O)?E.push(...O):E.push(O)}}}return E}}function px(e,t){e.position&&(t.position=n6(e))}function mx(e,t){let r=t;if(e&&e.data){const i=e.data.hName,l=e.data.hChildren,s=e.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const c="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:c}}r.type==="element"&&s&&Object.assign(r.properties,Qi(s)),"children"in r&&r.children&&l!==null&&l!==void 0&&(r.children=l)}return r}function gx(e,t){const r=t.data||{},i="value"in t&&!(id.call(r,"hProperties")||id.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function bx(e,t){const r=[];let i=-1;for(t&&r.push({type:"text",value:`
66
66
  `});++i<e.length;)i&&r.push({type:"text",value:`
67
67
  `}),r.push(e[i]);return t&&e.length>0&&r.push({type:"text",value:`
68
68
  `}),r}function $1(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function q1(e,t){const r=hx(e,t),i=r.one(e,void 0),l=nx(r),s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return l&&s.children.push({type:"text",value:`
69
- `},l),s}function Ex(e,t){return e&&"run"in e?async function(r,i){const l=q1(r,{file:i,...t});await e.run(l,i)}:function(r,i){return q1(r,{file:i,...e||t})}}function G1(e){if(e)throw e}var ud,X1;function yx(){if(X1)return ud;X1=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(m){return typeof Array.isArray=="function"?Array.isArray(m):t.call(m)==="[object Array]"},s=function(m){if(!m||t.call(m)!=="[object Object]")return!1;var b=e.call(m,"constructor"),E=m.constructor&&m.constructor.prototype&&e.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!b&&!E)return!1;var S;for(S in m);return typeof S>"u"||e.call(m,S)},c=function(m,b){r&&b.name==="__proto__"?r(m,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):m[b.name]=b.newValue},d=function(m,b){if(b==="__proto__")if(e.call(m,b)){if(i)return i(m,b).value}else return;return m[b]};return ud=function p(){var m,b,E,S,y,O,_=arguments[0],I=1,R=arguments.length,H=!1;for(typeof _=="boolean"&&(H=_,_=arguments[1]||{},I=2),(_==null||typeof _!="object"&&typeof _!="function")&&(_={});I<R;++I)if(m=arguments[I],m!=null)for(b in m)E=d(_,b),S=d(m,b),_!==S&&(H&&S&&(s(S)||(y=l(S)))?(y?(y=!1,O=E&&l(E)?E:[]):O=E&&s(E)?E:{},c(_,{name:b,newValue:p(H,O,S)})):typeof S<"u"&&c(_,{name:b,newValue:S}));return _},ud}var Tx=yx();const ld=ur(Tx);function od(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Sx(){const e=[],t={run:r,use:i};return t;function r(...l){let s=-1;const c=l.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...l);function d(p,...m){const b=e[++s];let E=-1;if(p){c(p);return}for(;++E<l.length;)(m[E]===null||m[E]===void 0)&&(m[E]=l[E]);l=m,b?Cx(b,d)(...m):c(null,...m)}}function i(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function Cx(e,t){let r;return i;function i(...c){const d=e.length>c.length;let p;d&&c.push(l);try{p=e.apply(this,c)}catch(m){const b=m;if(d&&r)throw b;return l(b)}d||(p&&p.then&&typeof p.then=="function"?p.then(s,l):p instanceof Error?l(p):s(p))}function l(c,...d){r||(r=!0,t(c,...d))}function s(c){l(null,c)}}const Fr={basename:Ax,dirname:xx,extname:_x,join:vx,sep:"/"};function Ax(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');dl(e);let r=0,i=-1,l=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(s){r=l+1;break}}else i<0&&(s=!0,i=l+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let c=-1,d=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(s){r=l+1;break}}else c<0&&(s=!0,c=l+1),d>-1&&(e.codePointAt(l)===t.codePointAt(d--)?d<0&&(i=l):(d=-1,i=c));return r===i?i=c:i<0&&(i=e.length),e.slice(r,i)}function xx(e){if(dl(e),e.length===0)return".";let t=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function _x(e){dl(e);let t=e.length,r=-1,i=0,l=-1,s=0,c;for(;t--;){const d=e.codePointAt(t);if(d===47){if(c){i=t+1;break}continue}r<0&&(c=!0,r=t+1),d===46?l<0?l=t:s!==1&&(s=1):l>-1&&(s=-1)}return l<0||r<0||s===0||s===1&&l===r-1&&l===i+1?"":e.slice(l,r)}function vx(...e){let t=-1,r;for(;++t<e.length;)dl(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":Rx(r)}function Rx(e){dl(e);const t=e.codePointAt(0)===47;let r=Ox(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function Ox(e,t){let r="",i=0,l=-1,s=0,c=-1,d,p;for(;++c<=e.length;){if(c<e.length)d=e.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(l===c-1||s===1))if(l!==c-1&&s===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(p=r.lastIndexOf("/"),p!==r.length-1){p<0?(r="",i=0):(r=r.slice(0,p),i=r.length-1-r.lastIndexOf("/")),l=c,s=0;continue}}else if(r.length>0){r="",i=0,l=c,s=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(l+1,c):r=e.slice(l+1,c),i=c-l-1;l=c,s=0}else d===46&&s>-1?s++:s=-1}return r}function dl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Nx={cwd:kx};function kx(){return"/"}function sd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Dx(e){if(typeof e=="string")e=new URL(e);else if(!sd(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Lx(e)}function Lx(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const i=t.codePointAt(r+2);if(i===70||i===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}const cd=["history","path","basename","stem","extname","dirname"];class Q1{constructor(t){let r;t?sd(t)?r={path:t}:typeof t=="string"||Ix(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":Nx.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<cd.length;){const s=cd[i];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let l;for(l in r)cd.includes(l)||(this[l]=r[l])}get basename(){return typeof this.path=="string"?Fr.basename(this.path):void 0}set basename(t){dd(t,"basename"),fd(t,"basename"),this.path=Fr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Fr.dirname(this.path):void 0}set dirname(t){K1(this.basename,"dirname"),this.path=Fr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Fr.extname(this.path):void 0}set extname(t){if(fd(t,"extname"),K1(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Fr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){sd(t)&&(t=Dx(t)),dd(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Fr.basename(this.path,this.extname):void 0}set stem(t){dd(t,"stem"),fd(t,"stem"),this.path=Fr.join(this.dirname||"",t+(this.extname||""))}fail(t,r,i){const l=this.message(t,r,i);throw l.fatal=!0,l}info(t,r,i){const l=this.message(t,r,i);return l.fatal=void 0,l}message(t,r,i){const l=new An(t,r,i);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function fd(e,t){if(e&&e.includes(Fr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Fr.sep+"`")}function dd(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function K1(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Ix(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const wx=function(e){const i=this.constructor.prototype,l=i[e],s=function(){return l.apply(s,arguments)};return Object.setPrototypeOf(s,i),s},Mx={}.hasOwnProperty;class hd extends wx{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=Sx()}copy(){const t=new hd;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(ld(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(gd("data",this.frozen),this.namespace[t]=r,this):Mx.call(this.namespace,t)&&this.namespace[t]||void 0:t?(gd("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const l=r.call(t,...i);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=xs(t),i=this.parser||this.Parser;return pd("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),pd("process",this.parser||this.Parser),md("process",this.compiler||this.Compiler),r?l(void 0,r):new Promise(l);function l(s,c){const d=xs(t),p=i.parse(d);i.run(p,d,function(b,E,S){if(b||!E||!S)return m(b);const y=E,O=i.stringify(y,S);Ux(O)?S.value=O:S.result=O,m(b,S)});function m(b,E){b||!E?c(b):s?s(E):r(void 0,E)}}}processSync(t){let r=!1,i;return this.freeze(),pd("processSync",this.parser||this.Parser),md("processSync",this.compiler||this.Compiler),this.process(t,l),Z1("processSync","process",r),i;function l(s,c){r=!0,G1(s),i=c}}run(t,r,i){W1(t),this.freeze();const l=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?s(void 0,i):new Promise(s);function s(c,d){const p=xs(r);l.run(t,p,m);function m(b,E,S){const y=E||t;b?d(b):c?c(y):i(void 0,y,S)}}}runSync(t,r){let i=!1,l;return this.run(t,r,s),Z1("runSync","run",i),l;function s(c,d){G1(c),l=d,i=!0}}stringify(t,r){this.freeze();const i=xs(r),l=this.compiler||this.Compiler;return md("stringify",l),W1(t),l(t,i)}use(t,...r){const i=this.attachers,l=this.namespace;if(gd("use",this.frozen),t!=null)if(typeof t=="function")p(t,r);else if(typeof t=="object")Array.isArray(t)?d(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(m){if(typeof m=="function")p(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[b,...E]=m;p(b,E)}else c(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function c(m){if(!("plugins"in m)&&!("settings"in m))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(m.plugins),m.settings&&(l.settings=ld(!0,l.settings,m.settings))}function d(m){let b=-1;if(m!=null)if(Array.isArray(m))for(;++b<m.length;){const E=m[b];s(E)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,b){let E=-1,S=-1;for(;++E<i.length;)if(i[E][0]===m){S=E;break}if(S===-1)i.push([m,...b]);else if(b.length>0){let[y,...O]=b;const _=i[S][1];od(_)&&od(y)&&(y=ld(!0,_,y)),i[S]=[m,y,...O]}}}}const Bx=new hd().freeze();function pd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function md(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function gd(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function W1(e){if(!od(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Z1(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function xs(e){return Px(e)?e:new Q1(e)}function Px(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ux(e){return typeof e=="string"||Hx(e)}function Hx(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Fx="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",J1=[],eg={allowDangerousHtml:!0},zx=/^(https?|ircs?|mailto|xmpp)$/i,Yx=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function tg(e){const t=jx(e),r=Vx(e);return $x(t.runSync(t.parse(r),r),e)}function jx(e){const t=e.rehypePlugins||J1,r=e.remarkPlugins||J1,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...eg}:eg;return Bx().use(A4).use(r).use(Ex,i).use(t)}function Vx(e){const t=e.children||"",r=new Q1;return typeof t=="string"&&(r.value=t),r}function $x(e,t){const r=t.allowedElements,i=t.allowElement,l=t.components,s=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,p=t.urlTransform||qx;for(const b of Yx)Object.hasOwn(t,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+Fx+b.id,void 0);return ad(e,m),o6(e,{Fragment:me.Fragment,components:l,ignoreInvalidStyle:!0,jsx:me.jsx,jsxs:me.jsxs,passKeys:!0,passNode:!0});function m(b,E,S){if(b.type==="raw"&&S&&typeof E=="number")return c?S.children.splice(E,1):S.children[E]={type:"text",value:b.value},E;if(b.type==="element"){let y;for(y in Vf)if(Object.hasOwn(Vf,y)&&Object.hasOwn(b.properties,y)){const O=b.properties[y],_=Vf[y];(_===null||_.includes(b.tagName))&&(b.properties[y]=p(String(O||""),y,b))}}if(b.type==="element"){let y=r?!r.includes(b.tagName):s?s.includes(b.tagName):!1;if(!y&&i&&typeof E=="number"&&(y=!i(b,E,S)),y&&S&&typeof E=="number")return d&&b.children?S.children.splice(E,1,...b.children):S.children.splice(E,1),E}}}function qx(e){const t=e.indexOf(":"),r=e.indexOf("?"),i=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||r!==-1&&t>r||i!==-1&&t>i||zx.test(e.slice(0,t))?e:""}let hl=class{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}};hl.prototype.normal={},hl.prototype.property={},hl.prototype.space=void 0;function ng(e,t){const r={},i={};for(const l of e)Object.assign(r,l.property),Object.assign(i,l.normal);return new hl(r,i,t)}function pl(e){return e.toLowerCase()}let wn=class{constructor(t,r){this.attribute=r,this.property=t}};wn.prototype.attribute="",wn.prototype.booleanish=!1,wn.prototype.boolean=!1,wn.prototype.commaOrSpaceSeparated=!1,wn.prototype.commaSeparated=!1,wn.prototype.defined=!1,wn.prototype.mustUseProperty=!1,wn.prototype.number=!1,wn.prototype.overloadedBoolean=!1,wn.prototype.property="",wn.prototype.spaceSeparated=!1,wn.prototype.space=void 0;let Gx=0;const Ze=ui(),en=ui(),rg=ui(),ye=ui(),Lt=ui(),Ki=ui(),Kn=ui();function ui(){return 2**++Gx}const bd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ze,booleanish:en,commaOrSpaceSeparated:Kn,commaSeparated:Ki,number:ye,overloadedBoolean:rg,spaceSeparated:Lt},Symbol.toStringTag,{value:"Module"})),Ed=Object.keys(bd);let yd=class extends wn{constructor(t,r,i,l){let s=-1;if(super(t,r),ag(this,"space",l),typeof i=="number")for(;++s<Ed.length;){const c=Ed[s];ag(this,Ed[s],(i&bd[c])===bd[c])}}};yd.prototype.defined=!0;function ag(e,t,r){r&&(e[t]=r)}function Wi(e){const t={},r={};for(const[i,l]of Object.entries(e.properties)){const s=new yd(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,r[pl(i)]=i,r[pl(s.attribute)]=i}return new hl(t,r,e.space)}const ig=Wi({properties:{ariaActiveDescendant:null,ariaAtomic:en,ariaAutoComplete:null,ariaBusy:en,ariaChecked:en,ariaColCount:ye,ariaColIndex:ye,ariaColSpan:ye,ariaControls:Lt,ariaCurrent:null,ariaDescribedBy:Lt,ariaDetails:null,ariaDisabled:en,ariaDropEffect:Lt,ariaErrorMessage:null,ariaExpanded:en,ariaFlowTo:Lt,ariaGrabbed:en,ariaHasPopup:null,ariaHidden:en,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Lt,ariaLevel:ye,ariaLive:null,ariaModal:en,ariaMultiLine:en,ariaMultiSelectable:en,ariaOrientation:null,ariaOwns:Lt,ariaPlaceholder:null,ariaPosInSet:ye,ariaPressed:en,ariaReadOnly:en,ariaRelevant:null,ariaRequired:en,ariaRoleDescription:Lt,ariaRowCount:ye,ariaRowIndex:ye,ariaRowSpan:ye,ariaSelected:en,ariaSetSize:ye,ariaSort:null,ariaValueMax:ye,ariaValueMin:ye,ariaValueNow:ye,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ug(e,t){return t in e?e[t]:t}function lg(e,t){return ug(e,t.toLowerCase())}const Xx=Wi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ki,acceptCharset:Lt,accessKey:Lt,action:null,allow:null,allowFullScreen:Ze,allowPaymentRequest:Ze,allowUserMedia:Ze,alt:null,as:null,async:Ze,autoCapitalize:null,autoComplete:Lt,autoFocus:Ze,autoPlay:Ze,blocking:Lt,capture:null,charSet:null,checked:Ze,cite:null,className:Lt,cols:ye,colSpan:null,content:null,contentEditable:en,controls:Ze,controlsList:Lt,coords:ye|Ki,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ze,defer:Ze,dir:null,dirName:null,disabled:Ze,download:rg,draggable:en,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ze,formTarget:null,headers:Lt,height:ye,hidden:Ze,high:ye,href:null,hrefLang:null,htmlFor:Lt,httpEquiv:Lt,id:null,imageSizes:null,imageSrcSet:null,inert:Ze,inputMode:null,integrity:null,is:null,isMap:Ze,itemId:null,itemProp:Lt,itemRef:Lt,itemScope:Ze,itemType:Lt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ze,low:ye,manifest:null,max:null,maxLength:ye,media:null,method:null,min:null,minLength:ye,multiple:Ze,muted:Ze,name:null,nonce:null,noModule:Ze,noValidate:Ze,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:Ze,optimum:ye,pattern:null,ping:Lt,placeholder:null,playsInline:Ze,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ze,referrerPolicy:null,rel:Lt,required:Ze,reversed:Ze,rows:ye,rowSpan:ye,sandbox:Lt,scope:null,scoped:Ze,seamless:Ze,selected:Ze,shadowRootClonable:Ze,shadowRootDelegatesFocus:Ze,shadowRootMode:null,shape:null,size:ye,sizes:null,slot:null,span:ye,spellCheck:en,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ye,step:null,style:null,tabIndex:ye,target:null,title:null,translate:null,type:null,typeMustMatch:Ze,useMap:null,value:en,width:ye,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Lt,axis:null,background:null,bgColor:null,border:ye,borderColor:null,bottomMargin:ye,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ze,declare:Ze,event:null,face:null,frame:null,frameBorder:null,hSpace:ye,leftMargin:ye,link:null,longDesc:null,lowSrc:null,marginHeight:ye,marginWidth:ye,noResize:Ze,noHref:Ze,noShade:Ze,noWrap:Ze,object:null,profile:null,prompt:null,rev:null,rightMargin:ye,rules:null,scheme:null,scrolling:en,standby:null,summary:null,text:null,topMargin:ye,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ye,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ze,disableRemotePlayback:Ze,prefix:null,property:null,results:ye,security:null,unselectable:null},space:"html",transform:lg}),Qx=Wi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Kn,accentHeight:ye,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ye,amplitude:ye,arabicForm:null,ascent:ye,attributeName:null,attributeType:null,azimuth:ye,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ye,by:null,calcMode:null,capHeight:ye,className:Lt,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:ye,diffuseConstant:ye,direction:null,display:null,dur:null,divisor:ye,dominantBaseline:null,download:Ze,dx:null,dy:null,edgeMode:null,editable:null,elevation:ye,enableBackground:null,end:null,event:null,exponent:ye,externalResourcesRequired:null,fill:null,fillOpacity:ye,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:Ki,g2:Ki,glyphName:Ki,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ye,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ye,horizOriginX:ye,horizOriginY:ye,id:null,ideographic:ye,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ye,k:ye,k1:ye,k2:ye,k3:ye,k4:ye,kernelMatrix:Kn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ye,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:ye,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:ye,overlineThickness:ye,paintOrder:null,panose1:null,path:null,pathLength:ye,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Lt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ye,pointsAtY:ye,pointsAtZ:ye,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Kn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Kn,rev:Kn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Kn,requiredFeatures:Kn,requiredFonts:Kn,requiredFormats:Kn,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:ye,specularExponent:ye,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ye,strikethroughThickness:ye,string:null,stroke:null,strokeDashArray:Kn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ye,strokeOpacity:ye,strokeWidth:null,style:null,surfaceScale:ye,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kn,tabIndex:ye,tableValues:null,target:null,targetX:ye,targetY:ye,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Kn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ye,underlineThickness:ye,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ye,values:null,vAlphabetic:ye,vMathematical:ye,vectorEffect:null,vHanging:ye,vIdeographic:ye,version:null,vertAdvY:ye,vertOriginX:ye,vertOriginY:ye,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ye,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ug}),og=Wi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),sg=Wi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:lg}),cg=Wi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Kx=/[A-Z]/g,fg=/-[a-z]/g,Wx=/^data[-\w.:]+$/i;function Zx(e,t){const r=pl(t);let i=t,l=wn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Wx.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(fg,e_);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!fg.test(s)){let c=s.replace(Kx,Jx);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}l=yd}return new l(i,t)}function Jx(e){return"-"+e.toLowerCase()}function e_(e){return e.charAt(1).toUpperCase()}const t_=ng([ig,Xx,og,sg,cg],"html"),n_=ng([ig,Qx,og,sg,cg],"svg"),dg=/[#.]/g;function r_(e,t){const r=e||"",i={};let l=0,s,c;for(;l<r.length;){dg.lastIndex=l;const d=dg.exec(r),p=r.slice(l,d?d.index:r.length);p&&(s?s==="#"?i.id=p:Array.isArray(i.className)?i.className.push(p):i.className=[p]:c=p,l+=p.length),d&&(s=d[0],l++)}return{type:"element",tagName:c||t||"div",properties:i,children:[]}}function hg(e,t,r){const i=r?l_(r):void 0;function l(s,c,...d){let p;if(s==null){p={type:"root",children:[]};const m=c;d.unshift(m)}else{p=r_(s,t);const m=p.tagName.toLowerCase(),b=i?i.get(m):void 0;if(p.tagName=b||m,a_(c))d.unshift(c);else for(const[E,S]of Object.entries(c))i_(e,p.properties,E,S)}for(const m of d)Td(p.children,m);return p.type==="element"&&p.tagName==="template"&&(p.content={type:"root",children:p.children},p.children=[]),p}return l}function a_(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const i of r){const l=t[i];if(l&&typeof l=="object"){if(!Array.isArray(l))return!0;const s=l;for(const c of s)if(typeof c!="number"&&typeof c!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function i_(e,t,r,i){const l=Zx(e,r);let s;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;s=i}else typeof i=="boolean"?s=i:typeof i=="string"?l.spaceSeparated?s=qm(i):l.commaSeparated?s=km(i):l.commaOrSpaceSeparated?s=qm(km(i).join(" ")):s=pg(l,l.property,i):Array.isArray(i)?s=[...i]:s=l.property==="style"?u_(i):String(i);if(Array.isArray(s)){const c=[];for(const d of s)c.push(pg(l,l.property,d));s=c}l.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[l.property]=s}}function Td(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)Td(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?Td(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function pg(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||pl(r)===pl(t)))return!0}return r}function u_(e){const t=[];for(const[r,i]of Object.entries(e))t.push([r,i].join(": "));return t.join("; ")}function l_(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const o_=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],s_=hg(t_,"div"),c_=hg(n_,"g",o_);class ml{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}}ml.prototype.normal={},ml.prototype.property={},ml.prototype.space=void 0;function mg(e,t){const r={},i={};for(const l of e)Object.assign(r,l.property),Object.assign(i,l.normal);return new ml(r,i,t)}function Sd(e){return e.toLowerCase()}class Mn{constructor(t,r){this.attribute=r,this.property=t}}Mn.prototype.attribute="",Mn.prototype.booleanish=!1,Mn.prototype.boolean=!1,Mn.prototype.commaOrSpaceSeparated=!1,Mn.prototype.commaSeparated=!1,Mn.prototype.defined=!1,Mn.prototype.mustUseProperty=!1,Mn.prototype.number=!1,Mn.prototype.overloadedBoolean=!1,Mn.prototype.property="",Mn.prototype.spaceSeparated=!1,Mn.prototype.space=void 0;let f_=0;const Je=li(),tn=li(),gg=li(),Te=li(),It=li(),Zi=li(),Wn=li();function li(){return 2**++f_}const Cd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Je,booleanish:tn,commaOrSpaceSeparated:Wn,commaSeparated:Zi,number:Te,overloadedBoolean:gg,spaceSeparated:It},Symbol.toStringTag,{value:"Module"})),Ad=Object.keys(Cd);class xd extends Mn{constructor(t,r,i,l){let s=-1;if(super(t,r),bg(this,"space",l),typeof i=="number")for(;++s<Ad.length;){const c=Ad[s];bg(this,Ad[s],(i&Cd[c])===Cd[c])}}}xd.prototype.defined=!0;function bg(e,t,r){r&&(e[t]=r)}function Ji(e){const t={},r={};for(const[i,l]of Object.entries(e.properties)){const s=new xd(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,r[Sd(i)]=i,r[Sd(s.attribute)]=i}return new ml(t,r,e.space)}const Eg=Ji({properties:{ariaActiveDescendant:null,ariaAtomic:tn,ariaAutoComplete:null,ariaBusy:tn,ariaChecked:tn,ariaColCount:Te,ariaColIndex:Te,ariaColSpan:Te,ariaControls:It,ariaCurrent:null,ariaDescribedBy:It,ariaDetails:null,ariaDisabled:tn,ariaDropEffect:It,ariaErrorMessage:null,ariaExpanded:tn,ariaFlowTo:It,ariaGrabbed:tn,ariaHasPopup:null,ariaHidden:tn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:It,ariaLevel:Te,ariaLive:null,ariaModal:tn,ariaMultiLine:tn,ariaMultiSelectable:tn,ariaOrientation:null,ariaOwns:It,ariaPlaceholder:null,ariaPosInSet:Te,ariaPressed:tn,ariaReadOnly:tn,ariaRelevant:null,ariaRequired:tn,ariaRoleDescription:It,ariaRowCount:Te,ariaRowIndex:Te,ariaRowSpan:Te,ariaSelected:tn,ariaSetSize:Te,ariaSort:null,ariaValueMax:Te,ariaValueMin:Te,ariaValueNow:Te,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function yg(e,t){return t in e?e[t]:t}function Tg(e,t){return yg(e,t.toLowerCase())}const d_=Ji({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Zi,acceptCharset:It,accessKey:It,action:null,allow:null,allowFullScreen:Je,allowPaymentRequest:Je,allowUserMedia:Je,alt:null,as:null,async:Je,autoCapitalize:null,autoComplete:It,autoFocus:Je,autoPlay:Je,blocking:It,capture:null,charSet:null,checked:Je,cite:null,className:It,cols:Te,colSpan:null,content:null,contentEditable:tn,controls:Je,controlsList:It,coords:Te|Zi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Je,defer:Je,dir:null,dirName:null,disabled:Je,download:gg,draggable:tn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Je,formTarget:null,headers:It,height:Te,hidden:Je,high:Te,href:null,hrefLang:null,htmlFor:It,httpEquiv:It,id:null,imageSizes:null,imageSrcSet:null,inert:Je,inputMode:null,integrity:null,is:null,isMap:Je,itemId:null,itemProp:It,itemRef:It,itemScope:Je,itemType:It,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Je,low:Te,manifest:null,max:null,maxLength:Te,media:null,method:null,min:null,minLength:Te,multiple:Je,muted:Je,name:null,nonce:null,noModule:Je,noValidate:Je,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:Je,optimum:Te,pattern:null,ping:It,placeholder:null,playsInline:Je,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Je,referrerPolicy:null,rel:It,required:Je,reversed:Je,rows:Te,rowSpan:Te,sandbox:It,scope:null,scoped:Je,seamless:Je,selected:Je,shadowRootClonable:Je,shadowRootDelegatesFocus:Je,shadowRootMode:null,shape:null,size:Te,sizes:null,slot:null,span:Te,spellCheck:tn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Te,step:null,style:null,tabIndex:Te,target:null,title:null,translate:null,type:null,typeMustMatch:Je,useMap:null,value:tn,width:Te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:It,axis:null,background:null,bgColor:null,border:Te,borderColor:null,bottomMargin:Te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Je,declare:Je,event:null,face:null,frame:null,frameBorder:null,hSpace:Te,leftMargin:Te,link:null,longDesc:null,lowSrc:null,marginHeight:Te,marginWidth:Te,noResize:Je,noHref:Je,noShade:Je,noWrap:Je,object:null,profile:null,prompt:null,rev:null,rightMargin:Te,rules:null,scheme:null,scrolling:tn,standby:null,summary:null,text:null,topMargin:Te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Te,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Je,disableRemotePlayback:Je,prefix:null,property:null,results:Te,security:null,unselectable:null},space:"html",transform:Tg}),h_=Ji({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Wn,accentHeight:Te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Te,amplitude:Te,arabicForm:null,ascent:Te,attributeName:null,attributeType:null,azimuth:Te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Te,by:null,calcMode:null,capHeight:Te,className:It,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:Te,diffuseConstant:Te,direction:null,display:null,dur:null,divisor:Te,dominantBaseline:null,download:Je,dx:null,dy:null,edgeMode:null,editable:null,elevation:Te,enableBackground:null,end:null,event:null,exponent:Te,externalResourcesRequired:null,fill:null,fillOpacity:Te,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:Te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Te,horizOriginX:Te,horizOriginY:Te,id:null,ideographic:Te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Te,k:Te,k1:Te,k2:Te,k3:Te,k4:Te,kernelMatrix:Wn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Te,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:Te,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:Te,overlineThickness:Te,paintOrder:null,panose1:null,path:null,pathLength:Te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:It,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Te,pointsAtY:Te,pointsAtZ:Te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Wn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Wn,rev:Wn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Wn,requiredFeatures:Wn,requiredFonts:Wn,requiredFormats:Wn,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:Te,specularExponent:Te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Te,strikethroughThickness:Te,string:null,stroke:null,strokeDashArray:Wn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Te,strokeOpacity:Te,strokeWidth:null,style:null,surfaceScale:Te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Wn,tabIndex:Te,tableValues:null,target:null,targetX:Te,targetY:Te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Wn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Te,underlineThickness:Te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Te,values:null,vAlphabetic:Te,vMathematical:Te,vectorEffect:null,vHanging:Te,vIdeographic:Te,version:null,vertAdvY:Te,vertOriginX:Te,vertOriginY:Te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:yg}),Sg=Ji({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Cg=Ji({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Tg}),Ag=Ji({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),p_=/[A-Z]/g,xg=/-[a-z]/g,m_=/^data[-\w.:]+$/i;function g_(e,t){const r=Sd(t);let i=t,l=Mn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&m_.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(xg,E_);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!xg.test(s)){let c=s.replace(p_,b_);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}l=xd}return new l(i,t)}function b_(e){return"-"+e.toLowerCase()}function E_(e){return e.charAt(1).toUpperCase()}const _g=mg([Eg,d_,Sg,Cg,Ag],"html"),vg=mg([Eg,h_,Sg,Cg,Ag],"svg");function y_(e){const t=String(e),r=[];return{toOffset:l,toPoint:i};function i(s){if(typeof s=="number"&&s>-1&&s<=t.length){let c=0;for(;;){let d=r[c];if(d===void 0){const p=Rg(t,r[c-1]);d=p===-1?t.length+1:p+1,r[c]=d}if(d>s)return{line:c+1,column:s-(c>0?r[c-1]:0)+1,offset:s};c++}}}function l(s){if(s&&typeof s.line=="number"&&typeof s.column=="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){for(;r.length<s.line;){const d=r[r.length-1],p=Rg(t,d),m=p===-1?t.length+1:p+1;if(d===m)break;r.push(m)}const c=(s.line>1?r[s.line-2]:0)+s.column-1;if(c<r[s.line-1])return c}}}function Rg(e,t){const r=e.indexOf("\r",t),i=e.indexOf(`
69
+ `},l),s}function Ex(e,t){return e&&"run"in e?async function(r,i){const l=q1(r,{file:i,...t});await e.run(l,i)}:function(r,i){return q1(r,{file:i,...e||t})}}function G1(e){if(e)throw e}var ud,X1;function yx(){if(X1)return ud;X1=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(m){return typeof Array.isArray=="function"?Array.isArray(m):t.call(m)==="[object Array]"},s=function(m){if(!m||t.call(m)!=="[object Object]")return!1;var b=e.call(m,"constructor"),E=m.constructor&&m.constructor.prototype&&e.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!b&&!E)return!1;var S;for(S in m);return typeof S>"u"||e.call(m,S)},c=function(m,b){r&&b.name==="__proto__"?r(m,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):m[b.name]=b.newValue},d=function(m,b){if(b==="__proto__")if(e.call(m,b)){if(i)return i(m,b).value}else return;return m[b]};return ud=function p(){var m,b,E,S,y,O,_=arguments[0],I=1,v=arguments.length,H=!1;for(typeof _=="boolean"&&(H=_,_=arguments[1]||{},I=2),(_==null||typeof _!="object"&&typeof _!="function")&&(_={});I<v;++I)if(m=arguments[I],m!=null)for(b in m)E=d(_,b),S=d(m,b),_!==S&&(H&&S&&(s(S)||(y=l(S)))?(y?(y=!1,O=E&&l(E)?E:[]):O=E&&s(E)?E:{},c(_,{name:b,newValue:p(H,O,S)})):typeof S<"u"&&c(_,{name:b,newValue:S}));return _},ud}var Tx=yx();const ld=ur(Tx);function od(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Sx(){const e=[],t={run:r,use:i};return t;function r(...l){let s=-1;const c=l.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...l);function d(p,...m){const b=e[++s];let E=-1;if(p){c(p);return}for(;++E<l.length;)(m[E]===null||m[E]===void 0)&&(m[E]=l[E]);l=m,b?Cx(b,d)(...m):c(null,...m)}}function i(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function Cx(e,t){let r;return i;function i(...c){const d=e.length>c.length;let p;d&&c.push(l);try{p=e.apply(this,c)}catch(m){const b=m;if(d&&r)throw b;return l(b)}d||(p&&p.then&&typeof p.then=="function"?p.then(s,l):p instanceof Error?l(p):s(p))}function l(c,...d){r||(r=!0,t(c,...d))}function s(c){l(null,c)}}const Fr={basename:Ax,dirname:xx,extname:_x,join:vx,sep:"/"};function Ax(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');dl(e);let r=0,i=-1,l=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(s){r=l+1;break}}else i<0&&(s=!0,i=l+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let c=-1,d=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(s){r=l+1;break}}else c<0&&(s=!0,c=l+1),d>-1&&(e.codePointAt(l)===t.codePointAt(d--)?d<0&&(i=l):(d=-1,i=c));return r===i?i=c:i<0&&(i=e.length),e.slice(r,i)}function xx(e){if(dl(e),e.length===0)return".";let t=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function _x(e){dl(e);let t=e.length,r=-1,i=0,l=-1,s=0,c;for(;t--;){const d=e.codePointAt(t);if(d===47){if(c){i=t+1;break}continue}r<0&&(c=!0,r=t+1),d===46?l<0?l=t:s!==1&&(s=1):l>-1&&(s=-1)}return l<0||r<0||s===0||s===1&&l===r-1&&l===i+1?"":e.slice(l,r)}function vx(...e){let t=-1,r;for(;++t<e.length;)dl(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":Rx(r)}function Rx(e){dl(e);const t=e.codePointAt(0)===47;let r=Ox(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function Ox(e,t){let r="",i=0,l=-1,s=0,c=-1,d,p;for(;++c<=e.length;){if(c<e.length)d=e.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(l===c-1||s===1))if(l!==c-1&&s===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(p=r.lastIndexOf("/"),p!==r.length-1){p<0?(r="",i=0):(r=r.slice(0,p),i=r.length-1-r.lastIndexOf("/")),l=c,s=0;continue}}else if(r.length>0){r="",i=0,l=c,s=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(l+1,c):r=e.slice(l+1,c),i=c-l-1;l=c,s=0}else d===46&&s>-1?s++:s=-1}return r}function dl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Nx={cwd:kx};function kx(){return"/"}function sd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Dx(e){if(typeof e=="string")e=new URL(e);else if(!sd(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Lx(e)}function Lx(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const i=t.codePointAt(r+2);if(i===70||i===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}const cd=["history","path","basename","stem","extname","dirname"];class Q1{constructor(t){let r;t?sd(t)?r={path:t}:typeof t=="string"||Ix(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":Nx.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<cd.length;){const s=cd[i];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let l;for(l in r)cd.includes(l)||(this[l]=r[l])}get basename(){return typeof this.path=="string"?Fr.basename(this.path):void 0}set basename(t){dd(t,"basename"),fd(t,"basename"),this.path=Fr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Fr.dirname(this.path):void 0}set dirname(t){K1(this.basename,"dirname"),this.path=Fr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Fr.extname(this.path):void 0}set extname(t){if(fd(t,"extname"),K1(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Fr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){sd(t)&&(t=Dx(t)),dd(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Fr.basename(this.path,this.extname):void 0}set stem(t){dd(t,"stem"),fd(t,"stem"),this.path=Fr.join(this.dirname||"",t+(this.extname||""))}fail(t,r,i){const l=this.message(t,r,i);throw l.fatal=!0,l}info(t,r,i){const l=this.message(t,r,i);return l.fatal=void 0,l}message(t,r,i){const l=new An(t,r,i);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function fd(e,t){if(e&&e.includes(Fr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Fr.sep+"`")}function dd(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function K1(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Ix(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const wx=function(e){const i=this.constructor.prototype,l=i[e],s=function(){return l.apply(s,arguments)};return Object.setPrototypeOf(s,i),s},Mx={}.hasOwnProperty;class hd extends wx{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=Sx()}copy(){const t=new hd;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(ld(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(gd("data",this.frozen),this.namespace[t]=r,this):Mx.call(this.namespace,t)&&this.namespace[t]||void 0:t?(gd("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const l=r.call(t,...i);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=xs(t),i=this.parser||this.Parser;return pd("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),pd("process",this.parser||this.Parser),md("process",this.compiler||this.Compiler),r?l(void 0,r):new Promise(l);function l(s,c){const d=xs(t),p=i.parse(d);i.run(p,d,function(b,E,S){if(b||!E||!S)return m(b);const y=E,O=i.stringify(y,S);Ux(O)?S.value=O:S.result=O,m(b,S)});function m(b,E){b||!E?c(b):s?s(E):r(void 0,E)}}}processSync(t){let r=!1,i;return this.freeze(),pd("processSync",this.parser||this.Parser),md("processSync",this.compiler||this.Compiler),this.process(t,l),Z1("processSync","process",r),i;function l(s,c){r=!0,G1(s),i=c}}run(t,r,i){W1(t),this.freeze();const l=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?s(void 0,i):new Promise(s);function s(c,d){const p=xs(r);l.run(t,p,m);function m(b,E,S){const y=E||t;b?d(b):c?c(y):i(void 0,y,S)}}}runSync(t,r){let i=!1,l;return this.run(t,r,s),Z1("runSync","run",i),l;function s(c,d){G1(c),l=d,i=!0}}stringify(t,r){this.freeze();const i=xs(r),l=this.compiler||this.Compiler;return md("stringify",l),W1(t),l(t,i)}use(t,...r){const i=this.attachers,l=this.namespace;if(gd("use",this.frozen),t!=null)if(typeof t=="function")p(t,r);else if(typeof t=="object")Array.isArray(t)?d(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(m){if(typeof m=="function")p(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[b,...E]=m;p(b,E)}else c(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function c(m){if(!("plugins"in m)&&!("settings"in m))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(m.plugins),m.settings&&(l.settings=ld(!0,l.settings,m.settings))}function d(m){let b=-1;if(m!=null)if(Array.isArray(m))for(;++b<m.length;){const E=m[b];s(E)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,b){let E=-1,S=-1;for(;++E<i.length;)if(i[E][0]===m){S=E;break}if(S===-1)i.push([m,...b]);else if(b.length>0){let[y,...O]=b;const _=i[S][1];od(_)&&od(y)&&(y=ld(!0,_,y)),i[S]=[m,y,...O]}}}}const Bx=new hd().freeze();function pd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function md(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function gd(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function W1(e){if(!od(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Z1(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function xs(e){return Px(e)?e:new Q1(e)}function Px(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ux(e){return typeof e=="string"||Hx(e)}function Hx(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Fx="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",J1=[],eg={allowDangerousHtml:!0},zx=/^(https?|ircs?|mailto|xmpp)$/i,Yx=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function tg(e){const t=jx(e),r=Vx(e);return $x(t.runSync(t.parse(r),r),e)}function jx(e){const t=e.rehypePlugins||J1,r=e.remarkPlugins||J1,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...eg}:eg;return Bx().use(A4).use(r).use(Ex,i).use(t)}function Vx(e){const t=e.children||"",r=new Q1;return typeof t=="string"&&(r.value=t),r}function $x(e,t){const r=t.allowedElements,i=t.allowElement,l=t.components,s=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,p=t.urlTransform||qx;for(const b of Yx)Object.hasOwn(t,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+Fx+b.id,void 0);return ad(e,m),o6(e,{Fragment:me.Fragment,components:l,ignoreInvalidStyle:!0,jsx:me.jsx,jsxs:me.jsxs,passKeys:!0,passNode:!0});function m(b,E,S){if(b.type==="raw"&&S&&typeof E=="number")return c?S.children.splice(E,1):S.children[E]={type:"text",value:b.value},E;if(b.type==="element"){let y;for(y in Vf)if(Object.hasOwn(Vf,y)&&Object.hasOwn(b.properties,y)){const O=b.properties[y],_=Vf[y];(_===null||_.includes(b.tagName))&&(b.properties[y]=p(String(O||""),y,b))}}if(b.type==="element"){let y=r?!r.includes(b.tagName):s?s.includes(b.tagName):!1;if(!y&&i&&typeof E=="number"&&(y=!i(b,E,S)),y&&S&&typeof E=="number")return d&&b.children?S.children.splice(E,1,...b.children):S.children.splice(E,1),E}}}function qx(e){const t=e.indexOf(":"),r=e.indexOf("?"),i=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||r!==-1&&t>r||i!==-1&&t>i||zx.test(e.slice(0,t))?e:""}let hl=class{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}};hl.prototype.normal={},hl.prototype.property={},hl.prototype.space=void 0;function ng(e,t){const r={},i={};for(const l of e)Object.assign(r,l.property),Object.assign(i,l.normal);return new hl(r,i,t)}function pl(e){return e.toLowerCase()}let wn=class{constructor(t,r){this.attribute=r,this.property=t}};wn.prototype.attribute="",wn.prototype.booleanish=!1,wn.prototype.boolean=!1,wn.prototype.commaOrSpaceSeparated=!1,wn.prototype.commaSeparated=!1,wn.prototype.defined=!1,wn.prototype.mustUseProperty=!1,wn.prototype.number=!1,wn.prototype.overloadedBoolean=!1,wn.prototype.property="",wn.prototype.spaceSeparated=!1,wn.prototype.space=void 0;let Gx=0;const Ze=ui(),en=ui(),rg=ui(),ye=ui(),Lt=ui(),Ki=ui(),Kn=ui();function ui(){return 2**++Gx}const bd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ze,booleanish:en,commaOrSpaceSeparated:Kn,commaSeparated:Ki,number:ye,overloadedBoolean:rg,spaceSeparated:Lt},Symbol.toStringTag,{value:"Module"})),Ed=Object.keys(bd);let yd=class extends wn{constructor(t,r,i,l){let s=-1;if(super(t,r),ag(this,"space",l),typeof i=="number")for(;++s<Ed.length;){const c=Ed[s];ag(this,Ed[s],(i&bd[c])===bd[c])}}};yd.prototype.defined=!0;function ag(e,t,r){r&&(e[t]=r)}function Wi(e){const t={},r={};for(const[i,l]of Object.entries(e.properties)){const s=new yd(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,r[pl(i)]=i,r[pl(s.attribute)]=i}return new hl(t,r,e.space)}const ig=Wi({properties:{ariaActiveDescendant:null,ariaAtomic:en,ariaAutoComplete:null,ariaBusy:en,ariaChecked:en,ariaColCount:ye,ariaColIndex:ye,ariaColSpan:ye,ariaControls:Lt,ariaCurrent:null,ariaDescribedBy:Lt,ariaDetails:null,ariaDisabled:en,ariaDropEffect:Lt,ariaErrorMessage:null,ariaExpanded:en,ariaFlowTo:Lt,ariaGrabbed:en,ariaHasPopup:null,ariaHidden:en,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Lt,ariaLevel:ye,ariaLive:null,ariaModal:en,ariaMultiLine:en,ariaMultiSelectable:en,ariaOrientation:null,ariaOwns:Lt,ariaPlaceholder:null,ariaPosInSet:ye,ariaPressed:en,ariaReadOnly:en,ariaRelevant:null,ariaRequired:en,ariaRoleDescription:Lt,ariaRowCount:ye,ariaRowIndex:ye,ariaRowSpan:ye,ariaSelected:en,ariaSetSize:ye,ariaSort:null,ariaValueMax:ye,ariaValueMin:ye,ariaValueNow:ye,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ug(e,t){return t in e?e[t]:t}function lg(e,t){return ug(e,t.toLowerCase())}const Xx=Wi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ki,acceptCharset:Lt,accessKey:Lt,action:null,allow:null,allowFullScreen:Ze,allowPaymentRequest:Ze,allowUserMedia:Ze,alt:null,as:null,async:Ze,autoCapitalize:null,autoComplete:Lt,autoFocus:Ze,autoPlay:Ze,blocking:Lt,capture:null,charSet:null,checked:Ze,cite:null,className:Lt,cols:ye,colSpan:null,content:null,contentEditable:en,controls:Ze,controlsList:Lt,coords:ye|Ki,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ze,defer:Ze,dir:null,dirName:null,disabled:Ze,download:rg,draggable:en,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ze,formTarget:null,headers:Lt,height:ye,hidden:Ze,high:ye,href:null,hrefLang:null,htmlFor:Lt,httpEquiv:Lt,id:null,imageSizes:null,imageSrcSet:null,inert:Ze,inputMode:null,integrity:null,is:null,isMap:Ze,itemId:null,itemProp:Lt,itemRef:Lt,itemScope:Ze,itemType:Lt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ze,low:ye,manifest:null,max:null,maxLength:ye,media:null,method:null,min:null,minLength:ye,multiple:Ze,muted:Ze,name:null,nonce:null,noModule:Ze,noValidate:Ze,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:Ze,optimum:ye,pattern:null,ping:Lt,placeholder:null,playsInline:Ze,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ze,referrerPolicy:null,rel:Lt,required:Ze,reversed:Ze,rows:ye,rowSpan:ye,sandbox:Lt,scope:null,scoped:Ze,seamless:Ze,selected:Ze,shadowRootClonable:Ze,shadowRootDelegatesFocus:Ze,shadowRootMode:null,shape:null,size:ye,sizes:null,slot:null,span:ye,spellCheck:en,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ye,step:null,style:null,tabIndex:ye,target:null,title:null,translate:null,type:null,typeMustMatch:Ze,useMap:null,value:en,width:ye,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Lt,axis:null,background:null,bgColor:null,border:ye,borderColor:null,bottomMargin:ye,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ze,declare:Ze,event:null,face:null,frame:null,frameBorder:null,hSpace:ye,leftMargin:ye,link:null,longDesc:null,lowSrc:null,marginHeight:ye,marginWidth:ye,noResize:Ze,noHref:Ze,noShade:Ze,noWrap:Ze,object:null,profile:null,prompt:null,rev:null,rightMargin:ye,rules:null,scheme:null,scrolling:en,standby:null,summary:null,text:null,topMargin:ye,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ye,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ze,disableRemotePlayback:Ze,prefix:null,property:null,results:ye,security:null,unselectable:null},space:"html",transform:lg}),Qx=Wi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Kn,accentHeight:ye,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ye,amplitude:ye,arabicForm:null,ascent:ye,attributeName:null,attributeType:null,azimuth:ye,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ye,by:null,calcMode:null,capHeight:ye,className:Lt,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:ye,diffuseConstant:ye,direction:null,display:null,dur:null,divisor:ye,dominantBaseline:null,download:Ze,dx:null,dy:null,edgeMode:null,editable:null,elevation:ye,enableBackground:null,end:null,event:null,exponent:ye,externalResourcesRequired:null,fill:null,fillOpacity:ye,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:Ki,g2:Ki,glyphName:Ki,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ye,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ye,horizOriginX:ye,horizOriginY:ye,id:null,ideographic:ye,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ye,k:ye,k1:ye,k2:ye,k3:ye,k4:ye,kernelMatrix:Kn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ye,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:ye,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:ye,overlineThickness:ye,paintOrder:null,panose1:null,path:null,pathLength:ye,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Lt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ye,pointsAtY:ye,pointsAtZ:ye,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Kn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Kn,rev:Kn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Kn,requiredFeatures:Kn,requiredFonts:Kn,requiredFormats:Kn,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:ye,specularExponent:ye,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ye,strikethroughThickness:ye,string:null,stroke:null,strokeDashArray:Kn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ye,strokeOpacity:ye,strokeWidth:null,style:null,surfaceScale:ye,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kn,tabIndex:ye,tableValues:null,target:null,targetX:ye,targetY:ye,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Kn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ye,underlineThickness:ye,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ye,values:null,vAlphabetic:ye,vMathematical:ye,vectorEffect:null,vHanging:ye,vIdeographic:ye,version:null,vertAdvY:ye,vertOriginX:ye,vertOriginY:ye,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ye,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ug}),og=Wi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),sg=Wi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:lg}),cg=Wi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Kx=/[A-Z]/g,fg=/-[a-z]/g,Wx=/^data[-\w.:]+$/i;function Zx(e,t){const r=pl(t);let i=t,l=wn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Wx.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(fg,e_);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!fg.test(s)){let c=s.replace(Kx,Jx);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}l=yd}return new l(i,t)}function Jx(e){return"-"+e.toLowerCase()}function e_(e){return e.charAt(1).toUpperCase()}const t_=ng([ig,Xx,og,sg,cg],"html"),n_=ng([ig,Qx,og,sg,cg],"svg"),dg=/[#.]/g;function r_(e,t){const r=e||"",i={};let l=0,s,c;for(;l<r.length;){dg.lastIndex=l;const d=dg.exec(r),p=r.slice(l,d?d.index:r.length);p&&(s?s==="#"?i.id=p:Array.isArray(i.className)?i.className.push(p):i.className=[p]:c=p,l+=p.length),d&&(s=d[0],l++)}return{type:"element",tagName:c||t||"div",properties:i,children:[]}}function hg(e,t,r){const i=r?l_(r):void 0;function l(s,c,...d){let p;if(s==null){p={type:"root",children:[]};const m=c;d.unshift(m)}else{p=r_(s,t);const m=p.tagName.toLowerCase(),b=i?i.get(m):void 0;if(p.tagName=b||m,a_(c))d.unshift(c);else for(const[E,S]of Object.entries(c))i_(e,p.properties,E,S)}for(const m of d)Td(p.children,m);return p.type==="element"&&p.tagName==="template"&&(p.content={type:"root",children:p.children},p.children=[]),p}return l}function a_(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const i of r){const l=t[i];if(l&&typeof l=="object"){if(!Array.isArray(l))return!0;const s=l;for(const c of s)if(typeof c!="number"&&typeof c!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function i_(e,t,r,i){const l=Zx(e,r);let s;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;s=i}else typeof i=="boolean"?s=i:typeof i=="string"?l.spaceSeparated?s=qm(i):l.commaSeparated?s=km(i):l.commaOrSpaceSeparated?s=qm(km(i).join(" ")):s=pg(l,l.property,i):Array.isArray(i)?s=[...i]:s=l.property==="style"?u_(i):String(i);if(Array.isArray(s)){const c=[];for(const d of s)c.push(pg(l,l.property,d));s=c}l.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[l.property]=s}}function Td(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)Td(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?Td(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function pg(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||pl(r)===pl(t)))return!0}return r}function u_(e){const t=[];for(const[r,i]of Object.entries(e))t.push([r,i].join(": "));return t.join("; ")}function l_(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const o_=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],s_=hg(t_,"div"),c_=hg(n_,"g",o_);class ml{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}}ml.prototype.normal={},ml.prototype.property={},ml.prototype.space=void 0;function mg(e,t){const r={},i={};for(const l of e)Object.assign(r,l.property),Object.assign(i,l.normal);return new ml(r,i,t)}function Sd(e){return e.toLowerCase()}class Mn{constructor(t,r){this.attribute=r,this.property=t}}Mn.prototype.attribute="",Mn.prototype.booleanish=!1,Mn.prototype.boolean=!1,Mn.prototype.commaOrSpaceSeparated=!1,Mn.prototype.commaSeparated=!1,Mn.prototype.defined=!1,Mn.prototype.mustUseProperty=!1,Mn.prototype.number=!1,Mn.prototype.overloadedBoolean=!1,Mn.prototype.property="",Mn.prototype.spaceSeparated=!1,Mn.prototype.space=void 0;let f_=0;const Je=li(),tn=li(),gg=li(),Te=li(),It=li(),Zi=li(),Wn=li();function li(){return 2**++f_}const Cd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Je,booleanish:tn,commaOrSpaceSeparated:Wn,commaSeparated:Zi,number:Te,overloadedBoolean:gg,spaceSeparated:It},Symbol.toStringTag,{value:"Module"})),Ad=Object.keys(Cd);class xd extends Mn{constructor(t,r,i,l){let s=-1;if(super(t,r),bg(this,"space",l),typeof i=="number")for(;++s<Ad.length;){const c=Ad[s];bg(this,Ad[s],(i&Cd[c])===Cd[c])}}}xd.prototype.defined=!0;function bg(e,t,r){r&&(e[t]=r)}function Ji(e){const t={},r={};for(const[i,l]of Object.entries(e.properties)){const s=new xd(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,r[Sd(i)]=i,r[Sd(s.attribute)]=i}return new ml(t,r,e.space)}const Eg=Ji({properties:{ariaActiveDescendant:null,ariaAtomic:tn,ariaAutoComplete:null,ariaBusy:tn,ariaChecked:tn,ariaColCount:Te,ariaColIndex:Te,ariaColSpan:Te,ariaControls:It,ariaCurrent:null,ariaDescribedBy:It,ariaDetails:null,ariaDisabled:tn,ariaDropEffect:It,ariaErrorMessage:null,ariaExpanded:tn,ariaFlowTo:It,ariaGrabbed:tn,ariaHasPopup:null,ariaHidden:tn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:It,ariaLevel:Te,ariaLive:null,ariaModal:tn,ariaMultiLine:tn,ariaMultiSelectable:tn,ariaOrientation:null,ariaOwns:It,ariaPlaceholder:null,ariaPosInSet:Te,ariaPressed:tn,ariaReadOnly:tn,ariaRelevant:null,ariaRequired:tn,ariaRoleDescription:It,ariaRowCount:Te,ariaRowIndex:Te,ariaRowSpan:Te,ariaSelected:tn,ariaSetSize:Te,ariaSort:null,ariaValueMax:Te,ariaValueMin:Te,ariaValueNow:Te,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function yg(e,t){return t in e?e[t]:t}function Tg(e,t){return yg(e,t.toLowerCase())}const d_=Ji({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Zi,acceptCharset:It,accessKey:It,action:null,allow:null,allowFullScreen:Je,allowPaymentRequest:Je,allowUserMedia:Je,alt:null,as:null,async:Je,autoCapitalize:null,autoComplete:It,autoFocus:Je,autoPlay:Je,blocking:It,capture:null,charSet:null,checked:Je,cite:null,className:It,cols:Te,colSpan:null,content:null,contentEditable:tn,controls:Je,controlsList:It,coords:Te|Zi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Je,defer:Je,dir:null,dirName:null,disabled:Je,download:gg,draggable:tn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Je,formTarget:null,headers:It,height:Te,hidden:Je,high:Te,href:null,hrefLang:null,htmlFor:It,httpEquiv:It,id:null,imageSizes:null,imageSrcSet:null,inert:Je,inputMode:null,integrity:null,is:null,isMap:Je,itemId:null,itemProp:It,itemRef:It,itemScope:Je,itemType:It,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Je,low:Te,manifest:null,max:null,maxLength:Te,media:null,method:null,min:null,minLength:Te,multiple:Je,muted:Je,name:null,nonce:null,noModule:Je,noValidate:Je,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:Je,optimum:Te,pattern:null,ping:It,placeholder:null,playsInline:Je,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Je,referrerPolicy:null,rel:It,required:Je,reversed:Je,rows:Te,rowSpan:Te,sandbox:It,scope:null,scoped:Je,seamless:Je,selected:Je,shadowRootClonable:Je,shadowRootDelegatesFocus:Je,shadowRootMode:null,shape:null,size:Te,sizes:null,slot:null,span:Te,spellCheck:tn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Te,step:null,style:null,tabIndex:Te,target:null,title:null,translate:null,type:null,typeMustMatch:Je,useMap:null,value:tn,width:Te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:It,axis:null,background:null,bgColor:null,border:Te,borderColor:null,bottomMargin:Te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Je,declare:Je,event:null,face:null,frame:null,frameBorder:null,hSpace:Te,leftMargin:Te,link:null,longDesc:null,lowSrc:null,marginHeight:Te,marginWidth:Te,noResize:Je,noHref:Je,noShade:Je,noWrap:Je,object:null,profile:null,prompt:null,rev:null,rightMargin:Te,rules:null,scheme:null,scrolling:tn,standby:null,summary:null,text:null,topMargin:Te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Te,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Je,disableRemotePlayback:Je,prefix:null,property:null,results:Te,security:null,unselectable:null},space:"html",transform:Tg}),h_=Ji({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Wn,accentHeight:Te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Te,amplitude:Te,arabicForm:null,ascent:Te,attributeName:null,attributeType:null,azimuth:Te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Te,by:null,calcMode:null,capHeight:Te,className:It,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:Te,diffuseConstant:Te,direction:null,display:null,dur:null,divisor:Te,dominantBaseline:null,download:Je,dx:null,dy:null,edgeMode:null,editable:null,elevation:Te,enableBackground:null,end:null,event:null,exponent:Te,externalResourcesRequired:null,fill:null,fillOpacity:Te,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:Te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Te,horizOriginX:Te,horizOriginY:Te,id:null,ideographic:Te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Te,k:Te,k1:Te,k2:Te,k3:Te,k4:Te,kernelMatrix:Wn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Te,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:Te,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:Te,overlineThickness:Te,paintOrder:null,panose1:null,path:null,pathLength:Te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:It,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Te,pointsAtY:Te,pointsAtZ:Te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Wn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Wn,rev:Wn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Wn,requiredFeatures:Wn,requiredFonts:Wn,requiredFormats:Wn,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:Te,specularExponent:Te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Te,strikethroughThickness:Te,string:null,stroke:null,strokeDashArray:Wn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Te,strokeOpacity:Te,strokeWidth:null,style:null,surfaceScale:Te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Wn,tabIndex:Te,tableValues:null,target:null,targetX:Te,targetY:Te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Wn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Te,underlineThickness:Te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Te,values:null,vAlphabetic:Te,vMathematical:Te,vectorEffect:null,vHanging:Te,vIdeographic:Te,version:null,vertAdvY:Te,vertOriginX:Te,vertOriginY:Te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:yg}),Sg=Ji({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Cg=Ji({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Tg}),Ag=Ji({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),p_=/[A-Z]/g,xg=/-[a-z]/g,m_=/^data[-\w.:]+$/i;function g_(e,t){const r=Sd(t);let i=t,l=Mn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&m_.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(xg,E_);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!xg.test(s)){let c=s.replace(p_,b_);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}l=xd}return new l(i,t)}function b_(e){return"-"+e.toLowerCase()}function E_(e){return e.charAt(1).toUpperCase()}const _g=mg([Eg,d_,Sg,Cg,Ag],"html"),vg=mg([Eg,h_,Sg,Cg,Ag],"svg");function y_(e){const t=String(e),r=[];return{toOffset:l,toPoint:i};function i(s){if(typeof s=="number"&&s>-1&&s<=t.length){let c=0;for(;;){let d=r[c];if(d===void 0){const p=Rg(t,r[c-1]);d=p===-1?t.length+1:p+1,r[c]=d}if(d>s)return{line:c+1,column:s-(c>0?r[c-1]:0)+1,offset:s};c++}}}function l(s){if(s&&typeof s.line=="number"&&typeof s.column=="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){for(;r.length<s.line;){const d=r[r.length-1],p=Rg(t,d),m=p===-1?t.length+1:p+1;if(d===m)break;r.push(m)}const c=(s.line>1?r[s.line-2]:0)+s.column-1;if(c<r[s.line-1])return c}}}function Rg(e,t){const r=e.indexOf("\r",t),i=e.indexOf(`
70
70
  `,t);return i===-1?r:r===-1||r+1===i?i:r<i?r:i}const oi={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Og={}.hasOwnProperty,T_=Object.prototype;function S_(e,t){const r=t||{};return _d({file:r.file||void 0,location:!1,schema:r.space==="svg"?vg:_g,verbose:r.verbose||!1},e)}function _d(e,t){let r;switch(t.nodeName){case"#comment":{const i=t;return r={type:"comment",value:i.data},_s(e,i,r),r}case"#document":case"#document-fragment":{const i=t,l="mode"in i?i.mode==="quirks"||i.mode==="limited-quirks":!1;if(r={type:"root",children:Ng(e,t.childNodes),data:{quirksMode:l}},e.file&&e.location){const s=String(e.file),c=y_(s),d=c.toPoint(0),p=c.toPoint(s.length);r.position={start:d,end:p}}return r}case"#documentType":{const i=t;return r={type:"doctype"},_s(e,i,r),r}case"#text":{const i=t;return r={type:"text",value:i.value},_s(e,i,r),r}default:return r=C_(e,t),r}}function Ng(e,t){let r=-1;const i=[];for(;++r<t.length;){const l=_d(e,t[r]);i.push(l)}return i}function C_(e,t){const r=e.schema;e.schema=t.namespaceURI===oi.svg?vg:_g;let i=-1;const l={};for(;++i<t.attrs.length;){const d=t.attrs[i],p=(d.prefix?d.prefix+":":"")+d.name;Og.call(T_,p)||(l[p]=d.value)}const c=(e.schema.space==="svg"?c_:s_)(t.tagName,l,Ng(e,t.childNodes));if(_s(e,t,c),c.tagName==="template"){const d=t,p=d.sourceCodeLocation,m=p&&p.startTag&&eu(p.startTag),b=p&&p.endTag&&eu(p.endTag),E=_d(e,d.content);m&&b&&e.file&&(E.position={start:m.end,end:b.start}),c.content=E}return e.schema=r,c}function _s(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const i=A_(e,r,t.sourceCodeLocation);i&&(e.location=!0,r.position=i)}}function A_(e,t,r){const i=eu(r);if(t.type==="element"){const l=t.children[t.children.length-1];if(i&&!r.endTag&&l&&l.position&&l.position.end&&(i.end=Object.assign({},l.position.end)),e.verbose){const s={};let c;if(r.attrs)for(c in r.attrs)Og.call(r.attrs,c)&&(s[g_(e.schema,c).property]=eu(r.attrs[c]));r.startTag;const d=eu(r.startTag),p=r.endTag?eu(r.endTag):void 0,m={opening:d};p&&(m.closing=p),m.properties=s,t.data={position:m}}}return i}function eu(e){const t=kg({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=kg({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function kg(e){return e.line&&e.column?e:void 0}const Dg={}.hasOwnProperty;function Lg(e,t){const r=t||{};function i(l,...s){let c=i.invalid;const d=i.handlers;if(l&&Dg.call(l,e)){const p=String(l[e]);c=Dg.call(d,p)?d[p]:i.unknown}if(c)return c.call(this,l,...s)}return i.handlers=r.handlers||{},i.invalid=r.invalid,i.unknown=r.unknown,i}const x_={},__={}.hasOwnProperty,Ig=Lg("type",{handlers:{root:R_,element:L_,text:k_,comment:D_,doctype:N_}});function v_(e,t){const i=(t||x_).space;return Ig(e,i==="svg"?il:$m)}function R_(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=vd(e.children,r,t),tu(e,r),r}function O_(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=vd(e.children,r,t),tu(e,r),r}function N_(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return tu(e,t),t}function k_(e){const t={nodeName:"#text",value:e.value,parentNode:null};return tu(e,t),t}function D_(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return tu(e,t),t}function L_(e,t){const r=t;let i=r;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=il);const l=[];let s;if(e.properties){for(s in e.properties)if(s!=="children"&&__.call(e.properties,s)){const p=I_(i,s,e.properties[s]);p&&l.push(p)}}const c=i.space,d={nodeName:e.tagName,tagName:e.tagName,attrs:l,namespaceURI:oi[c],childNodes:[],parentNode:null};return d.childNodes=vd(e.children,d,i),tu(e,d),e.tagName==="template"&&e.content&&(d.content=O_(e.content,i)),d}function I_(e,t,r){const i=Vm(e,t);if(r===!1||r===null||r===void 0||typeof r=="number"&&Number.isNaN(r)||!r&&i.boolean)return;Array.isArray(r)&&(r=i.commaSeparated?Dm(r):Gm(r));const l={name:i.attribute,value:r===!0?"":String(r)};if(i.space&&i.space!=="html"&&i.space!=="svg"){const s=l.name.indexOf(":");s<0?l.prefix="":(l.name=l.name.slice(s+1),l.prefix=i.attribute.slice(0,s)),l.namespace=oi[i.space]}return l}function vd(e,t,r){let i=-1;const l=[];if(e)for(;++i<e.length;){const s=Ig(e[i],r);s.parentNode=t,l.push(s)}return l}function tu(e,t){const r=e.position;r&&r.start&&r.end&&(r.start.offset,r.end.offset,t.sourceCodeLocation={startLine:r.start.line,startCol:r.start.column,startOffset:r.start.offset,endLine:r.end.line,endCol:r.end.column,endOffset:r.end.offset})}const w_=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],M_=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Pt="�";var N;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(N||(N={}));const Bn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function wg(e){return e>=55296&&e<=57343}function B_(e){return e>=56320&&e<=57343}function P_(e,t){return(e-55296)*1024+9216+t}function Mg(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Bg(e){return e>=64976&&e<=65007||M_.has(e)}var ne;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(ne||(ne={}));const U_=65536;class H_{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=U_,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,r){const{line:i,col:l,offset:s}=this,c=l+r,d=s+r;return{code:t,startLine:i,endLine:i,startCol:c,endCol:c,startOffset:d,endOffset:d}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const r=this.html.charCodeAt(this.pos+1);if(B_(r))return this.pos++,this._addGap(),P_(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,N.EOF;return this._err(ne.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let i=0;i<t.length;i++)if((this.html.charCodeAt(this.pos+i)|32)!==t.charCodeAt(i))return!1;return!0}peek(t){const r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,N.EOF;const i=this.html.charCodeAt(r);return i===N.CARRIAGE_RETURN?N.LINE_FEED:i}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,N.EOF;let t=this.html.charCodeAt(this.pos);return t===N.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,N.LINE_FEED):t===N.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,wg(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===N.LINE_FEED||t===N.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Mg(t)?this._err(ne.controlCharacterInInputStream):Bg(t)&&this._err(ne.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var at;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(at||(at={}));function Pg(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}const Ug=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),F_=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Rd;const z_=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Y_=(Rd=String.fromCodePoint)!==null&&Rd!==void 0?Rd:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function j_(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=z_.get(e))!==null&&t!==void 0?t:e}var fn;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(fn||(fn={}));const V_=32;var Ra;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ra||(Ra={}));function Od(e){return e>=fn.ZERO&&e<=fn.NINE}function $_(e){return e>=fn.UPPER_A&&e<=fn.UPPER_F||e>=fn.LOWER_A&&e<=fn.LOWER_F}function q_(e){return e>=fn.UPPER_A&&e<=fn.UPPER_Z||e>=fn.LOWER_A&&e<=fn.LOWER_Z||Od(e)}function G_(e){return e===fn.EQUALS||q_(e)}var dn;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(dn||(dn={}));var na;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(na||(na={}));class Hg{constructor(t,r,i){this.decodeTree=t,this.emitCodePoint=r,this.errors=i,this.state=dn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=na.Strict}startEntity(t){this.decodeMode=t,this.state=dn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case dn.EntityStart:return t.charCodeAt(r)===fn.NUM?(this.state=dn.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=dn.NamedEntity,this.stateNamedEntity(t,r));case dn.NumericStart:return this.stateNumericStart(t,r);case dn.NumericDecimal:return this.stateNumericDecimal(t,r);case dn.NumericHex:return this.stateNumericHex(t,r);case dn.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|V_)===fn.LOWER_X?(this.state=dn.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=dn.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,i,l){if(r!==i){const s=i-r;this.result=this.result*Math.pow(l,s)+parseInt(t.substr(r,s),l),this.consumed+=s}}stateNumericHex(t,r){const i=r;for(;r<t.length;){const l=t.charCodeAt(r);if(Od(l)||$_(l))r+=1;else return this.addToNumericResult(t,i,r,16),this.emitNumericEntity(l,3)}return this.addToNumericResult(t,i,r,16),-1}stateNumericDecimal(t,r){const i=r;for(;r<t.length;){const l=t.charCodeAt(r);if(Od(l))r+=1;else return this.addToNumericResult(t,i,r,10),this.emitNumericEntity(l,2)}return this.addToNumericResult(t,i,r,10),-1}emitNumericEntity(t,r){var i;if(this.consumed<=r)return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===fn.SEMI)this.consumed+=1;else if(this.decodeMode===na.Strict)return 0;return this.emitCodePoint(j_(this.result),this.consumed),this.errors&&(t!==fn.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){const{decodeTree:i}=this;let l=i[this.treeIndex],s=(l&Ra.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){const c=t.charCodeAt(r);if(this.treeIndex=X_(i,l,this.treeIndex+Math.max(1,s),c),this.treeIndex<0)return this.result===0||this.decodeMode===na.Attribute&&(s===0||G_(c))?0:this.emitNotTerminatedNamedEntity();if(l=i[this.treeIndex],s=(l&Ra.VALUE_LENGTH)>>14,s!==0){if(c===fn.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==na.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:r,decodeTree:i}=this,l=(i[r]&Ra.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,l,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,i){const{decodeTree:l}=this;return this.emitCodePoint(r===1?l[t]&~Ra.VALUE_LENGTH:l[t+1],i),r===3&&this.emitCodePoint(l[t+2],i),i}end(){var t;switch(this.state){case dn.NamedEntity:return this.result!==0&&(this.decodeMode!==na.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case dn.NumericDecimal:return this.emitNumericEntity(0,2);case dn.NumericHex:return this.emitNumericEntity(0,3);case dn.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case dn.EntityStart:return 0}}}function Fg(e){let t="";const r=new Hg(e,i=>t+=Y_(i));return function(l,s){let c=0,d=0;for(;(d=l.indexOf("&",d))>=0;){t+=l.slice(c,d),r.startEntity(s);const m=r.write(l,d+1);if(m<0){c=d+r.end();break}c=d+m,d=m===0?c+1:c}const p=t+l.slice(c);return t="",p}}function X_(e,t,r,i){const l=(t&Ra.BRANCH_LENGTH)>>7,s=t&Ra.JUMP_TABLE;if(l===0)return s!==0&&i===s?r:-1;if(s){const p=i-s;return p<0||p>=l?-1:e[r+p]-1}let c=r,d=c+l-1;for(;c<=d;){const p=c+d>>>1,m=e[p];if(m<i)c=p+1;else if(m>i)d=p-1;else return e[p+l]}return-1}Fg(Ug),Fg(F_);var pe;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(pe||(pe={}));var si;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(si||(si={}));var cr;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(cr||(cr={}));var q;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(q||(q={}));var g;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(g||(g={}));const Q_=new Map([[q.A,g.A],[q.ADDRESS,g.ADDRESS],[q.ANNOTATION_XML,g.ANNOTATION_XML],[q.APPLET,g.APPLET],[q.AREA,g.AREA],[q.ARTICLE,g.ARTICLE],[q.ASIDE,g.ASIDE],[q.B,g.B],[q.BASE,g.BASE],[q.BASEFONT,g.BASEFONT],[q.BGSOUND,g.BGSOUND],[q.BIG,g.BIG],[q.BLOCKQUOTE,g.BLOCKQUOTE],[q.BODY,g.BODY],[q.BR,g.BR],[q.BUTTON,g.BUTTON],[q.CAPTION,g.CAPTION],[q.CENTER,g.CENTER],[q.CODE,g.CODE],[q.COL,g.COL],[q.COLGROUP,g.COLGROUP],[q.DD,g.DD],[q.DESC,g.DESC],[q.DETAILS,g.DETAILS],[q.DIALOG,g.DIALOG],[q.DIR,g.DIR],[q.DIV,g.DIV],[q.DL,g.DL],[q.DT,g.DT],[q.EM,g.EM],[q.EMBED,g.EMBED],[q.FIELDSET,g.FIELDSET],[q.FIGCAPTION,g.FIGCAPTION],[q.FIGURE,g.FIGURE],[q.FONT,g.FONT],[q.FOOTER,g.FOOTER],[q.FOREIGN_OBJECT,g.FOREIGN_OBJECT],[q.FORM,g.FORM],[q.FRAME,g.FRAME],[q.FRAMESET,g.FRAMESET],[q.H1,g.H1],[q.H2,g.H2],[q.H3,g.H3],[q.H4,g.H4],[q.H5,g.H5],[q.H6,g.H6],[q.HEAD,g.HEAD],[q.HEADER,g.HEADER],[q.HGROUP,g.HGROUP],[q.HR,g.HR],[q.HTML,g.HTML],[q.I,g.I],[q.IMG,g.IMG],[q.IMAGE,g.IMAGE],[q.INPUT,g.INPUT],[q.IFRAME,g.IFRAME],[q.KEYGEN,g.KEYGEN],[q.LABEL,g.LABEL],[q.LI,g.LI],[q.LINK,g.LINK],[q.LISTING,g.LISTING],[q.MAIN,g.MAIN],[q.MALIGNMARK,g.MALIGNMARK],[q.MARQUEE,g.MARQUEE],[q.MATH,g.MATH],[q.MENU,g.MENU],[q.META,g.META],[q.MGLYPH,g.MGLYPH],[q.MI,g.MI],[q.MO,g.MO],[q.MN,g.MN],[q.MS,g.MS],[q.MTEXT,g.MTEXT],[q.NAV,g.NAV],[q.NOBR,g.NOBR],[q.NOFRAMES,g.NOFRAMES],[q.NOEMBED,g.NOEMBED],[q.NOSCRIPT,g.NOSCRIPT],[q.OBJECT,g.OBJECT],[q.OL,g.OL],[q.OPTGROUP,g.OPTGROUP],[q.OPTION,g.OPTION],[q.P,g.P],[q.PARAM,g.PARAM],[q.PLAINTEXT,g.PLAINTEXT],[q.PRE,g.PRE],[q.RB,g.RB],[q.RP,g.RP],[q.RT,g.RT],[q.RTC,g.RTC],[q.RUBY,g.RUBY],[q.S,g.S],[q.SCRIPT,g.SCRIPT],[q.SEARCH,g.SEARCH],[q.SECTION,g.SECTION],[q.SELECT,g.SELECT],[q.SOURCE,g.SOURCE],[q.SMALL,g.SMALL],[q.SPAN,g.SPAN],[q.STRIKE,g.STRIKE],[q.STRONG,g.STRONG],[q.STYLE,g.STYLE],[q.SUB,g.SUB],[q.SUMMARY,g.SUMMARY],[q.SUP,g.SUP],[q.TABLE,g.TABLE],[q.TBODY,g.TBODY],[q.TEMPLATE,g.TEMPLATE],[q.TEXTAREA,g.TEXTAREA],[q.TFOOT,g.TFOOT],[q.TD,g.TD],[q.TH,g.TH],[q.THEAD,g.THEAD],[q.TITLE,g.TITLE],[q.TR,g.TR],[q.TRACK,g.TRACK],[q.TT,g.TT],[q.U,g.U],[q.UL,g.UL],[q.SVG,g.SVG],[q.VAR,g.VAR],[q.WBR,g.WBR],[q.XMP,g.XMP]]);function nu(e){var t;return(t=Q_.get(e))!==null&&t!==void 0?t:g.UNKNOWN}const ge=g,K_={[pe.HTML]:new Set([ge.ADDRESS,ge.APPLET,ge.AREA,ge.ARTICLE,ge.ASIDE,ge.BASE,ge.BASEFONT,ge.BGSOUND,ge.BLOCKQUOTE,ge.BODY,ge.BR,ge.BUTTON,ge.CAPTION,ge.CENTER,ge.COL,ge.COLGROUP,ge.DD,ge.DETAILS,ge.DIR,ge.DIV,ge.DL,ge.DT,ge.EMBED,ge.FIELDSET,ge.FIGCAPTION,ge.FIGURE,ge.FOOTER,ge.FORM,ge.FRAME,ge.FRAMESET,ge.H1,ge.H2,ge.H3,ge.H4,ge.H5,ge.H6,ge.HEAD,ge.HEADER,ge.HGROUP,ge.HR,ge.HTML,ge.IFRAME,ge.IMG,ge.INPUT,ge.LI,ge.LINK,ge.LISTING,ge.MAIN,ge.MARQUEE,ge.MENU,ge.META,ge.NAV,ge.NOEMBED,ge.NOFRAMES,ge.NOSCRIPT,ge.OBJECT,ge.OL,ge.P,ge.PARAM,ge.PLAINTEXT,ge.PRE,ge.SCRIPT,ge.SECTION,ge.SELECT,ge.SOURCE,ge.STYLE,ge.SUMMARY,ge.TABLE,ge.TBODY,ge.TD,ge.TEMPLATE,ge.TEXTAREA,ge.TFOOT,ge.TH,ge.THEAD,ge.TITLE,ge.TR,ge.TRACK,ge.UL,ge.WBR,ge.XMP]),[pe.MATHML]:new Set([ge.MI,ge.MO,ge.MN,ge.MS,ge.MTEXT,ge.ANNOTATION_XML]),[pe.SVG]:new Set([ge.TITLE,ge.FOREIGN_OBJECT,ge.DESC]),[pe.XLINK]:new Set,[pe.XML]:new Set,[pe.XMLNS]:new Set},Nd=new Set([ge.H1,ge.H2,ge.H3,ge.H4,ge.H5,ge.H6]);q.STYLE,q.SCRIPT,q.XMP,q.IFRAME,q.NOEMBED,q.NOFRAMES,q.PLAINTEXT;var w;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(w||(w={}));const Qt={DATA:w.DATA,RCDATA:w.RCDATA,RAWTEXT:w.RAWTEXT,SCRIPT_DATA:w.SCRIPT_DATA,PLAINTEXT:w.PLAINTEXT,CDATA_SECTION:w.CDATA_SECTION};function W_(e){return e>=N.DIGIT_0&&e<=N.DIGIT_9}function gl(e){return e>=N.LATIN_CAPITAL_A&&e<=N.LATIN_CAPITAL_Z}function Z_(e){return e>=N.LATIN_SMALL_A&&e<=N.LATIN_SMALL_Z}function Oa(e){return Z_(e)||gl(e)}function zg(e){return Oa(e)||W_(e)}function vs(e){return e+32}function Yg(e){return e===N.SPACE||e===N.LINE_FEED||e===N.TABULATION||e===N.FORM_FEED}function jg(e){return Yg(e)||e===N.SOLIDUS||e===N.GREATER_THAN_SIGN}function J_(e){return e===N.NULL?ne.nullCharacterReference:e>1114111?ne.characterReferenceOutsideUnicodeRange:wg(e)?ne.surrogateCharacterReference:Bg(e)?ne.noncharacterCharacterReference:Mg(e)||e===N.CARRIAGE_RETURN?ne.controlCharacterReference:null}class ev{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=w.DATA,this.returnState=w.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new H_(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Hg(Ug,(i,l)=>{this.preprocessor.pos=this.entityStartPos+l-1,this._flushCodePointConsumedAsCharacterReference(i)},r.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ne.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:i=>{this._err(ne.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+i)},validateNumericCharacterReference:i=>{const l=J_(i);l&&this._err(l,1)}}:void 0)}_err(t,r=0){var i,l;(l=(i=this.handler).onParseError)===null||l===void 0||l.call(i,this.preprocessor.getError(t,r))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,r,i){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||i==null||i()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:at.START_TAG,tagName:"",tagID:g.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:at.END_TAG,tagName:"",tagID:g.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:at.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:at.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;const i=this.currentToken;if(Pg(i,this.currentAttr.name)===null){if(i.attrs.push(this.currentAttr),i.location&&this.currentLocation){const l=(t=(r=i.location).attrs)!==null&&t!==void 0?t:r.attrs=Object.create(null);l[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(ne.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=nu(t.tagName),t.type===at.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(ne.endTagWithAttributes),t.selfClosing&&this._err(ne.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case at.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case at.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case at.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:at.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=r;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,r)}_emitCodePoint(t){const r=Yg(t)?at.WHITESPACE_CHARACTER:t===N.NULL?at.NULL_CHARACTER:at.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(at.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=w.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?na.Attribute:na.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===w.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===w.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===w.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case w.DATA:{this._stateData(t);break}case w.RCDATA:{this._stateRcdata(t);break}case w.RAWTEXT:{this._stateRawtext(t);break}case w.SCRIPT_DATA:{this._stateScriptData(t);break}case w.PLAINTEXT:{this._statePlaintext(t);break}case w.TAG_OPEN:{this._stateTagOpen(t);break}case w.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case w.TAG_NAME:{this._stateTagName(t);break}case w.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case w.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case w.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case w.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case w.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case w.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case w.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case w.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case w.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case w.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case w.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case w.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case w.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case w.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case w.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case w.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case w.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case w.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case w.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case w.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case w.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case w.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case w.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case w.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case w.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case w.BOGUS_COMMENT:{this._stateBogusComment(t);break}case w.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case w.COMMENT_START:{this._stateCommentStart(t);break}case w.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case w.COMMENT:{this._stateComment(t);break}case w.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case w.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case w.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case w.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case w.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case w.COMMENT_END:{this._stateCommentEnd(t);break}case w.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case w.DOCTYPE:{this._stateDoctype(t);break}case w.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case w.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case w.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case w.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case w.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case w.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case w.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case w.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case w.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case w.CDATA_SECTION:{this._stateCdataSection(t);break}case w.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case w.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case w.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case w.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case N.LESS_THAN_SIGN:{this.state=w.TAG_OPEN;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this._emitCodePoint(t);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case N.AMPERSAND:{this._startCharacterReference();break}case N.LESS_THAN_SIGN:{this.state=w.RCDATA_LESS_THAN_SIGN;break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(Pt);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case N.LESS_THAN_SIGN:{this.state=w.RAWTEXT_LESS_THAN_SIGN;break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(Pt);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case N.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_LESS_THAN_SIGN;break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(Pt);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case N.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(Pt);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Oa(t))this._createStartTagToken(),this.state=w.TAG_NAME,this._stateTagName(t);else switch(t){case N.EXCLAMATION_MARK:{this.state=w.MARKUP_DECLARATION_OPEN;break}case N.SOLIDUS:{this.state=w.END_TAG_OPEN;break}case N.QUESTION_MARK:{this._err(ne.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t);break}case N.EOF:{this._err(ne.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ne.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=w.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Oa(t))this._createEndTagToken(),this.state=w.TAG_NAME,this._stateTagName(t);else switch(t){case N.GREATER_THAN_SIGN:{this._err(ne.missingEndTagName),this.state=w.DATA;break}case N.EOF:{this._err(ne.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(ne.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=w.BEFORE_ATTRIBUTE_NAME;break}case N.SOLIDUS:{this.state=w.SELF_CLOSING_START_TAG;break}case N.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentTagToken();break}case N.NULL:{this._err(ne.unexpectedNullCharacter),r.tagName+=Pt;break}case N.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(gl(t)?vs(t):t)}}_stateRcdataLessThanSign(t){t===N.SOLIDUS?this.state=w.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=w.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Oa(t)?(this.state=w.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=w.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=w.BEFORE_ATTRIBUTE_NAME,!1;case N.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=w.SELF_CLOSING_START_TAG,!1;case N.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=w.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=w.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===N.SOLIDUS?this.state=w.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=w.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Oa(t)?(this.state=w.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=w.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=w.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case N.SOLIDUS:{this.state=w.SCRIPT_DATA_END_TAG_OPEN;break}case N.EXCLAMATION_MARK:{this.state=w.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=w.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Oa(t)?(this.state=w.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=w.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=w.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===N.HYPHEN_MINUS?(this.state=w.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=w.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===N.HYPHEN_MINUS?(this.state=w.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=w.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case N.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(Pt);break}case N.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case N.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_ESCAPED,this._emitChars(Pt);break}case N.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case N.HYPHEN_MINUS:{this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case N.GREATER_THAN_SIGN:{this.state=w.SCRIPT_DATA,this._emitChars(">");break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_ESCAPED,this._emitChars(Pt);break}case N.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===N.SOLIDUS?this.state=w.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Oa(t)?(this._emitChars("<"),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=w.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Oa(t)?(this.state=w.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=w.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=w.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Bn.SCRIPT,!1)&&jg(this.preprocessor.peek(Bn.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Bn.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=w.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case N.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(Pt);break}case N.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case N.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Pt);break}case N.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case N.HYPHEN_MINUS:{this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case N.GREATER_THAN_SIGN:{this.state=w.SCRIPT_DATA,this._emitChars(">");break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Pt);break}case N.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===N.SOLIDUS?(this.state=w.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Bn.SCRIPT,!1)&&jg(this.preprocessor.peek(Bn.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Bn.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=w.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.SOLIDUS:case N.GREATER_THAN_SIGN:case N.EOF:{this.state=w.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case N.EQUALS_SIGN:{this._err(ne.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=w.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=w.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:case N.SOLIDUS:case N.GREATER_THAN_SIGN:case N.EOF:{this._leaveAttrName(),this.state=w.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case N.EQUALS_SIGN:{this._leaveAttrName(),this.state=w.BEFORE_ATTRIBUTE_VALUE;break}case N.QUOTATION_MARK:case N.APOSTROPHE:case N.LESS_THAN_SIGN:{this._err(ne.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this.currentAttr.name+=Pt;break}default:this.currentAttr.name+=String.fromCodePoint(gl(t)?vs(t):t)}}_stateAfterAttributeName(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.SOLIDUS:{this.state=w.SELF_CLOSING_START_TAG;break}case N.EQUALS_SIGN:{this.state=w.BEFORE_ATTRIBUTE_VALUE;break}case N.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentTagToken();break}case N.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=w.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.QUOTATION_MARK:{this.state=w.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this.state=w.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(ne.missingAttributeValue),this.state=w.DATA,this.emitCurrentTagToken();break}default:this.state=w.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case N.QUOTATION_MARK:{this.state=w.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this.currentAttr.value+=Pt;break}case N.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case N.APOSTROPHE:{this.state=w.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this.currentAttr.value+=Pt;break}case N.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this._leaveAttrValue(),this.state=w.BEFORE_ATTRIBUTE_NAME;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=w.DATA,this.emitCurrentTagToken();break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this.currentAttr.value+=Pt;break}case N.QUOTATION_MARK:case N.APOSTROPHE:case N.LESS_THAN_SIGN:case N.EQUALS_SIGN:case N.GRAVE_ACCENT:{this._err(ne.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case N.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this._leaveAttrValue(),this.state=w.BEFORE_ATTRIBUTE_NAME;break}case N.SOLIDUS:{this._leaveAttrValue(),this.state=w.SELF_CLOSING_START_TAG;break}case N.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=w.DATA,this.emitCurrentTagToken();break}case N.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this._err(ne.missingWhitespaceBetweenAttributes),this.state=w.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case N.GREATER_THAN_SIGN:{const r=this.currentToken;r.selfClosing=!0,this.state=w.DATA,this.emitCurrentTagToken();break}case N.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this._err(ne.unexpectedSolidusInTag),this.state=w.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const r=this.currentToken;switch(t){case N.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentComment(r);break}case N.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case N.NULL:{this._err(ne.unexpectedNullCharacter),r.data+=Pt;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Bn.DASH_DASH,!0)?(this._createCommentToken(Bn.DASH_DASH.length+1),this.state=w.COMMENT_START):this._consumeSequenceIfMatch(Bn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Bn.DOCTYPE.length+1),this.state=w.DOCTYPE):this._consumeSequenceIfMatch(Bn.CDATA_START,!0)?this.inForeignNode?this.state=w.CDATA_SECTION:(this._err(ne.cdataInHtmlContent),this._createCommentToken(Bn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=w.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ne.incorrectlyOpenedComment),this._createCommentToken(2),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case N.HYPHEN_MINUS:{this.state=w.COMMENT_START_DASH;break}case N.GREATER_THAN_SIGN:{this._err(ne.abruptClosingOfEmptyComment),this.state=w.DATA;const r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=w.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const r=this.currentToken;switch(t){case N.HYPHEN_MINUS:{this.state=w.COMMENT_END;break}case N.GREATER_THAN_SIGN:{this._err(ne.abruptClosingOfEmptyComment),this.state=w.DATA,this.emitCurrentComment(r);break}case N.EOF:{this._err(ne.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=w.COMMENT,this._stateComment(t)}}_stateComment(t){const r=this.currentToken;switch(t){case N.HYPHEN_MINUS:{this.state=w.COMMENT_END_DASH;break}case N.LESS_THAN_SIGN:{r.data+="<",this.state=w.COMMENT_LESS_THAN_SIGN;break}case N.NULL:{this._err(ne.unexpectedNullCharacter),r.data+=Pt;break}case N.EOF:{this._err(ne.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const r=this.currentToken;switch(t){case N.EXCLAMATION_MARK:{r.data+="!",this.state=w.COMMENT_LESS_THAN_SIGN_BANG;break}case N.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=w.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===N.HYPHEN_MINUS?this.state=w.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=w.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===N.HYPHEN_MINUS?this.state=w.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=w.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==N.GREATER_THAN_SIGN&&t!==N.EOF&&this._err(ne.nestedComment),this.state=w.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const r=this.currentToken;switch(t){case N.HYPHEN_MINUS:{this.state=w.COMMENT_END;break}case N.EOF:{this._err(ne.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=w.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const r=this.currentToken;switch(t){case N.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentComment(r);break}case N.EXCLAMATION_MARK:{this.state=w.COMMENT_END_BANG;break}case N.HYPHEN_MINUS:{r.data+="-";break}case N.EOF:{this._err(ne.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=w.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const r=this.currentToken;switch(t){case N.HYPHEN_MINUS:{r.data+="--!",this.state=w.COMMENT_END_DASH;break}case N.GREATER_THAN_SIGN:{this._err(ne.incorrectlyClosedComment),this.state=w.DATA,this.emitCurrentComment(r);break}case N.EOF:{this._err(ne.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=w.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_NAME;break}case N.GREATER_THAN_SIGN:{this.state=w.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case N.EOF:{this._err(ne.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ne.missingWhitespaceBeforeDoctypeName),this.state=w.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(gl(t))this._createDoctypeToken(String.fromCharCode(vs(t))),this.state=w.DOCTYPE_NAME;else switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.NULL:{this._err(ne.unexpectedNullCharacter),this._createDoctypeToken(Pt),this.state=w.DOCTYPE_NAME;break}case N.GREATER_THAN_SIGN:{this._err(ne.missingDoctypeName),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case N.EOF:{this._err(ne.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=w.DOCTYPE_NAME}}_stateDoctypeName(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=w.AFTER_DOCTYPE_NAME;break}case N.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(r);break}case N.NULL:{this._err(ne.unexpectedNullCharacter),r.name+=Pt;break}case N.EOF:{this._err(ne.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(gl(t)?vs(t):t)}}_stateAfterDoctypeName(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(r);break}case N.EOF:{this._err(ne.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Bn.PUBLIC,!1)?this.state=w.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Bn.SYSTEM,!1)?this.state=w.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ne.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case N.QUOTATION_MARK:{this._err(ne.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this._err(ne.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(ne.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case N.EOF:{this._err(ne.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ne.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.QUOTATION_MARK:{r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(ne.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case N.EOF:{this._err(ne.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ne.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case N.QUOTATION_MARK:{this.state=w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case N.NULL:{this._err(ne.unexpectedNullCharacter),r.publicId+=Pt;break}case N.GREATER_THAN_SIGN:{this._err(ne.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case N.EOF:{this._err(ne.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case N.APOSTROPHE:{this.state=w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case N.NULL:{this._err(ne.unexpectedNullCharacter),r.publicId+=Pt;break}case N.GREATER_THAN_SIGN:{this._err(ne.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case N.EOF:{this._err(ne.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=w.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case N.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(r);break}case N.QUOTATION_MARK:{this._err(ne.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this._err(ne.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.EOF:{this._err(ne.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ne.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=w.DATA;break}case N.QUOTATION_MARK:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.EOF:{this._err(ne.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ne.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case N.QUOTATION_MARK:{this._err(ne.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this._err(ne.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(ne.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case N.EOF:{this._err(ne.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ne.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.QUOTATION_MARK:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(ne.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case N.EOF:{this._err(ne.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ne.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case N.QUOTATION_MARK:{this.state=w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case N.NULL:{this._err(ne.unexpectedNullCharacter),r.systemId+=Pt;break}case N.GREATER_THAN_SIGN:{this._err(ne.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case N.EOF:{this._err(ne.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case N.APOSTROPHE:{this.state=w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case N.NULL:{this._err(ne.unexpectedNullCharacter),r.systemId+=Pt;break}case N.GREATER_THAN_SIGN:{this._err(ne.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case N.EOF:{this._err(ne.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=w.DATA;break}case N.EOF:{this._err(ne.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ne.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const r=this.currentToken;switch(t){case N.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=w.DATA;break}case N.NULL:{this._err(ne.unexpectedNullCharacter);break}case N.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case N.RIGHT_SQUARE_BRACKET:{this.state=w.CDATA_SECTION_BRACKET;break}case N.EOF:{this._err(ne.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===N.RIGHT_SQUARE_BRACKET?this.state=w.CDATA_SECTION_END:(this._emitChars("]"),this.state=w.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case N.GREATER_THAN_SIGN:{this.state=w.DATA;break}case N.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=w.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(N.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&zg(this.preprocessor.peek(1))?w.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){zg(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===N.SEMICOLON&&this._err(ne.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const Vg=new Set([g.DD,g.DT,g.LI,g.OPTGROUP,g.OPTION,g.P,g.RB,g.RP,g.RT,g.RTC]),$g=new Set([...Vg,g.CAPTION,g.COLGROUP,g.TBODY,g.TD,g.TFOOT,g.TH,g.THEAD,g.TR]),Rs=new Set([g.APPLET,g.CAPTION,g.HTML,g.MARQUEE,g.OBJECT,g.TABLE,g.TD,g.TEMPLATE,g.TH]),tv=new Set([...Rs,g.OL,g.UL]),nv=new Set([...Rs,g.BUTTON]),qg=new Set([g.ANNOTATION_XML,g.MI,g.MN,g.MO,g.MS,g.MTEXT]),Gg=new Set([g.DESC,g.FOREIGN_OBJECT,g.TITLE]),rv=new Set([g.TR,g.TEMPLATE,g.HTML]),av=new Set([g.TBODY,g.TFOOT,g.THEAD,g.TEMPLATE,g.HTML]),iv=new Set([g.TABLE,g.TEMPLATE,g.HTML]),uv=new Set([g.TD,g.TH]);class lv{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,i){this.treeAdapter=r,this.handler=i,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=g.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===g.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===pe.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){const i=this._indexOf(t);this.items[i]=r,i===this.stackTop&&(this.current=r)}insertAfter(t,r,i){const l=this._indexOf(t)+1;this.items.splice(l,0,r),this.tagIDs.splice(l,0,i),this.stackTop++,l===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,l===this.stackTop)}popUntilTagNamePopped(t){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==pe.HTML);this.shortenToLength(r<0?0:r)}shortenToLength(t){for(;this.stackTop>=t;){const r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){const r=this._indexOf(t);this.shortenToLength(r<0?0:r)}popUntilPopped(t,r){const i=this._indexOfTagNames(t,r);this.shortenToLength(i<0?0:i)}popUntilNumberedHeaderPopped(){this.popUntilPopped(Nd,pe.HTML)}popUntilTableCellPopped(){this.popUntilPopped(uv,pe.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let i=this.stackTop;i>=0;i--)if(t.has(this.tagIDs[i])&&this.treeAdapter.getNamespaceURI(this.items[i])===r)return i;return-1}clearBackTo(t,r){const i=this._indexOfTagNames(t,r);this.shortenToLength(i+1)}clearBackToTableContext(){this.clearBackTo(iv,pe.HTML)}clearBackToTableBodyContext(){this.clearBackTo(av,pe.HTML)}clearBackToTableRowContext(){this.clearBackTo(rv,pe.HTML)}remove(t){const r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===g.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===g.HTML}hasInDynamicScope(t,r){for(let i=this.stackTop;i>=0;i--){const l=this.tagIDs[i];switch(this.treeAdapter.getNamespaceURI(this.items[i])){case pe.HTML:{if(l===t)return!0;if(r.has(l))return!1;break}case pe.SVG:{if(Gg.has(l))return!1;break}case pe.MATHML:{if(qg.has(l))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Rs)}hasInListItemScope(t){return this.hasInDynamicScope(t,tv)}hasInButtonScope(t){return this.hasInDynamicScope(t,nv)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case pe.HTML:{if(Nd.has(r))return!0;if(Rs.has(r))return!1;break}case pe.SVG:{if(Gg.has(r))return!1;break}case pe.MATHML:{if(qg.has(r))return!1;break}}}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===pe.HTML)switch(this.tagIDs[r]){case t:return!0;case g.TABLE:case g.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===pe.HTML)switch(this.tagIDs[t]){case g.TBODY:case g.THEAD:case g.TFOOT:return!0;case g.TABLE:case g.HTML:return!1}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===pe.HTML)switch(this.tagIDs[r]){case t:return!0;case g.OPTION:case g.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;Vg.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;$g.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&$g.has(this.currentTagId);)this.pop()}}const kd=3;var zr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(zr||(zr={}));const Xg={type:zr.Marker};class ov{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){const i=[],l=r.length,s=this.treeAdapter.getTagName(t),c=this.treeAdapter.getNamespaceURI(t);for(let d=0;d<this.entries.length;d++){const p=this.entries[d];if(p.type===zr.Marker)break;const{element:m}=p;if(this.treeAdapter.getTagName(m)===s&&this.treeAdapter.getNamespaceURI(m)===c){const b=this.treeAdapter.getAttrList(m);b.length===l&&i.push({idx:d,attrs:b})}}return i}_ensureNoahArkCondition(t){if(this.entries.length<kd)return;const r=this.treeAdapter.getAttrList(t),i=this._getNoahArkConditionCandidates(t,r);if(i.length<kd)return;const l=new Map(r.map(c=>[c.name,c.value]));let s=0;for(let c=0;c<i.length;c++){const d=i[c];d.attrs.every(p=>l.get(p.name)===p.value)&&(s+=1,s>=kd&&this.entries.splice(d.idx,1))}}insertMarker(){this.entries.unshift(Xg)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:zr.Element,element:t,token:r})}insertElementAfterBookmark(t,r){const i=this.entries.indexOf(this.bookmark);this.entries.splice(i,0,{type:zr.Element,element:t,token:r})}removeEntry(t){const r=this.entries.indexOf(t);r>=0&&this.entries.splice(r,1)}clearToLastMarker(){const t=this.entries.indexOf(Xg);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const r=this.entries.find(i=>i.type===zr.Marker||this.treeAdapter.getTagName(i.element)===t);return r&&r.type===zr.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===zr.Element&&r.element===t)}}const Na={createDocument(){return{nodeName:"#document",mode:cr.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){const i=e.childNodes.indexOf(r);e.childNodes.splice(i,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,i){const l=e.childNodes.find(s=>s.nodeName==="#documentType");if(l)l.name=t,l.publicId=r,l.systemId=i;else{const s={nodeName:"#documentType",name:t,publicId:r,systemId:i,parentNode:null};Na.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const r=e.childNodes[e.childNodes.length-1];if(Na.isTextNode(r)){r.value+=t;return}}Na.appendChild(e,Na.createTextNode(t))},insertTextBefore(e,t,r){const i=e.childNodes[e.childNodes.indexOf(r)-1];i&&Na.isTextNode(i)?i.value+=t:Na.insertBefore(e,Na.createTextNode(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map(i=>i.name));for(let i=0;i<t.length;i++)r.has(t[i].name)||e.attrs.push(t[i])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Qg="html",sv="about:legacy-compat",cv="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Kg=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],fv=[...Kg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],dv=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Wg=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],hv=[...Wg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Zg(e,t){return t.some(r=>e.startsWith(r))}function pv(e){return e.name===Qg&&e.publicId===null&&(e.systemId===null||e.systemId===sv)}function mv(e){if(e.name!==Qg)return cr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===cv)return cr.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),dv.has(r))return cr.QUIRKS;let i=t===null?fv:Kg;if(Zg(r,i))return cr.QUIRKS;if(i=t===null?Wg:hv,Zg(r,i))return cr.LIMITED_QUIRKS}return cr.NO_QUIRKS}const Jg={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},gv="definitionurl",bv="definitionURL",Ev=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),yv=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:pe.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:pe.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:pe.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:pe.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:pe.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:pe.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:pe.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:pe.XML}],["xml:space",{prefix:"xml",name:"space",namespace:pe.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:pe.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:pe.XMLNS}]]),Tv=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Sv=new Set([g.B,g.BIG,g.BLOCKQUOTE,g.BODY,g.BR,g.CENTER,g.CODE,g.DD,g.DIV,g.DL,g.DT,g.EM,g.EMBED,g.H1,g.H2,g.H3,g.H4,g.H5,g.H6,g.HEAD,g.HR,g.I,g.IMG,g.LI,g.LISTING,g.MENU,g.META,g.NOBR,g.OL,g.P,g.PRE,g.RUBY,g.S,g.SMALL,g.SPAN,g.STRONG,g.STRIKE,g.SUB,g.SUP,g.TABLE,g.TT,g.U,g.UL,g.VAR]);function Cv(e){const t=e.tagID;return t===g.FONT&&e.attrs.some(({name:i})=>i===si.COLOR||i===si.SIZE||i===si.FACE)||Sv.has(t)}function eb(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===gv){e.attrs[t].name=bv;break}}function tb(e){for(let t=0;t<e.attrs.length;t++){const r=Ev.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function Dd(e){for(let t=0;t<e.attrs.length;t++){const r=yv.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}function Av(e){const t=Tv.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=nu(e.tagName))}function xv(e,t){return t===pe.MATHML&&(e===g.MI||e===g.MO||e===g.MN||e===g.MS||e===g.MTEXT)}function _v(e,t,r){if(t===pe.MATHML&&e===g.ANNOTATION_XML){for(let i=0;i<r.length;i++)if(r[i].name===si.ENCODING){const l=r[i].value.toLowerCase();return l===Jg.TEXT_HTML||l===Jg.APPLICATION_XML}}return t===pe.SVG&&(e===g.FOREIGN_OBJECT||e===g.DESC||e===g.TITLE)}function vv(e,t,r,i){return(!i||i===pe.HTML)&&_v(e,t,r)||(!i||i===pe.MATHML)&&xv(e,t)}const Rv="hidden",Ov=8,Nv=3;var U;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(U||(U={}));const kv={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},nb=new Set([g.TABLE,g.TBODY,g.TFOOT,g.THEAD,g.TR]),rb={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Na,onParseError:null};class ab{constructor(t,r,i=null,l=null){this.fragmentContext=i,this.scriptHandler=l,this.currentToken=null,this.stopped=!1,this.insertionMode=U.INITIAL,this.originalInsertionMode=U.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...rb,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r??this.treeAdapter.createDocument(),this.tokenizer=new ev(this.options,this),this.activeFormattingElements=new ov(this.treeAdapter),this.fragmentContextID=i?nu(this.treeAdapter.getTagName(i)):g.UNKNOWN,this._setContextModes(i??this.document,this.fragmentContextID),this.openElements=new lv(this.document,this.treeAdapter,this)}static parse(t,r){const i=new this(r);return i.tokenizer.write(t,!0),i.document}static getFragmentParser(t,r){const i={...rb,...r};t??(t=i.treeAdapter.createElement(q.TEMPLATE,pe.HTML,[]));const l=i.treeAdapter.createElement("documentmock",pe.HTML,[]),s=new this(i,l,t);return s.fragmentContextID===g.TEMPLATE&&s.tmplInsertionModeStack.unshift(U.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,r),r}_err(t,r,i){var l;if(!this.onParseError)return;const s=(l=t.location)!==null&&l!==void 0?l:kv,c={code:r,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:i?s.startLine:s.endLine,endCol:i?s.startCol:s.endCol,endOffset:i?s.startOffset:s.endOffset};this.onParseError(c)}onItemPush(t,r,i){var l,s;(s=(l=this.treeAdapter).onItemPush)===null||s===void 0||s.call(l,t),i&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var i,l;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(l=(i=this.treeAdapter).onItemPop)===null||l===void 0||l.call(i,t,this.openElements.current),r){let s,c;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,c=this.fragmentContextID):{current:s,currentTagId:c}=this.openElements,this._setContextModes(s,c)}}_setContextModes(t,r){const i=t===this.document||this.treeAdapter.getNamespaceURI(t)===pe.HTML;this.currentNotInHTML=!i,this.tokenizer.inForeignNode=!i&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,pe.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=U.TEXT}switchToPlaintextParsing(){this.insertionMode=U.TEXT,this.originalInsertionMode=U.IN_BODY,this.tokenizer.state=Qt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===q.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==pe.HTML))switch(this.fragmentContextID){case g.TITLE:case g.TEXTAREA:{this.tokenizer.state=Qt.RCDATA;break}case g.STYLE:case g.XMP:case g.IFRAME:case g.NOEMBED:case g.NOFRAMES:case g.NOSCRIPT:{this.tokenizer.state=Qt.RAWTEXT;break}case g.SCRIPT:{this.tokenizer.state=Qt.SCRIPT_DATA;break}case g.PLAINTEXT:{this.tokenizer.state=Qt.PLAINTEXT;break}}}_setDocumentType(t){const r=t.name||"",i=t.publicId||"",l=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,i,l),t.location){const c=this.treeAdapter.getChildNodes(this.document).find(d=>this.treeAdapter.isDocumentTypeNode(d));c&&this.treeAdapter.setNodeSourceCodeLocation(c,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){const i=r&&{...r,startTag:r};this.treeAdapter.setNodeSourceCodeLocation(t,i)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const i=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(i,t)}}_appendElement(t,r){const i=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(i,t.location)}_insertElement(t,r){const i=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(i,t.location),this.openElements.push(i,t.tagID)}_insertFakeElement(t,r){const i=this.treeAdapter.createElement(t,pe.HTML,[]);this._attachElementToTree(i,null),this.openElements.push(i,r)}_insertTemplate(t){const r=this.treeAdapter.createElement(t.tagName,pe.HTML,t.attrs),i=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,i),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(q.HTML,pe.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,g.HTML)}_appendCommentNode(t,r){const i=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,i),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_insertCharacters(t){let r,i;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:i}=this._findFosterParentingLocation(),i?this.treeAdapter.insertTextBefore(r,t.chars,i):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;const l=this.treeAdapter.getChildNodes(r),s=i?l.lastIndexOf(i):l.length,c=l[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(c)){const{endLine:p,endCol:m,endOffset:b}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(c,{endLine:p,endCol:m,endOffset:b})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(c,t.location)}_adoptNodes(t,r){for(let i=this.treeAdapter.getFirstChild(t);i;i=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(i),this.treeAdapter.appendChild(r,i)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){const i=r.location,l=this.treeAdapter.getTagName(t),s=r.type===at.END_TAG&&l===r.tagName?{endTag:{...i},endLine:i.endLine,endCol:i.endCol,endOffset:i.endOffset}:{endLine:i.startLine,endCol:i.startCol,endOffset:i.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,i;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,i=this.fragmentContextID):{current:r,currentTagId:i}=this.openElements,t.tagID===g.SVG&&this.treeAdapter.getTagName(r)===q.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===pe.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===g.MGLYPH||t.tagID===g.MALIGNMARK)&&!this._isIntegrationPoint(i,r,pe.HTML)}_processToken(t){switch(t.type){case at.CHARACTER:{this.onCharacter(t);break}case at.NULL_CHARACTER:{this.onNullCharacter(t);break}case at.COMMENT:{this.onComment(t);break}case at.DOCTYPE:{this.onDoctype(t);break}case at.START_TAG:{this._processStartTag(t);break}case at.END_TAG:{this.onEndTag(t);break}case at.EOF:{this.onEof(t);break}case at.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,i){const l=this.treeAdapter.getNamespaceURI(r),s=this.treeAdapter.getAttrList(r);return vv(t,l,s,i)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const r=this.activeFormattingElements.entries.findIndex(l=>l.type===zr.Marker||this.openElements.contains(l.element)),i=r<0?t-1:r-1;for(let l=i;l>=0;l--){const s=this.activeFormattingElements.entries[l];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=U.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(g.P),this.openElements.popUntilTagNamePopped(g.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case g.TR:{this.insertionMode=U.IN_ROW;return}case g.TBODY:case g.THEAD:case g.TFOOT:{this.insertionMode=U.IN_TABLE_BODY;return}case g.CAPTION:{this.insertionMode=U.IN_CAPTION;return}case g.COLGROUP:{this.insertionMode=U.IN_COLUMN_GROUP;return}case g.TABLE:{this.insertionMode=U.IN_TABLE;return}case g.BODY:{this.insertionMode=U.IN_BODY;return}case g.FRAMESET:{this.insertionMode=U.IN_FRAMESET;return}case g.SELECT:{this._resetInsertionModeForSelect(t);return}case g.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case g.HTML:{this.insertionMode=this.headElement?U.AFTER_HEAD:U.BEFORE_HEAD;return}case g.TD:case g.TH:{if(t>0){this.insertionMode=U.IN_CELL;return}break}case g.HEAD:{if(t>0){this.insertionMode=U.IN_HEAD;return}break}}this.insertionMode=U.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){const i=this.openElements.tagIDs[r];if(i===g.TEMPLATE)break;if(i===g.TABLE){this.insertionMode=U.IN_SELECT_IN_TABLE;return}}this.insertionMode=U.IN_SELECT}_isElementCausesFosterParenting(t){return nb.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case g.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===pe.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case g.TABLE:{const i=this.treeAdapter.getParentNode(r);return i?{parent:i,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){const i=this.treeAdapter.getNamespaceURI(t);return K_[i].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){u8(this,t);return}switch(this.insertionMode){case U.INITIAL:{bl(this,t);break}case U.BEFORE_HTML:{El(this,t);break}case U.BEFORE_HEAD:{yl(this,t);break}case U.IN_HEAD:{Tl(this,t);break}case U.IN_HEAD_NO_SCRIPT:{Sl(this,t);break}case U.AFTER_HEAD:{Cl(this,t);break}case U.IN_BODY:case U.IN_CAPTION:case U.IN_CELL:case U.IN_TEMPLATE:{ub(this,t);break}case U.TEXT:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Md(this,t);break}case U.IN_TABLE_TEXT:{pb(this,t);break}case U.IN_COLUMN_GROUP:{ks(this,t);break}case U.AFTER_BODY:{Is(this,t);break}case U.AFTER_AFTER_BODY:{ws(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){i8(this,t);return}switch(this.insertionMode){case U.INITIAL:{bl(this,t);break}case U.BEFORE_HTML:{El(this,t);break}case U.BEFORE_HEAD:{yl(this,t);break}case U.IN_HEAD:{Tl(this,t);break}case U.IN_HEAD_NO_SCRIPT:{Sl(this,t);break}case U.AFTER_HEAD:{Cl(this,t);break}case U.TEXT:{this._insertCharacters(t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Md(this,t);break}case U.IN_COLUMN_GROUP:{ks(this,t);break}case U.AFTER_BODY:{Is(this,t);break}case U.AFTER_AFTER_BODY:{ws(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Id(this,t);return}switch(this.insertionMode){case U.INITIAL:case U.BEFORE_HTML:case U.BEFORE_HEAD:case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:case U.IN_BODY:case U.IN_TABLE:case U.IN_CAPTION:case U.IN_COLUMN_GROUP:case U.IN_TABLE_BODY:case U.IN_ROW:case U.IN_CELL:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:case U.IN_TEMPLATE:case U.IN_FRAMESET:case U.AFTER_FRAMESET:{Id(this,t);break}case U.IN_TABLE_TEXT:{_l(this,t);break}case U.AFTER_BODY:{Pv(this,t);break}case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{Uv(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case U.INITIAL:{Hv(this,t);break}case U.BEFORE_HEAD:case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:{this._err(t,ne.misplacedDoctype);break}case U.IN_TABLE_TEXT:{_l(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,ne.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?l8(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{bl(this,t);break}case U.BEFORE_HTML:{Fv(this,t);break}case U.BEFORE_HEAD:{Yv(this,t);break}case U.IN_HEAD:{kr(this,t);break}case U.IN_HEAD_NO_SCRIPT:{$v(this,t);break}case U.AFTER_HEAD:{Gv(this,t);break}case U.IN_BODY:{xn(this,t);break}case U.IN_TABLE:{ru(this,t);break}case U.IN_TABLE_TEXT:{_l(this,t);break}case U.IN_CAPTION:{j5(this,t);break}case U.IN_COLUMN_GROUP:{Bd(this,t);break}case U.IN_TABLE_BODY:{Ds(this,t);break}case U.IN_ROW:{Ls(this,t);break}case U.IN_CELL:{q5(this,t);break}case U.IN_SELECT:{bb(this,t);break}case U.IN_SELECT_IN_TABLE:{X5(this,t);break}case U.IN_TEMPLATE:{K5(this,t);break}case U.AFTER_BODY:{Z5(this,t);break}case U.IN_FRAMESET:{J5(this,t);break}case U.AFTER_FRAMESET:{t8(this,t);break}case U.AFTER_AFTER_BODY:{r8(this,t);break}case U.AFTER_AFTER_FRAMESET:{a8(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?o8(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{bl(this,t);break}case U.BEFORE_HTML:{zv(this,t);break}case U.BEFORE_HEAD:{jv(this,t);break}case U.IN_HEAD:{Vv(this,t);break}case U.IN_HEAD_NO_SCRIPT:{qv(this,t);break}case U.AFTER_HEAD:{Xv(this,t);break}case U.IN_BODY:{Ns(this,t);break}case U.TEXT:{I5(this,t);break}case U.IN_TABLE:{Al(this,t);break}case U.IN_TABLE_TEXT:{_l(this,t);break}case U.IN_CAPTION:{V5(this,t);break}case U.IN_COLUMN_GROUP:{$5(this,t);break}case U.IN_TABLE_BODY:{Pd(this,t);break}case U.IN_ROW:{gb(this,t);break}case U.IN_CELL:{G5(this,t);break}case U.IN_SELECT:{Eb(this,t);break}case U.IN_SELECT_IN_TABLE:{Q5(this,t);break}case U.IN_TEMPLATE:{W5(this,t);break}case U.AFTER_BODY:{Tb(this,t);break}case U.IN_FRAMESET:{e8(this,t);break}case U.AFTER_FRAMESET:{n8(this,t);break}case U.AFTER_AFTER_BODY:{ws(this,t);break}}}onEof(t){switch(this.insertionMode){case U.INITIAL:{bl(this,t);break}case U.BEFORE_HTML:{El(this,t);break}case U.BEFORE_HEAD:{yl(this,t);break}case U.IN_HEAD:{Tl(this,t);break}case U.IN_HEAD_NO_SCRIPT:{Sl(this,t);break}case U.AFTER_HEAD:{Cl(this,t);break}case U.IN_BODY:case U.IN_TABLE:case U.IN_CAPTION:case U.IN_COLUMN_GROUP:case U.IN_TABLE_BODY:case U.IN_ROW:case U.IN_CELL:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:{db(this,t);break}case U.TEXT:{w5(this,t);break}case U.IN_TABLE_TEXT:{_l(this,t);break}case U.IN_TEMPLATE:{yb(this,t);break}case U.AFTER_BODY:case U.IN_FRAMESET:case U.AFTER_FRAMESET:case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{wd(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===N.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:case U.TEXT:case U.IN_COLUMN_GROUP:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:case U.IN_FRAMESET:case U.AFTER_FRAMESET:{this._insertCharacters(t);break}case U.IN_BODY:case U.IN_CAPTION:case U.IN_CELL:case U.IN_TEMPLATE:case U.AFTER_BODY:case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{ib(this,t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Md(this,t);break}case U.IN_TABLE_TEXT:{hb(this,t);break}}}}function Dv(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):fb(e,t),r}function Lv(e,t){let r=null,i=e.openElements.stackTop;for(;i>=0;i--){const l=e.openElements.items[i];if(l===t.element)break;e._isSpecialElement(l,e.openElements.tagIDs[i])&&(r=l)}return r||(e.openElements.shortenToLength(i<0?0:i),e.activeFormattingElements.removeEntry(t)),r}function Iv(e,t,r){let i=t,l=e.openElements.getCommonAncestor(t);for(let s=0,c=l;c!==r;s++,c=l){l=e.openElements.getCommonAncestor(c);const d=e.activeFormattingElements.getElementEntry(c),p=d&&s>=Nv;!d||p?(p&&e.activeFormattingElements.removeEntry(d),e.openElements.remove(c)):(c=wv(e,d),i===t&&(e.activeFormattingElements.bookmark=d),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(c,i),i=c)}return i}function wv(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),i=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,i),t.element=i,i}function Mv(e,t,r){const i=e.treeAdapter.getTagName(t),l=nu(i);if(e._isElementCausesFosterParenting(l))e._fosterParentElement(r);else{const s=e.treeAdapter.getNamespaceURI(t);l===g.TEMPLATE&&s===pe.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function Bv(e,t,r){const i=e.treeAdapter.getNamespaceURI(r.element),{token:l}=r,s=e.treeAdapter.createElement(l.tagName,i,l.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,l),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,s,l.tagID)}function Ld(e,t){for(let r=0;r<Ov;r++){const i=Dv(e,t);if(!i)break;const l=Lv(e,i);if(!l)break;e.activeFormattingElements.bookmark=i;const s=Iv(e,l,i.element),c=e.openElements.getCommonAncestor(i.element);e.treeAdapter.detachNode(s),c&&Mv(e,c,s),Bv(e,l,i)}}function Id(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Pv(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Uv(e,t){e._appendCommentNode(t,e.document)}function wd(e,t){if(e.stopped=!0,t.location){const r=e.fragmentContext?0:2;for(let i=e.openElements.stackTop;i>=r;i--)e._setEndLocation(e.openElements.items[i],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const i=e.openElements.items[0],l=e.treeAdapter.getNodeSourceCodeLocation(i);if(l&&!l.endTag&&(e._setEndLocation(i,t),e.openElements.stackTop>=1)){const s=e.openElements.items[1],c=e.treeAdapter.getNodeSourceCodeLocation(s);c&&!c.endTag&&e._setEndLocation(s,t)}}}}function Hv(e,t){e._setDocumentType(t);const r=t.forceQuirks?cr.QUIRKS:mv(t);pv(t)||e._err(t,ne.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=U.BEFORE_HTML}function bl(e,t){e._err(t,ne.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,cr.QUIRKS),e.insertionMode=U.BEFORE_HTML,e._processToken(t)}function Fv(e,t){t.tagID===g.HTML?(e._insertElement(t,pe.HTML),e.insertionMode=U.BEFORE_HEAD):El(e,t)}function zv(e,t){const r=t.tagID;(r===g.HTML||r===g.HEAD||r===g.BODY||r===g.BR)&&El(e,t)}function El(e,t){e._insertFakeRootElement(),e.insertionMode=U.BEFORE_HEAD,e._processToken(t)}function Yv(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.HEAD:{e._insertElement(t,pe.HTML),e.headElement=e.openElements.current,e.insertionMode=U.IN_HEAD;break}default:yl(e,t)}}function jv(e,t){const r=t.tagID;r===g.HEAD||r===g.BODY||r===g.HTML||r===g.BR?yl(e,t):e._err(t,ne.endTagWithoutMatchingOpenElement)}function yl(e,t){e._insertFakeElement(q.HEAD,g.HEAD),e.headElement=e.openElements.current,e.insertionMode=U.IN_HEAD,e._processToken(t)}function kr(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:{e._appendElement(t,pe.HTML),t.ackSelfClosing=!0;break}case g.TITLE:{e._switchToTextParsing(t,Qt.RCDATA);break}case g.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Qt.RAWTEXT):(e._insertElement(t,pe.HTML),e.insertionMode=U.IN_HEAD_NO_SCRIPT);break}case g.NOFRAMES:case g.STYLE:{e._switchToTextParsing(t,Qt.RAWTEXT);break}case g.SCRIPT:{e._switchToTextParsing(t,Qt.SCRIPT_DATA);break}case g.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=U.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(U.IN_TEMPLATE);break}case g.HEAD:{e._err(t,ne.misplacedStartTagForHeadElement);break}default:Tl(e,t)}}function Vv(e,t){switch(t.tagID){case g.HEAD:{e.openElements.pop(),e.insertionMode=U.AFTER_HEAD;break}case g.BODY:case g.BR:case g.HTML:{Tl(e,t);break}case g.TEMPLATE:{ci(e,t);break}default:e._err(t,ne.endTagWithoutMatchingOpenElement)}}function ci(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==g.TEMPLATE&&e._err(t,ne.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ne.endTagWithoutMatchingOpenElement)}function Tl(e,t){e.openElements.pop(),e.insertionMode=U.AFTER_HEAD,e._processToken(t)}function $v(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.BASEFONT:case g.BGSOUND:case g.HEAD:case g.LINK:case g.META:case g.NOFRAMES:case g.STYLE:{kr(e,t);break}case g.NOSCRIPT:{e._err(t,ne.nestedNoscriptInHead);break}default:Sl(e,t)}}function qv(e,t){switch(t.tagID){case g.NOSCRIPT:{e.openElements.pop(),e.insertionMode=U.IN_HEAD;break}case g.BR:{Sl(e,t);break}default:e._err(t,ne.endTagWithoutMatchingOpenElement)}}function Sl(e,t){const r=t.type===at.EOF?ne.openElementsLeftAfterEof:ne.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=U.IN_HEAD,e._processToken(t)}function Gv(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.BODY:{e._insertElement(t,pe.HTML),e.framesetOk=!1,e.insertionMode=U.IN_BODY;break}case g.FRAMESET:{e._insertElement(t,pe.HTML),e.insertionMode=U.IN_FRAMESET;break}case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:case g.NOFRAMES:case g.SCRIPT:case g.STYLE:case g.TEMPLATE:case g.TITLE:{e._err(t,ne.abandonedHeadElementChild),e.openElements.push(e.headElement,g.HEAD),kr(e,t),e.openElements.remove(e.headElement);break}case g.HEAD:{e._err(t,ne.misplacedStartTagForHeadElement);break}default:Cl(e,t)}}function Xv(e,t){switch(t.tagID){case g.BODY:case g.HTML:case g.BR:{Cl(e,t);break}case g.TEMPLATE:{ci(e,t);break}default:e._err(t,ne.endTagWithoutMatchingOpenElement)}}function Cl(e,t){e._insertFakeElement(q.BODY,g.BODY),e.insertionMode=U.IN_BODY,Os(e,t)}function Os(e,t){switch(t.type){case at.CHARACTER:{ub(e,t);break}case at.WHITESPACE_CHARACTER:{ib(e,t);break}case at.COMMENT:{Id(e,t);break}case at.START_TAG:{xn(e,t);break}case at.END_TAG:{Ns(e,t);break}case at.EOF:{db(e,t);break}}}function ib(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function ub(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Qv(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Kv(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function Wv(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,pe.HTML),e.insertionMode=U.IN_FRAMESET)}function Zv(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,pe.HTML)}function Jv(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),Nd.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,pe.HTML)}function e5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,pe.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function t5(e,t){const r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,pe.HTML),r||(e.formElement=e.openElements.current))}function n5(e,t){e.framesetOk=!1;const r=t.tagID;for(let i=e.openElements.stackTop;i>=0;i--){const l=e.openElements.tagIDs[i];if(r===g.LI&&l===g.LI||(r===g.DD||r===g.DT)&&(l===g.DD||l===g.DT)){e.openElements.generateImpliedEndTagsWithExclusion(l),e.openElements.popUntilTagNamePopped(l);break}if(l!==g.ADDRESS&&l!==g.DIV&&l!==g.P&&e._isSpecialElement(e.openElements.items[i],l))break}e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,pe.HTML)}function r5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,pe.HTML),e.tokenizer.state=Qt.PLAINTEXT}function a5(e,t){e.openElements.hasInScope(g.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML),e.framesetOk=!1}function i5(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(q.A);r&&(Ld(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function u5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function l5(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(g.NOBR)&&(Ld(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function o5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function s5(e,t){e.treeAdapter.getDocumentMode(e.document)!==cr.QUIRKS&&e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,pe.HTML),e.framesetOk=!1,e.insertionMode=U.IN_TABLE}function lb(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,pe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ob(e){const t=Pg(e,si.TYPE);return t!=null&&t.toLowerCase()===Rv}function c5(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,pe.HTML),ob(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function f5(e,t){e._appendElement(t,pe.HTML),t.ackSelfClosing=!0}function d5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._appendElement(t,pe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function h5(e,t){t.tagName=q.IMG,t.tagID=g.IMG,lb(e,t)}function p5(e,t){e._insertElement(t,pe.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Qt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=U.TEXT}function m5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Qt.RAWTEXT)}function g5(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Qt.RAWTEXT)}function sb(e,t){e._switchToTextParsing(t,Qt.RAWTEXT)}function b5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===U.IN_TABLE||e.insertionMode===U.IN_CAPTION||e.insertionMode===U.IN_TABLE_BODY||e.insertionMode===U.IN_ROW||e.insertionMode===U.IN_CELL?U.IN_SELECT_IN_TABLE:U.IN_SELECT}function E5(e,t){e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML)}function y5(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,pe.HTML)}function T5(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(g.RTC),e._insertElement(t,pe.HTML)}function S5(e,t){e._reconstructActiveFormattingElements(),eb(t),Dd(t),t.selfClosing?e._appendElement(t,pe.MATHML):e._insertElement(t,pe.MATHML),t.ackSelfClosing=!0}function C5(e,t){e._reconstructActiveFormattingElements(),tb(t),Dd(t),t.selfClosing?e._appendElement(t,pe.SVG):e._insertElement(t,pe.SVG),t.ackSelfClosing=!0}function cb(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML)}function xn(e,t){switch(t.tagID){case g.I:case g.S:case g.B:case g.U:case g.EM:case g.TT:case g.BIG:case g.CODE:case g.FONT:case g.SMALL:case g.STRIKE:case g.STRONG:{u5(e,t);break}case g.A:{i5(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{Jv(e,t);break}case g.P:case g.DL:case g.OL:case g.UL:case g.DIV:case g.DIR:case g.NAV:case g.MAIN:case g.MENU:case g.ASIDE:case g.CENTER:case g.FIGURE:case g.FOOTER:case g.HEADER:case g.HGROUP:case g.DIALOG:case g.DETAILS:case g.ADDRESS:case g.ARTICLE:case g.SEARCH:case g.SECTION:case g.SUMMARY:case g.FIELDSET:case g.BLOCKQUOTE:case g.FIGCAPTION:{Zv(e,t);break}case g.LI:case g.DD:case g.DT:{n5(e,t);break}case g.BR:case g.IMG:case g.WBR:case g.AREA:case g.EMBED:case g.KEYGEN:{lb(e,t);break}case g.HR:{d5(e,t);break}case g.RB:case g.RTC:{y5(e,t);break}case g.RT:case g.RP:{T5(e,t);break}case g.PRE:case g.LISTING:{e5(e,t);break}case g.XMP:{m5(e,t);break}case g.SVG:{C5(e,t);break}case g.HTML:{Qv(e,t);break}case g.BASE:case g.LINK:case g.META:case g.STYLE:case g.TITLE:case g.SCRIPT:case g.BGSOUND:case g.BASEFONT:case g.TEMPLATE:{kr(e,t);break}case g.BODY:{Kv(e,t);break}case g.FORM:{t5(e,t);break}case g.NOBR:{l5(e,t);break}case g.MATH:{S5(e,t);break}case g.TABLE:{s5(e,t);break}case g.INPUT:{c5(e,t);break}case g.PARAM:case g.TRACK:case g.SOURCE:{f5(e,t);break}case g.IMAGE:{h5(e,t);break}case g.BUTTON:{a5(e,t);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{o5(e,t);break}case g.IFRAME:{g5(e,t);break}case g.SELECT:{b5(e,t);break}case g.OPTION:case g.OPTGROUP:{E5(e,t);break}case g.NOEMBED:case g.NOFRAMES:{sb(e,t);break}case g.FRAMESET:{Wv(e,t);break}case g.TEXTAREA:{p5(e,t);break}case g.NOSCRIPT:{e.options.scriptingEnabled?sb(e,t):cb(e,t);break}case g.PLAINTEXT:{r5(e,t);break}case g.COL:case g.TH:case g.TD:case g.TR:case g.HEAD:case g.FRAME:case g.TBODY:case g.TFOOT:case g.THEAD:case g.CAPTION:case g.COLGROUP:break;default:cb(e,t)}}function A5(e,t){if(e.openElements.hasInScope(g.BODY)&&(e.insertionMode=U.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function x5(e,t){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=U.AFTER_BODY,Tb(e,t))}function _5(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function v5(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(g.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(g.FORM):r&&e.openElements.remove(r))}function R5(e){e.openElements.hasInButtonScope(g.P)||e._insertFakeElement(q.P,g.P),e._closePElement()}function O5(e){e.openElements.hasInListItemScope(g.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(g.LI),e.openElements.popUntilTagNamePopped(g.LI))}function N5(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function k5(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function D5(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function L5(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(q.BR,g.BR),e.openElements.pop(),e.framesetOk=!1}function fb(e,t){const r=t.tagName,i=t.tagID;for(let l=e.openElements.stackTop;l>0;l--){const s=e.openElements.items[l],c=e.openElements.tagIDs[l];if(i===c&&(i!==g.UNKNOWN||e.treeAdapter.getTagName(s)===r)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.stackTop>=l&&e.openElements.shortenToLength(l);break}if(e._isSpecialElement(s,c))break}}function Ns(e,t){switch(t.tagID){case g.A:case g.B:case g.I:case g.S:case g.U:case g.EM:case g.TT:case g.BIG:case g.CODE:case g.FONT:case g.NOBR:case g.SMALL:case g.STRIKE:case g.STRONG:{Ld(e,t);break}case g.P:{R5(e);break}case g.DL:case g.UL:case g.OL:case g.DIR:case g.DIV:case g.NAV:case g.PRE:case g.MAIN:case g.MENU:case g.ASIDE:case g.BUTTON:case g.CENTER:case g.FIGURE:case g.FOOTER:case g.HEADER:case g.HGROUP:case g.DIALOG:case g.ADDRESS:case g.ARTICLE:case g.DETAILS:case g.SEARCH:case g.SECTION:case g.SUMMARY:case g.LISTING:case g.FIELDSET:case g.BLOCKQUOTE:case g.FIGCAPTION:{_5(e,t);break}case g.LI:{O5(e);break}case g.DD:case g.DT:{N5(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{k5(e);break}case g.BR:{L5(e);break}case g.BODY:{A5(e,t);break}case g.HTML:{x5(e,t);break}case g.FORM:{v5(e);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{D5(e,t);break}case g.TEMPLATE:{ci(e,t);break}default:fb(e,t)}}function db(e,t){e.tmplInsertionModeStack.length>0?yb(e,t):wd(e,t)}function I5(e,t){var r;t.tagID===g.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function w5(e,t){e._err(t,ne.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Md(e,t){if(nb.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=U.IN_TABLE_TEXT,t.type){case at.CHARACTER:{pb(e,t);break}case at.WHITESPACE_CHARACTER:{hb(e,t);break}}else xl(e,t)}function M5(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,pe.HTML),e.insertionMode=U.IN_CAPTION}function B5(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,pe.HTML),e.insertionMode=U.IN_COLUMN_GROUP}function P5(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(q.COLGROUP,g.COLGROUP),e.insertionMode=U.IN_COLUMN_GROUP,Bd(e,t)}function U5(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,pe.HTML),e.insertionMode=U.IN_TABLE_BODY}function H5(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(q.TBODY,g.TBODY),e.insertionMode=U.IN_TABLE_BODY,Ds(e,t)}function F5(e,t){e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function z5(e,t){ob(t)?e._appendElement(t,pe.HTML):xl(e,t),t.ackSelfClosing=!0}function Y5(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,pe.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function ru(e,t){switch(t.tagID){case g.TD:case g.TH:case g.TR:{H5(e,t);break}case g.STYLE:case g.SCRIPT:case g.TEMPLATE:{kr(e,t);break}case g.COL:{P5(e,t);break}case g.FORM:{Y5(e,t);break}case g.TABLE:{F5(e,t);break}case g.TBODY:case g.TFOOT:case g.THEAD:{U5(e,t);break}case g.INPUT:{z5(e,t);break}case g.CAPTION:{M5(e,t);break}case g.COLGROUP:{B5(e,t);break}default:xl(e,t)}}function Al(e,t){switch(t.tagID){case g.TABLE:{e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode());break}case g.TEMPLATE:{ci(e,t);break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TBODY:case g.TD:case g.TFOOT:case g.TH:case g.THEAD:case g.TR:break;default:xl(e,t)}}function xl(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Os(e,t),e.fosterParentingEnabled=r}function hb(e,t){e.pendingCharacterTokens.push(t)}function pb(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function _l(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)xl(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const mb=new Set([g.CAPTION,g.COL,g.COLGROUP,g.TBODY,g.TD,g.TFOOT,g.TH,g.THEAD,g.TR]);function j5(e,t){const r=t.tagID;mb.has(r)?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_TABLE,ru(e,t)):xn(e,t)}function V5(e,t){const r=t.tagID;switch(r){case g.CAPTION:case g.TABLE:{e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_TABLE,r===g.TABLE&&Al(e,t));break}case g.BODY:case g.COL:case g.COLGROUP:case g.HTML:case g.TBODY:case g.TD:case g.TFOOT:case g.TH:case g.THEAD:case g.TR:break;default:Ns(e,t)}}function Bd(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.COL:{e._appendElement(t,pe.HTML),t.ackSelfClosing=!0;break}case g.TEMPLATE:{kr(e,t);break}default:ks(e,t)}}function $5(e,t){switch(t.tagID){case g.COLGROUP:{e.openElements.currentTagId===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=U.IN_TABLE);break}case g.TEMPLATE:{ci(e,t);break}case g.COL:break;default:ks(e,t)}}function ks(e,t){e.openElements.currentTagId===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=U.IN_TABLE,e._processToken(t))}function Ds(e,t){switch(t.tagID){case g.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,pe.HTML),e.insertionMode=U.IN_ROW;break}case g.TH:case g.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(q.TR,g.TR),e.insertionMode=U.IN_ROW,Ls(e,t);break}case g.CAPTION:case g.COL:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE,ru(e,t));break}default:ru(e,t)}}function Pd(e,t){const r=t.tagID;switch(t.tagID){case g.TBODY:case g.TFOOT:case g.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE);break}case g.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE,Al(e,t));break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TD:case g.TH:case g.TR:break;default:Al(e,t)}}function Ls(e,t){switch(t.tagID){case g.TH:case g.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,pe.HTML),e.insertionMode=U.IN_CELL,e.activeFormattingElements.insertMarker();break}case g.CAPTION:case g.COL:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:case g.TR:{e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,Ds(e,t));break}default:ru(e,t)}}function gb(e,t){switch(t.tagID){case g.TR:{e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY);break}case g.TABLE:{e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,Pd(e,t));break}case g.TBODY:case g.TFOOT:case g.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(g.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,Pd(e,t));break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TD:case g.TH:break;default:Al(e,t)}}function q5(e,t){const r=t.tagID;mb.has(r)?(e.openElements.hasInTableScope(g.TD)||e.openElements.hasInTableScope(g.TH))&&(e._closeTableCell(),Ls(e,t)):xn(e,t)}function G5(e,t){const r=t.tagID;switch(r){case g.TD:case g.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_ROW);break}case g.TABLE:case g.TBODY:case g.TFOOT:case g.THEAD:case g.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),gb(e,t));break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:break;default:Ns(e,t)}}function bb(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.OPTION:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e._insertElement(t,pe.HTML);break}case g.OPTGROUP:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop(),e._insertElement(t,pe.HTML);break}case g.HR:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop(),e._appendElement(t,pe.HTML),t.ackSelfClosing=!0;break}case g.INPUT:case g.KEYGEN:case g.TEXTAREA:case g.SELECT:{e.openElements.hasInSelectScope(g.SELECT)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),t.tagID!==g.SELECT&&e._processStartTag(t));break}case g.SCRIPT:case g.TEMPLATE:{kr(e,t);break}}}function Eb(e,t){switch(t.tagID){case g.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===g.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===g.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop();break}case g.OPTION:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop();break}case g.SELECT:{e.openElements.hasInSelectScope(g.SELECT)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode());break}case g.TEMPLATE:{ci(e,t);break}}}function X5(e,t){const r=t.tagID;r===g.CAPTION||r===g.TABLE||r===g.TBODY||r===g.TFOOT||r===g.THEAD||r===g.TR||r===g.TD||r===g.TH?(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processStartTag(t)):bb(e,t)}function Q5(e,t){const r=t.tagID;r===g.CAPTION||r===g.TABLE||r===g.TBODY||r===g.TFOOT||r===g.THEAD||r===g.TR||r===g.TD||r===g.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Eb(e,t)}function K5(e,t){switch(t.tagID){case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:case g.NOFRAMES:case g.SCRIPT:case g.STYLE:case g.TEMPLATE:case g.TITLE:{kr(e,t);break}case g.CAPTION:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:{e.tmplInsertionModeStack[0]=U.IN_TABLE,e.insertionMode=U.IN_TABLE,ru(e,t);break}case g.COL:{e.tmplInsertionModeStack[0]=U.IN_COLUMN_GROUP,e.insertionMode=U.IN_COLUMN_GROUP,Bd(e,t);break}case g.TR:{e.tmplInsertionModeStack[0]=U.IN_TABLE_BODY,e.insertionMode=U.IN_TABLE_BODY,Ds(e,t);break}case g.TD:case g.TH:{e.tmplInsertionModeStack[0]=U.IN_ROW,e.insertionMode=U.IN_ROW,Ls(e,t);break}default:e.tmplInsertionModeStack[0]=U.IN_BODY,e.insertionMode=U.IN_BODY,xn(e,t)}}function W5(e,t){t.tagID===g.TEMPLATE&&ci(e,t)}function yb(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):wd(e,t)}function Z5(e,t){t.tagID===g.HTML?xn(e,t):Is(e,t)}function Tb(e,t){var r;if(t.tagID===g.HTML){if(e.fragmentContext||(e.insertionMode=U.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===g.HTML){e._setEndLocation(e.openElements.items[0],t);const i=e.openElements.items[1];i&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(i))===null||r===void 0)&&r.endTag)&&e._setEndLocation(i,t)}}else Is(e,t)}function Is(e,t){e.insertionMode=U.IN_BODY,Os(e,t)}function J5(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.FRAMESET:{e._insertElement(t,pe.HTML);break}case g.FRAME:{e._appendElement(t,pe.HTML),t.ackSelfClosing=!0;break}case g.NOFRAMES:{kr(e,t);break}}}function e8(e,t){t.tagID===g.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==g.FRAMESET&&(e.insertionMode=U.AFTER_FRAMESET))}function t8(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.NOFRAMES:{kr(e,t);break}}}function n8(e,t){t.tagID===g.HTML&&(e.insertionMode=U.AFTER_AFTER_FRAMESET)}function r8(e,t){t.tagID===g.HTML?xn(e,t):ws(e,t)}function ws(e,t){e.insertionMode=U.IN_BODY,Os(e,t)}function a8(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.NOFRAMES:{kr(e,t);break}}}function i8(e,t){t.chars=Pt,e._insertCharacters(t)}function u8(e,t){e._insertCharacters(t),e.framesetOk=!1}function Sb(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==pe.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function l8(e,t){if(Cv(t))Sb(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(r);i===pe.MATHML?eb(t):i===pe.SVG&&(Av(t),tb(t)),Dd(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}function o8(e,t){if(t.tagID===g.P||t.tagID===g.BR){Sb(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(i)===pe.HTML){e._endTagOutsideForeignContent(t);break}const l=e.treeAdapter.getTagName(i);if(l.toLowerCase()===t.tagName){t.tagName=l,e.openElements.shortenToLength(r);break}}}q.AREA,q.BASE,q.BASEFONT,q.BGSOUND,q.BR,q.COL,q.EMBED,q.FRAME,q.HR,q.IMG,q.INPUT,q.KEYGEN,q.LINK,q.META,q.PARAM,q.SOURCE,q.TRACK,q.WBR;const s8=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,c8=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Cb={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Ab(e,t){const r=T8(e),i=Lg("type",{handlers:{root:f8,element:d8,text:h8,comment:_b,doctype:p8,raw:g8},unknown:b8}),l={parser:r?new ab(Cb):ab.getFragmentParser(void 0,Cb),handle(d){i(d,l)},stitches:!1,options:t||{}};i(e,l),au(l,Ur());const s=r?l.parser.document:l.parser.getFragment(),c=S_(s,{file:l.options.file});return l.stitches&&ad(c,"comment",function(d,p,m){const b=d;if(b.value.stitch&&m&&p!==void 0){const E=m.children;return E[p]=b.value.stitch,p}}),c.type==="root"&&c.children.length===1&&c.children[0].type===e.type?c.children[0]:c}function xb(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function f8(e,t){xb(e.children,t)}function d8(e,t){E8(e,t),xb(e.children,t),y8(e,t)}function h8(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:at.CHARACTER,chars:e.value,location:vl(e)};au(t,Ur(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function p8(e,t){const r={type:at.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:vl(e)};au(t,Ur(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function m8(e,t){t.stitches=!0;const r=S8(e);if("children"in e&&"children"in r){const i=Ab({type:"root",children:e.children},t.options);r.children=i.children}_b({type:"comment",value:{stitch:r}},t)}function _b(e,t){const r=e.value,i={type:at.COMMENT,data:r,location:vl(e)};au(t,Ur(e)),t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken)}function g8(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,vb(t,Ur(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(s8,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const r=t.parser.tokenizer._consume();t.parser.tokenizer._callState(r)}}function b8(e,t){const r=e;if(t.options.passThrough&&t.options.passThrough.includes(r.type))m8(r,t);else{let i="";throw c8.has(r.type)&&(i=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+r.type+"` node"+i)}}function au(e,t){vb(e,t);const r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Qt.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function vb(e,t){if(t&&t.offset!==void 0){const r={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=r}}function E8(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Qt.PLAINTEXT)return;au(t,Ur(e));const i=t.parser.openElements.current;let l="namespaceURI"in i?i.namespaceURI:oi.html;l===oi.html&&r==="svg"&&(l=oi.svg);const s=v_({...e,children:[]},{space:l===oi.svg?"svg":"html"}),c={type:at.START_TAG,tagName:r,tagID:nu(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:vl(e)};t.parser.currentToken=c,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}function y8(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&w_.includes(r)||t.parser.tokenizer.state===Qt.PLAINTEXT)return;au(t,ms(e));const i={type:at.END_TAG,tagName:r,tagID:nu(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:vl(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),r===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Qt.RCDATA||t.parser.tokenizer.state===Qt.RAWTEXT||t.parser.tokenizer.state===Qt.SCRIPT_DATA)&&(t.parser.tokenizer.state=Qt.DATA)}function T8(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function vl(e){const t=Ur(e)||{line:void 0,column:void 0,offset:void 0},r=ms(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function S8(e){return"children"in e?Qi({...e,children:[]}):Qi(e)}function C8(e){return function(t,r){return Ab(t,{...e,file:r})}}const A8=({color:e="currentColor",size:t=24,className:r,...i})=>xt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},xt.createElement("path",{d:"M7.82843 10.9999H20V12.9999H7.82843L13.1924 18.3638L11.7782 19.778L4 11.9999L11.7782 4.22168L13.1924 5.63589L7.82843 10.9999Z"})),x8=({color:e="currentColor",size:t=24,className:r,...i})=>xt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},xt.createElement("path",{d:"M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z"})),Rb=({color:e="currentColor",size:t=24,className:r,...i})=>xt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},xt.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"})),_8=({color:e="currentColor",size:t=24,className:r,...i})=>xt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},xt.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"})),Ob=({color:e="currentColor",size:t=24,className:r,...i})=>xt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},xt.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"})),v8=({color:e="currentColor",size:t=24,className:r,...i})=>xt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},xt.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"})),Ud=({color:e="currentColor",size:t=24,className:r,...i})=>xt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},xt.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"}));function Nb(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(r=Nb(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function st(){for(var e,t,r=0,i="",l=arguments.length;r<l;r++)(e=arguments[r])&&(t=Nb(e))&&(i&&(i+=" "),i+=t);return i}function Zn(e,t,r=void 0){const i={};for(const l in e){const s=e[l];let c="",d=!0;for(let p=0;p<s.length;p+=1){const m=s[p];m&&(c+=(d===!0?"":" ")+t(m),d=!1,r&&r[m]&&(c+=" "+r[m]))}i[l]=c}return i}const kb=x.createContext();function R8({value:e,...t}){return me.jsx(kb.Provider,{value:e??!0,...t})}const Hd=()=>x.useContext(kb)??!1;function Yr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Db(e){if(!Yr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Db(e[r])}),t}function Pn(e,t,r={clone:!0}){const i=r.clone?{...e}:e;return Yr(e)&&Yr(t)&&Object.keys(t).forEach(l=>{Yr(t[l])&&Object.prototype.hasOwnProperty.call(e,l)&&Yr(e[l])?i[l]=Pn(e[l],t[l],r):r.clone?i[l]=Yr(t[l])?Db(t[l]):t[l]:i[l]=t[l]}),i}function ka(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>r.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${r} for the full message.`}var Fd={exports:{}},Tt={};/**
71
71
  * @license React
72
72
  * react-is.production.min.js
@@ -75,13 +75,13 @@ Error generating stack: `+u.message+`
75
75
  *
76
76
  * This source code is licensed under the MIT license found in the
77
77
  * LICENSE file in the root directory of this source tree.
78
- */var Lb;function O8(){if(Lb)return Tt;Lb=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),O;O=Symbol.for("react.module.reference");function _(I){if(typeof I=="object"&&I!==null){var R=I.$$typeof;switch(R){case e:switch(I=I.type,I){case r:case l:case i:case m:case b:return I;default:switch(I=I&&I.$$typeof,I){case d:case c:case p:case S:case E:case s:return I;default:return R}}case t:return R}}}return Tt.ContextConsumer=c,Tt.ContextProvider=s,Tt.Element=e,Tt.ForwardRef=p,Tt.Fragment=r,Tt.Lazy=S,Tt.Memo=E,Tt.Portal=t,Tt.Profiler=l,Tt.StrictMode=i,Tt.Suspense=m,Tt.SuspenseList=b,Tt.isAsyncMode=function(){return!1},Tt.isConcurrentMode=function(){return!1},Tt.isContextConsumer=function(I){return _(I)===c},Tt.isContextProvider=function(I){return _(I)===s},Tt.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===e},Tt.isForwardRef=function(I){return _(I)===p},Tt.isFragment=function(I){return _(I)===r},Tt.isLazy=function(I){return _(I)===S},Tt.isMemo=function(I){return _(I)===E},Tt.isPortal=function(I){return _(I)===t},Tt.isProfiler=function(I){return _(I)===l},Tt.isStrictMode=function(I){return _(I)===i},Tt.isSuspense=function(I){return _(I)===m},Tt.isSuspenseList=function(I){return _(I)===b},Tt.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===r||I===l||I===i||I===m||I===b||I===y||typeof I=="object"&&I!==null&&(I.$$typeof===S||I.$$typeof===E||I.$$typeof===s||I.$$typeof===c||I.$$typeof===p||I.$$typeof===O||I.getModuleId!==void 0)},Tt.typeOf=_,Tt}var Ib;function N8(){return Ib||(Ib=1,Fd.exports=O8()),Fd.exports}N8();function _t(e){if(typeof e!="string")throw new Error(ka(7));return e.charAt(0).toUpperCase()+e.slice(1)}function wb(...e){return e.reduce((t,r)=>r==null?t:function(...l){t.apply(this,l),r.apply(this,l)},()=>{})}function Ms(e,t=166){let r;function i(...l){const s=()=>{e.apply(this,l)};clearTimeout(r),r=setTimeout(s,t)}return i.clear=()=>{clearTimeout(r)},i}function Da(e){return e&&e.ownerDocument||document}function jr(e){return Da(e).defaultView||window}function zd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const fi=typeof window<"u"?x.useLayoutEffect:x.useEffect;function ra(e){const t=x.useRef(e);return fi(()=>{t.current=e}),x.useRef((...r)=>(0,t.current)(...r)).current}function fr(...e){return x.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{zd(r,t)})},e)}const Mb={};function Bb(e,t){const r=x.useRef(Mb);return r.current===Mb&&(r.current=e(t)),r}const k8=[];function D8(e){x.useEffect(e,k8)}class Yd{constructor(){rs(this,"currentId",null);rs(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});rs(this,"disposeEffect",()=>this.clear)}static create(){return new Yd}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function L8(){const e=Bb(Yd.create).current;return D8(e.disposeEffect),e}function Pb(e){try{return e.matches(":focus-visible")}catch{}return!1}function I8(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Bs(e,t){const r={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const l=i;if(l==="components"||l==="slots")r[l]={...e[l],...r[l]};else if(l==="componentsProps"||l==="slotProps"){const s=e[l],c=t[l];if(!c)r[l]=s||{};else if(!s)r[l]=c;else{r[l]={...c};for(const d in s)if(Object.prototype.hasOwnProperty.call(s,d)){const p=d;r[l][p]=Bs(s[p],c[p])}}}else r[l]===void 0&&(r[l]=e[l])}return r}const Ub=e=>e,w8=(()=>{let e=Ub;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ub}}})(),M8={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 Un(e,t,r="Mui"){const i=M8[t];return i?`${r}-${i}`:`${w8.generate(e)}-${t}`}function Hn(e,t,r="Mui"){const i={};return t.forEach(l=>{i[l]=Un(e,l,r)}),i}function B8(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function P8(e){return typeof e=="string"}function Hb(e,t,r){return e===void 0||P8(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function Fb(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{r[i]=e[i]}),r}function zb(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function Yb(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:i,externalForwardedProps:l,className:s}=e;if(!t){const y=st(r==null?void 0:r.className,s,l==null?void 0:l.className,i==null?void 0:i.className),O={...r==null?void 0:r.style,...l==null?void 0:l.style,...i==null?void 0:i.style},_={...r,...l,...i};return y.length>0&&(_.className=y),Object.keys(O).length>0&&(_.style=O),{props:_,internalRef:void 0}}const c=Fb({...l,...i}),d=zb(i),p=zb(l),m=t(c),b=st(m==null?void 0:m.className,r==null?void 0:r.className,s,l==null?void 0:l.className,i==null?void 0:i.className),E={...m==null?void 0:m.style,...r==null?void 0:r.style,...l==null?void 0:l.style,...i==null?void 0:i.style},S={...m,...r,...p,...d};return b.length>0&&(S.className=b),Object.keys(E).length>0&&(S.style=E),{props:S,internalRef:m.ref}}function jb(e,t,r){return typeof e=="function"?e(t,r):e}function Ps(e){var E;const{elementType:t,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:l=!1,...s}=e,c=l?{}:jb(r,i),{props:d,internalRef:p}=Yb({...s,externalSlotProps:c}),m=fr(p,c==null?void 0:c.ref,(E=e.additionalProps)==null?void 0:E.ref);return Hb(t,{...d,ref:m},i)}function Us(e){var t;return parseInt(x.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function U8(e){const t=Da(e);return t.body===e?jr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Rl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Vb(e){return parseInt(jr(e).getComputedStyle(e).paddingRight,10)||0}function H8(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||i}function $b(e,t,r,i,l){const s=[t,r,...i];[].forEach.call(e.children,c=>{const d=!s.includes(c),p=!H8(c);d&&p&&Rl(c,l)})}function jd(e,t){let r=-1;return e.some((i,l)=>t(i)?(r=l,!0):!1),r}function F8(e,t){const r=[],i=e.container;if(!t.disableScrollLock){if(U8(i)){const c=I8(jr(i));r.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${Vb(i)+c}px`;const d=Da(i).querySelectorAll(".mui-fixed");[].forEach.call(d,p=>{r.push({value:p.style.paddingRight,property:"padding-right",el:p}),p.style.paddingRight=`${Vb(p)+c}px`})}let s;if(i.parentNode instanceof DocumentFragment)s=Da(i).body;else{const c=i.parentElement,d=jr(i);s=(c==null?void 0:c.nodeName)==="HTML"&&d.getComputedStyle(c).overflowY==="scroll"?c:i}r.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{r.forEach(({value:s,el:c,property:d})=>{s?c.style.setProperty(d,s):c.style.removeProperty(d)})}}function z8(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Y8{constructor(){this.modals=[],this.containers=[]}add(t,r){let i=this.modals.indexOf(t);if(i!==-1)return i;i=this.modals.length,this.modals.push(t),t.modalRef&&Rl(t.modalRef,!1);const l=z8(r);$b(r,t.mount,t.modalRef,l,!0);const s=jd(this.containers,c=>c.container===r);return s!==-1?(this.containers[s].modals.push(t),i):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:l}),i)}mount(t,r){const i=jd(this.containers,s=>s.modals.includes(t)),l=this.containers[i];l.restore||(l.restore=F8(l,r))}remove(t,r=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const l=jd(this.containers,c=>c.modals.includes(t)),s=this.containers[l];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(i,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&Rl(t.modalRef,r),$b(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(l,1);else{const c=s.modals[s.modals.length-1];c.modalRef&&Rl(c.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const j8=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function V8(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function $8(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function q8(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||$8(e))}function G8(e){const t=[],r=[];return Array.from(e.querySelectorAll(j8)).forEach((i,l)=>{const s=V8(i);s===-1||!q8(i)||(s===0?t.push(i):r.push({documentOrder:l,tabIndex:s,node:i}))}),r.sort((i,l)=>i.tabIndex===l.tabIndex?i.documentOrder-l.documentOrder:i.tabIndex-l.tabIndex).map(i=>i.node).concat(t)}function X8(){return!0}function Q8(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:i=!1,disableRestoreFocus:l=!1,getTabbable:s=G8,isEnabled:c=X8,open:d}=e,p=x.useRef(!1),m=x.useRef(null),b=x.useRef(null),E=x.useRef(null),S=x.useRef(null),y=x.useRef(!1),O=x.useRef(null),_=fr(Us(t),O),I=x.useRef(null);x.useEffect(()=>{!d||!O.current||(y.current=!r)},[r,d]),x.useEffect(()=>{if(!d||!O.current)return;const k=Da(O.current);return O.current.contains(k.activeElement)||(O.current.hasAttribute("tabIndex")||O.current.setAttribute("tabIndex","-1"),y.current&&O.current.focus()),()=>{l||(E.current&&E.current.focus&&(p.current=!0,E.current.focus()),E.current=null)}},[d]),x.useEffect(()=>{if(!d||!O.current)return;const k=Da(O.current),P=j=>{I.current=j,!(i||!c()||j.key!=="Tab")&&k.activeElement===O.current&&j.shiftKey&&(p.current=!0,b.current&&b.current.focus())},L=()=>{var V,A;const j=O.current;if(j===null)return;if(!k.hasFocus()||!c()||p.current){p.current=!1;return}if(j.contains(k.activeElement)||i&&k.activeElement!==m.current&&k.activeElement!==b.current)return;if(k.activeElement!==S.current)S.current=null;else if(S.current!==null)return;if(!y.current)return;let ae=[];if((k.activeElement===m.current||k.activeElement===b.current)&&(ae=s(O.current)),ae.length>0){const Y=!!((V=I.current)!=null&&V.shiftKey&&((A=I.current)==null?void 0:A.key)==="Tab"),W=ae[0],X=ae[ae.length-1];typeof W!="string"&&typeof X!="string"&&(Y?X.focus():W.focus())}else j.focus()};k.addEventListener("focusin",L),k.addEventListener("keydown",P,!0);const M=setInterval(()=>{k.activeElement&&k.activeElement.tagName==="BODY"&&L()},50);return()=>{clearInterval(M),k.removeEventListener("focusin",L),k.removeEventListener("keydown",P,!0)}},[r,i,l,c,d,s]);const R=k=>{E.current===null&&(E.current=k.relatedTarget),y.current=!0,S.current=k.target;const P=t.props.onFocus;P&&P(k)},H=k=>{E.current===null&&(E.current=k.relatedTarget),y.current=!0};return me.jsxs(x.Fragment,{children:[me.jsx("div",{tabIndex:d?0:-1,onFocus:H,ref:m,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:_,onFocus:R}),me.jsx("div",{tabIndex:d?0:-1,onFocus:H,ref:b,"data-testid":"sentinelEnd"})]})}var qb=Kp();const Hs=ur(qb);function K8(e){return typeof e=="function"?e():e}const W8=x.forwardRef(function(t,r){const{children:i,container:l,disablePortal:s=!1}=t,[c,d]=x.useState(null),p=fr(x.isValidElement(i)?Us(i):null,r);if(fi(()=>{s||d(K8(l)||document.body)},[l,s]),fi(()=>{if(c&&!s)return zd(r,c),()=>{zd(r,null)}},[r,c,s]),s){if(x.isValidElement(i)){const m={ref:p};return x.cloneElement(i,m)}return me.jsx(x.Fragment,{children:i})}return me.jsx(x.Fragment,{children:c&&qb.createPortal(i,c)})});function Ol(e,t){return t?Pn(e,t,{clone:!1}):e}function Z8(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(i=>i.startsWith("@container")).sort((i,l)=>{var c,d;const s=/min-width:\s*([0-9.]+)/;return+(((c=i.match(s))==null?void 0:c[1])||0)-+(((d=l.match(s))==null?void 0:d[1])||0)});return r.length?r.reduce((i,l)=>{const s=t[l];return delete i[l],i[l]=s,i},{...t}):t}function J8(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function eR(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,i,l]=r,s=Number.isNaN(+i)?i||0:+i;return e.containerQueries(l).up(s)}function tR(e){const t=(s,c)=>s.replace("@media",c?`@container ${c}`:"@container");function r(s,c){s.up=(...d)=>t(e.breakpoints.up(...d),c),s.down=(...d)=>t(e.breakpoints.down(...d),c),s.between=(...d)=>t(e.breakpoints.between(...d),c),s.only=(...d)=>t(e.breakpoints.only(...d),c),s.not=(...d)=>{const p=t(e.breakpoints.not(...d),c);return p.includes("not all and")?p.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):p}}const i={},l=s=>(r(i,s),i);return r(l),{...e,containerQueries:l}}const Fs={xs:0,sm:600,md:900,lg:1200,xl:1536},Gb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Fs[e]}px)`},nR={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Fs[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function aa(e,t,r){const i=e.theme||{};if(Array.isArray(t)){const s=i.breakpoints||Gb;return t.reduce((c,d,p)=>(c[s.up(s.keys[p])]=r(t[p]),c),{})}if(typeof t=="object"){const s=i.breakpoints||Gb;return Object.keys(t).reduce((c,d)=>{if(J8(s.keys,d)){const p=eR(i.containerQueries?i:nR,d);p&&(c[p]=r(t[d],d))}else if(Object.keys(s.values||Fs).includes(d)){const p=s.up(d);c[p]=r(t[d],d)}else{const p=d;c[p]=t[p]}return c},{})}return r(t)}function rR(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((i,l)=>{const s=e.up(l);return i[s]={},i},{}))||{}}function aR(e,t){return e.reduce((r,i)=>{const l=r[i];return(!l||Object.keys(l).length===0)&&delete r[i],r},t)}function zs(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const i=`vars.${t}`.split(".").reduce((l,s)=>l&&l[s]?l[s]:null,e);if(i!=null)return i}return t.split(".").reduce((i,l)=>i&&i[l]!=null?i[l]:null,e)}function Ys(e,t,r,i=r){let l;return typeof e=="function"?l=e(r):Array.isArray(e)?l=e[r]||i:l=zs(e,r)||i,t&&(l=t(l,i,e)),l}function Kt(e){const{prop:t,cssProperty:r=e.prop,themeKey:i,transform:l}=e,s=c=>{if(c[t]==null)return null;const d=c[t],p=c.theme,m=zs(p,i)||{};return aa(c,d,E=>{let S=Ys(m,l,E);return E===S&&typeof E=="string"&&(S=Ys(m,l,`${t}${E==="default"?"":_t(E)}`,E)),r===!1?S:{[r]:S}})};return s.propTypes={},s.filterProps=[t],s}function iR(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const uR={m:"margin",p:"padding"},lR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Xb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},oR=iR(e=>{if(e.length>2)if(Xb[e])e=Xb[e];else return[e];const[t,r]=e.split(""),i=uR[t],l=lR[r]||"";return Array.isArray(l)?l.map(s=>i+s):[i+l]}),Vd=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Vd,...$d];function Nl(e,t,r,i){const l=zs(e,t,!0)??r;return typeof l=="number"||typeof l=="string"?s=>typeof s=="string"?s:typeof l=="string"?`calc(${s} * ${l})`:l*s:Array.isArray(l)?s=>{if(typeof s=="string")return s;const c=Math.abs(s),d=l[c];return s>=0?d:typeof d=="number"?-d:`-${d}`}:typeof l=="function"?l:()=>{}}function qd(e){return Nl(e,"spacing",8)}function kl(e,t){return typeof t=="string"||t==null?t:e(t)}function sR(e,t){return r=>e.reduce((i,l)=>(i[l]=kl(t,r),i),{})}function cR(e,t,r,i){if(!t.includes(r))return null;const l=oR(r),s=sR(l,i),c=e[r];return aa(e,c,s)}function Qb(e,t){const r=qd(e.theme);return Object.keys(e).map(i=>cR(e,t,i,r)).reduce(Ol,{})}function jt(e){return Qb(e,Vd)}jt.propTypes={},jt.filterProps=Vd;function Vt(e){return Qb(e,$d)}Vt.propTypes={},Vt.filterProps=$d;function js(...e){const t=e.reduce((i,l)=>(l.filterProps.forEach(s=>{i[s]=l}),i),{}),r=i=>Object.keys(i).reduce((l,s)=>t[s]?Ol(l,t[s](i)):l,{});return r.propTypes={},r.filterProps=e.reduce((i,l)=>i.concat(l.filterProps),[]),r}function dr(e){return typeof e!="number"?e:`${e}px solid`}function hr(e,t){return Kt({prop:e,themeKey:"borders",transform:t})}const fR=hr("border",dr),dR=hr("borderTop",dr),hR=hr("borderRight",dr),pR=hr("borderBottom",dr),mR=hr("borderLeft",dr),gR=hr("borderColor"),bR=hr("borderTopColor"),ER=hr("borderRightColor"),yR=hr("borderBottomColor"),TR=hr("borderLeftColor"),SR=hr("outline",dr),CR=hr("outlineColor"),Vs=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Nl(e.theme,"shape.borderRadius",4),r=i=>({borderRadius:kl(t,i)});return aa(e,e.borderRadius,r)}return null};Vs.propTypes={},Vs.filterProps=["borderRadius"],js(fR,dR,hR,pR,mR,gR,bR,ER,yR,TR,Vs,SR,CR);const $s=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Nl(e.theme,"spacing",8),r=i=>({gap:kl(t,i)});return aa(e,e.gap,r)}return null};$s.propTypes={},$s.filterProps=["gap"];const qs=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Nl(e.theme,"spacing",8),r=i=>({columnGap:kl(t,i)});return aa(e,e.columnGap,r)}return null};qs.propTypes={},qs.filterProps=["columnGap"];const Gs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Nl(e.theme,"spacing",8),r=i=>({rowGap:kl(t,i)});return aa(e,e.rowGap,r)}return null};Gs.propTypes={},Gs.filterProps=["rowGap"];const AR=Kt({prop:"gridColumn"}),xR=Kt({prop:"gridRow"}),_R=Kt({prop:"gridAutoFlow"}),vR=Kt({prop:"gridAutoColumns"}),RR=Kt({prop:"gridAutoRows"}),OR=Kt({prop:"gridTemplateColumns"}),NR=Kt({prop:"gridTemplateRows"}),kR=Kt({prop:"gridTemplateAreas"}),DR=Kt({prop:"gridArea"});js($s,qs,Gs,AR,xR,_R,vR,RR,OR,NR,kR,DR);function iu(e,t){return t==="grey"?t:e}const LR=Kt({prop:"color",themeKey:"palette",transform:iu}),IR=Kt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:iu}),wR=Kt({prop:"backgroundColor",themeKey:"palette",transform:iu});js(LR,IR,wR);function Jn(e){return e<=1&&e!==0?`${e*100}%`:e}const MR=Kt({prop:"width",transform:Jn}),Gd=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var l,s,c,d,p;const i=((c=(s=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:s.values)==null?void 0:c[r])||Fs[r];return i?((p=(d=e.theme)==null?void 0:d.breakpoints)==null?void 0:p.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Jn(r)}};return aa(e,e.maxWidth,t)}return null};Gd.filterProps=["maxWidth"];const BR=Kt({prop:"minWidth",transform:Jn}),PR=Kt({prop:"height",transform:Jn}),UR=Kt({prop:"maxHeight",transform:Jn}),HR=Kt({prop:"minHeight",transform:Jn});Kt({prop:"size",cssProperty:"width",transform:Jn}),Kt({prop:"size",cssProperty:"height",transform:Jn});const FR=Kt({prop:"boxSizing"});js(MR,Gd,BR,PR,UR,HR,FR);const Dl={border:{themeKey:"borders",transform:dr},borderTop:{themeKey:"borders",transform:dr},borderRight:{themeKey:"borders",transform:dr},borderBottom:{themeKey:"borders",transform:dr},borderLeft:{themeKey:"borders",transform:dr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:dr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Vs},color:{themeKey:"palette",transform:iu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:iu},backgroundColor:{themeKey:"palette",transform:iu},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:jt},mt:{style:jt},mr:{style:jt},mb:{style:jt},ml:{style:jt},mx:{style:jt},my:{style:jt},margin:{style:jt},marginTop:{style:jt},marginRight:{style:jt},marginBottom:{style:jt},marginLeft:{style:jt},marginX:{style:jt},marginY:{style:jt},marginInline:{style:jt},marginInlineStart:{style:jt},marginInlineEnd:{style:jt},marginBlock:{style:jt},marginBlockStart:{style:jt},marginBlockEnd:{style:jt},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:$s},rowGap:{style:Gs},columnGap:{style:qs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Jn},maxWidth:{style:Gd},minWidth:{transform:Jn},height:{transform:Jn},maxHeight:{transform:Jn},minHeight:{transform:Jn},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 zR(...e){const t=e.reduce((i,l)=>i.concat(Object.keys(l)),[]),r=new Set(t);return e.every(i=>r.size===Object.keys(i).length)}function YR(e,t){return typeof e=="function"?e(t):e}function jR(){function e(r,i,l,s){const c={[r]:i,theme:l},d=s[r];if(!d)return{[r]:i};const{cssProperty:p=r,themeKey:m,transform:b,style:E}=d;if(i==null)return null;if(m==="typography"&&i==="inherit")return{[r]:i};const S=zs(l,m)||{};return E?E(c):aa(c,i,O=>{let _=Ys(S,b,O);return O===_&&typeof O=="string"&&(_=Ys(S,b,`${r}${O==="default"?"":_t(O)}`,O)),p===!1?_:{[p]:_}})}function t(r){const{sx:i,theme:l={}}=r||{};if(!i)return null;const s=l.unstable_sxConfig??Dl;function c(d){let p=d;if(typeof d=="function")p=d(l);else if(typeof d!="object")return d;if(!p)return null;const m=rR(l.breakpoints),b=Object.keys(m);let E=m;return Object.keys(p).forEach(S=>{const y=YR(p[S],l);if(y!=null)if(typeof y=="object")if(s[S])E=Ol(E,e(S,y,l,s));else{const O=aa({theme:l},y,_=>({[S]:_}));zR(O,y)?E[S]=t({sx:y,theme:l}):E=Ol(E,O)}else E=Ol(E,e(S,y,l,s))}),Z8(l,aR(b,E))}return Array.isArray(i)?i.map(c):c(i)}return t}const di=jR();di.filterProps=["sx"];const VR=e=>{var i;const t={systemProps:{},otherProps:{}},r=((i=e==null?void 0:e.theme)==null?void 0:i.unstable_sxConfig)??Dl;return Object.keys(e).forEach(l=>{r[l]?t.systemProps[l]=e[l]:t.otherProps[l]=e[l]}),t};function $R(e){const{sx:t,...r}=e,{systemProps:i,otherProps:l}=VR(r);let s;return Array.isArray(t)?s=[i,...t]:typeof t=="function"?s=(...c)=>{const d=t(...c);return Yr(d)?{...i,...d}:i}:s={...i,...t},{...l,sx:s}}function qR(e){return e==null||Object.keys(e).length===0}function Kb(e){const{styles:t,defaultTheme:r={}}=e,i=typeof t=="function"?l=>t(qR(l)?r:l):t;return me.jsx(LC,{styles:i})}/**
78
+ */var Lb;function O8(){if(Lb)return Tt;Lb=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),O;O=Symbol.for("react.module.reference");function _(I){if(typeof I=="object"&&I!==null){var v=I.$$typeof;switch(v){case e:switch(I=I.type,I){case r:case l:case i:case m:case b:return I;default:switch(I=I&&I.$$typeof,I){case d:case c:case p:case S:case E:case s:return I;default:return v}}case t:return v}}}return Tt.ContextConsumer=c,Tt.ContextProvider=s,Tt.Element=e,Tt.ForwardRef=p,Tt.Fragment=r,Tt.Lazy=S,Tt.Memo=E,Tt.Portal=t,Tt.Profiler=l,Tt.StrictMode=i,Tt.Suspense=m,Tt.SuspenseList=b,Tt.isAsyncMode=function(){return!1},Tt.isConcurrentMode=function(){return!1},Tt.isContextConsumer=function(I){return _(I)===c},Tt.isContextProvider=function(I){return _(I)===s},Tt.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===e},Tt.isForwardRef=function(I){return _(I)===p},Tt.isFragment=function(I){return _(I)===r},Tt.isLazy=function(I){return _(I)===S},Tt.isMemo=function(I){return _(I)===E},Tt.isPortal=function(I){return _(I)===t},Tt.isProfiler=function(I){return _(I)===l},Tt.isStrictMode=function(I){return _(I)===i},Tt.isSuspense=function(I){return _(I)===m},Tt.isSuspenseList=function(I){return _(I)===b},Tt.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===r||I===l||I===i||I===m||I===b||I===y||typeof I=="object"&&I!==null&&(I.$$typeof===S||I.$$typeof===E||I.$$typeof===s||I.$$typeof===c||I.$$typeof===p||I.$$typeof===O||I.getModuleId!==void 0)},Tt.typeOf=_,Tt}var Ib;function N8(){return Ib||(Ib=1,Fd.exports=O8()),Fd.exports}N8();function _t(e){if(typeof e!="string")throw new Error(ka(7));return e.charAt(0).toUpperCase()+e.slice(1)}function wb(...e){return e.reduce((t,r)=>r==null?t:function(...l){t.apply(this,l),r.apply(this,l)},()=>{})}function Ms(e,t=166){let r;function i(...l){const s=()=>{e.apply(this,l)};clearTimeout(r),r=setTimeout(s,t)}return i.clear=()=>{clearTimeout(r)},i}function Da(e){return e&&e.ownerDocument||document}function jr(e){return Da(e).defaultView||window}function zd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const fi=typeof window<"u"?x.useLayoutEffect:x.useEffect;function ra(e){const t=x.useRef(e);return fi(()=>{t.current=e}),x.useRef((...r)=>(0,t.current)(...r)).current}function fr(...e){return x.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{zd(r,t)})},e)}const Mb={};function Bb(e,t){const r=x.useRef(Mb);return r.current===Mb&&(r.current=e(t)),r}const k8=[];function D8(e){x.useEffect(e,k8)}class Yd{constructor(){rs(this,"currentId",null);rs(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});rs(this,"disposeEffect",()=>this.clear)}static create(){return new Yd}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function L8(){const e=Bb(Yd.create).current;return D8(e.disposeEffect),e}function Pb(e){try{return e.matches(":focus-visible")}catch{}return!1}function I8(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Bs(e,t){const r={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const l=i;if(l==="components"||l==="slots")r[l]={...e[l],...r[l]};else if(l==="componentsProps"||l==="slotProps"){const s=e[l],c=t[l];if(!c)r[l]=s||{};else if(!s)r[l]=c;else{r[l]={...c};for(const d in s)if(Object.prototype.hasOwnProperty.call(s,d)){const p=d;r[l][p]=Bs(s[p],c[p])}}}else r[l]===void 0&&(r[l]=e[l])}return r}const Ub=e=>e,w8=(()=>{let e=Ub;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ub}}})(),M8={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 Un(e,t,r="Mui"){const i=M8[t];return i?`${r}-${i}`:`${w8.generate(e)}-${t}`}function Hn(e,t,r="Mui"){const i={};return t.forEach(l=>{i[l]=Un(e,l,r)}),i}function B8(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function P8(e){return typeof e=="string"}function Hb(e,t,r){return e===void 0||P8(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function Fb(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{r[i]=e[i]}),r}function zb(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function Yb(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:i,externalForwardedProps:l,className:s}=e;if(!t){const y=st(r==null?void 0:r.className,s,l==null?void 0:l.className,i==null?void 0:i.className),O={...r==null?void 0:r.style,...l==null?void 0:l.style,...i==null?void 0:i.style},_={...r,...l,...i};return y.length>0&&(_.className=y),Object.keys(O).length>0&&(_.style=O),{props:_,internalRef:void 0}}const c=Fb({...l,...i}),d=zb(i),p=zb(l),m=t(c),b=st(m==null?void 0:m.className,r==null?void 0:r.className,s,l==null?void 0:l.className,i==null?void 0:i.className),E={...m==null?void 0:m.style,...r==null?void 0:r.style,...l==null?void 0:l.style,...i==null?void 0:i.style},S={...m,...r,...p,...d};return b.length>0&&(S.className=b),Object.keys(E).length>0&&(S.style=E),{props:S,internalRef:m.ref}}function jb(e,t,r){return typeof e=="function"?e(t,r):e}function Ps(e){var E;const{elementType:t,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:l=!1,...s}=e,c=l?{}:jb(r,i),{props:d,internalRef:p}=Yb({...s,externalSlotProps:c}),m=fr(p,c==null?void 0:c.ref,(E=e.additionalProps)==null?void 0:E.ref);return Hb(t,{...d,ref:m},i)}function Us(e){var t;return parseInt(x.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function U8(e){const t=Da(e);return t.body===e?jr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Rl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Vb(e){return parseInt(jr(e).getComputedStyle(e).paddingRight,10)||0}function H8(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||i}function $b(e,t,r,i,l){const s=[t,r,...i];[].forEach.call(e.children,c=>{const d=!s.includes(c),p=!H8(c);d&&p&&Rl(c,l)})}function jd(e,t){let r=-1;return e.some((i,l)=>t(i)?(r=l,!0):!1),r}function F8(e,t){const r=[],i=e.container;if(!t.disableScrollLock){if(U8(i)){const c=I8(jr(i));r.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${Vb(i)+c}px`;const d=Da(i).querySelectorAll(".mui-fixed");[].forEach.call(d,p=>{r.push({value:p.style.paddingRight,property:"padding-right",el:p}),p.style.paddingRight=`${Vb(p)+c}px`})}let s;if(i.parentNode instanceof DocumentFragment)s=Da(i).body;else{const c=i.parentElement,d=jr(i);s=(c==null?void 0:c.nodeName)==="HTML"&&d.getComputedStyle(c).overflowY==="scroll"?c:i}r.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{r.forEach(({value:s,el:c,property:d})=>{s?c.style.setProperty(d,s):c.style.removeProperty(d)})}}function z8(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Y8{constructor(){this.modals=[],this.containers=[]}add(t,r){let i=this.modals.indexOf(t);if(i!==-1)return i;i=this.modals.length,this.modals.push(t),t.modalRef&&Rl(t.modalRef,!1);const l=z8(r);$b(r,t.mount,t.modalRef,l,!0);const s=jd(this.containers,c=>c.container===r);return s!==-1?(this.containers[s].modals.push(t),i):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:l}),i)}mount(t,r){const i=jd(this.containers,s=>s.modals.includes(t)),l=this.containers[i];l.restore||(l.restore=F8(l,r))}remove(t,r=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const l=jd(this.containers,c=>c.modals.includes(t)),s=this.containers[l];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(i,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&Rl(t.modalRef,r),$b(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(l,1);else{const c=s.modals[s.modals.length-1];c.modalRef&&Rl(c.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const j8=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function V8(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function $8(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function q8(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||$8(e))}function G8(e){const t=[],r=[];return Array.from(e.querySelectorAll(j8)).forEach((i,l)=>{const s=V8(i);s===-1||!q8(i)||(s===0?t.push(i):r.push({documentOrder:l,tabIndex:s,node:i}))}),r.sort((i,l)=>i.tabIndex===l.tabIndex?i.documentOrder-l.documentOrder:i.tabIndex-l.tabIndex).map(i=>i.node).concat(t)}function X8(){return!0}function Q8(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:i=!1,disableRestoreFocus:l=!1,getTabbable:s=G8,isEnabled:c=X8,open:d}=e,p=x.useRef(!1),m=x.useRef(null),b=x.useRef(null),E=x.useRef(null),S=x.useRef(null),y=x.useRef(!1),O=x.useRef(null),_=fr(Us(t),O),I=x.useRef(null);x.useEffect(()=>{!d||!O.current||(y.current=!r)},[r,d]),x.useEffect(()=>{if(!d||!O.current)return;const k=Da(O.current);return O.current.contains(k.activeElement)||(O.current.hasAttribute("tabIndex")||O.current.setAttribute("tabIndex","-1"),y.current&&O.current.focus()),()=>{l||(E.current&&E.current.focus&&(p.current=!0,E.current.focus()),E.current=null)}},[d]),x.useEffect(()=>{if(!d||!O.current)return;const k=Da(O.current),P=j=>{I.current=j,!(i||!c()||j.key!=="Tab")&&k.activeElement===O.current&&j.shiftKey&&(p.current=!0,b.current&&b.current.focus())},L=()=>{var V,A;const j=O.current;if(j===null)return;if(!k.hasFocus()||!c()||p.current){p.current=!1;return}if(j.contains(k.activeElement)||i&&k.activeElement!==m.current&&k.activeElement!==b.current)return;if(k.activeElement!==S.current)S.current=null;else if(S.current!==null)return;if(!y.current)return;let ae=[];if((k.activeElement===m.current||k.activeElement===b.current)&&(ae=s(O.current)),ae.length>0){const Y=!!((V=I.current)!=null&&V.shiftKey&&((A=I.current)==null?void 0:A.key)==="Tab"),W=ae[0],Q=ae[ae.length-1];typeof W!="string"&&typeof Q!="string"&&(Y?Q.focus():W.focus())}else j.focus()};k.addEventListener("focusin",L),k.addEventListener("keydown",P,!0);const M=setInterval(()=>{k.activeElement&&k.activeElement.tagName==="BODY"&&L()},50);return()=>{clearInterval(M),k.removeEventListener("focusin",L),k.removeEventListener("keydown",P,!0)}},[r,i,l,c,d,s]);const v=k=>{E.current===null&&(E.current=k.relatedTarget),y.current=!0,S.current=k.target;const P=t.props.onFocus;P&&P(k)},H=k=>{E.current===null&&(E.current=k.relatedTarget),y.current=!0};return me.jsxs(x.Fragment,{children:[me.jsx("div",{tabIndex:d?0:-1,onFocus:H,ref:m,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:_,onFocus:v}),me.jsx("div",{tabIndex:d?0:-1,onFocus:H,ref:b,"data-testid":"sentinelEnd"})]})}var qb=Kp();const Hs=ur(qb);function K8(e){return typeof e=="function"?e():e}const W8=x.forwardRef(function(t,r){const{children:i,container:l,disablePortal:s=!1}=t,[c,d]=x.useState(null),p=fr(x.isValidElement(i)?Us(i):null,r);if(fi(()=>{s||d(K8(l)||document.body)},[l,s]),fi(()=>{if(c&&!s)return zd(r,c),()=>{zd(r,null)}},[r,c,s]),s){if(x.isValidElement(i)){const m={ref:p};return x.cloneElement(i,m)}return me.jsx(x.Fragment,{children:i})}return me.jsx(x.Fragment,{children:c&&qb.createPortal(i,c)})});function Ol(e,t){return t?Pn(e,t,{clone:!1}):e}function Z8(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(i=>i.startsWith("@container")).sort((i,l)=>{var c,d;const s=/min-width:\s*([0-9.]+)/;return+(((c=i.match(s))==null?void 0:c[1])||0)-+(((d=l.match(s))==null?void 0:d[1])||0)});return r.length?r.reduce((i,l)=>{const s=t[l];return delete i[l],i[l]=s,i},{...t}):t}function J8(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function eR(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,i,l]=r,s=Number.isNaN(+i)?i||0:+i;return e.containerQueries(l).up(s)}function tR(e){const t=(s,c)=>s.replace("@media",c?`@container ${c}`:"@container");function r(s,c){s.up=(...d)=>t(e.breakpoints.up(...d),c),s.down=(...d)=>t(e.breakpoints.down(...d),c),s.between=(...d)=>t(e.breakpoints.between(...d),c),s.only=(...d)=>t(e.breakpoints.only(...d),c),s.not=(...d)=>{const p=t(e.breakpoints.not(...d),c);return p.includes("not all and")?p.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):p}}const i={},l=s=>(r(i,s),i);return r(l),{...e,containerQueries:l}}const Fs={xs:0,sm:600,md:900,lg:1200,xl:1536},Gb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Fs[e]}px)`},nR={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Fs[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function aa(e,t,r){const i=e.theme||{};if(Array.isArray(t)){const s=i.breakpoints||Gb;return t.reduce((c,d,p)=>(c[s.up(s.keys[p])]=r(t[p]),c),{})}if(typeof t=="object"){const s=i.breakpoints||Gb;return Object.keys(t).reduce((c,d)=>{if(J8(s.keys,d)){const p=eR(i.containerQueries?i:nR,d);p&&(c[p]=r(t[d],d))}else if(Object.keys(s.values||Fs).includes(d)){const p=s.up(d);c[p]=r(t[d],d)}else{const p=d;c[p]=t[p]}return c},{})}return r(t)}function rR(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((i,l)=>{const s=e.up(l);return i[s]={},i},{}))||{}}function aR(e,t){return e.reduce((r,i)=>{const l=r[i];return(!l||Object.keys(l).length===0)&&delete r[i],r},t)}function zs(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const i=`vars.${t}`.split(".").reduce((l,s)=>l&&l[s]?l[s]:null,e);if(i!=null)return i}return t.split(".").reduce((i,l)=>i&&i[l]!=null?i[l]:null,e)}function Ys(e,t,r,i=r){let l;return typeof e=="function"?l=e(r):Array.isArray(e)?l=e[r]||i:l=zs(e,r)||i,t&&(l=t(l,i,e)),l}function Kt(e){const{prop:t,cssProperty:r=e.prop,themeKey:i,transform:l}=e,s=c=>{if(c[t]==null)return null;const d=c[t],p=c.theme,m=zs(p,i)||{};return aa(c,d,E=>{let S=Ys(m,l,E);return E===S&&typeof E=="string"&&(S=Ys(m,l,`${t}${E==="default"?"":_t(E)}`,E)),r===!1?S:{[r]:S}})};return s.propTypes={},s.filterProps=[t],s}function iR(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const uR={m:"margin",p:"padding"},lR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Xb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},oR=iR(e=>{if(e.length>2)if(Xb[e])e=Xb[e];else return[e];const[t,r]=e.split(""),i=uR[t],l=lR[r]||"";return Array.isArray(l)?l.map(s=>i+s):[i+l]}),Vd=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Vd,...$d];function Nl(e,t,r,i){const l=zs(e,t,!0)??r;return typeof l=="number"||typeof l=="string"?s=>typeof s=="string"?s:typeof l=="string"?`calc(${s} * ${l})`:l*s:Array.isArray(l)?s=>{if(typeof s=="string")return s;const c=Math.abs(s),d=l[c];return s>=0?d:typeof d=="number"?-d:`-${d}`}:typeof l=="function"?l:()=>{}}function qd(e){return Nl(e,"spacing",8)}function kl(e,t){return typeof t=="string"||t==null?t:e(t)}function sR(e,t){return r=>e.reduce((i,l)=>(i[l]=kl(t,r),i),{})}function cR(e,t,r,i){if(!t.includes(r))return null;const l=oR(r),s=sR(l,i),c=e[r];return aa(e,c,s)}function Qb(e,t){const r=qd(e.theme);return Object.keys(e).map(i=>cR(e,t,i,r)).reduce(Ol,{})}function jt(e){return Qb(e,Vd)}jt.propTypes={},jt.filterProps=Vd;function Vt(e){return Qb(e,$d)}Vt.propTypes={},Vt.filterProps=$d;function js(...e){const t=e.reduce((i,l)=>(l.filterProps.forEach(s=>{i[s]=l}),i),{}),r=i=>Object.keys(i).reduce((l,s)=>t[s]?Ol(l,t[s](i)):l,{});return r.propTypes={},r.filterProps=e.reduce((i,l)=>i.concat(l.filterProps),[]),r}function dr(e){return typeof e!="number"?e:`${e}px solid`}function hr(e,t){return Kt({prop:e,themeKey:"borders",transform:t})}const fR=hr("border",dr),dR=hr("borderTop",dr),hR=hr("borderRight",dr),pR=hr("borderBottom",dr),mR=hr("borderLeft",dr),gR=hr("borderColor"),bR=hr("borderTopColor"),ER=hr("borderRightColor"),yR=hr("borderBottomColor"),TR=hr("borderLeftColor"),SR=hr("outline",dr),CR=hr("outlineColor"),Vs=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Nl(e.theme,"shape.borderRadius",4),r=i=>({borderRadius:kl(t,i)});return aa(e,e.borderRadius,r)}return null};Vs.propTypes={},Vs.filterProps=["borderRadius"],js(fR,dR,hR,pR,mR,gR,bR,ER,yR,TR,Vs,SR,CR);const $s=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Nl(e.theme,"spacing",8),r=i=>({gap:kl(t,i)});return aa(e,e.gap,r)}return null};$s.propTypes={},$s.filterProps=["gap"];const qs=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Nl(e.theme,"spacing",8),r=i=>({columnGap:kl(t,i)});return aa(e,e.columnGap,r)}return null};qs.propTypes={},qs.filterProps=["columnGap"];const Gs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Nl(e.theme,"spacing",8),r=i=>({rowGap:kl(t,i)});return aa(e,e.rowGap,r)}return null};Gs.propTypes={},Gs.filterProps=["rowGap"];const AR=Kt({prop:"gridColumn"}),xR=Kt({prop:"gridRow"}),_R=Kt({prop:"gridAutoFlow"}),vR=Kt({prop:"gridAutoColumns"}),RR=Kt({prop:"gridAutoRows"}),OR=Kt({prop:"gridTemplateColumns"}),NR=Kt({prop:"gridTemplateRows"}),kR=Kt({prop:"gridTemplateAreas"}),DR=Kt({prop:"gridArea"});js($s,qs,Gs,AR,xR,_R,vR,RR,OR,NR,kR,DR);function iu(e,t){return t==="grey"?t:e}const LR=Kt({prop:"color",themeKey:"palette",transform:iu}),IR=Kt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:iu}),wR=Kt({prop:"backgroundColor",themeKey:"palette",transform:iu});js(LR,IR,wR);function Jn(e){return e<=1&&e!==0?`${e*100}%`:e}const MR=Kt({prop:"width",transform:Jn}),Gd=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var l,s,c,d,p;const i=((c=(s=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:s.values)==null?void 0:c[r])||Fs[r];return i?((p=(d=e.theme)==null?void 0:d.breakpoints)==null?void 0:p.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Jn(r)}};return aa(e,e.maxWidth,t)}return null};Gd.filterProps=["maxWidth"];const BR=Kt({prop:"minWidth",transform:Jn}),PR=Kt({prop:"height",transform:Jn}),UR=Kt({prop:"maxHeight",transform:Jn}),HR=Kt({prop:"minHeight",transform:Jn});Kt({prop:"size",cssProperty:"width",transform:Jn}),Kt({prop:"size",cssProperty:"height",transform:Jn});const FR=Kt({prop:"boxSizing"});js(MR,Gd,BR,PR,UR,HR,FR);const Dl={border:{themeKey:"borders",transform:dr},borderTop:{themeKey:"borders",transform:dr},borderRight:{themeKey:"borders",transform:dr},borderBottom:{themeKey:"borders",transform:dr},borderLeft:{themeKey:"borders",transform:dr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:dr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Vs},color:{themeKey:"palette",transform:iu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:iu},backgroundColor:{themeKey:"palette",transform:iu},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:jt},mt:{style:jt},mr:{style:jt},mb:{style:jt},ml:{style:jt},mx:{style:jt},my:{style:jt},margin:{style:jt},marginTop:{style:jt},marginRight:{style:jt},marginBottom:{style:jt},marginLeft:{style:jt},marginX:{style:jt},marginY:{style:jt},marginInline:{style:jt},marginInlineStart:{style:jt},marginInlineEnd:{style:jt},marginBlock:{style:jt},marginBlockStart:{style:jt},marginBlockEnd:{style:jt},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:$s},rowGap:{style:Gs},columnGap:{style:qs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Jn},maxWidth:{style:Gd},minWidth:{transform:Jn},height:{transform:Jn},maxHeight:{transform:Jn},minHeight:{transform:Jn},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 zR(...e){const t=e.reduce((i,l)=>i.concat(Object.keys(l)),[]),r=new Set(t);return e.every(i=>r.size===Object.keys(i).length)}function YR(e,t){return typeof e=="function"?e(t):e}function jR(){function e(r,i,l,s){const c={[r]:i,theme:l},d=s[r];if(!d)return{[r]:i};const{cssProperty:p=r,themeKey:m,transform:b,style:E}=d;if(i==null)return null;if(m==="typography"&&i==="inherit")return{[r]:i};const S=zs(l,m)||{};return E?E(c):aa(c,i,O=>{let _=Ys(S,b,O);return O===_&&typeof O=="string"&&(_=Ys(S,b,`${r}${O==="default"?"":_t(O)}`,O)),p===!1?_:{[p]:_}})}function t(r){const{sx:i,theme:l={}}=r||{};if(!i)return null;const s=l.unstable_sxConfig??Dl;function c(d){let p=d;if(typeof d=="function")p=d(l);else if(typeof d!="object")return d;if(!p)return null;const m=rR(l.breakpoints),b=Object.keys(m);let E=m;return Object.keys(p).forEach(S=>{const y=YR(p[S],l);if(y!=null)if(typeof y=="object")if(s[S])E=Ol(E,e(S,y,l,s));else{const O=aa({theme:l},y,_=>({[S]:_}));zR(O,y)?E[S]=t({sx:y,theme:l}):E=Ol(E,O)}else E=Ol(E,e(S,y,l,s))}),Z8(l,aR(b,E))}return Array.isArray(i)?i.map(c):c(i)}return t}const di=jR();di.filterProps=["sx"];const VR=e=>{var i;const t={systemProps:{},otherProps:{}},r=((i=e==null?void 0:e.theme)==null?void 0:i.unstable_sxConfig)??Dl;return Object.keys(e).forEach(l=>{r[l]?t.systemProps[l]=e[l]:t.otherProps[l]=e[l]}),t};function $R(e){const{sx:t,...r}=e,{systemProps:i,otherProps:l}=VR(r);let s;return Array.isArray(t)?s=[i,...t]:typeof t=="function"?s=(...c)=>{const d=t(...c);return Yr(d)?{...i,...d}:i}:s={...i,...t},{...l,sx:s}}function qR(e){return e==null||Object.keys(e).length===0}function Kb(e){const{styles:t,defaultTheme:r={}}=e,i=typeof t=="function"?l=>t(qR(l)?r:l):t;return me.jsx(LC,{styles:i})}/**
79
79
  * @mui/styled-engine v6.1.6
80
80
  *
81
81
  * @license MIT
82
82
  * This source code is licensed under the MIT license found in the
83
83
  * LICENSE file in the root directory of this source tree.
84
- */function GR(e,t){return Fe(e,t)}function XR(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Wb=[];function Zb(e){return Wb[0]=e,hs(Wb)}const QR=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,i)=>r.val-i.val),t.reduce((r,i)=>({...r,[i.key]:i.val}),{})};function KR(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:i=5,...l}=e,s=QR(t),c=Object.keys(s);function d(S){return`@media (min-width:${typeof t[S]=="number"?t[S]:S}${r})`}function p(S){return`@media (max-width:${(typeof t[S]=="number"?t[S]:S)-i/100}${r})`}function m(S,y){const O=c.indexOf(y);return`@media (min-width:${typeof t[S]=="number"?t[S]:S}${r}) and (max-width:${(O!==-1&&typeof t[c[O]]=="number"?t[c[O]]:y)-i/100}${r})`}function b(S){return c.indexOf(S)+1<c.length?m(S,c[c.indexOf(S)+1]):d(S)}function E(S){const y=c.indexOf(S);return y===0?d(c[1]):y===c.length-1?p(c[y]):m(S,c[c.indexOf(S)+1]).replace("@media","@media not all and")}return{keys:c,values:s,up:d,down:p,between:m,only:b,not:E,unit:r,...l}}const WR={borderRadius:4};function Jb(e=8,t=qd({spacing:e})){if(e.mui)return e;const r=(...i)=>(i.length===0?[1]:i).map(s=>{const c=t(s);return typeof c=="number"?`${c}px`:c}).join(" ");return r.mui=!0,r}function ZR(e,t){var i;const r=this;if(r.vars){if(!((i=r.colorSchemes)!=null&&i[e])||typeof r.getColorSchemeSelector!="function")return{};let l=r.getColorSchemeSelector(e);return l==="&"?t:((l.includes("data-")||l.includes("."))&&(l=`*:where(${l.replace(/\s*&$/,"")}) &`),{[l]:t})}return r.palette.mode===e?t:{}}function Xd(e={},...t){const{breakpoints:r={},palette:i={},spacing:l,shape:s={},...c}=e,d=KR(r),p=Jb(l);let m=Pn({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:p,shape:{...WR,...s}},c);return m=tR(m),m.applyStyles=ZR,m=t.reduce((b,E)=>Pn(b,E),m),m.unstable_sxConfig={...Dl,...c==null?void 0:c.unstable_sxConfig},m.unstable_sx=function(E){return di({sx:E,theme:this})},m}function JR(e){return Object.keys(e).length===0}function eE(e=null){const t=x.useContext(rl);return!t||JR(t)?e:t}const eO=Xd();function Qd(e=eO){return eE(e)}function tO({styles:e,themeId:t,defaultTheme:r={}}){const i=Qd(r),l=typeof e=="function"?e(t&&i[t]||i):e;return me.jsx(Kb,{styles:l})}function tE(e){const{variants:t,...r}=e,i={variants:t,style:Zb(r),isProcessed:!0};return i.style===r||t&&t.forEach(l=>{typeof l.style!="function"&&(l.style=Zb(l.style))}),i}const nO=Xd();function Kd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function rO(e){return e?(t,r)=>r[e]:null}function aO(e,t,r){e.theme=lO(e.theme)?r:e.theme[t]||e.theme}function Xs(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>Xs(e,i));if(Array.isArray(r==null?void 0:r.variants)){let i;if(r.isProcessed)i=r.style;else{const{variants:l,...s}=r;i=s}return nE(e,r.variants,[i])}return r!=null&&r.isProcessed?r.style:r}function nE(e,t,r=[]){var l;let i;e:for(let s=0;s<t.length;s+=1){const c=t[s];if(typeof c.props=="function"){if(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),!c.props(i))continue}else for(const d in c.props)if(e[d]!==c.props[d]&&((l=e.ownerState)==null?void 0:l[d])!==c.props[d])continue e;typeof c.style=="function"?(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),r.push(c.style(i))):r.push(c.style)}return r}function iO(e={}){const{themeId:t,defaultTheme:r=nO,rootShouldForwardProp:i=Kd,slotShouldForwardProp:l=Kd}=e;function s(d){aO(d,t,r)}return(d,p={})=>{XR(d,L=>L.filter(M=>M!==di));const{name:m,slot:b,skipVariantsResolver:E,skipSx:S,overridesResolver:y=rO(sO(b)),...O}=p,_=E!==void 0?E:b&&b!=="Root"&&b!=="root"||!1,I=S||!1;let R=Kd;b==="Root"||b==="root"?R=i:b?R=l:oO(d)&&(R=void 0);const H=GR(d,{shouldForwardProp:R,label:uO(),...O}),k=L=>{if(typeof L=="function"&&L.__emotion_real!==L)return function(j){return Xs(j,L)};if(Yr(L)){const M=tE(L);return M.variants?function(ae){return Xs(ae,M)}:M.style}return L},P=(...L)=>{const M=[],j=L.map(k),ae=[];if(M.push(s),m&&y&&ae.push(function(W){var K,se;const Q=(se=(K=W.theme.components)==null?void 0:K[m])==null?void 0:se.styleOverrides;if(!Q)return null;const te={};for(const re in Q)te[re]=Xs(W,Q[re]);return y(W,te)}),m&&!_&&ae.push(function(W){var te,K;const X=W.theme,Q=(K=(te=X==null?void 0:X.components)==null?void 0:te[m])==null?void 0:K.variants;return Q?nE(W,Q):null}),I||ae.push(di),Array.isArray(j[0])){const Y=j.shift(),W=new Array(M.length).fill(""),X=new Array(ae.length).fill("");let Q;Q=[...W,...Y,...X],Q.raw=[...W,...Y.raw,...X],M.unshift(Q)}const V=[...M,...j,...ae],A=H(...V);return d.muiName&&(A.muiName=d.muiName),A};return H.withConfig&&(P.withConfig=H.withConfig),P}}function uO(e,t){return void 0}function lO(e){for(const t in e)return!1;return!0}function oO(e){return typeof e=="string"&&e.charCodeAt(0)>96}function sO(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function cO(e){const{theme:t,name:r,props:i}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?i:Bs(t.components[r].defaultProps,i)}function fO({props:e,name:t,defaultTheme:r,themeId:i}){let l=Qd(r);return l=l[i]||l,cO({theme:l,name:t,props:e})}function Wd(e,t=0,r=1){return B8(e,t,r)}function dO(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(i=>i+i)),r?`rgb${r.length===4?"a":""}(${r.map((i,l)=>l<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function La(e){if(e.type)return e;if(e.charAt(0)==="#")return La(dO(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(ka(9,e));let i=e.substring(t+1,e.length-1),l;if(r==="color"){if(i=i.split(" "),l=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(l))throw new Error(ka(10,l))}else i=i.split(",");return i=i.map(s=>parseFloat(s)),{type:r,values:i,colorSpace:l}}const hO=e=>{const t=La(e);return t.values.slice(0,3).map((r,i)=>t.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")},Ll=(e,t)=>{try{return hO(e)}catch{return e}};function Qs(e){const{type:t,colorSpace:r}=e;let{values:i}=e;return t.includes("rgb")?i=i.map((l,s)=>s<3?parseInt(l,10):l):t.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.includes("color")?i=`${r} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function rE(e){e=La(e);const{values:t}=e,r=t[0],i=t[1]/100,l=t[2]/100,s=i*Math.min(l,1-l),c=(m,b=(m+r/30)%12)=>l-s*Math.max(Math.min(b-3,9-b,1),-1);let d="rgb";const p=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return e.type==="hsla"&&(d+="a",p.push(t[3])),Qs({type:d,values:p})}function Zd(e){e=La(e);let t=e.type==="hsl"||e.type==="hsla"?La(rE(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function pO(e,t){const r=Zd(e),i=Zd(t);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}function Il(e,t){return e=La(e),t=Wd(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Qs(e)}function Ks(e,t,r){try{return Il(e,t)}catch{return e}}function wl(e,t){if(e=La(e),t=Wd(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Qs(e)}function vt(e,t,r){try{return wl(e,t)}catch{return e}}function Ml(e,t){if(e=La(e),t=Wd(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Qs(e)}function Rt(e,t,r){try{return Ml(e,t)}catch{return e}}function mO(e,t=.15){return Zd(e)>.5?wl(e,t):Ml(e,t)}function Ws(e,t,r){try{return mO(e,t)}catch{return e}}const aE=x.createContext(null);function Jd(){return x.useContext(aE)}const gO=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function bO(e,t){return typeof t=="function"?t(e):{...e,...t}}function EO(e){const{children:t,theme:r}=e,i=Jd(),l=x.useMemo(()=>{const s=i===null?{...r}:bO(i,r);return s!=null&&(s[gO]=i!==null),s},[r,i]);return me.jsx(aE.Provider,{value:l,children:t})}const iE=x.createContext(void 0);function yO({value:e,children:t}){return me.jsx(iE.Provider,{value:e,children:t})}function TO(e){const{theme:t,name:r,props:i}=e;if(!t||!t.components||!t.components[r])return i;const l=t.components[r];return l.defaultProps?Bs(l.defaultProps,i):!l.styleOverrides&&!l.variants?Bs(l,i):i}function SO({props:e,name:t}){const r=x.useContext(iE);return TO({props:e,name:t,theme:{components:r}})}const uE={};function lE(e,t,r,i=!1){return x.useMemo(()=>{const l=e&&t[e]||t;if(typeof r=="function"){const s=r(l),c=e?{...t,[e]:s}:s;return i?()=>c:c}return e?{...t,[e]:r}:{...t,...r}},[e,t,r,i])}function oE(e){const{children:t,theme:r,themeId:i}=e,l=eE(uE),s=Jd()||uE,c=lE(i,l,r),d=lE(i,s,r,!0),p=c.direction==="rtl";return me.jsx(EO,{theme:d,children:me.jsx(rl.Provider,{value:c,children:me.jsx(R8,{value:p,children:me.jsx(yO,{value:c==null?void 0:c.components,children:t})})})})}const sE={theme:void 0};function CO(e){let t,r;return function(l){let s=t;return(s===void 0||l.theme!==r)&&(sE.theme=l.theme,s=tE(e(sE)),t=s,r=l.theme),s}}const e0="mode",t0="color-scheme",AO="data-color-scheme";function xO(e){const{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:i="dark",modeStorageKey:l=e0,colorSchemeStorageKey:s=t0,attribute:c=AO,colorSchemeNode:d="document.documentElement",nonce:p}=e||{};let m="",b=c;if(c==="class"&&(b=".%s"),c==="data"&&(b="[data-%s]"),b.startsWith(".")){const S=b.substring(1);m+=`${d}.classList.remove('${S}'.replace('%s', light), '${S}'.replace('%s', dark));
84
+ */function GR(e,t){return Fe(e,t)}function XR(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Wb=[];function Zb(e){return Wb[0]=e,hs(Wb)}const QR=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,i)=>r.val-i.val),t.reduce((r,i)=>({...r,[i.key]:i.val}),{})};function KR(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:i=5,...l}=e,s=QR(t),c=Object.keys(s);function d(S){return`@media (min-width:${typeof t[S]=="number"?t[S]:S}${r})`}function p(S){return`@media (max-width:${(typeof t[S]=="number"?t[S]:S)-i/100}${r})`}function m(S,y){const O=c.indexOf(y);return`@media (min-width:${typeof t[S]=="number"?t[S]:S}${r}) and (max-width:${(O!==-1&&typeof t[c[O]]=="number"?t[c[O]]:y)-i/100}${r})`}function b(S){return c.indexOf(S)+1<c.length?m(S,c[c.indexOf(S)+1]):d(S)}function E(S){const y=c.indexOf(S);return y===0?d(c[1]):y===c.length-1?p(c[y]):m(S,c[c.indexOf(S)+1]).replace("@media","@media not all and")}return{keys:c,values:s,up:d,down:p,between:m,only:b,not:E,unit:r,...l}}const WR={borderRadius:4};function Jb(e=8,t=qd({spacing:e})){if(e.mui)return e;const r=(...i)=>(i.length===0?[1]:i).map(s=>{const c=t(s);return typeof c=="number"?`${c}px`:c}).join(" ");return r.mui=!0,r}function ZR(e,t){var i;const r=this;if(r.vars){if(!((i=r.colorSchemes)!=null&&i[e])||typeof r.getColorSchemeSelector!="function")return{};let l=r.getColorSchemeSelector(e);return l==="&"?t:((l.includes("data-")||l.includes("."))&&(l=`*:where(${l.replace(/\s*&$/,"")}) &`),{[l]:t})}return r.palette.mode===e?t:{}}function Xd(e={},...t){const{breakpoints:r={},palette:i={},spacing:l,shape:s={},...c}=e,d=KR(r),p=Jb(l);let m=Pn({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:p,shape:{...WR,...s}},c);return m=tR(m),m.applyStyles=ZR,m=t.reduce((b,E)=>Pn(b,E),m),m.unstable_sxConfig={...Dl,...c==null?void 0:c.unstable_sxConfig},m.unstable_sx=function(E){return di({sx:E,theme:this})},m}function JR(e){return Object.keys(e).length===0}function eE(e=null){const t=x.useContext(rl);return!t||JR(t)?e:t}const eO=Xd();function Qd(e=eO){return eE(e)}function tO({styles:e,themeId:t,defaultTheme:r={}}){const i=Qd(r),l=typeof e=="function"?e(t&&i[t]||i):e;return me.jsx(Kb,{styles:l})}function tE(e){const{variants:t,...r}=e,i={variants:t,style:Zb(r),isProcessed:!0};return i.style===r||t&&t.forEach(l=>{typeof l.style!="function"&&(l.style=Zb(l.style))}),i}const nO=Xd();function Kd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function rO(e){return e?(t,r)=>r[e]:null}function aO(e,t,r){e.theme=lO(e.theme)?r:e.theme[t]||e.theme}function Xs(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>Xs(e,i));if(Array.isArray(r==null?void 0:r.variants)){let i;if(r.isProcessed)i=r.style;else{const{variants:l,...s}=r;i=s}return nE(e,r.variants,[i])}return r!=null&&r.isProcessed?r.style:r}function nE(e,t,r=[]){var l;let i;e:for(let s=0;s<t.length;s+=1){const c=t[s];if(typeof c.props=="function"){if(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),!c.props(i))continue}else for(const d in c.props)if(e[d]!==c.props[d]&&((l=e.ownerState)==null?void 0:l[d])!==c.props[d])continue e;typeof c.style=="function"?(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),r.push(c.style(i))):r.push(c.style)}return r}function iO(e={}){const{themeId:t,defaultTheme:r=nO,rootShouldForwardProp:i=Kd,slotShouldForwardProp:l=Kd}=e;function s(d){aO(d,t,r)}return(d,p={})=>{XR(d,L=>L.filter(M=>M!==di));const{name:m,slot:b,skipVariantsResolver:E,skipSx:S,overridesResolver:y=rO(sO(b)),...O}=p,_=E!==void 0?E:b&&b!=="Root"&&b!=="root"||!1,I=S||!1;let v=Kd;b==="Root"||b==="root"?v=i:b?v=l:oO(d)&&(v=void 0);const H=GR(d,{shouldForwardProp:v,label:uO(),...O}),k=L=>{if(typeof L=="function"&&L.__emotion_real!==L)return function(j){return Xs(j,L)};if(Yr(L)){const M=tE(L);return M.variants?function(ae){return Xs(ae,M)}:M.style}return L},P=(...L)=>{const M=[],j=L.map(k),ae=[];if(M.push(s),m&&y&&ae.push(function(W){var K,se;const G=(se=(K=W.theme.components)==null?void 0:K[m])==null?void 0:se.styleOverrides;if(!G)return null;const ee={};for(const re in G)ee[re]=Xs(W,G[re]);return y(W,ee)}),m&&!_&&ae.push(function(W){var ee,K;const Q=W.theme,G=(K=(ee=Q==null?void 0:Q.components)==null?void 0:ee[m])==null?void 0:K.variants;return G?nE(W,G):null}),I||ae.push(di),Array.isArray(j[0])){const Y=j.shift(),W=new Array(M.length).fill(""),Q=new Array(ae.length).fill("");let G;G=[...W,...Y,...Q],G.raw=[...W,...Y.raw,...Q],M.unshift(G)}const V=[...M,...j,...ae],A=H(...V);return d.muiName&&(A.muiName=d.muiName),A};return H.withConfig&&(P.withConfig=H.withConfig),P}}function uO(e,t){return void 0}function lO(e){for(const t in e)return!1;return!0}function oO(e){return typeof e=="string"&&e.charCodeAt(0)>96}function sO(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function cO(e){const{theme:t,name:r,props:i}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?i:Bs(t.components[r].defaultProps,i)}function fO({props:e,name:t,defaultTheme:r,themeId:i}){let l=Qd(r);return l=l[i]||l,cO({theme:l,name:t,props:e})}function Wd(e,t=0,r=1){return B8(e,t,r)}function dO(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(i=>i+i)),r?`rgb${r.length===4?"a":""}(${r.map((i,l)=>l<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function La(e){if(e.type)return e;if(e.charAt(0)==="#")return La(dO(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(ka(9,e));let i=e.substring(t+1,e.length-1),l;if(r==="color"){if(i=i.split(" "),l=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(l))throw new Error(ka(10,l))}else i=i.split(",");return i=i.map(s=>parseFloat(s)),{type:r,values:i,colorSpace:l}}const hO=e=>{const t=La(e);return t.values.slice(0,3).map((r,i)=>t.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")},Ll=(e,t)=>{try{return hO(e)}catch{return e}};function Qs(e){const{type:t,colorSpace:r}=e;let{values:i}=e;return t.includes("rgb")?i=i.map((l,s)=>s<3?parseInt(l,10):l):t.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.includes("color")?i=`${r} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function rE(e){e=La(e);const{values:t}=e,r=t[0],i=t[1]/100,l=t[2]/100,s=i*Math.min(l,1-l),c=(m,b=(m+r/30)%12)=>l-s*Math.max(Math.min(b-3,9-b,1),-1);let d="rgb";const p=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return e.type==="hsla"&&(d+="a",p.push(t[3])),Qs({type:d,values:p})}function Zd(e){e=La(e);let t=e.type==="hsl"||e.type==="hsla"?La(rE(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function pO(e,t){const r=Zd(e),i=Zd(t);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}function Il(e,t){return e=La(e),t=Wd(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Qs(e)}function Ks(e,t,r){try{return Il(e,t)}catch{return e}}function wl(e,t){if(e=La(e),t=Wd(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Qs(e)}function vt(e,t,r){try{return wl(e,t)}catch{return e}}function Ml(e,t){if(e=La(e),t=Wd(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Qs(e)}function Rt(e,t,r){try{return Ml(e,t)}catch{return e}}function mO(e,t=.15){return Zd(e)>.5?wl(e,t):Ml(e,t)}function Ws(e,t,r){try{return mO(e,t)}catch{return e}}const aE=x.createContext(null);function Jd(){return x.useContext(aE)}const gO=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function bO(e,t){return typeof t=="function"?t(e):{...e,...t}}function EO(e){const{children:t,theme:r}=e,i=Jd(),l=x.useMemo(()=>{const s=i===null?{...r}:bO(i,r);return s!=null&&(s[gO]=i!==null),s},[r,i]);return me.jsx(aE.Provider,{value:l,children:t})}const iE=x.createContext(void 0);function yO({value:e,children:t}){return me.jsx(iE.Provider,{value:e,children:t})}function TO(e){const{theme:t,name:r,props:i}=e;if(!t||!t.components||!t.components[r])return i;const l=t.components[r];return l.defaultProps?Bs(l.defaultProps,i):!l.styleOverrides&&!l.variants?Bs(l,i):i}function SO({props:e,name:t}){const r=x.useContext(iE);return TO({props:e,name:t,theme:{components:r}})}const uE={};function lE(e,t,r,i=!1){return x.useMemo(()=>{const l=e&&t[e]||t;if(typeof r=="function"){const s=r(l),c=e?{...t,[e]:s}:s;return i?()=>c:c}return e?{...t,[e]:r}:{...t,...r}},[e,t,r,i])}function oE(e){const{children:t,theme:r,themeId:i}=e,l=eE(uE),s=Jd()||uE,c=lE(i,l,r),d=lE(i,s,r,!0),p=c.direction==="rtl";return me.jsx(EO,{theme:d,children:me.jsx(rl.Provider,{value:c,children:me.jsx(R8,{value:p,children:me.jsx(yO,{value:c==null?void 0:c.components,children:t})})})})}const sE={theme:void 0};function CO(e){let t,r;return function(l){let s=t;return(s===void 0||l.theme!==r)&&(sE.theme=l.theme,s=tE(e(sE)),t=s,r=l.theme),s}}const e0="mode",t0="color-scheme",AO="data-color-scheme";function xO(e){const{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:i="dark",modeStorageKey:l=e0,colorSchemeStorageKey:s=t0,attribute:c=AO,colorSchemeNode:d="document.documentElement",nonce:p}=e||{};let m="",b=c;if(c==="class"&&(b=".%s"),c==="data"&&(b="[data-%s]"),b.startsWith(".")){const S=b.substring(1);m+=`${d}.classList.remove('${S}'.replace('%s', light), '${S}'.replace('%s', dark));
85
85
  ${d}.classList.add('${S}'.replace('%s', colorScheme));`}const E=b.match(/\[([^\]]+)\]/);if(E){const[S,y]=E[1].split("=");y||(m+=`${d}.removeAttribute('${S}'.replace('%s', light));
86
86
  ${d}.removeAttribute('${S}'.replace('%s', dark));`),m+=`
87
87
  ${d}.setAttribute('${S}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else m+=`${d}.setAttribute('${b}', colorScheme);`;return me.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(function() {
@@ -108,14 +108,14 @@ try {
108
108
  if (colorScheme) {
109
109
  ${m}
110
110
  }
111
- } catch(e){}})();`}},"mui-color-scheme-init")}function cE(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function fE(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function _O(e){return fE(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function n0(e,t){if(typeof window>"u")return;let r;try{r=localStorage.getItem(e)||void 0,r||localStorage.setItem(e,t)}catch{}return r||t}function vO(e){const{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:i,supportedColorSchemes:l=[],modeStorageKey:s=e0,colorSchemeStorageKey:c=t0,storageWindow:d=typeof window>"u"?void 0:window}=e,p=l.join(","),m=l.length>1,[b,E]=x.useState(()=>{const k=n0(s,t),P=n0(`${c}-light`,r),L=n0(`${c}-dark`,i);return{mode:k,systemMode:cE(k),lightColorScheme:P,darkColorScheme:L}}),[,S]=x.useState(!1),y=x.useRef(!1);x.useEffect(()=>{m&&S(!0),y.current=!0},[m]);const O=_O(b),_=x.useCallback(k=>{E(P=>{if(k===P.mode)return P;const L=k??t;try{localStorage.setItem(s,L)}catch{}return{...P,mode:L,systemMode:cE(L)}})},[s,t]),I=x.useCallback(k=>{k?typeof k=="string"?k&&!p.includes(k)?console.error(`\`${k}\` does not exist in \`theme.colorSchemes\`.`):E(P=>{const L={...P};return fE(P,M=>{try{localStorage.setItem(`${c}-${M}`,k)}catch{}M==="light"&&(L.lightColorScheme=k),M==="dark"&&(L.darkColorScheme=k)}),L}):E(P=>{const L={...P},M=k.light===null?r:k.light,j=k.dark===null?i:k.dark;if(M)if(!p.includes(M))console.error(`\`${M}\` does not exist in \`theme.colorSchemes\`.`);else{L.lightColorScheme=M;try{localStorage.setItem(`${c}-light`,M)}catch{}}if(j)if(!p.includes(j))console.error(`\`${j}\` does not exist in \`theme.colorSchemes\`.`);else{L.darkColorScheme=j;try{localStorage.setItem(`${c}-dark`,j)}catch{}}return L}):E(P=>{try{localStorage.setItem(`${c}-light`,r),localStorage.setItem(`${c}-dark`,i)}catch{}return{...P,lightColorScheme:r,darkColorScheme:i}})},[p,c,r,i]),R=x.useCallback(k=>{b.mode==="system"&&E(P=>{const L=k!=null&&k.matches?"dark":"light";return P.systemMode===L?P:{...P,systemMode:L}})},[b.mode]),H=x.useRef(R);return H.current=R,x.useEffect(()=>{if(typeof window.matchMedia!="function"||!m)return;const k=(...L)=>H.current(...L),P=window.matchMedia("(prefers-color-scheme: dark)");return P.addListener(k),k(P),()=>{P.removeListener(k)}},[m]),x.useEffect(()=>{if(d&&m){const k=P=>{const L=P.newValue;typeof P.key=="string"&&P.key.startsWith(c)&&(!L||p.match(L))&&(P.key.endsWith("light")&&I({light:L}),P.key.endsWith("dark")&&I({dark:L})),P.key===s&&(!L||["light","dark","system"].includes(L))&&_(L||t)};return d.addEventListener("storage",k),()=>{d.removeEventListener("storage",k)}}},[I,_,s,c,p,t,d,m]),{...b,mode:y.current||!m?b.mode:void 0,systemMode:y.current||!m?b.systemMode:void 0,colorScheme:y.current||!m?O:void 0,setMode:_,setColorScheme:I}}const RO="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function OO(e){const{themeId:t,theme:r={},modeStorageKey:i=e0,colorSchemeStorageKey:l=t0,disableTransitionOnChange:s=!1,defaultColorScheme:c,resolveTheme:d}=e,p={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},m=x.createContext(void 0),b=()=>x.useContext(m)||p;function E(_){var _n,we,Xe,$t,ee;const{children:I,theme:R,modeStorageKey:H=i,colorSchemeStorageKey:k=l,disableTransitionOnChange:P=s,storageWindow:L=typeof window>"u"?void 0:window,documentNode:M=typeof document>"u"?void 0:document,colorSchemeNode:j=typeof document>"u"?void 0:document.documentElement,disableNestedContext:ae=!1,disableStyleSheetGeneration:V=!1,defaultMode:A="system"}=_,Y=x.useRef(!1),W=Jd(),X=x.useContext(m),Q=!!X&&!ae,te=x.useMemo(()=>R||(typeof r=="function"?r():r),[R]),K=te[t],{colorSchemes:se={},components:re={},cssVarPrefix:be,...C}=K||te,J=Object.keys(se).filter(de=>!!se[de]).join(","),oe=x.useMemo(()=>J.split(","),[J]),D=typeof c=="string"?c:c.light,ce=typeof c=="string"?c:c.dark,Oe=se[D]&&se[ce]?A:((we=(_n=se[C.defaultColorScheme])==null?void 0:_n.palette)==null?void 0:we.mode)||((Xe=C.palette)==null?void 0:Xe.mode),{mode:Se,setMode:tt,systemMode:Me,lightColorScheme:$e,darkColorScheme:xe,colorScheme:Ge,setColorScheme:ve}=vO({supportedColorSchemes:oe,defaultLightColorScheme:D,defaultDarkColorScheme:ce,modeStorageKey:H,colorSchemeStorageKey:k,defaultMode:Oe,storageWindow:L});let Re=Se,Ce=Ge;Q&&(Re=X.mode,Ce=X.colorScheme);const Be=Ce||C.defaultColorScheme,it=(($t=C.generateThemeVars)==null?void 0:$t.call(C))||C.vars,je={...C,components:re,colorSchemes:se,cssVarPrefix:be,vars:it};if(typeof je.generateSpacing=="function"&&(je.spacing=je.generateSpacing()),Be){const de=se[Be];de&&typeof de=="object"&&Object.keys(de).forEach(Ae=>{de[Ae]&&typeof de[Ae]=="object"?je[Ae]={...je[Ae],...de[Ae]}:je[Ae]=de[Ae]})}const Ue=C.colorSchemeSelector;x.useEffect(()=>{if(Ce&&j&&Ue&&Ue!=="media"){const de=Ue;let Ae=Ue;if(de==="class"&&(Ae=".%s"),de==="data"&&(Ae="[data-%s]"),de!=null&&de.startsWith("data-")&&!de.includes("%s")&&(Ae=`[${de}="%s"]`),Ae.startsWith("."))j.classList.remove(...oe.map(He=>Ae.substring(1).replace("%s",He))),j.classList.add(Ae.substring(1).replace("%s",Ce));else{const He=Ae.replace("%s",Ce).match(/\[([^\]]+)\]/);if(He){const[nt,Qe]=He[1].split("=");Qe||oe.forEach(vn=>{j.removeAttribute(nt.replace(Ce,vn))}),j.setAttribute(nt,Qe?Qe.replace(/"|'/g,""):"")}else j.setAttribute(Ae,Ce)}}},[Ce,Ue,j,oe]),x.useEffect(()=>{let de;if(P&&Y.current&&M){const Ae=M.createElement("style");Ae.appendChild(M.createTextNode(RO)),M.head.appendChild(Ae),window.getComputedStyle(M.body),de=setTimeout(()=>{M.head.removeChild(Ae)},1)}return()=>{clearTimeout(de)}},[Ce,P,M]),x.useEffect(()=>(Y.current=!0,()=>{Y.current=!1}),[]);const ct=x.useMemo(()=>({allColorSchemes:oe,colorScheme:Ce,darkColorScheme:xe,lightColorScheme:$e,mode:Re,setColorScheme:ve,setMode:tt,systemMode:Me}),[oe,Ce,xe,$e,Re,ve,tt,Me]);let St=!0;(V||C.cssVariables===!1||Q&&(W==null?void 0:W.cssVarPrefix)===be)&&(St=!1);const rn=me.jsxs(x.Fragment,{children:[me.jsx(oE,{themeId:K?t:void 0,theme:d?d(je):je,children:I}),St&&me.jsx(Kb,{styles:((ee=je.generateStyleSheets)==null?void 0:ee.call(je))||[]})]});return Q?rn:me.jsx(m.Provider,{value:ct,children:rn})}const S=typeof c=="string"?c:c.light,y=typeof c=="string"?c:c.dark;return{CssVarsProvider:E,useColorScheme:b,getInitColorSchemeScript:_=>xO({colorSchemeStorageKey:l,defaultLightColorScheme:S,defaultDarkColorScheme:y,modeStorageKey:i,..._})}}function NO(e=""){function t(...i){if(!i.length)return"";const l=i[0];return typeof l=="string"&&!l.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${l}${t(...i.slice(1))})`:`, ${l}`}return(i,...l)=>`var(--${e?`${e}-`:""}${i}${t(...l)})`}const dE=(e,t,r,i=[])=>{let l=e;t.forEach((s,c)=>{c===t.length-1?Array.isArray(l)?l[Number(s)]=r:l&&typeof l=="object"&&(l[s]=r):l&&typeof l=="object"&&(l[s]||(l[s]=i.includes(s)?[]:{}),l=l[s])})},kO=(e,t,r)=>{function i(l,s=[],c=[]){Object.entries(l).forEach(([d,p])=>{(!r||r&&!r([...s,d]))&&p!=null&&(typeof p=="object"&&Object.keys(p).length>0?i(p,[...s,d],Array.isArray(p)?[...c,d]:c):t([...s,d],p,c))})}i(e)},DO=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function r0(e,t){const{prefix:r,shouldSkipGeneratingVar:i}=t||{},l={},s={},c={};return kO(e,(d,p,m)=>{if((typeof p=="string"||typeof p=="number")&&(!i||!i(d,p))){const b=`--${r?`${r}-`:""}${d.join("-")}`,E=DO(d,p);Object.assign(l,{[b]:E}),dE(s,d,`var(${b})`,m),dE(c,d,`var(${b}, ${E})`,m)}},d=>d[0]==="vars"),{css:l,vars:s,varsWithDefaults:c}}function LO(e,t={}){const{getSelector:r=I,disableCssColorScheme:i,colorSchemeSelector:l}=t,{colorSchemes:s={},components:c,defaultColorScheme:d="light",...p}=e,{vars:m,css:b,varsWithDefaults:E}=r0(p,t);let S=E;const y={},{[d]:O,..._}=s;if(Object.entries(_||{}).forEach(([k,P])=>{const{vars:L,css:M,varsWithDefaults:j}=r0(P,t);S=Pn(S,j),y[k]={css:M,vars:L}}),O){const{css:k,vars:P,varsWithDefaults:L}=r0(O,t);S=Pn(S,L),y[d]={css:k,vars:P}}function I(k,P){var M,j;let L=l;if(l==="class"&&(L=".%s"),l==="data"&&(L="[data-%s]"),l!=null&&l.startsWith("data-")&&!l.includes("%s")&&(L=`[${l}="%s"]`),k){if(L==="media")return e.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${((j=(M=s[k])==null?void 0:M.palette)==null?void 0:j.mode)||k})`]:{":root":P}};if(L)return e.defaultColorScheme===k?`:root, ${L.replace("%s",String(k))}`:L.replace("%s",String(k))}return":root"}return{vars:S,generateThemeVars:()=>{let k={...m};return Object.entries(y).forEach(([,{vars:P}])=>{k=Pn(k,P)}),k},generateStyleSheets:()=>{var ae,V;const k=[],P=e.defaultColorScheme||"light";function L(A,Y){Object.keys(Y).length&&k.push(typeof A=="string"?{[A]:{...Y}}:A)}L(r(void 0,{...b}),b);const{[P]:M,...j}=y;if(M){const{css:A}=M,Y=(V=(ae=s[P])==null?void 0:ae.palette)==null?void 0:V.mode,W=!i&&Y?{colorScheme:Y,...A}:{...A};L(r(P,{...W}),W)}return Object.entries(j).forEach(([A,{css:Y}])=>{var Q,te;const W=(te=(Q=s[A])==null?void 0:Q.palette)==null?void 0:te.mode,X=!i&&W?{colorScheme:W,...Y}:{...Y};L(r(A,{...X}),X)}),k}}}function IO(e){return function(r){return e==="media"?`@media (prefers-color-scheme: ${r})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const Bl={black:"#000",white:"#fff"},wO={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"},uu={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},lu={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Pl={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},ou={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},su={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},cu={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function hE(){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:Bl.white,default:Bl.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 MO=hE();function pE(){return{text:{primary:Bl.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:Bl.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 mE=pE();function gE(e,t,r,i){const l=i.light||i,s=i.dark||i*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Ml(e.main,l):t==="dark"&&(e.dark=wl(e.main,s)))}function BO(e="light"){return e==="dark"?{main:ou[200],light:ou[50],dark:ou[400]}:{main:ou[700],light:ou[400],dark:ou[800]}}function PO(e="light"){return e==="dark"?{main:uu[200],light:uu[50],dark:uu[400]}:{main:uu[500],light:uu[300],dark:uu[700]}}function UO(e="light"){return e==="dark"?{main:lu[500],light:lu[300],dark:lu[700]}:{main:lu[700],light:lu[400],dark:lu[800]}}function HO(e="light"){return e==="dark"?{main:su[400],light:su[300],dark:su[700]}:{main:su[700],light:su[500],dark:su[900]}}function FO(e="light"){return e==="dark"?{main:cu[400],light:cu[300],dark:cu[700]}:{main:cu[800],light:cu[500],dark:cu[900]}}function zO(e="light"){return e==="dark"?{main:Pl[400],light:Pl[300],dark:Pl[700]}:{main:"#ed6c02",light:Pl[500],dark:Pl[900]}}function a0(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:i=.2,...l}=e,s=e.primary||BO(t),c=e.secondary||PO(t),d=e.error||UO(t),p=e.info||HO(t),m=e.success||FO(t),b=e.warning||zO(t);function E(_){return pO(_,mE.text.primary)>=r?mE.text.primary:MO.text.primary}const S=({color:_,name:I,mainShade:R=500,lightShade:H=300,darkShade:k=700})=>{if(_={..._},!_.main&&_[R]&&(_.main=_[R]),!_.hasOwnProperty("main"))throw new Error(ka(11,I?` (${I})`:"",R));if(typeof _.main!="string")throw new Error(ka(12,I?` (${I})`:"",JSON.stringify(_.main)));return gE(_,"light",H,i),gE(_,"dark",k,i),_.contrastText||(_.contrastText=E(_.main)),_};let y;return t==="light"?y=hE():t==="dark"&&(y=pE()),Pn({common:{...Bl},mode:t,primary:S({color:s,name:"primary"}),secondary:S({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:S({color:d,name:"error"}),warning:S({color:b,name:"warning"}),info:S({color:p,name:"info"}),success:S({color:m,name:"success"}),grey:wO,contrastThreshold:r,getContrastText:E,augmentColor:S,tonalOffset:i,...y},l)}function YO(e){const t={};return Object.entries(e).forEach(i=>{const[l,s]=i;typeof s=="object"&&(t[l]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function jO(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function VO(e){return Math.round(e*1e5)/1e5}const bE={textTransform:"uppercase"},EE='"Roboto", "Helvetica", "Arial", sans-serif';function yE(e,t){const{fontFamily:r=EE,fontSize:i=14,fontWeightLight:l=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:p=16,allVariants:m,pxToRem:b,...E}=typeof t=="function"?t(e):t,S=i/14,y=b||(I=>`${I/p*S}rem`),O=(I,R,H,k,P)=>({fontFamily:r,fontWeight:I,fontSize:y(R),lineHeight:H,...r===EE?{letterSpacing:`${VO(k/R)}em`}:{},...P,...m}),_={h1:O(l,96,1.167,-1.5),h2:O(l,60,1.2,-.5),h3:O(s,48,1.167,0),h4:O(s,34,1.235,.25),h5:O(s,24,1.334,0),h6:O(c,20,1.6,.15),subtitle1:O(s,16,1.75,.15),subtitle2:O(c,14,1.57,.1),body1:O(s,16,1.5,.15),body2:O(s,14,1.43,.15),button:O(c,14,1.75,.4,bE),caption:O(s,12,1.66,.4),overline:O(s,12,2.66,1,bE),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pn({htmlFontSize:p,pxToRem:y,fontFamily:r,fontSize:i,fontWeightLight:l,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,..._},E,{clone:!1})}const $O=.2,qO=.14,GO=.12;function Ut(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${$O})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${qO})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${GO})`].join(",")}const XO=["none",Ut(0,2,1,-1,0,1,1,0,0,1,3,0),Ut(0,3,1,-2,0,2,2,0,0,1,5,0),Ut(0,3,3,-2,0,3,4,0,0,1,8,0),Ut(0,2,4,-1,0,4,5,0,0,1,10,0),Ut(0,3,5,-1,0,5,8,0,0,1,14,0),Ut(0,3,5,-1,0,6,10,0,0,1,18,0),Ut(0,4,5,-2,0,7,10,1,0,2,16,1),Ut(0,5,5,-3,0,8,10,1,0,3,14,2),Ut(0,5,6,-3,0,9,12,1,0,3,16,2),Ut(0,6,6,-3,0,10,14,1,0,4,18,3),Ut(0,6,7,-4,0,11,15,1,0,4,20,3),Ut(0,7,8,-4,0,12,17,2,0,5,22,4),Ut(0,7,8,-4,0,13,19,2,0,5,24,4),Ut(0,7,9,-4,0,14,21,2,0,5,26,4),Ut(0,8,9,-5,0,15,22,2,0,6,28,5),Ut(0,8,10,-5,0,16,24,2,0,6,30,5),Ut(0,8,11,-5,0,17,26,2,0,6,32,5),Ut(0,9,11,-5,0,18,28,2,0,7,34,6),Ut(0,9,12,-6,0,19,29,2,0,7,36,6),Ut(0,10,13,-6,0,20,31,3,0,8,38,7),Ut(0,10,13,-6,0,21,33,3,0,8,40,7),Ut(0,10,14,-6,0,22,35,3,0,8,42,7),Ut(0,11,14,-7,0,23,36,3,0,9,44,8),Ut(0,11,15,-7,0,24,38,3,0,9,46,8)],QO={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)"},KO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function TE(e){return`${Math.round(e)}ms`}function WO(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function ZO(e){const t={...QO,...e.easing},r={...KO,...e.duration};return{getAutoHeightDuration:WO,create:(l=["all"],s={})=>{const{duration:c=r.standard,easing:d=t.easeInOut,delay:p=0,...m}=s;return(Array.isArray(l)?l:[l]).map(b=>`${b} ${typeof c=="string"?c:TE(c)} ${d} ${typeof p=="string"?p:TE(p)}`).join(",")},...e,easing:t,duration:r}}const JO={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function eN(e){return Yr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function SE(e={}){const t={...e};function r(i){const l=Object.entries(i);for(let s=0;s<l.length;s++){const[c,d]=l[s];!eN(d)||c.startsWith("unstable_")?delete i[c]:Yr(d)&&(i[c]={...d},r(i[c]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
111
+ } catch(e){}})();`}},"mui-color-scheme-init")}function cE(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function fE(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function _O(e){return fE(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function n0(e,t){if(typeof window>"u")return;let r;try{r=localStorage.getItem(e)||void 0,r||localStorage.setItem(e,t)}catch{}return r||t}function vO(e){const{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:i,supportedColorSchemes:l=[],modeStorageKey:s=e0,colorSchemeStorageKey:c=t0,storageWindow:d=typeof window>"u"?void 0:window}=e,p=l.join(","),m=l.length>1,[b,E]=x.useState(()=>{const k=n0(s,t),P=n0(`${c}-light`,r),L=n0(`${c}-dark`,i);return{mode:k,systemMode:cE(k),lightColorScheme:P,darkColorScheme:L}}),[,S]=x.useState(!1),y=x.useRef(!1);x.useEffect(()=>{m&&S(!0),y.current=!0},[m]);const O=_O(b),_=x.useCallback(k=>{E(P=>{if(k===P.mode)return P;const L=k??t;try{localStorage.setItem(s,L)}catch{}return{...P,mode:L,systemMode:cE(L)}})},[s,t]),I=x.useCallback(k=>{k?typeof k=="string"?k&&!p.includes(k)?console.error(`\`${k}\` does not exist in \`theme.colorSchemes\`.`):E(P=>{const L={...P};return fE(P,M=>{try{localStorage.setItem(`${c}-${M}`,k)}catch{}M==="light"&&(L.lightColorScheme=k),M==="dark"&&(L.darkColorScheme=k)}),L}):E(P=>{const L={...P},M=k.light===null?r:k.light,j=k.dark===null?i:k.dark;if(M)if(!p.includes(M))console.error(`\`${M}\` does not exist in \`theme.colorSchemes\`.`);else{L.lightColorScheme=M;try{localStorage.setItem(`${c}-light`,M)}catch{}}if(j)if(!p.includes(j))console.error(`\`${j}\` does not exist in \`theme.colorSchemes\`.`);else{L.darkColorScheme=j;try{localStorage.setItem(`${c}-dark`,j)}catch{}}return L}):E(P=>{try{localStorage.setItem(`${c}-light`,r),localStorage.setItem(`${c}-dark`,i)}catch{}return{...P,lightColorScheme:r,darkColorScheme:i}})},[p,c,r,i]),v=x.useCallback(k=>{b.mode==="system"&&E(P=>{const L=k!=null&&k.matches?"dark":"light";return P.systemMode===L?P:{...P,systemMode:L}})},[b.mode]),H=x.useRef(v);return H.current=v,x.useEffect(()=>{if(typeof window.matchMedia!="function"||!m)return;const k=(...L)=>H.current(...L),P=window.matchMedia("(prefers-color-scheme: dark)");return P.addListener(k),k(P),()=>{P.removeListener(k)}},[m]),x.useEffect(()=>{if(d&&m){const k=P=>{const L=P.newValue;typeof P.key=="string"&&P.key.startsWith(c)&&(!L||p.match(L))&&(P.key.endsWith("light")&&I({light:L}),P.key.endsWith("dark")&&I({dark:L})),P.key===s&&(!L||["light","dark","system"].includes(L))&&_(L||t)};return d.addEventListener("storage",k),()=>{d.removeEventListener("storage",k)}}},[I,_,s,c,p,t,d,m]),{...b,mode:y.current||!m?b.mode:void 0,systemMode:y.current||!m?b.systemMode:void 0,colorScheme:y.current||!m?O:void 0,setMode:_,setColorScheme:I}}const RO="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function OO(e){const{themeId:t,theme:r={},modeStorageKey:i=e0,colorSchemeStorageKey:l=t0,disableTransitionOnChange:s=!1,defaultColorScheme:c,resolveTheme:d}=e,p={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},m=x.createContext(void 0),b=()=>x.useContext(m)||p;function E(_){var _n,we,Xe,$t,te;const{children:I,theme:v,modeStorageKey:H=i,colorSchemeStorageKey:k=l,disableTransitionOnChange:P=s,storageWindow:L=typeof window>"u"?void 0:window,documentNode:M=typeof document>"u"?void 0:document,colorSchemeNode:j=typeof document>"u"?void 0:document.documentElement,disableNestedContext:ae=!1,disableStyleSheetGeneration:V=!1,defaultMode:A="system"}=_,Y=x.useRef(!1),W=Jd(),Q=x.useContext(m),G=!!Q&&!ae,ee=x.useMemo(()=>v||(typeof r=="function"?r():r),[v]),K=ee[t],{colorSchemes:se={},components:re={},cssVarPrefix:be,...C}=K||ee,J=Object.keys(se).filter(de=>!!se[de]).join(","),oe=x.useMemo(()=>J.split(","),[J]),D=typeof c=="string"?c:c.light,ce=typeof c=="string"?c:c.dark,Oe=se[D]&&se[ce]?A:((we=(_n=se[C.defaultColorScheme])==null?void 0:_n.palette)==null?void 0:we.mode)||((Xe=C.palette)==null?void 0:Xe.mode),{mode:Se,setMode:tt,systemMode:Me,lightColorScheme:$e,darkColorScheme:xe,colorScheme:Ge,setColorScheme:ve}=vO({supportedColorSchemes:oe,defaultLightColorScheme:D,defaultDarkColorScheme:ce,modeStorageKey:H,colorSchemeStorageKey:k,defaultMode:Oe,storageWindow:L});let Re=Se,Ce=Ge;G&&(Re=Q.mode,Ce=Q.colorScheme);const Be=Ce||C.defaultColorScheme,it=(($t=C.generateThemeVars)==null?void 0:$t.call(C))||C.vars,je={...C,components:re,colorSchemes:se,cssVarPrefix:be,vars:it};if(typeof je.generateSpacing=="function"&&(je.spacing=je.generateSpacing()),Be){const de=se[Be];de&&typeof de=="object"&&Object.keys(de).forEach(Ae=>{de[Ae]&&typeof de[Ae]=="object"?je[Ae]={...je[Ae],...de[Ae]}:je[Ae]=de[Ae]})}const Ue=C.colorSchemeSelector;x.useEffect(()=>{if(Ce&&j&&Ue&&Ue!=="media"){const de=Ue;let Ae=Ue;if(de==="class"&&(Ae=".%s"),de==="data"&&(Ae="[data-%s]"),de!=null&&de.startsWith("data-")&&!de.includes("%s")&&(Ae=`[${de}="%s"]`),Ae.startsWith("."))j.classList.remove(...oe.map(He=>Ae.substring(1).replace("%s",He))),j.classList.add(Ae.substring(1).replace("%s",Ce));else{const He=Ae.replace("%s",Ce).match(/\[([^\]]+)\]/);if(He){const[nt,Qe]=He[1].split("=");Qe||oe.forEach(vn=>{j.removeAttribute(nt.replace(Ce,vn))}),j.setAttribute(nt,Qe?Qe.replace(/"|'/g,""):"")}else j.setAttribute(Ae,Ce)}}},[Ce,Ue,j,oe]),x.useEffect(()=>{let de;if(P&&Y.current&&M){const Ae=M.createElement("style");Ae.appendChild(M.createTextNode(RO)),M.head.appendChild(Ae),window.getComputedStyle(M.body),de=setTimeout(()=>{M.head.removeChild(Ae)},1)}return()=>{clearTimeout(de)}},[Ce,P,M]),x.useEffect(()=>(Y.current=!0,()=>{Y.current=!1}),[]);const ct=x.useMemo(()=>({allColorSchemes:oe,colorScheme:Ce,darkColorScheme:xe,lightColorScheme:$e,mode:Re,setColorScheme:ve,setMode:tt,systemMode:Me}),[oe,Ce,xe,$e,Re,ve,tt,Me]);let St=!0;(V||C.cssVariables===!1||G&&(W==null?void 0:W.cssVarPrefix)===be)&&(St=!1);const rn=me.jsxs(x.Fragment,{children:[me.jsx(oE,{themeId:K?t:void 0,theme:d?d(je):je,children:I}),St&&me.jsx(Kb,{styles:((te=je.generateStyleSheets)==null?void 0:te.call(je))||[]})]});return G?rn:me.jsx(m.Provider,{value:ct,children:rn})}const S=typeof c=="string"?c:c.light,y=typeof c=="string"?c:c.dark;return{CssVarsProvider:E,useColorScheme:b,getInitColorSchemeScript:_=>xO({colorSchemeStorageKey:l,defaultLightColorScheme:S,defaultDarkColorScheme:y,modeStorageKey:i,..._})}}function NO(e=""){function t(...i){if(!i.length)return"";const l=i[0];return typeof l=="string"&&!l.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${l}${t(...i.slice(1))})`:`, ${l}`}return(i,...l)=>`var(--${e?`${e}-`:""}${i}${t(...l)})`}const dE=(e,t,r,i=[])=>{let l=e;t.forEach((s,c)=>{c===t.length-1?Array.isArray(l)?l[Number(s)]=r:l&&typeof l=="object"&&(l[s]=r):l&&typeof l=="object"&&(l[s]||(l[s]=i.includes(s)?[]:{}),l=l[s])})},kO=(e,t,r)=>{function i(l,s=[],c=[]){Object.entries(l).forEach(([d,p])=>{(!r||r&&!r([...s,d]))&&p!=null&&(typeof p=="object"&&Object.keys(p).length>0?i(p,[...s,d],Array.isArray(p)?[...c,d]:c):t([...s,d],p,c))})}i(e)},DO=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function r0(e,t){const{prefix:r,shouldSkipGeneratingVar:i}=t||{},l={},s={},c={};return kO(e,(d,p,m)=>{if((typeof p=="string"||typeof p=="number")&&(!i||!i(d,p))){const b=`--${r?`${r}-`:""}${d.join("-")}`,E=DO(d,p);Object.assign(l,{[b]:E}),dE(s,d,`var(${b})`,m),dE(c,d,`var(${b}, ${E})`,m)}},d=>d[0]==="vars"),{css:l,vars:s,varsWithDefaults:c}}function LO(e,t={}){const{getSelector:r=I,disableCssColorScheme:i,colorSchemeSelector:l}=t,{colorSchemes:s={},components:c,defaultColorScheme:d="light",...p}=e,{vars:m,css:b,varsWithDefaults:E}=r0(p,t);let S=E;const y={},{[d]:O,..._}=s;if(Object.entries(_||{}).forEach(([k,P])=>{const{vars:L,css:M,varsWithDefaults:j}=r0(P,t);S=Pn(S,j),y[k]={css:M,vars:L}}),O){const{css:k,vars:P,varsWithDefaults:L}=r0(O,t);S=Pn(S,L),y[d]={css:k,vars:P}}function I(k,P){var M,j;let L=l;if(l==="class"&&(L=".%s"),l==="data"&&(L="[data-%s]"),l!=null&&l.startsWith("data-")&&!l.includes("%s")&&(L=`[${l}="%s"]`),k){if(L==="media")return e.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${((j=(M=s[k])==null?void 0:M.palette)==null?void 0:j.mode)||k})`]:{":root":P}};if(L)return e.defaultColorScheme===k?`:root, ${L.replace("%s",String(k))}`:L.replace("%s",String(k))}return":root"}return{vars:S,generateThemeVars:()=>{let k={...m};return Object.entries(y).forEach(([,{vars:P}])=>{k=Pn(k,P)}),k},generateStyleSheets:()=>{var ae,V;const k=[],P=e.defaultColorScheme||"light";function L(A,Y){Object.keys(Y).length&&k.push(typeof A=="string"?{[A]:{...Y}}:A)}L(r(void 0,{...b}),b);const{[P]:M,...j}=y;if(M){const{css:A}=M,Y=(V=(ae=s[P])==null?void 0:ae.palette)==null?void 0:V.mode,W=!i&&Y?{colorScheme:Y,...A}:{...A};L(r(P,{...W}),W)}return Object.entries(j).forEach(([A,{css:Y}])=>{var G,ee;const W=(ee=(G=s[A])==null?void 0:G.palette)==null?void 0:ee.mode,Q=!i&&W?{colorScheme:W,...Y}:{...Y};L(r(A,{...Q}),Q)}),k}}}function IO(e){return function(r){return e==="media"?`@media (prefers-color-scheme: ${r})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const Bl={black:"#000",white:"#fff"},wO={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"},uu={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},lu={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Pl={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},ou={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},su={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},cu={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function hE(){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:Bl.white,default:Bl.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 MO=hE();function pE(){return{text:{primary:Bl.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:Bl.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 mE=pE();function gE(e,t,r,i){const l=i.light||i,s=i.dark||i*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Ml(e.main,l):t==="dark"&&(e.dark=wl(e.main,s)))}function BO(e="light"){return e==="dark"?{main:ou[200],light:ou[50],dark:ou[400]}:{main:ou[700],light:ou[400],dark:ou[800]}}function PO(e="light"){return e==="dark"?{main:uu[200],light:uu[50],dark:uu[400]}:{main:uu[500],light:uu[300],dark:uu[700]}}function UO(e="light"){return e==="dark"?{main:lu[500],light:lu[300],dark:lu[700]}:{main:lu[700],light:lu[400],dark:lu[800]}}function HO(e="light"){return e==="dark"?{main:su[400],light:su[300],dark:su[700]}:{main:su[700],light:su[500],dark:su[900]}}function FO(e="light"){return e==="dark"?{main:cu[400],light:cu[300],dark:cu[700]}:{main:cu[800],light:cu[500],dark:cu[900]}}function zO(e="light"){return e==="dark"?{main:Pl[400],light:Pl[300],dark:Pl[700]}:{main:"#ed6c02",light:Pl[500],dark:Pl[900]}}function a0(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:i=.2,...l}=e,s=e.primary||BO(t),c=e.secondary||PO(t),d=e.error||UO(t),p=e.info||HO(t),m=e.success||FO(t),b=e.warning||zO(t);function E(_){return pO(_,mE.text.primary)>=r?mE.text.primary:MO.text.primary}const S=({color:_,name:I,mainShade:v=500,lightShade:H=300,darkShade:k=700})=>{if(_={..._},!_.main&&_[v]&&(_.main=_[v]),!_.hasOwnProperty("main"))throw new Error(ka(11,I?` (${I})`:"",v));if(typeof _.main!="string")throw new Error(ka(12,I?` (${I})`:"",JSON.stringify(_.main)));return gE(_,"light",H,i),gE(_,"dark",k,i),_.contrastText||(_.contrastText=E(_.main)),_};let y;return t==="light"?y=hE():t==="dark"&&(y=pE()),Pn({common:{...Bl},mode:t,primary:S({color:s,name:"primary"}),secondary:S({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:S({color:d,name:"error"}),warning:S({color:b,name:"warning"}),info:S({color:p,name:"info"}),success:S({color:m,name:"success"}),grey:wO,contrastThreshold:r,getContrastText:E,augmentColor:S,tonalOffset:i,...y},l)}function YO(e){const t={};return Object.entries(e).forEach(i=>{const[l,s]=i;typeof s=="object"&&(t[l]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function jO(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function VO(e){return Math.round(e*1e5)/1e5}const bE={textTransform:"uppercase"},EE='"Roboto", "Helvetica", "Arial", sans-serif';function yE(e,t){const{fontFamily:r=EE,fontSize:i=14,fontWeightLight:l=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:p=16,allVariants:m,pxToRem:b,...E}=typeof t=="function"?t(e):t,S=i/14,y=b||(I=>`${I/p*S}rem`),O=(I,v,H,k,P)=>({fontFamily:r,fontWeight:I,fontSize:y(v),lineHeight:H,...r===EE?{letterSpacing:`${VO(k/v)}em`}:{},...P,...m}),_={h1:O(l,96,1.167,-1.5),h2:O(l,60,1.2,-.5),h3:O(s,48,1.167,0),h4:O(s,34,1.235,.25),h5:O(s,24,1.334,0),h6:O(c,20,1.6,.15),subtitle1:O(s,16,1.75,.15),subtitle2:O(c,14,1.57,.1),body1:O(s,16,1.5,.15),body2:O(s,14,1.43,.15),button:O(c,14,1.75,.4,bE),caption:O(s,12,1.66,.4),overline:O(s,12,2.66,1,bE),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pn({htmlFontSize:p,pxToRem:y,fontFamily:r,fontSize:i,fontWeightLight:l,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,..._},E,{clone:!1})}const $O=.2,qO=.14,GO=.12;function Ut(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${$O})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${qO})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${GO})`].join(",")}const XO=["none",Ut(0,2,1,-1,0,1,1,0,0,1,3,0),Ut(0,3,1,-2,0,2,2,0,0,1,5,0),Ut(0,3,3,-2,0,3,4,0,0,1,8,0),Ut(0,2,4,-1,0,4,5,0,0,1,10,0),Ut(0,3,5,-1,0,5,8,0,0,1,14,0),Ut(0,3,5,-1,0,6,10,0,0,1,18,0),Ut(0,4,5,-2,0,7,10,1,0,2,16,1),Ut(0,5,5,-3,0,8,10,1,0,3,14,2),Ut(0,5,6,-3,0,9,12,1,0,3,16,2),Ut(0,6,6,-3,0,10,14,1,0,4,18,3),Ut(0,6,7,-4,0,11,15,1,0,4,20,3),Ut(0,7,8,-4,0,12,17,2,0,5,22,4),Ut(0,7,8,-4,0,13,19,2,0,5,24,4),Ut(0,7,9,-4,0,14,21,2,0,5,26,4),Ut(0,8,9,-5,0,15,22,2,0,6,28,5),Ut(0,8,10,-5,0,16,24,2,0,6,30,5),Ut(0,8,11,-5,0,17,26,2,0,6,32,5),Ut(0,9,11,-5,0,18,28,2,0,7,34,6),Ut(0,9,12,-6,0,19,29,2,0,7,36,6),Ut(0,10,13,-6,0,20,31,3,0,8,38,7),Ut(0,10,13,-6,0,21,33,3,0,8,40,7),Ut(0,10,14,-6,0,22,35,3,0,8,42,7),Ut(0,11,14,-7,0,23,36,3,0,9,44,8),Ut(0,11,15,-7,0,24,38,3,0,9,46,8)],QO={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)"},KO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function TE(e){return`${Math.round(e)}ms`}function WO(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function ZO(e){const t={...QO,...e.easing},r={...KO,...e.duration};return{getAutoHeightDuration:WO,create:(l=["all"],s={})=>{const{duration:c=r.standard,easing:d=t.easeInOut,delay:p=0,...m}=s;return(Array.isArray(l)?l:[l]).map(b=>`${b} ${typeof c=="string"?c:TE(c)} ${d} ${typeof p=="string"?p:TE(p)}`).join(",")},...e,easing:t,duration:r}}const JO={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function eN(e){return Yr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function SE(e={}){const t={...e};function r(i){const l=Object.entries(i);for(let s=0;s<l.length;s++){const[c,d]=l[s];!eN(d)||c.startsWith("unstable_")?delete i[c]:Yr(d)&&(i[c]={...d},r(i[c]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
112
112
 
113
113
  const theme = ${JSON.stringify(t,null,2)};
114
114
 
115
115
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
116
116
  theme.transitions = createTransitions(theme.transitions || {});
117
117
 
118
- export default theme;`}function i0(e={},...t){const{breakpoints:r,mixins:i={},spacing:l,palette:s={},transitions:c={},typography:d={},shape:p,...m}=e;if(e.vars)throw new Error(ka(20));const b=a0(s),E=Xd(e);let S=Pn(E,{mixins:jO(E.breakpoints,i),palette:b,shadows:XO.slice(),typography:yE(b,d),transitions:ZO(c),zIndex:{...JO}});return S=Pn(S,m),S=t.reduce((y,O)=>Pn(y,O),S),S.unstable_sxConfig={...Dl,...m==null?void 0:m.unstable_sxConfig},S.unstable_sx=function(O){return di({sx:O,theme:this})},S.toRuntimeSource=SE,S}function u0(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const tN=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=u0(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function CE(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function AE(e){return e==="dark"?tN:[]}function nN(e){const{palette:t={mode:"light"},opacity:r,overlays:i,...l}=e,s=a0(t);return{palette:s,opacity:{...CE(s.mode),...r},overlays:i||AE(s.mode),...l}}function rN(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const aN=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],iN=e=>(t,r)=>{const i=e.rootSelector||":root",l=e.colorSchemeSelector;let s=l;if(l==="class"&&(s=".%s"),l==="data"&&(s="[data-%s]"),l!=null&&l.startsWith("data-")&&!l.includes("%s")&&(s=`[${l}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const c={};return aN(e.cssVarPrefix).forEach(d=>{c[d]=r[d],delete r[d]}),s==="media"?{[i]:r,"@media (prefers-color-scheme: dark)":{[i]:c}}:s?{[s.replace("%s",t)]:c,[`${i}, ${s.replace("%s",t)}`]:r}:{[i]:{...r,...c}}}if(s&&s!=="media")return`${i}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[i]:r}};if(s)return s.replace("%s",String(t))}return i};function uN(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function ie(e,t,r){!e[t]&&r&&(e[t]=r)}function Ul(e){return!e||!e.startsWith("hsl")?e:rE(e)}function ia(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ll(Ul(e[t])))}function lN(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Vr=e=>{try{return e()}catch{}},oN=(e="mui")=>NO(e);function l0(e,t,r,i){if(!t)return;t=t===!0?{}:t;const l=i==="dark"?"dark":"light";if(!r){e[i]=nN({...t,palette:{mode:l,...t==null?void 0:t.palette}});return}const{palette:s,...c}=i0({...r,palette:{mode:l,...t==null?void 0:t.palette}});return e[i]={...t,palette:s,opacity:{...CE(l),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||AE(l)},c}function sN(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:i,disableCssColorScheme:l=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:c=rN,colorSchemeSelector:d=r.light&&r.dark?"media":void 0,rootSelector:p=":root",...m}=e,b=Object.keys(r)[0],E=i||(r.light&&b!=="light"?"light":b),S=oN(s),{[E]:y,light:O,dark:_,...I}=r,R={...I};let H=y;if((E==="dark"&&!("dark"in r)||E==="light"&&!("light"in r))&&(H=!0),!H)throw new Error(ka(21,E));const k=l0(R,H,m,E);O&&!R.light&&l0(R,O,void 0,"light"),_&&!R.dark&&l0(R,_,void 0,"dark");let P={defaultColorScheme:E,...k,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:p,getCssVar:S,colorSchemes:R,font:{...YO(k.typography),...k.font},spacing:lN(m.spacing)};Object.keys(P.colorSchemes).forEach(V=>{const A=P.colorSchemes[V].palette,Y=W=>{const X=W.split("-"),Q=X[1],te=X[2];return S(W,A[Q][te])};if(A.mode==="light"&&(ie(A.common,"background","#fff"),ie(A.common,"onBackground","#000")),A.mode==="dark"&&(ie(A.common,"background","#000"),ie(A.common,"onBackground","#fff")),uN(A,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),A.mode==="light"){ie(A.Alert,"errorColor",vt(A.error.light,.6)),ie(A.Alert,"infoColor",vt(A.info.light,.6)),ie(A.Alert,"successColor",vt(A.success.light,.6)),ie(A.Alert,"warningColor",vt(A.warning.light,.6)),ie(A.Alert,"errorFilledBg",Y("palette-error-main")),ie(A.Alert,"infoFilledBg",Y("palette-info-main")),ie(A.Alert,"successFilledBg",Y("palette-success-main")),ie(A.Alert,"warningFilledBg",Y("palette-warning-main")),ie(A.Alert,"errorFilledColor",Vr(()=>A.getContrastText(A.error.main))),ie(A.Alert,"infoFilledColor",Vr(()=>A.getContrastText(A.info.main))),ie(A.Alert,"successFilledColor",Vr(()=>A.getContrastText(A.success.main))),ie(A.Alert,"warningFilledColor",Vr(()=>A.getContrastText(A.warning.main))),ie(A.Alert,"errorStandardBg",Rt(A.error.light,.9)),ie(A.Alert,"infoStandardBg",Rt(A.info.light,.9)),ie(A.Alert,"successStandardBg",Rt(A.success.light,.9)),ie(A.Alert,"warningStandardBg",Rt(A.warning.light,.9)),ie(A.Alert,"errorIconColor",Y("palette-error-main")),ie(A.Alert,"infoIconColor",Y("palette-info-main")),ie(A.Alert,"successIconColor",Y("palette-success-main")),ie(A.Alert,"warningIconColor",Y("palette-warning-main")),ie(A.AppBar,"defaultBg",Y("palette-grey-100")),ie(A.Avatar,"defaultBg",Y("palette-grey-400")),ie(A.Button,"inheritContainedBg",Y("palette-grey-300")),ie(A.Button,"inheritContainedHoverBg",Y("palette-grey-A100")),ie(A.Chip,"defaultBorder",Y("palette-grey-400")),ie(A.Chip,"defaultAvatarColor",Y("palette-grey-700")),ie(A.Chip,"defaultIconColor",Y("palette-grey-700")),ie(A.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ie(A.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ie(A.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ie(A.LinearProgress,"primaryBg",Rt(A.primary.main,.62)),ie(A.LinearProgress,"secondaryBg",Rt(A.secondary.main,.62)),ie(A.LinearProgress,"errorBg",Rt(A.error.main,.62)),ie(A.LinearProgress,"infoBg",Rt(A.info.main,.62)),ie(A.LinearProgress,"successBg",Rt(A.success.main,.62)),ie(A.LinearProgress,"warningBg",Rt(A.warning.main,.62)),ie(A.Skeleton,"bg",`rgba(${Y("palette-text-primaryChannel")} / 0.11)`),ie(A.Slider,"primaryTrack",Rt(A.primary.main,.62)),ie(A.Slider,"secondaryTrack",Rt(A.secondary.main,.62)),ie(A.Slider,"errorTrack",Rt(A.error.main,.62)),ie(A.Slider,"infoTrack",Rt(A.info.main,.62)),ie(A.Slider,"successTrack",Rt(A.success.main,.62)),ie(A.Slider,"warningTrack",Rt(A.warning.main,.62));const W=Ws(A.background.default,.8);ie(A.SnackbarContent,"bg",W),ie(A.SnackbarContent,"color",Vr(()=>A.getContrastText(W))),ie(A.SpeedDialAction,"fabHoverBg",Ws(A.background.paper,.15)),ie(A.StepConnector,"border",Y("palette-grey-400")),ie(A.StepContent,"border",Y("palette-grey-400")),ie(A.Switch,"defaultColor",Y("palette-common-white")),ie(A.Switch,"defaultDisabledColor",Y("palette-grey-100")),ie(A.Switch,"primaryDisabledColor",Rt(A.primary.main,.62)),ie(A.Switch,"secondaryDisabledColor",Rt(A.secondary.main,.62)),ie(A.Switch,"errorDisabledColor",Rt(A.error.main,.62)),ie(A.Switch,"infoDisabledColor",Rt(A.info.main,.62)),ie(A.Switch,"successDisabledColor",Rt(A.success.main,.62)),ie(A.Switch,"warningDisabledColor",Rt(A.warning.main,.62)),ie(A.TableCell,"border",Rt(Ks(A.divider,1),.88)),ie(A.Tooltip,"bg",Ks(A.grey[700],.92))}if(A.mode==="dark"){ie(A.Alert,"errorColor",Rt(A.error.light,.6)),ie(A.Alert,"infoColor",Rt(A.info.light,.6)),ie(A.Alert,"successColor",Rt(A.success.light,.6)),ie(A.Alert,"warningColor",Rt(A.warning.light,.6)),ie(A.Alert,"errorFilledBg",Y("palette-error-dark")),ie(A.Alert,"infoFilledBg",Y("palette-info-dark")),ie(A.Alert,"successFilledBg",Y("palette-success-dark")),ie(A.Alert,"warningFilledBg",Y("palette-warning-dark")),ie(A.Alert,"errorFilledColor",Vr(()=>A.getContrastText(A.error.dark))),ie(A.Alert,"infoFilledColor",Vr(()=>A.getContrastText(A.info.dark))),ie(A.Alert,"successFilledColor",Vr(()=>A.getContrastText(A.success.dark))),ie(A.Alert,"warningFilledColor",Vr(()=>A.getContrastText(A.warning.dark))),ie(A.Alert,"errorStandardBg",vt(A.error.light,.9)),ie(A.Alert,"infoStandardBg",vt(A.info.light,.9)),ie(A.Alert,"successStandardBg",vt(A.success.light,.9)),ie(A.Alert,"warningStandardBg",vt(A.warning.light,.9)),ie(A.Alert,"errorIconColor",Y("palette-error-main")),ie(A.Alert,"infoIconColor",Y("palette-info-main")),ie(A.Alert,"successIconColor",Y("palette-success-main")),ie(A.Alert,"warningIconColor",Y("palette-warning-main")),ie(A.AppBar,"defaultBg",Y("palette-grey-900")),ie(A.AppBar,"darkBg",Y("palette-background-paper")),ie(A.AppBar,"darkColor",Y("palette-text-primary")),ie(A.Avatar,"defaultBg",Y("palette-grey-600")),ie(A.Button,"inheritContainedBg",Y("palette-grey-800")),ie(A.Button,"inheritContainedHoverBg",Y("palette-grey-700")),ie(A.Chip,"defaultBorder",Y("palette-grey-700")),ie(A.Chip,"defaultAvatarColor",Y("palette-grey-300")),ie(A.Chip,"defaultIconColor",Y("palette-grey-300")),ie(A.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ie(A.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ie(A.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ie(A.LinearProgress,"primaryBg",vt(A.primary.main,.5)),ie(A.LinearProgress,"secondaryBg",vt(A.secondary.main,.5)),ie(A.LinearProgress,"errorBg",vt(A.error.main,.5)),ie(A.LinearProgress,"infoBg",vt(A.info.main,.5)),ie(A.LinearProgress,"successBg",vt(A.success.main,.5)),ie(A.LinearProgress,"warningBg",vt(A.warning.main,.5)),ie(A.Skeleton,"bg",`rgba(${Y("palette-text-primaryChannel")} / 0.13)`),ie(A.Slider,"primaryTrack",vt(A.primary.main,.5)),ie(A.Slider,"secondaryTrack",vt(A.secondary.main,.5)),ie(A.Slider,"errorTrack",vt(A.error.main,.5)),ie(A.Slider,"infoTrack",vt(A.info.main,.5)),ie(A.Slider,"successTrack",vt(A.success.main,.5)),ie(A.Slider,"warningTrack",vt(A.warning.main,.5));const W=Ws(A.background.default,.98);ie(A.SnackbarContent,"bg",W),ie(A.SnackbarContent,"color",Vr(()=>A.getContrastText(W))),ie(A.SpeedDialAction,"fabHoverBg",Ws(A.background.paper,.15)),ie(A.StepConnector,"border",Y("palette-grey-600")),ie(A.StepContent,"border",Y("palette-grey-600")),ie(A.Switch,"defaultColor",Y("palette-grey-300")),ie(A.Switch,"defaultDisabledColor",Y("palette-grey-600")),ie(A.Switch,"primaryDisabledColor",vt(A.primary.main,.55)),ie(A.Switch,"secondaryDisabledColor",vt(A.secondary.main,.55)),ie(A.Switch,"errorDisabledColor",vt(A.error.main,.55)),ie(A.Switch,"infoDisabledColor",vt(A.info.main,.55)),ie(A.Switch,"successDisabledColor",vt(A.success.main,.55)),ie(A.Switch,"warningDisabledColor",vt(A.warning.main,.55)),ie(A.TableCell,"border",vt(Ks(A.divider,1),.68)),ie(A.Tooltip,"bg",Ks(A.grey[700],.92))}ia(A.background,"default"),ia(A.background,"paper"),ia(A.common,"background"),ia(A.common,"onBackground"),ia(A,"divider"),Object.keys(A).forEach(W=>{const X=A[W];X&&typeof X=="object"&&(X.main&&ie(A[W],"mainChannel",Ll(Ul(X.main))),X.light&&ie(A[W],"lightChannel",Ll(Ul(X.light))),X.dark&&ie(A[W],"darkChannel",Ll(Ul(X.dark))),X.contrastText&&ie(A[W],"contrastTextChannel",Ll(Ul(X.contrastText))),W==="text"&&(ia(A[W],"primary"),ia(A[W],"secondary")),W==="action"&&(X.active&&ia(A[W],"active"),X.selected&&ia(A[W],"selected")))})}),P=t.reduce((V,A)=>Pn(V,A),P);const L={prefix:s,disableCssColorScheme:l,shouldSkipGeneratingVar:c,getSelector:iN(P)},{vars:M,generateThemeVars:j,generateStyleSheets:ae}=LO(P,L);return P.vars=M,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([V,A])=>{P[V]=A}),P.generateThemeVars=j,P.generateStyleSheets=ae,P.generateSpacing=function(){return Jb(m.spacing,qd(this))},P.getColorSchemeSelector=IO(d),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=c,P.unstable_sxConfig={...Dl,...m==null?void 0:m.unstable_sxConfig},P.unstable_sx=function(A){return di({sx:A,theme:this})},P.toRuntimeSource=SE,P}function xE(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:a0({...r===!0?{}:r.palette,mode:t})})}function Zs(e={},...t){const{palette:r,cssVariables:i=!1,colorSchemes:l=r?void 0:{light:!0},defaultColorScheme:s=r==null?void 0:r.mode,...c}=e,d=s||"light",p=l==null?void 0:l[d],m={...l,...r?{[d]:{...typeof p!="boolean"&&p,palette:r}}:void 0};if(i===!1){if(!("colorSchemes"in e))return i0(e,...t);let b=r;"palette"in e||m[d]&&(m[d]!==!0?b=m[d].palette:d==="dark"&&(b={mode:"dark"}));const E=i0({...e,palette:b},...t);return E.defaultColorScheme=d,E.colorSchemes=m,E.palette.mode==="light"&&(E.colorSchemes.light={...m.light!==!0&&m.light,palette:E.palette},xE(E,"dark",m.dark)),E.palette.mode==="dark"&&(E.colorSchemes.dark={...m.dark!==!0&&m.dark,palette:E.palette},xE(E,"light",m.light)),E}return!r&&!("light"in m)&&d==="light"&&(m.light=!0),sN({...c,colorSchemes:m,defaultColorScheme:d,...typeof i!="boolean"&&i},...t)}const Js=Zs(),$r="$$material";function Hl(){const e=Qd(Js);return e[$r]||e}function cN(e){return me.jsx(tO,{...e,defaultTheme:Js,themeId:$r})}function fN(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const _E=e=>fN(e)&&e!=="classes",Ot=iO({themeId:$r,defaultTheme:Js,rootShouldForwardProp:_E});function dN(e){return function(r){return me.jsx(cN,{styles:typeof e=="function"?i=>e({theme:i,...r}):e})}}function hN(){return $R}const Fn=CO;function zn(e){return SO(e)}function fu(e,t){const{className:r,elementType:i,ownerState:l,externalForwardedProps:s,getSlotOwnerState:c,internalForwardedProps:d,...p}=t,{component:m,slots:b={[e]:void 0},slotProps:E={[e]:void 0},...S}=s,y=b[e]||i,O=jb(E[e],l),{props:{component:_,...I},internalRef:R}=Yb({className:r,...p,externalForwardedProps:e==="root"?S:void 0,externalSlotProps:O}),H=fr(R,O==null?void 0:O.ref,t.ref),k=c?c(I):{},P={...l,...k},L=e==="root"?_||m:_,M=Hb(y,{...e==="root"&&!m&&!b[e]&&d,...e!=="root"&&!b[e]&&d,...I,...L&&{as:L},ref:H},P);return Object.keys(k).forEach(j=>{delete M[j]}),[y,M]}function vE(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.includes(i))continue;r[i]=e[i]}return r}function o0(e,t){return o0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},o0(e,t)}function RE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o0(e,t)}const OE={disabled:!1},ec=xt.createContext(null);var pN=function(t){return t.scrollTop},Fl="unmounted",hi="exited",pi="entering",du="entered",s0="exiting",qr=function(e){RE(t,e);function t(i,l){var s;s=e.call(this,i,l)||this;var c=l,d=c&&!c.isMounting?i.enter:i.appear,p;return s.appearStatus=null,i.in?d?(p=hi,s.appearStatus=pi):p=du:i.unmountOnExit||i.mountOnEnter?p=Fl:p=hi,s.state={status:p},s.nextCallback=null,s}t.getDerivedStateFromProps=function(l,s){var c=l.in;return c&&s.status===Fl?{status:hi}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(l){var s=null;if(l!==this.props){var c=this.state.status;this.props.in?c!==pi&&c!==du&&(s=pi):(c===pi||c===du)&&(s=s0)}this.updateStatus(!1,s)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var l=this.props.timeout,s,c,d;return s=c=d=l,l!=null&&typeof l!="number"&&(s=l.exit,c=l.enter,d=l.appear!==void 0?l.appear:c),{exit:s,enter:c,appear:d}},r.updateStatus=function(l,s){if(l===void 0&&(l=!1),s!==null)if(this.cancelNextCallback(),s===pi){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:Hs.findDOMNode(this);c&&pN(c)}this.performEnter(l)}else this.performExit();else this.props.unmountOnExit&&this.state.status===hi&&this.setState({status:Fl})},r.performEnter=function(l){var s=this,c=this.props.enter,d=this.context?this.context.isMounting:l,p=this.props.nodeRef?[d]:[Hs.findDOMNode(this),d],m=p[0],b=p[1],E=this.getTimeouts(),S=d?E.appear:E.enter;if(!l&&!c||OE.disabled){this.safeSetState({status:du},function(){s.props.onEntered(m)});return}this.props.onEnter(m,b),this.safeSetState({status:pi},function(){s.props.onEntering(m,b),s.onTransitionEnd(S,function(){s.safeSetState({status:du},function(){s.props.onEntered(m,b)})})})},r.performExit=function(){var l=this,s=this.props.exit,c=this.getTimeouts(),d=this.props.nodeRef?void 0:Hs.findDOMNode(this);if(!s||OE.disabled){this.safeSetState({status:hi},function(){l.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:s0},function(){l.props.onExiting(d),l.onTransitionEnd(c.exit,function(){l.safeSetState({status:hi},function(){l.props.onExited(d)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(l,s){s=this.setNextCallback(s),this.setState(l,s)},r.setNextCallback=function(l){var s=this,c=!0;return this.nextCallback=function(d){c&&(c=!1,s.nextCallback=null,l(d))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},r.onTransitionEnd=function(l,s){this.setNextCallback(s);var c=this.props.nodeRef?this.props.nodeRef.current:Hs.findDOMNode(this),d=l==null&&!this.props.addEndListener;if(!c||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var p=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],m=p[0],b=p[1];this.props.addEndListener(m,b)}l!=null&&setTimeout(this.nextCallback,l)},r.render=function(){var l=this.state.status;if(l===Fl)return null;var s=this.props,c=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var d=vE(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return xt.createElement(ec.Provider,{value:null},typeof c=="function"?c(l,d):xt.cloneElement(xt.Children.only(c),d))},t}(xt.Component);qr.contextType=ec,qr.propTypes={};function hu(){}qr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:hu,onEntering:hu,onEntered:hu,onExit:hu,onExiting:hu,onExited:hu},qr.UNMOUNTED=Fl,qr.EXITED=hi,qr.ENTERING=pi,qr.ENTERED=du,qr.EXITING=s0;function mN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c0(e,t){var r=function(s){return t&&x.isValidElement(s)?t(s):s},i=Object.create(null);return e&&x.Children.map(e,function(l){return l}).forEach(function(l){i[l.key]=r(l)}),i}function gN(e,t){e=e||{},t=t||{};function r(b){return b in t?t[b]:e[b]}var i=Object.create(null),l=[];for(var s in e)s in t?l.length&&(i[s]=l,l=[]):l.push(s);var c,d={};for(var p in t){if(i[p])for(c=0;c<i[p].length;c++){var m=i[p][c];d[i[p][c]]=r(m)}d[p]=r(p)}for(c=0;c<l.length;c++)d[l[c]]=r(l[c]);return d}function mi(e,t,r){return r[t]!=null?r[t]:e.props[t]}function bN(e,t){return c0(e.children,function(r){return x.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:mi(r,"appear",e),enter:mi(r,"enter",e),exit:mi(r,"exit",e)})})}function EN(e,t,r){var i=c0(e.children),l=gN(t,i);return Object.keys(l).forEach(function(s){var c=l[s];if(x.isValidElement(c)){var d=s in t,p=s in i,m=t[s],b=x.isValidElement(m)&&!m.props.in;p&&(!d||b)?l[s]=x.cloneElement(c,{onExited:r.bind(null,c),in:!0,exit:mi(c,"exit",e),enter:mi(c,"enter",e)}):!p&&d&&!b?l[s]=x.cloneElement(c,{in:!1}):p&&d&&x.isValidElement(m)&&(l[s]=x.cloneElement(c,{onExited:r.bind(null,c),in:m.props.in,exit:mi(c,"exit",e),enter:mi(c,"enter",e)}))}}),l}var yN=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},TN={component:"div",childFactory:function(t){return t}},f0=function(e){RE(t,e);function t(i,l){var s;s=e.call(this,i,l)||this;var c=s.handleExited.bind(mN(s));return s.state={contextValue:{isMounting:!0},handleExited:c,firstRender:!0},s}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(l,s){var c=s.children,d=s.handleExited,p=s.firstRender;return{children:p?bN(l,d):EN(l,c,d),firstRender:!1}},r.handleExited=function(l,s){var c=c0(this.props.children);l.key in c||(l.props.onExited&&l.props.onExited(s),this.mounted&&this.setState(function(d){var p=is({},d.children);return delete p[l.key],{children:p}}))},r.render=function(){var l=this.props,s=l.component,c=l.childFactory,d=vE(l,["component","childFactory"]),p=this.state.contextValue,m=yN(this.state.children).map(c);return delete d.appear,delete d.enter,delete d.exit,s===null?xt.createElement(ec.Provider,{value:p},m):xt.createElement(ec.Provider,{value:p},xt.createElement(s,d,m))},t}(xt.Component);f0.propTypes={},f0.defaultProps=TN;const NE=e=>e.scrollTop;function tc(e,t){const{timeout:r,easing:i,style:l={}}=e;return{duration:l.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:l.transitionTimingFunction??(typeof i=="object"?i[t.mode]:i),delay:l.transitionDelay}}const SN={entering:{opacity:1},entered:{opacity:1}},CN=x.forwardRef(function(t,r){const i=Hl(),l={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:s,appear:c=!0,children:d,easing:p,in:m,onEnter:b,onEntered:E,onEntering:S,onExit:y,onExited:O,onExiting:_,style:I,timeout:R=l,TransitionComponent:H=qr,...k}=t,P=x.useRef(null),L=fr(P,Us(d),r),M=Q=>te=>{if(Q){const K=P.current;te===void 0?Q(K):Q(K,te)}},j=M(S),ae=M((Q,te)=>{NE(Q);const K=tc({style:I,timeout:R,easing:p},{mode:"enter"});Q.style.webkitTransition=i.transitions.create("opacity",K),Q.style.transition=i.transitions.create("opacity",K),b&&b(Q,te)}),V=M(E),A=M(_),Y=M(Q=>{const te=tc({style:I,timeout:R,easing:p},{mode:"exit"});Q.style.webkitTransition=i.transitions.create("opacity",te),Q.style.transition=i.transitions.create("opacity",te),y&&y(Q)}),W=M(O),X=Q=>{s&&s(P.current,Q)};return me.jsx(H,{appear:c,in:m,nodeRef:P,onEnter:ae,onEntered:V,onEntering:j,onExit:Y,onExited:W,onExiting:A,addEndListener:X,timeout:R,...k,children:(Q,te)=>x.cloneElement(d,{style:{opacity:0,visibility:Q==="exited"&&!m?"hidden":void 0,...SN[Q],...I,...d.props.style},ref:L,...te})})});function AN(e){return Un("MuiBackdrop",e)}Hn("MuiBackdrop",["root","invisible"]);const xN=e=>{const{ownerState:t,...r}=e;return r},_N=e=>{const{classes:t,invisible:r}=e;return Zn({root:["root",r&&"invisible"]},AN,t)},vN=Ot("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),RN=x.forwardRef(function(t,r){const i=zn({props:t,name:"MuiBackdrop"}),{children:l,className:s,component:c="div",invisible:d=!1,open:p,components:m={},componentsProps:b={},slotProps:E={},slots:S={},TransitionComponent:y,transitionDuration:O,..._}=i,I={...i,component:c,invisible:d},R=_N(I),H={transition:y,root:m.Root,...S},k={...b,...E},P={slots:H,slotProps:k},[L,M]=fu("root",{elementType:vN,externalForwardedProps:P,className:st(R.root,s),ownerState:I}),[j,ae]=fu("transition",{elementType:CN,externalForwardedProps:P,ownerState:I}),V=xN(ae);return me.jsx(j,{in:p,timeout:O,..._,...V,children:me.jsx(L,{"aria-hidden":!0,...M,classes:R,ref:r,children:l})})});function ON(e){return typeof e=="function"?e():e}function NN(e){return e?e.props.hasOwnProperty("in"):!1}const nc=new Y8;function kN(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:i=!1,closeAfterTransition:l=!1,onTransitionEnter:s,onTransitionExited:c,children:d,onClose:p,open:m,rootRef:b}=e,E=x.useRef({}),S=x.useRef(null),y=x.useRef(null),O=fr(y,b),[_,I]=x.useState(!m),R=NN(d);let H=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(H=!1);const k=()=>Da(S.current),P=()=>(E.current.modalRef=y.current,E.current.mount=S.current,E.current),L=()=>{nc.mount(P(),{disableScrollLock:i}),y.current&&(y.current.scrollTop=0)},M=ra(()=>{const te=ON(t)||k().body;nc.add(P(),te),y.current&&L()}),j=()=>nc.isTopModal(P()),ae=ra(te=>{S.current=te,te&&(m&&j()?L():y.current&&Rl(y.current,H))}),V=x.useCallback(()=>{nc.remove(P(),H)},[H]);x.useEffect(()=>()=>{V()},[V]),x.useEffect(()=>{m?M():(!R||!l)&&V()},[m,V,R,l,M]);const A=te=>K=>{var se;(se=te.onKeyDown)==null||se.call(te,K),!(K.key!=="Escape"||K.which===229||!j())&&(r||(K.stopPropagation(),p&&p(K,"escapeKeyDown")))},Y=te=>K=>{var se;(se=te.onClick)==null||se.call(te,K),K.target===K.currentTarget&&p&&p(K,"backdropClick")};return{getRootProps:(te={})=>{const K=Fb(e);delete K.onTransitionEnter,delete K.onTransitionExited;const se={...K,...te};return{role:"presentation",...se,onKeyDown:A(se),ref:O}},getBackdropProps:(te={})=>{const K=te;return{"aria-hidden":!0,...K,onClick:Y(K),open:m}},getTransitionProps:()=>{const te=()=>{I(!1),s&&s()},K=()=>{I(!0),c&&c(),l&&V()};return{onEnter:wb(te,d==null?void 0:d.props.onEnter),onExited:wb(K,d==null?void 0:d.props.onExited)}},rootRef:O,portalRef:ae,isTopModal:j,exited:_,hasTransition:R}}function DN(e){return Un("MuiModal",e)}Hn("MuiModal",["root","hidden","backdrop"]);function LN(e){return Un("MuiSvgIcon",e)}Hn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const IN=e=>{const{color:t,fontSize:r,classes:i}=e,l={root:["root",t!=="inherit"&&`color${_t(t)}`,`fontSize${_t(r)}`]};return Zn(l,LN,i)},wN=Ot("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${_t(r.color)}`],t[`fontSize${_t(r.fontSize)}`]]}})(Fn(({theme:e})=>{var t,r,i,l,s,c,d,p,m,b,E,S,y,O;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(l=(t=e.transitions)==null?void 0:t.create)==null?void 0:l.call(t,"fill",{duration:(i=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:i.shorter}),variants:[{props:_=>!_.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((c=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:c.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((p=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:p.call(d,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((b=(m=e.typography)==null?void 0:m.pxToRem)==null?void 0:b.call(m,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,_])=>_&&_.main).map(([_])=>{var I,R;return{props:{color:_},style:{color:(R=(I=(e.vars??e).palette)==null?void 0:I[_])==null?void 0:R.main}}}),{props:{color:"action"},style:{color:(S=(E=(e.vars??e).palette)==null?void 0:E.action)==null?void 0:S.active}},{props:{color:"disabled"},style:{color:(O=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:O.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),rc=x.forwardRef(function(t,r){const i=zn({props:t,name:"MuiSvgIcon"}),{children:l,className:s,color:c="inherit",component:d="svg",fontSize:p="medium",htmlColor:m,inheritViewBox:b=!1,titleAccess:E,viewBox:S="0 0 24 24",...y}=i,O=x.isValidElement(l)&&l.type==="svg",_={...i,color:c,component:d,fontSize:p,instanceFontSize:t.fontSize,inheritViewBox:b,viewBox:S,hasSvgAsChild:O},I={};b||(I.viewBox=S);const R=IN(_);return me.jsxs(wN,{as:d,className:st(R.root,s),focusable:"false",color:m,"aria-hidden":E?void 0:!0,role:E?"img":void 0,ref:r,...I,...y,...O&&l.props,ownerState:_,children:[O?l.props.children:l,E?me.jsx("title",{children:E}):null]})});rc&&(rc.muiName="SvgIcon");function gi(e,t){function r(i,l){return me.jsx(rc,{"data-testid":`${t}Icon`,ref:l,...i,children:e})}return r.muiName=rc.muiName,x.memo(x.forwardRef(r))}const MN=e=>{const{open:t,exited:r,classes:i}=e;return Zn({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},DN,i)},BN=Ot("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Fn(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),PN=Ot(RN,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),UN=x.forwardRef(function(t,r){const i=zn({name:"MuiModal",props:t}),{BackdropComponent:l=PN,BackdropProps:s,classes:c,className:d,closeAfterTransition:p=!1,children:m,container:b,component:E,components:S={},componentsProps:y={},disableAutoFocus:O=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:I=!1,disablePortal:R=!1,disableRestoreFocus:H=!1,disableScrollLock:k=!1,hideBackdrop:P=!1,keepMounted:L=!1,onBackdropClick:M,onClose:j,onTransitionEnter:ae,onTransitionExited:V,open:A,slotProps:Y={},slots:W={},theme:X,...Q}=i,te={...i,closeAfterTransition:p,disableAutoFocus:O,disableEnforceFocus:_,disableEscapeKeyDown:I,disablePortal:R,disableRestoreFocus:H,disableScrollLock:k,hideBackdrop:P,keepMounted:L},{getRootProps:K,getBackdropProps:se,getTransitionProps:re,portalRef:be,isTopModal:C,exited:J,hasTransition:oe}=kN({...te,rootRef:r}),D={...te,exited:J},ce=MN(D),Oe={};if(m.props.tabIndex===void 0&&(Oe.tabIndex="-1"),oe){const{onEnter:ve,onExited:Re}=re();Oe.onEnter=ve,Oe.onExited=Re}const Se={...Q,slots:{root:S.Root,backdrop:S.Backdrop,...W},slotProps:{...y,...Y}},[tt,Me]=fu("root",{elementType:BN,externalForwardedProps:Se,getSlotProps:K,additionalProps:{ref:r,as:E},ownerState:D,className:st(d,ce==null?void 0:ce.root,!D.open&&D.exited&&(ce==null?void 0:ce.hidden))}),[$e,xe]=fu("backdrop",{elementType:l,externalForwardedProps:Se,additionalProps:s,getSlotProps:ve=>se({...ve,onClick:Re=>{M&&M(Re),ve!=null&&ve.onClick&&ve.onClick(Re)}}),className:st(s==null?void 0:s.className,ce==null?void 0:ce.backdrop),ownerState:D}),Ge=fr(s==null?void 0:s.ref,xe.ref);return!L&&!A&&(!oe||J)?null:me.jsx(W8,{ref:be,container:b,disablePortal:R,children:me.jsxs(tt,{...Me,children:[!P&&l?me.jsx($e,{...xe,ref:Ge}):null,me.jsx(Q8,{disableEnforceFocus:_,disableAutoFocus:O,disableRestoreFocus:H,isEnabled:C,open:A,children:x.cloneElement(m,Oe)})]})})});function HN(e,t,r){const i=t.getBoundingClientRect(),l=r&&r.getBoundingClientRect(),s=jr(t);let c;if(t.fakeTransform)c=t.fakeTransform;else{const m=s.getComputedStyle(t);c=m.getPropertyValue("-webkit-transform")||m.getPropertyValue("transform")}let d=0,p=0;if(c&&c!=="none"&&typeof c=="string"){const m=c.split("(")[1].split(")")[0].split(",");d=parseInt(m[4],10),p=parseInt(m[5],10)}return e==="left"?l?`translateX(${l.right+d-i.left}px)`:`translateX(${s.innerWidth+d-i.left}px)`:e==="right"?l?`translateX(-${i.right-l.left-d}px)`:`translateX(-${i.left+i.width-d}px)`:e==="up"?l?`translateY(${l.bottom+p-i.top}px)`:`translateY(${s.innerHeight+p-i.top}px)`:l?`translateY(-${i.top-l.top+i.height-p}px)`:`translateY(-${i.top+i.height-p}px)`}function FN(e){return typeof e=="function"?e():e}function ac(e,t,r){const i=FN(r),l=HN(e,t,i);l&&(t.style.webkitTransform=l,t.style.transform=l)}const zN=x.forwardRef(function(t,r){const i=Hl(),l={enter:i.transitions.easing.easeOut,exit:i.transitions.easing.sharp},s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:c,appear:d=!0,children:p,container:m,direction:b="down",easing:E=l,in:S,onEnter:y,onEntered:O,onEntering:_,onExit:I,onExited:R,onExiting:H,style:k,timeout:P=s,TransitionComponent:L=qr,...M}=t,j=x.useRef(null),ae=fr(Us(p),j,r),V=re=>be=>{re&&(be===void 0?re(j.current):re(j.current,be))},A=V((re,be)=>{ac(b,re,m),NE(re),y&&y(re,be)}),Y=V((re,be)=>{const C=tc({timeout:P,style:k,easing:E},{mode:"enter"});re.style.webkitTransition=i.transitions.create("-webkit-transform",{...C}),re.style.transition=i.transitions.create("transform",{...C}),re.style.webkitTransform="none",re.style.transform="none",_&&_(re,be)}),W=V(O),X=V(H),Q=V(re=>{const be=tc({timeout:P,style:k,easing:E},{mode:"exit"});re.style.webkitTransition=i.transitions.create("-webkit-transform",be),re.style.transition=i.transitions.create("transform",be),ac(b,re,m),I&&I(re)}),te=V(re=>{re.style.webkitTransition="",re.style.transition="",R&&R(re)}),K=re=>{c&&c(j.current,re)},se=x.useCallback(()=>{j.current&&ac(b,j.current,m)},[b,m]);return x.useEffect(()=>{if(S||b==="down"||b==="right")return;const re=Ms(()=>{j.current&&ac(b,j.current,m)}),be=jr(j.current);return be.addEventListener("resize",re),()=>{re.clear(),be.removeEventListener("resize",re)}},[b,S,m]),x.useEffect(()=>{S||se()},[S,se]),me.jsx(L,{nodeRef:j,onEnter:A,onEntered:W,onEntering:Y,onExit:Q,onExited:te,onExiting:X,addEndListener:K,appear:d,in:S,timeout:P,...M,children:(re,be)=>x.cloneElement(p,{ref:ae,style:{visibility:re==="exited"&&!S?"hidden":void 0,...k,...p.props.style},...be})})});function YN(e){return Un("MuiPaper",e)}Hn("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 jN=e=>{const{square:t,elevation:r,variant:i,classes:l}=e,s={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${r}`]};return Zn(s,YN,l)},VN=Ot("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(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:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),kE=x.forwardRef(function(t,r){var y;const i=zn({props:t,name:"MuiPaper"}),l=Hl(),{className:s,component:c="div",elevation:d=1,square:p=!1,variant:m="elevation",...b}=i,E={...i,component:c,elevation:d,square:p,variant:m},S=jN(E);return me.jsx(VN,{as:c,ownerState:E,className:st(S.root,s),ref:r,...b,style:{...m==="elevation"&&{"--Paper-shadow":(l.vars||l).shadows[d],...l.vars&&{"--Paper-overlay":(y=l.vars.overlays)==null?void 0:y[d]},...!l.vars&&l.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Il("#fff",u0(d))}, ${Il("#fff",u0(d))})`}},...b.style}})});function $N(e){return Un("MuiDrawer",e)}Hn("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const DE=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},qN=e=>{const{classes:t,anchor:r,variant:i}=e,l={root:["root"],docked:[(i==="permanent"||i==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${_t(r)}`,i!=="temporary"&&`paperAnchorDocked${_t(r)}`]};return Zn(l,$N,t)},GN=Ot(UN,{name:"MuiDrawer",slot:"Root",overridesResolver:DE})(Fn(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),LE=Ot("div",{shouldForwardProp:_E,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:DE})({flex:"0 0 auto"}),XN=Ot(kE,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${_t(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${_t(r.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:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),IE={left:"right",right:"left",top:"down",bottom:"up"};function QN(e){return["left","right"].includes(e)}function KN({direction:e},t){return e==="rtl"&&QN(t)?IE[t]:t}const WN=x.forwardRef(function(t,r){const i=zn({props:t,name:"MuiDrawer"}),l=Hl(),s=Hd(),c={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{anchor:d="left",BackdropProps:p,children:m,className:b,elevation:E=16,hideBackdrop:S=!1,ModalProps:{BackdropProps:y,...O}={},onClose:_,open:I=!1,PaperProps:R={},SlideProps:H,TransitionComponent:k=zN,transitionDuration:P=c,variant:L="temporary",...M}=i,j=x.useRef(!1);x.useEffect(()=>{j.current=!0},[]);const ae=KN({direction:s?"rtl":"ltr"},d),A={...i,anchor:d,elevation:E,open:I,variant:L,...M},Y=qN(A),W=me.jsx(XN,{elevation:L==="temporary"?E:0,square:!0,...R,className:st(Y.paper,R.className),ownerState:A,children:m});if(L==="permanent")return me.jsx(LE,{className:st(Y.root,Y.docked,b),ownerState:A,ref:r,...M,children:W});const X=me.jsx(k,{in:I,direction:IE[ae],timeout:P,appear:j.current,...H,children:W});return L==="persistent"?me.jsx(LE,{className:st(Y.root,Y.docked,b),ownerState:A,ref:r,...M,children:X}):me.jsx(GN,{BackdropProps:{...p,...y,transitionDuration:P},className:st(Y.root,Y.modal,b),open:I,ownerState:A,onClose:_,hideBackdrop:S,ref:r,...M,...O,children:X})});class ic{constructor(){rs(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 ic}static use(){const t=Bb(ic.create).current,[r,i]=x.useState(!1);return t.shouldMount=r,t.setShouldMount=i,x.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=JN(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...t)})}stop(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...t)})}pulsate(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...t)})}}function ZN(){return ic.use()}function JN(){let e,t;const r=new Promise((i,l)=>{e=i,t=l});return r.resolve=e,r.reject=t,r}function e9(e){const{className:t,classes:r,pulsate:i=!1,rippleX:l,rippleY:s,rippleSize:c,in:d,onExited:p,timeout:m}=e,[b,E]=x.useState(!1),S=st(t,r.ripple,r.rippleVisible,i&&r.ripplePulsate),y={width:c,height:c,top:-(c/2)+s,left:-(c/2)+l},O=st(r.child,b&&r.childLeaving,i&&r.childPulsate);return!d&&!b&&E(!0),x.useEffect(()=>{if(!d&&p!=null){const _=setTimeout(p,m);return()=>{clearTimeout(_)}}},[p,d,m]),me.jsx("span",{className:S,style:y,children:me.jsx("span",{className:O})})}const pr=Hn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),d0=550,t9=80,n9=wf`
118
+ export default theme;`}function i0(e={},...t){const{breakpoints:r,mixins:i={},spacing:l,palette:s={},transitions:c={},typography:d={},shape:p,...m}=e;if(e.vars)throw new Error(ka(20));const b=a0(s),E=Xd(e);let S=Pn(E,{mixins:jO(E.breakpoints,i),palette:b,shadows:XO.slice(),typography:yE(b,d),transitions:ZO(c),zIndex:{...JO}});return S=Pn(S,m),S=t.reduce((y,O)=>Pn(y,O),S),S.unstable_sxConfig={...Dl,...m==null?void 0:m.unstable_sxConfig},S.unstable_sx=function(O){return di({sx:O,theme:this})},S.toRuntimeSource=SE,S}function u0(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const tN=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=u0(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function CE(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function AE(e){return e==="dark"?tN:[]}function nN(e){const{palette:t={mode:"light"},opacity:r,overlays:i,...l}=e,s=a0(t);return{palette:s,opacity:{...CE(s.mode),...r},overlays:i||AE(s.mode),...l}}function rN(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const aN=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],iN=e=>(t,r)=>{const i=e.rootSelector||":root",l=e.colorSchemeSelector;let s=l;if(l==="class"&&(s=".%s"),l==="data"&&(s="[data-%s]"),l!=null&&l.startsWith("data-")&&!l.includes("%s")&&(s=`[${l}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const c={};return aN(e.cssVarPrefix).forEach(d=>{c[d]=r[d],delete r[d]}),s==="media"?{[i]:r,"@media (prefers-color-scheme: dark)":{[i]:c}}:s?{[s.replace("%s",t)]:c,[`${i}, ${s.replace("%s",t)}`]:r}:{[i]:{...r,...c}}}if(s&&s!=="media")return`${i}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[i]:r}};if(s)return s.replace("%s",String(t))}return i};function uN(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function ie(e,t,r){!e[t]&&r&&(e[t]=r)}function Ul(e){return!e||!e.startsWith("hsl")?e:rE(e)}function ia(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ll(Ul(e[t])))}function lN(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Vr=e=>{try{return e()}catch{}},oN=(e="mui")=>NO(e);function l0(e,t,r,i){if(!t)return;t=t===!0?{}:t;const l=i==="dark"?"dark":"light";if(!r){e[i]=nN({...t,palette:{mode:l,...t==null?void 0:t.palette}});return}const{palette:s,...c}=i0({...r,palette:{mode:l,...t==null?void 0:t.palette}});return e[i]={...t,palette:s,opacity:{...CE(l),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||AE(l)},c}function sN(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:i,disableCssColorScheme:l=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:c=rN,colorSchemeSelector:d=r.light&&r.dark?"media":void 0,rootSelector:p=":root",...m}=e,b=Object.keys(r)[0],E=i||(r.light&&b!=="light"?"light":b),S=oN(s),{[E]:y,light:O,dark:_,...I}=r,v={...I};let H=y;if((E==="dark"&&!("dark"in r)||E==="light"&&!("light"in r))&&(H=!0),!H)throw new Error(ka(21,E));const k=l0(v,H,m,E);O&&!v.light&&l0(v,O,void 0,"light"),_&&!v.dark&&l0(v,_,void 0,"dark");let P={defaultColorScheme:E,...k,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:p,getCssVar:S,colorSchemes:v,font:{...YO(k.typography),...k.font},spacing:lN(m.spacing)};Object.keys(P.colorSchemes).forEach(V=>{const A=P.colorSchemes[V].palette,Y=W=>{const Q=W.split("-"),G=Q[1],ee=Q[2];return S(W,A[G][ee])};if(A.mode==="light"&&(ie(A.common,"background","#fff"),ie(A.common,"onBackground","#000")),A.mode==="dark"&&(ie(A.common,"background","#000"),ie(A.common,"onBackground","#fff")),uN(A,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),A.mode==="light"){ie(A.Alert,"errorColor",vt(A.error.light,.6)),ie(A.Alert,"infoColor",vt(A.info.light,.6)),ie(A.Alert,"successColor",vt(A.success.light,.6)),ie(A.Alert,"warningColor",vt(A.warning.light,.6)),ie(A.Alert,"errorFilledBg",Y("palette-error-main")),ie(A.Alert,"infoFilledBg",Y("palette-info-main")),ie(A.Alert,"successFilledBg",Y("palette-success-main")),ie(A.Alert,"warningFilledBg",Y("palette-warning-main")),ie(A.Alert,"errorFilledColor",Vr(()=>A.getContrastText(A.error.main))),ie(A.Alert,"infoFilledColor",Vr(()=>A.getContrastText(A.info.main))),ie(A.Alert,"successFilledColor",Vr(()=>A.getContrastText(A.success.main))),ie(A.Alert,"warningFilledColor",Vr(()=>A.getContrastText(A.warning.main))),ie(A.Alert,"errorStandardBg",Rt(A.error.light,.9)),ie(A.Alert,"infoStandardBg",Rt(A.info.light,.9)),ie(A.Alert,"successStandardBg",Rt(A.success.light,.9)),ie(A.Alert,"warningStandardBg",Rt(A.warning.light,.9)),ie(A.Alert,"errorIconColor",Y("palette-error-main")),ie(A.Alert,"infoIconColor",Y("palette-info-main")),ie(A.Alert,"successIconColor",Y("palette-success-main")),ie(A.Alert,"warningIconColor",Y("palette-warning-main")),ie(A.AppBar,"defaultBg",Y("palette-grey-100")),ie(A.Avatar,"defaultBg",Y("palette-grey-400")),ie(A.Button,"inheritContainedBg",Y("palette-grey-300")),ie(A.Button,"inheritContainedHoverBg",Y("palette-grey-A100")),ie(A.Chip,"defaultBorder",Y("palette-grey-400")),ie(A.Chip,"defaultAvatarColor",Y("palette-grey-700")),ie(A.Chip,"defaultIconColor",Y("palette-grey-700")),ie(A.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ie(A.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ie(A.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ie(A.LinearProgress,"primaryBg",Rt(A.primary.main,.62)),ie(A.LinearProgress,"secondaryBg",Rt(A.secondary.main,.62)),ie(A.LinearProgress,"errorBg",Rt(A.error.main,.62)),ie(A.LinearProgress,"infoBg",Rt(A.info.main,.62)),ie(A.LinearProgress,"successBg",Rt(A.success.main,.62)),ie(A.LinearProgress,"warningBg",Rt(A.warning.main,.62)),ie(A.Skeleton,"bg",`rgba(${Y("palette-text-primaryChannel")} / 0.11)`),ie(A.Slider,"primaryTrack",Rt(A.primary.main,.62)),ie(A.Slider,"secondaryTrack",Rt(A.secondary.main,.62)),ie(A.Slider,"errorTrack",Rt(A.error.main,.62)),ie(A.Slider,"infoTrack",Rt(A.info.main,.62)),ie(A.Slider,"successTrack",Rt(A.success.main,.62)),ie(A.Slider,"warningTrack",Rt(A.warning.main,.62));const W=Ws(A.background.default,.8);ie(A.SnackbarContent,"bg",W),ie(A.SnackbarContent,"color",Vr(()=>A.getContrastText(W))),ie(A.SpeedDialAction,"fabHoverBg",Ws(A.background.paper,.15)),ie(A.StepConnector,"border",Y("palette-grey-400")),ie(A.StepContent,"border",Y("palette-grey-400")),ie(A.Switch,"defaultColor",Y("palette-common-white")),ie(A.Switch,"defaultDisabledColor",Y("palette-grey-100")),ie(A.Switch,"primaryDisabledColor",Rt(A.primary.main,.62)),ie(A.Switch,"secondaryDisabledColor",Rt(A.secondary.main,.62)),ie(A.Switch,"errorDisabledColor",Rt(A.error.main,.62)),ie(A.Switch,"infoDisabledColor",Rt(A.info.main,.62)),ie(A.Switch,"successDisabledColor",Rt(A.success.main,.62)),ie(A.Switch,"warningDisabledColor",Rt(A.warning.main,.62)),ie(A.TableCell,"border",Rt(Ks(A.divider,1),.88)),ie(A.Tooltip,"bg",Ks(A.grey[700],.92))}if(A.mode==="dark"){ie(A.Alert,"errorColor",Rt(A.error.light,.6)),ie(A.Alert,"infoColor",Rt(A.info.light,.6)),ie(A.Alert,"successColor",Rt(A.success.light,.6)),ie(A.Alert,"warningColor",Rt(A.warning.light,.6)),ie(A.Alert,"errorFilledBg",Y("palette-error-dark")),ie(A.Alert,"infoFilledBg",Y("palette-info-dark")),ie(A.Alert,"successFilledBg",Y("palette-success-dark")),ie(A.Alert,"warningFilledBg",Y("palette-warning-dark")),ie(A.Alert,"errorFilledColor",Vr(()=>A.getContrastText(A.error.dark))),ie(A.Alert,"infoFilledColor",Vr(()=>A.getContrastText(A.info.dark))),ie(A.Alert,"successFilledColor",Vr(()=>A.getContrastText(A.success.dark))),ie(A.Alert,"warningFilledColor",Vr(()=>A.getContrastText(A.warning.dark))),ie(A.Alert,"errorStandardBg",vt(A.error.light,.9)),ie(A.Alert,"infoStandardBg",vt(A.info.light,.9)),ie(A.Alert,"successStandardBg",vt(A.success.light,.9)),ie(A.Alert,"warningStandardBg",vt(A.warning.light,.9)),ie(A.Alert,"errorIconColor",Y("palette-error-main")),ie(A.Alert,"infoIconColor",Y("palette-info-main")),ie(A.Alert,"successIconColor",Y("palette-success-main")),ie(A.Alert,"warningIconColor",Y("palette-warning-main")),ie(A.AppBar,"defaultBg",Y("palette-grey-900")),ie(A.AppBar,"darkBg",Y("palette-background-paper")),ie(A.AppBar,"darkColor",Y("palette-text-primary")),ie(A.Avatar,"defaultBg",Y("palette-grey-600")),ie(A.Button,"inheritContainedBg",Y("palette-grey-800")),ie(A.Button,"inheritContainedHoverBg",Y("palette-grey-700")),ie(A.Chip,"defaultBorder",Y("palette-grey-700")),ie(A.Chip,"defaultAvatarColor",Y("palette-grey-300")),ie(A.Chip,"defaultIconColor",Y("palette-grey-300")),ie(A.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ie(A.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ie(A.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ie(A.LinearProgress,"primaryBg",vt(A.primary.main,.5)),ie(A.LinearProgress,"secondaryBg",vt(A.secondary.main,.5)),ie(A.LinearProgress,"errorBg",vt(A.error.main,.5)),ie(A.LinearProgress,"infoBg",vt(A.info.main,.5)),ie(A.LinearProgress,"successBg",vt(A.success.main,.5)),ie(A.LinearProgress,"warningBg",vt(A.warning.main,.5)),ie(A.Skeleton,"bg",`rgba(${Y("palette-text-primaryChannel")} / 0.13)`),ie(A.Slider,"primaryTrack",vt(A.primary.main,.5)),ie(A.Slider,"secondaryTrack",vt(A.secondary.main,.5)),ie(A.Slider,"errorTrack",vt(A.error.main,.5)),ie(A.Slider,"infoTrack",vt(A.info.main,.5)),ie(A.Slider,"successTrack",vt(A.success.main,.5)),ie(A.Slider,"warningTrack",vt(A.warning.main,.5));const W=Ws(A.background.default,.98);ie(A.SnackbarContent,"bg",W),ie(A.SnackbarContent,"color",Vr(()=>A.getContrastText(W))),ie(A.SpeedDialAction,"fabHoverBg",Ws(A.background.paper,.15)),ie(A.StepConnector,"border",Y("palette-grey-600")),ie(A.StepContent,"border",Y("palette-grey-600")),ie(A.Switch,"defaultColor",Y("palette-grey-300")),ie(A.Switch,"defaultDisabledColor",Y("palette-grey-600")),ie(A.Switch,"primaryDisabledColor",vt(A.primary.main,.55)),ie(A.Switch,"secondaryDisabledColor",vt(A.secondary.main,.55)),ie(A.Switch,"errorDisabledColor",vt(A.error.main,.55)),ie(A.Switch,"infoDisabledColor",vt(A.info.main,.55)),ie(A.Switch,"successDisabledColor",vt(A.success.main,.55)),ie(A.Switch,"warningDisabledColor",vt(A.warning.main,.55)),ie(A.TableCell,"border",vt(Ks(A.divider,1),.68)),ie(A.Tooltip,"bg",Ks(A.grey[700],.92))}ia(A.background,"default"),ia(A.background,"paper"),ia(A.common,"background"),ia(A.common,"onBackground"),ia(A,"divider"),Object.keys(A).forEach(W=>{const Q=A[W];Q&&typeof Q=="object"&&(Q.main&&ie(A[W],"mainChannel",Ll(Ul(Q.main))),Q.light&&ie(A[W],"lightChannel",Ll(Ul(Q.light))),Q.dark&&ie(A[W],"darkChannel",Ll(Ul(Q.dark))),Q.contrastText&&ie(A[W],"contrastTextChannel",Ll(Ul(Q.contrastText))),W==="text"&&(ia(A[W],"primary"),ia(A[W],"secondary")),W==="action"&&(Q.active&&ia(A[W],"active"),Q.selected&&ia(A[W],"selected")))})}),P=t.reduce((V,A)=>Pn(V,A),P);const L={prefix:s,disableCssColorScheme:l,shouldSkipGeneratingVar:c,getSelector:iN(P)},{vars:M,generateThemeVars:j,generateStyleSheets:ae}=LO(P,L);return P.vars=M,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([V,A])=>{P[V]=A}),P.generateThemeVars=j,P.generateStyleSheets=ae,P.generateSpacing=function(){return Jb(m.spacing,qd(this))},P.getColorSchemeSelector=IO(d),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=c,P.unstable_sxConfig={...Dl,...m==null?void 0:m.unstable_sxConfig},P.unstable_sx=function(A){return di({sx:A,theme:this})},P.toRuntimeSource=SE,P}function xE(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:a0({...r===!0?{}:r.palette,mode:t})})}function Zs(e={},...t){const{palette:r,cssVariables:i=!1,colorSchemes:l=r?void 0:{light:!0},defaultColorScheme:s=r==null?void 0:r.mode,...c}=e,d=s||"light",p=l==null?void 0:l[d],m={...l,...r?{[d]:{...typeof p!="boolean"&&p,palette:r}}:void 0};if(i===!1){if(!("colorSchemes"in e))return i0(e,...t);let b=r;"palette"in e||m[d]&&(m[d]!==!0?b=m[d].palette:d==="dark"&&(b={mode:"dark"}));const E=i0({...e,palette:b},...t);return E.defaultColorScheme=d,E.colorSchemes=m,E.palette.mode==="light"&&(E.colorSchemes.light={...m.light!==!0&&m.light,palette:E.palette},xE(E,"dark",m.dark)),E.palette.mode==="dark"&&(E.colorSchemes.dark={...m.dark!==!0&&m.dark,palette:E.palette},xE(E,"light",m.light)),E}return!r&&!("light"in m)&&d==="light"&&(m.light=!0),sN({...c,colorSchemes:m,defaultColorScheme:d,...typeof i!="boolean"&&i},...t)}const Js=Zs(),$r="$$material";function Hl(){const e=Qd(Js);return e[$r]||e}function cN(e){return me.jsx(tO,{...e,defaultTheme:Js,themeId:$r})}function fN(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const _E=e=>fN(e)&&e!=="classes",Ot=iO({themeId:$r,defaultTheme:Js,rootShouldForwardProp:_E});function dN(e){return function(r){return me.jsx(cN,{styles:typeof e=="function"?i=>e({theme:i,...r}):e})}}function hN(){return $R}const Fn=CO;function zn(e){return SO(e)}function fu(e,t){const{className:r,elementType:i,ownerState:l,externalForwardedProps:s,getSlotOwnerState:c,internalForwardedProps:d,...p}=t,{component:m,slots:b={[e]:void 0},slotProps:E={[e]:void 0},...S}=s,y=b[e]||i,O=jb(E[e],l),{props:{component:_,...I},internalRef:v}=Yb({className:r,...p,externalForwardedProps:e==="root"?S:void 0,externalSlotProps:O}),H=fr(v,O==null?void 0:O.ref,t.ref),k=c?c(I):{},P={...l,...k},L=e==="root"?_||m:_,M=Hb(y,{...e==="root"&&!m&&!b[e]&&d,...e!=="root"&&!b[e]&&d,...I,...L&&{as:L},ref:H},P);return Object.keys(k).forEach(j=>{delete M[j]}),[y,M]}function vE(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.includes(i))continue;r[i]=e[i]}return r}function o0(e,t){return o0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},o0(e,t)}function RE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o0(e,t)}const OE={disabled:!1},ec=xt.createContext(null);var pN=function(t){return t.scrollTop},Fl="unmounted",hi="exited",pi="entering",du="entered",s0="exiting",qr=function(e){RE(t,e);function t(i,l){var s;s=e.call(this,i,l)||this;var c=l,d=c&&!c.isMounting?i.enter:i.appear,p;return s.appearStatus=null,i.in?d?(p=hi,s.appearStatus=pi):p=du:i.unmountOnExit||i.mountOnEnter?p=Fl:p=hi,s.state={status:p},s.nextCallback=null,s}t.getDerivedStateFromProps=function(l,s){var c=l.in;return c&&s.status===Fl?{status:hi}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(l){var s=null;if(l!==this.props){var c=this.state.status;this.props.in?c!==pi&&c!==du&&(s=pi):(c===pi||c===du)&&(s=s0)}this.updateStatus(!1,s)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var l=this.props.timeout,s,c,d;return s=c=d=l,l!=null&&typeof l!="number"&&(s=l.exit,c=l.enter,d=l.appear!==void 0?l.appear:c),{exit:s,enter:c,appear:d}},r.updateStatus=function(l,s){if(l===void 0&&(l=!1),s!==null)if(this.cancelNextCallback(),s===pi){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:Hs.findDOMNode(this);c&&pN(c)}this.performEnter(l)}else this.performExit();else this.props.unmountOnExit&&this.state.status===hi&&this.setState({status:Fl})},r.performEnter=function(l){var s=this,c=this.props.enter,d=this.context?this.context.isMounting:l,p=this.props.nodeRef?[d]:[Hs.findDOMNode(this),d],m=p[0],b=p[1],E=this.getTimeouts(),S=d?E.appear:E.enter;if(!l&&!c||OE.disabled){this.safeSetState({status:du},function(){s.props.onEntered(m)});return}this.props.onEnter(m,b),this.safeSetState({status:pi},function(){s.props.onEntering(m,b),s.onTransitionEnd(S,function(){s.safeSetState({status:du},function(){s.props.onEntered(m,b)})})})},r.performExit=function(){var l=this,s=this.props.exit,c=this.getTimeouts(),d=this.props.nodeRef?void 0:Hs.findDOMNode(this);if(!s||OE.disabled){this.safeSetState({status:hi},function(){l.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:s0},function(){l.props.onExiting(d),l.onTransitionEnd(c.exit,function(){l.safeSetState({status:hi},function(){l.props.onExited(d)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(l,s){s=this.setNextCallback(s),this.setState(l,s)},r.setNextCallback=function(l){var s=this,c=!0;return this.nextCallback=function(d){c&&(c=!1,s.nextCallback=null,l(d))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},r.onTransitionEnd=function(l,s){this.setNextCallback(s);var c=this.props.nodeRef?this.props.nodeRef.current:Hs.findDOMNode(this),d=l==null&&!this.props.addEndListener;if(!c||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var p=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],m=p[0],b=p[1];this.props.addEndListener(m,b)}l!=null&&setTimeout(this.nextCallback,l)},r.render=function(){var l=this.state.status;if(l===Fl)return null;var s=this.props,c=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var d=vE(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return xt.createElement(ec.Provider,{value:null},typeof c=="function"?c(l,d):xt.cloneElement(xt.Children.only(c),d))},t}(xt.Component);qr.contextType=ec,qr.propTypes={};function hu(){}qr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:hu,onEntering:hu,onEntered:hu,onExit:hu,onExiting:hu,onExited:hu},qr.UNMOUNTED=Fl,qr.EXITED=hi,qr.ENTERING=pi,qr.ENTERED=du,qr.EXITING=s0;function mN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c0(e,t){var r=function(s){return t&&x.isValidElement(s)?t(s):s},i=Object.create(null);return e&&x.Children.map(e,function(l){return l}).forEach(function(l){i[l.key]=r(l)}),i}function gN(e,t){e=e||{},t=t||{};function r(b){return b in t?t[b]:e[b]}var i=Object.create(null),l=[];for(var s in e)s in t?l.length&&(i[s]=l,l=[]):l.push(s);var c,d={};for(var p in t){if(i[p])for(c=0;c<i[p].length;c++){var m=i[p][c];d[i[p][c]]=r(m)}d[p]=r(p)}for(c=0;c<l.length;c++)d[l[c]]=r(l[c]);return d}function mi(e,t,r){return r[t]!=null?r[t]:e.props[t]}function bN(e,t){return c0(e.children,function(r){return x.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:mi(r,"appear",e),enter:mi(r,"enter",e),exit:mi(r,"exit",e)})})}function EN(e,t,r){var i=c0(e.children),l=gN(t,i);return Object.keys(l).forEach(function(s){var c=l[s];if(x.isValidElement(c)){var d=s in t,p=s in i,m=t[s],b=x.isValidElement(m)&&!m.props.in;p&&(!d||b)?l[s]=x.cloneElement(c,{onExited:r.bind(null,c),in:!0,exit:mi(c,"exit",e),enter:mi(c,"enter",e)}):!p&&d&&!b?l[s]=x.cloneElement(c,{in:!1}):p&&d&&x.isValidElement(m)&&(l[s]=x.cloneElement(c,{onExited:r.bind(null,c),in:m.props.in,exit:mi(c,"exit",e),enter:mi(c,"enter",e)}))}}),l}var yN=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},TN={component:"div",childFactory:function(t){return t}},f0=function(e){RE(t,e);function t(i,l){var s;s=e.call(this,i,l)||this;var c=s.handleExited.bind(mN(s));return s.state={contextValue:{isMounting:!0},handleExited:c,firstRender:!0},s}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(l,s){var c=s.children,d=s.handleExited,p=s.firstRender;return{children:p?bN(l,d):EN(l,c,d),firstRender:!1}},r.handleExited=function(l,s){var c=c0(this.props.children);l.key in c||(l.props.onExited&&l.props.onExited(s),this.mounted&&this.setState(function(d){var p=is({},d.children);return delete p[l.key],{children:p}}))},r.render=function(){var l=this.props,s=l.component,c=l.childFactory,d=vE(l,["component","childFactory"]),p=this.state.contextValue,m=yN(this.state.children).map(c);return delete d.appear,delete d.enter,delete d.exit,s===null?xt.createElement(ec.Provider,{value:p},m):xt.createElement(ec.Provider,{value:p},xt.createElement(s,d,m))},t}(xt.Component);f0.propTypes={},f0.defaultProps=TN;const NE=e=>e.scrollTop;function tc(e,t){const{timeout:r,easing:i,style:l={}}=e;return{duration:l.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:l.transitionTimingFunction??(typeof i=="object"?i[t.mode]:i),delay:l.transitionDelay}}const SN={entering:{opacity:1},entered:{opacity:1}},CN=x.forwardRef(function(t,r){const i=Hl(),l={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:s,appear:c=!0,children:d,easing:p,in:m,onEnter:b,onEntered:E,onEntering:S,onExit:y,onExited:O,onExiting:_,style:I,timeout:v=l,TransitionComponent:H=qr,...k}=t,P=x.useRef(null),L=fr(P,Us(d),r),M=G=>ee=>{if(G){const K=P.current;ee===void 0?G(K):G(K,ee)}},j=M(S),ae=M((G,ee)=>{NE(G);const K=tc({style:I,timeout:v,easing:p},{mode:"enter"});G.style.webkitTransition=i.transitions.create("opacity",K),G.style.transition=i.transitions.create("opacity",K),b&&b(G,ee)}),V=M(E),A=M(_),Y=M(G=>{const ee=tc({style:I,timeout:v,easing:p},{mode:"exit"});G.style.webkitTransition=i.transitions.create("opacity",ee),G.style.transition=i.transitions.create("opacity",ee),y&&y(G)}),W=M(O),Q=G=>{s&&s(P.current,G)};return me.jsx(H,{appear:c,in:m,nodeRef:P,onEnter:ae,onEntered:V,onEntering:j,onExit:Y,onExited:W,onExiting:A,addEndListener:Q,timeout:v,...k,children:(G,ee)=>x.cloneElement(d,{style:{opacity:0,visibility:G==="exited"&&!m?"hidden":void 0,...SN[G],...I,...d.props.style},ref:L,...ee})})});function AN(e){return Un("MuiBackdrop",e)}Hn("MuiBackdrop",["root","invisible"]);const xN=e=>{const{ownerState:t,...r}=e;return r},_N=e=>{const{classes:t,invisible:r}=e;return Zn({root:["root",r&&"invisible"]},AN,t)},vN=Ot("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),RN=x.forwardRef(function(t,r){const i=zn({props:t,name:"MuiBackdrop"}),{children:l,className:s,component:c="div",invisible:d=!1,open:p,components:m={},componentsProps:b={},slotProps:E={},slots:S={},TransitionComponent:y,transitionDuration:O,..._}=i,I={...i,component:c,invisible:d},v=_N(I),H={transition:y,root:m.Root,...S},k={...b,...E},P={slots:H,slotProps:k},[L,M]=fu("root",{elementType:vN,externalForwardedProps:P,className:st(v.root,s),ownerState:I}),[j,ae]=fu("transition",{elementType:CN,externalForwardedProps:P,ownerState:I}),V=xN(ae);return me.jsx(j,{in:p,timeout:O,..._,...V,children:me.jsx(L,{"aria-hidden":!0,...M,classes:v,ref:r,children:l})})});function ON(e){return typeof e=="function"?e():e}function NN(e){return e?e.props.hasOwnProperty("in"):!1}const nc=new Y8;function kN(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:i=!1,closeAfterTransition:l=!1,onTransitionEnter:s,onTransitionExited:c,children:d,onClose:p,open:m,rootRef:b}=e,E=x.useRef({}),S=x.useRef(null),y=x.useRef(null),O=fr(y,b),[_,I]=x.useState(!m),v=NN(d);let H=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(H=!1);const k=()=>Da(S.current),P=()=>(E.current.modalRef=y.current,E.current.mount=S.current,E.current),L=()=>{nc.mount(P(),{disableScrollLock:i}),y.current&&(y.current.scrollTop=0)},M=ra(()=>{const ee=ON(t)||k().body;nc.add(P(),ee),y.current&&L()}),j=()=>nc.isTopModal(P()),ae=ra(ee=>{S.current=ee,ee&&(m&&j()?L():y.current&&Rl(y.current,H))}),V=x.useCallback(()=>{nc.remove(P(),H)},[H]);x.useEffect(()=>()=>{V()},[V]),x.useEffect(()=>{m?M():(!v||!l)&&V()},[m,V,v,l,M]);const A=ee=>K=>{var se;(se=ee.onKeyDown)==null||se.call(ee,K),!(K.key!=="Escape"||K.which===229||!j())&&(r||(K.stopPropagation(),p&&p(K,"escapeKeyDown")))},Y=ee=>K=>{var se;(se=ee.onClick)==null||se.call(ee,K),K.target===K.currentTarget&&p&&p(K,"backdropClick")};return{getRootProps:(ee={})=>{const K=Fb(e);delete K.onTransitionEnter,delete K.onTransitionExited;const se={...K,...ee};return{role:"presentation",...se,onKeyDown:A(se),ref:O}},getBackdropProps:(ee={})=>{const K=ee;return{"aria-hidden":!0,...K,onClick:Y(K),open:m}},getTransitionProps:()=>{const ee=()=>{I(!1),s&&s()},K=()=>{I(!0),c&&c(),l&&V()};return{onEnter:wb(ee,d==null?void 0:d.props.onEnter),onExited:wb(K,d==null?void 0:d.props.onExited)}},rootRef:O,portalRef:ae,isTopModal:j,exited:_,hasTransition:v}}function DN(e){return Un("MuiModal",e)}Hn("MuiModal",["root","hidden","backdrop"]);function LN(e){return Un("MuiSvgIcon",e)}Hn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const IN=e=>{const{color:t,fontSize:r,classes:i}=e,l={root:["root",t!=="inherit"&&`color${_t(t)}`,`fontSize${_t(r)}`]};return Zn(l,LN,i)},wN=Ot("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${_t(r.color)}`],t[`fontSize${_t(r.fontSize)}`]]}})(Fn(({theme:e})=>{var t,r,i,l,s,c,d,p,m,b,E,S,y,O;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(l=(t=e.transitions)==null?void 0:t.create)==null?void 0:l.call(t,"fill",{duration:(i=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:i.shorter}),variants:[{props:_=>!_.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((c=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:c.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((p=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:p.call(d,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((b=(m=e.typography)==null?void 0:m.pxToRem)==null?void 0:b.call(m,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,_])=>_&&_.main).map(([_])=>{var I,v;return{props:{color:_},style:{color:(v=(I=(e.vars??e).palette)==null?void 0:I[_])==null?void 0:v.main}}}),{props:{color:"action"},style:{color:(S=(E=(e.vars??e).palette)==null?void 0:E.action)==null?void 0:S.active}},{props:{color:"disabled"},style:{color:(O=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:O.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),rc=x.forwardRef(function(t,r){const i=zn({props:t,name:"MuiSvgIcon"}),{children:l,className:s,color:c="inherit",component:d="svg",fontSize:p="medium",htmlColor:m,inheritViewBox:b=!1,titleAccess:E,viewBox:S="0 0 24 24",...y}=i,O=x.isValidElement(l)&&l.type==="svg",_={...i,color:c,component:d,fontSize:p,instanceFontSize:t.fontSize,inheritViewBox:b,viewBox:S,hasSvgAsChild:O},I={};b||(I.viewBox=S);const v=IN(_);return me.jsxs(wN,{as:d,className:st(v.root,s),focusable:"false",color:m,"aria-hidden":E?void 0:!0,role:E?"img":void 0,ref:r,...I,...y,...O&&l.props,ownerState:_,children:[O?l.props.children:l,E?me.jsx("title",{children:E}):null]})});rc&&(rc.muiName="SvgIcon");function gi(e,t){function r(i,l){return me.jsx(rc,{"data-testid":`${t}Icon`,ref:l,...i,children:e})}return r.muiName=rc.muiName,x.memo(x.forwardRef(r))}const MN=e=>{const{open:t,exited:r,classes:i}=e;return Zn({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},DN,i)},BN=Ot("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Fn(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),PN=Ot(RN,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),UN=x.forwardRef(function(t,r){const i=zn({name:"MuiModal",props:t}),{BackdropComponent:l=PN,BackdropProps:s,classes:c,className:d,closeAfterTransition:p=!1,children:m,container:b,component:E,components:S={},componentsProps:y={},disableAutoFocus:O=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:I=!1,disablePortal:v=!1,disableRestoreFocus:H=!1,disableScrollLock:k=!1,hideBackdrop:P=!1,keepMounted:L=!1,onBackdropClick:M,onClose:j,onTransitionEnter:ae,onTransitionExited:V,open:A,slotProps:Y={},slots:W={},theme:Q,...G}=i,ee={...i,closeAfterTransition:p,disableAutoFocus:O,disableEnforceFocus:_,disableEscapeKeyDown:I,disablePortal:v,disableRestoreFocus:H,disableScrollLock:k,hideBackdrop:P,keepMounted:L},{getRootProps:K,getBackdropProps:se,getTransitionProps:re,portalRef:be,isTopModal:C,exited:J,hasTransition:oe}=kN({...ee,rootRef:r}),D={...ee,exited:J},ce=MN(D),Oe={};if(m.props.tabIndex===void 0&&(Oe.tabIndex="-1"),oe){const{onEnter:ve,onExited:Re}=re();Oe.onEnter=ve,Oe.onExited=Re}const Se={...G,slots:{root:S.Root,backdrop:S.Backdrop,...W},slotProps:{...y,...Y}},[tt,Me]=fu("root",{elementType:BN,externalForwardedProps:Se,getSlotProps:K,additionalProps:{ref:r,as:E},ownerState:D,className:st(d,ce==null?void 0:ce.root,!D.open&&D.exited&&(ce==null?void 0:ce.hidden))}),[$e,xe]=fu("backdrop",{elementType:l,externalForwardedProps:Se,additionalProps:s,getSlotProps:ve=>se({...ve,onClick:Re=>{M&&M(Re),ve!=null&&ve.onClick&&ve.onClick(Re)}}),className:st(s==null?void 0:s.className,ce==null?void 0:ce.backdrop),ownerState:D}),Ge=fr(s==null?void 0:s.ref,xe.ref);return!L&&!A&&(!oe||J)?null:me.jsx(W8,{ref:be,container:b,disablePortal:v,children:me.jsxs(tt,{...Me,children:[!P&&l?me.jsx($e,{...xe,ref:Ge}):null,me.jsx(Q8,{disableEnforceFocus:_,disableAutoFocus:O,disableRestoreFocus:H,isEnabled:C,open:A,children:x.cloneElement(m,Oe)})]})})});function HN(e,t,r){const i=t.getBoundingClientRect(),l=r&&r.getBoundingClientRect(),s=jr(t);let c;if(t.fakeTransform)c=t.fakeTransform;else{const m=s.getComputedStyle(t);c=m.getPropertyValue("-webkit-transform")||m.getPropertyValue("transform")}let d=0,p=0;if(c&&c!=="none"&&typeof c=="string"){const m=c.split("(")[1].split(")")[0].split(",");d=parseInt(m[4],10),p=parseInt(m[5],10)}return e==="left"?l?`translateX(${l.right+d-i.left}px)`:`translateX(${s.innerWidth+d-i.left}px)`:e==="right"?l?`translateX(-${i.right-l.left-d}px)`:`translateX(-${i.left+i.width-d}px)`:e==="up"?l?`translateY(${l.bottom+p-i.top}px)`:`translateY(${s.innerHeight+p-i.top}px)`:l?`translateY(-${i.top-l.top+i.height-p}px)`:`translateY(-${i.top+i.height-p}px)`}function FN(e){return typeof e=="function"?e():e}function ac(e,t,r){const i=FN(r),l=HN(e,t,i);l&&(t.style.webkitTransform=l,t.style.transform=l)}const zN=x.forwardRef(function(t,r){const i=Hl(),l={enter:i.transitions.easing.easeOut,exit:i.transitions.easing.sharp},s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:c,appear:d=!0,children:p,container:m,direction:b="down",easing:E=l,in:S,onEnter:y,onEntered:O,onEntering:_,onExit:I,onExited:v,onExiting:H,style:k,timeout:P=s,TransitionComponent:L=qr,...M}=t,j=x.useRef(null),ae=fr(Us(p),j,r),V=re=>be=>{re&&(be===void 0?re(j.current):re(j.current,be))},A=V((re,be)=>{ac(b,re,m),NE(re),y&&y(re,be)}),Y=V((re,be)=>{const C=tc({timeout:P,style:k,easing:E},{mode:"enter"});re.style.webkitTransition=i.transitions.create("-webkit-transform",{...C}),re.style.transition=i.transitions.create("transform",{...C}),re.style.webkitTransform="none",re.style.transform="none",_&&_(re,be)}),W=V(O),Q=V(H),G=V(re=>{const be=tc({timeout:P,style:k,easing:E},{mode:"exit"});re.style.webkitTransition=i.transitions.create("-webkit-transform",be),re.style.transition=i.transitions.create("transform",be),ac(b,re,m),I&&I(re)}),ee=V(re=>{re.style.webkitTransition="",re.style.transition="",v&&v(re)}),K=re=>{c&&c(j.current,re)},se=x.useCallback(()=>{j.current&&ac(b,j.current,m)},[b,m]);return x.useEffect(()=>{if(S||b==="down"||b==="right")return;const re=Ms(()=>{j.current&&ac(b,j.current,m)}),be=jr(j.current);return be.addEventListener("resize",re),()=>{re.clear(),be.removeEventListener("resize",re)}},[b,S,m]),x.useEffect(()=>{S||se()},[S,se]),me.jsx(L,{nodeRef:j,onEnter:A,onEntered:W,onEntering:Y,onExit:G,onExited:ee,onExiting:Q,addEndListener:K,appear:d,in:S,timeout:P,...M,children:(re,be)=>x.cloneElement(p,{ref:ae,style:{visibility:re==="exited"&&!S?"hidden":void 0,...k,...p.props.style},...be})})});function YN(e){return Un("MuiPaper",e)}Hn("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 jN=e=>{const{square:t,elevation:r,variant:i,classes:l}=e,s={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${r}`]};return Zn(s,YN,l)},VN=Ot("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(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:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),kE=x.forwardRef(function(t,r){var y;const i=zn({props:t,name:"MuiPaper"}),l=Hl(),{className:s,component:c="div",elevation:d=1,square:p=!1,variant:m="elevation",...b}=i,E={...i,component:c,elevation:d,square:p,variant:m},S=jN(E);return me.jsx(VN,{as:c,ownerState:E,className:st(S.root,s),ref:r,...b,style:{...m==="elevation"&&{"--Paper-shadow":(l.vars||l).shadows[d],...l.vars&&{"--Paper-overlay":(y=l.vars.overlays)==null?void 0:y[d]},...!l.vars&&l.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Il("#fff",u0(d))}, ${Il("#fff",u0(d))})`}},...b.style}})});function $N(e){return Un("MuiDrawer",e)}Hn("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const DE=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},qN=e=>{const{classes:t,anchor:r,variant:i}=e,l={root:["root"],docked:[(i==="permanent"||i==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${_t(r)}`,i!=="temporary"&&`paperAnchorDocked${_t(r)}`]};return Zn(l,$N,t)},GN=Ot(UN,{name:"MuiDrawer",slot:"Root",overridesResolver:DE})(Fn(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),LE=Ot("div",{shouldForwardProp:_E,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:DE})({flex:"0 0 auto"}),XN=Ot(kE,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${_t(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${_t(r.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:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),IE={left:"right",right:"left",top:"down",bottom:"up"};function QN(e){return["left","right"].includes(e)}function KN({direction:e},t){return e==="rtl"&&QN(t)?IE[t]:t}const WN=x.forwardRef(function(t,r){const i=zn({props:t,name:"MuiDrawer"}),l=Hl(),s=Hd(),c={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{anchor:d="left",BackdropProps:p,children:m,className:b,elevation:E=16,hideBackdrop:S=!1,ModalProps:{BackdropProps:y,...O}={},onClose:_,open:I=!1,PaperProps:v={},SlideProps:H,TransitionComponent:k=zN,transitionDuration:P=c,variant:L="temporary",...M}=i,j=x.useRef(!1);x.useEffect(()=>{j.current=!0},[]);const ae=KN({direction:s?"rtl":"ltr"},d),A={...i,anchor:d,elevation:E,open:I,variant:L,...M},Y=qN(A),W=me.jsx(XN,{elevation:L==="temporary"?E:0,square:!0,...v,className:st(Y.paper,v.className),ownerState:A,children:m});if(L==="permanent")return me.jsx(LE,{className:st(Y.root,Y.docked,b),ownerState:A,ref:r,...M,children:W});const Q=me.jsx(k,{in:I,direction:IE[ae],timeout:P,appear:j.current,...H,children:W});return L==="persistent"?me.jsx(LE,{className:st(Y.root,Y.docked,b),ownerState:A,ref:r,...M,children:Q}):me.jsx(GN,{BackdropProps:{...p,...y,transitionDuration:P},className:st(Y.root,Y.modal,b),open:I,ownerState:A,onClose:_,hideBackdrop:S,ref:r,...M,...O,children:Q})});class ic{constructor(){rs(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 ic}static use(){const t=Bb(ic.create).current,[r,i]=x.useState(!1);return t.shouldMount=r,t.setShouldMount=i,x.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=JN(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...t)})}stop(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...t)})}pulsate(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...t)})}}function ZN(){return ic.use()}function JN(){let e,t;const r=new Promise((i,l)=>{e=i,t=l});return r.resolve=e,r.reject=t,r}function e9(e){const{className:t,classes:r,pulsate:i=!1,rippleX:l,rippleY:s,rippleSize:c,in:d,onExited:p,timeout:m}=e,[b,E]=x.useState(!1),S=st(t,r.ripple,r.rippleVisible,i&&r.ripplePulsate),y={width:c,height:c,top:-(c/2)+s,left:-(c/2)+l},O=st(r.child,b&&r.childLeaving,i&&r.childPulsate);return!d&&!b&&E(!0),x.useEffect(()=>{if(!d&&p!=null){const _=setTimeout(p,m);return()=>{clearTimeout(_)}}},[p,d,m]),me.jsx("span",{className:S,style:y,children:me.jsx("span",{className:O})})}const pr=Hn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),d0=550,t9=80,n9=wf`
119
119
  0% {
120
120
  transform: scale(0);
121
121
  opacity: 0.1;
@@ -188,15 +188,15 @@ export default theme;`}function i0(e={},...t){const{breakpoints:r,mixins:i={},sp
188
188
  animation-iteration-count: infinite;
189
189
  animation-delay: 200ms;
190
190
  }
191
- `,l9=x.forwardRef(function(t,r){const i=zn({props:t,name:"MuiTouchRipple"}),{center:l=!1,classes:s={},className:c,...d}=i,[p,m]=x.useState([]),b=x.useRef(0),E=x.useRef(null);x.useEffect(()=>{E.current&&(E.current(),E.current=null)},[p]);const S=x.useRef(!1),y=L8(),O=x.useRef(null),_=x.useRef(null),I=x.useCallback(P=>{const{pulsate:L,rippleX:M,rippleY:j,rippleSize:ae,cb:V}=P;m(A=>[...A,me.jsx(u9,{classes:{ripple:st(s.ripple,pr.ripple),rippleVisible:st(s.rippleVisible,pr.rippleVisible),ripplePulsate:st(s.ripplePulsate,pr.ripplePulsate),child:st(s.child,pr.child),childLeaving:st(s.childLeaving,pr.childLeaving),childPulsate:st(s.childPulsate,pr.childPulsate)},timeout:d0,pulsate:L,rippleX:M,rippleY:j,rippleSize:ae},b.current)]),b.current+=1,E.current=V},[s]),R=x.useCallback((P={},L={},M=()=>{})=>{const{pulsate:j=!1,center:ae=l||L.pulsate,fakeElement:V=!1}=L;if((P==null?void 0:P.type)==="mousedown"&&S.current){S.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(S.current=!0);const A=V?null:_.current,Y=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let W,X,Q;if(ae||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)W=Math.round(Y.width/2),X=Math.round(Y.height/2);else{const{clientX:te,clientY:K}=P.touches&&P.touches.length>0?P.touches[0]:P;W=Math.round(te-Y.left),X=Math.round(K-Y.top)}if(ae)Q=Math.sqrt((2*Y.width**2+Y.height**2)/3),Q%2===0&&(Q+=1);else{const te=Math.max(Math.abs((A?A.clientWidth:0)-W),W)*2+2,K=Math.max(Math.abs((A?A.clientHeight:0)-X),X)*2+2;Q=Math.sqrt(te**2+K**2)}P!=null&&P.touches?O.current===null&&(O.current=()=>{I({pulsate:j,rippleX:W,rippleY:X,rippleSize:Q,cb:M})},y.start(t9,()=>{O.current&&(O.current(),O.current=null)})):I({pulsate:j,rippleX:W,rippleY:X,rippleSize:Q,cb:M})},[l,I,y]),H=x.useCallback(()=>{R({},{pulsate:!0})},[R]),k=x.useCallback((P,L)=>{if(y.clear(),(P==null?void 0:P.type)==="touchend"&&O.current){O.current(),O.current=null,y.start(0,()=>{k(P,L)});return}O.current=null,m(M=>M.length>0?M.slice(1):M),E.current=L},[y]);return x.useImperativeHandle(r,()=>({pulsate:H,start:R,stop:k}),[H,R,k]),me.jsx(i9,{className:st(pr.root,s.root,c),ref:_,...d,children:me.jsx(f0,{component:null,exit:!0,children:p})})});function o9(e){return Un("MuiButtonBase",e)}const s9=Hn("MuiButtonBase",["root","disabled","focusVisible"]),c9=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:i,classes:l}=e,c=Zn({root:["root",t&&"disabled",r&&"focusVisible"]},o9,l);return r&&i&&(c.root+=` ${i}`),c},f9=Ot("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${s9.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),h0=x.forwardRef(function(t,r){const i=zn({props:t,name:"MuiButtonBase"}),{action:l,centerRipple:s=!1,children:c,className:d,component:p="button",disabled:m=!1,disableRipple:b=!1,disableTouchRipple:E=!1,focusRipple:S=!1,focusVisibleClassName:y,LinkComponent:O="a",onBlur:_,onClick:I,onContextMenu:R,onDragLeave:H,onFocus:k,onFocusVisible:P,onKeyDown:L,onKeyUp:M,onMouseDown:j,onMouseLeave:ae,onMouseUp:V,onTouchEnd:A,onTouchMove:Y,onTouchStart:W,tabIndex:X=0,TouchRippleProps:Q,touchRippleRef:te,type:K,...se}=i,re=x.useRef(null),be=ZN(),C=fr(be.ref,te),[J,oe]=x.useState(!1);m&&J&&oe(!1),x.useImperativeHandle(l,()=>({focusVisible:()=>{oe(!0),re.current.focus()}}),[]);const D=be.shouldMount&&!b&&!m;x.useEffect(()=>{J&&S&&!b&&be.pulsate()},[b,S,J,be]);function ce(we,Xe,$t=E){return ra(ee=>(Xe&&Xe(ee),$t||be[we](ee),!0))}const Oe=ce("start",j),Se=ce("stop",R),tt=ce("stop",H),Me=ce("stop",V),$e=ce("stop",we=>{J&&we.preventDefault(),ae&&ae(we)}),xe=ce("start",W),Ge=ce("stop",A),ve=ce("stop",Y),Re=ce("stop",we=>{Pb(we.target)||oe(!1),_&&_(we)},!1),Ce=ra(we=>{re.current||(re.current=we.currentTarget),Pb(we.target)&&(oe(!0),P&&P(we)),k&&k(we)}),Be=()=>{const we=re.current;return p&&p!=="button"&&!(we.tagName==="A"&&we.href)},it=ra(we=>{S&&!we.repeat&&J&&we.key===" "&&be.stop(we,()=>{be.start(we)}),we.target===we.currentTarget&&Be()&&we.key===" "&&we.preventDefault(),L&&L(we),we.target===we.currentTarget&&Be()&&we.key==="Enter"&&!m&&(we.preventDefault(),I&&I(we))}),je=ra(we=>{S&&we.key===" "&&J&&!we.defaultPrevented&&be.stop(we,()=>{be.pulsate(we)}),M&&M(we),I&&we.target===we.currentTarget&&Be()&&we.key===" "&&!we.defaultPrevented&&I(we)});let Ue=p;Ue==="button"&&(se.href||se.to)&&(Ue=O);const ct={};Ue==="button"?(ct.type=K===void 0?"button":K,ct.disabled=m):(!se.href&&!se.to&&(ct.role="button"),m&&(ct["aria-disabled"]=m));const St=fr(r,re),rn={...i,centerRipple:s,component:p,disabled:m,disableRipple:b,disableTouchRipple:E,focusRipple:S,tabIndex:X,focusVisible:J},_n=c9(rn);return me.jsxs(f9,{as:Ue,className:st(_n.root,d),ownerState:rn,onBlur:Re,onClick:I,onContextMenu:Se,onFocus:Ce,onKeyDown:it,onKeyUp:je,onMouseDown:Oe,onMouseLeave:$e,onMouseUp:Me,onDragLeave:tt,onTouchEnd:Ge,onTouchMove:ve,onTouchStart:xe,ref:St,tabIndex:m?-1:X,type:K,...ct,...se,children:[c,D?me.jsx(l9,{ref:C,center:s,...Q}):null]})});function d9(e){return Un("MuiTab",e)}const mr=Hn("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),h9=e=>{const{classes:t,textColor:r,fullWidth:i,wrapped:l,icon:s,label:c,selected:d,disabled:p}=e,m={root:["root",s&&c&&"labelIcon",`textColor${_t(r)}`,i&&"fullWidth",l&&"wrapped",d&&"selected",p&&"disabled"],icon:["iconWrapper","icon"]};return Zn(m,d9,t)},p9=Ot(h0,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${_t(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${mr.iconWrapper}`]:t.iconWrapper},{[`& .${mr.icon}`]:t.icon}]}})(Fn(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="top",style:{[`& > .${mr.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="bottom",style:{[`& > .${mr.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="start",style:{[`& > .${mr.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="end",style:{[`& > .${mr.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${mr.selected}`]:{opacity:1},[`&.${mr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${mr.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${mr.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${mr.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${mr.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),m9=x.forwardRef(function(t,r){const i=zn({props:t,name:"MuiTab"}),{className:l,disabled:s=!1,disableFocusRipple:c=!1,fullWidth:d,icon:p,iconPosition:m="top",indicator:b,label:E,onChange:S,onClick:y,onFocus:O,selected:_,selectionFollowsFocus:I,textColor:R="inherit",value:H,wrapped:k=!1,...P}=i,L={...i,disabled:s,disableFocusRipple:c,selected:_,icon:!!p,iconPosition:m,label:!!E,fullWidth:d,textColor:R,wrapped:k},M=h9(L),j=p&&E&&x.isValidElement(p)?x.cloneElement(p,{className:st(M.icon,p.props.className)}):p,ae=A=>{!_&&S&&S(A,H),y&&y(A)},V=A=>{I&&!_&&S&&S(A,H),O&&O(A)};return me.jsxs(p9,{focusRipple:!c,className:st(M.root,l),ref:r,role:"tab","aria-selected":_,disabled:s,onClick:ae,onFocus:V,ownerState:L,tabIndex:_?0:-1,...P,children:[m==="top"||m==="start"?me.jsxs(x.Fragment,{children:[j,E]}):me.jsxs(x.Fragment,{children:[E,j]}),b]})});function g9(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function b9(e,t,r,i={},l=()=>{}){const{ease:s=g9,duration:c=300}=i;let d=null;const p=t[e];let m=!1;const b=()=>{m=!0},E=S=>{if(m){l(new Error("Animation cancelled"));return}d===null&&(d=S);const y=Math.min(1,(S-d)/c);if(t[e]=s(y)*(r-p)+p,y>=1){requestAnimationFrame(()=>{l(null)});return}requestAnimationFrame(E)};return p===r?(l(new Error("Element already at target position")),b):(requestAnimationFrame(E),b)}const E9={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function y9(e){const{onChange:t,...r}=e,i=x.useRef(),l=x.useRef(null),s=()=>{i.current=l.current.offsetHeight-l.current.clientHeight};return fi(()=>{const c=Ms(()=>{const p=i.current;s(),p!==i.current&&t(i.current)}),d=jr(l.current);return d.addEventListener("resize",c),()=>{c.clear(),d.removeEventListener("resize",c)}},[t]),x.useEffect(()=>{s(),t(i.current)},[t]),me.jsx("div",{style:E9,ref:l,...r})}const T9=gi(me.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),S9=gi(me.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function C9(e){return Un("MuiTabScrollButton",e)}const A9=Hn("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),x9=e=>{const{classes:t,orientation:r,disabled:i}=e;return Zn({root:["root",r,i&&"disabled"]},C9,t)},_9=Ot(h0,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${A9.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),v9=x.forwardRef(function(t,r){const i=zn({props:t,name:"MuiTabScrollButton"}),{className:l,slots:s={},slotProps:c={},direction:d,orientation:p,disabled:m,...b}=i,E=Hd(),S={isRtl:E,...i},y=x9(S),O=s.StartScrollButtonIcon??T9,_=s.EndScrollButtonIcon??S9,I=Ps({elementType:O,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S}),R=Ps({elementType:_,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S});return me.jsx(_9,{component:"div",className:st(y.root,l),ref:r,role:null,ownerState:S,tabIndex:null,...b,style:{...b.style,...p==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${E?-90:90}deg)`}},children:d==="left"?me.jsx(O,{...I}):me.jsx(_,{...R})})});function R9(e){return Un("MuiTabs",e)}const p0=Hn("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),wE=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,ME=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,uc=(e,t,r)=>{let i=!1,l=r(e,t);for(;l;){if(l===e.firstChild){if(i)return;i=!0}const s=l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||s)l=r(e,l);else{l.focus();return}}},O9=e=>{const{vertical:t,fixed:r,hideScrollbar:i,scrollableX:l,scrollableY:s,centered:c,scrollButtonsHideMobile:d,classes:p}=e;return Zn({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",i&&"hideScrollbar",l&&"scrollableX",s&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",c&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",d&&"scrollButtonsHideMobile"],scrollableX:[l&&"scrollableX"],hideScrollbar:[i&&"hideScrollbar"]},R9,p)},N9=Ot("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${p0.scrollButtons}`]:t.scrollButtons},{[`& .${p0.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(Fn(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${p0.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),k9=Ot("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),D9=Ot("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),L9=Ot("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(Fn(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),I9=Ot(y9)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),BE={},w9=x.forwardRef(function(t,r){const i=zn({props:t,name:"MuiTabs"}),l=Hl(),s=Hd(),{"aria-label":c,"aria-labelledby":d,action:p,centered:m=!1,children:b,className:E,component:S="div",allowScrollButtonsMobile:y=!1,indicatorColor:O="primary",onChange:_,orientation:I="horizontal",ScrollButtonComponent:R=v9,scrollButtons:H="auto",selectionFollowsFocus:k,slots:P={},slotProps:L={},TabIndicatorProps:M={},TabScrollButtonProps:j={},textColor:ae="primary",value:V,variant:A="standard",visibleScrollbar:Y=!1,...W}=i,X=A==="scrollable",Q=I==="vertical",te=Q?"scrollTop":"scrollLeft",K=Q?"top":"left",se=Q?"bottom":"right",re=Q?"clientHeight":"clientWidth",be=Q?"height":"width",C={...i,component:S,allowScrollButtonsMobile:y,indicatorColor:O,orientation:I,vertical:Q,scrollButtons:H,textColor:ae,variant:A,visibleScrollbar:Y,fixed:!X,hideScrollbar:X&&!Y,scrollableX:X&&!Q,scrollableY:X&&Q,centered:m&&!X,scrollButtonsHideMobile:!y},J=O9(C),oe=Ps({elementType:P.StartScrollButtonIcon,externalSlotProps:L.startScrollButtonIcon,ownerState:C}),D=Ps({elementType:P.EndScrollButtonIcon,externalSlotProps:L.endScrollButtonIcon,ownerState:C}),[ce,Oe]=x.useState(!1),[Se,tt]=x.useState(BE),[Me,$e]=x.useState(!1),[xe,Ge]=x.useState(!1),[ve,Re]=x.useState(!1),[Ce,Be]=x.useState({overflow:"hidden",scrollbarWidth:0}),it=new Map,je=x.useRef(null),Ue=x.useRef(null),ct=()=>{const ke=je.current;let _e;if(ke){const Ke=ke.getBoundingClientRect();_e={clientWidth:ke.clientWidth,scrollLeft:ke.scrollLeft,scrollTop:ke.scrollTop,scrollWidth:ke.scrollWidth,top:Ke.top,bottom:Ke.bottom,left:Ke.left,right:Ke.right}}let ze;if(ke&&V!==!1){const Ke=Ue.current.children;if(Ke.length>0){const Ht=Ke[it.get(V)];ze=Ht?Ht.getBoundingClientRect():null}}return{tabsMeta:_e,tabMeta:ze}},St=ra(()=>{const{tabsMeta:ke,tabMeta:_e}=ct();let ze=0,Ke;Q?(Ke="top",_e&&ke&&(ze=_e.top-ke.top+ke.scrollTop)):(Ke=s?"right":"left",_e&&ke&&(ze=(s?-1:1)*(_e[Ke]-ke[Ke]+ke.scrollLeft)));const Ht={[Ke]:ze,[be]:_e?_e[be]:0};if(typeof Se[Ke]!="number"||typeof Se[be]!="number")tt(Ht);else{const gr=Math.abs(Se[Ke]-Ht[Ke]),br=Math.abs(Se[be]-Ht[be]);(gr>=1||br>=1)&&tt(Ht)}}),rn=(ke,{animation:_e=!0}={})=>{_e?b9(te,je.current,ke,{duration:l.transitions.duration.standard}):je.current[te]=ke},_n=ke=>{let _e=je.current[te];Q?_e+=ke:_e+=ke*(s?-1:1),rn(_e)},we=()=>{const ke=je.current[re];let _e=0;const ze=Array.from(Ue.current.children);for(let Ke=0;Ke<ze.length;Ke+=1){const Ht=ze[Ke];if(_e+Ht[re]>ke){Ke===0&&(_e=ke);break}_e+=Ht[re]}return _e},Xe=()=>{_n(-1*we())},$t=()=>{_n(we())},ee=x.useCallback(ke=>{Be({overflow:null,scrollbarWidth:ke})},[]),de=()=>{const ke={};ke.scrollbarSizeListener=X?me.jsx(I9,{onChange:ee,className:st(J.scrollableX,J.hideScrollbar)}):null;const ze=X&&(H==="auto"&&(Me||xe)||H===!0);return ke.scrollButtonStart=ze?me.jsx(R,{slots:{StartScrollButtonIcon:P.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:oe},orientation:I,direction:s?"right":"left",onClick:Xe,disabled:!Me,...j,className:st(J.scrollButtons,j.className)}):null,ke.scrollButtonEnd=ze?me.jsx(R,{slots:{EndScrollButtonIcon:P.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:D},orientation:I,direction:s?"left":"right",onClick:$t,disabled:!xe,...j,className:st(J.scrollButtons,j.className)}):null,ke},Ae=ra(ke=>{const{tabsMeta:_e,tabMeta:ze}=ct();if(!(!ze||!_e)){if(ze[K]<_e[K]){const Ke=_e[te]+(ze[K]-_e[K]);rn(Ke,{animation:ke})}else if(ze[se]>_e[se]){const Ke=_e[te]+(ze[se]-_e[se]);rn(Ke,{animation:ke})}}}),He=ra(()=>{X&&H!==!1&&Re(!ve)});x.useEffect(()=>{const ke=Ms(()=>{je.current&&St()});let _e;const ze=gr=>{gr.forEach(br=>{br.removedNodes.forEach(Xr=>{_e==null||_e.unobserve(Xr)}),br.addedNodes.forEach(Xr=>{_e==null||_e.observe(Xr)})}),ke(),He()},Ke=jr(je.current);Ke.addEventListener("resize",ke);let Ht;return typeof ResizeObserver<"u"&&(_e=new ResizeObserver(ke),Array.from(Ue.current.children).forEach(gr=>{_e.observe(gr)})),typeof MutationObserver<"u"&&(Ht=new MutationObserver(ze),Ht.observe(Ue.current,{childList:!0})),()=>{ke.clear(),Ke.removeEventListener("resize",ke),Ht==null||Ht.disconnect(),_e==null||_e.disconnect()}},[St,He]),x.useEffect(()=>{const ke=Array.from(Ue.current.children),_e=ke.length;if(typeof IntersectionObserver<"u"&&_e>0&&X&&H!==!1){const ze=ke[0],Ke=ke[_e-1],Ht={root:je.current,threshold:.99},gr=Ma=>{$e(!Ma[0].isIntersecting)},br=new IntersectionObserver(gr,Ht);br.observe(ze);const Xr=Ma=>{Ge(!Ma[0].isIntersecting)},Qr=new IntersectionObserver(Xr,Ht);return Qr.observe(Ke),()=>{br.disconnect(),Qr.disconnect()}}},[X,H,ve,b==null?void 0:b.length]),x.useEffect(()=>{Oe(!0)},[]),x.useEffect(()=>{St()}),x.useEffect(()=>{Ae(BE!==Se)},[Ae,Se]),x.useImperativeHandle(p,()=>({updateIndicator:St,updateScrollButtons:He}),[St,He]);const nt=me.jsx(L9,{...M,className:st(J.indicator,M.className),ownerState:C,style:{...Se,...M.style}});let Qe=0;const vn=x.Children.map(b,ke=>{if(!x.isValidElement(ke))return null;const _e=ke.props.value===void 0?Qe:ke.props.value;it.set(_e,Qe);const ze=_e===V;return Qe+=1,x.cloneElement(ke,{fullWidth:A==="fullWidth",indicator:ze&&!ce&&nt,selected:ze,selectionFollowsFocus:k,onChange:_,textColor:ae,value:_e,...Qe===1&&V===!1&&!ke.props.tabIndex?{tabIndex:0}:{}})}),an=ke=>{const _e=Ue.current,ze=Da(_e).activeElement;if(ze.getAttribute("role")!=="tab")return;let Ht=I==="horizontal"?"ArrowLeft":"ArrowUp",gr=I==="horizontal"?"ArrowRight":"ArrowDown";switch(I==="horizontal"&&s&&(Ht="ArrowRight",gr="ArrowLeft"),ke.key){case Ht:ke.preventDefault(),uc(_e,ze,ME);break;case gr:ke.preventDefault(),uc(_e,ze,wE);break;case"Home":ke.preventDefault(),uc(_e,null,wE);break;case"End":ke.preventDefault(),uc(_e,null,ME);break}},Ft=de();return me.jsxs(N9,{className:st(J.root,E),ownerState:C,ref:r,as:S,...W,children:[Ft.scrollButtonStart,Ft.scrollbarSizeListener,me.jsxs(k9,{className:J.scroller,ownerState:C,style:{overflow:Ce.overflow,[Q?`margin${s?"Left":"Right"}`:"marginBottom"]:Y?void 0:-Ce.scrollbarWidth},ref:je,children:[me.jsx(D9,{"aria-label":c,"aria-labelledby":d,"aria-orientation":I==="vertical"?"vertical":null,className:J.flexContainer,ownerState:C,onKeyDown:an,ref:Ue,role:"tablist",children:vn}),ce&&nt]}),Ft.scrollButtonEnd]})}),PE=x.createContext(null);function M9(){const[e,t]=x.useState(null);return x.useEffect(()=>{t(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function B9(e){const{children:t,value:r}=e,i=M9(),l=x.useMemo(()=>({idPrefix:i,value:r}),[i,r]);return me.jsx(PE.Provider,{value:l,children:t})}function UE(){return x.useContext(PE)}function HE(e,t){const{idPrefix:r}=e;return r===null?null:`${e.idPrefix}-P-${t}`}function FE(e,t){const{idPrefix:r}=e;return r===null?null:`${e.idPrefix}-T-${t}`}const P9=x.forwardRef(function(t,r){const{children:i,...l}=t,s=UE();if(s===null)throw new TypeError("No TabContext provided");const c=x.Children.map(i,d=>x.isValidElement(d)?x.cloneElement(d,{"aria-controls":HE(s,d.props.value),id:FE(s,d.props.value)}):null);return me.jsx(w9,{...l,ref:r,value:s.value,children:c})});function U9({props:e,name:t}){return fO({props:e,name:t,defaultTheme:Js,themeId:$r})}function zE({theme:e,...t}){const r=$r in e?e[$r]:void 0;return me.jsx(oE,{...t,themeId:r?$r:void 0,theme:r||e})}const lc={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:H9}=OO({themeId:$r,theme:()=>Zs({cssVariables:!0}),colorSchemeStorageKey:lc.colorSchemeStorageKey,modeStorageKey:lc.modeStorageKey,defaultColorScheme:{light:lc.defaultLightColorScheme,dark:lc.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:yE(e.palette,e.typography)};return t.unstable_sx=function(i){return di({sx:i,theme:this})},t}}),F9=H9;function z9({theme:e,...t}){return typeof e=="function"?me.jsx(zE,{theme:e,...t}):"colorSchemes"in($r in e?e[$r]:e)?me.jsx(F9,{theme:e,...t}):me.jsx(zE,{theme:e,...t})}const nn={text:{roman:400,medium:500,bold:700}},dt=e=>`${e/16}rem`,YE={fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeightLight:nn.text.roman,fontWeightRegular:nn.text.roman,fontWeightMedium:nn.text.medium,fontWeightBold:nn.text.bold,h1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.bold,fontStyle:"normal",fontSize:dt(52),lineHeight:dt(60)},h2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.bold,fontStyle:"normal",fontSize:dt(34),lineHeight:dt(40)},h3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.bold,fontStyle:"normal",fontSize:dt(28),lineHeight:dt(36)},h4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.bold,fontStyle:"normal",fontSize:dt(24),lineHeight:dt(30)},h5:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.medium,fontStyle:"normal",fontSize:dt(18),lineHeight:dt(22)},subtitle1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.medium,fontStyle:"normal",fontSize:dt(16),lineHeight:dt(20)},subtitle2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.medium,fontStyle:"normal",fontSize:dt(14),lineHeight:dt(18)},subtitle3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.medium,fontStyle:"normal",fontSize:dt(12),lineHeight:dt(16)},subtitle4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.medium,fontStyle:"normal",fontSize:dt(10),lineHeight:dt(14)},body1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.roman,fontStyle:"normal",fontSize:dt(16),lineHeight:dt(20)},body2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.roman,fontStyle:"normal",fontSize:dt(14),lineHeight:dt(18)},body3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.roman,fontStyle:"normal",fontSize:dt(12),lineHeight:dt(16)},body4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.roman,fontStyle:"normal",fontSize:dt(10),lineHeight:dt(14)},buttonLarge:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.medium,fontStyle:"normal",fontSize:dt(16),lineHeight:dt(20)},button:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.medium,fontStyle:"normal",fontSize:dt(14),lineHeight:dt(18),textTransform:"none"},buttonSmall:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.medium,fontStyle:"normal",fontSize:dt(12),lineHeight:dt(16)}},Y9={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"}}},{typography:a7}=Zs({typography:YE,custom:{}}),j9=Fe.a({color:"inherit",textDecoration:"none"}),V9=x.forwardRef(function({Component:t,...r},i){const l=DC(),s=t??l.custom.LinkAdapter;return x.createElement(j9,{as:s,ref:i,...r})}),$9={variant:!0,size:!0,edge:!0,startIcon:!0,endIcon:!0,responsive:!0,color:!0},jE=e=>!$9[e],m0={variant:"primary",size:"medium",edge:"rounded",responsive:!1},VE={small:1,medium:1,large:2},$E={small:"small",medium:"small",large:"medium"},qE=(e,t,r)=>{const i=t?VE[e]:0;return[{boxSizing:"border-box",borderWidth:VE[e]},e==="large"&&{padding:`${14-i}px 24px`,...r.typography.buttonLarge},e==="medium"&&{padding:`${11-i}px 16px`,...r.typography.button},e==="small"&&{padding:`${8-i}px 12px`,...r.typography.buttonSmall}]},GE=e=>{const{size:t,variant:r,edge:i,theme:l,color:s,responsive:c}={...m0,...e},{colors:d}=l.custom,p=r==="secondary"||r==="bordered";return ps([{color:l.palette.text.primary,textAlign:"center",display:"inline-flex",justifyContent:"center",alignItems:"center",transition:`background ${l.transitions.duration.short}ms`,cursor:"pointer",":disabled":{cursor:"default"},minWidth:"100px"},...qE(t,p,l),c&&{[l.breakpoints.down("sm")]:qE($E[t],p,l)},r==="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"}},r==="secondary"&&{color:d.red,backgroundColor:"transparent",borderColor:"currentcolor",borderStyle:"solid",":hover:not(:disabled)":{backgroundColor:"rgba(255, 20, 35, 0.06)"},":disabled":{color:d.silverGray}},r==="text"&&{backgroundColor:"transparent",borderStyle:"none",color:d.darkGray2,":hover:not(:disabled)":{backgroundColor:"rgba(64, 70, 76, 0.06)"},":disabled":{color:d.silverGray}},r==="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}},r==="tertiary"&&{color:d.darkGray2,border:"none",backgroundColor:d.lightGray2,":hover:not(:disabled)":{backgroundColor:d.white},":disabled":{backgroundColor:d.lightGray2,color:d.silverGrayLight}},i==="rounded"&&{borderRadius:"4px"},i==="circular"&&{borderRadius:"100vh"},s==="secondary"&&{color:l.custom.colors.silverGray,borderColor:l.custom.colors.silverGray,":hover:not(:disabled)":{backgroundColor:l.custom.colors.lightGray1}}])},XE=Fe("button",{shouldForwardProp:jE})(GE),QE=Fe(V9,{shouldForwardProp:jE})(GE),KE=Fe.span(({size:e,side:t})=>[{height:"1em",display:"flex",alignItems:"center"},t==="start"&&{marginLeft:"-4px",marginRight:"8px"},t==="end"&&{marginLeft:"8px",marginRight:"-4px"},{"& svg, & .MuiSvgIcon-root":{width:"1em",height:"1em",fontSize:dt({small:16,medium:20,large:24}[e])}}]),WE=e=>{const{children:t,size:r=m0.size}=e;return x.createElement(x.Fragment,null,e.startIcon?x.createElement(KE,{size:r,side:"start"},e.startIcon):null,t,e.endIcon?x.createElement(KE,{size:r,side:"end"},e.endIcon):null)},ZE=x.forwardRef(({children:e,...t},r)=>x.createElement(XE,{ref:r,type:"button",...t},x.createElement(WE,{...t},e)));ZE.displayName="Button";const JE=x.forwardRef(({children:e,Component:t,...r},i)=>x.createElement(QE,{Component:t,ref:i,...r},x.createElement(WE,{...r},e)));JE.displayName="ButtonLink";const q9={variant:"scrollable",allowScrollButtonsMobile:!0,scrollButtons:"auto"},G9=Fe(e=>x.createElement(P9,{...q9,...e}))(({theme:e,styleVariant:t})=>({minHeight:"unset",".MuiTabs-indicator":{display:"none"},".MuiTabs-flexContainer":{gap:"8px",alignItems:"center"},".MuiTabs-scroller":{display:"flex"},...t==="chat"&&{flexGrow:1,".MuiTabs-flexContainer":{flexGrow:1,gap:"8px",alignItems:"center",backgroundColor:e.custom.colors.lightGray1,padding:"4px",borderRadius:"8px"},button:{flexGrow:1,backgroundColor:"transparent",...e.typography.body2},"button[aria-selected=true], button[aria-selected=true]:hover":{backgroundColor:e.custom.colors.darkGray1,color:e.custom.colors.white,cursor:"default"}}})),e2=({theme:e})=>ps({minWidth:"auto",":focus-visible":{outlineOffset:"-1px"},'&[aria-selected="true"]':{backgroundColor:e.custom.colors.white,borderColor:e.custom.colors.darkGray2}}),X9=Fe(ZE)(e2),Q9=Fe(JE)(e2),t2={variant:"tertiary",size:"small"},n2=x.forwardRef((e,t)=>{const{className:r,...i}=e;return x.createElement(X9,{...t2,...i,ref:t})});n2.displayName="TabButtonInner";const K9=x.forwardRef((e,t)=>{const{className:r,...i}=e;return x.createElement(Q9,{...t2,...i,ref:t})});K9.displayName="TabLinkInner";const g0=e=>x.createElement(m9,{...e,component:n2});function W9(e){return typeof e.main=="string"}function Z9(e,t=[]){if(!W9(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function pu(e=[]){return([,t])=>t&&Z9(t,e)}function J9(e){return Un("MuiTypography",e)}Hn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ek={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},tk=hN(),nk=e=>{const{align:t,gutterBottom:r,noWrap:i,paragraph:l,variant:s,classes:c}=e,d={root:["root",s,e.align!=="inherit"&&`align${_t(t)}`,r&&"gutterBottom",i&&"noWrap",l&&"paragraph"]};return Zn(d,J9,c)},rk=Ot("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${_t(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Fn(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,i])=>r!=="inherit"&&i&&typeof i=="object").map(([r,i])=>({props:{variant:r},style:i})),...Object.entries(e.palette).filter(pu()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${_t(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),r2={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},bi=x.forwardRef(function(t,r){const{color:i,...l}=zn({props:t,name:"MuiTypography"}),s=!ek[i],c=tk({...l,...s&&{color:i}}),{align:d="inherit",className:p,component:m,gutterBottom:b=!1,noWrap:E=!1,paragraph:S=!1,variant:y="body1",variantMapping:O=r2,..._}=c,I={...c,align:d,color:i,className:p,component:m,gutterBottom:b,noWrap:E,paragraph:S,variant:y,variantMapping:O},R=m||(S?"p":O[y]||r2[y])||"span",H=nk(I);return me.jsx(rk,{as:R,ref:r,className:st(H.root,p),..._,ownerState:I,style:{...d!=="inherit"&&{"--Typography-textAlign":d},..._.style}})});function ak(e,t,r=void 0){const i={};for(const l in e){const s=e[l];let c="",d=!0;for(let p=0;p<s.length;p+=1){const m=s[p];m&&(c+=(d===!0?"":" ")+t(m),d=!1,r&&r[m]&&(c+=" "+r[m]))}i[l]=c}return i}const a2=e=>e,ik=(()=>{let e=a2;return{configure(t){e=t},generate(t){return e(t)},reset(){e=a2}}})(),uk={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 i2(e,t,r="Mui"){const i=uk[t];return i?`${r}-${i}`:`${ik.generate(e)}-${t}`}function lk(e,t,r="Mui"){const i={};return t.forEach(l=>{i[l]=i2(e,l,r)}),i}function ok(e){return i2("MuiTabPanel",e)}lk("MuiTabPanel",["root","hidden"]);const sk=e=>{const{classes:t,hidden:r}=e;return ak({root:["root",r&&"hidden"]},ok,t)},ck=Ot("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)})),fk=x.forwardRef(function(t,r){const i=U9({props:t,name:"MuiTabPanel"}),{children:l,className:s,value:c,keepMounted:d=!1,...p}=i,m={...i},b=sk(m),E=UE();if(E===null)throw new TypeError("No TabContext provided");const S=HE(E,c),y=FE(E,c);return me.jsx(ck,{"aria-labelledby":y,className:st(b.root,s),hidden:c!==E.value,id:S,ref:r,role:"tabpanel",ownerState:m,...p,children:(d||c===E.value)&&l})});var b0={exports:{}};/*!
191
+ `,l9=x.forwardRef(function(t,r){const i=zn({props:t,name:"MuiTouchRipple"}),{center:l=!1,classes:s={},className:c,...d}=i,[p,m]=x.useState([]),b=x.useRef(0),E=x.useRef(null);x.useEffect(()=>{E.current&&(E.current(),E.current=null)},[p]);const S=x.useRef(!1),y=L8(),O=x.useRef(null),_=x.useRef(null),I=x.useCallback(P=>{const{pulsate:L,rippleX:M,rippleY:j,rippleSize:ae,cb:V}=P;m(A=>[...A,me.jsx(u9,{classes:{ripple:st(s.ripple,pr.ripple),rippleVisible:st(s.rippleVisible,pr.rippleVisible),ripplePulsate:st(s.ripplePulsate,pr.ripplePulsate),child:st(s.child,pr.child),childLeaving:st(s.childLeaving,pr.childLeaving),childPulsate:st(s.childPulsate,pr.childPulsate)},timeout:d0,pulsate:L,rippleX:M,rippleY:j,rippleSize:ae},b.current)]),b.current+=1,E.current=V},[s]),v=x.useCallback((P={},L={},M=()=>{})=>{const{pulsate:j=!1,center:ae=l||L.pulsate,fakeElement:V=!1}=L;if((P==null?void 0:P.type)==="mousedown"&&S.current){S.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(S.current=!0);const A=V?null:_.current,Y=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let W,Q,G;if(ae||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)W=Math.round(Y.width/2),Q=Math.round(Y.height/2);else{const{clientX:ee,clientY:K}=P.touches&&P.touches.length>0?P.touches[0]:P;W=Math.round(ee-Y.left),Q=Math.round(K-Y.top)}if(ae)G=Math.sqrt((2*Y.width**2+Y.height**2)/3),G%2===0&&(G+=1);else{const ee=Math.max(Math.abs((A?A.clientWidth:0)-W),W)*2+2,K=Math.max(Math.abs((A?A.clientHeight:0)-Q),Q)*2+2;G=Math.sqrt(ee**2+K**2)}P!=null&&P.touches?O.current===null&&(O.current=()=>{I({pulsate:j,rippleX:W,rippleY:Q,rippleSize:G,cb:M})},y.start(t9,()=>{O.current&&(O.current(),O.current=null)})):I({pulsate:j,rippleX:W,rippleY:Q,rippleSize:G,cb:M})},[l,I,y]),H=x.useCallback(()=>{v({},{pulsate:!0})},[v]),k=x.useCallback((P,L)=>{if(y.clear(),(P==null?void 0:P.type)==="touchend"&&O.current){O.current(),O.current=null,y.start(0,()=>{k(P,L)});return}O.current=null,m(M=>M.length>0?M.slice(1):M),E.current=L},[y]);return x.useImperativeHandle(r,()=>({pulsate:H,start:v,stop:k}),[H,v,k]),me.jsx(i9,{className:st(pr.root,s.root,c),ref:_,...d,children:me.jsx(f0,{component:null,exit:!0,children:p})})});function o9(e){return Un("MuiButtonBase",e)}const s9=Hn("MuiButtonBase",["root","disabled","focusVisible"]),c9=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:i,classes:l}=e,c=Zn({root:["root",t&&"disabled",r&&"focusVisible"]},o9,l);return r&&i&&(c.root+=` ${i}`),c},f9=Ot("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${s9.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),h0=x.forwardRef(function(t,r){const i=zn({props:t,name:"MuiButtonBase"}),{action:l,centerRipple:s=!1,children:c,className:d,component:p="button",disabled:m=!1,disableRipple:b=!1,disableTouchRipple:E=!1,focusRipple:S=!1,focusVisibleClassName:y,LinkComponent:O="a",onBlur:_,onClick:I,onContextMenu:v,onDragLeave:H,onFocus:k,onFocusVisible:P,onKeyDown:L,onKeyUp:M,onMouseDown:j,onMouseLeave:ae,onMouseUp:V,onTouchEnd:A,onTouchMove:Y,onTouchStart:W,tabIndex:Q=0,TouchRippleProps:G,touchRippleRef:ee,type:K,...se}=i,re=x.useRef(null),be=ZN(),C=fr(be.ref,ee),[J,oe]=x.useState(!1);m&&J&&oe(!1),x.useImperativeHandle(l,()=>({focusVisible:()=>{oe(!0),re.current.focus()}}),[]);const D=be.shouldMount&&!b&&!m;x.useEffect(()=>{J&&S&&!b&&be.pulsate()},[b,S,J,be]);function ce(we,Xe,$t=E){return ra(te=>(Xe&&Xe(te),$t||be[we](te),!0))}const Oe=ce("start",j),Se=ce("stop",v),tt=ce("stop",H),Me=ce("stop",V),$e=ce("stop",we=>{J&&we.preventDefault(),ae&&ae(we)}),xe=ce("start",W),Ge=ce("stop",A),ve=ce("stop",Y),Re=ce("stop",we=>{Pb(we.target)||oe(!1),_&&_(we)},!1),Ce=ra(we=>{re.current||(re.current=we.currentTarget),Pb(we.target)&&(oe(!0),P&&P(we)),k&&k(we)}),Be=()=>{const we=re.current;return p&&p!=="button"&&!(we.tagName==="A"&&we.href)},it=ra(we=>{S&&!we.repeat&&J&&we.key===" "&&be.stop(we,()=>{be.start(we)}),we.target===we.currentTarget&&Be()&&we.key===" "&&we.preventDefault(),L&&L(we),we.target===we.currentTarget&&Be()&&we.key==="Enter"&&!m&&(we.preventDefault(),I&&I(we))}),je=ra(we=>{S&&we.key===" "&&J&&!we.defaultPrevented&&be.stop(we,()=>{be.pulsate(we)}),M&&M(we),I&&we.target===we.currentTarget&&Be()&&we.key===" "&&!we.defaultPrevented&&I(we)});let Ue=p;Ue==="button"&&(se.href||se.to)&&(Ue=O);const ct={};Ue==="button"?(ct.type=K===void 0?"button":K,ct.disabled=m):(!se.href&&!se.to&&(ct.role="button"),m&&(ct["aria-disabled"]=m));const St=fr(r,re),rn={...i,centerRipple:s,component:p,disabled:m,disableRipple:b,disableTouchRipple:E,focusRipple:S,tabIndex:Q,focusVisible:J},_n=c9(rn);return me.jsxs(f9,{as:Ue,className:st(_n.root,d),ownerState:rn,onBlur:Re,onClick:I,onContextMenu:Se,onFocus:Ce,onKeyDown:it,onKeyUp:je,onMouseDown:Oe,onMouseLeave:$e,onMouseUp:Me,onDragLeave:tt,onTouchEnd:Ge,onTouchMove:ve,onTouchStart:xe,ref:St,tabIndex:m?-1:Q,type:K,...ct,...se,children:[c,D?me.jsx(l9,{ref:C,center:s,...G}):null]})});function d9(e){return Un("MuiTab",e)}const mr=Hn("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),h9=e=>{const{classes:t,textColor:r,fullWidth:i,wrapped:l,icon:s,label:c,selected:d,disabled:p}=e,m={root:["root",s&&c&&"labelIcon",`textColor${_t(r)}`,i&&"fullWidth",l&&"wrapped",d&&"selected",p&&"disabled"],icon:["iconWrapper","icon"]};return Zn(m,d9,t)},p9=Ot(h0,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${_t(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${mr.iconWrapper}`]:t.iconWrapper},{[`& .${mr.icon}`]:t.icon}]}})(Fn(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="top",style:{[`& > .${mr.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="bottom",style:{[`& > .${mr.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="start",style:{[`& > .${mr.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="end",style:{[`& > .${mr.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${mr.selected}`]:{opacity:1},[`&.${mr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${mr.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${mr.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${mr.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${mr.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),m9=x.forwardRef(function(t,r){const i=zn({props:t,name:"MuiTab"}),{className:l,disabled:s=!1,disableFocusRipple:c=!1,fullWidth:d,icon:p,iconPosition:m="top",indicator:b,label:E,onChange:S,onClick:y,onFocus:O,selected:_,selectionFollowsFocus:I,textColor:v="inherit",value:H,wrapped:k=!1,...P}=i,L={...i,disabled:s,disableFocusRipple:c,selected:_,icon:!!p,iconPosition:m,label:!!E,fullWidth:d,textColor:v,wrapped:k},M=h9(L),j=p&&E&&x.isValidElement(p)?x.cloneElement(p,{className:st(M.icon,p.props.className)}):p,ae=A=>{!_&&S&&S(A,H),y&&y(A)},V=A=>{I&&!_&&S&&S(A,H),O&&O(A)};return me.jsxs(p9,{focusRipple:!c,className:st(M.root,l),ref:r,role:"tab","aria-selected":_,disabled:s,onClick:ae,onFocus:V,ownerState:L,tabIndex:_?0:-1,...P,children:[m==="top"||m==="start"?me.jsxs(x.Fragment,{children:[j,E]}):me.jsxs(x.Fragment,{children:[E,j]}),b]})});function g9(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function b9(e,t,r,i={},l=()=>{}){const{ease:s=g9,duration:c=300}=i;let d=null;const p=t[e];let m=!1;const b=()=>{m=!0},E=S=>{if(m){l(new Error("Animation cancelled"));return}d===null&&(d=S);const y=Math.min(1,(S-d)/c);if(t[e]=s(y)*(r-p)+p,y>=1){requestAnimationFrame(()=>{l(null)});return}requestAnimationFrame(E)};return p===r?(l(new Error("Element already at target position")),b):(requestAnimationFrame(E),b)}const E9={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function y9(e){const{onChange:t,...r}=e,i=x.useRef(),l=x.useRef(null),s=()=>{i.current=l.current.offsetHeight-l.current.clientHeight};return fi(()=>{const c=Ms(()=>{const p=i.current;s(),p!==i.current&&t(i.current)}),d=jr(l.current);return d.addEventListener("resize",c),()=>{c.clear(),d.removeEventListener("resize",c)}},[t]),x.useEffect(()=>{s(),t(i.current)},[t]),me.jsx("div",{style:E9,ref:l,...r})}const T9=gi(me.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),S9=gi(me.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function C9(e){return Un("MuiTabScrollButton",e)}const A9=Hn("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),x9=e=>{const{classes:t,orientation:r,disabled:i}=e;return Zn({root:["root",r,i&&"disabled"]},C9,t)},_9=Ot(h0,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${A9.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),v9=x.forwardRef(function(t,r){const i=zn({props:t,name:"MuiTabScrollButton"}),{className:l,slots:s={},slotProps:c={},direction:d,orientation:p,disabled:m,...b}=i,E=Hd(),S={isRtl:E,...i},y=x9(S),O=s.StartScrollButtonIcon??T9,_=s.EndScrollButtonIcon??S9,I=Ps({elementType:O,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S}),v=Ps({elementType:_,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S});return me.jsx(_9,{component:"div",className:st(y.root,l),ref:r,role:null,ownerState:S,tabIndex:null,...b,style:{...b.style,...p==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${E?-90:90}deg)`}},children:d==="left"?me.jsx(O,{...I}):me.jsx(_,{...v})})});function R9(e){return Un("MuiTabs",e)}const p0=Hn("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),wE=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,ME=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,uc=(e,t,r)=>{let i=!1,l=r(e,t);for(;l;){if(l===e.firstChild){if(i)return;i=!0}const s=l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||s)l=r(e,l);else{l.focus();return}}},O9=e=>{const{vertical:t,fixed:r,hideScrollbar:i,scrollableX:l,scrollableY:s,centered:c,scrollButtonsHideMobile:d,classes:p}=e;return Zn({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",i&&"hideScrollbar",l&&"scrollableX",s&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",c&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",d&&"scrollButtonsHideMobile"],scrollableX:[l&&"scrollableX"],hideScrollbar:[i&&"hideScrollbar"]},R9,p)},N9=Ot("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${p0.scrollButtons}`]:t.scrollButtons},{[`& .${p0.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(Fn(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${p0.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),k9=Ot("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),D9=Ot("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),L9=Ot("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(Fn(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),I9=Ot(y9)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),BE={},w9=x.forwardRef(function(t,r){const i=zn({props:t,name:"MuiTabs"}),l=Hl(),s=Hd(),{"aria-label":c,"aria-labelledby":d,action:p,centered:m=!1,children:b,className:E,component:S="div",allowScrollButtonsMobile:y=!1,indicatorColor:O="primary",onChange:_,orientation:I="horizontal",ScrollButtonComponent:v=v9,scrollButtons:H="auto",selectionFollowsFocus:k,slots:P={},slotProps:L={},TabIndicatorProps:M={},TabScrollButtonProps:j={},textColor:ae="primary",value:V,variant:A="standard",visibleScrollbar:Y=!1,...W}=i,Q=A==="scrollable",G=I==="vertical",ee=G?"scrollTop":"scrollLeft",K=G?"top":"left",se=G?"bottom":"right",re=G?"clientHeight":"clientWidth",be=G?"height":"width",C={...i,component:S,allowScrollButtonsMobile:y,indicatorColor:O,orientation:I,vertical:G,scrollButtons:H,textColor:ae,variant:A,visibleScrollbar:Y,fixed:!Q,hideScrollbar:Q&&!Y,scrollableX:Q&&!G,scrollableY:Q&&G,centered:m&&!Q,scrollButtonsHideMobile:!y},J=O9(C),oe=Ps({elementType:P.StartScrollButtonIcon,externalSlotProps:L.startScrollButtonIcon,ownerState:C}),D=Ps({elementType:P.EndScrollButtonIcon,externalSlotProps:L.endScrollButtonIcon,ownerState:C}),[ce,Oe]=x.useState(!1),[Se,tt]=x.useState(BE),[Me,$e]=x.useState(!1),[xe,Ge]=x.useState(!1),[ve,Re]=x.useState(!1),[Ce,Be]=x.useState({overflow:"hidden",scrollbarWidth:0}),it=new Map,je=x.useRef(null),Ue=x.useRef(null),ct=()=>{const ke=je.current;let _e;if(ke){const Ke=ke.getBoundingClientRect();_e={clientWidth:ke.clientWidth,scrollLeft:ke.scrollLeft,scrollTop:ke.scrollTop,scrollWidth:ke.scrollWidth,top:Ke.top,bottom:Ke.bottom,left:Ke.left,right:Ke.right}}let ze;if(ke&&V!==!1){const Ke=Ue.current.children;if(Ke.length>0){const Ht=Ke[it.get(V)];ze=Ht?Ht.getBoundingClientRect():null}}return{tabsMeta:_e,tabMeta:ze}},St=ra(()=>{const{tabsMeta:ke,tabMeta:_e}=ct();let ze=0,Ke;G?(Ke="top",_e&&ke&&(ze=_e.top-ke.top+ke.scrollTop)):(Ke=s?"right":"left",_e&&ke&&(ze=(s?-1:1)*(_e[Ke]-ke[Ke]+ke.scrollLeft)));const Ht={[Ke]:ze,[be]:_e?_e[be]:0};if(typeof Se[Ke]!="number"||typeof Se[be]!="number")tt(Ht);else{const gr=Math.abs(Se[Ke]-Ht[Ke]),br=Math.abs(Se[be]-Ht[be]);(gr>=1||br>=1)&&tt(Ht)}}),rn=(ke,{animation:_e=!0}={})=>{_e?b9(ee,je.current,ke,{duration:l.transitions.duration.standard}):je.current[ee]=ke},_n=ke=>{let _e=je.current[ee];G?_e+=ke:_e+=ke*(s?-1:1),rn(_e)},we=()=>{const ke=je.current[re];let _e=0;const ze=Array.from(Ue.current.children);for(let Ke=0;Ke<ze.length;Ke+=1){const Ht=ze[Ke];if(_e+Ht[re]>ke){Ke===0&&(_e=ke);break}_e+=Ht[re]}return _e},Xe=()=>{_n(-1*we())},$t=()=>{_n(we())},te=x.useCallback(ke=>{Be({overflow:null,scrollbarWidth:ke})},[]),de=()=>{const ke={};ke.scrollbarSizeListener=Q?me.jsx(I9,{onChange:te,className:st(J.scrollableX,J.hideScrollbar)}):null;const ze=Q&&(H==="auto"&&(Me||xe)||H===!0);return ke.scrollButtonStart=ze?me.jsx(v,{slots:{StartScrollButtonIcon:P.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:oe},orientation:I,direction:s?"right":"left",onClick:Xe,disabled:!Me,...j,className:st(J.scrollButtons,j.className)}):null,ke.scrollButtonEnd=ze?me.jsx(v,{slots:{EndScrollButtonIcon:P.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:D},orientation:I,direction:s?"left":"right",onClick:$t,disabled:!xe,...j,className:st(J.scrollButtons,j.className)}):null,ke},Ae=ra(ke=>{const{tabsMeta:_e,tabMeta:ze}=ct();if(!(!ze||!_e)){if(ze[K]<_e[K]){const Ke=_e[ee]+(ze[K]-_e[K]);rn(Ke,{animation:ke})}else if(ze[se]>_e[se]){const Ke=_e[ee]+(ze[se]-_e[se]);rn(Ke,{animation:ke})}}}),He=ra(()=>{Q&&H!==!1&&Re(!ve)});x.useEffect(()=>{const ke=Ms(()=>{je.current&&St()});let _e;const ze=gr=>{gr.forEach(br=>{br.removedNodes.forEach(Xr=>{_e==null||_e.unobserve(Xr)}),br.addedNodes.forEach(Xr=>{_e==null||_e.observe(Xr)})}),ke(),He()},Ke=jr(je.current);Ke.addEventListener("resize",ke);let Ht;return typeof ResizeObserver<"u"&&(_e=new ResizeObserver(ke),Array.from(Ue.current.children).forEach(gr=>{_e.observe(gr)})),typeof MutationObserver<"u"&&(Ht=new MutationObserver(ze),Ht.observe(Ue.current,{childList:!0})),()=>{ke.clear(),Ke.removeEventListener("resize",ke),Ht==null||Ht.disconnect(),_e==null||_e.disconnect()}},[St,He]),x.useEffect(()=>{const ke=Array.from(Ue.current.children),_e=ke.length;if(typeof IntersectionObserver<"u"&&_e>0&&Q&&H!==!1){const ze=ke[0],Ke=ke[_e-1],Ht={root:je.current,threshold:.99},gr=Ma=>{$e(!Ma[0].isIntersecting)},br=new IntersectionObserver(gr,Ht);br.observe(ze);const Xr=Ma=>{Ge(!Ma[0].isIntersecting)},Qr=new IntersectionObserver(Xr,Ht);return Qr.observe(Ke),()=>{br.disconnect(),Qr.disconnect()}}},[Q,H,ve,b==null?void 0:b.length]),x.useEffect(()=>{Oe(!0)},[]),x.useEffect(()=>{St()}),x.useEffect(()=>{Ae(BE!==Se)},[Ae,Se]),x.useImperativeHandle(p,()=>({updateIndicator:St,updateScrollButtons:He}),[St,He]);const nt=me.jsx(L9,{...M,className:st(J.indicator,M.className),ownerState:C,style:{...Se,...M.style}});let Qe=0;const vn=x.Children.map(b,ke=>{if(!x.isValidElement(ke))return null;const _e=ke.props.value===void 0?Qe:ke.props.value;it.set(_e,Qe);const ze=_e===V;return Qe+=1,x.cloneElement(ke,{fullWidth:A==="fullWidth",indicator:ze&&!ce&&nt,selected:ze,selectionFollowsFocus:k,onChange:_,textColor:ae,value:_e,...Qe===1&&V===!1&&!ke.props.tabIndex?{tabIndex:0}:{}})}),an=ke=>{const _e=Ue.current,ze=Da(_e).activeElement;if(ze.getAttribute("role")!=="tab")return;let Ht=I==="horizontal"?"ArrowLeft":"ArrowUp",gr=I==="horizontal"?"ArrowRight":"ArrowDown";switch(I==="horizontal"&&s&&(Ht="ArrowRight",gr="ArrowLeft"),ke.key){case Ht:ke.preventDefault(),uc(_e,ze,ME);break;case gr:ke.preventDefault(),uc(_e,ze,wE);break;case"Home":ke.preventDefault(),uc(_e,null,wE);break;case"End":ke.preventDefault(),uc(_e,null,ME);break}},Ft=de();return me.jsxs(N9,{className:st(J.root,E),ownerState:C,ref:r,as:S,...W,children:[Ft.scrollButtonStart,Ft.scrollbarSizeListener,me.jsxs(k9,{className:J.scroller,ownerState:C,style:{overflow:Ce.overflow,[G?`margin${s?"Left":"Right"}`:"marginBottom"]:Y?void 0:-Ce.scrollbarWidth},ref:je,children:[me.jsx(D9,{"aria-label":c,"aria-labelledby":d,"aria-orientation":I==="vertical"?"vertical":null,className:J.flexContainer,ownerState:C,onKeyDown:an,ref:Ue,role:"tablist",children:vn}),ce&&nt]}),Ft.scrollButtonEnd]})}),PE=x.createContext(null);function M9(){const[e,t]=x.useState(null);return x.useEffect(()=>{t(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function B9(e){const{children:t,value:r}=e,i=M9(),l=x.useMemo(()=>({idPrefix:i,value:r}),[i,r]);return me.jsx(PE.Provider,{value:l,children:t})}function UE(){return x.useContext(PE)}function HE(e,t){const{idPrefix:r}=e;return r===null?null:`${e.idPrefix}-P-${t}`}function FE(e,t){const{idPrefix:r}=e;return r===null?null:`${e.idPrefix}-T-${t}`}const P9=x.forwardRef(function(t,r){const{children:i,...l}=t,s=UE();if(s===null)throw new TypeError("No TabContext provided");const c=x.Children.map(i,d=>x.isValidElement(d)?x.cloneElement(d,{"aria-controls":HE(s,d.props.value),id:FE(s,d.props.value)}):null);return me.jsx(w9,{...l,ref:r,value:s.value,children:c})});function U9({props:e,name:t}){return fO({props:e,name:t,defaultTheme:Js,themeId:$r})}function zE({theme:e,...t}){const r=$r in e?e[$r]:void 0;return me.jsx(oE,{...t,themeId:r?$r:void 0,theme:r||e})}const lc={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:H9}=OO({themeId:$r,theme:()=>Zs({cssVariables:!0}),colorSchemeStorageKey:lc.colorSchemeStorageKey,modeStorageKey:lc.modeStorageKey,defaultColorScheme:{light:lc.defaultLightColorScheme,dark:lc.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:yE(e.palette,e.typography)};return t.unstable_sx=function(i){return di({sx:i,theme:this})},t}}),F9=H9;function z9({theme:e,...t}){return typeof e=="function"?me.jsx(zE,{theme:e,...t}):"colorSchemes"in($r in e?e[$r]:e)?me.jsx(F9,{theme:e,...t}):me.jsx(zE,{theme:e,...t})}const nn={text:{roman:400,medium:500,bold:700}},dt=e=>`${e/16}rem`,YE={fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeightLight:nn.text.roman,fontWeightRegular:nn.text.roman,fontWeightMedium:nn.text.medium,fontWeightBold:nn.text.bold,h1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.bold,fontStyle:"normal",fontSize:dt(52),lineHeight:dt(60)},h2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.bold,fontStyle:"normal",fontSize:dt(34),lineHeight:dt(40)},h3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.bold,fontStyle:"normal",fontSize:dt(28),lineHeight:dt(36)},h4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.bold,fontStyle:"normal",fontSize:dt(24),lineHeight:dt(30)},h5:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.medium,fontStyle:"normal",fontSize:dt(18),lineHeight:dt(22)},subtitle1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.medium,fontStyle:"normal",fontSize:dt(16),lineHeight:dt(20)},subtitle2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.medium,fontStyle:"normal",fontSize:dt(14),lineHeight:dt(18)},subtitle3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.medium,fontStyle:"normal",fontSize:dt(12),lineHeight:dt(16)},subtitle4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.medium,fontStyle:"normal",fontSize:dt(10),lineHeight:dt(14)},body1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.roman,fontStyle:"normal",fontSize:dt(16),lineHeight:dt(20)},body2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.roman,fontStyle:"normal",fontSize:dt(14),lineHeight:dt(18)},body3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.roman,fontStyle:"normal",fontSize:dt(12),lineHeight:dt(16)},body4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.roman,fontStyle:"normal",fontSize:dt(10),lineHeight:dt(14)},buttonLarge:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.medium,fontStyle:"normal",fontSize:dt(16),lineHeight:dt(20)},button:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.medium,fontStyle:"normal",fontSize:dt(14),lineHeight:dt(18),textTransform:"none"},buttonSmall:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:nn.text.medium,fontStyle:"normal",fontSize:dt(12),lineHeight:dt(16)}},Y9={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"}}},{typography:a7}=Zs({typography:YE,custom:{}}),j9=Fe.a({color:"inherit",textDecoration:"none"}),V9=x.forwardRef(function({Component:t,...r},i){const l=DC(),s=t??l.custom.LinkAdapter;return x.createElement(j9,{as:s,ref:i,...r})}),$9={variant:!0,size:!0,edge:!0,startIcon:!0,endIcon:!0,responsive:!0,color:!0},jE=e=>!$9[e],m0={variant:"primary",size:"medium",edge:"rounded",responsive:!1},VE={small:1,medium:1,large:2},$E={small:"small",medium:"small",large:"medium"},qE=(e,t,r)=>{const i=t?VE[e]:0;return[{boxSizing:"border-box",borderWidth:VE[e]},e==="large"&&{padding:`${14-i}px 24px`,...r.typography.buttonLarge},e==="medium"&&{padding:`${11-i}px 16px`,...r.typography.button},e==="small"&&{padding:`${8-i}px 12px`,...r.typography.buttonSmall}]},GE=e=>{const{size:t,variant:r,edge:i,theme:l,color:s,responsive:c}={...m0,...e},{colors:d}=l.custom,p=r==="secondary"||r==="bordered";return ps([{color:l.palette.text.primary,textAlign:"center",display:"inline-flex",justifyContent:"center",alignItems:"center",transition:`background ${l.transitions.duration.short}ms`,cursor:"pointer",":disabled":{cursor:"default"},minWidth:"100px"},...qE(t,p,l),c&&{[l.breakpoints.down("sm")]:qE($E[t],p,l)},r==="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"}},r==="secondary"&&{color:d.red,backgroundColor:"transparent",borderColor:"currentcolor",borderStyle:"solid",":hover:not(:disabled)":{backgroundColor:"rgba(255, 20, 35, 0.06)"},":disabled":{color:d.silverGray}},r==="text"&&{backgroundColor:"transparent",borderStyle:"none",color:d.darkGray2,":hover:not(:disabled)":{backgroundColor:"rgba(64, 70, 76, 0.06)"},":disabled":{color:d.silverGray}},r==="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}},r==="tertiary"&&{color:d.darkGray2,border:"none",backgroundColor:d.lightGray2,":hover:not(:disabled)":{backgroundColor:d.white},":disabled":{backgroundColor:d.lightGray2,color:d.silverGrayLight}},i==="rounded"&&{borderRadius:"4px"},i==="circular"&&{borderRadius:"100vh"},s==="secondary"&&{color:l.custom.colors.silverGray,borderColor:l.custom.colors.silverGray,":hover:not(:disabled)":{backgroundColor:l.custom.colors.lightGray1}}])},XE=Fe("button",{shouldForwardProp:jE})(GE),QE=Fe(V9,{shouldForwardProp:jE})(GE),KE=Fe.span(({size:e,side:t})=>[{height:"1em",display:"flex",alignItems:"center"},t==="start"&&{marginLeft:"-4px",marginRight:"8px"},t==="end"&&{marginLeft:"8px",marginRight:"-4px"},{"& svg, & .MuiSvgIcon-root":{width:"1em",height:"1em",fontSize:dt({small:16,medium:20,large:24}[e])}}]),WE=e=>{const{children:t,size:r=m0.size}=e;return x.createElement(x.Fragment,null,e.startIcon?x.createElement(KE,{size:r,side:"start"},e.startIcon):null,t,e.endIcon?x.createElement(KE,{size:r,side:"end"},e.endIcon):null)},ZE=x.forwardRef(({children:e,...t},r)=>x.createElement(XE,{ref:r,type:"button",...t},x.createElement(WE,{...t},e)));ZE.displayName="Button";const JE=x.forwardRef(({children:e,Component:t,...r},i)=>x.createElement(QE,{Component:t,ref:i,...r},x.createElement(WE,{...r},e)));JE.displayName="ButtonLink";const q9={variant:"scrollable",allowScrollButtonsMobile:!0,scrollButtons:"auto"},G9=Fe(({styleVariant:e,...t})=>x.createElement(P9,{...q9,...t}))(({theme:e,styleVariant:t})=>({minHeight:"unset",".MuiTabs-indicator":{display:"none"},".MuiTabs-flexContainer":{gap:"8px",alignItems:"center"},".MuiTabs-scroller":{display:"flex"},...t==="chat"&&{flexGrow:1,".MuiTabs-flexContainer":{flexGrow:1,gap:"8px",alignItems:"center",backgroundColor:e.custom.colors.lightGray1,padding:"4px",borderRadius:"8px"},button:{flexGrow:1,backgroundColor:"transparent",...e.typography.body2},"button[aria-selected=true], button[aria-selected=true]:hover":{backgroundColor:e.custom.colors.darkGray1,color:e.custom.colors.white,cursor:"default"}}})),e2=({theme:e})=>ps({minWidth:"auto",":focus-visible":{outlineOffset:"-1px"},'&[aria-selected="true"]':{backgroundColor:e.custom.colors.white,borderColor:e.custom.colors.darkGray2}}),X9=Fe(ZE)(e2),Q9=Fe(JE)(e2),t2={variant:"tertiary",size:"small"},n2=x.forwardRef((e,t)=>{const{className:r,...i}=e;return x.createElement(X9,{...t2,...i,ref:t})});n2.displayName="TabButtonInner";const K9=x.forwardRef((e,t)=>{const{className:r,...i}=e;return x.createElement(Q9,{...t2,...i,ref:t})});K9.displayName="TabLinkInner";const g0=e=>x.createElement(m9,{...e,component:n2});function W9(e){return typeof e.main=="string"}function Z9(e,t=[]){if(!W9(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function pu(e=[]){return([,t])=>t&&Z9(t,e)}function J9(e){return Un("MuiTypography",e)}Hn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ek={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},tk=hN(),nk=e=>{const{align:t,gutterBottom:r,noWrap:i,paragraph:l,variant:s,classes:c}=e,d={root:["root",s,e.align!=="inherit"&&`align${_t(t)}`,r&&"gutterBottom",i&&"noWrap",l&&"paragraph"]};return Zn(d,J9,c)},rk=Ot("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${_t(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Fn(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,i])=>r!=="inherit"&&i&&typeof i=="object").map(([r,i])=>({props:{variant:r},style:i})),...Object.entries(e.palette).filter(pu()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${_t(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),r2={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},bi=x.forwardRef(function(t,r){const{color:i,...l}=zn({props:t,name:"MuiTypography"}),s=!ek[i],c=tk({...l,...s&&{color:i}}),{align:d="inherit",className:p,component:m,gutterBottom:b=!1,noWrap:E=!1,paragraph:S=!1,variant:y="body1",variantMapping:O=r2,..._}=c,I={...c,align:d,color:i,className:p,component:m,gutterBottom:b,noWrap:E,paragraph:S,variant:y,variantMapping:O},v=m||(S?"p":O[y]||r2[y])||"span",H=nk(I);return me.jsx(rk,{as:v,ref:r,className:st(H.root,p),..._,ownerState:I,style:{...d!=="inherit"&&{"--Typography-textAlign":d},..._.style}})});function ak(e,t,r=void 0){const i={};for(const l in e){const s=e[l];let c="",d=!0;for(let p=0;p<s.length;p+=1){const m=s[p];m&&(c+=(d===!0?"":" ")+t(m),d=!1,r&&r[m]&&(c+=" "+r[m]))}i[l]=c}return i}const a2=e=>e,ik=(()=>{let e=a2;return{configure(t){e=t},generate(t){return e(t)},reset(){e=a2}}})(),uk={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 i2(e,t,r="Mui"){const i=uk[t];return i?`${r}-${i}`:`${ik.generate(e)}-${t}`}function lk(e,t,r="Mui"){const i={};return t.forEach(l=>{i[l]=i2(e,l,r)}),i}function ok(e){return i2("MuiTabPanel",e)}lk("MuiTabPanel",["root","hidden"]);const sk=e=>{const{classes:t,hidden:r}=e;return ak({root:["root",r&&"hidden"]},ok,t)},ck=Ot("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)})),fk=x.forwardRef(function(t,r){const i=U9({props:t,name:"MuiTabPanel"}),{children:l,className:s,value:c,keepMounted:d=!1,...p}=i,m={...i},b=sk(m),E=UE();if(E===null)throw new TypeError("No TabContext provided");const S=HE(E,c),y=FE(E,c);return me.jsx(ck,{"aria-labelledby":y,className:st(b.root,s),hidden:c!==E.value,id:S,ref:r,role:"tabpanel",ownerState:m,...p,children:(d||c===E.value)&&l})});var b0={exports:{}};/*!
192
192
  Copyright (c) 2018 Jed Watson.
193
193
  Licensed under the MIT License (MIT), see
194
194
  http://jedwatson.github.io/classnames
195
- */var u2;function dk(){return u2||(u2=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",c=0;c<arguments.length;c++){var d=arguments[c];d&&(s=l(s,i(d)))}return s}function i(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var c="";for(var d in s)t.call(s,d)&&s[d]&&(c=l(c,d));return c}function l(s,c){return c?s?s+" "+c:s+c:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(b0)),b0.exports}var hk=dk();const zl=ur(hk);function oc(e){return parseInt(e,10)||0}const pk={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function mk(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const gk=x.forwardRef(function(t,r){const{onChange:i,maxRows:l,minRows:s=1,style:c,value:d,...p}=t,{current:m}=x.useRef(d!=null),b=x.useRef(null),E=fr(r,b),S=x.useRef(null),y=x.useRef(null),O=x.useCallback(()=>{const R=b.current,k=jr(R).getComputedStyle(R);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};const P=y.current;P.style.width=k.width,P.value=R.value||t.placeholder||"x",P.value.slice(-1)===`
196
- `&&(P.value+=" ");const L=k.boxSizing,M=oc(k.paddingBottom)+oc(k.paddingTop),j=oc(k.borderBottomWidth)+oc(k.borderTopWidth),ae=P.scrollHeight;P.value="x";const V=P.scrollHeight;let A=ae;s&&(A=Math.max(Number(s)*V,A)),l&&(A=Math.min(Number(l)*V,A)),A=Math.max(A,V);const Y=A+(L==="border-box"?M+j:0),W=Math.abs(A-ae)<=1;return{outerHeightStyle:Y,overflowing:W}},[l,s,t.placeholder]),_=x.useCallback(()=>{const R=O();if(mk(R))return;const H=R.outerHeightStyle,k=b.current;S.current!==H&&(S.current=H,k.style.height=`${H}px`),k.style.overflow=R.overflowing?"hidden":""},[O]);fi(()=>{const R=()=>{_()};let H;const k=Ms(R),P=b.current,L=jr(P);L.addEventListener("resize",k);let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(R),M.observe(P)),()=>{k.clear(),cancelAnimationFrame(H),L.removeEventListener("resize",k),M&&M.disconnect()}},[O,_]),fi(()=>{_()});const I=R=>{m||_(),i&&i(R)};return me.jsxs(x.Fragment,{children:[me.jsx("textarea",{value:d,onChange:I,ref:E,rows:s,style:c,...p}),me.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...pk.shadow,...c,paddingTop:0,paddingBottom:0}})]})});function l2(e){return typeof e=="string"}function bk({props:e,states:t,muiFormControl:r}){return t.reduce((i,l)=>(i[l]=e[l],r&&typeof e[l]>"u"&&(i[l]=r[l]),i),{})}const o2=x.createContext(void 0);function Ek(){return x.useContext(o2)}function s2(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function yk(e,t=!1){return e&&(s2(e.value)&&e.value!==""||t&&s2(e.defaultValue)&&e.defaultValue!=="")}function Tk(e){return Un("MuiInputBase",e)}const E0=Hn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var c2;const Sk=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${_t(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Ck=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Ak=e=>{const{classes:t,color:r,disabled:i,error:l,endAdornment:s,focused:c,formControl:d,fullWidth:p,hiddenLabel:m,multiline:b,readOnly:E,size:S,startAdornment:y,type:O}=e,_={root:["root",`color${_t(r)}`,i&&"disabled",l&&"error",p&&"fullWidth",c&&"focused",d&&"formControl",S&&S!=="medium"&&`size${_t(S)}`,b&&"multiline",y&&"adornedStart",s&&"adornedEnd",m&&"hiddenLabel",E&&"readOnly"],input:["input",i&&"disabled",O==="search"&&"inputTypeSearch",b&&"inputMultiline",S==="small"&&"inputSizeSmall",m&&"inputHiddenLabel",y&&"inputAdornedStart",s&&"inputAdornedEnd",E&&"readOnly"]};return Zn(_,Tk,t)},xk=Ot("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Sk})(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",[`&.${E0.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),_k=Ot("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ck})(Fn(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},i={opacity:"0 !important"},l=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${E0.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":l,"&:focus::-moz-placeholder":l,"&:focus::-ms-input-placeholder":l},[`&.${E0.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"}}]}})),f2=dN({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),vk=x.forwardRef(function(t,r){const i=zn({props:t,name:"MuiInputBase"}),{"aria-describedby":l,autoComplete:s,autoFocus:c,className:d,color:p,components:m={},componentsProps:b={},defaultValue:E,disabled:S,disableInjectingGlobalStyles:y,endAdornment:O,error:_,fullWidth:I=!1,id:R,inputComponent:H="input",inputProps:k={},inputRef:P,margin:L,maxRows:M,minRows:j,multiline:ae=!1,name:V,onBlur:A,onChange:Y,onClick:W,onFocus:X,onKeyDown:Q,onKeyUp:te,placeholder:K,readOnly:se,renderSuffix:re,rows:be,size:C,slotProps:J={},slots:oe={},startAdornment:D,type:ce="text",value:Oe,...Se}=i,tt=k.value!=null?k.value:Oe,{current:Me}=x.useRef(tt!=null),$e=x.useRef(),xe=x.useCallback(Qe=>{},[]),Ge=fr($e,P,k.ref,xe),[ve,Re]=x.useState(!1),Ce=Ek(),Be=bk({props:i,muiFormControl:Ce,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Be.focused=Ce?Ce.focused:ve,x.useEffect(()=>{!Ce&&S&&ve&&(Re(!1),A&&A())},[Ce,S,ve,A]);const it=Ce&&Ce.onFilled,je=Ce&&Ce.onEmpty,Ue=x.useCallback(Qe=>{yk(Qe)?it&&it():je&&je()},[it,je]);fi(()=>{Me&&Ue({value:tt})},[tt,Ue,Me]);const ct=Qe=>{X&&X(Qe),k.onFocus&&k.onFocus(Qe),Ce&&Ce.onFocus?Ce.onFocus(Qe):Re(!0)},St=Qe=>{A&&A(Qe),k.onBlur&&k.onBlur(Qe),Ce&&Ce.onBlur?Ce.onBlur(Qe):Re(!1)},rn=(Qe,...vn)=>{if(!Me){const an=Qe.target||$e.current;if(an==null)throw new Error(ka(1));Ue({value:an.value})}k.onChange&&k.onChange(Qe,...vn),Y&&Y(Qe,...vn)};x.useEffect(()=>{Ue($e.current)},[]);const _n=Qe=>{$e.current&&Qe.currentTarget===Qe.target&&$e.current.focus(),W&&W(Qe)};let we=H,Xe=k;ae&&we==="input"&&(be?Xe={type:void 0,minRows:be,maxRows:be,...Xe}:Xe={type:void 0,maxRows:M,minRows:j,...Xe},we=gk);const $t=Qe=>{Ue(Qe.animationName==="mui-auto-fill-cancel"?$e.current:{value:"x"})};x.useEffect(()=>{Ce&&Ce.setAdornedStart(!!D)},[Ce,D]);const ee={...i,color:Be.color||"primary",disabled:Be.disabled,endAdornment:O,error:Be.error,focused:Be.focused,formControl:Ce,fullWidth:I,hiddenLabel:Be.hiddenLabel,multiline:ae,size:Be.size,startAdornment:D,type:ce},de=Ak(ee),Ae=oe.root||m.Root||xk,He=J.root||b.root||{},nt=oe.input||m.Input||_k;return Xe={...Xe,...J.input??b.input},me.jsxs(x.Fragment,{children:[!y&&typeof f2=="function"&&(c2||(c2=me.jsx(f2,{}))),me.jsxs(Ae,{...He,ref:r,onClick:_n,...Se,...!l2(Ae)&&{ownerState:{...ee,...He.ownerState}},className:st(de.root,He.className,d,se&&"MuiInputBase-readOnly"),children:[D,me.jsx(o2.Provider,{value:null,children:me.jsx(nt,{"aria-invalid":Be.error,"aria-describedby":l,autoComplete:s,autoFocus:c,defaultValue:E,disabled:Be.disabled,id:R,onAnimationStart:$t,name:V,placeholder:K,readOnly:se,required:Be.required,rows:be,value:tt,onKeyDown:Q,onKeyUp:te,type:ce,...Xe,...!l2(nt)&&{as:we,ownerState:{...ee,...Xe.ownerState}},ref:Ge,className:st(de.input,Xe.className,se&&"MuiInputBase-readOnly"),onBlur:St,onChange:rn,onFocus:ct})}),O,re?re({...Be,startAdornment:D}):null]})]})}),Rk={size:"medium"},Ok={small:"small",medium:"small",large:"medium",chat:"chat",hero:"large"},d2=({size:e,theme:t,multiline:r})=>ps([(e==="small"||e==="medium")&&{...t.typography.body2},(e==="large"||e==="chat"||e==="hero")&&{".remixicon":{width:"24px",height:"24px"},...t.typography.body1},e==="medium"&&{paddingLeft:"12px",paddingRight:"12px"},e==="small"&&!r&&{height:"32px"},e==="medium"&&!r&&{height:"40px"},e==="large"&&!r&&{height:"48px"},e==="chat"&&!r&&{height:"56px"},e==="hero"&&!r&&{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:t.custom.colors.silverGrayLight,backgroundColor:t.custom.colors.white,"&: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:t.custom.colors.silverGray,outline:"none",svg:{fill:t.custom.colors.lightRed}},".Mit-AdornmentButton":{padding:"0 16px"}},e==="hero"&&{padding:"0 24px",".Mit-AdornmentButton":{width:"72px"}}]),Nk=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"}}}),kk=Object.keys({responsive:!0}),h2=Fe(vk,{shouldForwardProp:e=>!kk.includes(e)})(({theme:e,size:t=Rk.size,multiline:r,responsive:i})=>[Nk(e),d2({size:t,theme:e,multiline:r}),i&&{[e.breakpoints.down("sm")]:d2({size:Ok[t],theme:e,multiline:r})}]),Dk=Fe.button(({theme:e,disabled:t})=>({...e.typography.button,display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",border:"none",background:"transparent",transition:`background ${e.transitions.duration.short}ms`,cursor:t?"default":"pointer",":disabled":{cursor:"default",svg:{fill:e.custom.colors.silverGray}},":hover":{background:t?"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%"})),Lk=e=>e.preventDefault(),y0=({className:e,...t})=>x.createElement(Dk,{onMouseDown:Lk,className:zl("Mit-AdornmentButton",e),...t}),Ik=({className:e})=>x.createElement("svg",{className:e,width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{clipPath:"url(#clip0_16894_46778)"},x.createElement("path",{d:"M32.5546 5.17074C33.7099 6.67302 32.4042 7.80224 32.2498 7.94865L32.9819 8.97157C33.7621 8.23748 34.8612 6.35612 33.4291 4.49682C32.7933 3.67046 31.8246 3.32347 30.6251 3.49396C29.7868 3.6143 29.1209 3.95327 29.0928 3.96731L29.6102 4.74753C29.9974 4.57504 31.6059 3.93321 32.5546 5.16873V5.17074Z",fill:"#40464C"}),x.createElement("path",{d:"M8.63481 5.04446L9.0881 4.22412C9.06002 4.21209 8.36805 3.92728 7.52163 3.87513C6.31219 3.80292 5.37351 4.22412 4.80589 5.10062C3.52825 7.07023 4.7738 8.85532 5.61219 9.52523L6.25803 8.44616C6.09356 8.31177 4.69959 7.29086 5.73053 5.70033C6.57895 4.3926 8.23166 4.90406 8.63079 5.04446H8.63481Z",fill:"#40464C"}),x.createElement("path",{d:"M25.1577 7.25851C25.1778 7.25851 25.1978 7.25851 25.2179 7.25851C27.4382 7.29862 28.6296 8.96136 28.6296 8.96136L29.129 8.81896C29.109 8.75076 28.9144 8.12297 28.3468 7.48315C27.8133 6.88344 26.8425 6.16138 25.2399 6.1333C25.2119 6.1333 25.1858 6.1333 25.1577 6.1333C22.7168 6.1333 21.6056 8.07483 21.3589 9.11179L22.4721 9.37053C22.4941 9.28428 23.0216 7.2565 25.1577 7.2565V7.25851Z",fill:"#40464C"}),x.createElement("path",{d:"M9.90619 9.34454C9.92625 9.2583 10.4357 7.23252 12.5898 7.23252C12.6099 7.23252 12.63 7.23252 12.65 7.23252C14.8703 7.27063 15.9213 8.97549 15.9213 8.97549L16.5612 8.79498C16.5411 8.72478 16.3465 8.09899 15.7789 7.46118C15.2454 6.86147 14.2746 6.13941 12.6721 6.11133C12.646 6.11133 12.6179 6.11133 12.5898 6.11133C10.1489 6.11133 9.03772 8.05286 8.79102 9.08982L9.90619 9.34655V9.34454Z",fill:"#40464C"}),x.createElement("path",{d:"M19.6383 26.256L19.1973 26.269L19.363 31.8525L19.804 31.8394L19.6383 26.256Z",fill:"#40464C"}),x.createElement("path",{d:"M14.1281 38.5777C14.786 38.9107 16.2321 39.4201 16.2321 39.4201L16.8318 39.5906L17.4616 39.725L17.8748 39.7912C17.8748 39.7912 19.0702 39.9336 19.704 39.9336C19.7562 39.9336 19.8103 39.9336 19.8625 39.9336C20.9255 39.9236 22.7748 39.6508 22.7748 39.6508L23.2782 39.5525L24.3031 39.2837L24.6461 39.1614L26.3068 38.5015L26.5977 38.3451L27.1994 37.984L27.4842 37.7754C27.4842 37.7754 28.6114 36.9411 29.0326 36.5359C29.4137 36.1689 29.6905 35.7797 29.8931 35.3987C30.3323 35.2482 31.6862 34.7689 33.1443 34.0187C33.732 33.7821 34.7429 33.0981 34.8091 33.054C38.0985 30.8718 39.7712 28.3907 39.9718 25.6429C40.3729 20.1592 36.6684 16.9922 35.6836 16.218C35.6415 14.8 35.469 13.0871 35.0137 11.318C35.6054 10.7163 36.173 9.95213 36.4518 9.02148C36.9472 7.36275 36.881 5.67595 36.2612 4.27195C35.5733 2.70949 34.2715 1.60234 32.4945 1.06681C30.6272 0.503205 28.6515 1.0989 27.2616 1.76079C25.1215 0.767959 22.6424 0.166244 19.9989 0.0238384C16.7235 -0.152665 13.8012 0.661656 11.3843 2.11179C9.95424 1.46394 7.56945 0.781999 5.46144 1.60635C3.73251 2.28428 2.52507 3.49373 1.96347 5.10432C1.46004 6.55245 1.52823 8.23925 2.15602 9.85385C2.56519 10.9028 3.50988 11.9338 4.33022 12.6378C4.0093 14.2404 3.89297 15.7366 3.8669 16.922C2.79584 17.8306 -1.06115 21.5793 0.276664 27.3718C0.936544 30.2279 2.92421 32.6528 6.02705 34.3858C6.36201 34.5723 6.709 34.7508 7.06 34.9173L8.38778 35.503C9.49494 35.9562 10.4898 36.2852 11.0012 36.4456C11.5528 36.931 12.1645 37.4004 12.8284 37.8316L14.1281 38.5797V38.5777ZM3.45572 9.54899C1.84714 6.20345 3.8328 3.63012 6.13536 2.72955C8.15111 1.9413 10.9029 3.49974 12.0201 4.09143L11.982 3.05648C14.2104 1.73271 16.9141 0.946468 19.9427 1.10893C22.151 1.22727 24.243 1.68457 26.0922 2.43672L26.2687 3.57195C27.3338 2.89201 29.8449 1.61437 31.9168 2.24016C34.2856 2.95419 36.199 5.26678 35.136 8.82292C34.765 10.0665 33.4472 11.2378 32.8696 11.6931L33.9827 12.1544C34.5945 15.2994 34.2796 18.1856 34.1372 19.1684C33.2426 18.8495 32.0612 18.5607 30.5209 18.3962C30.4547 16.6773 30.1117 12.9106 28.3126 11.2278C27.6106 10.5719 26.7621 10.2289 25.7894 10.2129C24.8186 10.1988 23.9862 10.5137 23.3304 11.1536C22.3716 12.0902 21.5332 13.5885 21.3948 15.8369C21.3447 16.6432 21.3587 17.3813 21.3868 17.9289C20.6186 17.7945 19.7943 17.7223 18.984 17.7203L18.5929 17.7143C17.951 17.7323 17.3714 17.7845 16.8479 17.8607C16.7717 16.1979 16.3926 12.9727 14.6516 11.3662C13.9577 10.7263 13.1213 10.3954 12.1605 10.3794C11.1978 10.3653 10.3815 10.6722 9.73362 11.294C7.87432 13.0831 7.72188 17.1005 7.73592 18.4684C6.76516 18.5767 5.99095 18.7432 5.3772 18.9297C5.27691 18.0191 5.08637 15.5501 5.56975 12.7561L6.26573 12.012C5.65399 11.6028 4.09755 10.8687 3.45974 9.54297L3.45572 9.54899ZM26.4673 13.0008C24.1888 13.1432 24.3011 17.0123 24.3914 18.2197C23.8017 18.2398 23.2842 18.2678 22.8691 18.2939C22.7708 16.4948 22.8951 13.1773 24.2189 11.8856C24.6261 11.4885 25.1155 11.296 25.7152 11.296C25.7312 11.296 25.7473 11.296 25.7613 11.296C26.4091 11.306 26.9567 11.5286 27.4341 11.9759C27.9636 12.4713 28.3968 13.2415 28.7177 14.2424C28.2464 13.4702 27.5364 12.9346 26.4653 13.0008H26.4673ZM27.7931 18.2718L26.9427 18.2257C26.4553 18.2057 25.9779 18.1956 25.5146 18.1896C25.4524 17.614 25.3601 15.9893 26.3309 15.9613C27.6607 15.9232 27.8051 17.4916 27.7931 18.2718ZM14.2364 18.2718L13.386 18.2257C12.8986 18.2057 12.4213 18.1956 11.958 18.1896C11.8958 17.614 11.8035 15.9893 12.7743 15.9613C14.1041 15.9232 14.2485 17.4916 14.2364 18.2718ZM19.2628 25.34C19.7903 25.4463 21.6436 25.9257 23.3143 26.7019C23.2662 27.2675 23.1579 28.1701 22.9112 29.0807C22.5722 30.3342 21.6596 32.2256 21.3347 32.8775C21.0318 32.8915 20.5224 32.9116 20.1252 32.9176C19.5355 32.9256 18.8777 32.9397 18.5347 32.9457C18.1596 32.4242 17.0886 30.8878 16.3946 29.4296C15.9192 28.4328 15.6204 27.5302 15.4599 26.9767C16.8439 26.1082 18.9358 25.4403 19.2628 25.338V25.34ZM10.7325 18.342C10.5881 18.342 10.4416 18.342 10.2892 18.342C9.94221 18.342 9.61528 18.3481 9.30038 18.3601C9.17001 16.7094 9.21614 13.3458 10.6081 12.006C11.0193 11.6109 11.5187 11.4203 12.1325 11.4324C12.7723 11.4424 13.3118 11.659 13.7832 12.0942C14.3528 12.6197 14.8101 13.4641 15.135 14.5713C14.6757 13.6868 13.9396 13.0389 12.7683 13.1111C10.4075 13.2556 10.6462 17.3913 10.7325 18.342ZM38.8686 25.4343C38.644 30.7454 31.6521 33.1182 30.3905 33.5093C30.4065 33.07 30.3524 32.7872 30.3524 32.7872C30.3303 32.8474 28.1561 38.7622 19.8525 38.8445C19.8023 38.8445 19.7562 38.8445 19.706 38.8445C13.3118 38.8445 7.3769 32.0411 7.3769 32.0411C7.68979 32.6027 8.24939 33.4712 9.04967 34.4319C7.42905 33.9686 2.62536 32.1855 1.45201 27.097C0.475229 22.8609 2.56719 19.9125 3.88495 18.5406C3.90902 19.0942 3.94311 19.4412 3.94712 19.5114L3.95114 19.5455C3.25716 19.9446 3.1308 20.2455 3.1308 20.2455C3.16088 20.2334 6.46229 19.387 10.2792 19.4251C11.5067 19.4372 12.4614 19.4833 13.1935 19.5415C13.0089 19.8102 12.9187 20.083 12.9167 20.3417C12.9127 21.4649 15.2393 21.8902 16.5089 22.3354C17.4015 22.6483 18.1536 22.9712 18.5848 23.1678C18.5909 23.6492 18.5989 24.287 18.6009 24.7944C17.7364 25.0251 15.7488 25.6288 14.4972 26.5795L14.439 26.6317C14.445 26.6618 14.5233 27.0108 14.6958 27.5603C13.8754 27.7308 12.9067 27.8471 11.7935 27.8451C7.76801 27.8411 5.18465 26.1844 5.18465 26.1844C5.26287 26.2967 7.17633 28.9282 11.7935 28.9322C12.1786 28.9322 12.5456 28.9182 12.8986 28.8941C13.1915 29.4918 13.713 30.7133 14.4811 31.7984C15.5362 33.2866 16.9562 34.6365 19.8585 34.6365C23.7857 34.6365 25.9779 32.4202 27.1292 29.1649C27.2977 29.1649 27.4641 29.1609 27.6326 29.1549C27.9174 29.1448 28.2022 29.1268 28.4891 29.1007C32.8595 28.6996 34.5925 26.9004 34.6647 26.8222C34.6647 26.8222 30.4406 27.8291 28.3908 28.0176C26.8945 28.156 25.4203 28.0417 24.0845 27.8191C24.2209 26.9145 24.243 26.2285 24.245 26.1423L24.251 26.1343C22.6444 25.3179 20.7209 24.9048 19.8043 24.7403C19.8003 24.1386 19.7903 23.3704 19.7843 22.893C20.1513 22.7005 20.6206 22.4738 21.1461 22.2612C23.0496 21.489 24.8427 21.2624 24.8748 20.0349C24.8828 19.746 24.7645 19.4813 24.5478 19.2406C26.1785 19.2226 28.2745 19.2567 30.2441 19.4592C34.1973 19.8644 36.7025 20.767 36.7185 20.775C36.7185 20.775 36.4598 20.3297 35.5211 19.7962V19.7822C35.5351 19.6859 35.6415 18.9297 35.6776 17.7704C36.9873 18.9979 39.0291 21.5492 38.8646 25.4302L38.8686 25.4343Z",fill:"#40464C"})),x.createElement("defs",null,x.createElement("clipPath",{id:"clip0_16894_46778"},x.createElement("rect",{width:"40",height:"39.9338",fill:"white"})))),wk=Fe.div(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",gap:"16px",padding:"114px 32px 24px",[e.breakpoints.down("md")]:{padding:"114px 16px 24px",width:"100%"},boxSizing:"border-box",position:"absolute",zIndex:1,background:"white",bottom:0,top:0,left:0,right:0})),Mk=Fe.div(({theme:e})=>({position:"relative",padding:"16px",border:`1px solid ${e.custom.colors.lightGray2}`,borderRadius:"8px","svg:first-child":{fill:e.custom.colors.red,position:"absolute",top:"-10px",left:"-10px"}})),Bk=Fe(Ik)({width:"40px",height:"40px",display:"block"}),Pk=Fe(bi)({textAlign:"center",padding:"0 40px"}),Uk=Fe(h2)({borderRadius:"8px",margin:"8px 0 24px 0",flexShrink:0}),Hk=Fe(Ob)(({theme:e})=>({fill:e.custom.colors.red,"button:disabled &":{fill:e.custom.colors.silverGray}})),Fk=Fe.div(({theme:e})=>({display:"flex",gap:"16px",width:"100%",[e.breakpoints.down("sm")]:{flexDirection:"column"}})),zk=Fe.button(({theme:e})=>({flex:1,display:"flex",alignItems:"center",borderRadius:"8px",border:`1px solid ${e.custom.colors.lightGray2}`,padding:"12px 16px",color:e.custom.colors.darkGray2,backgroundColor:"transparent",textAlign:"left",[e.breakpoints.down("sm")]:{padding:"12px 36px"},":hover":{cursor:"pointer",borderColor:"transparent",color:e.custom.colors.white,backgroundColor:e.custom.colors.darkGray1}})),Yk=({title:e,conversationStarters:t,className:r,onPromptSubmit:i})=>{const[l,s]=x.useState(""),c=p=>{s(p.target.value)},d=p=>{p.key==="Enter"&&l?i(l):s(l)};return x.createElement(wk,{className:r,"data-testid":"ai-chat-entry-screen"},x.createElement(Mk,null,x.createElement(Ud,null),x.createElement(Bk,null)),e?x.createElement(Pk,{variant:"h4"},e):null,x.createElement(Uk,{fullWidth:!0,size:"chat",onChange:c,onKeyDown:d,endAdornment:x.createElement(y0,{"aria-label":"Send",onClick:()=>i(l)},x.createElement(Hk,null)),responsive:!0}),x.createElement(Fk,null,t==null?void 0:t.map(({content:p},m)=>x.createElement(zk,{key:m,onClick:()=>i(p),tabIndex:m,onKeyDown:b=>{b.key==="Enter"&&i(p)}},x.createElement(bi,{variant:"body2"},p)))))},jk=(...e)=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r&&(r.current=t)})},p2=e=>e.scrollHeight-e.clientHeight-e.scrollTop,Vk=e=>{e.scrollTop=e.scrollHeight},$k=Fe.div({overflow:"auto"}),qk=x.forwardRef(function({children:t,threshold:r=2,className:i},l){const s=x.useRef(null),[c,d]=x.useState(t),p=x.useRef(null);return x.useLayoutEffect(()=>{s.current&&(p.current=p2(s.current)<r,d(t))},[t,r]),x.useLayoutEffect(()=>{if(!s.current)return;const m=p2(s.current)<r;p.current&&!m&&(Vk(s.current),p.current=null)},[c,r]),x.createElement($k,{className:i,ref:jk(s,l)},c)}),m2=Fe.span({clipPath:"inset(100%)",clip:"rect(1px, 1px, 1px, 1px)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),Gk={loadingMessages:[{delay:1500,text:"Loading"},{delay:4e3,text:"Still loading"}]},Xk=({message:e,isLoading:t,loadingMessages:r=Gk.loadingMessages})=>{var c;const[i,l]=x.useState(-1);x.useEffect(()=>{l(-1)},[t,r]),x.useEffect(()=>{const d=r[i+1];if(!t||!d)return()=>{};const p=setTimeout(()=>{l(i+1)},d.delay);return()=>{clearTimeout(p)}},[t,i,r]);const s=(c=r[i])==null?void 0:c.text;return x.createElement(m2,{"aria-atomic":"true","aria-live":"polite"},t?s:e)};function Qk(e){return Un("MuiAlert",e)}const g2=Hn("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function Kk(e){return Un("MuiIconButton",e)}const Wk=Hn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Zk=e=>{const{classes:t,disabled:r,color:i,edge:l,size:s}=e,c={root:["root",r&&"disabled",i!=="default"&&`color${_t(i)}`,l&&`edge${_t(l)}`,`size${_t(s)}`]};return Zn(c,Kk,t)},Jk=Ot(h0,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${_t(r.color)}`],r.edge&&t[`edge${_t(r.edge)}`],t[`size${_t(r.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:t=>!t.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(pu()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(pu()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Il((e.vars||e).palette[t].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)}}],[`&.${Wk.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),eD=x.forwardRef(function(t,r){const i=zn({props:t,name:"MuiIconButton"}),{edge:l=!1,children:s,className:c,color:d="default",disabled:p=!1,disableFocusRipple:m=!1,size:b="medium",...E}=i,S={...i,edge:l,color:d,disabled:p,disableFocusRipple:m,size:b},y=Zk(S);return me.jsx(Jk,{className:st(y.root,c),centerRipple:!0,focusRipple:!m,disabled:p,ref:r,...E,ownerState:S,children:s})}),tD=gi(me.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"),nD=gi(me.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),rD=gi(me.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"),aD=gi(me.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"),iD=gi(me.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"),uD=e=>{const{variant:t,color:r,severity:i,classes:l}=e,s={root:["root",`color${_t(r||i)}`,`${t}${_t(r||i)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Zn(s,Qk,l)},lD=Ot(kE,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${_t(r.color||r.severity)}`]]}})(Fn(({theme:e})=>{const t=e.palette.mode==="light"?wl:Ml,r=e.palette.mode==="light"?Ml:wl;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(pu(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${i}StandardBg`]:r(e.palette[i].light,.9),[`& .${g2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(pu(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),border:`1px solid ${(e.vars||e).palette[i].light}`,[`& .${g2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(pu(["dark"])).map(([i])=>({props:{colorSeverity:i,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${i}FilledColor`],backgroundColor:e.vars.palette.Alert[`${i}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[i].dark:e.palette[i].main,color:e.palette.getContrastText(e.palette[i].main)}}}))]}})),oD=Ot("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),sD=Ot("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),b2=Ot("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),E2={success:me.jsx(tD,{fontSize:"inherit"}),warning:me.jsx(nD,{fontSize:"inherit"}),error:me.jsx(rD,{fontSize:"inherit"}),info:me.jsx(aD,{fontSize:"inherit"})},cD=x.forwardRef(function(t,r){const i=zn({props:t,name:"MuiAlert"}),{action:l,children:s,className:c,closeText:d="Close",color:p,components:m={},componentsProps:b={},icon:E,iconMapping:S=E2,onClose:y,role:O="alert",severity:_="success",slotProps:I={},slots:R={},variant:H="standard",...k}=i,P={...i,color:p,severity:_,variant:H,colorSeverity:p||_},L=uD(P),M={slots:{closeButton:m.CloseButton,closeIcon:m.CloseIcon,...R},slotProps:{...b,...I}},[j,ae]=fu("closeButton",{elementType:eD,externalForwardedProps:M,ownerState:P}),[V,A]=fu("closeIcon",{elementType:iD,externalForwardedProps:M,ownerState:P});return me.jsxs(lD,{role:O,elevation:0,ownerState:P,className:st(L.root,c),ref:r,...k,children:[E!==!1?me.jsx(oD,{ownerState:P,className:L.icon,children:E||S[_]||E2[_]}):null,me.jsx(sD,{ownerState:P,className:L.message,children:s}),l!=null?me.jsx(b2,{ownerState:P,className:L.action,children:l}):null,l==null&&y?me.jsx(b2,{ownerState:P,className:L.action,children:me.jsx(j,{size:"small","aria-label":d,title:d,color:"inherit",onClick:y,...ae,children:me.jsx(V,{fontSize:"small",...A})})}):null]})}),y2=(e,t)=>({info:e.custom.colors.blue,success:e.custom.colors.green,warning:e.custom.colors.orange,error:e.custom.colors.lightRed})[t],fD=Fe(cD)(({theme:e,severity:t})=>({padding:"11px 16px",borderRadius:4,borderWidth:2,borderStyle:"solid",borderColor:y2(e,t),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:y2(e,t)}},button:{padding:0,":hover":{margin:0,background:"none"}}})),dD=Fe.span({display:"none"}),hD=({visible:e=!0,severity:t="info",closable:r,children:i,className:l})=>{const[s,c]=x.useState(e),d=x.useId(),p=()=>{c(!1)};return x.useEffect(()=>{c(e)},[e]),s?x.createElement(fD,{severity:t,onClose:r?p:void 0,role:"alert","aria-describedby":d,className:l},i,x.createElement(dD,{id:d},t," message")):null},pD=Fe.div(({externalScroll:e,theme:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 0",gap:"16px",color:t.custom.colors.white,borderRadius:"8px 8px 0 0",...e&&{position:"sticky",top:0,padding:"32px 0 26px",zIndex:2,backgroundColor:t.custom.colors.white,borderRadius:0}})),mD=Fe.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"}})),gD=({askTimTitle:e,externalScroll:t,className:r})=>e?x.createElement(pD,{externalScroll:t,className:r},x.createElement(mD,null,x.createElement(Ud,null),x.createElement(bi,{variant:"body1"},"Ask",x.createElement("strong",null,"TIM")," ",e))):null;var T2="vercel.ai.error",bD=Symbol.for(T2),S2,ED=class z3 extends Error{constructor({name:t,message:r,cause:i}){super(r),this[S2]=!0,this.name=t,this.cause=i}static isInstance(t){return z3.hasMarker(t,T2)}static hasMarker(t,r){const i=Symbol.for(r);return t!=null&&typeof t=="object"&&i in t&&typeof t[i]=="boolean"&&t[i]===!0}};S2=bD;var mu=ED;function C2(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var A2="AI_InvalidArgumentError",x2=`vercel.ai.error.${A2}`,yD=Symbol.for(x2),_2,TD=class extends mu{constructor({message:e,cause:t,argument:r}){super({name:A2,message:e,cause:t}),this[_2]=!0,this.argument=r}static isInstance(e){return mu.hasMarker(e,x2)}};_2=yD;var v2="AI_JSONParseError",R2=`vercel.ai.error.${v2}`,SD=Symbol.for(R2),O2,N2=class extends mu{constructor({text:e,cause:t}){super({name:v2,message:`JSON parsing failed: Text: ${e}.
195
+ */var u2;function dk(){return u2||(u2=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",c=0;c<arguments.length;c++){var d=arguments[c];d&&(s=l(s,i(d)))}return s}function i(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var c="";for(var d in s)t.call(s,d)&&s[d]&&(c=l(c,d));return c}function l(s,c){return c?s?s+" "+c:s+c:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(b0)),b0.exports}var hk=dk();const zl=ur(hk);function oc(e){return parseInt(e,10)||0}const pk={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function mk(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const gk=x.forwardRef(function(t,r){const{onChange:i,maxRows:l,minRows:s=1,style:c,value:d,...p}=t,{current:m}=x.useRef(d!=null),b=x.useRef(null),E=fr(r,b),S=x.useRef(null),y=x.useRef(null),O=x.useCallback(()=>{const v=b.current,k=jr(v).getComputedStyle(v);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};const P=y.current;P.style.width=k.width,P.value=v.value||t.placeholder||"x",P.value.slice(-1)===`
196
+ `&&(P.value+=" ");const L=k.boxSizing,M=oc(k.paddingBottom)+oc(k.paddingTop),j=oc(k.borderBottomWidth)+oc(k.borderTopWidth),ae=P.scrollHeight;P.value="x";const V=P.scrollHeight;let A=ae;s&&(A=Math.max(Number(s)*V,A)),l&&(A=Math.min(Number(l)*V,A)),A=Math.max(A,V);const Y=A+(L==="border-box"?M+j:0),W=Math.abs(A-ae)<=1;return{outerHeightStyle:Y,overflowing:W}},[l,s,t.placeholder]),_=x.useCallback(()=>{const v=O();if(mk(v))return;const H=v.outerHeightStyle,k=b.current;S.current!==H&&(S.current=H,k.style.height=`${H}px`),k.style.overflow=v.overflowing?"hidden":""},[O]);fi(()=>{const v=()=>{_()};let H;const k=Ms(v),P=b.current,L=jr(P);L.addEventListener("resize",k);let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(v),M.observe(P)),()=>{k.clear(),cancelAnimationFrame(H),L.removeEventListener("resize",k),M&&M.disconnect()}},[O,_]),fi(()=>{_()});const I=v=>{m||_(),i&&i(v)};return me.jsxs(x.Fragment,{children:[me.jsx("textarea",{value:d,onChange:I,ref:E,rows:s,style:c,...p}),me.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...pk.shadow,...c,paddingTop:0,paddingBottom:0}})]})});function l2(e){return typeof e=="string"}function bk({props:e,states:t,muiFormControl:r}){return t.reduce((i,l)=>(i[l]=e[l],r&&typeof e[l]>"u"&&(i[l]=r[l]),i),{})}const o2=x.createContext(void 0);function Ek(){return x.useContext(o2)}function s2(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function yk(e,t=!1){return e&&(s2(e.value)&&e.value!==""||t&&s2(e.defaultValue)&&e.defaultValue!=="")}function Tk(e){return Un("MuiInputBase",e)}const E0=Hn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var c2;const Sk=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${_t(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Ck=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Ak=e=>{const{classes:t,color:r,disabled:i,error:l,endAdornment:s,focused:c,formControl:d,fullWidth:p,hiddenLabel:m,multiline:b,readOnly:E,size:S,startAdornment:y,type:O}=e,_={root:["root",`color${_t(r)}`,i&&"disabled",l&&"error",p&&"fullWidth",c&&"focused",d&&"formControl",S&&S!=="medium"&&`size${_t(S)}`,b&&"multiline",y&&"adornedStart",s&&"adornedEnd",m&&"hiddenLabel",E&&"readOnly"],input:["input",i&&"disabled",O==="search"&&"inputTypeSearch",b&&"inputMultiline",S==="small"&&"inputSizeSmall",m&&"inputHiddenLabel",y&&"inputAdornedStart",s&&"inputAdornedEnd",E&&"readOnly"]};return Zn(_,Tk,t)},xk=Ot("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Sk})(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",[`&.${E0.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),_k=Ot("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ck})(Fn(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},i={opacity:"0 !important"},l=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${E0.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":l,"&:focus::-moz-placeholder":l,"&:focus::-ms-input-placeholder":l},[`&.${E0.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"}}]}})),f2=dN({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),vk=x.forwardRef(function(t,r){const i=zn({props:t,name:"MuiInputBase"}),{"aria-describedby":l,autoComplete:s,autoFocus:c,className:d,color:p,components:m={},componentsProps:b={},defaultValue:E,disabled:S,disableInjectingGlobalStyles:y,endAdornment:O,error:_,fullWidth:I=!1,id:v,inputComponent:H="input",inputProps:k={},inputRef:P,margin:L,maxRows:M,minRows:j,multiline:ae=!1,name:V,onBlur:A,onChange:Y,onClick:W,onFocus:Q,onKeyDown:G,onKeyUp:ee,placeholder:K,readOnly:se,renderSuffix:re,rows:be,size:C,slotProps:J={},slots:oe={},startAdornment:D,type:ce="text",value:Oe,...Se}=i,tt=k.value!=null?k.value:Oe,{current:Me}=x.useRef(tt!=null),$e=x.useRef(),xe=x.useCallback(Qe=>{},[]),Ge=fr($e,P,k.ref,xe),[ve,Re]=x.useState(!1),Ce=Ek(),Be=bk({props:i,muiFormControl:Ce,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Be.focused=Ce?Ce.focused:ve,x.useEffect(()=>{!Ce&&S&&ve&&(Re(!1),A&&A())},[Ce,S,ve,A]);const it=Ce&&Ce.onFilled,je=Ce&&Ce.onEmpty,Ue=x.useCallback(Qe=>{yk(Qe)?it&&it():je&&je()},[it,je]);fi(()=>{Me&&Ue({value:tt})},[tt,Ue,Me]);const ct=Qe=>{Q&&Q(Qe),k.onFocus&&k.onFocus(Qe),Ce&&Ce.onFocus?Ce.onFocus(Qe):Re(!0)},St=Qe=>{A&&A(Qe),k.onBlur&&k.onBlur(Qe),Ce&&Ce.onBlur?Ce.onBlur(Qe):Re(!1)},rn=(Qe,...vn)=>{if(!Me){const an=Qe.target||$e.current;if(an==null)throw new Error(ka(1));Ue({value:an.value})}k.onChange&&k.onChange(Qe,...vn),Y&&Y(Qe,...vn)};x.useEffect(()=>{Ue($e.current)},[]);const _n=Qe=>{$e.current&&Qe.currentTarget===Qe.target&&$e.current.focus(),W&&W(Qe)};let we=H,Xe=k;ae&&we==="input"&&(be?Xe={type:void 0,minRows:be,maxRows:be,...Xe}:Xe={type:void 0,maxRows:M,minRows:j,...Xe},we=gk);const $t=Qe=>{Ue(Qe.animationName==="mui-auto-fill-cancel"?$e.current:{value:"x"})};x.useEffect(()=>{Ce&&Ce.setAdornedStart(!!D)},[Ce,D]);const te={...i,color:Be.color||"primary",disabled:Be.disabled,endAdornment:O,error:Be.error,focused:Be.focused,formControl:Ce,fullWidth:I,hiddenLabel:Be.hiddenLabel,multiline:ae,size:Be.size,startAdornment:D,type:ce},de=Ak(te),Ae=oe.root||m.Root||xk,He=J.root||b.root||{},nt=oe.input||m.Input||_k;return Xe={...Xe,...J.input??b.input},me.jsxs(x.Fragment,{children:[!y&&typeof f2=="function"&&(c2||(c2=me.jsx(f2,{}))),me.jsxs(Ae,{...He,ref:r,onClick:_n,...Se,...!l2(Ae)&&{ownerState:{...te,...He.ownerState}},className:st(de.root,He.className,d,se&&"MuiInputBase-readOnly"),children:[D,me.jsx(o2.Provider,{value:null,children:me.jsx(nt,{"aria-invalid":Be.error,"aria-describedby":l,autoComplete:s,autoFocus:c,defaultValue:E,disabled:Be.disabled,id:v,onAnimationStart:$t,name:V,placeholder:K,readOnly:se,required:Be.required,rows:be,value:tt,onKeyDown:G,onKeyUp:ee,type:ce,...Xe,...!l2(nt)&&{as:we,ownerState:{...te,...Xe.ownerState}},ref:Ge,className:st(de.input,Xe.className,se&&"MuiInputBase-readOnly"),onBlur:St,onChange:rn,onFocus:ct})}),O,re?re({...Be,startAdornment:D}):null]})]})}),Rk={size:"medium"},Ok={small:"small",medium:"small",large:"medium",chat:"chat",hero:"large"},d2=({size:e,theme:t,multiline:r})=>ps([(e==="small"||e==="medium")&&{...t.typography.body2},(e==="large"||e==="chat"||e==="hero")&&{".remixicon":{width:"24px",height:"24px"},...t.typography.body1},e==="medium"&&{paddingLeft:"12px",paddingRight:"12px"},e==="small"&&!r&&{height:"32px"},e==="medium"&&!r&&{height:"40px"},e==="large"&&!r&&{height:"48px"},e==="chat"&&!r&&{height:"56px"},e==="hero"&&!r&&{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:t.custom.colors.silverGrayLight,backgroundColor:t.custom.colors.white,"&: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:t.custom.colors.silverGray,outline:"none",svg:{fill:t.custom.colors.lightRed}},".Mit-AdornmentButton":{padding:"0 16px"}},e==="hero"&&{padding:"0 24px",".Mit-AdornmentButton":{width:"72px"}}]),Nk=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"}}}),kk=Object.keys({responsive:!0}),h2=Fe(vk,{shouldForwardProp:e=>!kk.includes(e)})(({theme:e,size:t=Rk.size,multiline:r,responsive:i})=>[Nk(e),d2({size:t,theme:e,multiline:r}),i&&{[e.breakpoints.down("sm")]:d2({size:Ok[t],theme:e,multiline:r})}]),Dk=Fe.button(({theme:e,disabled:t})=>({...e.typography.button,display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",border:"none",background:"transparent",transition:`background ${e.transitions.duration.short}ms`,cursor:t?"default":"pointer",":disabled":{cursor:"default",svg:{fill:e.custom.colors.silverGray}},":hover":{background:t?"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%"})),Lk=e=>e.preventDefault(),y0=({className:e,...t})=>x.createElement(Dk,{onMouseDown:Lk,className:zl("Mit-AdornmentButton",e),...t}),Ik=({className:e})=>x.createElement("svg",{className:e,width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{clipPath:"url(#clip0_16894_46778)"},x.createElement("path",{d:"M32.5546 5.17074C33.7099 6.67302 32.4042 7.80224 32.2498 7.94865L32.9819 8.97157C33.7621 8.23748 34.8612 6.35612 33.4291 4.49682C32.7933 3.67046 31.8246 3.32347 30.6251 3.49396C29.7868 3.6143 29.1209 3.95327 29.0928 3.96731L29.6102 4.74753C29.9974 4.57504 31.6059 3.93321 32.5546 5.16873V5.17074Z",fill:"#40464C"}),x.createElement("path",{d:"M8.63481 5.04446L9.0881 4.22412C9.06002 4.21209 8.36805 3.92728 7.52163 3.87513C6.31219 3.80292 5.37351 4.22412 4.80589 5.10062C3.52825 7.07023 4.7738 8.85532 5.61219 9.52523L6.25803 8.44616C6.09356 8.31177 4.69959 7.29086 5.73053 5.70033C6.57895 4.3926 8.23166 4.90406 8.63079 5.04446H8.63481Z",fill:"#40464C"}),x.createElement("path",{d:"M25.1577 7.25851C25.1778 7.25851 25.1978 7.25851 25.2179 7.25851C27.4382 7.29862 28.6296 8.96136 28.6296 8.96136L29.129 8.81896C29.109 8.75076 28.9144 8.12297 28.3468 7.48315C27.8133 6.88344 26.8425 6.16138 25.2399 6.1333C25.2119 6.1333 25.1858 6.1333 25.1577 6.1333C22.7168 6.1333 21.6056 8.07483 21.3589 9.11179L22.4721 9.37053C22.4941 9.28428 23.0216 7.2565 25.1577 7.2565V7.25851Z",fill:"#40464C"}),x.createElement("path",{d:"M9.90619 9.34454C9.92625 9.2583 10.4357 7.23252 12.5898 7.23252C12.6099 7.23252 12.63 7.23252 12.65 7.23252C14.8703 7.27063 15.9213 8.97549 15.9213 8.97549L16.5612 8.79498C16.5411 8.72478 16.3465 8.09899 15.7789 7.46118C15.2454 6.86147 14.2746 6.13941 12.6721 6.11133C12.646 6.11133 12.6179 6.11133 12.5898 6.11133C10.1489 6.11133 9.03772 8.05286 8.79102 9.08982L9.90619 9.34655V9.34454Z",fill:"#40464C"}),x.createElement("path",{d:"M19.6383 26.256L19.1973 26.269L19.363 31.8525L19.804 31.8394L19.6383 26.256Z",fill:"#40464C"}),x.createElement("path",{d:"M14.1281 38.5777C14.786 38.9107 16.2321 39.4201 16.2321 39.4201L16.8318 39.5906L17.4616 39.725L17.8748 39.7912C17.8748 39.7912 19.0702 39.9336 19.704 39.9336C19.7562 39.9336 19.8103 39.9336 19.8625 39.9336C20.9255 39.9236 22.7748 39.6508 22.7748 39.6508L23.2782 39.5525L24.3031 39.2837L24.6461 39.1614L26.3068 38.5015L26.5977 38.3451L27.1994 37.984L27.4842 37.7754C27.4842 37.7754 28.6114 36.9411 29.0326 36.5359C29.4137 36.1689 29.6905 35.7797 29.8931 35.3987C30.3323 35.2482 31.6862 34.7689 33.1443 34.0187C33.732 33.7821 34.7429 33.0981 34.8091 33.054C38.0985 30.8718 39.7712 28.3907 39.9718 25.6429C40.3729 20.1592 36.6684 16.9922 35.6836 16.218C35.6415 14.8 35.469 13.0871 35.0137 11.318C35.6054 10.7163 36.173 9.95213 36.4518 9.02148C36.9472 7.36275 36.881 5.67595 36.2612 4.27195C35.5733 2.70949 34.2715 1.60234 32.4945 1.06681C30.6272 0.503205 28.6515 1.0989 27.2616 1.76079C25.1215 0.767959 22.6424 0.166244 19.9989 0.0238384C16.7235 -0.152665 13.8012 0.661656 11.3843 2.11179C9.95424 1.46394 7.56945 0.781999 5.46144 1.60635C3.73251 2.28428 2.52507 3.49373 1.96347 5.10432C1.46004 6.55245 1.52823 8.23925 2.15602 9.85385C2.56519 10.9028 3.50988 11.9338 4.33022 12.6378C4.0093 14.2404 3.89297 15.7366 3.8669 16.922C2.79584 17.8306 -1.06115 21.5793 0.276664 27.3718C0.936544 30.2279 2.92421 32.6528 6.02705 34.3858C6.36201 34.5723 6.709 34.7508 7.06 34.9173L8.38778 35.503C9.49494 35.9562 10.4898 36.2852 11.0012 36.4456C11.5528 36.931 12.1645 37.4004 12.8284 37.8316L14.1281 38.5797V38.5777ZM3.45572 9.54899C1.84714 6.20345 3.8328 3.63012 6.13536 2.72955C8.15111 1.9413 10.9029 3.49974 12.0201 4.09143L11.982 3.05648C14.2104 1.73271 16.9141 0.946468 19.9427 1.10893C22.151 1.22727 24.243 1.68457 26.0922 2.43672L26.2687 3.57195C27.3338 2.89201 29.8449 1.61437 31.9168 2.24016C34.2856 2.95419 36.199 5.26678 35.136 8.82292C34.765 10.0665 33.4472 11.2378 32.8696 11.6931L33.9827 12.1544C34.5945 15.2994 34.2796 18.1856 34.1372 19.1684C33.2426 18.8495 32.0612 18.5607 30.5209 18.3962C30.4547 16.6773 30.1117 12.9106 28.3126 11.2278C27.6106 10.5719 26.7621 10.2289 25.7894 10.2129C24.8186 10.1988 23.9862 10.5137 23.3304 11.1536C22.3716 12.0902 21.5332 13.5885 21.3948 15.8369C21.3447 16.6432 21.3587 17.3813 21.3868 17.9289C20.6186 17.7945 19.7943 17.7223 18.984 17.7203L18.5929 17.7143C17.951 17.7323 17.3714 17.7845 16.8479 17.8607C16.7717 16.1979 16.3926 12.9727 14.6516 11.3662C13.9577 10.7263 13.1213 10.3954 12.1605 10.3794C11.1978 10.3653 10.3815 10.6722 9.73362 11.294C7.87432 13.0831 7.72188 17.1005 7.73592 18.4684C6.76516 18.5767 5.99095 18.7432 5.3772 18.9297C5.27691 18.0191 5.08637 15.5501 5.56975 12.7561L6.26573 12.012C5.65399 11.6028 4.09755 10.8687 3.45974 9.54297L3.45572 9.54899ZM26.4673 13.0008C24.1888 13.1432 24.3011 17.0123 24.3914 18.2197C23.8017 18.2398 23.2842 18.2678 22.8691 18.2939C22.7708 16.4948 22.8951 13.1773 24.2189 11.8856C24.6261 11.4885 25.1155 11.296 25.7152 11.296C25.7312 11.296 25.7473 11.296 25.7613 11.296C26.4091 11.306 26.9567 11.5286 27.4341 11.9759C27.9636 12.4713 28.3968 13.2415 28.7177 14.2424C28.2464 13.4702 27.5364 12.9346 26.4653 13.0008H26.4673ZM27.7931 18.2718L26.9427 18.2257C26.4553 18.2057 25.9779 18.1956 25.5146 18.1896C25.4524 17.614 25.3601 15.9893 26.3309 15.9613C27.6607 15.9232 27.8051 17.4916 27.7931 18.2718ZM14.2364 18.2718L13.386 18.2257C12.8986 18.2057 12.4213 18.1956 11.958 18.1896C11.8958 17.614 11.8035 15.9893 12.7743 15.9613C14.1041 15.9232 14.2485 17.4916 14.2364 18.2718ZM19.2628 25.34C19.7903 25.4463 21.6436 25.9257 23.3143 26.7019C23.2662 27.2675 23.1579 28.1701 22.9112 29.0807C22.5722 30.3342 21.6596 32.2256 21.3347 32.8775C21.0318 32.8915 20.5224 32.9116 20.1252 32.9176C19.5355 32.9256 18.8777 32.9397 18.5347 32.9457C18.1596 32.4242 17.0886 30.8878 16.3946 29.4296C15.9192 28.4328 15.6204 27.5302 15.4599 26.9767C16.8439 26.1082 18.9358 25.4403 19.2628 25.338V25.34ZM10.7325 18.342C10.5881 18.342 10.4416 18.342 10.2892 18.342C9.94221 18.342 9.61528 18.3481 9.30038 18.3601C9.17001 16.7094 9.21614 13.3458 10.6081 12.006C11.0193 11.6109 11.5187 11.4203 12.1325 11.4324C12.7723 11.4424 13.3118 11.659 13.7832 12.0942C14.3528 12.6197 14.8101 13.4641 15.135 14.5713C14.6757 13.6868 13.9396 13.0389 12.7683 13.1111C10.4075 13.2556 10.6462 17.3913 10.7325 18.342ZM38.8686 25.4343C38.644 30.7454 31.6521 33.1182 30.3905 33.5093C30.4065 33.07 30.3524 32.7872 30.3524 32.7872C30.3303 32.8474 28.1561 38.7622 19.8525 38.8445C19.8023 38.8445 19.7562 38.8445 19.706 38.8445C13.3118 38.8445 7.3769 32.0411 7.3769 32.0411C7.68979 32.6027 8.24939 33.4712 9.04967 34.4319C7.42905 33.9686 2.62536 32.1855 1.45201 27.097C0.475229 22.8609 2.56719 19.9125 3.88495 18.5406C3.90902 19.0942 3.94311 19.4412 3.94712 19.5114L3.95114 19.5455C3.25716 19.9446 3.1308 20.2455 3.1308 20.2455C3.16088 20.2334 6.46229 19.387 10.2792 19.4251C11.5067 19.4372 12.4614 19.4833 13.1935 19.5415C13.0089 19.8102 12.9187 20.083 12.9167 20.3417C12.9127 21.4649 15.2393 21.8902 16.5089 22.3354C17.4015 22.6483 18.1536 22.9712 18.5848 23.1678C18.5909 23.6492 18.5989 24.287 18.6009 24.7944C17.7364 25.0251 15.7488 25.6288 14.4972 26.5795L14.439 26.6317C14.445 26.6618 14.5233 27.0108 14.6958 27.5603C13.8754 27.7308 12.9067 27.8471 11.7935 27.8451C7.76801 27.8411 5.18465 26.1844 5.18465 26.1844C5.26287 26.2967 7.17633 28.9282 11.7935 28.9322C12.1786 28.9322 12.5456 28.9182 12.8986 28.8941C13.1915 29.4918 13.713 30.7133 14.4811 31.7984C15.5362 33.2866 16.9562 34.6365 19.8585 34.6365C23.7857 34.6365 25.9779 32.4202 27.1292 29.1649C27.2977 29.1649 27.4641 29.1609 27.6326 29.1549C27.9174 29.1448 28.2022 29.1268 28.4891 29.1007C32.8595 28.6996 34.5925 26.9004 34.6647 26.8222C34.6647 26.8222 30.4406 27.8291 28.3908 28.0176C26.8945 28.156 25.4203 28.0417 24.0845 27.8191C24.2209 26.9145 24.243 26.2285 24.245 26.1423L24.251 26.1343C22.6444 25.3179 20.7209 24.9048 19.8043 24.7403C19.8003 24.1386 19.7903 23.3704 19.7843 22.893C20.1513 22.7005 20.6206 22.4738 21.1461 22.2612C23.0496 21.489 24.8427 21.2624 24.8748 20.0349C24.8828 19.746 24.7645 19.4813 24.5478 19.2406C26.1785 19.2226 28.2745 19.2567 30.2441 19.4592C34.1973 19.8644 36.7025 20.767 36.7185 20.775C36.7185 20.775 36.4598 20.3297 35.5211 19.7962V19.7822C35.5351 19.6859 35.6415 18.9297 35.6776 17.7704C36.9873 18.9979 39.0291 21.5492 38.8646 25.4302L38.8686 25.4343Z",fill:"#40464C"})),x.createElement("defs",null,x.createElement("clipPath",{id:"clip0_16894_46778"},x.createElement("rect",{width:"40",height:"39.9338",fill:"white"})))),wk=Fe.div(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",gap:"16px",padding:"114px 32px 24px",[e.breakpoints.down("md")]:{padding:"114px 16px 24px",width:"100%"},boxSizing:"border-box",position:"absolute",zIndex:1,background:"white",bottom:0,top:0,left:0,right:0})),Mk=Fe.div(({theme:e})=>({position:"relative",padding:"16px",border:`1px solid ${e.custom.colors.lightGray2}`,borderRadius:"8px","svg:first-child":{fill:e.custom.colors.red,position:"absolute",top:"-10px",left:"-10px"}})),Bk=Fe(Ik)({width:"40px",height:"40px",display:"block"}),Pk=Fe(bi)({textAlign:"center",padding:"0 40px"}),Uk=Fe(h2)({borderRadius:"8px",margin:"8px 0 24px 0",flexShrink:0}),Hk=Fe(Ob)(({theme:e})=>({fill:e.custom.colors.red,"button:disabled &":{fill:e.custom.colors.silverGray}})),Fk=Fe.div(({theme:e})=>({display:"flex",gap:"16px",width:"100%",[e.breakpoints.down("sm")]:{flexDirection:"column"}})),zk=Fe.button(({theme:e})=>({flex:1,display:"flex",alignItems:"center",borderRadius:"8px",border:`1px solid ${e.custom.colors.lightGray2}`,padding:"12px 16px",color:e.custom.colors.darkGray2,backgroundColor:"transparent",textAlign:"left",[e.breakpoints.down("sm")]:{padding:"12px 36px"},":hover":{cursor:"pointer",borderColor:"transparent",color:e.custom.colors.white,backgroundColor:e.custom.colors.darkGray1}})),Yk=({title:e,conversationStarters:t,className:r,onPromptSubmit:i})=>{const[l,s]=x.useState(""),c=p=>{s(p.target.value)},d=p=>{p.key==="Enter"&&l?i(l):s(l)};return x.createElement(wk,{className:r,"data-testid":"ai-chat-entry-screen"},x.createElement(Mk,null,x.createElement(Ud,null),x.createElement(Bk,null)),e?x.createElement(Pk,{variant:"h4"},e):null,x.createElement(Uk,{fullWidth:!0,size:"chat",onChange:c,onKeyDown:d,endAdornment:x.createElement(y0,{"aria-label":"Send",onClick:()=>i(l)},x.createElement(Hk,null)),responsive:!0}),x.createElement(Fk,null,t==null?void 0:t.map(({content:p},m)=>x.createElement(zk,{key:m,onClick:()=>i(p),tabIndex:m,onKeyDown:b=>{b.key==="Enter"&&i(p)}},x.createElement(bi,{variant:"body2"},p)))))},jk=(...e)=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r&&(r.current=t)})},p2=e=>e.scrollHeight-e.clientHeight-e.scrollTop,Vk=e=>{e.scrollTop=e.scrollHeight},$k=Fe.div({overflow:"auto"}),qk=x.forwardRef(function({children:t,threshold:r=2,className:i},l){const s=x.useRef(null),[c,d]=x.useState(t),p=x.useRef(null);return x.useLayoutEffect(()=>{s.current&&(p.current=p2(s.current)<r,d(t))},[t,r]),x.useLayoutEffect(()=>{if(!s.current)return;const m=p2(s.current)<r;p.current&&!m&&(Vk(s.current),p.current=null)},[c,r]),x.createElement($k,{className:i,ref:jk(s,l)},c)}),m2=Fe.span({clipPath:"inset(100%)",clip:"rect(1px, 1px, 1px, 1px)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),Gk={loadingMessages:[{delay:1500,text:"Loading"},{delay:4e3,text:"Still loading"}]},Xk=({message:e,isLoading:t,loadingMessages:r=Gk.loadingMessages})=>{var c;const[i,l]=x.useState(-1);x.useEffect(()=>{l(-1)},[t,r]),x.useEffect(()=>{const d=r[i+1];if(!t||!d)return()=>{};const p=setTimeout(()=>{l(i+1)},d.delay);return()=>{clearTimeout(p)}},[t,i,r]);const s=(c=r[i])==null?void 0:c.text;return x.createElement(m2,{"aria-atomic":"true","aria-live":"polite"},t?s:e)};function Qk(e){return Un("MuiAlert",e)}const g2=Hn("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function Kk(e){return Un("MuiIconButton",e)}const Wk=Hn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Zk=e=>{const{classes:t,disabled:r,color:i,edge:l,size:s}=e,c={root:["root",r&&"disabled",i!=="default"&&`color${_t(i)}`,l&&`edge${_t(l)}`,`size${_t(s)}`]};return Zn(c,Kk,t)},Jk=Ot(h0,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${_t(r.color)}`],r.edge&&t[`edge${_t(r.edge)}`],t[`size${_t(r.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:t=>!t.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(pu()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(pu()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Il((e.vars||e).palette[t].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)}}],[`&.${Wk.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),eD=x.forwardRef(function(t,r){const i=zn({props:t,name:"MuiIconButton"}),{edge:l=!1,children:s,className:c,color:d="default",disabled:p=!1,disableFocusRipple:m=!1,size:b="medium",...E}=i,S={...i,edge:l,color:d,disabled:p,disableFocusRipple:m,size:b},y=Zk(S);return me.jsx(Jk,{className:st(y.root,c),centerRipple:!0,focusRipple:!m,disabled:p,ref:r,...E,ownerState:S,children:s})}),tD=gi(me.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"),nD=gi(me.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),rD=gi(me.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"),aD=gi(me.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"),iD=gi(me.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"),uD=e=>{const{variant:t,color:r,severity:i,classes:l}=e,s={root:["root",`color${_t(r||i)}`,`${t}${_t(r||i)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Zn(s,Qk,l)},lD=Ot(kE,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${_t(r.color||r.severity)}`]]}})(Fn(({theme:e})=>{const t=e.palette.mode==="light"?wl:Ml,r=e.palette.mode==="light"?Ml:wl;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(pu(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${i}StandardBg`]:r(e.palette[i].light,.9),[`& .${g2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(pu(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),border:`1px solid ${(e.vars||e).palette[i].light}`,[`& .${g2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(pu(["dark"])).map(([i])=>({props:{colorSeverity:i,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${i}FilledColor`],backgroundColor:e.vars.palette.Alert[`${i}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[i].dark:e.palette[i].main,color:e.palette.getContrastText(e.palette[i].main)}}}))]}})),oD=Ot("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),sD=Ot("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),b2=Ot("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),E2={success:me.jsx(tD,{fontSize:"inherit"}),warning:me.jsx(nD,{fontSize:"inherit"}),error:me.jsx(rD,{fontSize:"inherit"}),info:me.jsx(aD,{fontSize:"inherit"})},cD=x.forwardRef(function(t,r){const i=zn({props:t,name:"MuiAlert"}),{action:l,children:s,className:c,closeText:d="Close",color:p,components:m={},componentsProps:b={},icon:E,iconMapping:S=E2,onClose:y,role:O="alert",severity:_="success",slotProps:I={},slots:v={},variant:H="standard",...k}=i,P={...i,color:p,severity:_,variant:H,colorSeverity:p||_},L=uD(P),M={slots:{closeButton:m.CloseButton,closeIcon:m.CloseIcon,...v},slotProps:{...b,...I}},[j,ae]=fu("closeButton",{elementType:eD,externalForwardedProps:M,ownerState:P}),[V,A]=fu("closeIcon",{elementType:iD,externalForwardedProps:M,ownerState:P});return me.jsxs(lD,{role:O,elevation:0,ownerState:P,className:st(L.root,c),ref:r,...k,children:[E!==!1?me.jsx(oD,{ownerState:P,className:L.icon,children:E||S[_]||E2[_]}):null,me.jsx(sD,{ownerState:P,className:L.message,children:s}),l!=null?me.jsx(b2,{ownerState:P,className:L.action,children:l}):null,l==null&&y?me.jsx(b2,{ownerState:P,className:L.action,children:me.jsx(j,{size:"small","aria-label":d,title:d,color:"inherit",onClick:y,...ae,children:me.jsx(V,{fontSize:"small",...A})})}):null]})}),y2=(e,t)=>({info:e.custom.colors.blue,success:e.custom.colors.green,warning:e.custom.colors.orange,error:e.custom.colors.lightRed})[t],fD=Fe(cD)(({theme:e,severity:t})=>({padding:"11px 16px",borderRadius:4,borderWidth:2,borderStyle:"solid",borderColor:y2(e,t),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:y2(e,t)}},button:{padding:0,":hover":{margin:0,background:"none"}}})),dD=Fe.span({display:"none"}),hD=({visible:e=!0,severity:t="info",closable:r,children:i,className:l})=>{const[s,c]=x.useState(e),d=x.useId(),p=()=>{c(!1)};return x.useEffect(()=>{c(e)},[e]),s?x.createElement(fD,{severity:t,onClose:r?p:void 0,role:"alert","aria-describedby":d,className:l},i,x.createElement(dD,{id:d},t," message")):null},pD=Fe.div(({externalScroll:e,theme:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 0",gap:"16px",color:t.custom.colors.white,borderRadius:"8px 8px 0 0",...e&&{position:"sticky",top:0,padding:"32px 0 26px",zIndex:2,backgroundColor:t.custom.colors.white,borderRadius:0}})),mD=Fe.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"}})),gD=({askTimTitle:e,externalScroll:t,className:r})=>e?x.createElement(pD,{externalScroll:t,className:r},x.createElement(mD,null,x.createElement(Ud,null),x.createElement(bi,{variant:"body1"},"Ask",x.createElement("strong",null,"TIM")," ",e))):null;var T2="vercel.ai.error",bD=Symbol.for(T2),S2,ED=class z3 extends Error{constructor({name:t,message:r,cause:i}){super(r),this[S2]=!0,this.name=t,this.cause=i}static isInstance(t){return z3.hasMarker(t,T2)}static hasMarker(t,r){const i=Symbol.for(r);return t!=null&&typeof t=="object"&&i in t&&typeof t[i]=="boolean"&&t[i]===!0}};S2=bD;var mu=ED;function C2(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var A2="AI_InvalidArgumentError",x2=`vercel.ai.error.${A2}`,yD=Symbol.for(x2),_2,TD=class extends mu{constructor({message:e,cause:t,argument:r}){super({name:A2,message:e,cause:t}),this[_2]=!0,this.argument=r}static isInstance(e){return mu.hasMarker(e,x2)}};_2=yD;var v2="AI_JSONParseError",R2=`vercel.ai.error.${v2}`,SD=Symbol.for(R2),O2,N2=class extends mu{constructor({text:e,cause:t}){super({name:v2,message:`JSON parsing failed: Text: ${e}.
197
197
  Error message: ${C2(t)}`,cause:t}),this[O2]=!0,this.text=e}static isInstance(e){return mu.hasMarker(e,R2)}};O2=SD;var k2="AI_TypeValidationError",D2=`vercel.ai.error.${k2}`,CD=Symbol.for(D2),L2,AD=class Yp extends mu{constructor({value:t,cause:r}){super({name:k2,message:`Type validation failed: Value: ${JSON.stringify(t)}.
198
- Error message: ${C2(r)}`,cause:r}),this[L2]=!0,this.value=t}static isInstance(t){return mu.hasMarker(t,D2)}static wrap({value:t,cause:r}){return Yp.isInstance(r)&&r.value===t?r:new Yp({value:t,cause:r})}};L2=CD;var I2=AD;let xD=(e,t=21)=>(r=t)=>{let i="",l=r;for(;l--;)i+=e[Math.random()*e.length|0];return i};var Ei={exports:{}},w2;function _D(){if(w2)return Ei.exports;w2=1;const e=typeof Buffer<"u",t=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,r=/"(?: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 i(d,p,m){m==null&&p!==null&&typeof p=="object"&&(m=p,p=void 0),e&&Buffer.isBuffer(d)&&(d=d.toString()),d&&d.charCodeAt(0)===65279&&(d=d.slice(1));const b=JSON.parse(d,p);if(b===null||typeof b!="object")return b;const E=m&&m.protoAction||"error",S=m&&m.constructorAction||"error";if(E==="ignore"&&S==="ignore")return b;if(E!=="ignore"&&S!=="ignore"){if(t.test(d)===!1&&r.test(d)===!1)return b}else if(E!=="ignore"&&S==="ignore"){if(t.test(d)===!1)return b}else if(r.test(d)===!1)return b;return l(b,{protoAction:E,constructorAction:S,safe:m&&m.safe})}function l(d,{protoAction:p="error",constructorAction:m="error",safe:b}={}){let E=[d];for(;E.length;){const S=E;E=[];for(const y of S){if(p!=="ignore"&&Object.prototype.hasOwnProperty.call(y,"__proto__")){if(b===!0)return null;if(p==="error")throw new SyntaxError("Object contains forbidden prototype property");delete y.__proto__}if(m!=="ignore"&&Object.prototype.hasOwnProperty.call(y,"constructor")&&Object.prototype.hasOwnProperty.call(y.constructor,"prototype")){if(b===!0)return null;if(m==="error")throw new SyntaxError("Object contains forbidden prototype property");delete y.constructor}for(const O in y){const _=y[O];_&&typeof _=="object"&&E.push(_)}}}return d}function s(d,p,m){const b=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return i(d,p,m)}finally{Error.stackTraceLimit=b}}function c(d,p){const m=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return i(d,p,{safe:!0})}catch{return null}finally{Error.stackTraceLimit=m}}return Ei.exports=s,Ei.exports.default=s,Ei.exports.parse=s,Ei.exports.safeParse=c,Ei.exports.scan=l,Ei.exports}var vD=_D();const RD=ur(vD);var OD=({prefix:e,size:t=16,alphabet:r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:i="-"}={})=>{const l=xD(r,t);if(e==null)return l;if(r.includes(i))throw new TD({argument:"separator",message:`The separator "${i}" must not be part of the alphabet "${r}".`});return s=>`${e}${i}${l(s)}`},M2=OD(),T0=Symbol.for("vercel.ai.validator");function ND(e){return{[T0]:!0,validate:e}}function kD(e){return typeof e=="object"&&e!==null&&T0 in e&&e[T0]===!0&&"validate"in e}function DD(e){return kD(e)?e:LD(e)}function LD(e){return ND(t=>{const r=e.safeParse(t);return r.success?{success:!0,value:r.data}:{success:!1,error:r.error}})}function ID({value:e,schema:t}){const r=DD(t);try{if(r.validate==null)return{success:!0,value:e};const i=r.validate(e);return i.success?i:{success:!1,error:I2.wrap({value:e,cause:i.error})}}catch(i){return{success:!1,error:I2.wrap({value:e,cause:i})}}}function B2({text:e,schema:t}){try{const r=RD.parse(e);return t==null?{success:!0,value:r}:ID({value:r,schema:t})}catch(r){return{success:!1,error:N2.isInstance(r)?r:new N2({text:e,cause:r})}}}var Yl={code:"0",name:"text",parse:e=>{if(typeof e!="string")throw new Error('"text" parts expect a string value.');return{type:"text",value:e}}},jl={code:"3",name:"error",parse:e=>{if(typeof e!="string")throw new Error('"error" parts expect a string value.');return{type:"error",value:e}}},Vl={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(t=>t!=null&&typeof t=="object"&&"type"in t&&t.type==="text"&&"text"in t&&t.text!=null&&typeof t.text=="object"&&"value"in t.text&&typeof t.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}}},$l={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}}}},ql={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}}},wD=[Yl,jl,Vl,$l,ql];Yl.code+"",jl.code+"",Vl.code+"",$l.code+"",ql.code+"",Yl.name+"",Yl.code,jl.name+"",jl.code,Vl.name+"",Vl.code,$l.name+"",$l.code,ql.name+"",ql.code,wD.map(e=>e.code);function MD(e){const t=["ROOT"];let r=-1,i=null;function l(p,m,b){switch(p){case'"':{r=m,t.pop(),t.push(b),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{r=m,i=m,t.pop(),t.push(b),t.push("INSIDE_LITERAL");break}case"-":{t.pop(),t.push(b),t.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{r=m,t.pop(),t.push(b),t.push("INSIDE_NUMBER");break}case"{":{r=m,t.pop(),t.push(b),t.push("INSIDE_OBJECT_START");break}case"[":{r=m,t.pop(),t.push(b),t.push("INSIDE_ARRAY_START");break}}}function s(p,m){switch(p){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{r=m,t.pop();break}}}function c(p,m){switch(p){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=m,t.pop();break}}}for(let p=0;p<e.length;p++){const m=e[p];switch(t[t.length-1]){case"ROOT":l(m,p,"FINISH");break;case"INSIDE_OBJECT_START":{switch(m){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{r=p,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{switch(m){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}}break}case"INSIDE_OBJECT_KEY":{switch(m){case'"':{t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY");break}}break}case"INSIDE_OBJECT_AFTER_KEY":{switch(m){case":":{t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE");break}}break}case"INSIDE_OBJECT_BEFORE_VALUE":{l(m,p,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{s(m,p);break}case"INSIDE_STRING":{switch(m){case'"':{t.pop(),r=p;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:r=p}break}case"INSIDE_ARRAY_START":{switch(m){case"]":{r=p,t.pop();break}default:{r=p,l(m,p,"INSIDE_ARRAY_AFTER_VALUE");break}}break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(m){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=p,t.pop();break}default:{r=p;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{l(m,p,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),r=p;break}case"INSIDE_NUMBER":{switch(m){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{r=p;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(m,p),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(m,p);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(m,p);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(m,p);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{const E=e.substring(i,p+1);!"false".startsWith(E)&&!"true".startsWith(E)&&!"null".startsWith(E)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?s(m,p):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(m,p)):r=p;break}}}let d=e.slice(0,r+1);for(let p=t.length-1;p>=0;p--)switch(t[p]){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 b=e.substring(i,e.length);"true".startsWith(b)?d+="true".slice(b.length):"false".startsWith(b)?d+="false".slice(b.length):"null".startsWith(b)&&(d+="null".slice(b.length))}}return d}function BD(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=B2({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=B2({text:MD(e)}),t.success?{value:t.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}}},Xl={code:"2",name:"data",parse:e=>{if(!Array.isArray(e))throw new Error('"data" parts expect an array value.');return{type:"data",value:e}}},Ql={code:"3",name:"error",parse:e=>{if(typeof e!="string")throw new Error('"error" parts expect a string value.');return{type:"error",value:e}}},Kl={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}}},Wl={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}}},Zl={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}}},Jl={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}}},eo={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}}},to={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 t={finishReason:e.finishReason};return"usage"in e&&e.usage!=null&&typeof e.usage=="object"&&"promptTokens"in e.usage&&"completionTokens"in e.usage&&(t.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:t}}},no={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 t={finishReason:e.finishReason,isContinued:!1};return"usage"in e&&e.usage!=null&&typeof e.usage=="object"&&"promptTokens"in e.usage&&"completionTokens"in e.usage&&(t.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"&&(t.isContinued=e.isContinued),{type:"finish_step",value:t}}},PD=[Gl,Xl,Ql,Kl,Wl,Zl,Jl,eo,to,no],UD={[Gl.code]:Gl,[Xl.code]:Xl,[Ql.code]:Ql,[Kl.code]:Kl,[Wl.code]:Wl,[Zl.code]:Zl,[Jl.code]:Jl,[eo.code]:eo,[to.code]:to,[no.code]:no};Gl.name+"",Gl.code,Xl.name+"",Xl.code,Ql.name+"",Ql.code,Kl.name+"",Kl.code,Wl.name+"",Wl.code,Zl.name+"",Zl.code,Jl.name+"",Jl.code,eo.name+"",eo.code,to.name+"",to.code,no.name+"",no.code;var HD=PD.map(e=>e.code),FD=e=>{const t=e.indexOf(":");if(t===-1)throw new Error("Failed to parse stream string. No separator found.");const r=e.slice(0,t);if(!HD.includes(r))throw new Error(`Failed to parse stream string. Invalid code ${r}.`);const i=r,l=e.slice(t+1),s=JSON.parse(l);return UD[i].parse(s)},zD=10;function YD(e,t){const r=new Uint8Array(t);let i=0;for(const l of e)r.set(l,i),i+=l.length;return e.length=0,r}async function jD({stream:e,onTextPart:t,onDataPart:r,onErrorPart:i,onToolCallStreamingStartPart:l,onToolCallDeltaPart:s,onToolCallPart:c,onToolResultPart:d,onMessageAnnotationsPart:p,onFinishMessagePart:m,onFinishStepPart:b}){const E=e.getReader(),S=new TextDecoder,y=[];let O=0;for(;;){const{value:_}=await E.read();if(_&&(y.push(_),O+=_.length,_[_.length-1]!==zD))continue;if(y.length===0)break;const I=YD(y,O);O=0;const R=S.decode(I,{stream:!0}).split(`
199
- `).filter(H=>H!=="").map(FD);for(const{type:H,value:k}of R)switch(H){case"text":await(t==null?void 0:t(k));break;case"data":await(r==null?void 0:r(k));break;case"error":await(i==null?void 0:i(k));break;case"message_annotations":await(p==null?void 0:p(k));break;case"tool_call_streaming_start":await(l==null?void 0:l(k));break;case"tool_call_delta":await(s==null?void 0:s(k));break;case"tool_call":await(c==null?void 0:c(k));break;case"tool_result":await(d==null?void 0:d(k));break;case"finish_message":await(m==null?void 0:m(k));break;case"finish_step":await(b==null?void 0:b(k));break;default:{const P=H;throw new Error(`Unknown stream part type: ${P}`)}}}}function VD({promptTokens:e,completionTokens:t}){return{promptTokens:e,completionTokens:t,totalTokens:e+t}}async function $D({stream:e,update:t,onToolCall:r,onFinish:i,generateId:l=M2,getCurrentDate:s=()=>new Date}){const c=s();let d,p=!0;const m=[],b=[];let E;const S={};let y={completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},O="unknown";function _(){const R=[...b];if(d==null){t(m,R);return}E!=null&&E.length&&(d.annotations=E);const H={...JSON.parse(JSON.stringify(d)),revisionId:l(),createdAt:d.createdAt};t([...m,H],R)}function I(){return(p||d==null)&&(d!=null&&m.push(d),p=!1,d={id:l(),role:"assistant",content:"",createdAt:c}),d}await jD({stream:e,onTextPart(R){const H=I();d={...H,content:H.content+R},_()},onToolCallStreamingStartPart(R){const H=I();H.toolInvocations==null&&(H.toolInvocations=[]),S[R.toolCallId]={text:"",toolName:R.toolName,index:H.toolInvocations.length},H.toolInvocations.push({state:"partial-call",toolCallId:R.toolCallId,toolName:R.toolName,args:void 0}),_()},onToolCallDeltaPart(R){const H=I(),k=S[R.toolCallId];k.text+=R.argsTextDelta;const{value:P}=BD(k.text);H.toolInvocations[k.index]={state:"partial-call",toolCallId:R.toolCallId,toolName:k.toolName,args:P},_()},async onToolCallPart(R){const H=I();if(S[R.toolCallId]!=null?H.toolInvocations[S[R.toolCallId].index]={state:"call",...R}:(H.toolInvocations==null&&(H.toolInvocations=[]),H.toolInvocations.push({state:"call",...R})),r){const k=await r({toolCall:R});k!=null&&(H.toolInvocations[H.toolInvocations.length-1]={state:"result",...R,result:k})}_()},onToolResultPart(R){const k=I().toolInvocations;if(k==null)throw new Error("tool_result must be preceded by a tool_call");const P=k.findIndex(L=>L.toolCallId===R.toolCallId);if(P===-1)throw new Error("tool_result must be preceded by a tool_call with the same toolCallId");k[P]={...k[P],state:"result",...R},_()},onDataPart(R){b.push(...R),_()},onMessageAnnotationsPart(R){E==null?E=[...R]:E.push(...R),_()},onFinishStepPart(R){p=!R.isContinued},onFinishMessagePart(R){O=R.finishReason,R.usage!=null&&(y=VD(R.usage))},onErrorPart(R){throw new Error(R)}}),i==null||i({message:d,finishReason:O,usage:y})}async function qD({stream:e,onTextPart:t}){const r=e.pipeThrough(new TextDecoderStream).getReader();for(;;){const{done:i,value:l}=await r.read();if(i)break;await t(l)}}var GD=()=>fetch;async function XD({api:e,body:t,streamProtocol:r="data",credentials:i,headers:l,abortController:s,restoreMessagesOnFailure:c,onResponse:d,onUpdate:p,onFinish:m,onToolCall:b,generateId:E,fetch:S=GD()}){var y,O;const _=await S(e,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",...l},signal:(y=s==null?void 0:s())==null?void 0:y.signal,credentials:i}).catch(I=>{throw c(),I});if(d)try{await d(_)}catch(I){throw I}if(!_.ok)throw c(),new Error((O=await _.text())!=null?O:"Failed to fetch the chat response.");if(!_.body)throw new Error("The response body is empty.");switch(r){case"text":{const I={id:E(),createdAt:new Date,role:"assistant",content:""};await qD({stream:_.body,onTextPart:R=>{I.content+=R,p([{...I}],[])}}),m==null||m(I,{usage:{completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},finishReason:"unknown"});return}case"data":{await $D({stream:_.body,update:p,onToolCall:b,onFinish({message:I,finishReason:R,usage:H}){m&&I!=null&&m(I,{usage:H,finishReason:R})},generateId:E});return}default:{const I=r;throw new Error(`Unknown stream protocol: ${I}`)}}}async function P2(e){if(!e)return[];if(e instanceof FileList)return Promise.all(Array.from(e).map(async t=>{const{name:r,type:i}=t,l=await new Promise((s,c)=>{const d=new FileReader;d.onload=p=>{var m;s((m=p.target)==null?void 0:m.result)},d.onerror=p=>c(p),d.readAsDataURL(t)});return{name:r,contentType:i,url:l}}));if(Array.isArray(e))return e;throw new Error("Invalid attachments type")}var S0={exports:{}},C0={};/**
198
+ Error message: ${C2(r)}`,cause:r}),this[L2]=!0,this.value=t}static isInstance(t){return mu.hasMarker(t,D2)}static wrap({value:t,cause:r}){return Yp.isInstance(r)&&r.value===t?r:new Yp({value:t,cause:r})}};L2=CD;var I2=AD;let xD=(e,t=21)=>(r=t)=>{let i="",l=r;for(;l--;)i+=e[Math.random()*e.length|0];return i};var Ei={exports:{}},w2;function _D(){if(w2)return Ei.exports;w2=1;const e=typeof Buffer<"u",t=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,r=/"(?: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 i(d,p,m){m==null&&p!==null&&typeof p=="object"&&(m=p,p=void 0),e&&Buffer.isBuffer(d)&&(d=d.toString()),d&&d.charCodeAt(0)===65279&&(d=d.slice(1));const b=JSON.parse(d,p);if(b===null||typeof b!="object")return b;const E=m&&m.protoAction||"error",S=m&&m.constructorAction||"error";if(E==="ignore"&&S==="ignore")return b;if(E!=="ignore"&&S!=="ignore"){if(t.test(d)===!1&&r.test(d)===!1)return b}else if(E!=="ignore"&&S==="ignore"){if(t.test(d)===!1)return b}else if(r.test(d)===!1)return b;return l(b,{protoAction:E,constructorAction:S,safe:m&&m.safe})}function l(d,{protoAction:p="error",constructorAction:m="error",safe:b}={}){let E=[d];for(;E.length;){const S=E;E=[];for(const y of S){if(p!=="ignore"&&Object.prototype.hasOwnProperty.call(y,"__proto__")){if(b===!0)return null;if(p==="error")throw new SyntaxError("Object contains forbidden prototype property");delete y.__proto__}if(m!=="ignore"&&Object.prototype.hasOwnProperty.call(y,"constructor")&&Object.prototype.hasOwnProperty.call(y.constructor,"prototype")){if(b===!0)return null;if(m==="error")throw new SyntaxError("Object contains forbidden prototype property");delete y.constructor}for(const O in y){const _=y[O];_&&typeof _=="object"&&E.push(_)}}}return d}function s(d,p,m){const b=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return i(d,p,m)}finally{Error.stackTraceLimit=b}}function c(d,p){const m=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return i(d,p,{safe:!0})}catch{return null}finally{Error.stackTraceLimit=m}}return Ei.exports=s,Ei.exports.default=s,Ei.exports.parse=s,Ei.exports.safeParse=c,Ei.exports.scan=l,Ei.exports}var vD=_D();const RD=ur(vD);var OD=({prefix:e,size:t=16,alphabet:r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:i="-"}={})=>{const l=xD(r,t);if(e==null)return l;if(r.includes(i))throw new TD({argument:"separator",message:`The separator "${i}" must not be part of the alphabet "${r}".`});return s=>`${e}${i}${l(s)}`},M2=OD(),T0=Symbol.for("vercel.ai.validator");function ND(e){return{[T0]:!0,validate:e}}function kD(e){return typeof e=="object"&&e!==null&&T0 in e&&e[T0]===!0&&"validate"in e}function DD(e){return kD(e)?e:LD(e)}function LD(e){return ND(t=>{const r=e.safeParse(t);return r.success?{success:!0,value:r.data}:{success:!1,error:r.error}})}function ID({value:e,schema:t}){const r=DD(t);try{if(r.validate==null)return{success:!0,value:e};const i=r.validate(e);return i.success?i:{success:!1,error:I2.wrap({value:e,cause:i.error})}}catch(i){return{success:!1,error:I2.wrap({value:e,cause:i})}}}function B2({text:e,schema:t}){try{const r=RD.parse(e);return t==null?{success:!0,value:r}:ID({value:r,schema:t})}catch(r){return{success:!1,error:N2.isInstance(r)?r:new N2({text:e,cause:r})}}}var Yl={code:"0",name:"text",parse:e=>{if(typeof e!="string")throw new Error('"text" parts expect a string value.');return{type:"text",value:e}}},jl={code:"3",name:"error",parse:e=>{if(typeof e!="string")throw new Error('"error" parts expect a string value.');return{type:"error",value:e}}},Vl={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(t=>t!=null&&typeof t=="object"&&"type"in t&&t.type==="text"&&"text"in t&&t.text!=null&&typeof t.text=="object"&&"value"in t.text&&typeof t.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}}},$l={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}}}},ql={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}}},wD=[Yl,jl,Vl,$l,ql];Yl.code+"",jl.code+"",Vl.code+"",$l.code+"",ql.code+"",Yl.name+"",Yl.code,jl.name+"",jl.code,Vl.name+"",Vl.code,$l.name+"",$l.code,ql.name+"",ql.code,wD.map(e=>e.code);function MD(e){const t=["ROOT"];let r=-1,i=null;function l(p,m,b){switch(p){case'"':{r=m,t.pop(),t.push(b),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{r=m,i=m,t.pop(),t.push(b),t.push("INSIDE_LITERAL");break}case"-":{t.pop(),t.push(b),t.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{r=m,t.pop(),t.push(b),t.push("INSIDE_NUMBER");break}case"{":{r=m,t.pop(),t.push(b),t.push("INSIDE_OBJECT_START");break}case"[":{r=m,t.pop(),t.push(b),t.push("INSIDE_ARRAY_START");break}}}function s(p,m){switch(p){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{r=m,t.pop();break}}}function c(p,m){switch(p){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=m,t.pop();break}}}for(let p=0;p<e.length;p++){const m=e[p];switch(t[t.length-1]){case"ROOT":l(m,p,"FINISH");break;case"INSIDE_OBJECT_START":{switch(m){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{r=p,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{switch(m){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}}break}case"INSIDE_OBJECT_KEY":{switch(m){case'"':{t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY");break}}break}case"INSIDE_OBJECT_AFTER_KEY":{switch(m){case":":{t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE");break}}break}case"INSIDE_OBJECT_BEFORE_VALUE":{l(m,p,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{s(m,p);break}case"INSIDE_STRING":{switch(m){case'"':{t.pop(),r=p;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:r=p}break}case"INSIDE_ARRAY_START":{switch(m){case"]":{r=p,t.pop();break}default:{r=p,l(m,p,"INSIDE_ARRAY_AFTER_VALUE");break}}break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(m){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=p,t.pop();break}default:{r=p;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{l(m,p,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),r=p;break}case"INSIDE_NUMBER":{switch(m){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{r=p;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(m,p),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(m,p);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(m,p);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(m,p);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{const E=e.substring(i,p+1);!"false".startsWith(E)&&!"true".startsWith(E)&&!"null".startsWith(E)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?s(m,p):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(m,p)):r=p;break}}}let d=e.slice(0,r+1);for(let p=t.length-1;p>=0;p--)switch(t[p]){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 b=e.substring(i,e.length);"true".startsWith(b)?d+="true".slice(b.length):"false".startsWith(b)?d+="false".slice(b.length):"null".startsWith(b)&&(d+="null".slice(b.length))}}return d}function BD(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=B2({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=B2({text:MD(e)}),t.success?{value:t.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}}},Xl={code:"2",name:"data",parse:e=>{if(!Array.isArray(e))throw new Error('"data" parts expect an array value.');return{type:"data",value:e}}},Ql={code:"3",name:"error",parse:e=>{if(typeof e!="string")throw new Error('"error" parts expect a string value.');return{type:"error",value:e}}},Kl={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}}},Wl={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}}},Zl={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}}},Jl={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}}},eo={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}}},to={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 t={finishReason:e.finishReason};return"usage"in e&&e.usage!=null&&typeof e.usage=="object"&&"promptTokens"in e.usage&&"completionTokens"in e.usage&&(t.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:t}}},no={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 t={finishReason:e.finishReason,isContinued:!1};return"usage"in e&&e.usage!=null&&typeof e.usage=="object"&&"promptTokens"in e.usage&&"completionTokens"in e.usage&&(t.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"&&(t.isContinued=e.isContinued),{type:"finish_step",value:t}}},PD=[Gl,Xl,Ql,Kl,Wl,Zl,Jl,eo,to,no],UD={[Gl.code]:Gl,[Xl.code]:Xl,[Ql.code]:Ql,[Kl.code]:Kl,[Wl.code]:Wl,[Zl.code]:Zl,[Jl.code]:Jl,[eo.code]:eo,[to.code]:to,[no.code]:no};Gl.name+"",Gl.code,Xl.name+"",Xl.code,Ql.name+"",Ql.code,Kl.name+"",Kl.code,Wl.name+"",Wl.code,Zl.name+"",Zl.code,Jl.name+"",Jl.code,eo.name+"",eo.code,to.name+"",to.code,no.name+"",no.code;var HD=PD.map(e=>e.code),FD=e=>{const t=e.indexOf(":");if(t===-1)throw new Error("Failed to parse stream string. No separator found.");const r=e.slice(0,t);if(!HD.includes(r))throw new Error(`Failed to parse stream string. Invalid code ${r}.`);const i=r,l=e.slice(t+1),s=JSON.parse(l);return UD[i].parse(s)},zD=10;function YD(e,t){const r=new Uint8Array(t);let i=0;for(const l of e)r.set(l,i),i+=l.length;return e.length=0,r}async function jD({stream:e,onTextPart:t,onDataPart:r,onErrorPart:i,onToolCallStreamingStartPart:l,onToolCallDeltaPart:s,onToolCallPart:c,onToolResultPart:d,onMessageAnnotationsPart:p,onFinishMessagePart:m,onFinishStepPart:b}){const E=e.getReader(),S=new TextDecoder,y=[];let O=0;for(;;){const{value:_}=await E.read();if(_&&(y.push(_),O+=_.length,_[_.length-1]!==zD))continue;if(y.length===0)break;const I=YD(y,O);O=0;const v=S.decode(I,{stream:!0}).split(`
199
+ `).filter(H=>H!=="").map(FD);for(const{type:H,value:k}of v)switch(H){case"text":await(t==null?void 0:t(k));break;case"data":await(r==null?void 0:r(k));break;case"error":await(i==null?void 0:i(k));break;case"message_annotations":await(p==null?void 0:p(k));break;case"tool_call_streaming_start":await(l==null?void 0:l(k));break;case"tool_call_delta":await(s==null?void 0:s(k));break;case"tool_call":await(c==null?void 0:c(k));break;case"tool_result":await(d==null?void 0:d(k));break;case"finish_message":await(m==null?void 0:m(k));break;case"finish_step":await(b==null?void 0:b(k));break;default:{const P=H;throw new Error(`Unknown stream part type: ${P}`)}}}}function VD({promptTokens:e,completionTokens:t}){return{promptTokens:e,completionTokens:t,totalTokens:e+t}}async function $D({stream:e,update:t,onToolCall:r,onFinish:i,generateId:l=M2,getCurrentDate:s=()=>new Date}){const c=s();let d,p=!0;const m=[],b=[];let E;const S={};let y={completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},O="unknown";function _(){const v=[...b];if(d==null){t(m,v);return}E!=null&&E.length&&(d.annotations=E);const H={...JSON.parse(JSON.stringify(d)),revisionId:l(),createdAt:d.createdAt};t([...m,H],v)}function I(){return(p||d==null)&&(d!=null&&m.push(d),p=!1,d={id:l(),role:"assistant",content:"",createdAt:c}),d}await jD({stream:e,onTextPart(v){const H=I();d={...H,content:H.content+v},_()},onToolCallStreamingStartPart(v){const H=I();H.toolInvocations==null&&(H.toolInvocations=[]),S[v.toolCallId]={text:"",toolName:v.toolName,index:H.toolInvocations.length},H.toolInvocations.push({state:"partial-call",toolCallId:v.toolCallId,toolName:v.toolName,args:void 0}),_()},onToolCallDeltaPart(v){const H=I(),k=S[v.toolCallId];k.text+=v.argsTextDelta;const{value:P}=BD(k.text);H.toolInvocations[k.index]={state:"partial-call",toolCallId:v.toolCallId,toolName:k.toolName,args:P},_()},async onToolCallPart(v){const H=I();if(S[v.toolCallId]!=null?H.toolInvocations[S[v.toolCallId].index]={state:"call",...v}:(H.toolInvocations==null&&(H.toolInvocations=[]),H.toolInvocations.push({state:"call",...v})),r){const k=await r({toolCall:v});k!=null&&(H.toolInvocations[H.toolInvocations.length-1]={state:"result",...v,result:k})}_()},onToolResultPart(v){const k=I().toolInvocations;if(k==null)throw new Error("tool_result must be preceded by a tool_call");const P=k.findIndex(L=>L.toolCallId===v.toolCallId);if(P===-1)throw new Error("tool_result must be preceded by a tool_call with the same toolCallId");k[P]={...k[P],state:"result",...v},_()},onDataPart(v){b.push(...v),_()},onMessageAnnotationsPart(v){E==null?E=[...v]:E.push(...v),_()},onFinishStepPart(v){p=!v.isContinued},onFinishMessagePart(v){O=v.finishReason,v.usage!=null&&(y=VD(v.usage))},onErrorPart(v){throw new Error(v)}}),i==null||i({message:d,finishReason:O,usage:y})}async function qD({stream:e,onTextPart:t}){const r=e.pipeThrough(new TextDecoderStream).getReader();for(;;){const{done:i,value:l}=await r.read();if(i)break;await t(l)}}var GD=()=>fetch;async function XD({api:e,body:t,streamProtocol:r="data",credentials:i,headers:l,abortController:s,restoreMessagesOnFailure:c,onResponse:d,onUpdate:p,onFinish:m,onToolCall:b,generateId:E,fetch:S=GD()}){var y,O;const _=await S(e,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",...l},signal:(y=s==null?void 0:s())==null?void 0:y.signal,credentials:i}).catch(I=>{throw c(),I});if(d)try{await d(_)}catch(I){throw I}if(!_.ok)throw c(),new Error((O=await _.text())!=null?O:"Failed to fetch the chat response.");if(!_.body)throw new Error("The response body is empty.");switch(r){case"text":{const I={id:E(),createdAt:new Date,role:"assistant",content:""};await qD({stream:_.body,onTextPart:v=>{I.content+=v,p([{...I}],[])}}),m==null||m(I,{usage:{completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},finishReason:"unknown"});return}case"data":{await $D({stream:_.body,update:p,onToolCall:b,onFinish({message:I,finishReason:v,usage:H}){m&&I!=null&&m(I,{usage:H,finishReason:v})},generateId:E});return}default:{const I=r;throw new Error(`Unknown stream protocol: ${I}`)}}}async function P2(e){if(!e)return[];if(e instanceof FileList)return Promise.all(Array.from(e).map(async t=>{const{name:r,type:i}=t,l=await new Promise((s,c)=>{const d=new FileReader;d.onload=p=>{var m;s((m=p.target)==null?void 0:m.result)},d.onerror=p=>c(p),d.readAsDataURL(t)});return{name:r,contentType:i,url:l}}));if(Array.isArray(e))return e;throw new Error("Invalid attachments type")}var S0={exports:{}},C0={};/**
200
200
  * @license React
201
201
  * use-sync-external-store-shim.production.js
202
202
  *
@@ -204,4 +204,4 @@ Error message: ${C2(r)}`,cause:r}),this[L2]=!0,this.value=t}static isInstance(t)
204
204
  *
205
205
  * This source code is licensed under the MIT license found in the
206
206
  * LICENSE file in the root directory of this source tree.
207
- */var U2;function QD(){if(U2)return C0;U2=1;var e=as();function t(E,S){return E===S&&(E!==0||1/E===1/S)||E!==E&&S!==S}var r=typeof Object.is=="function"?Object.is:t,i=e.useState,l=e.useEffect,s=e.useLayoutEffect,c=e.useDebugValue;function d(E,S){var y=S(),O=i({inst:{value:y,getSnapshot:S}}),_=O[0].inst,I=O[1];return s(function(){_.value=y,_.getSnapshot=S,p(_)&&I({inst:_})},[E,y,S]),l(function(){return p(_)&&I({inst:_}),E(function(){p(_)&&I({inst:_})})},[E]),c(y),y}function p(E){var S=E.getSnapshot;E=E.value;try{var y=S();return!r(E,y)}catch{return!0}}function m(E,S){return S()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:d;return C0.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:b,C0}var H2;function KD(){return H2||(H2=1,S0.exports=QD()),S0.exports}var WD=KD();const Ia=()=>{},Yn=Ia(),A0=Object,mt=e=>e===Yn,Gr=e=>typeof e=="function",wa=(e,t)=>({...e,...t}),ZD=e=>Gr(e.then),sc=new WeakMap;let JD=0;const ro=e=>{const t=typeof e,r=e&&e.constructor,i=r==Date;let l,s;if(A0(e)===e&&!i&&r!=RegExp){if(l=sc.get(e),l)return l;if(l=++JD+"~",sc.set(e,l),r==Array){for(l="@",s=0;s<e.length;s++)l+=ro(e[s])+",";sc.set(e,l)}if(r==A0){l="#";const c=A0.keys(e).sort();for(;!mt(s=c.pop());)mt(e[s])||(l+=s+":"+ro(e[s])+",");sc.set(e,l)}}else l=i?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return l},ua=new WeakMap,x0={},cc={},_0="undefined",fc=typeof window!=_0,v0=typeof document!=_0,eL=()=>fc&&typeof window.requestAnimationFrame!=_0,F2=(e,t)=>{const r=ua.get(e);return[()=>!mt(t)&&e.get(t)||x0,i=>{if(!mt(t)){const l=e.get(t);t in cc||(cc[t]=l),r[5](t,wa(l,i),l||x0)}},r[6],()=>!mt(t)&&t in cc?cc[t]:!mt(t)&&e.get(t)||x0]};let R0=!0;const tL=()=>R0,[O0,N0]=fc&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Ia,Ia],nL=()=>{const e=v0&&document.visibilityState;return mt(e)||e!=="hidden"},rL=e=>(v0&&document.addEventListener("visibilitychange",e),O0("focus",e),()=>{v0&&document.removeEventListener("visibilitychange",e),N0("focus",e)}),aL=e=>{const t=()=>{R0=!0,e()},r=()=>{R0=!1};return O0("online",t),O0("offline",r),()=>{N0("online",t),N0("offline",r)}},iL={isOnline:tL,isVisible:nL},uL={initFocus:rL,initReconnect:aL},z2=!xt.useId,ao=!fc||"Deno"in window,lL=e=>eL()?window.requestAnimationFrame(e):setTimeout(e,1),k0=ao?x.useEffect:x.useLayoutEffect,D0=typeof navigator<"u"&&navigator.connection,Y2=!ao&&D0&&(["slow-2g","2g"].includes(D0.effectiveType)||D0.saveData),L0=e=>{if(Gr(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?ro(e):"",[e,t]};let oL=0;const I0=()=>++oL,j2=0,V2=1,$2=2;var io={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:j2,MUTATE_EVENT:$2,RECONNECT_EVENT:V2};async function q2(...e){const[t,r,i,l]=e,s=wa({populateCache:!0,throwOnError:!0},typeof l=="boolean"?{revalidate:l}:l||{});let c=s.populateCache;const d=s.rollbackOnError;let p=s.optimisticData;const m=S=>typeof d=="function"?d(S):d!==!1,b=s.throwOnError;if(Gr(r)){const S=r,y=[],O=t.keys();for(const _ of O)!/^\$(inf|sub)\$/.test(_)&&S(t.get(_)._k)&&y.push(_);return Promise.all(y.map(E))}return E(r);async function E(S){const[y]=L0(S);if(!y)return;const[O,_]=F2(t,y),[I,R,H,k]=ua.get(t),P=()=>{const X=I[y];return(Gr(s.revalidate)?s.revalidate(O().data,S):s.revalidate!==!1)&&(delete H[y],delete k[y],X&&X[0])?X[0]($2).then(()=>O().data):O().data};if(e.length<3)return P();let L=i,M;const j=I0();R[y]=[j,0];const ae=!mt(p),V=O(),A=V.data,Y=V._c,W=mt(Y)?A:Y;if(ae&&(p=Gr(p)?p(W,A):p,_({data:p,_c:W})),Gr(L))try{L=L(W)}catch(X){M=X}if(L&&ZD(L))if(L=await L.catch(X=>{M=X}),j!==R[y][0]){if(M)throw M;return L}else M&&ae&&m(M)&&(c=!0,_({data:W,_c:Yn}));if(c&&!M)if(Gr(c)){const X=c(L,W);_({data:X,error:Yn,_c:Yn})}else _({data:L,error:Yn,_c:Yn});if(R[y][1]=I0(),Promise.resolve(P()).then(()=>{_({_c:Yn})}),M){if(b)throw M;return}return L}}const G2=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},sL=(e,t)=>{if(!ua.has(e)){const r=wa(uL,t),i={},l=q2.bind(Yn,e);let s=Ia;const c={},d=(b,E)=>{const S=c[b]||[];return c[b]=S,S.push(E),()=>S.splice(S.indexOf(E),1)},p=(b,E,S)=>{e.set(b,E);const y=c[b];if(y)for(const O of y)O(E,S)},m=()=>{if(!ua.has(e)&&(ua.set(e,[i,{},{},{},l,p,d]),!ao)){const b=r.initFocus(setTimeout.bind(Yn,G2.bind(Yn,i,j2))),E=r.initReconnect(setTimeout.bind(Yn,G2.bind(Yn,i,V2)));s=()=>{b&&b(),E&&E(),ua.delete(e)}}};return m(),[e,l,m,s]}return[e,ua.get(e)[4]]},cL=(e,t,r,i,l)=>{const s=r.errorRetryCount,c=l.retryCount,d=~~((Math.random()+.5)*(1<<(c<8?c:8)))*r.errorRetryInterval;!mt(s)&&c>s||setTimeout(i,d,l)},fL=(e,t)=>ro(e)==ro(t),[X2,dL]=sL(new Map),hL=wa({onLoadingSlow:Ia,onSuccess:Ia,onError:Ia,onErrorRetry:cL,onDiscarded:Ia,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Y2?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Y2?5e3:3e3,compare:fL,isPaused:()=>!1,cache:X2,mutate:dL,fallback:{}},iL),pL=(e,t)=>{const r=wa(e,t);if(t){const{use:i,fallback:l}=e,{use:s,fallback:c}=t;i&&s&&(r.use=i.concat(s)),l&&c&&(r.fallback=wa(l,c))}return r},mL=x.createContext({}),gL="$inf$",Q2=fc&&window.__SWR_DEVTOOLS_USE__,bL=Q2?window.__SWR_DEVTOOLS_USE__:[],EL=()=>{Q2&&(window.__SWR_DEVTOOLS_REACT__=xt)},yL=e=>Gr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],TL=()=>wa(hL,x.useContext(mL)),SL=e=>(t,r,i)=>e(t,r&&((...s)=>{const[c]=L0(t),[,,,d]=ua.get(X2);if(c.startsWith(gL))return r(...s);const p=d[c];return mt(p)?r(...s):(delete d[c],p)}),i),CL=bL.concat(SL),AL=e=>function(...r){const i=TL(),[l,s,c]=yL(r),d=pL(i,c);let p=e;const{use:m}=d,b=(m||[]).concat(CL);for(let E=b.length;E--;)p=b[E](p);return p(l,s||d.fetcher||null,d)},xL=(e,t,r)=>{const i=t[e]||(t[e]=[]);return i.push(r),()=>{const l=i.indexOf(r);l>=0&&(i[l]=i[i.length-1],i.pop())}};EL();const K2=xt.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(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),w0={dedupe:!0},dc=AL((e,t,r)=>{const{cache:i,compare:l,suspense:s,fallbackData:c,revalidateOnMount:d,revalidateIfStale:p,refreshInterval:m,refreshWhenHidden:b,refreshWhenOffline:E,keepPreviousData:S}=r,[y,O,_,I]=ua.get(i),[R,H]=L0(e),k=x.useRef(!1),P=x.useRef(!1),L=x.useRef(R),M=x.useRef(t),j=x.useRef(r),ae=()=>j.current,V=()=>ae().isVisible()&&ae().isOnline(),[A,Y,W,X]=F2(i,R),Q=x.useRef({}).current,te=mt(c)?r.fallback[R]:c,K=(ve,Re)=>{for(const Ce in Q){const Be=Ce;if(Be==="data"){if(!l(ve[Be],Re[Be])&&(!mt(ve[Be])||!l(Oe,Re[Be])))return!1}else if(Re[Be]!==ve[Be])return!1}return!0},se=x.useMemo(()=>{const ve=!R||!t?!1:mt(d)?ae().isPaused()||s?!1:mt(p)?!0:p:d,Re=ct=>{const St=wa(ct);return delete St._k,ve?{isValidating:!0,isLoading:!0,...St}:St},Ce=A(),Be=X(),it=Re(Ce),je=Ce===Be?it:Re(Be);let Ue=it;return[()=>{const ct=Re(A());return K(ct,Ue)?(Ue.data=ct.data,Ue.isLoading=ct.isLoading,Ue.isValidating=ct.isValidating,Ue.error=ct.error,Ue):(Ue=ct,ct)},()=>je]},[i,R]),re=WD.useSyncExternalStore(x.useCallback(ve=>W(R,(Re,Ce)=>{K(Ce,Re)||ve()}),[i,R]),se[0],se[1]),be=!k.current,C=y[R]&&y[R].length>0,J=re.data,oe=mt(J)?te:J,D=re.error,ce=x.useRef(oe),Oe=S?mt(J)?ce.current:J:oe,Se=C&&!mt(D)?!1:be&&!mt(d)?d:ae().isPaused()?!1:s?mt(oe)?!1:p:mt(oe)||p,tt=!!(R&&t&&be&&Se),Me=mt(re.isValidating)?tt:re.isValidating,$e=mt(re.isLoading)?tt:re.isLoading,xe=x.useCallback(async ve=>{const Re=M.current;if(!R||!Re||P.current||ae().isPaused())return!1;let Ce,Be,it=!0;const je=ve||{},Ue=!_[R]||!je.dedupe,ct=()=>z2?!P.current&&R===L.current&&k.current:R===L.current,St={isValidating:!1,isLoading:!1},rn=()=>{Y(St)},_n=()=>{const Xe=_[R];Xe&&Xe[1]===Be&&delete _[R]},we={isValidating:!0};mt(A().data)&&(we.isLoading=!0);try{if(Ue&&(Y(we),r.loadingTimeout&&mt(A().data)&&setTimeout(()=>{it&&ct()&&ae().onLoadingSlow(R,r)},r.loadingTimeout),_[R]=[Re(H),I0()]),[Ce,Be]=_[R],Ce=await Ce,Ue&&setTimeout(_n,r.dedupingInterval),!_[R]||_[R][1]!==Be)return Ue&&ct()&&ae().onDiscarded(R),!1;St.error=Yn;const Xe=O[R];if(!mt(Xe)&&(Be<=Xe[0]||Be<=Xe[1]||Xe[1]===0))return rn(),Ue&&ct()&&ae().onDiscarded(R),!1;const $t=A().data;St.data=l($t,Ce)?$t:Ce,Ue&&ct()&&ae().onSuccess(Ce,R,r)}catch(Xe){_n();const $t=ae(),{shouldRetryOnError:ee}=$t;$t.isPaused()||(St.error=Xe,Ue&&ct()&&($t.onError(Xe,R,$t),(ee===!0||Gr(ee)&&ee(Xe))&&(!ae().revalidateOnFocus||!ae().revalidateOnReconnect||V())&&$t.onErrorRetry(Xe,R,$t,de=>{const Ae=y[R];Ae&&Ae[0]&&Ae[0](io.ERROR_REVALIDATE_EVENT,de)},{retryCount:(je.retryCount||0)+1,dedupe:!0})))}return it=!1,rn(),!0},[R,i]),Ge=x.useCallback((...ve)=>q2(i,L.current,...ve),[]);if(k0(()=>{M.current=t,j.current=r,mt(J)||(ce.current=J)}),k0(()=>{if(!R)return;const ve=xe.bind(Yn,w0);let Re=0;const Be=xL(R,y,(it,je={})=>{if(it==io.FOCUS_EVENT){const Ue=Date.now();ae().revalidateOnFocus&&Ue>Re&&V()&&(Re=Ue+ae().focusThrottleInterval,ve())}else if(it==io.RECONNECT_EVENT)ae().revalidateOnReconnect&&V()&&ve();else{if(it==io.MUTATE_EVENT)return xe();if(it==io.ERROR_REVALIDATE_EVENT)return xe(je)}});return P.current=!1,L.current=R,k.current=!0,Y({_k:H}),Se&&(mt(oe)||ao?ve():lL(ve)),()=>{P.current=!0,Be()}},[R]),k0(()=>{let ve;function Re(){const Be=Gr(m)?m(A().data):m;Be&&ve!==-1&&(ve=setTimeout(Ce,Be))}function Ce(){!A().error&&(b||ae().isVisible())&&(E||ae().isOnline())?xe(w0).then(Re):Re()}return Re(),()=>{ve&&(clearTimeout(ve),ve=-1)}},[m,b,E,R]),x.useDebugValue(Oe),s&&mt(oe)&&R){if(!z2&&ao)throw new Error("Fallback data is required when using suspense in SSR.");M.current=t,j.current=r,P.current=!1;const ve=I[R];if(!mt(ve)){const Re=Ge(ve);K2(Re)}if(mt(D)){const Re=xe(w0);mt(Oe)||(Re.status="fulfilled",Re.value=!0),K2(Re)}else throw D}return{mutate:Ge,get data(){return Q.data=!0,Oe},get error(){return Q.error=!0,D},get isValidating(){return Q.isValidating=!0,Me},get isLoading(){return Q.isLoading=!0,$e}}});var M0,W2;function _L(){if(W2)return M0;W2=1;function e(t,r){if(typeof t!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof t}\`.`);let i,l=0;return function(...c){clearTimeout(i);const d=Date.now(),p=d-l,m=r-p;m<=0?(l=d,t.apply(this,c)):i=setTimeout(()=>{l=Date.now(),t.apply(this,c)},m)}}return M0=e,M0}var vL=_L();const RL=ur(vL);function Z2(e,t){return t!=null?RL(e,t):e}var OL=async(e,t,r,i,l,s,c,d,p,m,b,E,S,y,O,_,I)=>{var R;const H=c.current;r(t.messages,!1);const k=y?t.messages:t.messages.map(({role:L,content:M,experimental_attachments:j,data:ae,annotations:V,toolInvocations:A})=>({role:L,content:M,...j!==void 0&&{experimental_attachments:j},...ae!==void 0&&{data:ae},...V!==void 0&&{annotations:V},...A!==void 0&&{toolInvocations:A}})),P=l.current;return await XD({api:e,body:(R=O==null?void 0:O({messages:t.messages,requestData:t.data,requestBody:t.body}))!=null?R:{messages:k,data:t.data,...s.current.body,...t.body},streamProtocol:m,credentials:s.current.credentials,headers:{...s.current.headers,...t.headers},abortController:()=>d.current,restoreMessagesOnFailure(){I||r(H,!1)},onResponse:E,onUpdate(L,M){r([...t.messages,...L],!1),M!=null&&M.length&&i([...P??[],...M],!1)},onToolCall:S,onFinish:b,generateId:p,fetch:_})};function NL({api:e="/api/chat",id:t,initialMessages:r,initialInput:i="",sendExtraMessageFields:l,onToolCall:s,experimental_prepareRequestBody:c,maxSteps:d=1,streamProtocol:p="data",onResponse:m,onFinish:b,onError:E,credentials:S,headers:y,body:O,generateId:_=M2,fetch:I,keepLastMessageOnError:R=!0,experimental_throttle:H}={}){const k=x.useId(),P=t??k,L=typeof e=="string"?[e,P]:P,[M]=x.useState([]),{data:j,mutate:ae}=dc([L,"messages"],null,{fallbackData:r??M}),V=x.useRef(j||[]);x.useEffect(()=>{V.current=j||[]},[j]);const{data:A,mutate:Y}=dc([L,"streamData"],null),W=x.useRef(A);x.useEffect(()=>{W.current=A},[A]);const{data:X=!1,mutate:Q}=dc([L,"loading"],null),{data:te=void 0,mutate:K}=dc([L,"error"],null),se=x.useRef(null),re=x.useRef({credentials:S,headers:y,body:O});x.useEffect(()=>{re.current={credentials:S,headers:y,body:O}},[S,y,O]);const be=x.useCallback(async xe=>{const Ge=V.current.length;try{Q(!0),K(void 0);const Ce=new AbortController;se.current=Ce,await OL(e,xe,Z2(ae,H),Z2(Y,H),W,re,V,se,_,p,b,m,s,l,c,I,R),se.current=null}catch(Ce){if(Ce.name==="AbortError")return se.current=null,null;E&&Ce instanceof Error&&E(Ce),K(Ce)}finally{Q(!1)}const ve=V.current,Re=ve[ve.length-1];ve.length>Ge&&Re!=null&&d>1&&J2(Re)&&kL(ve)<d&&await be({messages:ve})},[ae,Q,e,re,m,b,E,K,Y,W,p,l,c,s,d,V,se,_,I,R,H]),C=x.useCallback(async(xe,{data:Ge,headers:ve,body:Re,experimental_attachments:Ce}={})=>{var Be,it;const je=await P2(Ce),Ue=V.current.concat({...xe,id:(Be=xe.id)!=null?Be:_(),createdAt:(it=xe.createdAt)!=null?it:new Date,experimental_attachments:je.length>0?je:void 0});return be({messages:Ue,headers:ve,body:Re,data:Ge})},[be,_]),J=x.useCallback(async({data:xe,headers:Ge,body:ve}={})=>{const Re=V.current;if(Re.length===0)return null;const Ce=Re[Re.length-1];return be({messages:Ce.role==="assistant"?Re.slice(0,-1):Re,headers:Ge,body:ve,data:xe})},[be]),oe=x.useCallback(()=>{se.current&&(se.current.abort(),se.current=null)},[]),D=x.useCallback(xe=>{typeof xe=="function"&&(xe=xe(V.current)),ae(xe,!1),V.current=xe},[ae]),ce=x.useCallback(xe=>{typeof xe=="function"&&(xe=xe(W.current)),Y(xe,!1),W.current=xe},[Y]),[Oe,Se]=x.useState(i),tt=x.useCallback(async(xe,Ge={},ve)=>{var Re;if((Re=xe==null?void 0:xe.preventDefault)==null||Re.call(xe),!Oe&&!Ge.allowEmptySubmit)return;ve&&(re.current={...re.current,...ve});const Ce=await P2(Ge.experimental_attachments),it={messages:!Oe&&!Ce.length&&Ge.allowEmptySubmit?V.current:V.current.concat({id:_(),createdAt:new Date,role:"user",content:Oe,experimental_attachments:Ce.length>0?Ce:void 0}),headers:Ge.headers,body:Ge.body,data:Ge.data};be(it),Se("")},[Oe,_,be]);return{messages:j||[],setMessages:D,data:A,setData:ce,error:te,append:C,reload:J,stop:oe,input:Oe,setInput:Se,handleInputChange:xe=>{Se(xe.target.value)},handleSubmit:tt,isLoading:X,addToolResult:({toolCallId:xe,result:Ge})=>{const ve=V.current.map((Ce,Be,it)=>Be===it.length-1&&Ce.role==="assistant"&&Ce.toolInvocations?{...Ce,toolInvocations:Ce.toolInvocations.map(je=>je.toolCallId===xe?{...je,result:Ge,state:"result"}:je)}:Ce);ae(ve,!1);const Re=ve[ve.length-1];J2(Re)&&be({messages:ve})}}}function J2(e){return e.role==="assistant"&&e.toolInvocations&&e.toolInvocations.length>0&&e.toolInvocations.every(t=>"result"in t)}function kL(e){let t=0;for(let r=e.length-1;r>=0&&e[r].role==="assistant";r--)t++;return t}var DL=NL;const LL=e=>e,IL=e=>async(t,r)=>{var c;if(typeof(r==null?void 0:r.body)!="string")return console.error("Unexpected body type."),window.fetch(t,r);const i=JSON.parse(r==null?void 0:r.body).messages,l=e.transformBody??LL,s={...r,body:JSON.stringify(l(i)),...e.fetchOpts,headers:{...r==null?void 0:r.headers,"Content-Type":"application/json",...(c=e.fetchOpts)==null?void 0:c.headers}};return fetch(t,s)},wL=(e,t)=>{const r=x.useMemo(()=>IL(e),[e]);return DL({api:e.apiUrl,streamProtocol:"text",fetch:r,onFinish:i=>{var l;e.onFinish&&(i.role==="assistant"||i.role==="user"?(l=e.onFinish)==null||l.call(e,i):console.info("Unexpected message role.",i))},...t})},ML=e=>e.scrollHeight-e.clientHeight-e.scrollTop,BL=e=>{e.scrollTop=e.scrollHeight},PL=({scrollElement:e,contentElement:t,threshold:r=2})=>{x.useEffect(()=>{const i=()=>{e&&ML(e)<r&&BL(e)};i();const l=new ResizeObserver(i);return t&&l.observe(t),()=>{l.disconnect()}},[e,t,r])},bn={root:"MitAiChat--root",title:"MitAiChat--title",entryScreenContainer:"MitAiChat--entryScreenContainer",conversationStarter:"MitAiChat--conversationStarter",chatScreenContainer:"MitAiChat--chatScreenContainer",messagesContainer:"MitAiChat--messagesContainer",messageRow:"MitAiChat--messageRow",messageRowUser:"MitAiChat--messageRowUser",messageRowAssistant:"MitAiChat--messageRowAssistant",message:"MitAiChat--message",input:"MitAiChat--input",bottomSection:"MitAiChat--bottomSection"},UL=Fe.div(),HL=Fe.div(({externalScroll:e,theme:t})=>({padding:"16px 32px 0",[t.breakpoints.down("md")]:{padding:"16px 16px 0"},boxSizing:"border-box",background:"white",position:"absolute",bottom:0,top:0,left:0,right:0,zIndex:1,...e&&{padding:"0 32px",[t.breakpoints.down("md")]:{padding:"0 16px"}}})),FL=Fe.div(({externalScroll:e})=>({width:"100%",height:e?"auto":"100%",minHeight:e?"100%":"auto",display:"flex",flexDirection:"column"})),zL=Fe(qk)(({externalScroll:e})=>({display:"flex",flexDirection:"column",flex:1,padding:"14px 0",overflow:e?"visible":"auto",gap:"16px"})),ey=Fe.div({display:"flex",width:"100%",gap:"10px",[`&.${bn.messageRowUser}`]:{flexDirection:"row-reverse"},"> *":{minWidth:0},position:"relative"}),ty=Fe.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",[`.${bn.messageRowAssistant} &`]:{padding:"12px 16px 12px 0"},[`.${bn.messageRowUser} &`]:{borderRadius:"8px 0px 8px 8px",backgroundColor:e.custom.colors.lightGray1}})),YL=Fe.div({alignSelf:"flex-end",alignItems:"end",display:"flex",flexDirection:"column",gap:"12px"}),jL=Fe.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"})),VL=Fe(Ob)(({theme:e})=>({fill:e.custom.colors.red})),$L=Fe(v8)(({theme:e})=>({fill:e.custom.colors.red})),qL=Fe.div(({externalScroll:e,theme:t})=>({padding:"12px 0 16px",...e&&{position:"sticky",bottom:0,background:t.custom.colors.white}})),GL=Fe(bi)(({theme:e})=>({color:e.custom.colors.silverGrayDark,marginTop:"16px",textAlign:"center"})),XL=({entryScreenTitle:e,entryScreenEnabled:t=!0,conversationStarters:r,initialMessages:i,askTimTitle:l,requestOpts:s,parseContent:c,srLoadingMessages:d,placeholder:p="",className:m,scrollElement:b,chatId:E,ref:S,...y})=>{var C,J;const O=x.useRef(null),_=x.useRef(null),[I,R]=x.useState(t),H=x.useRef(null),[k,P]=x.useState(),{messages:L,input:M,handleInputChange:j,handleSubmit:ae,append:V,isLoading:A,stop:Y,error:W}=wL(s,{initialMessages:k,id:E});PL({scrollElement:b||_.current,contentElement:b?_.current:null,threshold:200}),x.useEffect(()=>{if(i){const oe=Math.random().toString().slice(2);P(i.map((D,ce)=>({...D,id:`initial-${oe}-${ce}`})))}},[i]);const X=x.useMemo(()=>{const oe=k==null?void 0:k.map(D=>D.id);return L.map(D=>{if(D.role==="assistant"&&!(oe!=null&&oe.includes(D.id))){const ce=c?c(D.content):D.content;return{...D,content:ce}}return D})},[c,L,k]),Q=X.length===((k==null?void 0:k.length)||0),te=!Q&&!W&&((C=X[X.length-1])==null?void 0:C.role)==="user",K=A&&((J=X[X.length-1])==null?void 0:J.role)!=="user",se=()=>{const oe=b||_.current;oe==null||oe.scrollBy({behavior:"instant",top:oe==null?void 0:oe.scrollHeight})},re=X[X.length-1],be=!!b;return x.createElement(UL,{className:m,ref:O,key:E},I?x.createElement(Yk,{className:bn.entryScreenContainer,title:e,conversationStarters:r,onPromptSubmit:oe=>{oe.trim()!==""&&(R(!1),V({role:"user",content:oe}))}}):x.createElement(HL,{className:bn.chatScreenContainer,"data-testid":"ai-chat-screen",externalScroll:be,ref:H},x.createElement(FL,{className:zl(m,bn.root),externalScroll:be,...y},x.createElement(gD,{askTimTitle:l,externalScroll:be,className:zl(m,bn.title)}),x.createElement(zL,{className:bn.messagesContainer,externalScroll:be,ref:_},X.map(oe=>x.createElement(ey,{key:oe.id,"data-chat-role":oe.role,className:zl(bn.messageRow,{[bn.messageRowUser]:oe.role==="user",[bn.messageRowAssistant]:oe.role==="assistant"})},x.createElement(ty,{className:bn.message},x.createElement(m2,null,oe.role==="user"?"You said: ":"Assistant said: "),x.createElement(tg,{skipHtml:!0},oe.content)))),Q?x.createElement(YL,null,r==null?void 0:r.map(oe=>x.createElement(jL,{className:bn.conversationStarter,key:oe.content,onClick:()=>{se(),V({role:"user",content:oe.content})}},oe.content))):null,te?x.createElement(ey,{className:zl(bn.messageRow,bn.messageRowAssistant),key:"loading"},x.createElement(ty,null,x.createElement(_8,null))):null,W?x.createElement(hD,{severity:"error",closable:!0},"An unexpected error has occurred."):null),x.createElement(qL,{externalScroll:be,className:bn.bottomSection},x.createElement("form",{onSubmit:oe=>{oe.preventDefault(),A&&K?Y():(se(),ae(oe))}},x.createElement(h2,{fullWidth:!0,size:"chat",className:bn.input,placeholder:p,name:"message",sx:{flex:1},value:M,onChange:j,endAdornment:A?x.createElement(y0,{"aria-label":"Stop",onClick:Y,disabled:!K},x.createElement($L,null)):x.createElement(y0,{"aria-label":"Send",type:"submit",onClick:oe=>{if(M.trim()===""){oe.preventDefault();return}se(),ae(oe)}},x.createElement(VL,null))})),x.createElement(GL,{variant:"body3"},"AI-generated content may be incorrect.")),x.createElement(Xk,{isLoading:A,loadingMessages:d,message:(re==null?void 0:re.role)==="assistant"?re==null?void 0:re.content:""}))))},ny=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:dt({small:20,medium:24,large:32}[e])}}),uo=Fe(x.forwardRef(function(t,r){return x.createElement(XE,{ref:r,type:"button",...t})}))(({size:e=m0.size,responsive:t,theme:r})=>[ny(e),t&&{[r.breakpoints.down("sm")]:ny($E[e])}]);uo.displayName="ActionButton";const QL=uo.withComponent(({Component:e,...t})=>x.createElement(QE,{Component:e,...t}));QL.displayName="ActionButtonLink";const KL=Fe.div``,WL=Fe.div(({theme:e})=>({display:"flex",height:300,padding:40,flexDirection:"column",justifyContent:"center",alignItems:"center",alignSelf:"stretch",borderRadius:8,border:`1px solid ${e.custom.colors.lightGray2}`,marginTop:"8px",cursor:"pointer",textAlign:"center"})),ZL=Fe.div({display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",marginTop:"24px"}),JL=Fe.div(({theme:e})=>({color:e.custom.colors.silverGrayDark,...e.typography.body2})),ry=x.forwardRef(({content:e,"aria-label":t},r)=>{const[i,l]=x.useState(0);x.useEffect(()=>l(0),[e]);const s=c=>{(c.key==="Enter"||c.key===" ")&&l(i===0?1:0)};return x.createElement(WL,{ref:r,onClick:()=>l(i===0?1:0),onKeyDown:s,tabIndex:0,"aria-label":t},x.createElement(bi,{variant:"h5"},i===0?`Q: ${e.question}`:`Answer: ${e.answer}`))});ry.displayName="Flashcard";const eI=({flashcards:e,wasKeyboardFocus:t})=>{const[r,i]=x.useState(0),l=x.useRef(null),s=x.useRef(null),c=x.useCallback(d=>{var p;e&&(!((p=l.current)!=null&&p.contains(document.activeElement))&&t||(d.key==="ArrowRight"?i(m=>(m+1)%e.length):d.key==="ArrowLeft"&&i(m=>(m-1+e.length)%e.length)))},[e,t]);return x.useEffect(()=>{var d;(d=s.current)==null||d.focus()},[r]),x.useEffect(()=>(window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)),[c]),e!=null&&e.length?x.createElement(KL,{ref:l},x.createElement(ry,{ref:s,content:e[r],"aria-label":`Flashcard ${r+1} of ${e.length}`}),x.createElement(ZL,null,x.createElement(uo,{onClick:()=>i(r-1),disabled:r===0,variant:"secondary",color:"secondary",size:"small"},x.createElement(A8,{"aria-hidden":!0})),x.createElement(JL,null,r+1," / ",e.length),x.createElement(uo,{onClick:()=>i(r+1),disabled:r===e.length-1,variant:"secondary",color:"secondary",size:"small"},x.createElement(x8,{"aria-hidden":!0})))):null},tI=Fe.div(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",gap:"4px",color:e.custom.colors.white,position:"sticky",top:0,padding:"32px 0 16px 0",zIndex:2,backgroundColor:e.custom.colors.white,borderRadius:0})),nI=Fe.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",flexShrink:0},overflow:"hidden",p:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}})),rI=Fe(uo)(({theme:e})=>({backgroundColor:e.custom.colors.lightGray2,"&&:hover":{backgroundColor:e.custom.colors.red,color:e.custom.colors.white},zIndex:3,flexShrink:0})),aI=Fe(G9)(({theme:e})=>({padding:"0 0 16px",backgroundColor:e.custom.colors.white,position:"sticky",top:"88px",zIndex:2,overflow:"visible"})),B0=Fe(fk)({padding:"0",height:"calc(100% - 138px)",position:"relative"}),iI=Fe(XL)(({hasTabs:e,theme:t})=>({".MitAiChat--entryScreenContainer":{padding:e?"114px 0 24px":"168px 32px 24px",[t.breakpoints.down("md")]:{padding:e?"114px 0 24px":"168px 16px 24px"}},".MitAiChat--chatScreenContainer":{padding:e?0:"0 32px",[t.breakpoints.down("md")]:{padding:e?0:"0 16px"}},".MitAiChat--messagesContainer":{paddingTop:e?"8px":"88px"}})),uI=Fe.div(({theme:e})=>({color:e.custom.colors.darkGray2,backgroundColor:e.custom.colors.white,padding:"12px 0 100px",...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"}})),lI=e=>e,oI={credentials:"include"},sI=e=>{const[t,r]=x.useState(null),[i,l]=x.useState(!1);return x.useEffect(()=>{if(!e)return;(async()=>{l(!0);try{const d=await(await fetch(e)).json();if(!d.results)throw new Error("Unexpected response");const[p]=d.results;if(!p)throw new Error("No result found");r({summary:p.summary,flashcards:p.flashcards})}catch(c){console.error("Error fetching content",c)}finally{l(!1)}})()},[e]),{response:t,loading:i}},cI="What do you want to know about this video?",fI=[{content:"What are the most important concepts introduced in the video?"},{content:"What examples are used to illustrate concepts covered in the video?"},{content:"What are the key terms introduced in this video?"}],ay=({payload:e,transformBody:t,fetchOpts:r,scrollElement:i,entryScreenEnabled:l,entryScreenTitle:s,conversationStarters:c,hasTabs:d})=>e?x.createElement(iI,{chatId:e.chatId,conversationStarters:c,initialMessages:e.initialMessages,scrollElement:i,entryScreenEnabled:l,entryScreenTitle:s,requestOpts:{transformBody:p=>({...e.requestBody,...t==null?void 0:t(p)}),apiUrl:e.apiUrl,fetchOpts:{...oI,...r}},hasTabs:d}):null,dI=(e,t)=>[...e].sort(()=>.5-Math.random()).slice(0,t),hI=({messageOrigin:e,transformBody:t=lI,className:r,fetchOpts:i,target:l})=>{var ae,V,A,Y,W,X;const[s,c]=x.useState(!1),[d,p]=x.useState(null),[m,b]=x.useState("chat"),{response:E}=sI((ae=d==null?void 0:d.summary)==null?void 0:ae.apiUrl),[S,y]=x.useState(!1),O=x.useRef(!1),_=()=>{O.current=!0},I=()=>{O.current||y(!0),O.current=!1},[R,H]=x.useState(null),k=Q=>{Q&&H(Q)};x.useEffect(()=>{const Q=te=>{te.origin===e&&te.data.type==="smoot-design::tutor-drawer-open"&&te.data.payload.target===l&&(c(!0),p(te.data.payload))};return window.addEventListener("message",Q),()=>{window.removeEventListener("message",Q)}},[e,l]),x.useEffect(()=>{R==null||R.scrollTo({top:m==="chat"?R.scrollHeight:0})},[m,R]);const P=x.useMemo(()=>d?d.chat.conversationStarters||(E!=null&&E.flashcards?dI(E.flashcards,3).map(Q=>({content:Q.question})):fI):[],[d,E]);if(!d)return null;const{blockType:L,chat:M}=d,j=L==="video";return x.createElement(WN,{className:r,PaperProps:{ref:k,sx:{width:"900px",maxWidth:"100%",boxSizing:"border-box",padding:{xs:"0 16px",md:"0 32px"}}},anchor:"right",open:s,onClose:()=>c(!1)},x.createElement(tI,null,x.createElement(nI,null,d.title?x.createElement(Ud,null):null,x.createElement(bi,{variant:"body1"},(V=d.title)!=null&&V.includes("AskTIM")?x.createElement(x.Fragment,null,"Ask",x.createElement("strong",null,"TIM"),d.title.replace("AskTIM","")):d.title)),x.createElement(rI,{variant:"text",size:"medium",onClick:()=>c(!1),"aria-label":"Close"},x.createElement(Rb,null))),L==="problem"?x.createElement(ay,{payload:M,transformBody:t,fetchOpts:i,scrollElement:R,entryScreenEnabled:((A=d.chat)==null?void 0:A.entryScreenEnabled)??!1,entryScreenTitle:d.chat.entryScreenTitle,hasTabs:j}):null,L==="video"?x.createElement(B9,{value:m},x.createElement(aI,{styleVariant:"chat",onChange:(Q,te)=>b(te)},x.createElement(g0,{value:"chat",label:"Chat"}),(Y=E==null?void 0:E.flashcards)!=null&&Y.length?x.createElement(g0,{value:"flashcards",label:"Flashcards",onMouseDown:_,onFocus:I}):null,x.createElement(g0,{value:"summary",label:"Summary"})),x.createElement(B0,{value:"chat",keepMounted:!0},x.createElement(ay,{payload:{...M},transformBody:t,fetchOpts:i,scrollElement:R,entryScreenEnabled:((W=d.chat)==null?void 0:W.entryScreenEnabled)??!0,entryScreenTitle:d.chat.entryScreenTitle??cI,conversationStarters:P,hasTabs:j})),(X=E==null?void 0:E.flashcards)!=null&&X.length?x.createElement(B0,{value:"flashcards"},x.createElement(eI,{flashcards:E==null?void 0:E.flashcards,wasKeyboardFocus:S})):null,x.createElement(B0,{value:"summary"},x.createElement(bi,{variant:"h4",component:"h4"}),x.createElement(uI,null,x.createElement(tg,{rehypePlugins:[C8]},(E==null?void 0:E.summary)??"")))):null)},pI={defaultProps:{disableRipple:!0},styleOverrides:{root:{":focus-visible":{outline:"revert"}}}},ot={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"},mI={defaultProps:{size:"medium",color:"default",variant:"outlined",deleteIcon:x.createElement(Rb,{"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:ot.silverGrayLight,color:ot.darkGray1,"&.Mui-focusVisible":{backgroundColor:"transparent"},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:ot.darkGray1,borderColor:ot.silverGrayDark,backgroundColor:"transparent"}}},{props:{variant:"outlinedWhite"},style:{backgroundColor:"white",border:"1px solid",borderColor:ot.silverGrayLight,color:ot.darkGray1,"&.Mui-focusVisible":{backgroundColor:"white"},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:ot.darkGray1,borderColor:ot.silverGrayDark,backgroundColor:"white"}}},{props:{variant:"gray"},style:{backgroundColor:ot.lightGray2,border:"none",color:ot.darkGray2,"&.Mui-focusVisible":{backgroundColor:ot.lightGray2},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:ot.darkGray1,backgroundColor:ot.silverGrayLight}}},{props:{variant:"dark"},style:{backgroundColor:ot.silverGrayDark,border:"none",color:ot.white,"&.Mui-focusVisible":{backgroundColor:ot.silverGrayDark},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:ot.darkGray1}}},{props:{variant:"darker"},style:{backgroundColor:ot.darkGray2,border:`1px solid ${ot.darkGray1}`,color:ot.white,"&.Mui-focusVisible":{backgroundColor:ot.darkGray2},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:ot.black,border:`1px solid ${ot.silverGray}`}}},{props:{variant:"filled"},style:{backgroundColor:ot.mitRed,border:"none",color:ot.white,"&.Mui-focusVisible":{backgroundColor:ot.mitRed},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:ot.red}}}]},gI={colors:ot,dimensions:{headerHeight:"72px",headerHeightSm:"60px"}},bI={values:{xs:0,sm:600,md:900,lg:1320,xl:1536}},EI={custom:gI,palette:{primary:{main:ot.mitRed,light:ot.lightRed,active:ot.red,contrastText:ot.white},secondary:{light:ot.darkGray2,active:ot.silverGrayDark,main:ot.black,contrastText:ot.white}},shape:{borderRadius:8},spacing:8,typography:YE,breakpoints:bI,components:{MuiButtonBase:pI,MuiTypography:Y9,MuiMenu:{styleOverrides:{paper:{borderRadius:"4px"}}},MuiAutocomplete:{styleOverrides:{paper:{borderRadius:"4px"},popupIndicator:{paddingRight:0,marginRight:0}}},MuiChip:mI}},iy=e=>Zs(Pn(EI,e)),yI=iy(),TI=({children:e,theme:t=yI})=>x.createElement(z9,{theme:t},e);var SI=function(t,r,i){for(var l=0,s=0;l=s,s=Gn(),l===38&&s===12&&(r[i]=1),!ai(s);)Nn();return Yi(t,Cn)},CI=function(t,r){var i=-1,l=44;do switch(ai(l)){case 0:l===38&&Gn()===12&&(r[i]=1),t[i]+=SI(Cn-1,r,i);break;case 2:t[i]+=tl(l);break;case 4:if(l===44){t[++i]=Gn()===58?"&\f":"",r[i]=t[i].length;break}default:t[i]+=Zu(l)}while(l=Nn());return t},AI=function(t,r){return Nf(CI(Of(t),r))},uy=new WeakMap,xI=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,i=t.parent,l=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!uy.get(i))&&!l){uy.set(t,!0);for(var s=[],c=AI(r,s),d=i.props,p=0,m=0;p<c.length;p++)for(var b=0;b<d.length;b++,m++)t.props[m]=s[p]?c[p].replace(/&\f/g,d[b]):d[b]+" "+c[p]}}},_I=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function ly(e,t){switch(nm(e,t)){case 5103:return De+"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 De+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return De+e+xa+e+pt+e+e;case 6828:case 4268:return De+e+pt+e+e;case 6165:return De+e+pt+"flex-"+e+e;case 5187:return De+e+Ie(e,/(\w+).+(:[^]+)/,De+"box-$1$2"+pt+"flex-$1$2")+e;case 5443:return De+e+pt+"flex-item-"+Ie(e,/flex-|-self/,"")+e;case 4675:return De+e+pt+"flex-line-pack"+Ie(e,/align-content|flex-|-self/,"")+e;case 5548:return De+e+pt+Ie(e,"shrink","negative")+e;case 5292:return De+e+pt+Ie(e,"basis","preferred-size")+e;case 6060:return De+"box-"+Ie(e,"-grow","")+De+e+pt+Ie(e,"grow","positive")+e;case 4554:return De+Ie(e,/([^-])(transform)/g,"$1"+De+"$2")+e;case 6187:return Ie(Ie(Ie(e,/(zoom-|grab)/,De+"$1"),/(image-set)/,De+"$1"),e,"")+e;case 5495:case 3959:return Ie(e,/(image-set\([^]*)/,De+"$1$`$1");case 4968:return Ie(Ie(e,/(.+:)(flex-)?(.*)/,De+"box-pack:$3"+pt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+De+e+e;case 4095:case 3583:case 4068:case 2532:return Ie(e,/(.+)-inline(.+)/,De+"$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(lr(e)-1-t>6)switch(Bt(e,t+1)){case 109:if(Bt(e,t+4)!==45)break;case 102:return Ie(e,/(.+:)(.+)-([^]+)/,"$1"+De+"$2-$3$1"+xa+(Bt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ju(e,"stretch")?ly(Ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Bt(e,t+1)!==115)break;case 6444:switch(Bt(e,lr(e)-3-(~Ju(e,"!important")&&10))){case 107:return Ie(e,":",":"+De)+e;case 101:return Ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+De+(Bt(e,14)===45?"inline-":"")+"box$3$1"+De+"$2$3$1"+pt+"$2box$3")+e}break;case 5936:switch(Bt(e,t+11)){case 114:return De+e+pt+Ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return De+e+pt+Ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return De+e+pt+Ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return De+e+pt+e+e}return e}var vI=function(t,r,i,l){if(t.length>-1&&!t.return)switch(t.type){case ls:t.return=ly(t.value,t.length);break;case vf:return Br([Mr(t,{value:Ie(t.value,"@","@"+De)})],l);case us:if(t.length)return im(t.props,function(s){switch(am(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Br([Mr(t,{props:[Ie(s,/:(read-\w+)/,":"+xa+"$1")]})],l);case"::placeholder":return Br([Mr(t,{props:[Ie(s,/:(plac\w+)/,":"+De+"input-$1")]}),Mr(t,{props:[Ie(s,/:(plac\w+)/,":"+xa+"$1")]}),Mr(t,{props:[Ie(s,/:(plac\w+)/,pt+"input-$1")]})],l)}return""})}},RI=[vI],OI=function(t){var r=t.key;if(r==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(_){var I=_.getAttribute("data-emotion");I.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var l=t.stylisPlugins||RI,s={},c,d=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(_){for(var I=_.getAttribute("data-emotion").split(" "),R=1;R<I.length;R++)s[I[R]]=!0;d.push(_)});var p,m=[xI,_I];{var b,E=[cm,dm(function(_){b.insert(_)})],S=fm(m.concat(l,E)),y=function(I){return Br(lm(I),S)};p=function(I,R,H,k){b=H,y(I?I+"{"+R.styles+"}":R.styles),k&&(O.inserted[R.name]=!0)}}var O={key:r,sheet:new em({key:r,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:p};return O.sheet.hydrate(d),O};const NI=e=>{const t=document.createElement("div");document.body.appendChild(t);const r=t.attachShadow({mode:"open"}),i=document.createElement("div");i.id="smoot-chat-drawer-root",r.append(i);const l=OI({key:"css",prepend:!0,container:r}),s=iy({components:{MuiPopover:{defaultProps:{container:i}},MuiPopper:{defaultProps:{container:i}},MuiModal:{defaultProps:{container:i}}}});X3.createRoot(i).render(x.createElement(kC,{value:l},x.createElement(TI,{theme:s},x.createElement(hI,{...e}))))};ir.init=NI,Object.defineProperty(ir,Symbol.toStringTag,{value:"Module"})});
207
+ */var U2;function QD(){if(U2)return C0;U2=1;var e=as();function t(E,S){return E===S&&(E!==0||1/E===1/S)||E!==E&&S!==S}var r=typeof Object.is=="function"?Object.is:t,i=e.useState,l=e.useEffect,s=e.useLayoutEffect,c=e.useDebugValue;function d(E,S){var y=S(),O=i({inst:{value:y,getSnapshot:S}}),_=O[0].inst,I=O[1];return s(function(){_.value=y,_.getSnapshot=S,p(_)&&I({inst:_})},[E,y,S]),l(function(){return p(_)&&I({inst:_}),E(function(){p(_)&&I({inst:_})})},[E]),c(y),y}function p(E){var S=E.getSnapshot;E=E.value;try{var y=S();return!r(E,y)}catch{return!0}}function m(E,S){return S()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:d;return C0.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:b,C0}var H2;function KD(){return H2||(H2=1,S0.exports=QD()),S0.exports}var WD=KD();const Ia=()=>{},Yn=Ia(),A0=Object,mt=e=>e===Yn,Gr=e=>typeof e=="function",wa=(e,t)=>({...e,...t}),ZD=e=>Gr(e.then),sc=new WeakMap;let JD=0;const ro=e=>{const t=typeof e,r=e&&e.constructor,i=r==Date;let l,s;if(A0(e)===e&&!i&&r!=RegExp){if(l=sc.get(e),l)return l;if(l=++JD+"~",sc.set(e,l),r==Array){for(l="@",s=0;s<e.length;s++)l+=ro(e[s])+",";sc.set(e,l)}if(r==A0){l="#";const c=A0.keys(e).sort();for(;!mt(s=c.pop());)mt(e[s])||(l+=s+":"+ro(e[s])+",");sc.set(e,l)}}else l=i?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return l},ua=new WeakMap,x0={},cc={},_0="undefined",fc=typeof window!=_0,v0=typeof document!=_0,eL=()=>fc&&typeof window.requestAnimationFrame!=_0,F2=(e,t)=>{const r=ua.get(e);return[()=>!mt(t)&&e.get(t)||x0,i=>{if(!mt(t)){const l=e.get(t);t in cc||(cc[t]=l),r[5](t,wa(l,i),l||x0)}},r[6],()=>!mt(t)&&t in cc?cc[t]:!mt(t)&&e.get(t)||x0]};let R0=!0;const tL=()=>R0,[O0,N0]=fc&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Ia,Ia],nL=()=>{const e=v0&&document.visibilityState;return mt(e)||e!=="hidden"},rL=e=>(v0&&document.addEventListener("visibilitychange",e),O0("focus",e),()=>{v0&&document.removeEventListener("visibilitychange",e),N0("focus",e)}),aL=e=>{const t=()=>{R0=!0,e()},r=()=>{R0=!1};return O0("online",t),O0("offline",r),()=>{N0("online",t),N0("offline",r)}},iL={isOnline:tL,isVisible:nL},uL={initFocus:rL,initReconnect:aL},z2=!xt.useId,ao=!fc||"Deno"in window,lL=e=>eL()?window.requestAnimationFrame(e):setTimeout(e,1),k0=ao?x.useEffect:x.useLayoutEffect,D0=typeof navigator<"u"&&navigator.connection,Y2=!ao&&D0&&(["slow-2g","2g"].includes(D0.effectiveType)||D0.saveData),L0=e=>{if(Gr(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?ro(e):"",[e,t]};let oL=0;const I0=()=>++oL,j2=0,V2=1,$2=2;var io={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:j2,MUTATE_EVENT:$2,RECONNECT_EVENT:V2};async function q2(...e){const[t,r,i,l]=e,s=wa({populateCache:!0,throwOnError:!0},typeof l=="boolean"?{revalidate:l}:l||{});let c=s.populateCache;const d=s.rollbackOnError;let p=s.optimisticData;const m=S=>typeof d=="function"?d(S):d!==!1,b=s.throwOnError;if(Gr(r)){const S=r,y=[],O=t.keys();for(const _ of O)!/^\$(inf|sub)\$/.test(_)&&S(t.get(_)._k)&&y.push(_);return Promise.all(y.map(E))}return E(r);async function E(S){const[y]=L0(S);if(!y)return;const[O,_]=F2(t,y),[I,v,H,k]=ua.get(t),P=()=>{const Q=I[y];return(Gr(s.revalidate)?s.revalidate(O().data,S):s.revalidate!==!1)&&(delete H[y],delete k[y],Q&&Q[0])?Q[0]($2).then(()=>O().data):O().data};if(e.length<3)return P();let L=i,M;const j=I0();v[y]=[j,0];const ae=!mt(p),V=O(),A=V.data,Y=V._c,W=mt(Y)?A:Y;if(ae&&(p=Gr(p)?p(W,A):p,_({data:p,_c:W})),Gr(L))try{L=L(W)}catch(Q){M=Q}if(L&&ZD(L))if(L=await L.catch(Q=>{M=Q}),j!==v[y][0]){if(M)throw M;return L}else M&&ae&&m(M)&&(c=!0,_({data:W,_c:Yn}));if(c&&!M)if(Gr(c)){const Q=c(L,W);_({data:Q,error:Yn,_c:Yn})}else _({data:L,error:Yn,_c:Yn});if(v[y][1]=I0(),Promise.resolve(P()).then(()=>{_({_c:Yn})}),M){if(b)throw M;return}return L}}const G2=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},sL=(e,t)=>{if(!ua.has(e)){const r=wa(uL,t),i={},l=q2.bind(Yn,e);let s=Ia;const c={},d=(b,E)=>{const S=c[b]||[];return c[b]=S,S.push(E),()=>S.splice(S.indexOf(E),1)},p=(b,E,S)=>{e.set(b,E);const y=c[b];if(y)for(const O of y)O(E,S)},m=()=>{if(!ua.has(e)&&(ua.set(e,[i,{},{},{},l,p,d]),!ao)){const b=r.initFocus(setTimeout.bind(Yn,G2.bind(Yn,i,j2))),E=r.initReconnect(setTimeout.bind(Yn,G2.bind(Yn,i,V2)));s=()=>{b&&b(),E&&E(),ua.delete(e)}}};return m(),[e,l,m,s]}return[e,ua.get(e)[4]]},cL=(e,t,r,i,l)=>{const s=r.errorRetryCount,c=l.retryCount,d=~~((Math.random()+.5)*(1<<(c<8?c:8)))*r.errorRetryInterval;!mt(s)&&c>s||setTimeout(i,d,l)},fL=(e,t)=>ro(e)==ro(t),[X2,dL]=sL(new Map),hL=wa({onLoadingSlow:Ia,onSuccess:Ia,onError:Ia,onErrorRetry:cL,onDiscarded:Ia,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Y2?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Y2?5e3:3e3,compare:fL,isPaused:()=>!1,cache:X2,mutate:dL,fallback:{}},iL),pL=(e,t)=>{const r=wa(e,t);if(t){const{use:i,fallback:l}=e,{use:s,fallback:c}=t;i&&s&&(r.use=i.concat(s)),l&&c&&(r.fallback=wa(l,c))}return r},mL=x.createContext({}),gL="$inf$",Q2=fc&&window.__SWR_DEVTOOLS_USE__,bL=Q2?window.__SWR_DEVTOOLS_USE__:[],EL=()=>{Q2&&(window.__SWR_DEVTOOLS_REACT__=xt)},yL=e=>Gr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],TL=()=>wa(hL,x.useContext(mL)),SL=e=>(t,r,i)=>e(t,r&&((...s)=>{const[c]=L0(t),[,,,d]=ua.get(X2);if(c.startsWith(gL))return r(...s);const p=d[c];return mt(p)?r(...s):(delete d[c],p)}),i),CL=bL.concat(SL),AL=e=>function(...r){const i=TL(),[l,s,c]=yL(r),d=pL(i,c);let p=e;const{use:m}=d,b=(m||[]).concat(CL);for(let E=b.length;E--;)p=b[E](p);return p(l,s||d.fetcher||null,d)},xL=(e,t,r)=>{const i=t[e]||(t[e]=[]);return i.push(r),()=>{const l=i.indexOf(r);l>=0&&(i[l]=i[i.length-1],i.pop())}};EL();const K2=xt.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(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),w0={dedupe:!0},dc=AL((e,t,r)=>{const{cache:i,compare:l,suspense:s,fallbackData:c,revalidateOnMount:d,revalidateIfStale:p,refreshInterval:m,refreshWhenHidden:b,refreshWhenOffline:E,keepPreviousData:S}=r,[y,O,_,I]=ua.get(i),[v,H]=L0(e),k=x.useRef(!1),P=x.useRef(!1),L=x.useRef(v),M=x.useRef(t),j=x.useRef(r),ae=()=>j.current,V=()=>ae().isVisible()&&ae().isOnline(),[A,Y,W,Q]=F2(i,v),G=x.useRef({}).current,ee=mt(c)?r.fallback[v]:c,K=(ve,Re)=>{for(const Ce in G){const Be=Ce;if(Be==="data"){if(!l(ve[Be],Re[Be])&&(!mt(ve[Be])||!l(Oe,Re[Be])))return!1}else if(Re[Be]!==ve[Be])return!1}return!0},se=x.useMemo(()=>{const ve=!v||!t?!1:mt(d)?ae().isPaused()||s?!1:mt(p)?!0:p:d,Re=ct=>{const St=wa(ct);return delete St._k,ve?{isValidating:!0,isLoading:!0,...St}:St},Ce=A(),Be=Q(),it=Re(Ce),je=Ce===Be?it:Re(Be);let Ue=it;return[()=>{const ct=Re(A());return K(ct,Ue)?(Ue.data=ct.data,Ue.isLoading=ct.isLoading,Ue.isValidating=ct.isValidating,Ue.error=ct.error,Ue):(Ue=ct,ct)},()=>je]},[i,v]),re=WD.useSyncExternalStore(x.useCallback(ve=>W(v,(Re,Ce)=>{K(Ce,Re)||ve()}),[i,v]),se[0],se[1]),be=!k.current,C=y[v]&&y[v].length>0,J=re.data,oe=mt(J)?ee:J,D=re.error,ce=x.useRef(oe),Oe=S?mt(J)?ce.current:J:oe,Se=C&&!mt(D)?!1:be&&!mt(d)?d:ae().isPaused()?!1:s?mt(oe)?!1:p:mt(oe)||p,tt=!!(v&&t&&be&&Se),Me=mt(re.isValidating)?tt:re.isValidating,$e=mt(re.isLoading)?tt:re.isLoading,xe=x.useCallback(async ve=>{const Re=M.current;if(!v||!Re||P.current||ae().isPaused())return!1;let Ce,Be,it=!0;const je=ve||{},Ue=!_[v]||!je.dedupe,ct=()=>z2?!P.current&&v===L.current&&k.current:v===L.current,St={isValidating:!1,isLoading:!1},rn=()=>{Y(St)},_n=()=>{const Xe=_[v];Xe&&Xe[1]===Be&&delete _[v]},we={isValidating:!0};mt(A().data)&&(we.isLoading=!0);try{if(Ue&&(Y(we),r.loadingTimeout&&mt(A().data)&&setTimeout(()=>{it&&ct()&&ae().onLoadingSlow(v,r)},r.loadingTimeout),_[v]=[Re(H),I0()]),[Ce,Be]=_[v],Ce=await Ce,Ue&&setTimeout(_n,r.dedupingInterval),!_[v]||_[v][1]!==Be)return Ue&&ct()&&ae().onDiscarded(v),!1;St.error=Yn;const Xe=O[v];if(!mt(Xe)&&(Be<=Xe[0]||Be<=Xe[1]||Xe[1]===0))return rn(),Ue&&ct()&&ae().onDiscarded(v),!1;const $t=A().data;St.data=l($t,Ce)?$t:Ce,Ue&&ct()&&ae().onSuccess(Ce,v,r)}catch(Xe){_n();const $t=ae(),{shouldRetryOnError:te}=$t;$t.isPaused()||(St.error=Xe,Ue&&ct()&&($t.onError(Xe,v,$t),(te===!0||Gr(te)&&te(Xe))&&(!ae().revalidateOnFocus||!ae().revalidateOnReconnect||V())&&$t.onErrorRetry(Xe,v,$t,de=>{const Ae=y[v];Ae&&Ae[0]&&Ae[0](io.ERROR_REVALIDATE_EVENT,de)},{retryCount:(je.retryCount||0)+1,dedupe:!0})))}return it=!1,rn(),!0},[v,i]),Ge=x.useCallback((...ve)=>q2(i,L.current,...ve),[]);if(k0(()=>{M.current=t,j.current=r,mt(J)||(ce.current=J)}),k0(()=>{if(!v)return;const ve=xe.bind(Yn,w0);let Re=0;const Be=xL(v,y,(it,je={})=>{if(it==io.FOCUS_EVENT){const Ue=Date.now();ae().revalidateOnFocus&&Ue>Re&&V()&&(Re=Ue+ae().focusThrottleInterval,ve())}else if(it==io.RECONNECT_EVENT)ae().revalidateOnReconnect&&V()&&ve();else{if(it==io.MUTATE_EVENT)return xe();if(it==io.ERROR_REVALIDATE_EVENT)return xe(je)}});return P.current=!1,L.current=v,k.current=!0,Y({_k:H}),Se&&(mt(oe)||ao?ve():lL(ve)),()=>{P.current=!0,Be()}},[v]),k0(()=>{let ve;function Re(){const Be=Gr(m)?m(A().data):m;Be&&ve!==-1&&(ve=setTimeout(Ce,Be))}function Ce(){!A().error&&(b||ae().isVisible())&&(E||ae().isOnline())?xe(w0).then(Re):Re()}return Re(),()=>{ve&&(clearTimeout(ve),ve=-1)}},[m,b,E,v]),x.useDebugValue(Oe),s&&mt(oe)&&v){if(!z2&&ao)throw new Error("Fallback data is required when using suspense in SSR.");M.current=t,j.current=r,P.current=!1;const ve=I[v];if(!mt(ve)){const Re=Ge(ve);K2(Re)}if(mt(D)){const Re=xe(w0);mt(Oe)||(Re.status="fulfilled",Re.value=!0),K2(Re)}else throw D}return{mutate:Ge,get data(){return G.data=!0,Oe},get error(){return G.error=!0,D},get isValidating(){return G.isValidating=!0,Me},get isLoading(){return G.isLoading=!0,$e}}});var M0,W2;function _L(){if(W2)return M0;W2=1;function e(t,r){if(typeof t!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof t}\`.`);let i,l=0;return function(...c){clearTimeout(i);const d=Date.now(),p=d-l,m=r-p;m<=0?(l=d,t.apply(this,c)):i=setTimeout(()=>{l=Date.now(),t.apply(this,c)},m)}}return M0=e,M0}var vL=_L();const RL=ur(vL);function Z2(e,t){return t!=null?RL(e,t):e}var OL=async(e,t,r,i,l,s,c,d,p,m,b,E,S,y,O,_,I)=>{var v;const H=c.current;r(t.messages,!1);const k=y?t.messages:t.messages.map(({role:L,content:M,experimental_attachments:j,data:ae,annotations:V,toolInvocations:A})=>({role:L,content:M,...j!==void 0&&{experimental_attachments:j},...ae!==void 0&&{data:ae},...V!==void 0&&{annotations:V},...A!==void 0&&{toolInvocations:A}})),P=l.current;return await XD({api:e,body:(v=O==null?void 0:O({messages:t.messages,requestData:t.data,requestBody:t.body}))!=null?v:{messages:k,data:t.data,...s.current.body,...t.body},streamProtocol:m,credentials:s.current.credentials,headers:{...s.current.headers,...t.headers},abortController:()=>d.current,restoreMessagesOnFailure(){I||r(H,!1)},onResponse:E,onUpdate(L,M){r([...t.messages,...L],!1),M!=null&&M.length&&i([...P??[],...M],!1)},onToolCall:S,onFinish:b,generateId:p,fetch:_})};function NL({api:e="/api/chat",id:t,initialMessages:r,initialInput:i="",sendExtraMessageFields:l,onToolCall:s,experimental_prepareRequestBody:c,maxSteps:d=1,streamProtocol:p="data",onResponse:m,onFinish:b,onError:E,credentials:S,headers:y,body:O,generateId:_=M2,fetch:I,keepLastMessageOnError:v=!0,experimental_throttle:H}={}){const k=x.useId(),P=t??k,L=typeof e=="string"?[e,P]:P,[M]=x.useState([]),{data:j,mutate:ae}=dc([L,"messages"],null,{fallbackData:r??M}),V=x.useRef(j||[]);x.useEffect(()=>{V.current=j||[]},[j]);const{data:A,mutate:Y}=dc([L,"streamData"],null),W=x.useRef(A);x.useEffect(()=>{W.current=A},[A]);const{data:Q=!1,mutate:G}=dc([L,"loading"],null),{data:ee=void 0,mutate:K}=dc([L,"error"],null),se=x.useRef(null),re=x.useRef({credentials:S,headers:y,body:O});x.useEffect(()=>{re.current={credentials:S,headers:y,body:O}},[S,y,O]);const be=x.useCallback(async xe=>{const Ge=V.current.length;try{G(!0),K(void 0);const Ce=new AbortController;se.current=Ce,await OL(e,xe,Z2(ae,H),Z2(Y,H),W,re,V,se,_,p,b,m,s,l,c,I,v),se.current=null}catch(Ce){if(Ce.name==="AbortError")return se.current=null,null;E&&Ce instanceof Error&&E(Ce),K(Ce)}finally{G(!1)}const ve=V.current,Re=ve[ve.length-1];ve.length>Ge&&Re!=null&&d>1&&J2(Re)&&kL(ve)<d&&await be({messages:ve})},[ae,G,e,re,m,b,E,K,Y,W,p,l,c,s,d,V,se,_,I,v,H]),C=x.useCallback(async(xe,{data:Ge,headers:ve,body:Re,experimental_attachments:Ce}={})=>{var Be,it;const je=await P2(Ce),Ue=V.current.concat({...xe,id:(Be=xe.id)!=null?Be:_(),createdAt:(it=xe.createdAt)!=null?it:new Date,experimental_attachments:je.length>0?je:void 0});return be({messages:Ue,headers:ve,body:Re,data:Ge})},[be,_]),J=x.useCallback(async({data:xe,headers:Ge,body:ve}={})=>{const Re=V.current;if(Re.length===0)return null;const Ce=Re[Re.length-1];return be({messages:Ce.role==="assistant"?Re.slice(0,-1):Re,headers:Ge,body:ve,data:xe})},[be]),oe=x.useCallback(()=>{se.current&&(se.current.abort(),se.current=null)},[]),D=x.useCallback(xe=>{typeof xe=="function"&&(xe=xe(V.current)),ae(xe,!1),V.current=xe},[ae]),ce=x.useCallback(xe=>{typeof xe=="function"&&(xe=xe(W.current)),Y(xe,!1),W.current=xe},[Y]),[Oe,Se]=x.useState(i),tt=x.useCallback(async(xe,Ge={},ve)=>{var Re;if((Re=xe==null?void 0:xe.preventDefault)==null||Re.call(xe),!Oe&&!Ge.allowEmptySubmit)return;ve&&(re.current={...re.current,...ve});const Ce=await P2(Ge.experimental_attachments),it={messages:!Oe&&!Ce.length&&Ge.allowEmptySubmit?V.current:V.current.concat({id:_(),createdAt:new Date,role:"user",content:Oe,experimental_attachments:Ce.length>0?Ce:void 0}),headers:Ge.headers,body:Ge.body,data:Ge.data};be(it),Se("")},[Oe,_,be]);return{messages:j||[],setMessages:D,data:A,setData:ce,error:ee,append:C,reload:J,stop:oe,input:Oe,setInput:Se,handleInputChange:xe=>{Se(xe.target.value)},handleSubmit:tt,isLoading:Q,addToolResult:({toolCallId:xe,result:Ge})=>{const ve=V.current.map((Ce,Be,it)=>Be===it.length-1&&Ce.role==="assistant"&&Ce.toolInvocations?{...Ce,toolInvocations:Ce.toolInvocations.map(je=>je.toolCallId===xe?{...je,result:Ge,state:"result"}:je)}:Ce);ae(ve,!1);const Re=ve[ve.length-1];J2(Re)&&be({messages:ve})}}}function J2(e){return e.role==="assistant"&&e.toolInvocations&&e.toolInvocations.length>0&&e.toolInvocations.every(t=>"result"in t)}function kL(e){let t=0;for(let r=e.length-1;r>=0&&e[r].role==="assistant";r--)t++;return t}var DL=NL;const LL=e=>e,IL=e=>async(t,r)=>{var c;if(typeof(r==null?void 0:r.body)!="string")return console.error("Unexpected body type."),window.fetch(t,r);const i=JSON.parse(r==null?void 0:r.body).messages,l=e.transformBody??LL,s={...r,body:JSON.stringify(l(i)),...e.fetchOpts,headers:{...r==null?void 0:r.headers,"Content-Type":"application/json",...(c=e.fetchOpts)==null?void 0:c.headers}};return fetch(t,s)},wL=(e,t)=>{const r=x.useMemo(()=>IL(e),[e]);return DL({api:e.apiUrl,streamProtocol:"text",fetch:r,onFinish:i=>{var l;e.onFinish&&(i.role==="assistant"||i.role==="user"?(l=e.onFinish)==null||l.call(e,i):console.info("Unexpected message role.",i))},...t})},ML=e=>e.scrollHeight-e.clientHeight-e.scrollTop,BL=e=>{e.scrollTop=e.scrollHeight},PL=({scrollElement:e,contentElement:t,threshold:r=2})=>{x.useEffect(()=>{const i=()=>{e&&ML(e)<r&&BL(e)};i();const l=new ResizeObserver(i);return t&&l.observe(t),()=>{l.disconnect()}},[e,t,r])},bn={root:"MitAiChat--root",title:"MitAiChat--title",entryScreenContainer:"MitAiChat--entryScreenContainer",conversationStarter:"MitAiChat--conversationStarter",chatScreenContainer:"MitAiChat--chatScreenContainer",messagesContainer:"MitAiChat--messagesContainer",messageRow:"MitAiChat--messageRow",messageRowUser:"MitAiChat--messageRowUser",messageRowAssistant:"MitAiChat--messageRowAssistant",message:"MitAiChat--message",input:"MitAiChat--input",bottomSection:"MitAiChat--bottomSection"},UL=Fe.div(),HL=Fe.div(({externalScroll:e,theme:t})=>({padding:"16px 32px 0",[t.breakpoints.down("md")]:{padding:"16px 16px 0"},boxSizing:"border-box",background:"white",position:"absolute",bottom:0,top:0,left:0,right:0,zIndex:1,...e&&{padding:"0 32px",[t.breakpoints.down("md")]:{padding:"0 16px"}}})),FL=Fe.div(({externalScroll:e})=>({width:"100%",height:e?"auto":"100%",minHeight:e?"100%":"auto",display:"flex",flexDirection:"column"})),zL=Fe(qk)(({externalScroll:e})=>({display:"flex",flexDirection:"column",flex:1,padding:"14px 0",overflow:e?"visible":"auto",gap:"16px"})),ey=Fe.div({display:"flex",width:"100%",gap:"10px",[`&.${bn.messageRowUser}`]:{flexDirection:"row-reverse"},"> *":{minWidth:0},position:"relative"}),ty=Fe.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",[`.${bn.messageRowAssistant} &`]:{padding:"12px 16px 12px 0"},[`.${bn.messageRowUser} &`]:{borderRadius:"8px 0px 8px 8px",backgroundColor:e.custom.colors.lightGray1}})),YL=Fe.div({alignSelf:"flex-end",alignItems:"end",display:"flex",flexDirection:"column",gap:"12px"}),jL=Fe.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"})),VL=Fe(Ob)(({theme:e})=>({fill:e.custom.colors.red})),$L=Fe(v8)(({theme:e})=>({fill:e.custom.colors.red})),qL=Fe.div(({externalScroll:e,theme:t})=>({padding:"12px 0 16px",...e&&{position:"sticky",bottom:0,background:t.custom.colors.white}})),GL=Fe(bi)(({theme:e})=>({color:e.custom.colors.silverGrayDark,marginTop:"16px",textAlign:"center"})),XL=({entryScreenTitle:e,entryScreenEnabled:t=!0,conversationStarters:r,initialMessages:i,askTimTitle:l,requestOpts:s,parseContent:c,srLoadingMessages:d,placeholder:p="",className:m,scrollElement:b,chatId:E,ref:S,...y})=>{var C,J;const O=x.useRef(null),_=x.useRef(null),[I,v]=x.useState(t),H=x.useRef(null),[k,P]=x.useState(),{messages:L,input:M,handleInputChange:j,handleSubmit:ae,append:V,isLoading:A,stop:Y,error:W}=wL(s,{initialMessages:k,id:E});PL({scrollElement:b||_.current,contentElement:b?_.current:null,threshold:200}),x.useEffect(()=>{if(i){const oe=Math.random().toString().slice(2);P(i.map((D,ce)=>({...D,id:`initial-${oe}-${ce}`})))}},[i]);const Q=x.useMemo(()=>{const oe=k==null?void 0:k.map(D=>D.id);return L.map(D=>{if(D.role==="assistant"&&!(oe!=null&&oe.includes(D.id))){const ce=c?c(D.content):D.content;return{...D,content:ce}}return D})},[c,L,k]),G=Q.length===((k==null?void 0:k.length)||0),ee=!G&&!W&&((C=Q[Q.length-1])==null?void 0:C.role)==="user",K=A&&((J=Q[Q.length-1])==null?void 0:J.role)!=="user",se=()=>{const oe=b||_.current;oe==null||oe.scrollBy({behavior:"instant",top:oe==null?void 0:oe.scrollHeight})},re=Q[Q.length-1],be=!!b;return x.createElement(UL,{className:m,ref:O,key:E},I?x.createElement(Yk,{className:bn.entryScreenContainer,title:e,conversationStarters:r,onPromptSubmit:oe=>{oe.trim()!==""&&(v(!1),V({role:"user",content:oe}))}}):x.createElement(HL,{className:bn.chatScreenContainer,"data-testid":"ai-chat-screen",externalScroll:be,ref:H},x.createElement(FL,{className:zl(m,bn.root),externalScroll:be,...y},x.createElement(gD,{askTimTitle:l,externalScroll:be,className:zl(m,bn.title)}),x.createElement(zL,{className:bn.messagesContainer,externalScroll:be,ref:_},Q.map(oe=>x.createElement(ey,{key:oe.id,"data-chat-role":oe.role,className:zl(bn.messageRow,{[bn.messageRowUser]:oe.role==="user",[bn.messageRowAssistant]:oe.role==="assistant"})},x.createElement(ty,{className:bn.message},x.createElement(m2,null,oe.role==="user"?"You said: ":"Assistant said: "),x.createElement(tg,{skipHtml:!0},oe.content)))),G?x.createElement(YL,null,r==null?void 0:r.map(oe=>x.createElement(jL,{className:bn.conversationStarter,key:oe.content,onClick:()=>{se(),V({role:"user",content:oe.content})}},oe.content))):null,ee?x.createElement(ey,{className:zl(bn.messageRow,bn.messageRowAssistant),key:"loading"},x.createElement(ty,null,x.createElement(_8,null))):null,W?x.createElement(hD,{severity:"error",closable:!0},"An unexpected error has occurred."):null),x.createElement(qL,{externalScroll:be,className:bn.bottomSection},x.createElement("form",{onSubmit:oe=>{oe.preventDefault(),A&&K?Y():(se(),ae(oe))}},x.createElement(h2,{fullWidth:!0,size:"chat",className:bn.input,placeholder:p,name:"message",sx:{flex:1},value:M,onChange:j,endAdornment:A?x.createElement(y0,{"aria-label":"Stop",onClick:Y,disabled:!K},x.createElement($L,null)):x.createElement(y0,{"aria-label":"Send",type:"submit",onClick:oe=>{if(M.trim()===""){oe.preventDefault();return}se(),ae(oe)}},x.createElement(VL,null))})),x.createElement(GL,{variant:"body3"},"AI-generated content may be incorrect.")),x.createElement(Xk,{isLoading:A,loadingMessages:d,message:(re==null?void 0:re.role)==="assistant"?re==null?void 0:re.content:""}))))},ny=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:dt({small:20,medium:24,large:32}[e])}}),uo=Fe(x.forwardRef(function(t,r){return x.createElement(XE,{ref:r,type:"button",...t})}))(({size:e=m0.size,responsive:t,theme:r})=>[ny(e),t&&{[r.breakpoints.down("sm")]:ny($E[e])}]);uo.displayName="ActionButton";const QL=uo.withComponent(({Component:e,...t})=>x.createElement(QE,{Component:e,...t}));QL.displayName="ActionButtonLink";const KL=Fe.div``,WL=Fe.div(({theme:e})=>({display:"flex",height:300,padding:40,flexDirection:"column",justifyContent:"center",alignItems:"center",alignSelf:"stretch",borderRadius:8,border:`1px solid ${e.custom.colors.lightGray2}`,marginTop:"8px",cursor:"pointer",textAlign:"center"})),ZL=Fe.div({display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",marginTop:"24px"}),JL=Fe.div(({theme:e})=>({color:e.custom.colors.silverGrayDark,...e.typography.body2})),ry=x.forwardRef(({content:e,"aria-label":t},r)=>{const[i,l]=x.useState(0);x.useEffect(()=>l(0),[e]);const s=c=>{(c.key==="Enter"||c.key===" ")&&l(i===0?1:0)};return x.createElement(WL,{ref:r,onClick:()=>l(i===0?1:0),onKeyDown:s,tabIndex:0,"aria-label":t},x.createElement(bi,{variant:"h5"},i===0?`Q: ${e.question}`:`Answer: ${e.answer}`))});ry.displayName="Flashcard";const eI=({flashcards:e,wasKeyboardFocus:t})=>{const[r,i]=x.useState(0),l=x.useRef(null),s=x.useRef(null),c=x.useCallback(d=>{var p;e&&(!((p=l.current)!=null&&p.contains(document.activeElement))&&t||(d.key==="ArrowRight"?i(m=>(m+1)%e.length):d.key==="ArrowLeft"&&i(m=>(m-1+e.length)%e.length)))},[e,t]);return x.useEffect(()=>{var d;(d=s.current)==null||d.focus()},[r]),x.useEffect(()=>(window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)),[c]),e!=null&&e.length?x.createElement(KL,{ref:l},x.createElement(ry,{ref:s,content:e[r],"aria-label":`Flashcard ${r+1} of ${e.length}`}),x.createElement(ZL,null,x.createElement(uo,{onClick:()=>i(r-1),disabled:r===0,variant:"secondary",color:"secondary",size:"small","aria-label":"Previous card"},x.createElement(A8,{"aria-hidden":!0})),x.createElement(JL,null,r+1," / ",e.length),x.createElement(uo,{onClick:()=>i(r+1),disabled:r===e.length-1,variant:"secondary",color:"secondary",size:"small","aria-label":"Next card"},x.createElement(x8,{"aria-hidden":!0})))):null},tI=Fe.div(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",gap:"4px",color:e.custom.colors.white,position:"sticky",top:0,padding:"32px 0 16px 0",zIndex:2,backgroundColor:e.custom.colors.white,borderRadius:0})),nI=Fe.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",flexShrink:0},overflow:"hidden",p:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}})),rI=Fe(uo)(({theme:e})=>({backgroundColor:e.custom.colors.lightGray2,"&&:hover":{backgroundColor:e.custom.colors.red,color:e.custom.colors.white},zIndex:3,flexShrink:0})),aI=Fe(G9)(({theme:e})=>({padding:"0 0 16px",backgroundColor:e.custom.colors.white,position:"sticky",top:"88px",zIndex:2,overflow:"visible"})),B0=Fe(fk)({padding:"0",height:"calc(100% - 138px)",position:"relative"}),iI=Fe(XL)(({hasTabs:e,theme:t})=>({".MitAiChat--entryScreenContainer":{padding:e?"114px 0 24px":"168px 32px 24px",[t.breakpoints.down("md")]:{padding:e?"114px 0 24px":"168px 16px 24px"}},".MitAiChat--chatScreenContainer":{padding:e?0:"0 32px",[t.breakpoints.down("md")]:{padding:e?0:"0 16px"}},".MitAiChat--messagesContainer":{paddingTop:e?"8px":"88px"}})),uI=Fe.div(({theme:e})=>({color:e.custom.colors.darkGray2,backgroundColor:e.custom.colors.white,padding:"12px 0 100px",...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"}})),lI=e=>e,oI={credentials:"include"},sI=e=>{const[t,r]=x.useState(null),[i,l]=x.useState(!1);return x.useEffect(()=>{if(!e)return;(async()=>{l(!0);try{const d=await(await fetch(e)).json();if(!d.results)throw new Error("Unexpected response");const[p]=d.results;if(!p)throw new Error("No result found");r({summary:p.summary,flashcards:p.flashcards})}catch(c){console.error("Error fetching content",c)}finally{l(!1)}})()},[e]),{response:t,loading:i}},cI="What do you want to know about this video?",fI=[{content:"What are the most important concepts introduced in the video?"},{content:"What examples are used to illustrate concepts covered in the video?"},{content:"What are the key terms introduced in this video?"}],ay=({payload:e,transformBody:t,fetchOpts:r,scrollElement:i,entryScreenEnabled:l,entryScreenTitle:s,conversationStarters:c,hasTabs:d})=>e?x.createElement(iI,{chatId:e.chatId,conversationStarters:c,initialMessages:e.initialMessages,scrollElement:i,entryScreenEnabled:l,entryScreenTitle:s,requestOpts:{transformBody:p=>({...e.requestBody,...t==null?void 0:t(p)}),apiUrl:e.apiUrl,fetchOpts:{...oI,...r}},hasTabs:d}):null,dI=(e,t)=>[...e].sort(()=>.5-Math.random()).slice(0,t),hI=({messageOrigin:e,transformBody:t=lI,className:r,fetchOpts:i,target:l})=>{var ae,V,A,Y,W,Q;const[s,c]=x.useState(!1),[d,p]=x.useState(null),[m,b]=x.useState("chat"),{response:E}=sI((ae=d==null?void 0:d.summary)==null?void 0:ae.apiUrl),[S,y]=x.useState(!1),O=x.useRef(!1),_=()=>{O.current=!0},I=()=>{O.current||y(!0),O.current=!1},[v,H]=x.useState(null),k=G=>{G&&H(G)};x.useEffect(()=>{const G=ee=>{ee.origin===e&&ee.data.type==="smoot-design::tutor-drawer-open"&&ee.data.payload.target===l&&(c(!0),p(ee.data.payload))};return window.addEventListener("message",G),()=>{window.removeEventListener("message",G)}},[e,l]),x.useEffect(()=>{var G;(G=v==null?void 0:v.scrollTo)==null||G.call(v,{top:m==="chat"?v.scrollHeight:0})},[m,v]);const P=x.useMemo(()=>{var G;return d?d.chat.conversationStarters||((G=E==null?void 0:E.flashcards)!=null&&G.length&&E.flashcards.length>=3?dI(E.flashcards,3).map(ee=>({content:ee.question})):fI):[]},[d,E]);if(!d)return x.createElement("div",{"data-testid":"remote-tutor-drawer-waiting"});const{blockType:L,chat:M}=d,j=L==="video";return x.createElement(WN,{"data-testid":"remote-tutor-drawer",className:r,PaperProps:{ref:k,sx:{width:"900px",maxWidth:"100%",boxSizing:"border-box",padding:{xs:"0 16px",md:"0 32px"}}},anchor:"right",open:s,onClose:()=>c(!1)},x.createElement(tI,null,x.createElement(nI,null,d.title?x.createElement(Ud,null):null,x.createElement(bi,{variant:"body1",component:"h2"},(V=d.title)!=null&&V.includes("AskTIM")?x.createElement(x.Fragment,null,"Ask",x.createElement("strong",null,"TIM"),d.title.replace("AskTIM","")):d.title)),x.createElement(rI,{variant:"text",size:"medium",onClick:()=>c(!1),"aria-label":"Close"},x.createElement(Rb,null))),L==="problem"?x.createElement(ay,{payload:M,transformBody:t,fetchOpts:i,scrollElement:v,entryScreenEnabled:((A=d.chat)==null?void 0:A.entryScreenEnabled)??!1,entryScreenTitle:d.chat.entryScreenTitle,hasTabs:j}):null,L==="video"?x.createElement(B9,{value:m},x.createElement(aI,{styleVariant:"chat",onChange:(G,ee)=>b(ee)},x.createElement(g0,{value:"chat",label:"Chat"}),(Y=E==null?void 0:E.flashcards)!=null&&Y.length?x.createElement(g0,{value:"flashcards",label:"Flashcards",onMouseDown:_,onFocus:I}):null,x.createElement(g0,{value:"summary",label:"Summary"})),x.createElement(B0,{value:"chat",keepMounted:!0},x.createElement(ay,{payload:{...M},transformBody:t,fetchOpts:i,scrollElement:v,entryScreenEnabled:((W=d.chat)==null?void 0:W.entryScreenEnabled)??!0,entryScreenTitle:d.chat.entryScreenTitle??cI,conversationStarters:P,hasTabs:j})),(Q=E==null?void 0:E.flashcards)!=null&&Q.length?x.createElement(B0,{value:"flashcards"},x.createElement(eI,{flashcards:E==null?void 0:E.flashcards,wasKeyboardFocus:S})):null,x.createElement(B0,{value:"summary"},x.createElement(bi,{variant:"h4",component:"h4"}),x.createElement(uI,null,x.createElement(tg,{rehypePlugins:[C8]},(E==null?void 0:E.summary)??"")))):null)},pI={defaultProps:{disableRipple:!0},styleOverrides:{root:{":focus-visible":{outline:"revert"}}}},ot={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"},mI={defaultProps:{size:"medium",color:"default",variant:"outlined",deleteIcon:x.createElement(Rb,{"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:ot.silverGrayLight,color:ot.darkGray1,"&.Mui-focusVisible":{backgroundColor:"transparent"},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:ot.darkGray1,borderColor:ot.silverGrayDark,backgroundColor:"transparent"}}},{props:{variant:"outlinedWhite"},style:{backgroundColor:"white",border:"1px solid",borderColor:ot.silverGrayLight,color:ot.darkGray1,"&.Mui-focusVisible":{backgroundColor:"white"},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:ot.darkGray1,borderColor:ot.silverGrayDark,backgroundColor:"white"}}},{props:{variant:"gray"},style:{backgroundColor:ot.lightGray2,border:"none",color:ot.darkGray2,"&.Mui-focusVisible":{backgroundColor:ot.lightGray2},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:ot.darkGray1,backgroundColor:ot.silverGrayLight}}},{props:{variant:"dark"},style:{backgroundColor:ot.silverGrayDark,border:"none",color:ot.white,"&.Mui-focusVisible":{backgroundColor:ot.silverGrayDark},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:ot.darkGray1}}},{props:{variant:"darker"},style:{backgroundColor:ot.darkGray2,border:`1px solid ${ot.darkGray1}`,color:ot.white,"&.Mui-focusVisible":{backgroundColor:ot.darkGray2},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:ot.black,border:`1px solid ${ot.silverGray}`}}},{props:{variant:"filled"},style:{backgroundColor:ot.mitRed,border:"none",color:ot.white,"&.Mui-focusVisible":{backgroundColor:ot.mitRed},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:ot.red}}}]},gI={colors:ot,dimensions:{headerHeight:"72px",headerHeightSm:"60px"}},bI={values:{xs:0,sm:600,md:900,lg:1320,xl:1536}},EI={custom:gI,palette:{primary:{main:ot.mitRed,light:ot.lightRed,active:ot.red,contrastText:ot.white},secondary:{light:ot.darkGray2,active:ot.silverGrayDark,main:ot.black,contrastText:ot.white}},shape:{borderRadius:8},spacing:8,typography:YE,breakpoints:bI,components:{MuiButtonBase:pI,MuiTypography:Y9,MuiMenu:{styleOverrides:{paper:{borderRadius:"4px"}}},MuiAutocomplete:{styleOverrides:{paper:{borderRadius:"4px"},popupIndicator:{paddingRight:0,marginRight:0}}},MuiChip:mI}},iy=e=>Zs(Pn(EI,e)),yI=iy(),TI=({children:e,theme:t=yI})=>x.createElement(z9,{theme:t},e);var SI=function(t,r,i){for(var l=0,s=0;l=s,s=Gn(),l===38&&s===12&&(r[i]=1),!ai(s);)Nn();return Yi(t,Cn)},CI=function(t,r){var i=-1,l=44;do switch(ai(l)){case 0:l===38&&Gn()===12&&(r[i]=1),t[i]+=SI(Cn-1,r,i);break;case 2:t[i]+=tl(l);break;case 4:if(l===44){t[++i]=Gn()===58?"&\f":"",r[i]=t[i].length;break}default:t[i]+=Zu(l)}while(l=Nn());return t},AI=function(t,r){return Nf(CI(Of(t),r))},uy=new WeakMap,xI=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,i=t.parent,l=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!uy.get(i))&&!l){uy.set(t,!0);for(var s=[],c=AI(r,s),d=i.props,p=0,m=0;p<c.length;p++)for(var b=0;b<d.length;b++,m++)t.props[m]=s[p]?c[p].replace(/&\f/g,d[b]):d[b]+" "+c[p]}}},_I=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function ly(e,t){switch(nm(e,t)){case 5103:return De+"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 De+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return De+e+xa+e+pt+e+e;case 6828:case 4268:return De+e+pt+e+e;case 6165:return De+e+pt+"flex-"+e+e;case 5187:return De+e+Ie(e,/(\w+).+(:[^]+)/,De+"box-$1$2"+pt+"flex-$1$2")+e;case 5443:return De+e+pt+"flex-item-"+Ie(e,/flex-|-self/,"")+e;case 4675:return De+e+pt+"flex-line-pack"+Ie(e,/align-content|flex-|-self/,"")+e;case 5548:return De+e+pt+Ie(e,"shrink","negative")+e;case 5292:return De+e+pt+Ie(e,"basis","preferred-size")+e;case 6060:return De+"box-"+Ie(e,"-grow","")+De+e+pt+Ie(e,"grow","positive")+e;case 4554:return De+Ie(e,/([^-])(transform)/g,"$1"+De+"$2")+e;case 6187:return Ie(Ie(Ie(e,/(zoom-|grab)/,De+"$1"),/(image-set)/,De+"$1"),e,"")+e;case 5495:case 3959:return Ie(e,/(image-set\([^]*)/,De+"$1$`$1");case 4968:return Ie(Ie(e,/(.+:)(flex-)?(.*)/,De+"box-pack:$3"+pt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+De+e+e;case 4095:case 3583:case 4068:case 2532:return Ie(e,/(.+)-inline(.+)/,De+"$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(lr(e)-1-t>6)switch(Bt(e,t+1)){case 109:if(Bt(e,t+4)!==45)break;case 102:return Ie(e,/(.+:)(.+)-([^]+)/,"$1"+De+"$2-$3$1"+xa+(Bt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ju(e,"stretch")?ly(Ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Bt(e,t+1)!==115)break;case 6444:switch(Bt(e,lr(e)-3-(~Ju(e,"!important")&&10))){case 107:return Ie(e,":",":"+De)+e;case 101:return Ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+De+(Bt(e,14)===45?"inline-":"")+"box$3$1"+De+"$2$3$1"+pt+"$2box$3")+e}break;case 5936:switch(Bt(e,t+11)){case 114:return De+e+pt+Ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return De+e+pt+Ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return De+e+pt+Ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return De+e+pt+e+e}return e}var vI=function(t,r,i,l){if(t.length>-1&&!t.return)switch(t.type){case ls:t.return=ly(t.value,t.length);break;case vf:return Br([Mr(t,{value:Ie(t.value,"@","@"+De)})],l);case us:if(t.length)return im(t.props,function(s){switch(am(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Br([Mr(t,{props:[Ie(s,/:(read-\w+)/,":"+xa+"$1")]})],l);case"::placeholder":return Br([Mr(t,{props:[Ie(s,/:(plac\w+)/,":"+De+"input-$1")]}),Mr(t,{props:[Ie(s,/:(plac\w+)/,":"+xa+"$1")]}),Mr(t,{props:[Ie(s,/:(plac\w+)/,pt+"input-$1")]})],l)}return""})}},RI=[vI],OI=function(t){var r=t.key;if(r==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(_){var I=_.getAttribute("data-emotion");I.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var l=t.stylisPlugins||RI,s={},c,d=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(_){for(var I=_.getAttribute("data-emotion").split(" "),v=1;v<I.length;v++)s[I[v]]=!0;d.push(_)});var p,m=[xI,_I];{var b,E=[cm,dm(function(_){b.insert(_)})],S=fm(m.concat(l,E)),y=function(I){return Br(lm(I),S)};p=function(I,v,H,k){b=H,y(I?I+"{"+v.styles+"}":v.styles),k&&(O.inserted[v.name]=!0)}}var O={key:r,sheet:new em({key:r,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:p};return O.sheet.hydrate(d),O};const NI=e=>{const t=document.createElement("div");document.body.appendChild(t);const r=t.attachShadow({mode:"open"}),i=document.createElement("div");i.id="smoot-chat-drawer-root",r.append(i);const l=OI({key:"css",prepend:!0,container:r}),s=iy({components:{MuiPopover:{defaultProps:{container:i}},MuiPopper:{defaultProps:{container:i}},MuiModal:{defaultProps:{container:i}}}});X3.createRoot(i).render(x.createElement(kC,{value:l},x.createElement(TI,{theme:s},x.createElement(hI,{...e}))))};ir.init=NI,Object.defineProperty(ir,Symbol.toStringTag,{value:"Module"})});